/* ==========================================================
   Charlie's Chiropractic Care — main stylesheet
   Colours are taken from the existing logo / site.
   ========================================================== */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #1b315d;        /* logo background */
  --navy-deep: #04235b;   /* existing site nav colour */
  --navy-ink: #0f1f40;
  --gold: #d3b366;        /* logo gold */
  --gold-bright: #f4ac45; /* existing site accent */
  --gold-soft: #f6efdc;
  --ink: #1f2633;
  --muted: #5a6475;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 64, .10);
  --wrap: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.7 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; color: var(--navy-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-ink); padding: .6em 1em; z-index: 1000; }
.skip:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 "Poppins", sans-serif; text-decoration: none;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: #e1c37a; color: var(--navy-ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-ink); color: #cfd6e6; font-size: .875rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-social { display: flex; align-items: center; gap: 6px; }
.topbar-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255,255,255,.08); }
.topbar-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.topbar-info { display: flex; gap: 22px; }
@media (max-width: 640px) { .topbar-hide-sm { display: none; } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand img { height: 58px; width: auto; }
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { height: 40px !important; }
  .brand span { font-size: .95rem; }
  .brand small { font-size: .66rem; }
}
.brand span { font: 600 1.05rem/1.15 "Poppins", sans-serif; color: #fff; }
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--gold); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { margin: 0; position: relative; }
.nav a, .nav .sub-toggle {
  display: flex; align-items: center; gap: 4px; color: #fff; text-decoration: none;
  font: 500 .95rem/1 "Poppins", sans-serif; padding: 12px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .sub-toggle:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.submenu a { color: var(--ink); padding: 10px 12px; font-size: .92rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-alt); color: var(--navy); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-row { display: flex; align-items: center; }
.nav .nav-row > a { padding-right: 2px; }
.nav .nav-row .sub-toggle { padding: 12px 8px 12px 2px; }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta a { background: var(--gold); color: var(--navy-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta a:hover { background: #e1c37a; color: var(--navy-ink); }

.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; display: block; }

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .brand img { height: 50px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 0 0; background: var(--navy);
    display: block; overflow-y: auto; padding: 8px 20px 120px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a, .nav .sub-toggle { padding: 16px 4px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav .nav-row > a { flex: 1; width: auto; padding-right: 4px; }
  .nav .nav-row .sub-toggle { width: 56px; flex: none; justify-content: center; padding: 16px 0; border-radius: 0; border-left: 1px solid rgba(255,255,255,.12); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 10px 12px; display: none; min-width: 0; }
  .has-sub.open > .submenu { display: block; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open:hover > .submenu { display: block; }
  .submenu a { color: #dfe5f2; padding: 12px 4px; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: none; color: var(--gold); }
  .has-sub.open .chev { transform: rotate(180deg); }
  .nav .nav-cta { margin: 20px 0 0; border: 0; }
  .nav .nav-cta a { justify-content: center; padding: 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2a4a85 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold); }
.hero p.lead { color: #dbe2f0; font-size: 1.15rem; max-width: 34em; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-width: 440px; margin-left: auto; }
.hero-badge {
  position: absolute; left: 0; bottom: 28px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35;
}
.hero-badge strong { font-family: "Poppins", sans-serif; color: var(--navy); font-size: 1.15rem; display: block; }
.stars { color: var(--gold-bright); letter-spacing: 2px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .hero-media img { max-width: 100%; aspect-ratio: 4/3; margin: 0; }
  .hero-badge { left: 12px; bottom: 12px; }
}

.eyebrow { display: inline-block; font: 600 .8rem/1 "Poppins", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a9852f; margin-bottom: 14px; }

/* Page header (inner pages) */
.page-head { background: var(--navy); color: #fff; padding: 52px 0 46px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(211,179,102,.12); }
.page-head h1 { color: #fff; margin-bottom: .25em; position: relative; z-index: 1; }
.page-head p { color: #d5dcec; margin: 0; max-width: 46em; position: relative; z-index: 1; }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: #aab6cf; position: relative; z-index: 1; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #dbe2f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 56px 0; } .section-sm { padding: 40px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.media-left > .split-media { order: -1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media img.tall { aspect-ratio: 4/5; max-height: 620px; }
.split-media img.wide { aspect-ratio: 16/10; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.media-left > .split-media { order: 0; }
  .split-media img.tall { aspect-ratio: 4/3; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card h3 { margin: 6px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 12px; font: 600 .9rem "Poppins", sans-serif; color: var(--navy); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: #9c7a28; display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; }

/* Ticks list */
.ticks { list-style: none; padding: 0; columns: 2; column-gap: 32px; }
.ticks li { position: relative; padding-left: 30px; break-inside: avoid; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7a28' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks.one-col { columns: 1; }
@media (max-width: 640px) { .ticks { columns: 1; } }

/* Callout */
.callout { background: var(--gold-soft); border-left: 5px solid var(--gold); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em; }
.callout p:last-child { margin: 0; }
.callout-navy { background: #eef1f8; border-color: var(--navy); }

/* Video (click to load — no YouTube cookies until pressed) */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video.portrait { aspect-ratio: 9/16; max-width: 380px; margin: 0 auto; }
.video button {
  all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center;
  background: url("../img/logo-header.png") center 14% / 22% auto no-repeat, radial-gradient(circle at 30% 20%, #2a4a85, var(--navy-ink) 70%);
}
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.video .play svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--navy-ink); }
.video .video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font: 500 .9rem "Poppins", sans-serif; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-pair img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; box-shadow: var(--shadow); }
@media (max-width: 520px) { .photo-pair { gap: 10px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,14,30,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }

/* Reviews */
.review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; text-decoration: none; color: var(--ink); display: block; }
.review-card .score { font: 700 2.8rem/1 "Poppins", sans-serif; color: var(--navy); }
.review-card .stars { font-size: 1.3rem; margin: 8px 0; }
.review-card p { margin: 0; color: var(--muted); }
.review-card .src { font: 600 1rem "Poppins", sans-serif; color: var(--navy-ink); margin-bottom: 12px; display: block; }

/* Locations / hours */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.loc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.loc h3 { display: flex; align-items: center; gap: 10px; }
.loc .day { display: inline-block; background: var(--navy); color: #fff; font: 600 .78rem/1 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; margin-bottom: 14px; }
.loc dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.loc dt { font-weight: 600; color: var(--navy-ink); white-space: nowrap; }
.loc dd { margin: 0; color: var(--muted); }
.loc .note { font-size: .92rem; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, #eef1f8, #f6efdc); }

/* Accordion (policies) */
.accordion details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 600 1.08rem "Poppins", sans-serif; color: var(--navy-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; color: var(--navy); line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 22px 10px; }

.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .97rem; }
.summary-table th, .summary-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-table th { background: var(--bg-alt); font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy-ink); }
@media (max-width: 560px) {
  .summary-table thead { display: none; }
  .summary-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .summary-table td { display: block; border: 0; padding: 4px 0; }
  .summary-table td:first-child { font-weight: 600; color: var(--navy-ink); }
}

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { font: 600 .92rem "Poppins", sans-serif; color: var(--navy-ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid #cfd5e2; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(27,49,93,.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .small { font-size: .85rem; color: var(--muted); }
.form .req { color: #b4232a; }
.form .optional { font-weight: 400; color: var(--muted); font-size: .85em; }
.form .field-error { display: none; margin: 6px 0 0; color: #b4232a; font-size: .88rem; }
.form .field.invalid .field-error { display: block; }
.form .field.invalid input, .form .field.invalid textarea { border-color: #b4232a; box-shadow: 0 0 0 3px rgba(180,35,42,.12); }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.contact-side h3 { font-size: 1rem; margin: 18px 0 4px; }
.contact-side h3:first-child { margin-top: 0; }
.contact-side p { margin-bottom: 6px; }
.big-link { font: 700 1.5rem "Poppins", sans-serif; text-decoration: none; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } }

/* Home "What we do" cards: centred rows (3 + 2) instead of 4 + 1 */
.cards-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cards-center > .card { flex: 0 1 340px; }
@media (max-width: 760px) { .cards-center > .card { flex-basis: 100%; } }

/* "Message sent" overlay */
.sent { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px;
  background: rgba(245,246,250,.97); border-radius: inherit; animation: fadeIn .25s ease; }
.form { position: relative; }
.sent-icon { width: 84px; height: 84px; margin: 0 auto 14px; position: relative; }
.sent-icon svg { width: 84px; height: 84px; }
.sent-icon .ring-bg { stroke: #dfe5ef; }
.sent-icon .ring { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.sent-icon .tick { stroke: var(--navy); stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .5s .15s ease forwards; }
.sent h3 { margin: 0 0 6px; font-size: 1.4rem; }
.sent p { margin: 0 0 4px; color: var(--muted); }
.sent .count { font-size: .9rem; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Contact pop-up */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(8,14,30,.45); background: var(--bg-alt); color: var(--ink); }
.modal::backdrop { background: rgba(8,14,30,.65); }
.modal-inner { padding: 30px 28px 28px; position: relative; }
.modal h2 { margin-bottom: .3em; }
.modal .panel { box-shadow: none; padding: 22px; margin-top: 16px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.modal-close:hover { background: var(--gold-soft); }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) { .modal-inner { padding: 24px 16px 16px; } .modal .panel { padding: 16px; } }

.form-status { padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e8f5ec; color: #1d5a32; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; }
.panel { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .panel { padding: 22px; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #d5dcec; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } .cta-band .btn-row { width: 100%; } .cta-band .btn { flex: 1; } }

/* As-seen-on strip */
/* Both photos share one height and keep their own shape (nothing cropped) */
.tv { display: flex; align-items: center; justify-content: center; gap: 22px; --tv-h: 480px; }
.tv img { height: var(--tv-h); width: auto; max-width: 100%; flex: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.tv .video { flex: 1 1 0; min-width: 0; }
@media (max-width: 1200px) { .tv { --tv-h: 420px; } }
@media (max-width: 1000px) {
  .tv { flex-wrap: wrap; --tv-h: 340px; }
  .tv .video { flex-basis: 100%; order: -1; }
}
@media (max-width: 520px) {
  .tv { gap: 10px; --tv-h: 230px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #b9c3d8; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { width: 150px; border-radius: 10px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.credit { margin: 0; padding: 0 0 22px; font-size: .75rem; color: #7f8aa3; }
.credit a { color: #aab4c9; }
.credit a:hover { color: var(--gold); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    box-shadow: 0 -4px 20px rgba(0,0,0,.12); backdrop-filter: blur(6px);
  }
  .mobile-bar .btn { padding: 13px 6px; font-size: .92rem; gap: 6px; }
  body { padding-bottom: 76px; }
}

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
