/* ============================================================
   Citizen39 — marketing site styles
   Modern professional-services direction: light, warm, structured.
   Plain CSS, no build step. Tokens defined as :root custom properties.
   Fluid by construction — clamp() + auto-fit grids reflow without
   media queries; one media query below adds a mobile hamburger.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-warm: #F5F2ED;
  --bg-form: #FBFAF8;

  /* Text */
  --ink: #161310;
  --ink-soft: #4a443c;
  --muted: #544e45;
  --muted-2: #857d70;

  /* Lines / borders */
  --line: #EAE7E2;
  --line-2: #E4DFD7;
  --line-input: #D9D4CC;

  /* Footer */
  --footer-bg: #0F0D0B;
  --footer-line: #24201c;

  /* Accent — single, themeable in one place.
     Curated options: #D9531E (orange, default), #1F5C4D (teal),
     #7C2D2D (burgundy), #1E40AF (blue). */
  --accent: #D9531E;
  --accent-hover: #C2471A;

  /* Shape */
  --btn-radius: 0px;   /* 0px square (default) or 40px pill */

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);

  /* Motion */
  --t: 0.15s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

input::placeholder,
textarea::placeholder { color: #a59e93; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* A transform-only reveal that starts visible — never gates content
   behind opacity:0 (per spec, no reveal animation may hide content). */
@keyframes fadeUp {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}

/* ============================================================
   Top utility bar
   ============================================================ */

.topbar {
  background: var(--ink);
  color: #C9C2B8;
  font-size: 12px;
  letter-spacing: .4px;
  padding: 9px var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px var(--pad-x);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.5px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.logo .badge {
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 2px 6px;
  letter-spacing: 0;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  flex-wrap: wrap;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #2c2823;
  padding-bottom: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t);
}
.nav-link:hover { color: var(--accent); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* Contact-us button in header */
.btn-contact {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t);
}
.btn-contact:hover { background: var(--accent-hover); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line-input);
  cursor: pointer;
  padding: 9px 11px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  padding: 16px 30px;
  border-radius: var(--btn-radius);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent--lg { padding: 18px 36px; }

/* ============================================================
   Pages / router
   ============================================================ */

.page { display: none; }
.page.active { display: block; animation: fadeUp 0.3s ease; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

/* Shared section frame */
.section {
  padding: clamp(56px, 8vw, 84px) var(--pad-x) clamp(64px, 9vw, 96px);
}
.section--tight {
  padding: clamp(20px, 3vw, 28px) var(--pad-x) clamp(56px, 8vw, 80px);
}
.section--warm { background: var(--bg-warm); }

/* ============================================================
   Home — hero
   ============================================================ */

.hero {
  padding: clamp(56px, 9vw, 96px) var(--pad-x) clamp(48px, 7vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero__title {
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   Stat strip
   ============================================================ */

.statstrip { border-bottom: 1px solid var(--line); }
.statstrip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat {
  padding: 30px clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -1px;
}
.stat__label {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ============================================================
   Section heading row + gridline matrix
   ============================================================ */

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section__head h2,
.howwework__title,
.values__title,
.darkband__title {
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.section__head h2 { font-size: clamp(30px, 4vw, 40px); }
.section__aside { font-size: 14px; color: var(--muted-2); }

/* Gridline matrix — the 1px gap reveals the line color as crisp rules */
.matrix {
  background: var(--line);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1px;
}
.matrix--values {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.matrix__cell {
  background: #fff;
  padding: 34px 32px;
  min-height: 208px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--t);
}
.matrix__cell:hover { background: #FBF7F2; }
.matrix__cell--static { min-height: 0; cursor: default; }
.matrix__cell--static:hover { background: #fff; }
.matrix__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.matrix__num { font-size: 14px; font-weight: 800; color: var(--accent); }
.matrix__arrow { font-size: 16px; color: var(--accent); }
.matrix__name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.3px;
  margin: 0 0 12px;
}
.matrix__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   How we work
   ============================================================ */

.howwework__intro {
  max-width: 60ch;
  margin-bottom: 44px;
}
.howwework__title {
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.15;
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.principle__rule {
  width: 30px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
}
.principle h3 {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.3px;
  margin: 0 0 12px;
}
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Partner / proof strip
   ============================================================ */

.partners {
  padding: clamp(48px, 6vw, 64px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.partners__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.partners__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  max-width: 22ch;
}
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  align-items: center;
}
.partner {
  font-size: 17px;
  font-weight: 600;
  color: #9a9183;
  letter-spacing: .3px;
  transition: color var(--t);
}
.partner:hover { color: var(--muted); }

/* ============================================================
   Page hero (Services / About / Legal)
   ============================================================ */

.page-hero {
  padding: clamp(56px, 8vw, 88px) var(--pad-x) clamp(40px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 1.0;
  letter-spacing: -2px;
  margin: 0 0 22px;
}
.page-hero__title--narrow { max-width: 18ch; margin-bottom: 30px; }
.page-hero__sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   Services list
   ============================================================ */

.service-list { display: block; }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.service-row__num { font-size: 14px; font-weight: 800; color: var(--accent); }
.service-row__rule { width: 28px; height: 2px; background: var(--accent); }
.service-row__head h2 {
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.8px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.service-row__tag {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.service-row__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 66ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line-input);
  padding: 7px 14px;
  border-radius: 2px;
}

/* ============================================================
   About — intro / dark band / values
   ============================================================ */

.about-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.about-intro p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.section--dark {
  background: var(--ink);
  color: #F3EFE9;
  padding: clamp(56px, 8vw, 84px) var(--pad-x);
}
.darkband__title {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 40px;
  max-width: 24ch;
}
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.reason {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}
.reason__num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.reason p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #B8B0A6;
  margin: 0;
}

.values__title {
  font-size: clamp(28px, 3.6vw, 36px);
  margin-bottom: 36px;
}
.value__title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.3px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.value__square {
  width: 10px;
  height: 10px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.contact__title {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
  max-width: 16ch;
}
.contact__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 46ch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.contact-info__value { font-size: 18px; font-weight: 600; }
.contact-info__value a { color: inherit; text-decoration: none; }
.contact-info__value a:hover { color: var(--accent); }

/* ============================================================
   Legal pages (Privacy, Terms, Cookies)
   ============================================================ */

.legal { max-width: 760px; }
.legal__meta {
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--muted-2);
  margin: 8px 0 36px;
}
.legal__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 40px;
}
.legal h2 {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 40px 0 14px;
}
.legal p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent-hover); }
.legal__contact {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 8px;
}

/* ============================================================
   Closing CTA band (shared; hidden on Contact + legal)
   ============================================================ */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 88px) var(--pad-x);
}
.cta-band.hidden { display: none; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band__title {
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 20ch;
}
.cta-band__sub {
  font-size: 16px;
  color: #A8A097;
  margin: 0;
  max-width: 48ch;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--footer-bg);
  color: #9b948a;
  padding: clamp(48px, 6vw, 64px) var(--pad-x) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand { min-width: 220px; }
.logo--footer { color: #fff; font-size: 20px; margin-bottom: 14px; }
.logo--footer .badge { font-size: 14px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #7e776d;
  margin: 0;
  max-width: 32ch;
}
.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col__links a {
  color: #9b948a;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t);
}
.footer-col__links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  border-bottom: 3px solid var(--accent);
}
.footer-bottom__inner {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6f6960;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  color: #6f6960;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t);
}
.footer-legal a:hover { color: #b9b3a9; }

/* ============================================================
   Responsive — hamburger below 720px (fluid layout otherwise)
   ============================================================ */

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--pad-x) 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 0; }
  .nav-link.active::after { display: none; }
  .btn-contact { text-align: center; margin-top: 6px; }

  /* Single-column service rows on small screens */
  .service-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
