/* Adira Fitness — base styles */
:root{
  /* Light theme */
  --bg:#f7f8fa;          /* page background */
  --panel:#ffffff;       /* cards/nav */
  --elev:#ffffff;        /* elevated surfaces */
  --text:#0f1720;        /* primary text */
  --muted:#6b7280;       /* secondary text */
  --line:#e5e7eb;        /* hairline borders */
  --accent:#0e3a57;      /* brand navy (logo) */
  --accent-2: var(--accent);    /* align secondary accent to brand blue */
  --radius:14px;
  --radius-sm:10px;
  --container:1200px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Familjen Grotesk", "Familjen Grotesk Placeholder", sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

/* Smooth anchor scrolling */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}

.container{
  width:min(100% - 2rem, var(--container));
  margin-inline:auto;
}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;z-index:40;background:transparent;border-bottom:0;backdrop-filter:none;padding-top:max(env(safe-area-inset-top),0px)}
.site-header.scrolled{background:rgba(255,255,255,.9);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--line);box-shadow:0 6px 20px rgba(0,0,0,.06)}
.nav{display:flex;align-items:center;gap:1rem;padding:0.75rem 0;}
.logo{display:inline-flex;align-items:center;gap:.6rem;color:inherit;text-decoration:none;padding:.35rem .6rem;border-radius:12px;transition:background .2s ease,border-color .2s ease,filter .2s ease}
.site-header:not(.scrolled) .logo{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);backdrop-filter:saturate(1.2) blur(6px)}
.site-header.scrolled .logo{background:transparent;border-color:transparent}
.logo:hover{filter:brightness(1.03)}
.logo-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#1c5c87);font-weight:900;color:#fff}
.logo-img{width:36px;height:36px;object-fit:contain;border-radius:8px;background:transparent}
.logo-text{font-weight:800;letter-spacing:.2px}

.primary-nav{margin-left:auto;}
.nav-list{display:flex;gap:.8rem;list-style:none;margin:0;padding:0}
.nav-list a{display:block;padding:.55rem .9rem;border-radius:10px;color:var(--text);text-decoration:none}
.nav-list a:hover,.nav-list a.active{background:#f2f4f7;border:1px solid var(--line)}
/* Transparent state over hero (desktop only for menu links) */
.site-header:not(.scrolled) .logo-text{color:#fff}
.site-header.scrolled .logo-text{color:var(--text)}
.site-header:not(.scrolled) .nav-toggle span{background:#fff}
@media (min-width: 821px){
  .site-header:not(.scrolled) .nav-list a{color:#fff}
  .site-header:not(.scrolled) .nav-list a:hover,
  .site-header:not(.scrolled) .nav-list a.active{background:rgba(255,255,255,.12);border-color:transparent}
}
.btn-cta{margin-left:.5rem}

.nav-toggle{display:none;flex-direction:column;gap:4px;background:none;border:0;color:inherit}
.nav-toggle span{width:22px;height:2px;background:#111;border-radius:2px;transition:transform .2s ease, opacity .15s ease}
/* Turn hamburger into an X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.9rem 1.1rem;border-radius:12px;text-decoration:none;font-weight:700}
.btn-small{padding:.6rem .8rem;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--text)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(1.07)}
.btn-link{color:var(--text);border-bottom:2px solid #0000;padding:0 .2rem .2rem;border-radius:0}
.btn-link:hover{border-color:#0003}
.btn-upper{text-transform:uppercase;letter-spacing:.6px}
.btn-cta{background:var(--accent);border:1px solid var(--accent);padding:.7rem 1rem;border-radius:12px;color:#fff;text-decoration:none}
.btn-cta:hover{filter:brightness(1.05)}

/* Hero */
.hero{position:relative;min-height:100svh;background:linear-gradient(#0003,#0003), var(--hero-image, none);background-size:cover;background-position:center;color:#fff}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.42) 45%, rgba(0,0,0,.58));}
.hero-grid{position:relative;display:grid;grid-template-columns:1fr;gap:2rem;align-items:center;padding:clamp(8rem,22vh,16rem) 0 3rem}
.hero-copy h1{font-size: clamp(2rem, 2.3rem + 2.4vw, 4.2rem);line-height:1.05;margin:.75rem 0 1rem;font-weight:900;letter-spacing:.2px}
.lead{font-size:1.08rem;color:#e5e7eb;max-width:40ch}
.badge{display:inline-block;background:var(--accent);color:#fff;padding:.45rem .8rem;border-radius:999px;font-weight:800;font-size:.85rem}
.hero-actions{display:flex;gap:.8rem;margin-top:1.3rem}
.hero .btn-link{color:#fff;border-bottom-color:#ffffff00}
.hero .btn-link:hover{border-bottom-color:#ffffff33}

.hero-side{display:grid;gap:1rem;justify-items:end}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}
.testimonial{max-width:380px}
.testimonial .byline{margin-top:.6rem;color:var(--muted);font-size:.9rem}
.micro-stats{display:flex;align-items:center;gap:.8rem;background:#fff;border:1px solid var(--line);border-radius:14px;padding:.6rem .8rem;color:#111}
.avatars{display:flex}
.avatars span{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#e9eef1,#cfd8df);border:2px solid #fff;margin-left:-6px}
.avatars span:first-child{margin-left:0}

/* Sections */
.section{padding:4rem 0;scroll-margin-top:80px}
.section.alt{background:#fff}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:2rem}
.section-head h2{margin:0;font-size:2rem}
.section-head.with-tabs{align-items:center}
/* Normalize section headings to match Services */
.section h2{font-size:2rem; margin:0}
/* Consistent heading→subheader spacing across sections */
.section h2 + p{margin-top:.5rem}

/* Stack Services heading above its subheader */
#services .section-head{flex-direction:column;align-items:flex-start;gap:.5rem}
#services .section-head p{margin:0}

/* About: match Services spacing for first paragraph */
#about .about-copy h2{margin:0}
#about .about-copy p:first-of-type{margin-top:.5rem}

/* Try Adira Free: match Services spacing */
#trial .two-col > div:first-child h2{margin:0}
#trial .two-col > div:first-child p:first-of-type{margin-top:.5rem}

.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:center}
.two-col.middle{align-items:center}
/* About layout: content left, image right on desktop */
@media (min-width: 821px){
  #about .about-copy{grid-column:1;grid-row:1}
  #about .about-media{grid-column:2;grid-row:1}
}
/* Trial grid overrides to stretch columns equally */
.trial-grid{align-items:stretch;gap:1.5rem}
.trial-grid > .form-card{align-self:start}
.trial-grid > .trial-left{align-self:stretch}

/* Image containers - standardized */
.image-container{
  border-radius:var(--radius);
  overflow:hidden;
  display:block;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#000;
  margin:0;
}
.image-container img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.image-container.aspect-square{aspect-ratio:1/1}
.image-container.aspect-landscape{aspect-ratio:3/2}
.image-container.aspect-portrait{aspect-ratio:2/3}
.image-container.full-height{height:100%}

/* Trial media */
.trial-media{max-height:640px;background:transparent}

/* About media */
.about-media{
  border-radius:var(--radius);
  overflow:hidden;
  display:block;
  height:auto;
  max-height:520px;
  max-width:90%;
  aspect-ratio:3/4;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#000;
  margin:0;
}
.about-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* Visit media */
.visit-media{
  border-radius:var(--radius);
  overflow:hidden;
  display:block;
  height:auto;
  max-height:400px;
  aspect-ratio:16/10;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#000;
  margin:0;
}
.visit-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.checklist{list-style:none;padding:0;margin:1rem 0 0}
.checklist li{position:relative;padding-left:1.5rem;margin:.4rem 0}
.checklist li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:900}

.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.feature{background:var(--panel);border:1px solid var(--line);padding:1.5rem;border-radius:var(--radius)}
.feature .icon{font-size:1.5rem;margin-bottom:.75rem;display:block}
.feature h3{margin:0 0 .5rem}
.feature p{margin:0;color:var(--muted)}

.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem}
.program{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:0;overflow:hidden}
.program .media{display:block;margin:0 0 1rem;height:360px;background:#000}
.program .media img{width:100%;height:100%;display:block;object-fit:cover}
.program h3{margin:0 0 .5rem;padding:0 1rem}
.program p{margin:0 0 1rem;padding:0 1rem;color:var(--muted);font-size:.95rem}

/* Tabs */
.tabs{display:flex;gap:.5rem}
.tab{background:#fff;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:.5rem .9rem;cursor:pointer}
.tab.active{background:#f2f4f7;}
.tab-panels{margin-top:1rem}
.tab-panel[hidden]{display:none}

/* CTA / forms */
.cta{background:radial-gradient(1200px 400px at 0% 0%, #f3f6f9, #f7f8fa)}
.form-card{padding:1.5rem}

/* Section transitions: clear dividers between sections */
.section + .section{border-top:1px solid var(--line)}
.section.alt + .section.alt{border-top:1px solid var(--line)}
/* Visit section background */
.visit{background:#fff}

/* Content spacing helpers */
.card h3, .card h4 {margin:0 0 .5rem}
.card p {margin:0 0 .75rem}
.card p:last-child {margin-bottom:0}


/* Footer */
.site-footer{border-top:1px solid var(--line);background:#f8fafc;padding:2rem 0 3rem;margin-top:0;color:#0f1720}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem}
.tiny{color:#6b7280;margin-top:1rem}


/* Footer map */
.map-embed{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);height:220px;background:#fff}
.map-embed iframe{width:100%;height:100%;border:0}

/* Footer social */
.social{margin:.3rem 0 0}
.social-link{display:inline-flex;align-items:center;gap:.5rem;color:inherit;text-decoration:none;border-radius:10px;padding:.25rem .4rem}
.social-link:hover{background:#eef2f6}
.icon-instagram{display:inline-block}

/* Utilities */
.muted{color:var(--muted)}
.nowrap{white-space:nowrap}

/* Animations removed: reveal classes no longer animate; ensure visible */
.reveal{opacity:1;transform:none;filter:none}

/* Responsive */
@media (max-width: 1000px){
  .hero-grid{grid-template-columns:1fr;align-items:end}
  .hero-side{justify-items:start}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-bullets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .program .media{height:300px}
}

@media (max-width: 820px){
  .nav-toggle{display:flex}
  .nav-list{position:absolute;right:1rem;top:64px;z-index:50;background:#fff;border:1px solid var(--line);border-radius:14px;padding:.5rem;display:none;flex-direction:column;min-width:230px}
  .nav-list.show{display:flex}
  .nav-list a{padding:.9rem 1rem}
  .btn-cta{display:none}
  .cta-in-menu{display:block}
  .two-col{grid-template-columns:1fr;gap:2rem}
  .about-media{max-height:280px;aspect-ratio:16/10;max-width:100%;margin-inline:auto;justify-self:center}
  .visit-media{max-height:300px;aspect-ratio:3/2}
  .trial-media{max-height:520px}
  #trial .trial-media{aspect-ratio:3/4}
  /* Center Trial image similar to About */
  #trial .trial-media{margin-inline:auto;justify-self:center}
  /* About: image centered; text left-aligned but centered block */
  #about .two-col{justify-items:center;gap:1rem}
  #about .two-col > :not(figure){text-align:left;justify-self:center;max-width:42ch}
  #about .checklist{text-align:left}
  /* Mobile hero: nudge background toward right side */
  .hero.hero-fit-mobile{background-position:72% center}
  .feature-grid{grid-template-columns:1fr;gap:1rem}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .map-embed{height:200px}
}

/* Visit section map larger than footer */
.visit .map-embed{height:380px}
@media (max-width: 820px){
  .visit .map-embed{height:320px}
}
@media (max-width: 560px){
  .visit .map-embed{height:280px}
}

@media (max-width: 560px){
  .section{padding:3rem 0}
  .feature-grid{grid-template-columns:1fr}
  .card-grid{grid-template-columns:1fr}
  .feature-bullets{grid-template-columns:1fr}
  .two-col{gap:1.5rem}
  .about-media{max-height:240px;aspect-ratio:3/2;max-width:100%;margin-inline:auto;justify-self:center}
  .visit-media{max-height:250px;aspect-ratio:4/3}
  .trial-media{max-height:420px}
  #trial .trial-media{aspect-ratio:3/4}
  /* Home hero: small screens */
  /* No extra rules needed here; 820px rule handles position */
  .program .media{height:400px}
  /* Hero text fit on small screens */
  .hero-copy h1{font-size:clamp(2.4rem, 10.5vw, 3.4rem);line-height:1.06}
  .hero-copy .nowrap{white-space:nowrap}
  .hero .lead{font-size:1rem;max-width:38ch}
  .hero-actions{flex-direction:column;align-items:flex-start;gap:.6rem}
  .badge{font-size:.78rem;padding:.38rem .7rem}
}

/* Hide CTA-duplicate inside menu on larger screens */
.cta-in-menu{display:none}

/* Ensure third-party widgets fit on mobile */
.mindbody-widget, .mindbody-widget iframe, healcode-widget{
  max-width:100% !important;
  width:100% !important;
}

/* (no background lock for default mobile menu) */
