/* Themes ---------------------------------------------------------------- */

:root,
[data-theme="sapphire"] {
  --page: #FFFFFF;
  --ink: #0F2C64;
  --muted: #4A5A78;
  --eyebrow: #4A6390;
  --line: #E3E8F2;
  --surface: #F5F7FB;
  --card: #FFFFFF;
  --icon: #0F2C64;

  --hero: #0F2C64;
  --hero-ink: #FBF6EA;
  --hero-muted: #C8D6F0;
  --hero-eyebrow: #EAD3A0;
  --hero-line: #2A4A86;
  --ghost: #5A78B0;
  --mark: #E8CD92;
  --glyph: #6F9BEA;
  --glyph-opacity: 0.16;

  --accent: #E8CD92;
  --accent-ink: #0F2C64;

  --band: #0F2C64;
  --band-ink: #FBF6EA;
  --band-muted: #C8D6F0;
  --band-eyebrow: #EAD3A0;
  --band-line: #2A4A86;
  --band-mark: #E8CD92;

  --field: #F8FAFD;
  --field-line: #CDD6E6;
  --solid: #0F2C64;
  --solid-ink: #FBF6EA;
  --footer: #0A1F48;
  --footer-ink: #C8D6F0;
}

[data-theme="teal"] {
  --page: #FFFFFF;
  --ink: #0D3B44;
  --muted: #3E5558;
  --eyebrow: #0F6E6E;
  --line: #E3EAEA;
  --surface: #F4F8F8;
  --card: #FFFFFF;
  --icon: #0F6E6E;

  --hero: #FFFFFF;
  --hero-ink: #0D3B44;
  --hero-muted: #3E5558;
  --hero-eyebrow: #0F6E6E;
  --hero-line: #E3EAEA;
  --ghost: #B9CFCF;
  --mark: #0F6E6E;
  --glyph: #0F6E6E;
  --glyph-opacity: 0.08;

  --accent: #0F6E6E;
  --accent-ink: #FFFFFF;

  --band: #E9F1F1;
  --band-ink: #0D3B44;
  --band-muted: #3E5558;
  --band-eyebrow: #0F6E6E;
  --band-line: #C9DADA;
  --band-mark: #0F6E6E;

  --field: #FAFCFC;
  --field-line: #C9DADA;
  --solid: #0F6E6E;
  --solid-ink: #FFFFFF;
  --footer: #0D3B44;
  --footer-ink: #C9DADA;
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

/* Only animate colours while the visitor is switching looks */
.switching,
.switching * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switching, .switching * { transition: none; }
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

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

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--eyebrow);
}

.h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-ghost { color: var(--hero-ink); border: 1px solid var(--ghost); font-weight: 600; }
.btn-solid { background: var(--solid); color: var(--solid-ink); border: 0; }
.btn:focus-visible,
.icon-btn:focus-visible,
.nav a:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--hero);
  color: var(--hero-ink);
  border-bottom: 1px solid var(--hero-line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--hero-ink);
}
.brand svg { fill: var(--mark); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--hero-ink); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; color: var(--accent-ink); }
.nav .btn:hover { text-decoration: none; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--hero-line);
  background: transparent;
  color: var(--hero-ink);
  cursor: pointer;
}

/* The header look toggle: one diamond per look, the active one filled */
.look-toggle { gap: 4px; width: auto; padding: 0 10px; }
.look-toggle .dot {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
[data-theme="sapphire"] .look-toggle .dot-sapphire,
[data-theme="teal"] .look-toggle .dot-teal { background: var(--mark); border-color: var(--mark); }

.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--hero);
    border-bottom: 1px solid var(--hero-line);
    font-size: 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hero-line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; min-height: 52px; font-size: 17px; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--hero);
  color: var(--hero-ink);
}

.glyph {
  position: absolute;
  right: -90px;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  fill: var(--glyph);
  opacity: var(--glyph-opacity);
  pointer-events: none;
}

.hero-inner { position: relative; padding: 104px 24px 128px; }
.hero-copy { max-width: 680px; }

.hero .eyebrow { display: flex; align-items: center; gap: 16px; color: var(--hero-eyebrow); }
.hero .eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--mark); flex: none; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.lead { margin-top: 26px; font-size: 20px; color: var(--hero-muted); max-width: 580px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Sections -------------------------------------------------------------- */

.section { padding: 112px 0; }
.section-surface { background: var(--surface); }
.section-band { background: var(--band); color: var(--band-ink); }
.section-band .eyebrow { color: var(--band-eyebrow); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head > div { max-width: 640px; }
.section-head > p { font-size: 17px; color: var(--muted); max-width: 400px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.card svg { stroke: var(--icon); }
.card h3 { margin-top: 22px; font-size: 22px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 16px; color: var(--muted); }

.why .card svg { fill: var(--icon); stroke: none; }
.why .card h3 { margin-top: 18px; font-size: 21px; }

.step {
  border: 1px solid var(--band-line);
  border-radius: 10px;
  padding: 30px;
}
.step-num {
  width: 44px;
  height: 44px;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--band-mark);
  transform: rotate(45deg);
}
.step-num span { transform: rotate(-45deg); font-weight: 700; color: var(--band-mark); }
.step h3 { margin-top: 24px; font-size: 22px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 16px; color: var(--band-muted); }

/* Contact --------------------------------------------------------------- */

.contact { position: relative; overflow: hidden; overflow: clip; }
.contact .glyph {
  right: auto;
  left: -140px;
  top: auto;
  bottom: -160px;
  width: 520px;
  height: 520px;
  transform: none;
  fill: var(--band-mark);
  opacity: 0.12;
}

.contact-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.contact-info { flex: 1 1 420px; min-width: 0; }
.contact-info > p { margin-top: 18px; font-size: 18px; color: var(--band-muted); }

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--band-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-links svg { stroke: var(--band-mark); flex: none; }

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  border-radius: 14px;
  background: #FFFFFF;
  text-decoration: none;
  color: #0F2C64;
}
.qr svg.code { fill: #0F2C64; }
.qr span { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }

.form {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input,
.form textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus,
.form textarea:focus { outline: 2px solid var(--solid); outline-offset: 1px; }
.form .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; color: var(--ink); min-height: 1.5em; }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: var(--footer); color: var(--footer-ink); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 24px;
  font-size: 14px;
}

/* Phone ----------------------------------------------------------------- */

@media (max-width: 600px) {
  .header-row { min-height: 68px; }
  .brand { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .hero-inner { padding: 64px 16px 80px; }
  .footer-row { padding: 24px 16px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 3px; gap: 12px; }
  .hero .eyebrow::before { width: 28px; }
  .lead { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .glyph { width: 420px; height: 420px; right: -180px; }
  .section { padding: 72px 0; }
  .eyebrow { font-size: 13px; letter-spacing: 4px; }
  .card, .step { padding: 24px; }
  .contact-row { gap: 40px; }
  .form { padding: 24px; }
  .contact-links { font-size: 17px; }
}
