/* ============================================================
   Western Rockies Construction — Site Design System
   Palette: deep pine + copper (from WRC logo), warm cream base
   Type: Fraunces (display) / Outfit (body)
   ============================================================ */

:root {
  --pine-deep: #16271d;
  --pine: #1d3528;
  --pine-mid: #2d5a43;
  --pine-light: #40916c;
  --copper: #b4622d;
  --copper-dark: #92481c;
  --copper-soft: #f3e4d4;
  --cream: #f6f3ee;
  --card: #ffffff;
  --line: #e4ddd0;
  --ink: #26241f;
  --muted: #6f695d;
  --on-dark-muted: #b7c4b6;
  --shadow-card: 0 1px 2px rgba(29, 53, 40, 0.06), 0 8px 24px -8px rgba(29, 53, 40, 0.14);
  --shadow-lift: 0 2px 4px rgba(29, 53, 40, 0.08), 0 16px 40px -12px rgba(29, 53, 40, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
  --space-section: clamp(64px, 9vw, 110px);
  --w-content: 1120px;
  --w-narrow: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pine);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
h4 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--pine); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--copper-dark); }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}
strong { font-weight: 600; color: var(--pine); }
ul, ol { padding-left: 1.3em; margin-bottom: 1em; }
li { margin-bottom: 0.45em; }

.wrap { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 14px;
}
.dark .eyebrow { color: #d99a5f; }

.lead { font-size: 1.16rem; color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 2px 4px rgba(180, 98, 45, 0.25), 0 10px 24px -8px rgba(180, 98, 45, 0.5);
}
.btn-primary:hover { background: var(--copper-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(146, 72, 28, 0.28), 0 16px 32px -8px rgba(146, 72, 28, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: rgba(29, 53, 40, 0.35);
}
.btn-outline:hover { border-color: var(--pine); background: rgba(29, 53, 40, 0.05); color: var(--pine); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }
.dark .btn-outline, .hero .btn-outline, .page-hero .btn-outline, .cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.dark .btn-outline:hover, .hero .btn-outline:hover, .page-hero .btn-outline:hover, .cta-band .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-lg { padding: 18px 34px; font-size: 1.07rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 54px; width: auto; }
.nav-logo span {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--pine);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--copper-dark); border-bottom-color: var(--copper); }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pine);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background-color 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(29, 53, 40, 0.2), 0 8px 20px -6px rgba(29, 53, 40, 0.45);
}
.nav-phone:hover { background: var(--pine-mid); transform: translateY(-2px); color: #fff; }
.nav-phone:active { transform: translateY(0); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--pine); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow-lift);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; margin: 0; }
  .nav-links a { display: block; padding: 12px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-phone { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--pine-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(22, 39, 29, 0.92) 0%, rgba(22, 39, 29, 0.55) 45%, rgba(22, 39, 29, 0.38) 100%),
    radial-gradient(120% 90% at 15% 100%, rgba(22, 39, 29, 0.55) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(90px, 13vw, 170px) 0; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: #e8ede6; font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: #dde6da; margin: 0; }
.hero-points svg { flex: none; }

/* Sub-page hero (no photo) */
.page-hero {
  background:
    radial-gradient(90% 140% at 85% -20%, rgba(64, 145, 108, 0.28) 0%, transparent 55%),
    radial-gradient(70% 120% at 0% 110%, rgba(180, 98, 45, 0.22) 0%, transparent 55%),
    var(--pine);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #d9e2d6; max-width: 720px; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 22px; color: #aebcad; }
.breadcrumbs a { color: #cdd8ca; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--pine); color: #fff; padding: 16px 0; }
.trust-bar.on-cream { background: transparent; color: var(--pine); border-bottom: 1px solid var(--line); }
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; list-style: none; margin: 0; padding: 0; }
.trust-items li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.97rem; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
a.card { text-decoration: none; color: inherit; transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
a.card:hover .card-img img { transform: scale(1.045); }
a.card:active { transform: translateY(-1px); }
.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--copper-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Dark sections ---------- */
.dark {
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(64, 145, 108, 0.16) 0%, transparent 55%),
    radial-gradient(80% 110% at 0% 100%, rgba(180, 98, 45, 0.14) 0%, transparent 50%),
    var(--pine);
  color: #e7ece4;
}
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #cfd9cc; }
.dark strong, .hero strong, .page-hero strong, .cta-band strong { color: #fff; }
.dark p a, .dark li a, .hero p a, .page-hero p a { color: #e8b285; }
.dark p a:hover, .dark li a:hover, .hero p a:hover, .page-hero p a:hover { color: #f3d4b5; }
.dark .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.dark .card-body p { color: #b9c5b6; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.checklist svg { flex: none; margin-top: 4px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.stat-num { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--copper); line-height: 1.1; }
.dark .stat-num { color: #d99a5f; }
.stat-label { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.dark .stat-label { color: var(--on-dark-muted); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Reviews ---------- */
.review-card { padding: 28px; }
.review-stars { color: var(--copper); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.review-text { font-size: 0.99rem; color: var(--ink); margin-bottom: 16px; }
.review-name { font-weight: 600; font-size: 0.92rem; color: var(--pine); }
.review-meta { font-size: 0.82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 14px; box-shadow: var(--shadow-card); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--pine);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--copper); line-height: 1; transition: transform 0.2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-a a { font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(110% 160% at 90% -30%, rgba(64, 145, 108, 0.3) 0%, transparent 55%),
    radial-gradient(90% 140% at 0% 130%, rgba(180, 98, 45, 0.3) 0%, transparent 55%),
    var(--pine-deep);
  color: #fff;
  padding: clamp(44px, 6vw, 72px) clamp(26px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #cdd8ca; max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Tables ---------- */
table.spec { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.96rem; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
table.spec th { background: var(--pine); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
table.spec td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  table.spec { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.spec th, table.spec td { min-width: 130px; }
}

/* ---------- Article / prose ---------- */
.prose h2 { margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.5em 0 0.5em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-card); margin: 1.6em 0; }
.prose blockquote {
  border-left: 4px solid var(--copper);
  background: var(--copper-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--ink);
}
.article-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: clamp(26px, 4vw, 40px); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--pine); margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(180, 98, 45, 0.18);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); background: var(--card); border: 1px solid var(--line); margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 16px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: #c4cfc1; font-size: 0.93rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; padding: clamp(48px, 6vw, 72px) 0 40px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c4cfc1; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { color: #9fae9c; font-size: 0.9rem; max-width: 300px; }
.footer-nap { margin-top: 14px; }
.footer-nap a { color: #e7ece4; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.84rem; color: #8d9c8a; }
.footer-bottom a { color: #8d9c8a; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 940px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.dark .section-head p { color: var(--on-dark-muted); }
.mt-0 { margin-top: 0; }
.mb-32 { margin-bottom: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--copper-soft);
  color: var(--copper-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.dark .badge { background: rgba(180, 98, 45, 0.22); color: #e8b285; }

/* Grain texture overlay for hero/dark blocks */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
