/* Layout: full-width dark bands with centered content columns */
:root {
  --bg: #FFFFFF;
  --bg-dark: #1B2B3A;
  --bg-dark-alt: #1B2B3A;
  --bg-light: #F3F5F7;
  --fg: #1E2D3D;
  --fg-light: #4A5D6E;
  --fg-on-dark: #EDF0F3;
  --fg-on-dark-muted: #8FA0AE;
  --brand: #344554;
  --accent: #5A9BAA;
  --accent-hover: #4E8D9C;
  --accent-subtle: rgba(90, 155, 170, 0.1);
  --radius: 8px;
  --max-w: 1140px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B2B3A;
    --bg-dark: #0F1D28;
    --bg-dark-alt: #1B2B3A;
    --bg-light: #223344;
    --fg: #EDF0F3;
    --fg-light: #8FA0AE;
    --fg-on-dark: #EDF0F3;
    --fg-on-dark-muted: #8FA0AE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B2B3A;
  --bg-dark: #0F1D28;
  --bg-dark-alt: #1B2B3A;
  --bg-light: #223344;
  --fg: #EDF0F3;
  --fg-light: #8FA0AE;
  --fg-on-dark: #EDF0F3;
  --fg-on-dark-muted: #8FA0AE;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

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

/* ── NAV ── */
.nav-band {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 101;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-wordmark {
  height: 22px;
}

.nav-wordmark img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--fg-light);
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active { color: var(--brand); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover { background: #2a3a48; }

.nav-toggle { display: none; background: none; border: none; color: var(--brand); cursor: pointer; padding: 8px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-cta-wrap { display: none; }
}

/* ── HERO ── */
.hero-band {
  background: #1B2B3A;
  padding-block: 80px 60px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,42,56,0.92) 0%, rgba(26,42,56,0.82) 45%, rgba(26,42,56,0.4) 100%);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-on-dark-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-body);
}

.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-band { padding-block: 60px 40px; min-height: auto; }
  .hero-bg-photo::after {
    background: linear-gradient(to bottom, rgba(26,42,56,0.9) 0%, rgba(26,42,56,0.7) 100%);
  }
}

/* ── METRICS BAND ── */
.metrics-band {
  background: #131F2B;
  padding-block: 28px;
  border-top: 1px solid rgba(90,155,170,0.15);
}

.metrics-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.metrics-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  max-width: 180px;
}

.metrics-grid {
  display: contents;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-num span { color: #fff; font-size: 0.55em; vertical-align: super; margin-left: 2px; }

.metric-label {
  font-size: 0.8rem;
  color: var(--fg-on-dark-muted);
  font-weight: 500;
  margin-left: 12px;
}

@media (max-width: 768px) {
  .metrics-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  .metrics-header {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 500px) {
  .metrics-inner { grid-template-columns: 1fr; }
}

/* ── SECTION STYLES ── */
.section-light {
  background: var(--bg);
  padding-block: 80px;
}

.section-gray {
  background: var(--bg-light);
  padding-block: 80px;
}

.section-dark {
  background: #1B2B3A;
  padding-block: 80px;
}

.section-dark-alt {
  background: linear-gradient(to right, #1B2B3A 0%, #1B2B3A 50%, #4A8A98 100%);
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-title-dark { color: #fff; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--fg-light);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-subtitle-dark {
  color: var(--fg-on-dark-muted);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #344554 0%, #1B2B3A 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-inner {
  width: 85%;
  height: 75%;
  border-radius: 8px;
  background: rgba(81,140,155,0.1);
  border: 1px solid rgba(81,140,155,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-on-dark-muted);
  font-size: 0.85rem;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--fg-light);
  line-height: 1.8;
}

.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── SERVICES CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fg-light);
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── PROCESS ── */
.process-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}

.process-tab {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-on-dark-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.process-tab.active {
  background: #5A9BAA;
  color: #fff;
}

.process-tab:hover:not(.active) {
  color: #fff;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: rgba(90,155,170,0.25);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5A9BAA;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--fg-on-dark-muted);
  line-height: 1.6;
}

.process-panel { display: none; }
.process-panel.active { display: block; }

@media (max-width: 768px) {
  .process-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-flow::before { display: none; }
  .process-step { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .process-num { margin: 0; flex-shrink: 0; }
  .process-tabs { width: 100%; }
  .process-tab { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.8rem; }
}

/* ── PORTAL / VISIBILITY ── */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portal-text .check-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-text .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--fg-on-dark-muted);
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-screenshots {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.portal-desktop {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: block;
}

.portal-mobile {
  position: absolute;
  right: -20px;
  top: 10%;
  width: 140px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 3px solid #222;
}

@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr; gap: 32px; }
  .portal-mobile { width: 100px; right: -10px; }
}

/* ── WHY DEAL DESK ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 32px 28px;
}

.why-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--fg-on-dark-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--fg);
  font-family: var(--font-display);
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--fg-light);
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--fg-light);
  line-height: 1.7;
}

/* ── CTA BAND ── */
.cta-band {
  background: #1B2B3A;
  padding-block: 80px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--fg-on-dark-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--fg-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--fg);
}

.contact-detail svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.footer-band {
  background: #151F2A;
  padding-block: 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--fg-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--fg-on-dark-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-on-dark-muted);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Page transitions */
.page-section { scroll-margin-top: 80px; }

/* ── Site additions ── */
img { max-width: 100%; }
[hidden] { display: none !important; }
.nav-logo-icon img { display: block; }
.contact-detail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-group input:invalid[aria-invalid="true"] { border-color: #c0392b; }
.form-status { font-size: 0.9rem; color: var(--fg-light); min-height: 1.4em; }
.form-status.is-error { color: #b03a2e; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
