html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1A1A1A; background: #FFFFFF; }
.font-serif { font-family: 'Fraunces', serif; font-optical-sizing: auto; }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: #006CE4;
  transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.img-hover { transition: filter .5s ease, transform .6s ease; }
.img-hover:hover { filter: saturate(.5) brightness(1.05); }
.zoom-hover img { transition: transform .8s ease; }
.zoom-hover:hover img { transform: scale(1.08); }
.divider { height: 1px; background: #006CE4; opacity: .2; }
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.scroll-x { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.scroll-x > * { scroll-snap-align: start; }
.hamburger-line { transition: all .3s ease; transform-origin: center; }
.menu-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-item.open .accordion-content { max-height: 400px; }
.accordion-item.open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .3s ease; }
.timeline-line::before {
  content: ''; position: absolute; left: 19px; top: 0; bottom: 0;
  width: 2px; background: #006CE4;
}
@media (min-width: 768px) { .timeline-line::before { left: 23px; } }
.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: #1A1A1A;
  border-left: 3px solid #FEBF00;
  padding-left: 1.5rem;
}
.fade-in { animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-overlay { background: linear-gradient(to top, rgba(0,20,60,0.8) 0%, rgba(0,40,100,0.3) 50%, transparent 100%); }
.btn-primary { background: #006CE4; color: white; transition: all .3s ease; }
.btn-primary:hover { background: #003B95; }
.btn-outline { border: 1px solid #006CE4; color: #006CE4; transition: all .3s ease; }
.btn-outline:hover { background: #006CE4; color: white; }
.card-hover { transition: all .3s ease; }
.card-hover:hover { border-color: #006CE4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,108,228,0.08); }
.rating-star { color: #FEBF00; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-track { background: #F2F7FF; }
.scroll-x::-webkit-scrollbar-thumb { background: #006CE4; border-radius: 3px; }
#backToTop {
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  transform: translateY(20px);
}
#backToTop.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ========================
   MOBILE APP-LIKE STYLES
   ======================== */

/* Hide bottom nav on desktop */
.mobile-bottom-nav { display: none; }

@media (max-width: 767px) {
  /* App shell: prevent body scroll bounce, safe areas */
  html, body {
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
  }
  body {
    padding-bottom: 72px; /* space for bottom nav */
    min-height: 100dvh;
  }

  /* Header shrinks for app feel */
  header { height: 56px !important; }
  header .max-w-\[1240px\] { height: 56px; }
  header .logo-text { font-size: 1rem; }
  header .logo-sub { font-size: 8px; letter-spacing: 0.15em; }
  header .nav-desktop { display: none !important; }

  /* Show bottom nav on mobile */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid #E5E9EF;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #8A8A8A;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .mobile-bottom-nav a.active-tab {
    color: #006CE4;
  }
  .mobile-bottom-nav a.active-tab::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #006CE4;
    border-radius: 0 0 3px 3px;
  }
  .mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
    transition: transform .2s;
  }
  .mobile-bottom-nav a.active-tab svg {
    transform: scale(1.1);
  }

  /* Hero heights for mobile app feel */
  .hero-app { height: 56vh; }
  .hero-app h1 { font-size: 2rem; }
  .section-app { padding: 1.5rem 1rem; }

  /* Cards go full-bleed on mobile */
  .card-app {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Pull to refresh indicator area */
  .pull-indicator {
    height: 4px;
    background: transparent;
    transition: background .3s;
  }

  /* Smooth page transitions */
  .page-content {
    animation: slideUp .35s ease;
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Mobile-only quick action FAB */
  .mobile-fab {
    display: flex;
    position: fixed;
    bottom: 84px;
    right: 16px;
    z-index: 55;
    width: 56px;
    height: 56px;
    background: #006CE4;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,108,228,0.35);
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s, box-shadow .2s;
  }
  .mobile-fab:active {
    transform: scale(0.92);
  }

  /* Hide desktop-only elements on mobile */
  .desktop-only { display: none !important; }

  /* Improve form inputs for mobile */
  input[type="text"], input[type="email"], input[type="tel"],
  select, textarea {
    font-size: 16px !important;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 12px !important;
    padding: 12px 16px !important;
  }

  /* Tabs become scrollable chips on mobile */
  .filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips button { flex-shrink: 0; }

  /* Bottom sheet style modals */
  .bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 70;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32,.72,0,1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  }
  .bottom-sheet.open { transform: translateY(0); }
  .bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 12px auto 8px;
  }

  /* Back to top hidden on mobile (bottom nav serves this) */
  #backToTop { display: none; }

  /* WhatsApp FAB adjusts for bottom nav */
  #whatsappBtn {
    bottom: 84px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (min-width: 768px) {
  .mobile-fab { display: none; }
}

/* Larger screens: normal spacing */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
