/* Koala Construction — custom cabinetry & built-ins */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --green: #2f5d50;
  --green-light: #4a7c6f;
  --green-dark: #1e3d35;
  --green-muted: #e8f0ed;
  --green-soft: #f3f8f6;

  --wood: #9a7352;
  --wood-light: #c9a882;

  --ink: #1a2421;
  --text: #2c3532;
  --muted: #5c6b66;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --line: #dde5e2;
  --line-dark: #b8c9c3;
  --white: #ffffff;

  /* legacy aliases used in content.css */
  --accent: var(--green);
  --accent-light: var(--green-light);
  --accent-dark: var(--green-dark);
  --black: var(--text);
  --cream: var(--paper);

  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1140px;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(30, 61, 53, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 61, 53, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 600;
  color: var(--green);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -.015em;
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: var(--white); padding: .6rem 1rem; z-index: 100;
  border-radius: var(--radius);
}
.skip:focus { left: 1rem; top: 1rem; }

/* Top bar — light green strip */
.topbar {
  background: var(--green-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.topbar a { color: var(--green); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--green-dark); }

/* Header — white, airy */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center;
  gap: .75rem; min-height: 72px; position: relative;
}
.brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0;
}
.brand img {
  width: 44px; height: 44px; object-fit: contain;
  border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0;
  font-weight: 700; white-space: nowrap; color: var(--ink);
}
.brand-text span,
.brand-tagline {
  font-size: .62rem; color: var(--green); letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600;
}

@media (max-width: 767px) {
  .brand-text .brand-tagline {
    display: block;
    margin-top: 0.1rem;
    white-space: nowrap;
    letter-spacing: 0.12em;
    font-size: 0.56rem;
  }
  .nav > .call {
    padding: 0.55rem 0.85rem;
    font-size: 0.68rem;
  }
}

.nav-toggle { display: none; }
.burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
  margin-left: auto;
}
.burger span { width: 22px; height: 2px; background: var(--green-dark); display: block; border-radius: 2px; }
.menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: .75rem 1rem 1.1rem; flex-direction: column; gap: .15rem;
  box-shadow: var(--shadow);
}
.menu a {
  color: var(--text); text-decoration: none; padding: .65rem .4rem;
  font-family: var(--font-body); letter-spacing: .06em;
  font-size: .88rem; font-weight: 500;
  border-radius: 8px;
}
.menu a:hover, .desk-nav a:hover { color: var(--green); background: var(--green-soft); }
.nav-toggle:checked ~ .menu { display: flex; }
.desk-nav { display: none; }

/* Buttons */
.call {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green); color: var(--white); text-decoration: none;
  font-family: var(--font-body); letter-spacing: .04em;
  font-weight: 600; padding: .72rem 1.25rem; border-radius: var(--radius-pill);
  white-space: nowrap; font-size: .82rem;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(47, 93, 80, 0.25);
}
.call:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47, 93, 80, 0.3);
}
.prose a.call,
.prose .hero-actions .call {
  color: var(--white);
  text-decoration: none;
}
button.call { border: 0; cursor: pointer; }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 2px solid var(--green); color: var(--green); text-decoration: none;
  font-family: var(--font-body); letter-spacing: .04em;
  font-weight: 600; padding: .68rem 1.2rem; font-size: .82rem;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-ghost.dark {
  border-color: var(--line-dark);
  color: var(--text);
}
.btn-ghost.dark:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* Inner page hero — light, not dark */
.page-hero {
  background: var(--green-soft);
  color: var(--ink);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.page-hero .eyebrow a:hover { color: var(--green-dark); }
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 18ch; margin-top: .5rem;
}
.page-hero .lede {
  color: var(--muted); max-width: 48ch; margin-top: 1rem;
  font-size: 1.05rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Footer — deep green */
footer {
  background: var(--green-dark); color: rgba(255, 255, 255, .75);
  padding: 2.5rem 0 2.75rem;
  font-size: .88rem;
}
footer .wrap { display: grid; gap: .85rem; }
footer strong {
  color: var(--white); font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
}
footer a { color: var(--wood-light); text-decoration: none; }
footer a:hover { color: var(--white); }

@media (min-width: 768px) {
  .burger { display: none; margin-left: 0; }
  .menu { display: none !important; }
  .desk-nav {
    display: flex; gap: .35rem; align-items: center;
    margin-left: auto;
  }
  .desk-nav a {
    color: var(--text); text-decoration: none;
    font-family: var(--font-body); letter-spacing: 0;
    font-size: .88rem; font-weight: 500;
    padding: .45rem .75rem;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
  }
  .desk-nav a:hover { color: var(--green); background: var(--green-soft); }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1100px) {
  .wrap { width: min(var(--max), calc(100% - 3rem)); }
  .brand img { width: 48px; height: 48px; }
  .nav { min-height: 80px; }
  .brand-text strong { font-size: 1.18rem; }
}

/* Lead modal — light panel */
body.bid-open { overflow: hidden; }
.bid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bid-modal.is-open { display: flex; }
.bid-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 36, 33, .55);
  backdrop-filter: blur(4px);
}
.bid-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.bid-modal-panel h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: .35rem 0 .55rem;
  color: var(--ink);
}
.bid-modal-panel > p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.bid-modal-close {
  position: absolute; top: .7rem; right: .7rem;
  background: var(--green-soft); border: 0; color: var(--green-dark); cursor: pointer;
  font-size: 1.35rem; line-height: 1; padding: .35rem .55rem;
  border-radius: var(--radius-pill);
  width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.bid-modal-close:hover { background: var(--green-muted); }
#bidModal #leadForm { display: grid; gap: .75rem; }
#bidModal #leadForm label {
  display: grid; gap: .35rem;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
#bidModal #leadForm label.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .82rem; color: var(--muted); text-transform: none; letter-spacing: 0;
}
#bidModal #leadForm label.check input { width: auto; margin-top: .2rem; accent-color: var(--green); }
#bidModal #leadForm input[type="text"],
#bidModal #leadForm input[type="tel"],
#bidModal #leadForm input[type="email"],
#bidModal #leadForm select,
#bidModal #leadForm textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .7rem .85rem;
  font-family: var(--font-body);
  font-size: .92rem;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#bidModal #leadForm input:focus,
#bidModal #leadForm select:focus,
#bidModal #leadForm textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.15);
}
#bidModal #leadForm textarea { resize: vertical; min-height: 88px; }
#bidModal #leadForm .row-2 { display: grid; gap: .75rem; }
#bidModal #leadForm button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white); border: 0; cursor: pointer;
  font-family: var(--font-body); letter-spacing: .04em;
  font-weight: 600; padding: .78rem 1.15rem; font-size: .82rem; margin-top: .2rem;
  border-radius: var(--radius-pill);
  transition: background .2s ease;
}
#bidModal #leadForm button[type="submit"]:hover { background: var(--green-dark); }
#bidModal #formStatus { color: var(--green); font-size: .92rem; font-weight: 500; }

@media (max-width: 767px) {
  .bid-modal {
    padding: 2.75rem 1.15rem 1.75rem;
    align-items: flex-start;
  }
  .bid-modal-panel {
    width: 100%;
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    padding: 0.75rem 1.15rem 1.35rem;
  }
}

@media (min-width: 768px) {
  #bidModal #leadForm .row-2 { grid-template-columns: 1fr 1fr; }
  .bid-modal-panel { padding: 1.9rem 1.65rem 1.9rem; }
}

.success-modal-panel { text-align: left; }
.success-lede {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.25rem;
  max-width: 42ch;
  line-height: 1.6;
}
.success-summary-wrap {
  border: 1px solid var(--line);
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  margin-bottom: 1.25rem;
}
.success-summary-wrap h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  color: var(--green);
  margin-bottom: .75rem;
  font-weight: 700;
}
.success-summary { display: grid; gap: .65rem; }
.success-row {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: .5rem 1rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}
.success-row:first-child { padding-top: 0; border-top: 0; }
.success-summary dt {
  font-family: var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .62rem;
  color: var(--muted);
  font-weight: 600;
}
.success-summary dd {
  margin: 0;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}
.success-dismiss {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

@media (min-width: 768px) {
  .success-row { grid-template-columns: 9rem 1fr; }
}

/* Homepage — split hero */
.hero-split {
  background: var(--paper);
  padding: 2.5rem 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: 3rem;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-top: .55rem;
  line-height: 1.08;
  text-wrap: balance;
}
.hero-copy .lede {
  max-width: 44ch; margin-top: 1rem; font-size: 1.05rem;
  color: var(--muted); line-height: 1.75;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(47, 93, 80, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-split { padding: 3.5rem 0 0; }
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    padding-bottom: 4rem;
  }
  .hero-copy h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  }
}

/* Homepage services section */
.section { padding: 4rem 0; }
.sec-head { margin-bottom: 2rem; max-width: 52ch; }
.sec-head h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin-top: .4rem; }
.sec-head .lede { color: var(--muted); margin-top: .75rem; line-height: 1.7; }

/* About page photo */
.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Prose basics */
.prose p { margin-bottom: 1rem; color: var(--muted); max-width: 62ch; line-height: 1.75; }
.prose p.lede { font-size: 1.05rem; color: var(--text); max-width: 48ch; }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: .75rem; }
.prose a:not(.call) { color: var(--green); text-decoration: none; font-weight: 500; }
.prose a:not(.call):hover { color: var(--green-dark); text-decoration: underline; }
