/* ========================================================================
   ANF TANNING COMPANY — Responsive Stylesheet
   Mobile-first design · Breakpoints: 768px (tablet), 1024px (desktop)
   ========================================================================== */

/* ============================================================== */
/* <768px  —  MOBILE NAV POLISH                                   */
/* ============================================================== */
@media (max-width: 767px) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .nav-container {
    min-height: var(--nav-height-mobile);
  }

  .mobile-menu {
    width: 100vw;
    max-width: none;
  }

  .mobile-nav-link {
    font-size: 1.2rem;
    letter-spacing: .04em;
  }

  .mobile-nav-cta {
    margin-top: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height-mobile) + 1rem);
    gap: 1.75rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual img {
    height: 240px;
  }

  .contact-social .social-list,
  .footer-social {
    gap: .75rem;
  }

  .founder-child-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================== */
/* 768px+  —  TABLET & ABOVE                                       */
/* ============================================================== */
@media (min-width: 768px) {

  /* ---------- Layout vars ---------- */
  :root {
    --nav-height-mobile: var(--nav-height);
  }

  .container { padding: 0 2.5rem; }

  /* ---------- Header / Nav ---------- */
  .hamburger { display: none; }
  .site-nav { display: block; }

  .logo-mark { font-size: 2rem; }
  .logo-tagline { font-size: .65rem; }

  /* ---------- Hero ---------- */
  .hero { min-height: calc(740px - var(--nav-height-mobile)); padding-top: var(--nav-height-mobile); }
  .hero-content { padding-top: 0; }
  .hero-title { font-size: clamp(3.5rem, 6.5vw, 5.5rem); }
  .hero-ctas { flex-direction: row; gap: 1rem; }
  .hero-subtitle { font-size: 1.15rem; }

  /* ---------- Section heads ---------- */
  .section-lede { font-size: 1.1rem; }

  /* ---------- About ---------- */
  .about-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
  }

  /* ---------- Founder ---------- */
  .founder-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
  }
  .founder-child-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* ---------- Products ---------- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* ---------- Gallery ---------- */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* ---------- Process ---------- */
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .process-step {
    padding: 2.25rem 2rem;
  }

  /* ---------- Contact ---------- */
  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* ---------- Footer ---------- */
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3.5rem;
  }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  /* ---------- Floating buttons ---------- */
  .floating-actions {
    right: 1.5rem;
    bottom: 1.5rem;
    gap: 1rem;
  }
  .float-btn { width: 60px; height: 60px; font-size: 1.5rem; }

  /* ---------- Back to top ---------- */
  .back-to-top {
    left: 1.5rem;
    bottom: 1.5rem;
    width: 48px; height: 48px;
  }
}

/* ============================================================== */
/* 1024px+  —  DESKTOP                                            */
/* ============================================================== */
@media (min-width: 1024px) {

  .container { padding: 0 3rem; }

  /* ---------- Nav tighter gap ---------- */
  .nav-list { gap: 2.5rem; }
  .nav-link { font-size: .78rem; }

  /* ---------- Hero bigger ---------- */
  .hero { min-height: 800px; }
  .hero-title { font-size: clamp(4rem, 7vw, 6rem); }
  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
  }

  /* ---------- Products: 3 cols ---------- */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ---------- Gallery: two-column cards ---------- */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  /* ---------- Process: horizontal 5-col on large ---------- */
  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
  .process-step {
    grid-template-columns: 1fr;
    gap: .75rem;
    text-align: center;
    padding: 2rem 1.25rem 2.25rem;
  }
  .process-step:hover { transform: translateY(-6px); }
  .step-num {
    font-size: 3rem;
    padding: 0;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: .5rem;
    margin-bottom: .25rem;
  }
  .step-body { align-items: center; }
  .step-icon { margin: 0 auto 1rem; }

  /* ---------- About: pillars tighter ---------- */
  .about-pillars { gap: 2rem; }

  /* ---------- Contact padding ---------- */
  .contact-form { padding: 3rem; }

  /* ---------- Footer padding ---------- */
  .footer-grid { gap: 5rem; }
}

/* ============================================================== */
/* 1280px+  —  WIDE DESKTOP                                       */
/* ============================================================== */
@media (min-width: 1280px) {
  .container { padding: 0; }
}

/* ============================================================== */
/* Very small screens (< 380px) — tiny phones                     */
/* ============================================================== */
@media (max-width: 380px) {
  .hero-ctas .btn { padding: .85rem 1.25rem; font-size: .72rem; }
  .hero-title { font-size: 2.3rem; }
  .about-pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; align-items: center; text-align: left; }
  .pillar-icon { grid-row: span 2; }
  .pillar h4 { margin: 0; }
  .pillar p { margin: 0; }

  .section-divider.center::after { display: none; }
  .section-divider::after { display: none; }

  .floating-actions { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .float-btn { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ============================================================== */
/* Landscape tablets (768–1024, short height)                     */
/* ============================================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .hero-title { font-size: 3.25rem; }
  .process-timeline { grid-template-columns: repeat(5, 1fr); gap: .75rem; }
  .process-step { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1rem; }
  .step-num { font-size: 2.25rem; border-bottom: 1px solid var(--color-gold); padding-bottom: .35rem; margin-bottom: .35rem; }
  .step-icon { margin: 0 auto .75rem; }
  .step-body { align-items: center; }
}

/* ============================================================== */
/* Max height nav (hero won't squish)                             */
/* ============================================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: 600px; }
  .hero-scroll { display: none; }
}
