/* Brand: MagnaTrack logo colors. Blue #3696B4 (buttons use a deeper #2A7E99 for white-text contrast),
   sky blue #78D8FC for accents on dark, and the logo's charcoal for neutrals. */
:root {
  --brand: #2A7E99;
  --brand-hover: #3696B4;
  --ink: #0E1418;
  --ink-deep: #090D10;
  --bg: #0D1215;
  --surface: #141B20;
  --surface-2: #1A232A;
  --line: #1E282F;
  --line-2: #253139;
  --line-3: #33424C;
  --text: #E9EEF1;
  --text-2: #C3CDD3;
  --muted: #A0ADB5;
  --faint: #84919A;
  --strong: #fff;
  --accent: var(--brand);
  --accent-text: #78D8FC;
  --accent-hover: #A9E6FD;
  --btn-edge: #3696B4;
  --focus: #78D8FC;
  --icon: #78D8FC;
  --icon-tile: #13303D;
  --ok: #8FE3B0;
  --ok-text: #8FE3B0;
  --star: #F5B544;
  --paper: #EFF5F8;
  --paper-text: #3B4A53;
  --paper-accent: #24708A;
  --card-line: #1F2A31;
  --card-line-hover: #3696B4;
  --ghost-hover: rgba(120, 216, 252, .08);
  --band: #102631;
  --band-line: #22536A;
  --band-input: #0B1C24;
  --band-input-line: #3696B4;
  --featured-line: #3696B4;
  --chip-hover: #4C9AB6;
  --chip-on: #2A7E99;
  --pill-off: #33424C;
  --overlay-card: rgba(13, 18, 21, .86);
  --overlay-shadow: rgba(0, 0, 0, .4);
  --error: #FFB4A8;
  --brand-filter: brightness(0) invert(1);
  color-scheme: dark;
  --display: "Sora", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

/* Light theme: set by the footer toggle (dark is the default). */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --ink-deep: #EFF5F8;
  --surface: #F4F8FA;
  --surface-2: #E7EFF3;
  --line: #DFE7EC;
  --line-2: #D3DEE4;
  --line-3: #BFCED6;
  --text: #0E1418;
  --text-2: #3B4A53;
  --muted: #50606A;
  --faint: #63727B;
  --strong: #0E1418;
  --accent-text: #24708A;
  --accent-hover: #1A5468;
  --btn-edge: transparent;
  --focus: #24708A;
  --icon: #2A7E99;
  --icon-tile: #E0F3FB;
  --ok-text: #15803D;
  --star: #D97706;
  --card-line: #DFE7EC;
  --card-line-hover: #8CC6DA;
  --ghost-hover: rgba(54, 150, 180, .07);
  --band: #EAF6FB;
  --band-line: #C6E4F0;
  --band-input: #FFFFFF;
  --band-input-line: #A9D3E3;
  --featured-line: #8CC6DA;
  --chip-hover: #7FBBD0;
  --chip-on: #E0F3FB;
  --pill-off: #DFE7EC;
  --overlay-card: rgba(255, 255, 255, .9);
  --overlay-shadow: rgba(14, 20, 24, .16);
  --error: #B42318;
  --brand-filter: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--strong); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, legend, .eyebrow, .card-title { text-wrap: balance; }
li, blockquote, figcaption, .card-text { text-wrap: pretty; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap, .site-header .wrap-narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { margin-right: auto; display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.link { color: var(--text); text-decoration: none; }
.link:hover { color: var(--strong); text-decoration: underline; text-underline-offset: 4px; }
.nav .link { min-height: 44px; display: inline-flex; align-items: center; }
.nav .link[aria-current="page"] { color: var(--strong); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent-text); }
@media (max-width: 720px) {
  .site-header .wrap, .site-header .wrap-narrow { gap: 4px 16px; padding-top: 12px; padding-bottom: 4px; }
  .brand img { height: 40px; }
  .site-header .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 22px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--btn-edge);
  text-decoration: none; cursor: pointer; transition: background-color .2s ease;
}
.btn:hover { color: #fff; background: var(--brand-hover); }
.btn-lg { min-height: 52px; padding: 0 26px; border-radius: 12px; font-size: 16px; }
.btn-ghost { background: transparent; border: 1px solid var(--line-3); color: var(--strong); }
.btn-ghost:hover { background: var(--ghost-hover); color: var(--strong); border-color: var(--card-line-hover); box-shadow: none; }
.btn-block { width: 100%; }

/* Type helpers */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.accent-text { color: var(--accent-text); }
.h-xl { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
.h-lg { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
.h-md { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 34rem; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.stars { color: var(--star); letter-spacing: 3px; }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head .stack { gap: 14px; max-width: 40rem; }
.section-head > p { max-width: 26rem; color: var(--muted); }
.bordered { border-top: 1px solid var(--line); }
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--paper-accent); }
.paper h2, .paper h3 { color: var(--ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 500px; min-width: 0; gap: 28px; }
.hero-actions { gap: 12px; }
.hero-proof { gap: 10px 24px; font-size: 15px; color: var(--muted); align-items: center; }
.hero-media { flex: 1 1 460px; min-width: 0; position: relative; }
.scene { position: relative; aspect-ratio: 1152 / 928; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); }
.scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Movie night: the night photo fades in once on load. */
.scene-night { opacity: 0; animation: scene-night 2.6s ease-in-out 1.2s both; }
@keyframes scene-night { to { opacity: 1; } }
.scene-card {
  position: absolute; top: 28px; right: -12px; width: 280px; max-width: 80%;
  background: var(--overlay-card); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line-3); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 48px var(--overlay-shadow);
}
.scene-card .title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--strong); }
.scene-card .pill { position: relative; display: inline-grid; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; color: var(--text-2); background: var(--pill-off); animation: pill-on .4s ease 1.2s both; }
.pill > span { grid-area: 1 / 1; text-align: center; }
.pill-off { animation: pill-out .3s ease 1.2s both; }
.pill-on { opacity: 0; animation: pill-in .3s ease 1.3s both; }
@keyframes pill-on { 50% { transform: scale(1.12); } to { color: var(--ink); background: var(--ok); } }
@keyframes pill-out { to { opacity: 0; } }
@keyframes pill-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scene-night, .scene-card .pill, .pill > span { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
.scene-card dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.scene-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.scene-card dd { margin: 0; color: var(--strong); }
.scene-card small { font-size: 12px; color: var(--faint); }
@media (max-width: 560px) { .scene-card { position: static; width: auto; max-width: none; margin-top: 16px; } }

/* Brands */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 28px; padding-bottom: 28px; }
.brands-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.brand-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.brand-logos img { width: auto; filter: var(--brand-filter); opacity: .78; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--card-line); color: var(--text); text-decoration: none;
}
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--card-line-hover); transform: translateY(-2px); color: var(--text); }
.card svg { color: var(--icon); box-sizing: content-box; padding: 10px; border-radius: 12px; background: var(--icon-tile); }
.card-title { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--strong); }
.card-text { font-size: 15px; color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps .num { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--paper-accent); }
.steps .t { font-family: var(--display); font-weight: 600; font-size: 22px; }
.steps .d { color: var(--paper-text); }

/* Gallery */
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; }
.shot strong { font-family: var(--display); font-weight: 600; color: var(--strong); }
.shot span { font-size: 15px; color: var(--muted); }

/* Reviews */
.quote { margin: 0; padding: 30px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.quote figcaption { font-weight: 600; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: 24px; background: var(--band); border: 1px solid var(--band-line); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta-band .stack { flex: 1 1 380px; min-width: 0; gap: 16px; }
.cta-band p { color: var(--text-2); max-width: 30rem; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.field .opt { font-weight: 400; color: var(--faint); }
.input {
  min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3);
  background: var(--bg); color: var(--strong); width: 100%;
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 110px; }
select.input { padding: 0 12px; }
.on-blue .input { background: var(--band-input); border-color: var(--band-input-line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--faint); }
.form-error { color: var(--error); font-size: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--strong); }
legend span { font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input, .tile input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .tile span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--line-3); color: var(--text-2); font-size: 15px; cursor: pointer; user-select: none;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile span { min-height: 64px; padding: 10px 14px; border-radius: 12px; width: 100%; }
.chip, .tile { position: relative; }
.chip:hover span, .tile:hover span { border-color: var(--chip-hover); }
.chip input:checked + span, .tile input:checked + span { border-color: var(--accent-text); background: var(--chip-on); color: var(--strong); font-weight: 600; }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; }
.chip input:focus-visible + span, .tile input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sent { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 360px; }
.sent svg { color: var(--ok-text); }
[hidden] { display: none !important; }

/* Checklists */
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--ok-text); }

/* Service page */
.svc-hero { position: relative; border-bottom: 1px solid var(--line); }
.svc-hero > img { width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; background: var(--surface-2); }
.svc-hero .wrap { margin-top: -140px; padding-bottom: 80px; position: relative; }
.svc-hero-card { max-width: 720px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-size: 14px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.room { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--card-line); overflow: hidden; }
.room > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.room .body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.room h3 { font-size: 22px; }
.room p { color: var(--muted); font-size: 16px; }
.room.featured { background: var(--band); border-color: var(--featured-line); }
.room.featured p { color: var(--text-2); }
.badge { font-size: 12px; font-weight: 600; color: var(--ink); background: var(--accent-hover); border-radius: 99px; padding: 3px 10px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split > .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .main { flex: 2 1 520px; min-width: 0; }
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.features li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #C9D0DC; padding-top: 18px; }
.features strong { font-family: var(--display); font-weight: 600; font-size: 18px; }
.features span { color: var(--paper-text); font-size: 16px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--strong); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; line-height: 1; text-align: center; font-size: 26px; color: var(--accent-text); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 40rem; }

/* Contact & legal */
.page-main { padding-top: 72px; padding-bottom: 96px; }
.toc { flex: 1 1 240px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.toc-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.toc nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; border-left: 1px solid var(--line-2); }
.toc nav a { padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; }
.toc nav a:hover { color: var(--strong); }
.prose { flex: 3 1 560px; min-width: 0; max-width: 46rem; line-height: 1.65; }
.prose h2 { margin: 56px 0 16px; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; scroll-margin-top: 24px; }
.prose p { margin: 0 0 16px; color: var(--text-2); }
.prose .intro { font-size: 19px; color: var(--text); }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--accent-text); }
.prose-cta { margin-top: 40px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-deep); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 64px; }
.footer-grid .stack { gap: 10px; }
.footer-grid .h { font-weight: 600; color: var(--strong); }
.footer-grid a { color: var(--muted); }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; }
.footer-bar nav { display: flex; gap: 20px; }
.footer-bar a { color: var(--faint); }
.site-footer.slim .footer-bar { margin-top: 0; border-top: 0; padding: 32px 0; }

/* Logo: white version on dark, color version on light. */
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }

/* MagnaTrack: white logo, so it always sits on a dark tile. */
.mt-tile { display: inline-flex; align-items: center; padding: 14px 18px; border-radius: 12px; background: #1A2329; }
.mt-tile img { height: 26px; width: auto; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; }
.partners img { height: 44px; width: auto; filter: var(--brand-filter); opacity: .72; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 99px; border: 1px solid var(--line-3); background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer;
}
.theme-toggle:hover { color: var(--strong); border-color: var(--card-line-hover); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }

