/* ------------------------------------------------------------------
   Yaapitech — single stylesheet
   Palette: deep forest greens, warm off-white, subtle accent
------------------------------------------------------------------ */

:root {
  /* Greens */
  --green-950: #08160f;
  --green-900: #0d2418;
  --green-800: #133021;
  --green-700: #1a4d2e;
  --green-600: #2d6a4f;
  --green-500: #40916c;
  --green-400: #52b788;
  --green-300: #74c69d;
  --green-200: #b7e4c7;

  /* Neutrals */
  --cream: #f4f6f1;
  --paper: #fafdf6;
  --ink: #0d2418;
  --ink-soft: #2f4a3a;
  --muted: #5a6f63;
  --line: rgba(13, 36, 24, 0.10);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 24, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(13, 36, 24, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(13, 36, 24, 0.25);
}

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

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

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(250, 253, 246, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.nav-links a:hover { color: var(--green-700); }

.nav-cta {
  background: var(--green-800);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--green-700); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-800);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

.btn-large { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 18px;
}

.eyebrow.muted { color: var(--muted); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.18);
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(82, 183, 136, 0.10), transparent 55%),
    radial-gradient(ellipse at 100% 30%, rgba(45, 106, 79, 0.08), transparent 50%),
    var(--paper);
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 920px; }

.hero-title {
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}

.hero-title .accent {
  color: var(--green-700);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 640px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
}

/* decorative glow */
.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--green-950) 0%, var(--green-900) 100%);
  color: var(--cream);
}
.section-alt h2,
.section-alt h3,
.section-alt h4 { color: var(--cream); }
.section-alt p { color: rgba(244, 246, 241, 0.78); }
.section-alt .eyebrow.muted { color: var(--green-300); }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.section-alt .section-lead { color: rgba(244, 246, 241, 0.78); }

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 44px; }
}

/* ---------- Cards (What we do) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 106, 79, 0.25);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--cream);
  margin-bottom: 22px;
  box-shadow: 0 8px 16px -8px rgba(45, 106, 79, 0.5);
}

.card h3 { margin-bottom: 12px; color: var(--green-900); }

.card p { margin-bottom: 18px; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

/* ---------- Approach grid ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .approach-grid { grid-template-columns: 1fr; }
}

.approach-item {
  background: var(--green-900);
  padding: 40px 36px;
  transition: background 240ms ease;
}

.approach-item:hover { background: var(--green-800); }

.approach-item .num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--green-300);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.approach-item h4 { margin-bottom: 10px; color: var(--cream); }
.approach-item p { margin: 0; font-size: 0.97rem; line-height: 1.6; }

/* ---------- Team section ---------- */
.team-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .team-inner { grid-template-columns: 1fr; gap: 36px; }
}

.team-copy h2 { margin-bottom: 22px; }
.team-copy p { font-size: 1.05rem; margin-bottom: 18px; }
.team-copy .btn { margin-top: 14px; }

.team-card {
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(116, 198, 157, 0.18), transparent 70%);
  pointer-events: none;
}

.team-card h4 { color: var(--cream); margin-bottom: 12px; }
.team-card p { color: rgba(244, 246, 241, 0.82); font-size: 0.97rem; }

.quote {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--green-200);
  margin: 0;
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta {
  padding: 110px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(82, 183, 136, 0.12), transparent 55%),
    var(--paper);
  text-align: center;
}

.cta-inner { max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 16px; }
.cta > .container > p { font-size: 1.1rem; margin-bottom: 32px; color: var(--ink-soft); }
.cta .btn { margin-top: 8px; }
.cta-sub {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .cta { padding: 70px 0; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: rgba(244, 246, 241, 0.6);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-brand .brand-mark { color: var(--green-400); }

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(244, 246, 241, 0.5);
}

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