:root {
  --olive:    #474F2A;
  --olive-dk: #3a4123;
  --blue:     #7DA1B9;
  --orange:   #F68704;
  --orange-dk:#d97403;
  --gray:     #C2C5B8;
  --gray-lt:  #eaebe6;
  --brown:    #441A06;
  --red:      #D01006;

  --bg:       #f8f8f6;
  --bg-card:  #ffffff;
  --fg:       #1e2010;
  --fg-muted: #555e3a;
  --border:   #d4d6cc;

  /* Nav is now white/light */
  --nav-bg:   #ffffff;
  --nav-fg:   #474F2A;
  --nav-border: #d4d6cc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:       #1a1d10;
    --bg-card:  #252a18;
    --fg:       #e8eade;
    --fg-muted: #9aa380;
    --border:   #3a4123;
    --gray-lt:  #2d3218;
    --nav-bg:   #1a1d10;
    --nav-fg:   #e8eade;
    --nav-border: #3a4123;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:       #1a1d10;
  --bg-card:  #252a18;
  --fg:       #e8eade;
  --fg-muted: #9aa380;
  --border:   #3a4123;
  --gray-lt:  #2d3218;
  --nav-bg:   #1a1d10;
  --nav-fg:   #e8eade;
  --nav-border: #3a4123;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 4rem; }
.section-alt { background: var(--gray-lt); }

/* ── NAV (light, logo shows clearly) ── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .6rem;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.nav-logo img { height: 62px; width: auto; cursor: pointer; }
.nav-links {
  display: flex;
  gap: .15rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--nav-fg);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--gray-lt);
  color: var(--olive-dk);
}
.nav-links a.active {
  background: var(--olive);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--nav-fg); border-radius: 2px;
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, var(--olive) 0%, var(--olive-dk) 55%, var(--brown) 100%);
  color: #fff;
  padding-block: 5.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tagline {
  color: var(--orange);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1; margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.125rem; opacity: .88;
  max-width: 560px; margin-bottom: 2rem;
  font-family: 'Source Serif 4', serif; font-weight: 300;
}
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700; font-size: .875rem;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  margin-left: .75rem;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem;
  border-top: 4px solid var(--olive);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--olive); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { fill: white; width: 22px; height: 22px; }
.service-card h3 { color: var(--olive); margin-bottom: .5rem; }
.service-card p { color: var(--fg-muted); font-size: .9375rem; }

/* ── SECTION headings ── */
.section-heading { text-align: center; margin-bottom: .5rem; color: var(--olive); }
.section-sub {
  text-align: center; color: var(--fg-muted);
  max-width: 600px; margin: 0 auto 2.5rem;
  font-family: 'Source Serif 4', serif;
}
.accent-bar {
  width: 48px; height: 4px;
  background: var(--orange); border-radius: 2px;
  margin: .75rem auto 1.5rem;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--olive); color: #fff;
  padding-block: 3.5rem; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { opacity: .85; max-width: 540px; margin: 0 auto 2rem; font-family: 'Source Serif 4', serif; }

/* ── ABOUT ── */
.page-hero {
  color: #fff; padding-block: 4rem; text-align: center;
}
.page-hero.olive { background: linear-gradient(135deg, var(--olive-dk), var(--brown)); }
.page-hero.blue  { background: linear-gradient(135deg, var(--blue), #5a8099); }
.page-hero.brown { background: linear-gradient(135deg, var(--brown), #6b2d0e); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.page-hero p { opacity: .8; margin-top: .75rem; font-family: 'Source Serif 4', serif; }

.bio-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 3rem; align-items: start; margin-top: 3rem;
}
.bio-card {
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border);
  text-align: center; padding-bottom: 1.5rem;
}
.bio-card-avatar {
  background: linear-gradient(135deg, var(--olive), var(--blue));
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #fff; font-weight: 700;
}
.bio-card h3 { margin-top: 1rem; color: var(--olive); padding-inline: 1rem; }
.bio-card .bio-title { color: var(--fg-muted); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: .25rem; padding-inline: 1rem; }
.bio-card .bio-loc { color: var(--fg-muted); font-size: .875rem; margin-top: .5rem; padding-inline: 1rem; }
.bio-links {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1rem; padding-inline: 1rem;
}
.bio-links a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--olive);
  background: var(--gray-lt); border-radius: 4px;
  padding: .5rem .75rem; text-decoration: none; transition: background .15s;
}
.bio-links a:hover { background: var(--border); text-decoration: none; }
.bio-content h2 { color: var(--olive); margin-bottom: 1.25rem; }
.bio-content p { color: var(--fg-muted); margin-bottom: 1rem; font-family: 'Source Serif 4', serif; font-size: 1.0625rem; }
.highlight-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0; padding: 1rem 1.25rem;
}
.highlight-item .num { font-size: 1.75rem; font-weight: 700; color: var(--olive); }
.highlight-item .label { font-size: .8125rem; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ── CLIENTS ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.client-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: box-shadow .2s;
}
.client-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.client-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--gray-lt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.client-card h4 { color: var(--fg); font-size: .9375rem; margin-bottom: .2rem; }
.client-card p { color: var(--fg-muted); font-size: .8125rem; }

/* ── APP CARDS ── */
.app-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 220px 1fr;
}
.app-card-accent {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; gap: 1rem; text-align: center;
}
.app-icon-vantage { background: linear-gradient(135deg, var(--olive), var(--blue)); }
.app-icon-coop    { background: linear-gradient(135deg, var(--brown), var(--orange)); }
.app-letter {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.15); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
}
.app-card-accent .app-name { color: #fff; font-weight: 700; font-size: 1.05rem; opacity: .9; }
.app-card-body { padding: 2rem; }
.app-card-body h3 { color: var(--olive); margin-bottom: .5rem; font-size: 1.35rem; }
.app-badge {
  display: inline-block; background: var(--gray-lt);
  color: var(--fg-muted); font-size: .75rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 20px; margin-bottom: 1rem;
}
.app-card-body p { color: var(--fg-muted); margin-bottom: 1rem; font-family: 'Source Serif 4', serif; }
.app-features {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: .5rem; margin-bottom: 1.25rem;
}
.app-features li {
  background: var(--olive); color: #fff;
  font-size: .75rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 20px;
}
.app-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 1.25rem 0;
}
.price-tier {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem; text-align: center;
  position: relative;
}
.price-tier.popular {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}
.popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 20px;
}
.price-tier .tier-name { font-weight: 700; color: var(--olive); font-size: .875rem; margin-bottom: .25rem; }
.price-tier .tier-price { font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.price-tier .tier-price span { font-size: .8rem; font-weight: 400; color: var(--fg-muted); }
.price-tier .tier-note { font-size: .75rem; color: var(--fg-muted); margin-top: .25rem; }

/* ── PRIVACY PAGE ── */
.privacy-body {
  max-width: 780px; margin: 0 auto;
  padding-block: 3rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.privacy-body h1 { color: var(--olive); font-size: 1.75rem; margin-bottom: .25rem; }
.privacy-body .eff-date { color: var(--fg-muted); font-size: .875rem; margin-bottom: 2rem; }
.privacy-body h2 { color: var(--olive); font-size: 1.1rem; margin: 2rem 0 .5rem; }
.privacy-body p, .privacy-body li { color: var(--fg-muted); font-family: 'Source Serif 4', serif; font-size: 1rem; line-height: 1.7; margin-bottom: .75rem; }
.privacy-body ul { padding-left: 1.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--brown); color: rgba(255,255,255,.6);
  padding-block: 2.5rem; text-align: center; font-size: .875rem;
}
footer .footer-logo { margin: 0 auto 1rem; height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
footer a { color: rgba(255,255,255,.65); }
footer a:hover { color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

/* ── MOBILE ── */
@media (max-width: 680px) {
  .bio-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-block: .5rem; }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .btn-outline { margin-left: 0; margin-top: .5rem; display: block; width: fit-content; }
  .hero p { font-size: 1rem; }
}
