@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #171512;
  --ink-soft: #4a453e;
  --muted: #6b6b6b;
  --accent: #d7a256;
  --accent-deep: #b9853d;
  --line: rgba(23, 21, 18, 0.12);

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", Arial, Helvetica, sans-serif;

  --container: 1200px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 64px;
  --space-xl: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, ul, ol, blockquote, figure) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(a) { color: inherit; text-decoration: none; }
:where(img) { max-width: 100%; height: auto; display: block; }
:where(button) { font: inherit; background: none; border: none; cursor: pointer; }
:where(input, textarea, select) { font: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

:where(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.3; }

p { max-width: 65ch; }

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

.section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); color: var(--ink); }
.btn-line { background: transparent; color: var(--bg); border: 1px solid rgba(250,247,242,0.6); }
.btn-line:hover { border-color: var(--bg); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid rgba(23,21,18,0.3); }
.btn-ghost-dark:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-deep);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--accent-deep); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 30px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid,
.site-header.is-inner {
  position: fixed;
  background: var(--bg);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.site-header.is-solid .brand img,
.site-header.is-inner .brand img { height: 40px; }

.main-nav ul { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  color: var(--bg);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-solid .main-nav a,
.site-header.is-inner .main-nav a { color: var(--ink); }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); border-color: var(--accent); }
.site-header.is-solid .main-nav a:hover,
.site-header.is-solid .main-nav a.is-active,
.site-header.is-inner .main-nav a:hover,
.site-header.is-inner .main-nav a.is-active { color: var(--accent-deep); border-color: var(--accent-deep); }

.header-actions { display: flex; align-items: center; gap: 26px; }
.header-phone { color: var(--bg); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.header-phone svg { fill: var(--accent); flex: none; }
.site-header.is-solid .header-phone,
.site-header.is-inner .header-phone { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--bg); display: block; transition: background 0.2s ease; }
.site-header.is-solid .nav-toggle span,
.site-header.is-inner .nav-toggle span { background: var(--ink); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; height: 100vh; width: min(320px, 86vw);
    background: var(--bg);
    padding: 110px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 24px; }
  .main-nav a { color: var(--ink) !important; }
  .header-phone .phone-text { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--bg); }
  .site-header.is-solid .nav-toggle span,
  .site-header.is-inner .nav-toggle span,
  body.nav-is-open .nav-toggle span { background: var(--ink); }
  body.nav-is-open { overflow: hidden; }
}

.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(23,21,18,0.5); z-index: 400; }
.nav-scrim.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--bg);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,21,18,0.72) 0%, rgba(23,21,18,0.1) 45%, rgba(23,21,18,0.05) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 88px; }
.hero-content { max-width: 620px; }
.hero-content h1 { color: var(--bg); margin-bottom: 18px; }
.hero-content p { color: #e9e4d9; font-size: 1.08rem; margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-inner {
  min-height: 56vh;
  align-items: center;
}
.hero-inner .container { padding-bottom: 0; }
.hero-inner .eyebrow { color: var(--accent); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- Split (image + text zigzag) ---------- */
.split { display: flex; align-items: center; gap: 72px; }
.split.reverse { flex-direction: row-reverse; }
.split-media, .split-text { flex: 1 1 0; min-width: 300px; }
.split-media img { border-radius: var(--radius-md); }
.split-media.breakout { position: relative; margin-top: -40px; margin-bottom: -40px; }

.check-list { margin-top: 20px; }
.check-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink-soft); }
.check-list svg { fill: var(--accent-deep); flex: none; margin-top: 4px; }

@media (max-width: 900px) {
  .split, .split.reverse { flex-direction: column; gap: 32px; }
  .split-media.breakout { margin: 0; }
}

/* ---------- Feature panels (services) — asymmetric, not equal cards ---------- */
.panel-stack { display: flex; flex-direction: column; gap: 2px; }
.feature-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66vh;
  background-size: cover;
  background-position: center;
  color: var(--bg);
  overflow: hidden;
}
.feature-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,21,18,0.75) 0%, rgba(23,21,18,0.35) 55%, rgba(23,21,18,0.15) 100%);
}
.feature-panel .container { position: relative; z-index: 2; }
.feature-panel-content { max-width: 480px; }
.feature-panel-content .eyebrow { color: var(--accent); }
.feature-panel-content h3 { color: var(--bg); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.feature-panel-content p { color: #e9e4d9; margin-bottom: 24px; }
.feature-panel.compact { min-height: 42vh; }
.feature-panel.align-right::after { background: linear-gradient(260deg, rgba(23,21,18,0.75) 0%, rgba(23,21,18,0.35) 55%, rgba(23,21,18,0.15) 100%); }
.feature-panel.align-right .feature-panel-content { margin-left: auto; text-align: right; }

@media (max-width: 700px) {
  .feature-panel { min-height: 60vh; padding: 48px 0; }
}

/* ---------- Stat chips (house models / passive house) ---------- */
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.stat-chip strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--ink); }
.stat-chip span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* ---------- Process / principles list ---------- */
.principle-list { display: flex; flex-direction: column; }
.principle-row {
  display: flex; align-items: baseline; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.principle-row:first-child { border-top: 1px solid var(--line); }
.principle-row .idx { font-family: var(--font-heading); color: var(--accent); font-size: 1.1rem; flex: none; width: 34px; }
.principle-row h4 { margin-bottom: 4px; }
.principle-row p { font-size: 0.96rem; margin: 0; }

/* ---------- Quote strip (testimonials, folded into homepage) ---------- */
.quote-strip { background: var(--ink); color: var(--bg); }
.quote-strip blockquote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--bg);
  max-width: 900px;
  margin: 0 0 26px;
}
.quote-strip cite { font-style: normal; color: var(--accent); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 1px; }
.quote-nav { display: flex; gap: 10px; margin-top: 36px; }
.quote-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(250,247,242,0.3); }
.quote-dot.is-active { background: var(--accent); }

/* ---------- Project grid ---------- */
.project-grid { display: flex; flex-wrap: wrap; gap: 3px; }
.project-item { position: relative; flex: 1 1 380px; overflow: hidden; }
.project-item img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.5s ease; }
.project-item:hover img { transform: scale(1.05); }
.project-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  background: linear-gradient(0deg, rgba(23,21,18,0.85) 0%, rgba(23,21,18,0) 100%);
  color: var(--bg);
}
.project-caption .tag { color: var(--accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 4px; }
.project-caption h4 { color: var(--bg); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--bg);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--bg); margin-bottom: 14px; }
.cta-band p { color: #cfc6b5; margin: 0 auto 32px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; gap: 64px; flex-wrap: wrap; }
.contact-info { flex: 1 1 320px; }
.contact-form-panel { flex: 1.25 1 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 44px; }
.contact-row { display: flex; gap: 10px; margin-bottom: 24px; }
.contact-row .icon { flex: none; }
.contact-row .icon svg { fill: var(--accent-deep); }
.contact-row h4 { margin-bottom: 3px; font-size: 0.98rem; }
.contact-row p { margin: 0; font-size: 0.95rem; }

.form-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.form-group { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.form-group.full { flex-basis: 100%; }
.form-group label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6b5; padding: 72px 0 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(250,247,242,0.12); }
.footer-col { flex: 1 1 220px; }
.footer-col.about { flex: 1.4 1 280px; }
.footer-col img { height: 48px; margin-bottom: 18px; }
.footer-col p { color: #b4ac9c; font-size: 0.93rem; }
.footer-col h4 { color: var(--bg); font-size: 0.92rem; margin-bottom: 18px; letter-spacing: 1.2px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: #cfc6b5; font-size: 0.93rem; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.93rem; }
.footer-contact svg { fill: var(--accent); flex: none; margin-top: 3px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a { width: 36px; height: 36px; border: 1px solid rgba(215,162,86,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-row a svg { fill: var(--accent); }
.social-row a:hover { background: var(--accent); }
.social-row a:hover svg { fill: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: 0.82rem; color: #8b8477; }

/* ---------- Utility ---------- */
.bg-surface { background: var(--surface); }
.mt-lg { margin-top: 44px; }
.text-center { text-align: center; }
