/* F3 South Cary — site styles */
:root {
  --ink: #0a1a33;
  --ink-2: #13284a;
  --paper: #ffffff;
  --soft: #f2f5f9;
  --text: #17191e;
  --muted: #5a6170;
  --line: #dde3ec;
  --accent: #005eb8;
  --accent-dark: #004a91;
  --accent-light: #7cbcf5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 8px 24px rgba(10, 26, 51, .07);
  --wrap: 1140px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-bootcamp: #3d4452;
  --t-run: #0f8a8a;
  --t-ruck: #6b7a2a;
  --t-kettlebell: #8a3ffc;
  --t-3rdf: #b7791f;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #e6ecf5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section--dark .lede { color: #b3c0d4; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 51, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span { font: 600 1.25rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #cad6e8; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: 8px; padding: 11px 18px; color: #fff; }
.nav .btn:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--ink); padding: 8px 16px 20px; gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; padding: 16px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 94, 184, .55), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(0, 94, 184, .3), transparent 60%),
    linear-gradient(180deg, #0c2140, #071427);
}
.hero::after {
  /* faint saltire */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - 60px), rgba(255,255,255,.045) calc(50% - 60px), rgba(255,255,255,.045) calc(50% + 60px), transparent calc(50% + 60px)),
    linear-gradient(to bottom right, transparent calc(50% - 60px), rgba(255,255,255,.045) calc(50% - 60px), rgba(255,255,255,.045) calc(50% + 60px), transparent calc(50% + 60px));
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero .eyebrow, .section--dark .eyebrow, .section--dark .num, .section--dark .quote span { color: var(--accent-light); }
.hero p { font-size: 1.2rem; color: #c5d2e4; max-width: 560px; margin-bottom: 32px; }
.hero-crest { justify-self: center; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; background: #000; box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.6); display: grid; place-items: center; }
.hero-crest img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; image-rendering: auto; }
.hero--page .wrap { display: block; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero--page p { margin-bottom: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-crest { display: none; }
}

/* Stats strip */
.stats { background: var(--accent); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.stat b { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--head); }
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
@media (max-width: 600px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid--5, .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section--dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.07); box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.section--dark .card p { color: #a9b6ca; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 94, 184, .1); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.num { font: 600 2.6rem/1 var(--head); color: var(--accent); margin-bottom: 10px; display: block; }
.section-head { margin-bottom: 40px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Timeline (what to expect) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.section--soft .timeline li::before { box-shadow: 0 0 0 4px var(--soft); }
.timeline time { font: 600 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.timeline h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.timeline p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.term { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.term dt { font: 600 1.05rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.term dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent-dark), #1a7fd6); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* Workouts */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-bottom: 28px; }
.toolbar-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--text);
  padding: 8px 14px; border-radius: 999px; font: 500 .9rem/1 var(--body); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.day-group { margin-bottom: 36px; }
.day-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.day-head h3 { margin: 0; font-size: 1.5rem; }
.day-head .badge-today { background: var(--accent); color: #fff; font: 600 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.day-head small { color: var(--muted); font-size: .9rem; }
.wo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .wo-list { grid-template-columns: 1fr; } }
.wo {
  display: grid; grid-template-columns: 78px 1fr; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.wo-time { text-align: center; background: var(--soft); border-radius: 10px; padding: 10px 4px; align-self: start; }
.wo-time b { display: block; font: 600 1.45rem/1 var(--head); }
.wo-time span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.wo h4 { font-size: 1.2rem; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.wo-where { font-weight: 500; margin: 0; }
.wo-addr { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.wo-notes { font-size: .92rem; color: var(--muted); margin: 0 0 10px; }
.wo-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 600; }
.wo-links a { text-decoration: none; }
.wo-links a:hover { text-decoration: underline; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pill { font: 600 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; color: #fff; background: var(--t-bootcamp); }
.pill--run { background: var(--t-run); }
.pill--ruck { background: var(--t-ruck); }
.pill--kettlebell { background: var(--t-kettlebell); }
.pill--3rdf { background: var(--t-3rdf); }
.pill--q { background: transparent; color: var(--text); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.pill--closed { background: #c62828; }
.wo--closed h4, .wo--closed .wo-where { text-decoration: line-through; opacity: .6; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

.loc-group { margin-bottom: 28px; }
.loc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.loc-head h3 { margin: 0; font-size: 1.4rem; }
.loc-head a { font-weight: 600; font-size: .9rem; text-decoration: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--soft); }
.map-embed iframe { display: block; width: 100%; height: min(70vh, 560px); border: 0; }
.map-note { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Upcoming (home) */
.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 28px; }
.up { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.up:hover { border-color: var(--accent); transform: translateY(-1px); }
.up .wo-time { min-width: 64px; padding: 8px 4px; }
.up .wo-time b { font-size: 1.15rem; }
.up h4 { margin: 0 0 2px; font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.up p { margin: 0; color: var(--muted); font-size: .88rem; }
.up-day { font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 12px; }

/* Contact */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { flex: none; margin: 0; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--ink); color: #a9b6ca; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d5d8de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 320px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #7f8591; }

.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 1.2em; }
.quote { font: 500 clamp(1.4rem, 3vw, 2rem)/1.3 var(--head); text-transform: uppercase; color: #fff; max-width: 820px; margin: 0 auto; }
.quote span { color: var(--accent); }

.region-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.region-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.region-card h3 { color: var(--accent-dark); }
.card .checklist:last-child { margin-bottom: 0; }

/* Photos */
.hero--photo { background: linear-gradient(90deg, rgba(10, 26, 51, .92) 0%, rgba(10, 26, 51, .6) 45%, rgba(10, 26, 51, .1) 100%), var(--hero-img) center 50% / cover no-repeat; }
.hero--service { --hero-img: url("../img/service-hero.jpg"); }
.hero--photo::after { display: none; }
.hero--photo .wrap { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(64px, 10vw, 120px); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure, .photo { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figcaption, .photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.photo { margin-top: 24px; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo--wide { margin-top: 48px; }
.photo--wide img { aspect-ratio: 16 / 7; object-fit: cover; object-position: center 60%; }

.hero--home { --hero-img: url("../img/hero-home.jpg"); background-position: center, center 62%; }
.hero--home .wrap { grid-template-columns: 1fr; padding-top: clamp(96px, 16vw, 200px); padding-bottom: clamp(88px, 14vw, 180px); }
.hero--new { --hero-img: url("../img/hero-new.jpg"); background-position: center, center 72%; }
.hero--workouts { --hero-img: url("../img/hero-workouts.jpg"); background-position: center, center 72%; }
.hero--neighbors { --hero-img: url("../img/hero-neighbors.jpg"); background-position: center, center 40%; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.gallery--3 img { aspect-ratio: 4 / 3; object-position: center; }
@media (max-width: 860px) { .gallery--3 { grid-template-columns: 1fr; } }
.card-img { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 22px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.hero--photo .wrap > div, .hero--page.hero--photo .wrap { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .5); }
.hero--home .wrap > div { max-width: 640px; }
.hero--photo, .hero--home { background-image: linear-gradient(90deg, rgba(10, 26, 51, .82) 0%, rgba(10, 26, 51, .55) 40%, rgba(10, 26, 51, .08) 70%, rgba(10, 26, 51, 0) 100%), var(--hero-img); }
@media (max-width: 860px) {
  .hero--photo, .hero--home { background-image: linear-gradient(rgba(10, 26, 51, .55), rgba(10, 26, 51, .7)), var(--hero-img); }
}
