@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&family=Open+Sans:wght@400;500&display=swap');

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  --blue:     #004f5a;
  --blue-dark:#002e35;
  --orange:   #d65822;
  --orange-deep: #962d0a;
  --warm:     #fff0d8;
  --aqua:     #68c8c6;
  --blaze:    #f9a350;
  --graphite: #555555;
  --white:    #ffffff;
  --off-white:#f8f8f6;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --space-xs:  0.5rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;

  --radius:    4px;
  --container: 1180px;
  --pad:       1.5rem;

  /* Aligns a full-bleed grid's content edge with .container's content edge */
  --bleed-offset: max(var(--pad), calc(50vw - (var(--container) / 2) + var(--pad)));
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { max-width: 64ch; }

.text-white    { color: var(--white); }
.text-white h1,
.text-white h2,
.text-white h3,
.text-white p  { color: var(--white); }

.text-center   { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* ─── Layout ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-m);
}

/* ─── Photo placeholders ─────────────────────────────── */
/* Any element with .ph shows its data-ph note until the real
   photo replaces the placeholder background. Delete .ph + data-ph
   when swapping in real imagery. Styled as a deliberate texture
   register, not an empty slot. */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0M-10 10L10-10M50 70L70 50' stroke='rgba(255,255,255,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-repeat: repeat;
  z-index: 1;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  bottom: var(--space-s);
  left: var(--space-s);
  font-size: 0.65rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249,163,80,0.7);
  text-align: left;
  max-width: 36ch;
  z-index: 2;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: #be4d1b;
  border-color: #be4d1b;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--large {
  font-size: 1.05rem;
  padding: 1em 2em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

/* ─── Chips (proof metrics / outcome tags) ───────────── */
.chip {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(214,88,34,0.35);
  padding: 0.3em 0.75em;
  border-radius: 2px;
  margin: var(--space-s) var(--space-s) 0 0;
}

.chip--ondark {
  color: var(--warm);
  border-color: rgba(255,255,255,0.4);
}

.chip--blaze {
  color: var(--blaze);
  border-color: rgba(249,163,80,0.35);
}

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--blue-dark);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.28), 0 3px 10px rgba(0,0,0,0.10);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.nav__logo {
  display: flex;
  align-items: center;
}

/* Kaspo wordmark (Blueprint §12c dark-background variant — Serenity
   Beach wordmark, Valencia Orange O stripe). PNG canvas is pre-trimmed;
   clear space comes from nav/footer padding. */
.nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.nav__link {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav__link:hover { color: var(--white); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

/* PHOTO SLOT 1 — filled. Tint gradient stays on top of the
   photo for text legibility; it is part of the design. */
.hero__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(0,79,90,0.20) 0%, rgba(0,46,53,0.75) 55%, rgba(0,30,36,0.96) 100%),
    url("../images/hero.webp") center 35% / cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: auto;
  padding: calc(64px + var(--space-2xl)) var(--pad) var(--space-2xl);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--warm);
  max-width: 14ch;
  margin-bottom: var(--space-l);
}

.hero__title em {
  font-style: normal;
  color: var(--blaze);
}

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 44ch;
  line-height: 1.65;
}

/* ─── Logo strip ─────────────────────────────────────── */
.logo-strip {
  padding: var(--space-xl) var(--pad);
  background: var(--off-white);
  border-top: 1px solid rgba(0,79,90,0.08);
  border-bottom: 1px solid rgba(0,79,90,0.08);
}

.logo-strip__inner {
  max-width: var(--container);
  margin: auto;
}

.logo-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(85,85,85,0.6);
  margin-bottom: var(--space-m);
}

.logo-strip__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-l) var(--space-m);
  align-items: center;
  justify-items: center;
}

/* Client logos: uniform 2:1 canvas (teal monochrome, supplied by client).
   Two rows of six on desktop; sized by height; muted, full opacity on hover. */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.logo-item img {
  height: 72px;
  width: auto;
  max-width: 100%;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.logo-item img:hover { opacity: 1; }

@media (max-width: 860px) {
  .logo-strip__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .logo-strip__list { grid-template-columns: repeat(2, 1fr); }
  .logo-item img { height: 58px; }
}

/* ─── Testimonial band ───────────────────────────────── */
/* Full-width --blue quote section. Used on service pages as client proof. */
.testimonials {
  position: relative;
  background: var(--blue);
  padding: var(--space-2xl) var(--pad);
  overflow: hidden;
}
.testimonials::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 2 54 28 28 54 2 28Z' fill='none' stroke='%23fff0d8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
/* Service-page proof quotes carry the teal pattern (matches homepage register); About keeps the faint diamond. */
.testimonials[aria-label*="proof"]::before {
  opacity: 0.7;
  background-image: url("/assets/images/pattern-teal.jpg");
  background-size: 454px 406px;
}
.testimonials__inner {
  position: relative; z-index: 1;
  max-width: 820px; margin: auto; text-align: center;
}
.testimonials__quote {
  position: relative;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4; color: var(--warm);
  margin-bottom: var(--space-l);
}
.testimonials__quote::before {
  content: "\201C";
  position: absolute; top: -0.55em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1; color: var(--orange); opacity: 0.9;
}
.testimonials__attr {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua);
}

/* ─── Story chapters ─────────────────────────────────── */
/* Full-width color-field sections, one story each. Three forms:
   default (media bleeds to viewport edge), --feature (full-bleed
   photo behind duotone), --type (no photo, typography carries it). */
.chapter {
  padding: var(--space-2xl) 0;
}

.chapter--warm { background: var(--warm); }
.chapter--blue { background: var(--blue); }

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

.chapter__kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-m);
}
.chapter--blue .chapter__kicker { color: var(--blaze); }

.chapter__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--blue);
  max-width: 24ch;
  margin-bottom: var(--space-l);
}
.chapter--blue .chapter__title { color: var(--white); }

.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-left: var(--bleed-offset);
}

.chapter__body {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 54ch;
}
.chapter--blue .chapter__body { color: rgba(255,255,255,0.8); }

.chapter__client {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,79,90,0.55);
  margin-top: var(--space-l);
}
.chapter--blue .chapter__client,
.chapter--feature .chapter__client { color: rgba(255,255,255,0.6); }

/* PHOTO SLOT — default chapter media block, bleeds to right viewport edge */
.chapter__media {
  position: relative;
  min-height: clamp(320px, 42vw, 540px);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  background: url("../images/bamboo-placeholder.png") center / cover no-repeat;
}

/* Feature chapter — full-bleed photo + Valencia duotone overlay */
.chapter--feature {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-2xl) * 1.3) 0;
}

/* PHOTO SLOT — filled. Sits behind the duotone overlay, which
   carries the color; the photo carries the energy. */
.chapter--feature .chapter__photo {
  position: absolute;
  inset: 0;
  background: url("../images/habitat-build.webp") center / cover no-repeat;
  z-index: 0;
}

.chapter--feature .chapter__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.chapter--feature .chapter__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.chapter--feature .chapter__kicker { color: var(--warm); }

.chapter--feature .chapter__title {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
}

.chapter--feature .chapter__body { color: rgba(255,255,255,0.85); }

/* ─── Manifesto ──────────────────────────────────────── */
.manifesto {
  background: var(--white);
  padding: var(--space-2xl) var(--pad);
  text-align: center;
}

.manifesto__inner {
  max-width: 820px;
  margin: auto;
}

.manifesto__line {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: var(--space-m);
}

.manifesto p {
  margin: 0 auto var(--space-l);
  max-width: 58ch;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ─── Proof / Quote block (Kirsten) ──────────────────── */
.proof-block {
  padding: var(--space-2xl) var(--pad);
  background: var(--warm);
}

.proof-block__inner {
  max-width: 860px;
  margin: auto;
}

.proof-block__story {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
  margin-bottom: var(--space-l);
}

.proof-block__attr {
  font-size: 0.9rem;
  color: var(--graphite);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── Brief form (closer) ────────────────────────────── */
.brief {
  background: var(--blue);
  padding: var(--space-2xl) var(--pad);
}

.brief__inner {
  max-width: 680px;
  margin: auto;
  text-align: center;
}

.brief h2 {
  color: var(--white);
  margin-bottom: var(--space-m);
}

.brief > .brief__inner > p:not(.brief__alt) {
  color: rgba(255,255,255,0.75);
  margin: 0 auto var(--space-l);
  font-size: 1.15rem;
}

.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  text-align: left;
}

.form-field--full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4em;
}

.brief-form input,
.brief-form textarea {
  width: 100%;
  padding: 0.9em 1em;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #333333;
}

.brief-form textarea {
  min-height: 130px;
  resize: vertical;
}

.brief-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: var(--space-s);
}

.brief__alt {
  max-width: none;
  margin-top: var(--space-l);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: center;
}
.brief__alt a { color: var(--aqua); }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--space-2xl) var(--pad) var(--space-xl);
}

.footer__inner {
  max-width: var(--container);
  margin: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer__brand .nav__logo {
  margin-bottom: var(--space-m);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 36ch;
  color: rgba(255,255,255,0.55);
}

.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-m);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer__bottom a {
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.65); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .chapter__grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding: 0 var(--pad);
    gap: var(--space-l);
  }

  .chapter__media {
    order: -1;
    border-radius: var(--radius);
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl:  2.5rem;
  }

  .nav__links .nav__link:not(.btn) { display: none; }

  .hero { min-height: 80svh; }

  .brief-form { grid-template-columns: 1fr; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero__title { font-size: 2.4rem; }
}
