/* =========================================================================
   Datum Details — styles.css
   Font: Figtree. Dark-first brochure site. Ghost/outline buttons.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600&display=swap');

/* ---------------------------------------------------------------- Tokens */
:root {
  --color-black:    #1a1a1a;
  --color-charcoal: #3a3a38;
  --color-forest:   #4a5548;
  --color-sage:     #8fa882;
  --color-cream:    #f4f3ef;
  --color-white:    #ffffff;

  --sage-tint:   rgba(143, 168, 130, 0.14);
  --cream-line:  rgba(244, 243, 239, 0.16);
  --dark-line:   rgba(26, 26, 26, 0.14);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --gutter: 24px;
  --nav-h: 78px;

  --pad-section: 96px;
  --pad-hero: 128px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-cream);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; }

::selection { background: var(--color-sage); color: var(--color-black); }

/* ------------------------------------------------------------- Typography */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }

.display {
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; font-weight: 600; color: var(--color-sage); }

.h-section {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
}
.h-section em { font-style: italic; font-weight: 600; color: var(--color-sage); }

.eyebrow {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 300; line-height: 1.6; }

.muted { color: rgba(244, 243, 239, 0.72); }
.muted-dark { color: rgba(26, 26, 26, 0.66); }

em.accent { font-style: italic; color: var(--color-sage); }

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

.section { padding-block: var(--pad-section); }
.section-sm { padding-block: 64px; }

.section-black    { background: var(--color-black);    color: var(--color-cream); }
.section-charcoal { background: var(--color-charcoal); color: var(--color-cream); }
.section-forest   { background: var(--color-forest);   color: var(--color-cream); }
.section-cream    { background: var(--color-cream);    color: var(--color-black); }
.section-white    { background: var(--color-white);    color: var(--color-black); }

.text-center { text-align: center; }
.measure { max-width: 720px; }
.measure-narrow { max-width: 600px; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1.25rem; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--color-cream);
  color: var(--color-cream);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--color-cream); color: var(--color-black); }

.btn-dark { border-color: var(--color-black); color: var(--color-black); }
.btn-dark:hover { background: var(--color-black); color: var(--color-cream); }

.btn-sage { border-color: var(--color-sage); color: var(--color-cream); }
.btn-sage:hover { background: var(--color-sage); color: var(--color-black); border-color: var(--color-sage); }

/* ------------------------------------------------------------------ Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  height: 64px;
  background: rgba(26, 26, 26, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--cream-line);
}
.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: block; }
.nav__logo img { height: 46px; width: auto; transition: height 0.4s var(--ease); }
.nav.scrolled .nav__logo img { height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-sage);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--color-sage); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--color-sage); }

.nav__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(244, 243, 239, 0.85);
}
.nav__contact a:hover { color: var(--color-sage); }
.nav__contact .sep { opacity: 0.4; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 120;
}
.nav__toggle span {
  position: absolute;
  left: 5px; right: 5px;
  height: 1.5px;
  background: var(--color-cream);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 11px; }
.nav__toggle span:nth-child(2) { top: 17px; }
.nav__toggle span:nth-child(3) { top: 23px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
body.menu-open .nav__mobile { opacity: 1; visibility: visible; }
.nav__mobile a {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-cream);
}
.nav__mobile a:hover { color: var(--color-sage); }
.nav__mobile .nav__mobile-contact {
  margin-top: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-sage);
  text-align: center;
  line-height: 2;
}

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero--short { min-height: 70svh; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__content { position: relative; z-index: 2; padding-block: 60px; }

/* Generic full-bleed image-with-overlay block */
.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
}
.overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26,26,26,0.66), rgba(26,26,26,0.72));
  z-index: 1;
}
.overlay-dark > * { position: relative; z-index: 2; }

/* Directional scrim — darkest where left-aligned text sits, lets the photo
   breathe on the right. Used on hero headers. */
.scrim-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(18,18,18,0.86) 0%,
    rgba(18,18,18,0.62) 42%,
    rgba(18,18,18,0.34) 72%,
    rgba(18,18,18,0.22) 100%);
  z-index: 1;
}
.scrim-left > * { position: relative; z-index: 2; }

/* Even, slightly heavier scrim for centered CTA text over a photo. */
.scrim-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18,18,18,0.74), rgba(18,18,18,0.82));
  z-index: 1;
}
.scrim-center > * { position: relative; z-index: 2; }

/* Lift text legibility over photography. */
.scrim-left h1, .scrim-left h2, .scrim-left .lead, .scrim-left p,
.scrim-center h1, .scrim-center h2, .scrim-center .lead, .scrim-center p {
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.scrim-left .muted, .scrim-center .muted { color: rgba(244, 243, 239, 0.9); }

/* ---------------------------------------------------------------- Splits */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--text-right .split__media { order: -1; }
.split__media img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
}
.split__media.framed {
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

/* ---------------------------------------------------------------- Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* ---------------------------------------------------------------- Cards */
.card {
  padding: 38px 34px;
  background: rgba(244, 243, 239, 0.04);
  border: 1px solid var(--cream-line);
  height: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(143,168,130,0.5); background: rgba(244,243,239,0.06); transform: translateY(-4px); }
.card__icon {
  width: 56px; height: 56px;
  object-fit: contain;
  margin-bottom: 22px;
}
.card h4 { font-size: 1.3rem; font-weight: 500; margin-bottom: 12px; }
.card p { color: rgba(244,243,239,0.72); font-size: 0.98rem; }

/* Light card variant */
.card-light {
  background: var(--color-white);
  border: 1px solid var(--dark-line);
  color: var(--color-black);
}
.card-light:hover { border-color: rgba(143,168,130,0.7); }
.card-light p { color: rgba(26,26,26,0.66); }

/* Numbered process cards */
.step__num {
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--color-sage);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.step h4 { font-size: 1.35rem; font-weight: 500; margin-bottom: 12px; }

/* Seasonal columns */
.season__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.season__head img { width: 40px; height: 40px; object-fit: contain; }
.season__head h4 { font-size: 1.15rem; font-weight: 500; }
.season ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 10px;
  font-size: 0.96rem;
  color: rgba(244,243,239,0.74);
}
.season ul li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-sage);
}

/* Pricing / bill cards */
.bill-card { display: flex; flex-direction: column; }
.bill-card .bill-card__tag { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-sage); margin-bottom: 14px; }
.bill-card h4 { font-size: 1.5rem; font-weight: 500; margin-bottom: 6px; }
.bill-card .bill-card__sub { font-style: italic; color: rgba(244,243,239,0.6); margin-bottom: 22px; }
.bill-card ul li { position: relative; padding-left: 26px; margin-top: 14px; color: rgba(244,243,239,0.78); }
.bill-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 13px; height: 7px;
  border-left: 1.5px solid var(--color-sage);
  border-bottom: 1.5px solid var(--color-sage);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------- Testimonials */
.quote-card {
  background: var(--color-white);
  border: 1px solid var(--dark-line);
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-card p { font-size: 1.05rem; font-style: italic; line-height: 1.65; color: rgba(26,26,26,0.82); }
.quote-card .quote-card__mark { font-size: 3rem; line-height: 0.6; color: var(--color-sage); font-style: italic; height: 28px; }
.quote-card cite {
  margin-top: auto;
  padding-top: 22px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
}
.quote-card cite span { display: block; font-weight: 400; color: rgba(26,26,26,0.55); letter-spacing: 0.04em; font-size: 0.85rem; }

/* ----------------------------------------------------------- Cost chart */
.chart-wrap {
  margin-top: 48px;
  background: rgba(244,243,239,0.04);
  border: 1px solid var(--cream-line);
  padding: clamp(20px, 4vw, 40px);
}
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-size: 0.85rem; letter-spacing: 0.04em; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; color: rgba(244,243,239,0.8); }
.chart-legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }

/* ----------------------------------------------------------------- Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(26,26,26,0.7);
}
.field label .req { color: var(--color-sage); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* Honeypot: kept in the DOM and accessible to bots, hidden from humans.
   Not display:none (some bots skip those) — moved off-screen instead. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 20px;
  font-size: 0.98rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--color-forest); font-weight: 500; }
.form-status.error { color: #b4534b; font-weight: 500; }

/* ------------------------------------------------------------------ Map */
.map-embed {
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(1) contrast(0.92) brightness(0.85);
}

/* --------------------------------------------------------------- Footer */
.footer { background: var(--color-black); color: var(--color-cream); padding-block: 72px 32px; border-top: 1px solid var(--cream-line); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.footer h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 300; margin-bottom: 14px; }
.footer__lead { color: rgba(244,243,239,0.72); max-width: 420px; margin-bottom: 26px; }
.footer__contact { text-align: right; line-height: 1.9; }
.footer__contact a:hover { color: var(--color-sage); }
.footer__contact .sep { opacity: 0.4; }
.footer__social { display: inline-flex; gap: 16px; margin-top: 18px; justify-content: flex-end; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid var(--cream-line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.footer__social a:hover { border-color: var(--color-sage); background: var(--sage-tint); }
.footer__social svg { width: 18px; height: 18px; fill: var(--color-cream); }
.footer__logo img { height: 70px; width: auto; opacity: 0.9; margin-bottom: 24px; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(244,243,239,0.5);
  letter-spacing: 0.04em;
}
.footer__bottom .group-tag { color: rgba(244,243,239,0.4); }
.footer__bottom .group-tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom .group-tag a:hover { color: var(--color-sage); }
.footer__links { margin-top: 22px; font-size: 0.92rem; }
.footer__links a { color: rgba(244,243,239,0.75); }
.footer__links a:hover { color: var(--color-sage); }
.footer__links .sep { opacity: 0.4; }

/* --------------------------------------------------------------- Guides */
.article-head { max-width: 760px; }
.article-meta { color: var(--color-sage); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.article-meta .dot { opacity: 0.45; margin: 0 8px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-top: 1.8em; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5em; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5em; }
.prose strong { font-weight: 600; }
.prose a { color: var(--color-forest); text-decoration: underline; text-underline-offset: 2px; }
.prose-callout {
  margin-top: 1.6em;
  padding: 24px 28px;
  background: var(--sage-tint);
  border-left: 3px solid var(--color-sage);
}
.prose-callout p { margin: 0; }

.guide-card { display: flex; flex-direction: column; height: 100%; }
.guide-card .eyebrow { margin-bottom: 12px; }
.guide-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.guide-card p { color: rgba(244,243,239,0.72); font-size: 0.98rem; }
.guide-card .guide-link { margin-top: auto; padding-top: 18px; color: var(--color-sage); font-weight: 500; font-size: 0.95rem; }
.guide-card.is-soon { opacity: 0.55; }
.guide-card.is-soon .guide-link { color: rgba(244,243,239,0.5); }
a.guide-card { color: inherit; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease); }
a.guide-card:hover { border-color: rgba(143,168,130,0.5); background: rgba(244,243,239,0.06); transform: translateY(-4px); }

/* --------------------------------------------------------- Fade-in anim */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.fade-in.is-visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  :root { --pad-section: 72px; --pad-hero: 104px; }
  .nav__contact { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contact { text-align: left; }
  .footer__social { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--text-right .split__media { order: 0; }
  .split__media img { max-height: 420px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 769px) {
  /* keep seasonal grid 2x2 on tablet+ */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
