/* Xeric Gardens — spec preview
   Front Range mesa palette. Not lawn-care green.
   Sandstone, rust, iron, dusty sage, high-altitude sky. */

:root {
  --bone: #f4ead8;
  --paper: #efe2c8;
  --sand: #d4b48a;
  --mesa: #c17a3a;
  --rust: #b85c38;
  --clay: #8c4a2f;
  --sage: #6e7a62;
  --sage-deep: #4a5442;
  --iron: #1c1612;
  --iron-2: #2a221c;
  --sky: #7a93a3;
  --mute: #5c5348;
  --line: #c9b79a;
  --white: #fff8ee;
  --wrap: min(1080px, calc(100% - 1.5rem));
  --display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--iron-2);
  background: var(--bone);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--iron);
}
h1 { font-size: clamp(2.1rem, 8vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--iron); color: var(--bone);
  padding: 0.5rem 0.8rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow, .kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--rust);
  margin: 0 0 0.55rem;
}
.lede { font-size: 1.12rem; color: var(--mute); max-width: 38rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 234, 216, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 0.7rem; min-height: 68px;
}
.brand {
  text-decoration: none;
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand small {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}
.menu-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--iron); content: "";
  position: relative;
}
.menu-toggle span::before { top: -6px; position: absolute; }
.menu-toggle span::after { top: 6px; position: absolute; }
.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.9rem 1rem;
  flex-direction: column; gap: 0.55rem;
}
.site-header.open .nav { display: flex; }
.nav a { text-decoration: none; font-weight: 600; padding: 0.35rem 0; }
.nav a[aria-current="page"] { color: var(--rust); }
.header-cta { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  min-height: 44px;
}
.btn-rust { background: var(--rust); color: var(--white); }
.btn-iron { background: var(--iron); color: var(--bone); }
.btn-ghost {
  background: transparent;
  color: var(--iron);
  border-color: var(--line);
}
.btn-paper { background: var(--bone); color: var(--iron); }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* hero */
.hero { position: relative; color: var(--white); }
.hero-media {
  min-height: min(78vh, 640px);
  background: var(--iron);
}
.hero-media img {
  width: 100%;
  height: min(78vh, 640px);
  object-fit: cover;
  object-position: center 40%;
}
.hero-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 3.2rem 0 1.6rem;
  background: linear-gradient(to top, rgba(28,22,18,0.92) 0%, rgba(28,22,18,0.55) 55%, transparent 100%);
}
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; font-weight: 500; color: #f0d2a8; }
.hero .lede { color: #eadcc4; }
.hero .eyebrow { color: #e8b48a; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #d8c7ad;
}
.hero-meta strong { color: var(--white); display: block; font-size: 0.95rem; }

/* band */
.band {
  background: var(--iron);
  color: var(--sand);
  padding: 0.85rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.band .wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  justify-content: space-between;
}

section { padding: 3.2rem 0; }
.band-paper { background: var(--paper); }
.band-iron { background: var(--iron); color: var(--bone); }
.band-iron h2, .band-iron h3 { color: var(--bone); }
.band-iron .kicker { color: #e8b48a; }
.band-iron .lede, .band-iron p { color: #d8c7ad; }
.band-sage { background: var(--sage-deep); color: #e6ecd8; }
.band-sage h2 { color: #f4ead8; }
.band-sage .kicker { color: #c9d4b0; }
.band-sage p { color: #d5ddc4; }

.cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.card, .service, .principle, .project {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.2rem;
}
.service h3 { margin-bottom: 0.35em; }
.service p, .project p, .principle p { color: var(--mute); font-size: 0.98rem; }
.num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.stat {
  border-top: 2px solid var(--mesa);
  padding-top: 0.7rem;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--iron);
  line-height: 1;
}
.stat span { color: var(--mute); font-size: 0.92rem; display: block; margin-top: 0.35rem; }

.split {
  display: grid;
  gap: 1.6rem;
}
.cite {
  font-size: 0.88rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

blockquote.quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--bone);
}
blockquote.quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8b48a;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.contact-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-list a { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--rust); }

.site-footer {
  background: var(--iron);
  color: #c9b79a;
  padding: 2rem 0 5.5rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  gap: 1.1rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--bone);
}
.site-footer a { color: var(--sand); }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--iron);
  border-top: 1px solid #3a3028;
}
.callbar a {
  text-align: center;
  padding: 0.85rem 0.4rem;
  text-decoration: none;
  color: var(--bone);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.callbar a:first-child { background: var(--rust); color: var(--white); }

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 1.15rem;
  }
  .header-cta { display: inline-flex; margin-left: 0.4rem; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .site-footer { padding-bottom: 2.2rem; }
  .callbar { display: none; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .hero-media img, .hero-media { height: min(82vh, 720px); }
}
