/* ==========================================================================
   Symbiosis Sustainability & ESG Advisory
   Namib Night design system — plain compiled CSS, no framework, no build step.
   All custom properties are defined in :root below (no undefined variables).
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #1C2333;        /* charcoal / deep ink */
  --rust: #974A26;       /* amber / rust */
  --rust-ink: #7E3C1E;   /* rust, darkened for hover */
  --sage: #5F6547;       /* olive / sage */
  --stone: #E7E0D2;      /* stone */

  /* Neutrals derived from the palette */
  --ground: #F3EFE6;     /* warm paper ground */
  --surface: #FBF8F1;    /* raised surface */
  --text: #1C2333;       /* body text */
  --muted: #6B6A5C;      /* secondary text (warm grey) */
  --line: #D9D2C1;       /* hairline */
  --line-strong: #C7BFA9;/* stronger hairline */
  --on-dark: #E7E0D2;    /* text on ink sections */
  --on-dark-muted: #B7B2A2;

  /* Typography */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.7vw, 1.9rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.5rem, 2rem + 2.5vw, 4.4rem);

  --maxw: 72rem;
  --readw: 40rem;
  --radius: 4px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.section { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.section--flush { border-top: none; }

.eyebrow {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.sec-head { max-width: var(--readw); margin-bottom: 2.6rem; }
.sec-head h2 { font-size: var(--step-3); margin-top: 0.9rem; }
.sec-head p { color: var(--muted); margin-top: 0.9rem; }

/* Short rust rule (editorial marker) */
.rule::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--rust);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ground); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; display: block; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1; }
.brand__sub {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 3px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  font: inherit;
  line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.25rem, 5vw, 4rem) 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.8rem; border-top: 1px solid var(--line); font-size: var(--step-0); }
  .nav a.btn { margin-top: 0.8rem; text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  background: var(--rust);
  color: var(--stone);
  border: 1px solid var(--rust);
  padding: 0.8rem 1.4rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--rust-ink); border-color: var(--rust-ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: transparent; color: var(--rust); border-color: var(--rust); transform: none; }
.btn svg { width: 16px; height: 16px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero h1 { font-size: var(--step-4); max-width: 20ch; margin-top: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--rust); }
.hero .lede {
  max-width: var(--readw);
  margin-top: 1.8rem;
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.5;
}
.tagline {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--sage);
}
.tagline::before { content: ""; width: 2.6rem; height: 1px; background: var(--sage); flex: none; }
.hero .cta-row { margin-top: 2.4rem; }

/* Page header (interior pages) */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; margin-top: 0.9rem; }
.page-head p { max-width: var(--readw); margin-top: 1.2rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Card grids (values, services)
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card__icon { color: var(--rust); width: 30px; height: 30px; }
.card__icon svg { width: 30px; height: 30px; display: block; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.card__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* Practice list variant (hairline dividers, no boxes) */
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.practice > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.practice > div:nth-child(-n+2) { border-top: none; }
.practice h3 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; }
.practice p { color: var(--muted); font-size: var(--step--1); margin-top: 0.35rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Method cells
   -------------------------------------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.method .cell { background: var(--surface); padding: 1.6rem 1.5rem; }
.method .cell h3 { font-size: var(--step-1); margin: 0.7rem 0 0.55rem; }
.method .cell p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Framework chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; margin-top: 2rem; }
.chip {
  font-size: var(--step--1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  color: var(--ink);
}
.chip b { color: var(--rust); font-weight: 600; }

/* --------------------------------------------------------------------------
   About / credentials
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
.prose p { max-width: 42ch; }
.prose p + p { margin-top: 1.1rem; }
.credentials { border-left: 2px solid var(--sage); padding-left: 1.4rem; align-self: start; }
.credentials .row { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.credentials .row:last-child { border-bottom: none; }
.credentials .lbl { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.credentials .val { margin-top: 0.25rem; font-size: var(--step--1); line-height: 1.45; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.details { display: flex; flex-direction: column; gap: 1.1rem; }
.details .lbl { display: block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.25rem; }
.details .v { font-size: var(--step-0); color: var(--ink); text-decoration: none; }
.details a.v:hover { color: var(--rust); }

form .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
form label { font-size: var(--step--1); font-weight: 500; }
form input, form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
form input:focus, form textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
form textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: var(--step--1); color: var(--muted); margin-top: 0.8rem; }

/* FAQ (native accordion) */
.faq details { border-top: 1px solid var(--line); padding-block: 0.4rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 2rem 0.9rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rust);
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 1rem; max-width: var(--readw); }

/* --------------------------------------------------------------------------
   CTA band (dark ink)
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--on-dark); border-top: none; }
.cta-band h2 { font-size: var(--step-3); color: var(--on-dark); max-width: 18ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: 1rem; max-width: 42ch; }
.cta-band .cta-row { margin-top: 2rem; }
.cta-band .btn--ghost { color: var(--on-dark); border-color: rgba(231, 224, 210, 0.35); }
.cta-band .btn--ghost:hover { color: #fff; border-color: var(--stone); }

/* --------------------------------------------------------------------------
   Footer (dark ink)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 3rem 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand__name { color: var(--stone); }
.site-footer .brand__sub { color: var(--on-dark-muted); }
.site-footer h4 { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; font-weight: 600; }
.site-footer p, .site-footer a { color: var(--on-dark-muted); font-size: var(--step--1); line-height: 1.7; text-decoration: none; }
.site-footer a:hover { color: var(--stone); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .desc { max-width: 34ch; margin-top: 0.8rem; }
.footer-base {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(231, 224, 210, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.footer-base .reg { color: var(--on-dark-muted); font-size: var(--step--1); }
.footer-base .ftag { font-family: var(--serif); font-style: italic; color: var(--sage); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; }
  .practice > div:nth-child(2) { border-top: 1px solid var(--line); }
  .practice > div:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
