/* ============================================================
   The Spine Works Chiropractic — Generated Site Stylesheet
   ============================================================ */

:root {
  --primary: #2c5786;
  --primary-dark: #254a72;
  --primary-light: #eaeef3;
  --accent: #F57C33;
  --accent-hover: #dd702e;
  --warm: #FFF8F0;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --section-alt: #f8fafb;
  --border: #e5e7eb;
  --success: #22c55e;
  --star: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  font-size: 0.95rem; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 44px; width: auto; }
.nav-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 24px;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-arrow { font-size: 0.7rem; margin-left: 2px; transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px 0; min-width: 240px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
  margin-top: 12px; z-index: 110;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown-item {
  display: block; padding: 8px 20px; font-size: 0.9rem; color: var(--text);
  font-weight: 500; transition: background 0.15s;
}
.dropdown-item:hover { background: var(--section-alt); color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 1rem; transition: all 0.2s; cursor: pointer; border: none;
  font-family: inherit; text-align: center; justify-content: center;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--primary); border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--warm) 50%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(44,87,134,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 500; color: var(--text-light); margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .stars { color: var(--star); letter-spacing: 1px; }
.hero h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent, .hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-light); margin-bottom: 32px;
  line-height: 1.7; max-width: 520px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 24px; margin-top: 28px;
  font-size: 0.85rem; color: var(--text-light);
}
.hero-trust-item { display: flex; align-items: center; gap: 6px; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--success); }
.hero-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-image img { width: 100%; height: 500px; object-fit: cover; }

/* Hero floating quote card */
.hero-floating-card {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.hero-floating-card .avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary); flex-shrink: 0;
}
.hero-floating-card .quote {
  font-size: 0.9rem; font-style: italic; color: var(--text-light);
}
.hero-floating-card .author {
  font-weight: 600; color: var(--text); font-size: 0.8rem; margin-top: 2px;
}

/* ===== SOCIAL PROOF BAR ===== */
.proof-bar {
  background: var(--primary-dark); color: #fff; padding: 16px 0;
}
.proof-bar-inner {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  text-align: center; font-size: 0.95rem;
}
.proof-item { display: flex; align-items: center; gap: 8px; }
.proof-item strong { font-size: 1.3rem; font-weight: 800; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-alt { background: var(--section-alt); }
.section-warm { background: var(--warm); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all 0.3s; overflow: hidden;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { height: 220px; overflow: hidden; flex-shrink: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h2, .card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card-body p {
  font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-body .learn-more { margin-top: auto; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ===== ABOUT / CONTENT ===== */
.content-block h3 { font-size: 1.6rem; margin-bottom: 16px; }
.content-block p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.values-list { list-style: none; margin: 24px 0; }
.values-list li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.values-list li:last-child { border: none; }
.values-list .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.values-list .text strong { display: block; margin-bottom: 2px; }
.values-list .text span { font-size: 0.9rem; color: var(--text-light); }

/* ===== DIFFERENCE SECTION ===== */
.difference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.difference-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.difference-image img { width: 100%; height: 480px; object-fit: cover; }
.difference-content h2 { font-size: 2rem; margin-bottom: 16px; }
.difference-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.difference-content .eyebrow { margin-bottom: 12px; }
.difference-list { list-style: none; margin: 24px 0; }
.difference-list li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.difference-list li:last-child { border: none; }
.difference-list .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.difference-list .text strong { display: block; margin-bottom: 2px; }
.difference-list .text span { font-size: 0.9rem; color: var(--text-light); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #fff; padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--star); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author {
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.testimonial-author::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.testimonial-meta { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* ===== STAR RATINGS ===== */
.stars-row { display: flex; gap: 2px; }
.star { color: var(--star); font-size: 1.2rem; }
.star.empty { color: #ddd; }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px; background: #fff;
  border: none; text-align: left; font-size: 1.05rem;
  font-weight: 600; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-family: inherit; color: var(--text);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--section-alt); }
.faq-question .arrow { transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 20px; }

/* ===== LEAD FORMS ===== */
.lead-form-compact {
  background: var(--section-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-top: 24px;
}
.lead-form-full {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.lead-form-fields {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.lead-form-fields input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.2s;
}
.lead-form-btn { width: 100%; }
.lead-form-compliance {
  font-size: 0.75rem; color: var(--text-light);
  margin-top: 8px; text-align: center;
}
.marketing-opt-in {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0; cursor: pointer; font-size: 0.88rem;
  color: var(--text-light); line-height: 1.5;
}
.marketing-opt-in input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--primary); cursor: pointer;
}
@media (max-width: 600px) {
  .lead-form-fields { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-detail {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border: none; }
.contact-detail .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.contact-detail .label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.contact-detail .value { font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.hours-grid { margin-top: 16px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.hours-row:last-child { border: none; }
.hours-row .day { font-weight: 600; }
.hours-row .time { color: var(--text-light); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; min-height: 400px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-light); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,87,134,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 100px 0 16px; font-size: 0.85rem; color: var(--text-light);
}
.breadcrumb-link { color: var(--primary); }
.breadcrumb-sep { margin: 0 8px; color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 8px; transition: transform 0.3s; cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ===== BLOG PLACEHOLDER ===== */
.blog-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 28px; transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card .tag {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.blog-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== FOOTER ===== */
footer {
  background: var(--text); color: rgba(255,255,255,0.7); padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 360px; margin-top: 12px; }
.footer-logo-img { height: 48px; margin-bottom: 8px; filter: brightness(10); }
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-links h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icon { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.social-icon:hover { color: #fff; }
.gbp-link { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center; font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.2s;
  animation: pulse-cta 2s infinite;
}
.floating-cta:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 30px rgba(245,124,51,0.4); }
}

/* ===== GET STARTED / LEAD FORM ===== */
.lead-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 80px 0;
}
.lead-section h2 { color: #fff; }
.lead-section p { color: rgba(255,255,255,0.85); }
.lead-form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-xl); color: var(--text);
}

/* ===== BEYOND THE ADJUSTMENT (Heart Section) ===== */
.heart-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 80px 0;
}
.heart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.heart-content .eyebrow { color: rgba(255,255,255,0.7); }
.heart-content h2 { font-size: 2.2rem; margin-bottom: 20px; color: #fff; }
.heart-content p { color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 16px; font-size: 1.05rem; }
.heart-content blockquote {
  border-left: 3px solid var(--accent); padding-left: 20px;
  font-style: italic; margin: 24px 0; font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}
.heart-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.heart-image img { width: 100%; height: 400px; object-fit: cover; }

/* ===== NOT SURE WHERE TO START (Quiz Section) ===== */
.quiz-section { background: var(--warm); padding: 80px 0; }
.quiz-card {
  max-width: 800px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius-lg);
  padding: 56px 48px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.quiz-card h2 { font-size: 2rem; margin-bottom: 16px; }
.quiz-card p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 32px; }
.quiz-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 32px; text-align: center;
}
.quiz-benefit { font-size: 0.9rem; color: var(--text-light); }
.quiz-benefit .num { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }

/* ===== LEGAL PAGES ===== */
.legal-content { line-height: 1.8; color: var(--text); }
.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--text); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 8px; color: var(--text); }
.legal-content p { margin-bottom: 12px; color: var(--text-light); }
.legal-content ul, .legal-content ol { margin: 12px 0; padding-left: 24px; color: var(--text-light); }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }

/* ===== FOOTER LEGAL ROW ===== */
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 24px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
}
.footer-legal a {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-grid, .grid-split, .contact-grid, .difference-grid, .heart-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-image img { height: 350px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-mobile { display: block; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static; transform: none; box-shadow: none;
    border: none; border-radius: 0; margin-top: 0; padding: 0 0 0 16px;
    opacity: 1; visibility: visible; min-width: auto;
    border-left: 2px solid var(--border);
  }
  .dropdown-menu::before { display: none; }
  .nav-dropdown .dropdown-arrow { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 160px; }
  .section-header h2 { font-size: 1.8rem; }
  .proof-bar-inner { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .breadcrumbs { padding: 80px 0 12px; }
  .quiz-benefits { grid-template-columns: 1fr; }
  .quiz-card { padding: 32px 24px; }
  .heart-image img { height: 300px; }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
}
.fade-in.visible {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger children in grids */
.grid-3 .fade-in.visible:nth-child(2) { animation-delay: 0.1s; }
.grid-3 .fade-in.visible:nth-child(3) { animation-delay: 0.2s; }
.grid-3 .fade-in.visible:nth-child(4) { animation-delay: 0.1s; }
.grid-3 .fade-in.visible:nth-child(5) { animation-delay: 0.2s; }
.grid-3 .fade-in.visible:nth-child(6) { animation-delay: 0.3s; }
.grid-3 .fade-in.visible:nth-child(7) { animation-delay: 0.1s; }
.grid-3 .fade-in.visible:nth-child(8) { animation-delay: 0.2s; }
.grid-3 .fade-in.visible:nth-child(9) { animation-delay: 0.3s; }
.grid-3 .fade-in.visible:nth-child(10) { animation-delay: 0.1s; }
.grid-3 .fade-in.visible:nth-child(11) { animation-delay: 0.2s; }
.grid-3 .fade-in.visible:nth-child(12) { animation-delay: 0.3s; }

.grid-2 .fade-in.visible:nth-child(2) { animation-delay: 0.12s; }

/* Section headers */
.section-header.fade-in.visible { animation-delay: 0s; }

/* ===== NAV LINK HOVER UNDERLINE ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== BUTTON HOVER ENHANCEMENTS ===== */
.btn-primary {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(245, 124, 51, 0.35);
}
.btn-secondary {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44, 87, 134, 0.15);
}

/* ===== TESTIMONIAL QUOTE MARK ===== */
.testimonial-card {
  position: relative;
}
.testimonial-card::after {
  content: '\201D';
  position: absolute;
  bottom: -12px;
  right: 8px;
  font-size: 9rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0;
  line-height: 1;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.testimonial-card:hover::after {
  opacity: 0.12;
}

/* ===== HERO IMAGE KEN BURNS ===== */
.hero-image img {
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* ===== FAQ SMOOTH OPEN ===== */
.faq-item {
  transition: border-color 0.3s;
}
.faq-item.open {
  border-color: var(--primary);
}

/* ===== VALUES LIST ITEMS ===== */
.values-list li {
  transition: transform 0.2s, background 0.2s;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.values-list li:hover {
  transform: translateX(4px);
  background: var(--primary-light);
}

/* ===== EYEBROW DASH ===== */
.eyebrow {
  position: relative;
  padding-left: 24px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
}
/* Center-aligned eyebrows (in section-headers) shouldn't have the dash */
.section-header .eyebrow {
  padding-left: 0;
}
.section-header .eyebrow::before {
  display: none;
}

/* ===== FLOATING CTA ENTRANCE ===== */
.floating-cta {
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-cta.show {
  transform: scale(1);
  opacity: 1;
}
.floating-cta:hover {
  transform: scale(1.12);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .fade-in.visible { animation: none; }
  .hero-image img { animation: none; }
  .floating-cta { transform: scale(1); opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
