/* Palette from the Sierra Construction logo (black) and their site's warm brown buttons */
:root {
  --brown: #7a5a45;        /* buttons, from site #9a8070, darkened for white text (AA) */
  --brown-dark: #5f4535;
  --brown-light: #d2b49b;  /* on dark backgrounds */
  --ink: #211c19;          /* logo black, warmed */
  --text: #2e2724;
  --muted: #5d534d;
  --cream: #f6f1ea;
  --line: #e4dbd1;
  --white: #fff;
  --radius: 18px;
  --ribbon: 28px;
  --head: "Bitter", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; padding-top: var(--ribbon); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--ribbon); display: flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--ink); color: #e9e1d8; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header */
.nav { position: sticky; top: var(--ribbon); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.logo img { height: 70px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); }
.nav-links a:hover { color: var(--brown); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brown); color: var(--white); text-decoration: none; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 16px; font-family: var(--body); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--brown-dark); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn-block { width: 100%; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.tagline { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); margin-bottom: 12px; }
.tagline.light { color: var(--brown-light); }

/* Hero */
.hero { padding: 16px 16px 0; }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: min(640px, calc(100vh - 140px)); display: flex; align-items: flex-end; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,14,.82) 0%, rgba(20,16,14,.55) 45%, rgba(20,16,14,.05) 80%), linear-gradient(0deg, rgba(20,16,14,.5), transparent 50%); }
.hero-inner { position: relative; z-index: 1; padding: 56px; max-width: 720px; color: var(--white); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
.hero .lead { font-size: 1.2rem; margin-top: 16px; color: #f1ebe5; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Trust strip */
.trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; border-left: 3px solid var(--brown-light); text-decoration: none; }
.trust-value { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.stars { color: #b8862e; font-size: 1.1rem; letter-spacing: 1px; vertical-align: middle; }
.trust-label { font-size: 14px; color: var(--muted); }
a.trust-item:hover .trust-label { text-decoration: underline; }

/* Sections */
.section { padding: 88px 0; }
.s-cream { background: var(--cream); }
.s-dark { background: var(--ink); color: #e9e1d8; }
.s-dark h2 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body { padding: 22px; }
.svc-body p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-wide { grid-column: span 2; }
.quote { margin: 48px auto 0; max-width: 820px; text-align: center; }
.quote p { font-family: var(--head); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; color: var(--ink); line-height: 1.4; }
.quote cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 30px; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brown); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Area */
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.area-grid p { margin-top: 14px; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.towns li { border: 1px solid #4a3f39; background: #2c2521; border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--white); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.form-intro p { margin-top: 14px; }
.contact-line { display: block; margin-top: 24px; font-family: var(--head); font-weight: 800; font-size: 1.8rem; color: var(--ink); text-decoration: none; }
.contact-line.small { margin-top: 6px; font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--brown); text-decoration: underline; word-break: break-all; }
.form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 12px 40px rgba(33,28,25,.08); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.form input, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #cfc3b7; border-radius: 10px; background: var(--white); color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; border-color: var(--brown); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { background: #f3ebe1; border-left: 4px solid var(--brown); padding: 12px 14px; border-radius: 8px; font-size: 15px; }

/* Footer */
.footer { background: var(--ink); color: #d9cfc6; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-family: var(--body); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.footer a { color: #f1e7dd; }
.footer-logo { height: 76px; width: auto; margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #3a322d; font-size: 13px; color: #a89c92; }

.call-bar { display: none; }

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .nav-links { display: none; }
  .nav-bar { height: 66px; }
  .logo img { height: 46px; }
  .hero { padding: 10px 10px 0; }
  .hero-card { min-height: 0; }
  .hero-inner { padding-top: 64px !important; }
  .hero-card::after { background: linear-gradient(0deg, rgba(20,16,14,.9) 0%, rgba(20,16,14,.6) 55%, rgba(20,16,14,.15) 100%); }
  .hero-inner { padding: 28px 22px; }
  .hero .lead { font-size: 1.05rem; }
  .hero-ctas .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .trust-item { padding: 4px 10px; }
  .trust-value { font-size: 1.35rem; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .svc-grid, .steps, .area-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
  .gallery .g-wide { grid-column: span 2; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); }
  .call-bar .btn { padding: 13px 10px; }
}

@media (max-width: 420px) {
  :root { --ribbon: 34px; }
  .ribbon { font-size: 11px; line-height: 1.25; white-space: normal; }
  .btn-sm { padding: 10px 14px; font-size: 14px; }
}
