/* ============================================================
   SYNERGY 420 SOLUTIONS — redesign
   Editorial / premium. Bone paper, deep forest ink, lime accent.
   Fraunces (display) + Archivo (body).
   ============================================================ */

:root {
  --bone: #f2eee4;
  --bone-deep: #e9e3d3;
  --ink: #14231b;
  --forest: #1e4d38;
  --forest-soft: #2e6549;
  --lime: #bfe84e;
  --grey: #6f7a72;
  --line: rgba(20, 35, 27, 0.14);

  --font-display: "Fraunces", serif;
  --font-body: "Archivo", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lime); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.serif-i {
  font-style: italic;
  font-weight: 380;
  color: var(--forest);
}

/* ---------- labels / eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--forest);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--bone);
  opacity: 0;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(242, 238, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo em { color: var(--forest); }
.nav-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.2rem;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-block: 0.3rem; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--lime); }

.nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: var(--bone);
  border: none;
  border-radius: 99px;
  padding: 1rem 1.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover { background: var(--forest); transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--bone); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(2rem, 6vh, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero-bg-word {
  position: absolute;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 26rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(30, 77, 56, 0.16);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-product {
  position: absolute;
  top: 16vh;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 52vw, 820px);
  filter: drop-shadow(0 40px 60px rgba(20, 35, 27, 0.25));
  z-index: 2;
}
.hero-title {
  position: relative;
  z-index: 3;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  max-width: 18ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.hero-sub { max-width: 42ch; color: var(--grey); font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--bone-deep);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after { content: "✺"; color: var(--forest); font-size: 0.9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* product cutout marquee */
.marquee--products { padding-block: 2rem; background: transparent; }
.marquee--products .marquee-track { gap: 4rem; animation-duration: 40s; }
.marquee--products img {
  width: 130px; height: 130px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}
.marquee--products img:hover { transform: scale(1.12) rotate(-3deg); }

/* ---------- generic section ---------- */
.section { padding: clamp(4.5rem, 11vh, 9rem) var(--gutter); position: relative; }
.section-head { max-width: 1500px; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-head h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); max-width: 16ch; margin-top: 1.1rem; }
.section-inner { max-width: 1500px; margin-inline: auto; }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1500px;
  margin-inline: auto;
}
.split.flip > .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: 1.5rem;
  background: var(--bone-deep);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(191, 232, 78, 0.25), transparent 55%);
}
.split-media img { position: relative; margin-inline: auto; max-height: 460px; object-fit: contain; }
.split-copy h3 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); margin: 1rem 0 1.2rem; }
.split-copy p { color: var(--grey); max-width: 46ch; }
.split-copy .btn { margin-top: 1.8rem; }
.split-list { margin-top: 1.6rem; display: grid; gap: 0.65rem; }
.split-list li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 0.98rem;
}
.split-list li::before { content: "✺"; color: var(--forest); font-size: 0.8em; }

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
  max-width: 1500px;
  margin-inline: auto;
}
.card {
  position: relative;
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -20px rgba(20, 35, 27, 0.25);
}
.card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--grey);
}
.card img {
  height: 220px;
  object-fit: contain;
  margin: 0.8rem auto 1.2rem;
  transition: transform 0.5s var(--ease-out);
}
.card:hover img { transform: scale(1.07) rotate(-2deg); }
.card h3 { font-size: 1.55rem; }
.card p { color: var(--grey); font-size: 0.95rem; }
.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  gap: 0.5rem;
}

/* ---------- dark band (divisions / pinned) ---------- */
.band {
  background: var(--ink);
  color: var(--bone);
  border-radius: 2rem;
  margin-inline: clamp(0.6rem, 1.5vw, 1.5rem);
  overflow: clip;
}
.band .eyebrow { color: var(--lime); }
.band .eyebrow::before { background: var(--lime); }
.band h2, .band h3 { color: var(--bone); }
.band .serif-i { color: var(--lime); }
.band p { color: rgba(242, 238, 228, 0.65); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  max-width: 1500px;
  margin-inline: auto;
}
.stat {
  background: var(--bone);
  padding: 2.6rem 2rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
}
.stat span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; max-width: 1500px; margin-inline: auto; }
.quote {
  background: var(--bone-deep);
  border-radius: 1.25rem;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.quote p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-weight: 420; }
.quote footer { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-top: auto; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; max-width: 1500px; margin-inline: auto; }
.step {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--forest);
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.step p { color: var(--grey); max-width: 52ch; }

/* ---------- CTA footer block ---------- */
.cta-big {
  text-align: center;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
}
.cta-big h2 {
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.98;
}
.cta-big p { margin: 1.6rem auto 2.4rem; max-width: 44ch; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 2rem;
  border-radius: 2rem 2rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1500px;
  margin-inline: auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242, 238, 228, 0.15);
}
.footer-grid img { width: 150px; }
.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.footer ul { display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer ul a { opacity: 0.75; transition: opacity 0.25s; }
.footer ul a:hover { opacity: 1; }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  margin-top: 1.2rem;
  color: rgba(242, 238, 228, 0.8);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 1.6rem auto 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(9rem, 22vh, 14rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  max-width: 1500px;
  margin-inline: auto;
}
.page-hero h1 { font-size: clamp(3rem, 8vw, 7rem); max-width: 14ch; margin-top: 1.2rem; }
.page-hero .lede { margin-top: 1.6rem; max-width: 52ch; color: var(--grey); font-size: 1.15rem; }

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1500px;
  margin-inline: auto;
}
.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info .block h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 0.5rem;
}
.contact-info .block a { font-family: var(--font-display); font-size: 1.5rem; }
.contact-info .block a:hover { color: var(--forest); }
.form {
  background: #fbf9f2;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: 1.1rem;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.45rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.form input, .form textarea, .form select {
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bone);
  color: var(--ink);
  transition: border-color 0.25s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--forest);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- reveal helpers (JS adds .is-in) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger {
    display: block;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bone);
    padding: 1.5rem var(--gutter) 2rem;
    box-shadow: 0 20px 30px rgba(20,35,27,0.12);
    gap: 1.1rem;
  }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: auto 1fr; }
  .step p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
