/* ==========================================================================
   Treeline Social — design system
   Colors sampled from the Squarespace build. Swap the tokens below and the
   whole site follows.
   ========================================================================== */

:root {
  /* Brand */
  --green:        #3A5224;  /* primary — headings, logo, buttons */
  --green-deep:   #2C3F1B;  /* darkest stat card, footer */
  --green-mid:    #6F9A57;  /* mid stat card */
  --green-tint:   #EEF2E9;  /* soft background wash */
  --gray:         #BFBFBF;  /* founder band, first stat card */
  --gray-soft:    #F4F4F2;
  --white:        #FFFFFF;
  --ink:          #1B1B18;

  /* Type */
  --display: "Archivo Black", "Archivo", Helvetica, Arial, sans-serif;
  --body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max:     1280px;
  --gutter:  clamp(20px, 5vw, 64px);
  --radius:  14px;

  /* Height of the booking calendar on /book.html.
     Cal.com's month view needs roughly 520px to show the grid and the time
     slots together. Go much below that and the calendar scrolls inside its
     own box, which reads as broken. Above ~700px you just get empty space. */
  --cal-height: 560px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 5.5vw, 76px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2.4em;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover  { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }

.btn--light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--light:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58,82,36,.10);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }

.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }

.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 13px);
  text-decoration: none;
}
.brand__mark { width: clamp(40px, 4.6vw, 58px); height: auto; flex: none; }
.brand__word {
  font-family: var(--display);
  color: var(--green);
  text-transform: uppercase;
  font-size: clamp(.86rem, 1.45vw, 1.12rem);
  line-height: 1.02;
  white-space: nowrap;
}

.site-header__cta { justify-self: end; }
.site-header__cta .btn { padding: .9em 1.9em; font-size: .82rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--green);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(26px, 3.5vw, 48px); overflow: hidden; }

.hero__row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
}
.hero__row + .hero__row {
  grid-template-columns: 1fr 1.35fr;
  margin-top: clamp(14px, 2.2vw, 28px);
}

.hero__word {
  font-family: var(--display);
  font-weight: 900;
  color: var(--green);
  line-height: .82;
  letter-spacing: -0.02em;
  font-size: clamp(2.9rem, 11.5vw, 9.2rem);
  margin: 0;
  text-transform: uppercase;
}
.hero__word--right { text-align: right; }

.hero__img {
  width: 100%;
  height: clamp(120px, 14vw, 200px);
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__img--wide { height: clamp(110px, 12vw, 165px); }

.hero__tagline {
  margin: clamp(20px, 2.8vw, 34px) 0 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--green-deep);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Section headings ---------- */

.h-display {
  font-family: var(--display);
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.01em;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  margin: 0 0 .5em;
}
.h-display--center { text-align: center; }

.h-sub {
  font-family: var(--display);
  color: var(--green);
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  margin: 0 0 .5em;
}

.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin: 0 0 14px;
}

/* ---------- Founder band ---------- */

.founder { background: var(--gray); }

.founder__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.founder__body {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--green);
  font-weight: 500;
  margin: 0;
  max-width: 34ch;
}

.founder__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Stats ---------- */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(180px, 19vw, 260px);
  padding: 36px 24px;
  border-radius: 4px;
  color: var(--white);
}
.stat:nth-child(1) { background: var(--gray); }
.stat:nth-child(2) { background: var(--green-mid); }
.stat:nth-child(3) { background: var(--green-deep); }

.stat__pre   { font-size: 1.05rem; font-weight: 500; opacity: .95; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: .12em 0 .18em;
}
.stat__label { font-size: 1.05rem; font-weight: 500; opacity: .95; }

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 32px;
}

.service {
  background: var(--gray-soft);
  border: 1px solid rgba(58,82,36,.12);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.service h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.service p { margin: 0; color: #3f4a38; font-size: .98rem; }

.service__num {
  font-family: var(--display);
  font-size: .85rem;
  color: var(--green-mid);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 14px;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.cta .h-display { color: var(--white); }
.cta p {
  max-width: 52ch;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  opacity: .92;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.82);
  padding-block: 44px 26px;
  font-size: .94rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.site-footer h4 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: .88rem;
  letter-spacing: .08em;
  color: var(--white);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: var(--white); }
/* The mark is full-color, so it sits on a white chip to read against the
   dark green footer rather than being flattened to a silhouette. */
.site-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.site-footer__mark {
  width: 62px;
  height: 62px;
  flex: none;
  padding: 9px;
  background: var(--white);
  border-radius: 50%;
  object-fit: contain;
}
.site-footer__word {
  font-family: var(--display);
  color: var(--white);
  text-transform: uppercase;
  font-size: 1.06rem;
  line-height: 1.03;
}

.site-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .85rem;
  opacity: .72;
}

/* ---------- Generic page intro ---------- */

.page-intro { background: var(--green-tint); }
.page-intro p {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--green-deep);
  margin: 0;
}

/* ---------- Gallery ---------- */

/* ---------- Placeholder flag ---------- */

.todo {
  border-left: 4px solid var(--green-mid);
  background: var(--green-tint);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  color: var(--green-deep);
  margin: 26px 0 0;
}
.todo strong { color: var(--green); }

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

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(58,82,36,.12);
    padding: 8px var(--gutter) 20px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid rgba(58,82,36,.08); }
  .nav-toggle { display: block; }
  .brand { justify-self: center; }
  .brand__word { font-size: .82rem; }
  .site-header__cta .btn { padding: .8em 1.3em; font-size: .74rem; }

  .founder__grid { grid-template-columns: 1fr; }
    .founder__body { max-width: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero__row,
  .hero__row + .hero__row { grid-template-columns: 1fr; }
  /* Sized from the usable width rather than 100vw, because vw ignores the
     gutters — at 390px, 17vw put TREELINE at almost exactly the content width
     and .hero's overflow:hidden clipped the final stroke. The divisor is the
     approximate em-width of the longest word plus headroom. */
  .hero__word,
  .hero__word--right {
    text-align: left;
    font-size: min(6rem, calc((100vw - 2 * var(--gutter)) / 5.8));
  }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { min-height: 220px; }
}

@media (max-width: 520px) {
  .site-header__cta { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.cta__alt { margin: 34px 0 0; font-size: .95rem; }
.cta__alt a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.cta__alt a:hover { color: var(--white); }

/* ==========================================================================
   Positioning sections
   ========================================================================== */

/* ---------- Value band: the economic argument ---------- */

.value { background: var(--green); color: var(--white); }
.value__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(26px, 4.5vw, 68px);
  align-items: center;
}
.value__headline {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4.1vw, 3.2rem);
  line-height: .98;
  letter-spacing: -0.01em;
  margin: 0;
}
.value__body {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.62;
  opacity: .93;
  margin: 1.25em 0 0;
}
.value__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Split: photo beside copy ---------- */

.split__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.18fr 0.82fr; }
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 290px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media--wide img { aspect-ratio: 16 / 9; max-height: 250px; }
.split__body p {
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  line-height: 1.62;
  color: #3f4a38;
  margin: 0 0 1.1em;
}
.split__body p:last-child { margin-bottom: 0; }

/* ---------- CTA over a photograph ---------- */

.cta { position: relative; overflow: hidden; }
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}
.cta > .wrap { position: relative; z-index: 1; }


@media (max-width: 900px) {
  .value__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .split__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img, .split__media--wide img { aspect-ratio: 3 / 2; }
}

/* ---------- Service detail blocks ---------- */

.offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(26px, 3.4vw, 42px);
  border-top: 1px solid rgba(58,82,36,.14);
}
.offer:first-of-type { border-top: 0; padding-top: 0; }

.offer__num {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--green-mid);
}
.offer h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.1;
  margin: 0 0 .7em;
}
.offer p {
  margin: 0 0 1.1em;
  color: #3f4a38;
  max-width: 62ch;
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  line-height: 1.6;
}
.offer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.offer__list li {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--green);
  background: var(--green-tint);
  border: 1px solid rgba(58,82,36,.14);
  border-radius: 999px;
  padding: .5em 1em;
}

@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Social proof cards ---------- */

.proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: 32px;
}

.proof {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(58,82,36,.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.proof:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(28,40,18,.14); }
.proof:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }

.proof__meta { padding: 26px 24px 10px; }
.proof__brand {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin: 0 0 9px;
}
.proof__stat {
  font-family: var(--display);
  color: var(--green);
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  line-height: 1.05;
  margin: 0 0 7px;
}
.proof__label { font-size: .86rem; color: #4a5543; margin: 0 0 9px; }
.proof__sub   { font-size: .79rem; color: #6d7866; margin: 0; }

.proof__link {
  margin-top: auto;
  padding: 14px 24px 22px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--green-mid);
}
.proof:hover .proof__link { color: var(--green); }

/* ---------- Booking page ---------- */

.booking__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.booking__expect {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
}
.booking__expect li {
  position: relative;
  padding-left: 26px;
  font-size: .97rem;
  line-height: 1.55;
  color: #3f4a38;
}
.booking__expect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-mid);
}

.booking__embed {
  min-height: var(--cal-height);
  max-width: 560px;
  border: 1px solid rgba(58,82,36,.16);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

/* shown until a cal.com handle is configured, and if the embed fails to load */
.booking__fallback {
  border: 1px dashed rgba(58,82,36,.38);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  background: var(--green-tint);
  text-align: center;
}
.booking__fallback h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green);
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.booking__fallback p {
  max-width: 46ch;
  margin: 0 auto 20px;
  color: var(--green-deep);
  font-size: .97rem;
}
.booking__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.booking__note {
  margin: 18px 0 0;
  font-size: .84rem;
  color: #6d7866;
}

@media (max-width: 900px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__embed { min-height: var(--cal-height); max-width: none; }
}

/* ---------- Legal / long-form prose ---------- */

.prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.2;
  margin: 2.2em 0 .7em;
}
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 {
  font-family: var(--body);
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1rem;
  margin: 1.6em 0 .5em;
}
.prose p, .prose li {
  font-size: .97rem;
  line-height: 1.68;
  color: #3f4a38;
}
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--green); font-weight: 600; }
.prose strong { color: var(--green-deep); }

.prose__updated {
  font-size: .84rem;
  color: #6d7866;
  margin: 0 0 2em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid rgba(58,82,36,.15);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(58,82,36,.15);
  font-size: .88rem;
}

/* small print under performance claims */
.disclaimer {
  margin: 22px 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: #6d7866;
  max-width: 68ch;
}
.stats .disclaimer, .cta .disclaimer { margin-inline: auto; text-align: center; }
.cta .disclaimer { color: rgba(255,255,255,.62); }
