/* ============================================================
   TerraPlan — Landing Page Styles
   Built on the TerraPlan brand guide. Minimal, bright, grounded.
   ============================================================ */

:root {
  --canvas:       #F8F6F1;
  --surface:      #FFFFFF;
  --tint:         #EFEDE5;
  --pine-50:      #F0F8F3;
  --border:       #E2E0D8;
  --primary:      #11723A;
  --primary-deep: #0A4A26;
  --ink:          #1A1A1A;
  --muted:        #5C5C5C;
  --brass:        #B89150;
  --sienna:       #733A11;
  --footer-bg:    #16181B;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --section-pad: clamp(5rem, 11vw, 9rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

section[id] { scroll-margin-top: 86px; }

::selection { background: var(--primary); color: #fff; }

/* ---------- Typographic utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--brass);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--brass);
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.32rem);
  line-height: 1.62;
  color: #3a3b35;
}

.t-green { color: var(--primary); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  padding: 1rem 1.8rem;
  border-radius: 7px;
  border: 1.6px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(10, 74, 38, .55);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(26, 26, 26, .22); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--brass { background: var(--brass); color: #16181B; }
.btn--brass:hover { background: #c8a162; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(184, 145, 80, .5); }
.btn--sm { padding: .7rem 1.2rem; font-size: .86rem; }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--brass);
  z-index: 200;
  transition: width .12s linear;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .13s; }
.reveal[data-delay="2"] { transition-delay: .26s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease);
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.15rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img { height: 32px; width: auto; transition: height .35s var(--ease); }
.nav.scrolled {
  background: rgba(248, 246, 241, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .07);
}
.nav.scrolled .nav__inner { padding-top: .7rem; padding-bottom: .7rem; }
.nav.scrolled .nav__logo img { height: 25px; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: .2rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--primary); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1.5px solid rgba(26, 26, 26, .2);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.4rem, 5vw, 3rem) 6rem;
  background: var(--canvas);
  overflow: hidden;
}
.hero__topo {
  position: absolute;
  top: 0; right: -8%;
  width: 78%;
  min-width: 760px;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  pointer-events: none;
  will-change: transform;
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
  font-size: clamp(2.7rem, 6.6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.hero__sub {
  max-width: 620px;
  margin: 1.7rem auto 0;
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: #45463f;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.3rem;
}
.hero__marks {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.8rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__marks li { display: flex; align-items: center; gap: 1.6rem; }
.hero__marks li:not(:last-child)::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}
.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: rgba(26, 26, 26, .18);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 22px;
  background: var(--primary);
  animation: scrollDot 2.1s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-24px); }
  100% { transform: translateY(54px); }
}

/* Hero entrance */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: .85; } }
.hero__eyebrow { animation: heroUp .85s .05s both var(--ease); }
.hero__title   { animation: heroUp .9s  .18s both var(--ease); }
.hero__sub     { animation: heroUp .9s  .32s both var(--ease); }
.hero__cta     { animation: heroUp .9s  .46s both var(--ease); }
.hero__marks   { animation: heroUp .9s  .6s  both var(--ease); }
.hero__scroll  { animation: heroUp 1s   .95s both var(--ease); }
.hero__topo    { animation: heroFade 1.8s .15s both; }

/* ============================================================
   PAIN SECTIONS
   ============================================================ */
.pain { position: relative; overflow: hidden; }
.pain--light { background: var(--surface); }
.pain--tint  { background: var(--tint); }
.pain__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: center;
}
.pain__numeral {
  position: absolute;
  top: -3rem; right: -1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(13rem, 30vw, 28rem);
  line-height: 1;
  color: rgba(17, 114, 58, .055);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.pain--flip .pain__numeral { right: auto; left: -1rem; }
.pain__title {
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  line-height: 1.1;
  margin: .85rem 0 1.35rem;
}
.pain__pull {
  margin-top: 1.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  color: var(--primary);
  padding-left: 1.3rem;
  border-left: 3px solid var(--brass);
}
.pain__figure { margin: 0; display: flex; justify-content: center; }
.pain__figure img {
  width: 100%;
  max-width: 470px;
  filter: drop-shadow(0 26px 40px rgba(26, 26, 26, .1));
}

/* ============================================================
   GUIDE / PLAN
   ============================================================ */
.guide {
  background: var(--pine-50);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
}
.guide__head { max-width: 720px; margin: 0 auto; text-align: center; }
.guide__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: .7rem 0 1.2rem;
}
.guide__intro { font-size: clamp(1.04rem, 1.4vw, 1.26rem); color: #3a3b35; line-height: 1.62; }

.guide__steps {
  list-style: none;
  max-width: 1140px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.3rem, 3vw, 2.2rem);
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.7rem, 2.6vw, 2.5rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 114, 38, .4);
  box-shadow: 0 26px 44px -26px rgba(10, 74, 38, .4);
}
.step__num {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--brass);
}
.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--pine-50);
  color: var(--primary);
  margin: 1.1rem 0 1.3rem;
}
.step__icon svg { width: 30px; height: 30px; }
.step__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: .6rem; }
.step__text { color: var(--muted); font-size: 1rem; line-height: 1.65; }

.guide__closer {
  text-align: center;
  max-width: 760px;
  margin: clamp(2.4rem, 4vw, 3.4rem) auto 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.3;
}
.guide__closer span {
  display: block;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--muted);
  margin-top: .9rem;
  letter-spacing: .02em;
}

/* ============================================================
   JOURNEY
   ============================================================ */
.journey {
  background: var(--surface);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
}
.journey__head { max-width: 720px; margin: 0 auto; text-align: center; }
.journey__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: .7rem 0 1rem;
}
.journey__sub { font-size: clamp(1.04rem, 1.4vw, 1.24rem); color: #3a3b35; }

.journey__grid {
  max-width: 1040px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}
.jcard { margin: 0; }
.jcard__img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--canvas);
  aspect-ratio: 3 / 4;
}
.jcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.jcard:hover .jcard__img img { transform: scale(1.045); }
.jcard figcaption { padding: 1.15rem .2rem 0; }
.jcard__num {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.jcard figcaption p {
  margin-top: .4rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.36;
  color: var(--ink);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--tint);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
}
.contact__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: start;
}
.contact__title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.04;
  margin: .7rem 0 1.3rem;
}
.contact__kicker {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.45;
  color: var(--primary);
}
.contact__direct {
  margin-top: 2.1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.contact__direct span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  font-weight: 600;
}
.contact__phone {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  color: var(--ink);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.contact__phone:hover { color: var(--primary); }
.contact__email {
  color: var(--primary);
  text-decoration: none;
  font-size: .98rem;
}
.contact__email:hover { text-decoration: underline; }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.8rem, 3vw, 2.7rem);
}
.field { margin-bottom: 1.45rem; }
.field label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .5rem;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.6px solid var(--border);
  background: transparent;
  padding: .55rem .15rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a09e93; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.contact__note {
  margin-top: 1rem;
  font-size: .94rem;
  color: var(--primary);
  min-height: 1.2em;
  font-weight: 500;
}

/* ============================================================
   TRUST / MARQUEE
   ============================================================ */
.trust {
  background: var(--canvas);
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.trust__head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.trust__title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.1;
  margin-top: .7rem;
}
.marquee {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: .8rem 1.6rem;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.quote {
  flex: 0 0 clamp(280px, 78vw, 408px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: .1;
  color: var(--brass);
  margin: 1.4rem 0 .9rem;
  display: block;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption {
  margin-top: 1.4rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.quote figcaption strong { font-size: .95rem; color: var(--ink); }
.quote figcaption span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: #c9cbce;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) 2.6rem;
}
.footer__cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__logo { width: 86px; height: auto; margin: 0 auto 1.9rem; }
.footer__poetic {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.15rem);
  line-height: 1.34;
  color: #f3f1ec;
  margin-bottom: 1.9rem;
}
.footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer__col { display: flex; flex-direction: column; gap: .72rem; }
.footer__col h4 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #fff;
  margin-bottom: .45rem;
}
.footer__col a {
  color: #a9acb0;
  text-decoration: none;
  font-size: .93rem;
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--brass); }
.footer__bar {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #7e8186;
}
.footer__tag { text-transform: uppercase; letter-spacing: .12em; }
.footer__legal a { color: #7e8186; text-decoration: none; margin-left: 1.3rem; }
.footer__legal a:hover { color: var(--brass); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    padding: .5rem clamp(1.2rem, 4vw, 3rem) 1.4rem;
    box-shadow: 0 16px 30px -18px rgba(26, 26, 26, .3);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(248, 246, 241, .98); backdrop-filter: blur(12px); }
  .nav__toggle { display: flex; }
  .pain__inner, .contact__inner { grid-template-columns: 1fr; }
  .pain__figure { order: -1; }
  .pain__figure img { max-width: 380px; }
  .guide__steps { grid-template-columns: 1fr; max-width: 480px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.6rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .journey__grid { grid-template-columns: 1fr; max-width: 420px; }
  .nav__actions .btn--primary { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { justify-content: center; text-align: center; }
  .footer__legal a { margin: 0 .65rem; }
  .pain__pull { font-size: 1.2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__eyebrow, .hero__title, .hero__sub, .hero__cta,
  .hero__marks, .hero__scroll, .hero__topo { animation: none; opacity: 1; }
  .hero__topo { opacity: .85; }
  .hero__scroll-line::after { animation: none; }
  * { transition-duration: .01ms !important; }
}
