/* =========================================================
   Land & Biodiversity Stewardship
   styles.css — mobile-first, no framework, no build step
   ========================================================= */

:root {
  /* Palette (locked by brief) */
  --stone:        #d5d2c6;
  --stone-deep:   #c8c4b6;
  --grey:         #e7e7e7;
  --grey-deep:    #d6d6d6;
  --gold:         #c5bb97;
  --gold-soft:    #d4cba8;
  --ink:          #1f2421;
  --ink-soft:     #3a4039;
  --paper:        #f4f2ec;

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

  /* Layout */
  --maxw: 76rem;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Shape */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  /* Lines */
  --line: 1.5px solid var(--ink);
  --line-soft: 1px solid rgba(31,36,33,0.18);
}

/* ----- reset / base ----- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ----- accessibility helpers ----- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink);
  color: var(--stone);
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ----- typography ----- */
h1,h2,h3,h4 {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0 0 .8em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); letter-spacing: 0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); letter-spacing: 0.07em; line-height: 1.25; }
h4 { font-size: 0.95rem; letter-spacing: 0.08em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; letter-spacing: 0.02em; }

/* ----- common building blocks ----- */
.pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: var(--line);
  margin: 0 0 1rem;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1.5px;
  background: var(--ink);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: var(--line);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn::after {
  content: "→";
  font-weight: 500;
  transition: transform .25s ease;
}
.btn:hover::after { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--stone);
}
.btn--primary:hover {
  background: var(--ink-soft);
  box-shadow: 0 6px 18px -10px rgba(31,36,33,.5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--gold);
}

.card {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

/* Topographic texture overlay — extends to the full viewport width
   while the section's own content stays inside its maxw container. */
.has-contour {
  position: relative;
  isolation: isolate;
}
.has-contour::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-image: url('assets/contour_lines.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Anchor to the viewport so every stone zone (header, hero, services,
     about, contact) reveals one shared, static contour layer rather than
     each section scrolling its own copy. Grey sections stay opaque and
     naturally hide it. */
  background-attachment: fixed;
  opacity: 0.85;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* ----- header ----- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--pad-x) 0;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--stone);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.brand__mark {
  width: 52px;
  height: 52px;
  flex: none;
  color: var(--ink);
  display: inline-flex;
}
.brand__mark svg,
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__line2 { font-weight: 700; opacity: 1; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .25rem;
}
.site-nav a {
  display: inline-block;
  padding: .55rem .8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.site-nav a:hover {
  background: var(--gold);
}

@media (min-width: 820px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 2rem;
  }
  .site-nav ul { gap: .25rem; }
}

/* ----- section frame ----- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 60ch;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .pill { margin-left: auto; margin-right: auto; }
.section-head__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__copy {
  max-width: 22ch;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  margin-bottom: 0.5em;
}
.hero h1 span { display: block; }
.hero__tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 38ch;
  margin: 1.5rem 0 2rem;
  color: var(--ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: 2.5rem;
}

.hero__image {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: var(--line);
  background: var(--ink);
}
.hero__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (min-width: 880px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
  .hero__copy { max-width: none; }
  .hero__image img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1080px) {
  .hero__image img { aspect-ratio: 5 / 6; }
}

/* ============================================================
   INTRO — full-bleed grey band, content aligned to section maxw
   ============================================================ */
.intro {
  max-width: none;
  background: var(--grey);
  padding-left: 0;
  padding-right: 0;
}
.card--intro {
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 760px) {
  .card--intro {
    grid-template-columns: 1fr auto;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.card--intro p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  margin: 0 0 1.2em;
  max-width: 60ch;
}
.card--intro p:last-child { margin-bottom: 0; }
.card--intro__logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card--intro__logo img {
  width: clamp(9rem, 14vw, 13rem);
  height: auto;
  display: block;
}

/* ============================================================
   FEATURE BANNER — full-bleed photo with parallax + dark overlay
   ============================================================ */
.feature {
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  isolation: isolate;
  background-color: var(--ink);
  background-image: url('assets/hero_alt.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 36, 33, 0.55) 0%,
    rgba(31, 36, 33, 0.45) 50%,
    rgba(31, 36, 33, 0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.feature__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 14vw, 10rem) var(--pad-x);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__text {
  color: #fff;
  text-align: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0.005em;
  max-width: 32ch;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.feature__text strong {
  font-weight: 700;
  color: var(--gold);
}

/* Disable background-attachment: fixed where it breaks (iOS Safari,
   reduced-motion preference) — falls back to a standard scrolling
   background, no jank. */
@media (max-width: 800px),
       (prefers-reduced-motion: reduce) {
  .feature {
    background-attachment: scroll;
  }
  .has-contour::before {
    background-attachment: scroll;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: transparent;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--paper);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -22px rgba(31,36,33,0.6);
}
.service__icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  border: var(--line);
}
.service__icon svg { width: 32px; height: 32px; }
.service h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.service ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
}
.service li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  max-width: none;
  background: var(--grey);
  border: none;
  border-radius: 0;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.why > .section-head,
.why > .why__grid {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.why-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
  overflow: hidden;
}
.why-card__media {
  /* bleed the image to the card edges, flush under the rounded top */
  margin: calc(-1 * clamp(1.4rem, 2.5vw, 2rem)) calc(-1 * clamp(1.4rem, 2.5vw, 2rem)) .35rem;
  border-bottom: var(--line);
  overflow: hidden;
  background: var(--ink);
}
.why-card__media img {
  width: 100%;
  height: clamp(7.5rem, 13vw, 9.5rem);
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.why-card:hover .why-card__media img { transform: scale(1.05); }
.why-card h3 {
  margin: 0;
  font-size: 1rem;
}
.why-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 38ch;
}

/* ============================================================
   ABOUT WILL
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 880px) {
  .about__inner {
    grid-template-columns: minmax(280px, 22rem) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.about__portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
}
.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: var(--line);
  background: var(--ink);
}
.about__portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.about__name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about__quals {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about__bio {
  max-width: 60ch;
}
.about__intro {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: var(--line-soft);
}
.about__bio p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.1em;
  color: var(--ink-soft);
}
.about__bio p:last-child { margin-bottom: 0; }

/* ============================================================
   GALLERY — full-bleed grey band, content at maxw
   ============================================================ */
.gallery {
  max-width: none;
  background: var(--grey);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.gallery > .gallery__grid {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 12rem;
  gap: .85rem;
}
@media (min-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 15rem;
    gap: 1rem;
  }
}
@media (min-width: 1080px) {
  .gallery__grid { grid-auto-rows: 17rem; }
}
.gallery__item {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: var(--line);
  background: var(--ink);
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

@media (min-width: 760px) {
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.contact__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}
@media (min-width: 600px) {
  .contact__list {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
}
.contact__label {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact__value {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.contact__value:hover {
  border-bottom-color: var(--ink);
}
.contact__note {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.contact__cta { margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
  }
  .brand--footer { grid-row: 1 / 2; }
  .site-footer__contact { grid-row: 1 / 2; grid-column: 2; justify-self: end; }
  .site-footer__copy { grid-row: 2 / 3; grid-column: 1 / -1; }
}
.brand--footer { color: var(--stone); }
.brand--footer .brand__mark { color: var(--stone); }
.brand--footer .brand__line2 { opacity: 1; }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
@media (min-width: 760px) {
  .site-footer__contact { text-align: right; }
}
.site-footer__contact a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid rgba(213,210,198,0.25);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.site-footer__contact a:hover { border-bottom-color: var(--gold); }

.site-footer__copy {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(213,210,198,0.6);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(213,210,198,0.15);
}

/* ============================================================
   small details
   ============================================================ */
::selection { background: var(--gold); color: var(--ink); }

/* Reveal-on-load — staggered entrance for hero copy */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    opacity: 0;
    transform: translateY(8px);
    animation: rise .7s cubic-bezier(.2,.7,.25,1) forwards;
  }
  .hero__copy > .eyebrow      { animation-delay: .05s; }
  .hero__copy > h1            { animation-delay: .15s; }
  .hero__copy > .hero__tagline{ animation-delay: .35s; }
  .hero__copy > .hero__actions{ animation-delay: .5s; }
  .hero__image {
    opacity: 0;
    transform: translateY(12px);
    animation: rise .9s .25s cubic-bezier(.2,.7,.25,1) forwards;
  }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
