/* IL Builders � Apple-style Custom Styles */

/* Apple typography */
.font-serif {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2 { letter-spacing: -0.03em; }
h3, h4 { letter-spacing: -0.02em; }

body, * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar glass on scroll */
#navbar.scrolled {
  background-color: rgba(255,255,255,0.95) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Counter */
.counter { transition: all 0.3s ease; }

/* Project filter */
.project-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.project-item.hidden-item {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.filter-btn.active-filter { background-color: #1a1a1a; color: #fff; }

/* Scroll-to-top */
#scroll-top.visible { opacity: 1; pointer-events: auto; }

/* Hero fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.7s ease forwards; }

/* Inputs � Apple rounded */
input, textarea, select {
  border-radius: 12px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #eab308 !important;
  box-shadow: 0 0 0 3px rgba(234,179,8,0.12);
  outline: none;
}

/* Card hover lift */
.project-item:hover, article:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Service card */
.service-card { min-height: 140px; }

/* Mobile menu */
#mobile-menu { animation: slideDown 0.2s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

img { max-width: 100%; height: auto; }
/* Ensure mobile menu is hidden by default and only shown when toggled */
#mobile-menu { display: none; }
#mobile-menu.hidden { display: none !important; }
#mobile-menu:not(.hidden) { display: block !important; }
/* ======================== RESPONSIVE BREAKPOINTS ======================== */
@media (max-width: 1024px) {
  .max-w-7xl, .max-w-4xl, .max-w-2xl {
    max-width: 100vw !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .lg\:flex, .lg\:inline-flex, .lg\:block, .lg\:grid {
    display: none !important;
  }
  .lg\:hidden {
    display: block !important;
  }
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  .py-32 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .px-6, .px-8, .md\:px-16 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .flex, .md\:flex-row, .sm\:flex-row { flex-direction: column !important; gap: 1.5rem !important; }
  .grid, .md\:grid-cols-2, .sm\:grid-cols-2, .md\:grid-cols-3 { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .h-20, .h-14, .h-[480px] { height: auto !important; min-height: 0 !important; }
  .text-5xl, .md\:text-6xl, .lg\:text-7xl { font-size: 2rem !important; }
  .text-3xl, .md\:text-4xl { font-size: 1.25rem !important; }
  .text-lg, .md\:text-lg { font-size: 1rem !important; }
  .py-20, .py-10, .py-5, .py-4, .py-3, .py-2, .py-8, .py-12 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .px-8, .px-6, .px-4, .px-3, .px-2 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .rounded-2xl, .rounded-lg, .rounded-full { border-radius: 0.75rem !important; }
  .gap-16, .gap-8, .gap-6, .gap-5, .gap-4, .gap-3 { gap: 1rem !important; }
  .max-w-4xl, .max-w-2xl { max-width: 100vw !important; }
  .hidden.md\:block { display: none !important; }

  /* Apple-style premium mobile enhancements */
  body, .bg-white, .bg-brand-dark, .bg-brand-gold, .bg-brand {
    background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%) !important;
  }
  nav, #navbar {
    border-radius: 1.25rem !important;
    margin: 0.5rem !important;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07), 0 1.5px 4px 0 rgba(0,0,0,0.03) !important;
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(16px) !important;
  }
  #mobile-menu {
    border-radius: 1.25rem !important;
    margin: 0.5rem !important;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10), 0 2px 8px 0 rgba(0,0,0,0.04) !important;
    background: rgba(255,255,255,0.98) !important;
    padding: 1.5rem 1rem 1.5rem 1rem !important;
    transition: box-shadow 0.3s, background 0.3s;
  }
  .rounded-lg, .rounded-2xl, .rounded-full, .rounded {
    border-radius: 1.25rem !important;
  }
  button, .btn, a.inline-flex, a.bg-brand-gold, a.bg-brand {
    border-radius: 1.25rem !important;
    box-shadow: 0 2px 8px 0 rgba(234,179,8,0.08);
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  button:active, .btn:active, a:active {
    box-shadow: 0 1px 4px 0 rgba(234,179,8,0.12);
    background: #f5f5f7 !important;
    color: #1a1a1a !important;
  }
  .card, .service-card, .project-item, article {
    border-radius: 1.25rem !important;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
    background: #fff !important;
