:root {
  --navy: #242f55;
  --navy-deep: #0d153b;
  --orange: #e8743b;
  --yellow: #f0aa3e;
  --teal: #3e9bb5;
  --teal-ink: #25728b;
  --orange-ink: #b94a15;
  --green: #5ba55b;
  --radius: 20px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Light theme (default) */
  color-scheme: light;
  --bg: #fcfbfa;
  --bg-alt: #f4f1ec;
  --surface: #fff;
  --heading: var(--navy);
  --text: #2b3350;
  --header-bg: rgba(252, 251, 250, 0.92);
  --border: rgba(36, 47, 85, 0.1);
  --shadow: 0 1px 2px rgba(36, 47, 85, 0.06), 0 8px 24px rgba(36, 47, 85, 0.05);
  --accent-teal: var(--teal-ink);
  --accent-orange: var(--orange-ink);
  --contact-bg: var(--navy);
  --footer-bg: var(--navy-deep);
  --logo-ring: transparent;
}

/* Dark theme: follows the system unless the visitor picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1226;
    --bg-alt: #121936;
    --surface: #1b2344;
    --heading: #f3f4fa;
    --text: #d5d9ea;
    --header-bg: rgba(13, 18, 38, 0.9);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --accent-teal: #6cc3dc;
    --accent-orange: #f4915f;
    --contact-bg: #242f55;
    --footer-bg: #080c1c;
    --logo-ring: #fcfbfa;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1226;
  --bg-alt: #121936;
  --surface: #1b2344;
  --heading: #f3f4fa;
  --text: #d5d9ea;
  --header-bg: rgba(13, 18, 38, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --accent-teal: #6cc3dc;
  --accent-orange: #f4915f;
  --contact-bg: #242f55;
  --footer-bg: #080c1c;
  --logo-ring: #fcfbfa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--heading); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-teal); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.brand img, .hero-logo { border-radius: 50%; box-shadow: 0 0 0 3px var(--logo-ring); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 1.2rem var(--font-head); color: var(--heading); margin-right: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--heading); }
.nav a:not(.btn):hover { color: var(--accent-orange); }
.theme-toggle, .nav-toggle { background: none; border: 0; padding: 10px; cursor: pointer; color: var(--heading); border-radius: 50%; line-height: 0; }
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav-toggle { display: none; padding: 12px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; background: var(--orange-ink); color: #fff; font: 600 1.05rem var(--font-head); text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 2px solid var(--orange-ink); transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: #9c3d0f; border-color: #9c3d0f; }
.btn:active { transform: scale(0.97); }
.btn-small { padding: 8px 20px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-ghost:hover { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.btn-light { background: var(--yellow); border-color: var(--yellow); color: var(--navy-deep); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { font: 600 0.95rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-teal); margin-bottom: 16px; }
.lead { font-size: 1.2rem; margin: 20px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo { width: min(100%, 460px); justify-self: center; }

/* Offer */
.offer { background: var(--bg-alt); padding: clamp(56px, 8vw, 96px) 0; }
.section-intro { margin: 12px 0 36px; max-width: 36em; font-size: 1.15rem; }
.cards { display: grid; gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: var(--shadow); }
.card::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--c); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.c-orange { --c: var(--orange); }
.c-teal { --c: var(--teal); }
.c-green { --c: var(--green); }
.c-yellow { --c: var(--yellow); }

/* Contact */
.contact { background: var(--contact-bg); color: #e8ebf5; padding: clamp(56px, 8vw, 96px) 0; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.details { margin: 0; display: grid; gap: 18px; }
.details dt { font: 600 0.85rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.details dd { margin: 2px 0 0; font-size: 1.15rem; }
.details a { text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #aab1cc; padding: 22px 0; font-size: 0.95rem; text-align: center; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .nav-toggle { display: block; order: 3; }
  .theme-toggle { order: 2; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; }
  .nav .btn { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
