/* ============================================================
   SAS — Sustainability Advisory Services
   Design tokens
   ============================================================ */
:root {
  --white:      #FFFFFF;
  --off-white:  #F5F8F6;
  --navy:       #0F2A3D;
  --navy-light: #1C4258;
  --green:      #1F6F4E;
  --green-dark: #16523A;
  --green-pale: #E3F0E8;
  --ink:        #16211D;
  --ink-soft:   #4E5C56;
  --line:       #E1E6E2;
  --line-dark:  rgba(255,255,255,0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: #8FD6B4; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.15s forwards;
}
.preloader-bar {
  width: 220px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: #8FD6B4;
  animation: loadbar 1.1s var(--ease) 0.2s forwards;
}
@keyframes loadbar { to { left: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar.scrolled {
  padding: 13px 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-badge {
  background: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: box-shadow 0.35s var(--ease);
}
.navbar.scrolled .nav-logo-badge { box-shadow: none; padding: 4px 6px; }
.nav-logo-badge img { height: 30px; width: auto; display: block; transition: height 0.35s var(--ease); }
.navbar.scrolled .nav-logo-badge img { height: 26px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text strong { font-family: var(--font-display); font-size: 17px; color: var(--white); transition: color 0.35s var(--ease); }
.nav-logo-text span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: color 0.35s var(--ease); }
.navbar.scrolled .nav-logo-text strong { color: var(--navy); }
.navbar.scrolled .nav-logo-text span { color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.navbar.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.navbar.scrolled .nav-links a::after { background: var(--green); }
.nav-links a:not(.scrolled)::after { background: #8FD6B4; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--green);
  color: var(--white) !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--white);
}
.navbar.scrolled .nav-toggle { color: var(--navy); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .nav-cta { margin-top: 26px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,42,61,0.55) 0%, rgba(15,42,61,0.72) 55%, rgba(11,29,42,0.94) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 88px);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 220px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.hero-headline {
  font-size: clamp(38px, 5.4vw, 68px);
  color: var(--white);
  line-height: 1.06;
  max-width: 820px;
  letter-spacing: -0.015em;
}
.hero-headline em {
  font-style: italic;
  color: #8FD6B4;
  font-weight: 500;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-top: 24px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-outline-dark { border: 1px solid var(--line); color: var(--navy); }
.btn-outline-dark:hover { border-color: var(--navy); transform: translateY(-2px); }

/* Seal / signature element */
.seal {
  width: 128px; height: 128px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
}
.seal-ring {
  position: absolute; inset: 0;
  animation: spin 16s linear infinite;
}
.seal-core {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  margin-top: 76px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 32px;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue .line { width: 34px; height: 1px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; left: -100%; top: 0; height: 100%; width: 100%;
  background: #8FD6B4; animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue { 50% { left: 0; } 100% { left: 100%; } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee-section { background: var(--off-white); padding: 34px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 32px 16px;
  max-width: var(--container);
  margin: 0 auto;
}
.marquee-track { display: flex; width: max-content; animation: scroll-left 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  opacity: 0.75;
  padding: 0 36px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Section shell
   ============================================================ */
section { padding: 118px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 18px; line-height: 1.75; }
.alt-bg { background: var(--off-white); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Differentiators */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.diff-card { background: var(--white); padding: 40px 32px; transition: background 0.3s var(--ease); }
.diff-card:hover { background: var(--green-pale); }
.diff-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--green-dark);
  font-size: 19px;
}
.diff-card h3 { font-size: 18px; margin-bottom: 12px; }
.diff-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* Process timeline */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 32px;
  align-items: start;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-stage { font-family: var(--font-mono); font-size: 13px; color: var(--green); letter-spacing: 0.06em; }
.process-row h3 { font-size: 21px; }
.process-row p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* Testimonial */
.testimonial-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  max-width: 880px;
  color: var(--white);
}
.testimonial-mark { font-size: 60px; color: #8FD6B4; font-family: var(--font-display); line-height: 0; display: block; margin-bottom: 20px; }
.testimonial-attrib { margin-top: 34px; font-size: 14px; color: rgba(255,255,255,0.65); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); background: var(--white); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15,42,61,0.09); }
.blog-thumb { height: 160px; background: linear-gradient(135deg, var(--navy), var(--green)); position: relative; }
.blog-body { padding: 26px 28px 30px; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 14px; }
.blog-meta span:last-child { color: var(--ink-soft); }
.blog-card h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.blog-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--navy); }

/* Final CTA */
.cta-band { background: var(--green); color: var(--white); text-align: left; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 38px); max-width: 560px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: 14px; max-width: 480px; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 90px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 70px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand p { margin-top: 20px; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.82); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #8FD6B4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 24px; }

/* Placeholder page (about/services/blog/contact stubs) */
.stub-hero { background: var(--navy); color: var(--white); padding: 200px 0 100px; }
.stub-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); }
.stub-hero p { color: rgba(255,255,255,0.75); margin-top: 18px; max-width: 560px; font-size: 16px; }
.stub-body { padding: 90px 0; text-align: center; }
.stub-body p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 30px; font-size: 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .seal { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 1fr; gap: 10px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 600px) {
  .container { padding: 0 22px; }
  section { padding: 80px 0; }
  .hero-content { padding: 160px 0 70px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
