/* =========================================================
   Microsite Base — shared styles
   Plain CSS, no build step. Edit freely.
   Brand color and font are driven by CSS variables below so
   a single change re-themes the whole site.
   Look: warm charcoal + rust from the logo, condensed headings,
   and a stair-step accent taken from the logo's basement stairs.
   ========================================================= */

:root {
  --brand:        #9c512e;   /* primary brand / links / buttons (logo rust) */
  --brand-dark:   #7d4125;   /* darker shade for hovers */
  --brand-light:  #e9a27c;   /* rust on dark backgrounds */
  --brand-tint:   #f7ece5;   /* pale rust wash */
  --ink:          #1f1b18;   /* headings / body text (logo charcoal) */
  --ink-soft:     #564e47;   /* secondary text */
  --line:         #e7dfd7;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f8f4ef;   /* alternating section background (warm cream) */
  --bg-dark:      #1f1b18;   /* footer / dark band */
  --max:          1160px;    /* content max width */
  --radius:       12px;
  --shadow:       0 1px 2px rgba(31,27,24,.06), 0 10px 28px rgba(31,27,24,.08);
  --shadow-lg:    0 2px 4px rgba(31,27,24,.08), 0 22px 48px rgba(31,27,24,.16);
  --font-head: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* stair-step mark, drawn from the logo */
  --steps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Cpath d='M0 2h12v4h12v4h12v4h12' fill='none' stroke='%239c512e' stroke-width='3.2'/%3E%3C/svg%3E");
  --steps-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Cpath d='M0 2h12v4h12v4h12v4h12' fill='none' stroke='%23e9a27c' stroke-width='3.2'/%3E%3C/svg%3E");
  --steps-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Cpath d='M0 2h12v4h12v4h12v4h12' fill='none' stroke='%23ffffff' stroke-width='3.2'/%3E%3C/svg%3E");
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.04rem;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: 0; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .4em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--ink); }

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

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* stair-step accent above section headings */
.section h2::before,
.cta-band h2::before {
  content: ""; display: block; width: 48px; height: 16px; margin-bottom: 16px;
  background: var(--steps) no-repeat left center / contain;
}
.section h2.center::before,
.section .center h2::before,
.cta-band h2::before { margin-left: auto; margin-right: auto; }
.cta-band h2::before { background-image: var(--steps-white); }
.article h2::before, .faq-page h2::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--brand);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(156,81,46,.28);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(156,81,46,.34); }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--brand); color: #fff; box-shadow: none; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink) !important; border-color: #fff !important; }
.btn--lg { padding: 17px 36px; font-size: 1.12rem; }

/* phone icon on every call link (class is also the call-tracking hook) */
.btn.wc-phone::before,
.nav__call::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-phone) no-repeat center / contain;
          mask: var(--icon-phone) no-repeat center / contain;
}

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-top: 5px solid var(--brand);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(31,27,24,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.nav__logo img { max-height: 54px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav__links > li > a:not(.nav__call) { position: relative; padding: 6px 0; }
.nav__links > li > a:not(.nav__call)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__links > li > a:not(.nav__call):hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: -18px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 280px; padding: 8px 0; box-shadow: var(--shadow-lg);
}
/* invisible bridge: fills the gap between the menu item and the dropdown
   so hover isn't lost when the mouse travels down into the submenu */
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 10px 20px; font-size: .93rem; font-weight: 500; }
.dropdown a:hover { background: var(--brand-tint); }

.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  padding: 11px 20px; border-radius: 8px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(156,81,46,.28);
  transition: background .15s ease, transform .15s ease;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav__logo img { max-height: 44px; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 3px solid var(--brand); box-shadow: var(--shadow-lg); padding: 10px 22px 18px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav__links > li > a:not(.nav__call)::after { display: none; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 0 14px; min-width: 0; }
  .dropdown li { border-bottom: 0; padding: 0; }
  .dropdown a { padding: 7px 0; }
  .nav__call { width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; border-bottom: 6px solid var(--brand); background: var(--bg-dark); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,16,13,.92) 0%, rgba(20,16,13,.72) 45%, rgba(20,16,13,.25) 100%),
    linear-gradient(0deg, rgba(20,16,13,.45), rgba(20,16,13,0) 40%);
}
.hero__inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: 120px 22px 128px; min-height: 600px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  text-transform: uppercase; letter-spacing: .14em; font-size: .86rem; font-weight: 700;
  color: var(--brand-light); max-width: none !important;
}
.hero__eyebrow::before { content: ""; width: 42px; height: 14px; background: var(--steps-light) no-repeat center / contain; }
.hero h1 { color: #fff; margin: 14px 0 18px; max-width: 16ch; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 46ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) {
  .hero__inner { padding: 72px 22px 80px; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(20,16,13,.7), rgba(20,16,13,.88)); }
  .hero__cta .btn { width: 100%; }
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 68ch; }
.section__lead p, p.section__lead { font-size: 1.1rem; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }
.section > .wrap > ul, .section > .wrap > ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.section > .wrap > ul li, .section > .wrap > ol li { margin-bottom: .45rem; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* full-width photo bands between sections */
.section > .wrap > img {
  aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) { .section > .wrap > img { aspect-ratio: 4 / 3; } }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* feature / why-us grid */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card > a:last-child {
  margin-top: auto; padding-top: 6px; align-self: flex-start;
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
}
/* whole card is clickable when it ends in a link */
.card > a:last-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin-left: 0 !important; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist li { margin: 0 !important; }
.linklist a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.linklist a::before {
  content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239c512e' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(156,81,46,.15);
}
.linklist a::after { content: "\2192"; margin-left: auto; color: var(--brand); font-weight: 700; transition: transform .15s ease; }
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.linklist a:hover::after { transform: translateX(3px); }

/* cost table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .97rem; }
th { background: var(--bg-dark); color: #fff; font-family: var(--font-head); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
tr:nth-child(even) td { background: #fcfaf8; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 4px 22px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(31,27,24,.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open], .faq details:hover { border-left-color: var(--brand); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; font-weight: 500; font-family: var(--font-head); font-size: 1.18rem; padding: 18px 0; list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); font-size: 1.35rem; line-height: 1; font-family: var(--font-body);
}
.faq details[open] summary::after { content: "\2013"; background: var(--brand); color: #fff; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; text-align: center; padding: 88px 22px;
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; letter-spacing: .01em; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- estimate / contact form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid #d9d0c7; border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fdfcfa; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(156,81,46,.15);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 68px 0 30px; border-top: 6px solid var(--brand); }
.site-footer h4 {
  color: #fff; margin-bottom: 16px; font-family: var(--font-head); font-weight: 500;
  font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
}
.site-footer h4::after { content: ""; display: block; width: 36px; height: 12px; margin-top: 10px; background: var(--steps-light) no-repeat left center / contain; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .93rem; }
.site-footer a:hover { color: var(--brand-light); }
.site-footer .wc-phone { color: #fff; font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.55; }

/* ---------- article pages (about, FAQ, careers, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 16px; }
.article h1::after { content: ""; display: block; width: 48px; height: 16px; margin-top: 18px; background: var(--steps) no-repeat left center / contain; }
.split h1 { margin-bottom: 16px; }
.article h2 { margin-top: 44px; font-size: clamp(1.5rem, 3vw, 2rem); }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--brand); }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.4rem; margin-top: 36px; }
.contact-list { list-style: none; margin: 22px 0 !important; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
