:root {
  --bg: #f7f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: #e4e7ee;
  --text: #12151c;
  --text-dim: #565f74;
  --accent: #2f5fd6;
  --accent-dim: #dce6ff;
  --danger: #c62828;
  --danger-bg: #fdecea;
  --radius: 12px;
  --max: 1080px;
}

:root[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #151a24;
  --border: #232a38;
  --text: #e9edf5;
  --text-dim: #9aa4b8;
  --accent: #4f8dff;
  --accent-dim: #1c3a6e;
  --danger: #ff6b6b;
  --danger-bg: #3a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 16px; color: var(--text-dim); }

/* Header - full banner image, with nav/actions overlaid on top and the
   left ~70% (the icon + wordmark, per the banner's own layout) doubling
   as the home link. See site/img/originals/ for the untouched source if
   this ever needs to be re-cropped or re-derived. */
.site-header.banner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Matches the banner image's own background, so contain-fit (below)
     blends seamlessly into whatever space it doesn't fill instead of
     showing a mismatched color band. */
  background: rgb(24, 19, 82);
  border-bottom: 1px solid var(--border);
}
.banner-image {
  width: 100%;
  height: 92px;
  /* contain, not cover: cover was forcing an extreme zoom/crop to fill a
     box far wider-than-tall than the source image's own ~2.4:1 ratio,
     which read as both "cut off" and "too big" at once. contain shows
     the whole image, scaled down to fit, no cropping. */
  object-fit: contain;
  object-position: left center;
  display: block;
}
.banner-home-link {
  position: absolute;
  inset: 0;
  width: 70%;
  z-index: 1;
}
.site-header.banner-header .wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.site-header.banner-header .wrap > * { pointer-events: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  background: rgba(10, 10, 20, 0.45);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: 999px;
}
.site-nav a:not(.btn) { color: rgba(255, 255, 255, 0.85); }
.site-nav a:not(.btn):hover { color: #fff; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.site-nav .theme-toggle { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.site-nav .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 20, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { color: var(--text-dim); padding: 10px 0; border-bottom: 1px solid var(--border); }
  .site-nav a:not(.btn):hover { color: var(--text); }
  .site-nav .btn { margin-top: 8px; text-align: center; }
  .site-nav .btn-ghost { border-color: var(--border); color: var(--text); }
  .site-nav .theme-toggle { border-color: var(--border); color: var(--text); align-self: flex-start; margin-top: 8px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); padding: 8px 18px; }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-sub { max-width: 620px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Services */
.services { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }

.services-subhead {
  margin: 48px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.cards-compact { margin-top: 20px; }
.cards-compact .card { padding: 22px; }
.cards-compact .card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.cards-compact .card h3 { font-size: 1.02rem; }
.cards-compact .card p { font-size: 0.9rem; margin-bottom: 0; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* About */
.about { padding: 72px 0; }
.about-inner { max-width: 700px; }

/* Pricing */
.hero-compact { padding: 72px 0 48px; }

.pricing-fees { padding: 0 0 56px; }
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.fee-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.fee-card h3 { font-size: 1rem; margin-bottom: 6px; }
.fee-amount { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.fee-card p:last-child { margin-bottom: 0; font-size: 0.9rem; }

.pricing-list { padding: 0 0 64px; }
.price-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.price-card .price span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 6px;
}
.pricing-fineprint {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 700px;
}

/* Contact */
.contact { padding: 64px 0 96px; text-align: center; background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-inner { max-width: 560px; margin: 0 auto; }

.contact-form { text-align: left; margin-top: 28px; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 14px 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn { margin-top: 20px; width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note, .form-error {
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 20px 0 0;
}
.form-note { background: var(--accent-dim); color: var(--text); }
.form-error { background: var(--danger-bg); color: var(--danger); }
.muted.small { font-size: 0.82rem; color: var(--text-dim); margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
