/* =====================================================================
   SACCHIN CREATIVES - MAIN STYLESHEET
   Mobile-first. Brand colours are the variables right below.
   ===================================================================== */

:root {
  --navy: #1B2A4A;        /* deep cinema navy - main dark background */
  --navy-2: #22355C;      /* slightly lighter navy for cards */
  --navy-3: #2A4170;      /* borders on navy */
  --navy-deep: #121D35;   /* darkest navy for footer */
  --yellow: #FFC93C;      /* sunshine yellow - main buttons, highlights */
  --coral: #FF7A59;       /* coral orange - accents, paint strokes */
  --teal: #2EC4B6;        /* sky teal - links and icons on navy */
  --white: #FFFFFF;
  --gold-glow: rgba(255, 214, 120, 0.55); /* soft warm gold glow */
  --cream: #FFF8EA;       /* light background for reading pages */
  --text-muted: #D5DDEC;  /* soft white for body text on navy (AA) */

  --font-head: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --max: 1180px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
p { margin: 0 0 1.1em; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
ul { padding-left: 1.2em; }

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--navy);
  padding: 10px 16px; border-radius: 10px; font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  line-height: 1.25; text-align: center; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 22px rgba(255, 201, 60, .35); }
.btn-primary:hover { color: var(--navy); box-shadow: 0 8px 28px rgba(255, 201, 60, .55); }
.btn-coral { background: var(--coral); color: var(--navy); }
.btn-coral:hover { color: var(--navy); box-shadow: 0 8px 26px rgba(255, 122, 89, .45); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--teal); }
.btn-outline:hover { color: var(--navy); background: var(--teal); }
.btn-whatsapp { background: var(--teal); color: var(--navy); }
.btn-whatsapp:hover { color: var(--navy); box-shadow: 0 8px 26px rgba(46, 196, 182, .45); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 42, 74, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.brand-name span { color: var(--yellow); }
.brand:hover { color: var(--white); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: transparent; border: 2px solid var(--navy-3); color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--navy); border-bottom: 1px solid var(--navy-3);
  padding: 12px 16px 24px; display: none;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 14px 8px; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav .btn { margin-top: 18px; width: 100%; border-bottom: 0; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--navy); }
.no-js .site-nav { display: block; position: static; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    display: flex !important; position: static; padding: 0; background: none; border: 0;
    align-items: center; gap: 18px; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 1.05rem; border-radius: 999px; }
  .site-nav a[aria-current="page"] { background: rgba(255, 201, 60, .12); }
  .site-nav .btn { margin: 0; width: auto; padding: 10px 20px; min-height: 44px; }
}

/* ---------- Starry sky background (hero and dark sections) ---------- */
.sky { position: relative; overflow: hidden; isolation: isolate; }
.sky::before {
  /* the starry hero image (assets/images/hero-bg.jpg) under a navy wash */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(46, 196, 182, .16), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 122, 89, .12), transparent 50%),
    linear-gradient(180deg, rgba(27,42,74,.35), rgba(27,42,74,.85)),
    url("../images/hero-bg.jpg") center / cover no-repeat,
    var(--navy);
}
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 6px 1px var(--gold-glow);
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- HERO (the opening screen) ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 0 64px;
}
.hero-grid { display: grid; gap: 22px; align-items: center; }
/* Mobile order: headline -> video -> buttons -> small slots */
.hero-text { display: contents; }
.hero-heading { order: 1; }
.hero-media { order: 2; }
.hero-actions { order: 3; }
.hero-media .video-caption { font-size: .95rem; }
.hero-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  color: var(--navy); background: var(--teal); border-radius: 999px;
  padding: 4px 14px; font-size: .95rem; margin-bottom: 14px;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl { color: var(--yellow); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; margin: 0; }
.hero-actions .btn-row { margin-top: 4px; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 48px; }
  .hero-text { display: flex; flex-direction: column; gap: 26px; }
  .hero-heading, .hero-actions, .hero-media { order: 0; }
  .hero-sub { font-size: 1.25rem; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--yellow); border: 2px solid rgba(255,201,60,.5); text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Decorative teal film strip under the hero */
.film-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; opacity: .5; pointer-events: none; }

/* ---------- Glowing film-frame around the featured player ---------- */
.film-frame {
  position: relative; padding: 12px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #2b3f69, #1d2c4e);
  border: 3px solid var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 201, 60, .12), 0 0 40px rgba(255, 201, 60, .35), var(--shadow);
}
.film-frame::before, .film-frame::after {
  /* small sprocket holes along the top and bottom edge */
  content: ""; position: absolute; left: 22px; right: 22px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,201,60,.65) 0 10px, transparent 10px 22px);
  border-radius: 3px;
}
.film-frame::before { top: 2px; }
.film-frame::after { bottom: 2px; }

/* ---------- Video slots (filled by youtube.js) ---------- */
.video-card { margin: 0; }
.video-slot {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: var(--navy-deep);
}
@supports not (aspect-ratio: 16 / 9) { .video-slot { height: 0; padding-top: 56.25%; } }

/* YouTube Shorts inside a landscape frame: tall thumbnail on a blurred backdrop */
.video-play .thumb-bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(18px) brightness(.55); transform: scale(1.1);
}
.video-play img.thumb-short { position: relative; object-fit: contain; }

/* "Latest uploads" player: label pill over the thumbnail */
.latest-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(27, 42, 74, .88); color: var(--yellow);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 201, 60, .5);
}

/* Video rows: 3 in one row from tablet width up */
.video-row { display: grid; gap: 20px; }
@media (min-width: 768px) { .video-row { grid-template-columns: repeat(3, 1fr); } }
.video-slot > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-slot iframe { border: 0; }
.video-play {
  display: block; padding: 0; border: 0; margin: 0; cursor: pointer; background: #000;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .3s; }
.video-play:hover img { transform: scale(1.04); opacity: .9; }
.play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,201,60,.25), 0 6px 18px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.play-icon svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--navy); }
.video-play:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); }

/* Placeholder (hint) state - shown while building the site */
.video-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; text-align: center; color: var(--white);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #263b66, #172442);
  border: 2px dashed rgba(255, 201, 60, .6); border-radius: 14px;
  font-size: .95rem; line-height: 1.4;
}
.video-hint svg { width: 40px; height: 40px; color: var(--yellow); }
.video-hint code { font-size: .85em; color: var(--yellow); }

/* Branded card state - shown when the slot is empty after launch */
.video-brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; text-align: center; text-decoration: none; color: var(--white);
  background: radial-gradient(circle at 50% 30%, #2d4678, var(--navy) 70%);
  border: 2px solid var(--navy-3); border-radius: 14px;
}
.video-brand span { font-family: var(--font-head); font-size: 1.05rem; color: var(--yellow); }
.video-brand:hover { color: var(--white); border-color: var(--yellow); }
.video-brand .brand-play {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  box-shadow: 0 0 0 8px rgba(255,201,60,.22), 0 0 30px rgba(255,201,60,.35);
}
.video-brand .brand-play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--navy); }
.thank-icon { width: 72px; height: 72px; margin: 0 auto 14px; background: var(--navy); color: var(--yellow); }
.thank-icon svg { width: 40px; height: 40px; }

.video-caption { margin: 10px 2px 0; font-size: .98rem; color: var(--text-muted); font-weight: 700; }
.video-caption:empty { display: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-alt { background: var(--navy-2); }
.section-light { background: var(--cream); color: var(--navy); }
.section-light a { color: var(--navy); font-weight: 700; }
.section-light a:hover { color: #9a3412; }
.section-light .btn-primary, .section-light .btn-coral { color: var(--navy); }
.section-light .btn-outline { color: var(--navy); border-color: var(--navy); }
.section-light .btn-outline:hover { background: var(--navy); color: var(--white); }

.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--coral); margin-bottom: 8px;
}
.section-light .kicker { color: #B8401F; } /* darker coral on cream for AA */
.lead { font-size: 1.15rem; color: var(--text-muted); }
.section-light .lead { color: #33456b; }

.two-col { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Coral paint-stroke divider between sections */
.paint-divider { display: block; width: 100%; height: 40px; margin: -20px 0; position: relative; z-index: 2; pointer-events: none; }
.paint-divider path { fill: none; stroke: var(--coral); stroke-width: 10; stroke-linecap: round; opacity: .9; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .25s ease, transform .25s ease, border-color .25s;
}
.card:hover { box-shadow: 0 0 0 1px rgba(255,201,60,.35), 0 0 30px rgba(255, 201, 60, .18); transform: translateY(-3px); border-color: rgba(255,201,60,.5); }
.section-alt .card { background: var(--navy); }
.section-light .card { background: var(--white); border-color: #f0e2c4; color: var(--navy); }
.card h3 { color: var(--yellow); }
.section-light .card h3 { color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(46,196,182,.15); color: var(--teal); margin-bottom: 14px;
}
.icon-badge svg { width: 28px; height: 28px; }
.section-light .icon-badge { background: var(--navy); color: var(--yellow); }

.offer-card {
  border-radius: var(--radius-lg); padding: 30px; position: relative;
  background: linear-gradient(150deg, #263c69, #1B2A4A);
  border: 2px solid var(--yellow); box-shadow: 0 0 40px rgba(255,201,60,.18);
}
.offer-card h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--yellow); }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--yellow); color: var(--navy); border-radius: 16px; padding: 10px 18px;
  font-family: var(--font-head); font-weight: 600; margin: 6px 0 18px;
}
.price-tag strong { font-size: 2rem; line-height: 1; }

.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; width: 24px; height: 24px; color: var(--teal); margin-top: 3px; }
.section-light .check-list svg { color: #0f766e; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative; padding: 60px 20px 22px;
  background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; top: 16px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: var(--navy); font-family: var(--font-head); font-weight: 700;
}

/* Floating storybook / video-frame artwork */
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.glow-img { filter: drop-shadow(0 0 28px rgba(255, 214, 120, .35)); margin: 0 auto; }

/* Toolkit chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips li {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--navy-2); border: 1px solid var(--navy-3); font-weight: 700;
}
.chips svg { width: 22px; height: 22px; color: var(--teal); }

/* Contact strip */
.contact-strip {
  border-radius: var(--radius-lg); padding: 34px 26px; text-align: center;
  background: linear-gradient(135deg, #2a4170, #1B2A4A);
  border: 2px solid rgba(46,196,182,.45);
}
.contact-strip p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Page header for inner pages */
.page-hero { padding: 64px 0 56px; text-align: center; }
.page-hero h1 { max-width: 900px; margin: 0 auto .4em; }
.page-hero .lead { max-width: 760px; margin: 0 auto; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 18px; color: var(--text-muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.detail-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.detail-list li { display: flex; gap: 14px; align-items: flex-start; }
.detail-list svg { width: 24px; height: 24px; color: var(--teal); flex: none; margin-top: 4px; }
.detail-list strong { display: block; font-family: var(--font-head); font-weight: 500; color: var(--yellow); }
.detail-list a { word-break: break-word; }

.form-card { background: var(--white); color: var(--navy); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 36px; } }
.form-card h2 { color: var(--navy); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; }
.field .opt { font-weight: 600; color: #4a5a7a; }
.field input, .field textarea {
  font: inherit; color: var(--navy); background: #F7F9FC;
  border: 2px solid #8a97b3; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--yellow); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea { border-color: #B42318; }
.error-msg { color: #B42318; font-weight: 700; font-size: .92rem; min-height: 0; }
.error-msg:empty { display: none; }
.check-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.check-field input { width: 24px; height: 24px; flex: none; margin-top: 3px; accent-color: var(--navy); }
.check-field a { color: var(--navy); font-weight: 800; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-bottom: 16px; }
.form-status.is-error { background: #FEE4E2; color: #7A271A; }
.form-status:empty { display: none; }
.thank-you { text-align: center; }
.thank-you img { margin: 0 auto 10px; }
.thank-you[hidden], #contact-form[hidden] { display: none; }

/* ---------- Reading pages (blog, legal) ---------- */
.prose-wrap { background: var(--cream); color: var(--navy); }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.85rem); margin-top: 1.6em; color: var(--navy); }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--navy); font-weight: 800; }
.prose a:hover { color: #9a3412; }
.prose ul li { margin-bottom: .4em; }
.post-meta { color: #4a5a7a; font-weight: 700; margin-bottom: 1.4em; }
.post-figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cta-box {
  margin-top: 40px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--navy); color: var(--white); text-align: center;
}
.cta-box h2 { color: var(--yellow); margin-top: 0; }
.cta-box .btn-row { justify-content: center; }
.cta-box a.btn { color: var(--navy); }
.cta-box a.btn-outline { color: var(--white); }
.cta-box a.btn-outline:hover { color: var(--navy); }

.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; }
.blog-card .blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card h2 { font-size: 1.4rem; margin: 0; }
.blog-card h2 a { color: var(--white); text-decoration: none; }
.blog-card h2 a:hover { color: var(--yellow); }
.blog-card .more { margin-top: auto; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); padding: 56px 0 26px; border-top: 4px solid var(--coral); }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.site-footer h2 { font-size: 1.15rem; color: var(--yellow); margin-bottom: 12px; }
.site-footer p, .site-footer li { color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .95rem; color: var(--text-muted);
}
.footer-bottom ul { display: flex; gap: 18px; }

.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-2); border: 1px solid var(--navy-3); color: var(--teal);
  transition: background .2s, color .2s, box-shadow .2s;
}
.social a:hover { background: var(--teal); color: var(--navy); box-shadow: 0 0 18px rgba(46,196,182,.5); text-decoration: none; }
.social svg { width: 22px; height: 22px; }
.site-footer .social { display: flex; margin-top: 14px; }
.section-light .social a { background: var(--navy); color: var(--yellow); }

[hidden] { display: none !important; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.not-found img { margin: 0 auto 18px; }

/* ---------- Reduced motion: switch every animation off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  .stars span { opacity: .7; }
}
