/* ============================================================
   Solarpunk Offices — Direction B: Clean + Minimal, Green Accent
   ------------------------------------------------------------
   PALETTE — edit these five variables to restyle the whole site.
   (Swap in the Figma colors here when they're ready.)
   ============================================================ */
:root {
  --paper:  #fdfdfb;   /* page ground — warm white */
  --ink:    #1f231e;   /* headings, primary text */
  --muted:  #52584e;   /* body text, secondary */
  --green:  #3e7a3f;   /* the one accent */
  --rule:   #ebeae4;   /* hairline borders */

  --font-sans: "Avenir Next", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --measure: 33rem;
  --pad-x: clamp(1.25rem, 4vw, 3.2rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.7rem var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.logo { font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.logo::before {
  content: "";
  display: inline-block;
  width: .55em; height: .55em;
  border-radius: 50%;
  background: var(--green);
  margin-right: .55em;
}
.nav-links { display: flex; gap: 2.2rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 5.5rem var(--pad-x) 4.5rem; max-width: 46rem; }
.hero.compact { padding-top: 4rem; padding-bottom: 3rem; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero h1 span { color: var(--green); }
.hero p { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: var(--measure); margin: 0 0 2.2rem; }
.hero p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: .9rem;
  font-weight: 500;
  padding: .85rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn:hover { background: var(--green); }
.btn-link { margin-left: 1.3rem; font-size: .9rem; color: var(--green); font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ---------- three-up service grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.grid3 > section { padding: 1.9rem 2rem 2.2rem; border-right: 1px solid var(--rule); }
.grid3 > section:last-child { border-right: none; }
.grid3 h2, .grid3 h3 {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin: 0 0 .55rem;
}
.grid3 p { font-size: .88rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- generic sections ---------- */
.section { padding: 3.5rem var(--pad-x); border-top: 1px solid var(--rule); }
.section > .kicker {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin: 0 0 1.6rem;
}
.section h2:not(.kicker) { font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; margin: 0 0 1rem; }
.section > p { color: var(--muted); max-width: var(--measure); }

/* ---------- project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: .5rem; }
.project .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--rule), var(--paper));
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.project h3 { font-size: 1.05rem; font-weight: 600; margin: 1.1rem 0 .3rem; }
.project .meta { font-size: .8rem; color: var(--green); font-weight: 500; margin: 0 0 .5rem; }
.project p { font-size: .9rem; color: var(--muted); margin: 0; max-width: 28rem; }

/* ---------- prose pages (about etc.) ---------- */
.prose { max-width: var(--measure); }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }

/* ---------- booking embed ---------- */
.embed-frame {
  border: 1px solid var(--rule);
  border-radius: 8px;
  min-height: 620px;
  overflow: hidden;
}
.embed-frame iframe { width: 100%; height: 620px; border: 0; }
.embed-placeholder {
  min-height: 620px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; color: var(--muted); font-size: .9rem; text-align: center; padding: 2rem;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.2rem var(--pad-x) 2.6rem;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}
.footer .fine a { color: var(--green); }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .grid3 { grid-template-columns: 1fr; }
  .grid3 > section { border-right: none; border-bottom: 1px solid var(--rule); }
  .grid3 > section:last-child { border-bottom: none; }
  .projects { grid-template-columns: 1fr; }
  .btn-link { display: inline-block; margin: 1rem 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .18s ease; }
}
