/* ============================================
   Triumph Performance Chiropractic
   Production stylesheet
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #13AFED;
  --blue-hover: #0E9AD4;
  --navy: #03437B;
  --navy-dark: #022B52;
  --sand: #F4EFE6;
  --sand-dark: #EDE7D9;
  --charcoal: #2F2F2F;
  --charcoal-soft: rgba(47, 47, 47, 0.85);
  --white: #FFFFFF;
  --gray-muted: #A4A4A4;
  --brick: #8B2F2B;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'DM Sans', sans-serif;
  --shadow-card: 0 4px 16px rgba(3, 67, 123, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(3, 67, 123, 0.12);
  --radius-card: 12px;
  --radius-btn: 8px;
  --max-width: 1140px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-lg { padding: 120px 0; }

/* Skip link for accessibility */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 20px; z-index: 9999; }
.skip-link:focus { left: 16px; top: 16px; }

/* ============== NAV ============== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.06); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { display: flex; align-items: center; }
.nav-logo-img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { color: var(--navy); font-size: 14px; font-weight: 500; letter-spacing: 0.3px; transition: opacity 0.2s; opacity: 0.75; }
.nav-links a:hover, .nav-links a:focus { opacity: 1; }
.nav-cta { background: var(--blue); color: var(--white) !important; padding: 11px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: background 0.2s, color 0.2s; white-space: nowrap; opacity: 1 !important; }
.nav-cta:hover, .nav-cta:focus { background: var(--blue-hover); }
.nav-cta-alt { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); }
.nav-cta-alt:hover, .nav-cta-alt:focus { background: var(--navy); color: var(--white) !important; }
.nav-links .nav-cta + .nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-logo-img { height: 40px; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links.open { max-height: 460px; }
  .nav-links a { display: block; padding: 16px 24px; font-size: 16px; border-top: 1px solid rgba(0,0,0,0.04); }
  .nav-cta { margin: 16px 24px; text-align: center; display: block; border-radius: 6px; }
}

/* ============== HERO ============== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; background: var(--navy-dark); overflow: hidden; padding-top: 76px; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(2,30,60,0.86) 0%, rgba(2,30,60,0.66) 45%, rgba(2,30,60,0.42) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 760px; padding: 64px 0 56px; }
.hero-h1 { font-family: var(--font-display); color: var(--white); font-size: clamp(46px, 7vw, 78px); line-height: 1.04; letter-spacing: 1.5px; margin-bottom: 12px; }
.hero-h1-sub { font-family: var(--font-display); color: var(--blue); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; letter-spacing: 1px; margin-bottom: 28px; }
.hero-body { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.92); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-reassure { color: rgba(255,255,255,0.7); font-size: 14px; font-style: italic; margin-top: 16px; }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: var(--white); padding: 16px 32px; border-radius: var(--radius-btn); font-size: 16px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(19,175,237,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); padding: 15px 28px; border-radius: var(--radius-btn); font-size: 16px; font-weight: 500; transition: all 0.2s; border: 1.5px solid rgba(255,255,255,0.4); cursor: pointer; font-family: var(--font-body); }
.btn-secondary:hover, .btn-secondary:focus { background: rgba(255,255,255,0.08); border-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  html { scroll-behavior: auto; }
}

/* ============== SECTION HEADINGS ============== */
.section-heading { text-align: center; font-size: clamp(28px, 4vw, 36px); color: var(--navy); margin-bottom: 18px; font-weight: 700; line-height: 1.2; }
.section-heading:last-child, .section-heading + .how-steps, .section-heading + .treat-grid, .section-heading + .pricing-grid, .section-heading + .stories-grid { margin-top: 0; }
.how .section-heading { margin-bottom: 56px; }
.section-sub { text-align: center; font-size: 18px; color: var(--charcoal-soft); max-width: 660px; margin: 0 auto 56px; line-height: 1.7; }

/* ============== WHO ============== */
.who { background: var(--white); }
.who-lead { text-align: center; font-size: 19px; margin: 0 auto 56px; max-width: 660px; color: var(--charcoal-soft); font-style: italic; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.who-card { padding: 36px 28px; border-radius: var(--radius-card); background: var(--sand); border: 1px solid var(--sand-dark); transition: transform 0.25s, box-shadow 0.25s; }
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.who-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.who-card-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.who-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.who-card p { font-size: 15px; line-height: 1.7; color: var(--charcoal); }

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

/* ============== PHILOSOPHY ============== */
.philosophy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.philosophy::before { content: ''; position: absolute; top: -40%; right: -15%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(19,175,237,0.08) 0%, transparent 70%); }
.philosophy-inner { position: relative; z-index: 1; max-width: 800px; }
.philosophy-belief { font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 60px); line-height: 1.08; letter-spacing: 1px; margin-bottom: 32px; color: var(--white); }
.philosophy p { font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.philosophy-closer { font-size: 24px !important; font-weight: 600; color: var(--white) !important; margin-top: 16px !important; }

/* ============== FEEL ============== */
.feel { background: var(--white); }
.feel h2 { text-align: center; font-size: clamp(26px, 3.5vw, 32px); color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.feel-sub { text-align: center; font-size: 17px; color: var(--charcoal-soft); margin-bottom: 56px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.feel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto 56px; }
.feel-card { padding: 28px 24px 26px; border-radius: var(--radius-card); background: var(--sand); border: 1px solid var(--sand-dark); }
.feel-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.feel-card h3::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.feel-card p { font-size: 15px; line-height: 1.7; color: var(--charcoal); margin: 0; }
.feel-closing { text-align: center; font-size: 16px; max-width: 680px; margin: 0 auto; line-height: 1.85; color: var(--charcoal-soft); }

@media (max-width: 900px) { .feel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feel-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============== MEET DR. CLARK ============== */
.meet { background: var(--sand); }
.meet-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.meet-photo { aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; }
.meet-text h2 { font-size: clamp(28px, 3.5vw, 34px); color: var(--navy); font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.meet-text p { font-size: 16px; line-height: 1.85; margin-bottom: 18px; color: var(--charcoal); }
.meet-text .meet-cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: 15px; }
.meet-text .meet-cta:hover { color: var(--blue-hover); }

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

/* ============== TREAT (Services) ============== */
.treat { background: var(--sand); }
.treat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.treat-card { background: var(--white); border-radius: 10px; padding: 30px 28px; border: 1px solid rgba(0,0,0,0.04); transition: box-shadow 0.25s, transform 0.25s; }
.treat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.treat-card h3 { font-size: 18px; color: var(--navy); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.treat-card h3::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.treat-card p { font-size: 15px; line-height: 1.7; color: var(--charcoal); }
.callout { margin: 56px auto 0; max-width: 640px; padding: 24px 28px; background: var(--white); border-left: 4px solid var(--blue); border-radius: 4px; text-align: center; font-size: 16px; }
.callout a { color: var(--blue); font-weight: 600; }

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

/* ============== HOW IT WORKS ============== */
.how { background: var(--white); }
.how-steps { max-width: 1040px; margin: 0 auto; }
.how-step { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.how-step + .how-step { border-top: 1px solid rgba(0,0,0,0.06); }
.how-step:nth-child(even) .how-step-photo { order: 2; }
.how-step-photo { aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.how-step-photo img { width: 100%; height: 100%; object-fit: cover; }
.how-step-body { display: flex; flex-direction: column; }
.how-step-num { font-family: var(--font-display); font-size: 56px; color: var(--blue); line-height: 1; letter-spacing: 1px; margin-bottom: 10px; }
.how-step-body h3 { font-size: 22px; color: var(--navy); font-weight: 700; margin-bottom: 14px; line-height: 1.25; }
.how-step-body p { font-size: 16px; line-height: 1.8; color: var(--charcoal); }

@media (max-width: 800px) {
  .how-step { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .how-step:nth-child(even) .how-step-photo { order: 0; }
  .how-step-num { font-size: 44px; }
}

/* ============== STORIES ============== */
.stories { background: var(--sand); }
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
.story-card { background: var(--white); border-radius: var(--radius-card); border: 1px solid var(--sand-dark); overflow: hidden; display: flex; flex-direction: column; }
.story-card-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--navy); }
.story-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story-card-body { padding: 32px 32px 36px; }
.story-card h3 { font-size: 22px; color: var(--navy); font-weight: 700; margin-bottom: 16px; }
.story-card p { font-size: 16px; line-height: 1.8; margin-bottom: 14px; color: var(--charcoal); }
.story-card p:last-child { margin-bottom: 0; font-style: italic; color: var(--navy); }

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

/* ============== ROOTED ============== */
.rooted { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.rooted::before { content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(19,175,237,0.07) 0%, transparent 70%); }
.rooted-inner { position: relative; z-index: 1; max-width: 820px; }
.rooted h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 32px; color: var(--white); font-weight: 700; line-height: 1.15; }
.rooted p { font-size: 17px; line-height: 1.85; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.rooted-tag { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--blue); margin-top: 28px; letter-spacing: 1px; font-style: italic; }

/* ============== PRICING ============== */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 820px; margin: 0 auto; }
.price-card { background: var(--sand); padding: 40px 36px; border-radius: var(--radius-card); text-align: center; border: 1px solid var(--sand-dark); }
.price-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 12px; font-weight: 600; letter-spacing: 0.5px; }
.price-amount { font-family: var(--font-display); font-size: 56px; color: var(--blue); line-height: 1; margin-bottom: 16px; letter-spacing: 1px; }
.price-card p { font-size: 15px; line-height: 1.7; color: var(--charcoal); }
.pricing-footer { text-align: center; max-width: 660px; margin: 40px auto 0; font-style: italic; color: var(--charcoal-soft); font-size: 16px; line-height: 1.8; }

@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============== FINAL CTA ============== */
.final-cta { background: var(--navy); color: var(--white); text-align: center; }
.final-cta h2 { font-size: clamp(32px, 4.5vw, 46px); color: var(--white); margin-bottom: 20px; font-weight: 700; line-height: 1.15; }
.final-cta p { font-size: 18px; line-height: 1.75; max-width: 640px; margin: 0 auto 36px; color: rgba(255,255,255,0.85); }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ============== CONTACT ============== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 20px; color: var(--navy); margin-bottom: 18px; font-weight: 700; }
.contact-info-block { margin-bottom: 28px; }
.contact-info-label { font-size: 13px; color: var(--gray-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 600; }
.contact-info p, .contact-info a { font-size: 16px; color: var(--charcoal); line-height: 1.6; }
.contact-info a:hover { color: var(--blue); }
.contact-note { font-size: 13px; color: var(--gray-muted); font-style: italic; margin-top: 4px; }
.contact-hours { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--charcoal); line-height: 1.6; }
.contact-hours li { display: flex; gap: 12px; padding: 1px 0; }
.contact-hours li span { display: inline-block; min-width: 38px; font-weight: 600; color: var(--navy); }

.contact-form { background: var(--sand); padding: 36px 32px; border-radius: var(--radius-card); }
.contact-form h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.contact-form-sub { font-size: 14px; color: var(--charcoal-soft); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.12); border-radius: 6px; font-family: inherit; font-size: 15px; background: var(--white); transition: border-color 0.2s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,175,237,0.15); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-row .btn-primary { width: 100%; justify-content: center; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; }
.form-status.success { color: #1F7A45; }
.form-status.error { color: var(--brick); }

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

/* ============== FOOTER ============== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-tag { font-family: var(--font-display); font-size: 22px; color: var(--white); letter-spacing: 1px; margin-bottom: 8px; }
.footer-supporting { font-size: 14px; line-height: 1.65; }
.footer-col h4 { font-size: 13px; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.7); }
.footer-clinic { color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: 0.5px; display: inline-block; margin-bottom: 2px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-credits { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-credits a { color: inherit; text-decoration: underline; }
.footer-credits a:hover { color: var(--blue); }

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

/* ============== UTILITIES ============== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reveal on scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
