/* =============================================================================
   Geograppy — one page site
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens, carried over from the original identity */
  --green:        #50B557;
  --green-bright: #6FD478;
  --lime:         #C6DB78;
  /* Accessible green for light backgrounds — the brand greens are far too
     light on paper (#6FD478 on #F7F6F1 is only 1.7:1). */
  --green-ink:    #2E6B33;

  /* Forest darks */
  --ink:      #0B1311;
  --ink-2:    #101C18;
  --forest:   #16231F;
  --forest-2: #1E3232;

  /* Paper lights */
  --paper:   #F7F6F1;
  --paper-2: #ECEAE1;
  --sand:    #BCB8AD;

  /* Text */
  --on-dark:        #E9EEEA;
  --on-dark-muted:  #9AA9A1;
  --on-light:       #16231F;
  --on-light-muted: #56675F;

  --hairline-dark:  rgba(233, 238, 234, .12);
  --hairline-light: rgba(22, 35, 31, .12);

  --shell:  1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 12px 20px;
  background: var(--green);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px);
  scroll-margin-top: 72px;
}

.section-dark  { background: var(--ink); color: var(--on-dark); }
.section-paper { background: var(--paper); color: var(--on-light); }

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .55em; }
.section-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--on-light-muted);
  max-width: 58ch;
}
.section-dark .section-lead,
.section-head-light .section-lead { color: var(--on-dark-muted); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1.1em;
}
.section-paper .eyebrow { color: var(--green-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--green); color: #08120E; }
.btn-accent:hover { background: var(--green-bright); }

.btn-ghost {
  border-color: rgba(233, 238, 234, .3);
  color: var(--on-dark);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn-sm { padding: .6em 1.2em; font-size: .875rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 19, 17, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--hairline-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--on-dark);
}
.brand-mark {
  width: 26px; height: 26px;
  flex: none;
  background: var(--green);
  -webkit-mask: url("/assets/img/logo.svg") center / contain no-repeat;
          mask: url("/assets/img/logo.svg") center / contain no-repeat;
  transition: background-color .22s var(--ease);
}
.brand:hover .brand-mark { background: var(--green-bright); }
.brand:hover .brand-name { color: var(--green-bright); }
.brand-name { transition: color .22s var(--ease); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.site-nav > a {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark);
  opacity: .82;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.site-nav > a:hover { opacity: 1; color: var(--green-bright); }
.site-nav > a.nav-cta { opacity: 1; color: #08120E; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle-bars i {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 108px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.72);
}

.hero-contours {
  position: absolute;
  inset: -5%;
  z-index: -2;
  background: url("/assets/img/contours.svg") center / cover no-repeat;
  opacity: .3;
  mix-blend-mode: screen;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(105% 75% at 18% 28%, rgba(11, 19, 17, .62), transparent 60%),
    linear-gradient(180deg, rgba(11, 19, 17, .80) 0%, rgba(11, 19, 17, .42) 42%, rgba(11, 19, 17, .95) 100%);
}

.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.hero-title {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  max-width: 16ch;
  margin-bottom: .5em;
}

.hero-lead {
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  color: #C6D2CB;
  max-width: 56ch;
  margin-bottom: 2.2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sits directly below the hero rather than inside it, so it never depends on
   the viewport being tall enough to hold the hero copy and the band together. */
.discipline-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 56px);
  padding: 22px var(--gutter);
  background: var(--ink);
  border-block: 1px solid var(--hairline-dark);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.card {
  padding: clamp(24px, 2.6vw, 34px);
  background: linear-gradient(160deg, rgba(233, 238, 234, .055), rgba(233, 238, 234, .02));
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  transition: border-color .28s var(--ease), transform .28s var(--ease),
              background-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 212, 120, .42);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(111, 212, 120, .32);
  border-radius: 13px;
  color: var(--green-bright);
  background: rgba(80, 181, 87, .08);
}
.card-icon svg { width: 25px; height: 25px; }

.card h3 { font-size: 1.2rem; margin-bottom: .6em; }
.card p { font-size: .95rem; color: var(--on-dark-muted); margin: 0; }

/* ---------- Pull quote ---------- */
.quote-band {
  background: var(--lime);
  color: #1B2A16;
  padding-block: clamp(52px, 8vw, 92px);
  text-align: center;
}
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 5.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin: 0;
}
.quote em { font-style: normal; color: #3F5A1F; }

/* ---------- Expertise (photo section) ---------- */
.section-photo {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  background: var(--forest);
}
.photo-bg { position: absolute; inset: 0; z-index: -2; }
.photo-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.68);
}
.photo-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 19, 17, .9), rgba(11, 19, 17, .7) 45%, rgba(11, 19, 17, .93));
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.panel {
  padding: clamp(26px, 3.2vw, 44px);
  background: rgba(11, 19, 17, .62);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.panel h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: .7em;
  color: var(--green-bright);
}
.panel p { color: #C0CCC5; font-size: .98rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}
.tag-list li {
  padding: .38em .9em;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--on-dark-muted);
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  counter-reset: step;
}
.step { padding-top: 26px; border-top: 2px solid var(--on-light); }
.step-no {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green-ink);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.28rem; margin-bottom: .6em; }
.step p { color: var(--on-light-muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.section-contact { overflow: hidden; isolation: isolate; }
.contact-contours {
  position: absolute;
  inset: -20% -10% auto;
  height: 150%;
  z-index: -1;
  background: url("/assets/img/contours.svg") center / cover no-repeat;
  opacity: .12;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-intro h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .55em; }
.contact-intro .section-lead { margin-bottom: 2em; }

.contact-details { display: grid; gap: 30px; }
.contact-details li { display: grid; gap: 4px; }
.contact-label {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 4px;
}
.contact-details a {
  width: fit-content;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(111, 212, 120, .35);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact-details a:hover { color: var(--green-bright); border-color: var(--green-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-inner .brand { font-size: 1rem; }
.footer-inner .brand-mark { width: 22px; height: 22px; }
.footer-tag, .footer-copy {
  margin: 0;
  font-size: .88rem;
  color: var(--on-dark-muted);
}

/* ---------- Scroll reveal ----------
   Hidden only once the `js` class is set (synchronously, in <head>), so the
   content stays visible if scripting is unavailable or fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  .nav-toggle { display: grid; place-items: center; }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: rgba(11, 19, 17, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline-dark);
    /* Collapsed: visibility:hidden also removes the links from the tab order */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  .site-nav > a {
    padding: 16px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .site-nav > a.nav-cta {
    margin-top: 22px;
    justify-content: center;
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .discipline-band { gap: 10px 20px; font-size: .72rem; padding: 18px var(--gutter); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  .card p, .panel p, .step p, .section-lead { color: inherit; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-bg, .hero-contours, .hero-veil,
  .photo-bg, .photo-veil, .contact-contours { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { min-height: 0; padding-block: 18px; }
  .js .reveal { opacity: 1; transform: none; }
}
