/* =========================================================
   CrossFit Reckoning — site styles
   Bold, dark, high-impact. Inspired by CrossFit Explode.
   ========================================================= */

:root {
  /* LIGHT THEME — white background, navy + gold from logo */
  --bg: #ffffff;
  --bg-2: #f5f6fa;       /* light gray for alternating sections */
  --bg-3: #eceef4;       /* slightly darker gray for cards */
  --bg-dark: #1c2554;    /* navy from logo, for footer + emphasis */
  --text: #1c2554;       /* navy text on white */
  --text-dim: #5a5a6a;   /* secondary text */
  --muted: #9a9aa6;      /* fine print */
  --accent: #d4a02a;     /* warm gold — matched to logo */
  --accent-2: #b88820;   /* deeper gold for hover (better contrast on white) */
  --navy: #1c2554;       /* navy blue — matched to logo */
  --navy-2: #2a3674;     /* lighter navy for hover */
  --line: #e5e6ec;       /* subtle borders */
  --max: 1200px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Prevent iOS from auto-zooming on form inputs (16px minimum input font) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* No horizontal scroll on mobile, ever */
  overflow-x: hidden;
}

/* All tappable elements meet Apple's 44x44px touch target minimum */
a, button, input[type="submit"], .btn {
  -webkit-tap-highlight-color: rgba(212, 160, 42, 0.2);
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 720px; }

.center { text-align: center; }

h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

p { margin: 0 0 1rem; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
}
.topbar-link {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.topbar-link:hover { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.topbar-sep { color: rgba(255,255,255,0.4); }

@media (max-width: 600px) {
  .topbar-inner > .topbar-link { display: none; }
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(28, 37, 84, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 80px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
}
.logo-fallback { display: none; } /* shown only if logo.png missing (handled by onerror) */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  border-radius: var(--radius);
  font-weight: 900;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.logo-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Nav */
.site-nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-2); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

/* Sticky "Free Intro" button — visible at all times on mobile next to the hamburger */
.mobile-cta {
  display: none;
  background: var(--accent);
  color: var(--navy);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}
.mobile-cta:hover { background: var(--accent-2); color: var(--navy); }
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .mobile-cta { display: inline-flex; align-items: center; }
  .header-inner { gap: 0.5rem; }
  .site-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(28, 37, 84, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem;
  }
  .site-nav li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  /* Hero stays bold — navy + photo overlay for contrast against the white site */
  background:
    linear-gradient(180deg, rgba(28,37,84,0.55), rgba(28,37,84,0.85)),
    url('images/hero.jpg') center/cover no-repeat,
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat,
    var(--navy);
  color: #fff;
  padding: 5rem 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(212,160,42,0.2), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow.center { display: block; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}
/* On light backgrounds, ghost button needs navy borders */
.section .btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
}
.section .btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}
.btn-large {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
  background: var(--bg);
  color: var(--text);
}
/* "dark" sections now use navy background — bold contrast against white */
.section.dark {
  background: var(--navy);
  color: #fff;
}
.section.dark .section-lead { color: rgba(255,255,255,0.85); }
.section.dark .section-title { color: #fff; }
.section.dark p { color: rgba(255,255,255,0.85); }
.section.dark h3, .section.dark h4 { color: #fff; }

/* "alt" light gray sections for visual rhythm without going full navy */
.section.alt { background: var(--bg-2); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.5rem 0 1rem;
  color: var(--navy);
}
.section-lead {
  max-width: 760px;
  margin: 0 auto 3rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ===== PILLARS ===== */
/* Gym photo behind the "More Than A Gym" section — photo more visible */
.pillars {
  position: relative;
  background-image: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.82)),
                    url('images/gallery-6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

/* Photo behind the "Group Fitness Classes" (programs) section */
.section.dark#programs {
  background-image: linear-gradient(rgba(28,37,84,0.78), rgba(28,37,84,0.85)),
                    url('images/gallery-3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

/* Photo behind the "Class Schedule" (schedule) section */
.section.dark#schedule {
  background-image: linear-gradient(rgba(28,37,84,0.80), rgba(28,37,84,0.88)),
                    url('images/gallery-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.pillar {
  background: #fff;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(28, 37, 84, 0.04);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(28, 37, 84, 0.08);
}
.pillar-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--navy);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--navy); }
.pillar p { color: var(--text-dim); margin: 0; }

@media (max-width: 800px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  background: rgba(255,255,255,0.08);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
.step p { color: rgba(255,255,255,0.85); margin: 0; }
/* On light "alt" sections instead of navy */
.section.alt .step,
.section:not(.dark) .step {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 3px rgba(28, 37, 84, 0.04);
}
.section.alt .step h3,
.section:not(.dark) .step h3 { color: var(--navy); }
.section.alt .step p,
.section:not(.dark) .step p { color: var(--text-dim); }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(28, 37, 84, 0.06);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
}
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-tall, .gallery-wide { grid-row: auto; grid-column: auto; }
}

/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
.day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 0.85rem;
  box-shadow: 0 1px 3px rgba(28, 37, 84, 0.04);
}
.day h4 {
  font-size: 1.05rem;
  text-align: center;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.day ul {
  list-style: none;
  padding: 0; margin: 0;
}
.day li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  text-align: center;
}
.day li:last-child { border: 0; }
/* Schedule on dark navy section */
.section.dark .day { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.section.dark .day h4 { color: var(--accent); border-bottom-color: rgba(212,160,42,0.4); }
.section.dark .day li { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.1); }

@media (max-width: 1100px) {
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== REVIEWS ===== */
.reviews-embed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(28, 37, 84, 0.05);
}
.review-card .stars {
  color: var(--accent);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.review-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
}
.review-author {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .reviews-embed { grid-template-columns: 1fr; }
}

/* ===== VISIT / MAP ===== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
.visit-info h3 { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.5rem; }
.visit-info h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: inherit; }
.visit-info .address { font-size: 1.05rem; }
/* On light visit section, address text is navy */
.section:not(.dark) .visit-info h3 { color: var(--navy); }
.hours {
  list-style: none; padding: 0; margin: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.contact-list {
  list-style: none; padding: 0; margin: 0;
}
.contact-list li { padding: 0.3rem 0; }
.socials {
  display: flex; gap: 1rem; margin-top: 1.25rem;
}
.socials a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 380px;
  display: block;
}

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 1rem;
  box-shadow: 0 4px 20px rgba(28, 37, 84, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: block;
  margin-bottom: 1rem;
}
.contact-form label > span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 42, 0.15);
}
/* Form on a navy "dark" section */
.section.dark .contact-form { background: #fff; }
.section.dark .contact-form label > span { color: var(--navy); }

/* Success message after form submit */
.form-success {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(28, 37, 84, 0.08);
  margin-top: 1rem;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
}
.form-success h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto;
}

/* Error message */
.form-error {
  background: #fff5f5;
  border: 1px solid #f4c0c0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  color: #8b1a1a;
}
.form-error p { margin: 0; }
.form-error a { color: #8b1a1a; text-decoration: underline; }
.contact-form textarea { resize: vertical; }
.form-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0 0;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  padding: 4rem 0 2rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.page-header h1 { color: #fff; }
.page-header .eyebrow { color: var(--accent); }
.page-header .page-lead { color: rgba(255,255,255,0.85); }
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0.75rem 0;
}
.page-lead {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BLOG LIST ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 37, 84, 0.05);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(28, 37, 84, 0.1);
}
.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favor the top of the image so faces don't get cropped */
  object-position: center 25%;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.blog-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.blog-card h2 a {
  color: var(--navy);
  text-decoration: none;
}
.blog-card h2 a:hover { color: var(--accent); }
.blog-card-link { color: var(--accent); }
.blog-card p { color: var(--text-dim); margin: 0 0 1rem; }
.blog-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== POST PAGE ===== */
.post { padding: 3rem 0 5rem; }
.post-back {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.post-back a { color: var(--text-dim); }
.post-back a:hover { color: var(--accent); }
.post-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.post h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.post-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.post-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.post-body p { margin: 0 0 1.4rem; }
.post-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
}
.post-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}
.post-body ul, .post-body ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--navy);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body a { color: var(--accent); text-decoration: underline; }
.post-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ===== DROP IN CALLOUT ===== */
.dropin-callout {
  padding: 2rem 0;
  background: var(--bg);
}
.dropin-card {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 4px 16px rgba(28, 37, 84, 0.06);
}
.dropin-text { flex: 1; }
.dropin-text .eyebrow { display: block; margin-bottom: 0.5rem; }
.dropin-text h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.dropin-text p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}
.dropin-card .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 800px) {
  .dropin-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem;
    gap: 1.25rem;
  }
  .dropin-card .btn { width: 100%; text-align: center; }
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-embed { margin-top: 2rem; }
.instagram-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(28, 37, 84, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 520px;
  margin: 0 auto;
}
.instagram-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 37, 84, 0.1);
  border-color: var(--accent);
  color: var(--navy);
}
.ig-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fdcd5d 0%, #f1684d 50%, #c13584 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}
.instagram-placeholder h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.instagram-placeholder p {
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.instagram-handle {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ===== COACH CARDS (Meet the Owners) ===== */
.coach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}
.coach-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28, 37, 84, 0.06);
  display: flex;
  flex-direction: column;
}
.coach-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
}
.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.coach-photo-fallback {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--navy);
  z-index: 0;
}
.coach-photo img { position: relative; z-index: 1; }
.coach-photo.no-photo .coach-photo-fallback { z-index: 1; }
.coach-body { padding: 1.75rem; }
.coach-role {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.coach-card h2 {
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 1rem;
}
.coach-creds {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.coach-creds li {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  padding: 0.25rem 0;
}
.coach-card p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.coach-personal {
  font-size: 0.9rem !important;
  font-style: italic;
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .coach-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(28, 37, 84, 0.04);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(28, 37, 84, 0.08);
}
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}
.faq-body p { margin: 0 0 1rem; }
.faq-body p:last-child { margin: 0; }
.faq-body a { color: var(--accent); text-decoration: underline; }

/* ===== DIRECTIONS PAGE ===== */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.directions-info h3 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.directions-info .big-address {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.directions-info h4 {
  margin-top: 1.5rem;
  color: var(--navy);
}
.directions-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.directions-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(28, 37, 84, 0.08);
  min-height: 500px;
}
.directions-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  display: block;
}

@media (max-width: 800px) {
  .directions-grid { grid-template-columns: 1fr; }
  .directions-map, .directions-map iframe { min-height: 320px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h5 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: rgba(255,255,255,0.85); }
.footer-blurb { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 0;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* CrossFit affiliate badge */
.cf-affiliate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  margin: 0 auto 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 0.15s ease;
}
.cf-affiliate:hover {
  transform: translateY(-2px);
  color: #fff;
}
.cf-affiliate-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.cf-affiliate-tag {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  margin-top: 4px;
  color: rgba(255,255,255,0.85);
}
.cf-affiliate-wrap {
  text-align: center;
  padding: 1.5rem 0 0;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE-FIRST OPTIMIZATIONS (90% of traffic)
   ========================================================= */
@media (max-width: 700px) {

  /* Tighter container padding on small screens */
  .container { padding: 0 1rem; }

  /* Sections breathe less on phone, focus on content */
  .section { padding: 3rem 0; }

  /* Hero — keep impact, fit small screens */
  .hero { min-height: 70vh; padding: 4rem 0; }
  .hero h1 { font-size: 2.4rem; line-height: 1.05; }
  .hero-sub { font-size: 1rem; }

  /* Section titles a bit smaller */
  .section-title { font-size: 2rem; }
  .section-lead { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Buttons: full-width on phone for huge tap targets */
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .btn { padding: 1rem 1.4rem; font-size: 1rem; }

  /* Logo doesn't crowd the hamburger */
  .logo-img { height: 44px; }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }

  /* Top bar: tighter on mobile */
  .topbar { font-size: 0.7rem; }
  .topbar-inner { height: 32px; }

  /* Form inputs at 16px to prevent iOS auto-zoom on focus */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
    padding: 0.9rem 1rem;
  }
  /* Bigger send button */
  .btn-large { padding: 1.2rem; font-size: 1.1rem; }

  /* Visit/contact: spacing fixes */
  .visit-info h3 { font-size: 1.5rem; }

  /* Map: don't take over the screen */
  .map-wrap, .map-wrap iframe { min-height: 280px; }

  /* Schedule: cards a bit roomier */
  .day { padding: 1rem 0.6rem; }
  .day h4 { font-size: 0.95rem; }
  .day li { font-size: 0.8rem; }

  /* Reviews + pillars: stack with comfortable spacing */
  .pillar { padding: 2rem 1.5rem; }
  .review-card { padding: 1.5rem; }

  /* Blog post body: easier to read on phones */
  .post-body { font-size: 1.05rem; line-height: 1.7; }
  .post-body h2 { font-size: 1.6rem; margin-top: 2rem; }
}

/* Tappable: every link + button gets a min-height for fingers */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle { padding: 14px; }
  .topbar-link { padding: 6px 4px; }
  .site-nav a { padding: 0.9rem 0; }
}
