/* ============================================================
   5280 Everstead Construction — styles
   ============================================================ */

:root {
  --ink: #20231f;
  --ink-soft: #3a3f39;
  --evergreen: #2f4a3a;
  --evergreen-dark: #24382e;
  --cream: #f6f3ec;
  --cream-2: #ece7dc;
  --paper: #fbfaf6;
  --brass: #b58a44;
  --brass-soft: #c9a463;
  --sage: #7d8a7e;
  --line: rgba(32, 35, 31, 0.12);
  --line-light: rgba(246, 243, 236, 0.16);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Raleway", ui-sans-serif, system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(32, 35, 31, 0.06), 0 6px 18px rgba(32, 35, 31, 0.05);
  --shadow-md: 0 2px 6px rgba(32, 35, 31, 0.08), 0 18px 44px rgba(32, 35, 31, 0.12);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--brass);
  color: #1d1710;
}
.btn--primary:hover { background: var(--brass-soft); }

.btn--dark {
  background: var(--evergreen);
  color: #f6f3ec;
}
.btn--dark:hover { background: var(--evergreen-dark); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: rgba(32,35,31,.32); }
.btn--ghost-light {
  background: transparent;
  color: #f6f3ec;
  border-color: var(--line-light);
}
.btn--ghost-light:hover { border-color: rgba(246,243,236,.4); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand .mark {
  color: var(--evergreen);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--brass);
  transition: right 0.2s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.header-cta .phone { color: var(--evergreen); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

/* Hero */
.hero {
  position: relative;
  color: #f6f3ec;
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,35,31,0.55) 0%, rgba(32,35,31,0.25) 45%, rgba(32,35,31,0.82) 100%);
}
.hero__inner {
  position: relative;
  padding: 150px 0 130px;
  max-width: 720px;
}
.hero h1 { color: #faf7f0; margin-bottom: 0.35em; }
.hero .lead {
  color: rgba(246, 243, 236, 0.88);
  font-size: 1.24rem;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__strip {
  position: relative;
  border-top: 1px solid var(--line-light);
}
.hero__strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 0;
}
.hero__stat .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #faf7f0;
}
.hero__stat .label {
  font-size: 0.86rem;
  color: rgba(246, 243, 236, 0.72);
}

/* Feature / value rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5/4;
  object-fit: cover;
  width: 100%;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 74, 58, 0.09);
  color: var(--evergreen);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

/* Steps / process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step { position: relative; padding: 26px 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brass);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.step h3 { margin: 14px 0 0.4em; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* CTA band */
.cta-band {
  background: var(--evergreen);
  color: #f6f3ec;
  border-radius: 20px;
  padding: 60px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 { color: #faf7f0; margin-bottom: 0.2em; }
.cta-band p { color: rgba(246,243,236,0.8); margin: 0; max-width: 520px; }

/* Pricing card */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.price-card__head { background: var(--evergreen); color: #f6f3ec; padding: 26px 30px; }
.price-card__head .tag { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); }
.price-card__head .amt { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; margin-top: 6px; }
.price-card__head .amt span { font-size: 1.2rem; color: rgba(246,243,236,0.7); }
.price-card__body { padding: 26px 30px; }
.price-card__body ul { list-style: none; margin: 0; padding: 0; }
.price-card__body li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.price-card__body li:last-child { border-bottom: 0; }
.price-card__body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--evergreen);
  border-bottom: 2px solid var(--evergreen);
  transform: rotate(-45deg);
}

/* Form */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(47,74,58,0.14);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246, 243, 236, 0.78);
  padding: 68px 0 30px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}
.site-footer h4 {
  color: #faf7f0;
  font-size: 1rem;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(246,243,236,0.78); }
.site-footer a:hover { color: #faf7f0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 0.86rem;
  color: rgba(246,243,236,0.5);
}
.footer-phone { color: var(--brass-soft); font-family: var(--font-display); font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__strip-inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .text { display: none; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-card { padding: 26px; }
  .hero__inner { padding: 110px 0 90px; }
  .nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    gap: 2px;
  }
  .nav--open a { width: 100%; padding: 10px 0; }
}
