/* ============================================================
   Sustyne Inc · stylesheet
   Brand: neutral off-white base, green accents.
   ============================================================ */

:root {
  /* palette */
  --off-white: #FBFAF6;
  --warm-neutral: #ECEAE3;
  --charcoal-green: #1F2A24;
  --muted-gray: #6B7280;
  --emerald: #2E9E6B;
  --emerald-dark: #25885A;   /* hover/darker emerald */
  --deep-green: #06402B;
  --mint: #9FE3C4;
  --border: #E0DCCE;

  /* typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --radius-sm: 9px;

  /* effects */
  --shadow-sm: 0 1px 2px rgba(31, 42, 36, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(6, 64, 43, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(6, 64, 43, 0.28);
  --ring: 0 0 0 3px rgba(46, 158, 107, 0.28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal-green);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--emerald-dark); }
h1, h2, h3, h4 { color: var(--deep-green); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }

/* ---------- shared layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--neutral { background: var(--warm-neutral); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted-gray); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow--onlight { color: var(--emerald-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--emerald); color: #fff; }
.btn--primary:hover { background: var(--emerald-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--deep-green); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald-dark); }
.btn--ondark { background: var(--mint); color: var(--deep-green); }
.btn--ondark:hover { background: #fff; color: var(--deep-green); box-shadow: var(--shadow-md); }
.btn--ghost-ondark { background: transparent; color: var(--off-white); border-color: rgba(255,255,255,.32); }
.btn--ghost-ondark:hover { border-color: var(--mint); color: var(--mint); }

/* ============================================================
   Wordmark logo
   ============================================================ */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}
.wordmark__text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  color: var(--deep-green);
}
.wordmark__bar {
  display: block;
  height: 3px;
  width: 38px;
  border-radius: 2px;
  background: var(--emerald);
}
/* reversed for dark backgrounds */
.wordmark--reverse .wordmark__text { color: var(--off-white); }
.wordmark--reverse .wordmark__bar { background: var(--emerald); }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--charcoal-green);
  font-weight: 500;
  font-size: .96rem;
}
.nav-links a:hover { background: var(--warm-neutral); color: var(--deep-green); }
.nav-links a.is-active { color: var(--deep-green); font-weight: 600; }
.nav-links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 3px auto 0;
  border-radius: 2px;
  background: var(--emerald);
}
.nav-cta { margin-left: 8px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--deep-green);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-actions {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px var(--gutter) 24px;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-actions.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.is-active::after { margin-inline: 0; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 132px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(159, 227, 196, 0.35), transparent 60%),
    radial-gradient(40% 50% at 5% 95%, rgba(46, 158, 107, 0.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; font-size: 1.25rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta .stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--deep-green);
  letter-spacing: -0.02em;
}
.hero-meta .stat span { font-size: .9rem; color: var(--muted-gray); }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mint); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted-gray); margin-bottom: 0; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--deep-green);
  margin-bottom: 18px;
  font-size: 1.25rem;
}

/* value props (compact, borderless) */
.prop { padding: 4px 0; }
.prop .card-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.prop h3 { font-size: 1.1rem; }
.prop p { color: var(--muted-gray); }

/* badge / tag */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--deep-green);
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 11px;
  margin: 0 6px 6px 0;
}
.tag--outline { background: transparent; border: 1px solid var(--border); color: var(--muted-gray); }

/* feature list with check marks */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--charcoal-green); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2306402B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   Process steps
   ============================================================ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { position: relative; padding: 26px 28px 26px 84px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 28px; top: 26px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald);
}
.step h3 { margin-bottom: .25em; }
.step p { margin-bottom: 0; color: var(--muted-gray); }

/* ============================================================
   Case studies
   ============================================================ */
.case {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.case + .case { margin-top: 28px; }
.case__media {
  background: linear-gradient(150deg, var(--deep-green), #0a5638);
  color: var(--off-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.case__logo { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.case__media .tag { background: rgba(159,227,196,.18); color: var(--mint); }
.case__body { padding: 40px; }
.case__body h3 { font-size: 1.5rem; }
.case__body .lead { font-size: 1.05rem; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; }
  .case__media { min-height: 180px; }
}

/* ============================================================
   CTA band (dark)
   ============================================================ */
.cta-band {
  background: var(--deep-green);
  color: var(--off-white);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 85% 0%, rgba(159,227,196,.16), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(251,250,246,.78); max-width: 50ch; margin-inline: auto 0; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--deep-green); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal-green);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: var(--ring);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: .86rem; color: var(--muted-gray); }
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--deep-green);
  font-weight: 500;
}
.form-status.is-visible { display: block; }

.contact-aside .card { margin-bottom: 18px; }
.contact-aside .label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-gray);
  display: block;
  margin-bottom: 4px;
}
.contact-aside .value { font-weight: 600; color: var(--deep-green); font-size: 1.05rem; }

/* ============================================================
   Placeholder marker (content still to supply)
   ============================================================ */
.placeholder {
  background: repeating-linear-gradient(-45deg, rgba(46,158,107,.06), rgba(46,158,107,.06) 8px, transparent 8px, transparent 16px);
  border: 1px dashed var(--emerald);
  border-radius: var(--radius-sm);
  color: var(--emerald-dark);
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: 10px 12px;
  display: inline-block;
}

/* ============================================================
   About / team
   ============================================================ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; gap: 28px; } }

.person { text-align: left; }
.person__avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--deep-green);
  color: var(--mint);
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.person h3 { margin-bottom: 2px; }
.person .role { font-family: var(--font-mono); font-size: .8rem; color: var(--emerald-dark); letter-spacing: .04em; margin-bottom: 12px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--charcoal-green);
  color: rgba(251,250,246,.72);
  padding-block: 56px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(251,250,246,.6); font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.footer-col h4 {
  color: var(--off-white);
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(251,250,246,.72); font-size: .95rem; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .86rem;
  color: rgba(251,250,246,.5);
}

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted-gray); }
.stack > * + * { margin-top: 16px; }

/* reveal-on-scroll (progressive enhancement; visible by default) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
