/* Mango Grove Labs — site styles
   Recreated from the converged design (design/project/Mango Grove Labs.dc.html)
   with the locked tokens: Mango palette + Plus Jakarta Sans (see docs/architecture.md).
   No build step — this file is served verbatim. */

:root {
  /* Palette */
  --bg: #FBF8F3;
  --heading: #232826;
  --body: #2A2622;
  --body-soft: #3A342D;
  --muted: #6E665C;
  --faint: #A89A84;
  --footer-muted: #8C8478;
  --footer-strong: #4A463F;
  --hairline: #ECE3D5;
  --accent: #CB7A2C;
  --accent-deep: #A85F1E;
  --leaf: #5B8C5A;

  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1120px;
  --pad-x: clamp(24px, 6vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { -webkit-tap-highlight-color: transparent; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--hairline); }

.site-header .container {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark { display: block; flex: none; }

.brand__name {
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  color: var(--muted);
}

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

.nav a:hover,
.nav a:focus-visible { color: var(--heading); }

/* ===== Hero ===== */
.hero {
  padding: clamp(72px, 11vw, 118px) 0 clamp(64px, 9vw, 92px);
  text-align: center;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading);
  max-width: 820px;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.hero__sub {
  font-weight: 400;
  font-size: clamp(17px, 2.2vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 38px;
  text-wrap: pretty;
}

/* ===== CTA pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
}

.pill--accent {
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  padding: 16px 30px;
}

.pill--accent:hover,
.pill--accent:focus-visible { background: var(--accent-deep); }

.pill__arrow { font-size: 16px; }

.pill--light {
  background: #fff;
  color: var(--accent-deep);
  font-size: 16px;
  line-height: 1;
  padding: 15px 28px;
}

.pill--light:hover,
.pill--light:focus-visible { background: rgba(255, 255, 255, 0.88); }

/* ===== Work ===== */
.work {
  padding: clamp(56px, 8vw, 76px) 0;
  border-top: 1px solid var(--hairline);
}

.section-title {
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 clamp(34px, 5vw, 46px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}

.card__strip { height: 6px; }
.card__strip--accent { background: var(--accent); }
.card__strip--deep { background: var(--accent-deep); }
.card__strip--gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.card__body { padding: 28px 26px 30px; }

.card__title {
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 11px;
}

.card__text {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

/* ===== About ===== */
.about {
  padding: clamp(64px, 9vw, 88px) 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.eyebrow {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}

.about__text {
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 23px);
  line-height: 1.55;
  color: var(--body-soft);
  margin: 0 auto;
  max-width: 720px;
  text-wrap: pretty;
}

/* ===== Contact ===== */
.contact { padding: 0 0 clamp(64px, 9vw, 90px); }

.contact__panel {
  background: var(--accent-deep);
  border-radius: 20px;
  padding: clamp(44px, 6vw, 60px) clamp(32px, 5vw, 52px);
  text-align: center;
}

.contact__title {
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}

.contact__text {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 28px;
  max-width: 480px;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--hairline); }

.site-footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--footer-muted);
}

.footer__name {
  color: var(--footer-strong);
  font-weight: 600;
}

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

.footer__info a:hover,
.footer__info a:focus-visible { text-decoration: underline; }

.footer__copy {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}

/* ===== Accessibility ===== */
a:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
