/* =========================================================
   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.
   ========================================================= */

:root {
  /* =========================================================
     Brand palette — Retaining Wall Cartersville
     Single source of truth for site colors. Edit here to
     re-theme the whole site. Derived from the logo.
     ========================================================= */
  --brand:        #073706;   /* Deep Forest Green — navbar, buttons, headings, footer */
  --brand-dark:   #16580A;   /* Evergreen — hover states, secondary buttons */
  --evergreen:    #16580A;   /* alias */
  --moss:         #426706;   /* Moss Green — medium accent */
  --accent:       #618804;   /* Fresh Leaf Green — small highlights, links, checkmarks (use sparingly) */
  --spring:       #90B508;   /* Spring Green — light accent */
  --ink:          #20282C;   /* Charcoal — body / dark text */
  --ink-soft:     #565B52;   /* secondary text */
  --stone:        #8A8984;   /* Stone gray — retaining wall neutral */
  --line:         #D8D4CA;   /* Light stone — borders / hairlines */
  --bg:           #F7F6F1;   /* Warm white — main page background */
  --bg-alt:       #EFEEE6;   /* alternating section background */
  --bg-dark:      #073706;   /* footer / dark band */
  --cream:        #E9EFE2;   /* light sage tint — mini CTA, feature icons */
  --sage:         #90B508;   /* light sage accent (alias of spring) */
  --max:          1160px;    /* content max width */
  --radius:       10px;
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35em; letter-spacing: -.01em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn:active { transform: translateY(1px); }

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

/* ---------- focus states (keyboard accessibility) ----------
   Visible focus ring on every interactive element. Uses the
   bright accent green so it reads on both the warm-white page
   background and the dark green footer / CTA bands. */
a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.nav__toggle:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.linklist a:focus-visible,
.area-pills a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* inputs also get a brand-colored border when focused */
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(97,136,4,.25);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo img { max-height: 64px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 250px; max-height: 70vh; overflow-y: auto; padding: 8px 0; box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
/* 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: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); }

/* two-column area dropdown (desktop) */
.dropdown--2col { min-width: 480px; columns: 2; column-gap: 44px; padding: 8px 18px 12px; }
.dropdown--2col li { break-inside: avoid; }
.dropdown--2col a { padding: 6px 4px; line-height: 1.3; }
.dropdown__label {
  column-span: all; break-after: avoid;
  color: var(--brand); text-transform: uppercase; letter-spacing: .06em;
  font-size: .78rem; font-weight: 700; font-family: var(--font-head);
  padding: 4px 4px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 8px; }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links li > a { display: block; padding: 12px 4px; font-size: 1.02rem; }
  .nav__call { margin: 8px 0 4px; text-align: center; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 4px 14px; min-width: 0; }
  .dropdown a { padding: 10px 14px; font-size: .95rem; }
  .dropdown--2col { columns: 1; min-width: 0; padding: 0 0 4px 14px; }
  .dropdown__label { padding: 6px 4px 8px; margin-bottom: 4px; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; min-height: 520px; display: flex; align-items: center; }
.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; background: transparent; z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 20px; width: 100%; }
.hero__card { background: rgba(7,55,6,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 34px 38px; max-width: 620px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; opacity: .95; }
.hero h1 { color: #fff; margin: 10px 0 16px; max-width: 18ch; }
.hero p { color: rgba(255,255,255,.95); font-size: 1.15rem; max-width: 46ch; font-weight: 400; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__cta .btn:not(.btn--ghost) { background: #fff; color: var(--brand); }
.hero__cta .btn:not(.btn--ghost):hover { background: var(--cream); color: var(--brand); }
@media (max-width: 600px) {
  .hero { min-height: 360px; }
  .hero__inner { padding: 60px 16px; }
  .hero__card { padding: 24px 20px; }
  .hero p { font-size: 1.05rem; }
}

/* ---------- sections ---------- */
.section { padding: 64px 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: 65ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; 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 {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(7,55,6,.06); }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .4em; color: var(--ink); }
.card p:last-child { margin-bottom: 0; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* cost table */
.table-wrap { overflow-x: auto; }
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: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--bg-alt); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.1rem; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: var(--cream); }

/* ---------- estimate / contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.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: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@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: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; 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.5; }

/* ---------- article pages (about, FAQ, team, careers, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 14px; }
.article h2 { margin-top: 40px; }
.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__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.35rem; margin-top: 34px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 24px; }
.team-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.team-card .role { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

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

/* ---------- homepage: mobile call bar ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: #fff; padding: 12px 16px;
  font-weight: 600; box-shadow: 0 -6px 18px rgba(0,0,0,.18);
}
.callbar a { color: #fff; }
.callbar .callbar__phone { font-size: 1.05rem; }
.callbar .callbar__btn { background: #fff; color: var(--brand); padding: 8px 16px; border-radius: 8px; }
@media (max-width: 700px) { .callbar { display: flex; } body { padding-bottom: 56px; } }

/* ---------- homepage: feature items (icon + text) ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 26px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi__icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); color: var(--brand); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
}
.feature-item h3 { margin: 0 0 .25em; font-size: 1.05rem; }
.feature-item p { margin: 0; font-size: .96rem; }

/* ---------- homepage: how it works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step .step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }

/* ---------- homepage: image grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .g--wide { grid-column: span 2; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .g--wide { grid-column: span 2; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery .g--wide { grid-column: span 1; } }

/* ---------- homepage: service area pills (four-column, alphabetical) ---------- */
.area-pills { columns: 4; column-gap: 16px; margin-top: 24px; }
.area-pills a {
  display: block; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem;
  margin-bottom: 10px; break-inside: avoid;
}
.area-pills a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; background: var(--cream); }
@media (max-width: 900px) { .area-pills { columns: 2; } }
@media (max-width: 480px) { .area-pills { columns: 1; } }

/* ---------- homepage: prominent service card ---------- */
.card--feature { border-color: var(--brand); border-width: 2px; box-shadow: 0 10px 26px rgba(7,55,6,.08); }
.card--feature h3 { color: var(--brand); }

/* ---------- homepage: final CTA with image ---------- */
.final-cta { position: relative; border-radius: var(--radius); overflow: hidden; }
.final-cta__media { position: absolute; inset: 0; z-index: 0; }
.final-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,55,6,.92), rgba(7,55,6,.66)); z-index: 1; }
.final-cta__inner { position: relative; z-index: 2; padding: 64px 40px; color: #fff; max-width: 620px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.9); }
.final-cta .btn { background: #fff; color: var(--brand); }
.final-cta .btn:hover { background: var(--cream); }
.final-cta .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.final-cta .btn--ghost:hover { background: #fff; color: var(--brand); }
@media (max-width: 600px) { .final-cta__inner { padding: 44px 24px; } }

/* ---------- homepage: mini CTA band (mid-page) ---------- */
.mini-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; margin-top: 24px;
  box-shadow: 0 8px 22px rgba(7,55,6,.06);
}
.mini-cta--narrow { max-width: 560px; margin-top: 44px; background: #fff; }
.mini-cta__text { width: 100%; }
.mini-cta__text h3 { color: var(--brand); font-size: 1.5rem; font-weight: 800; margin: 0 0 .25em; }
.mini-cta__text p { margin: 0; font-size: 1.02rem; color: var(--ink); }
.mini-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
.mini-cta .btn { white-space: nowrap; }
.mini-cta .btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.mini-cta .btn--ghost:hover { background: var(--brand); color: #fff; }
@media (max-width: 700px) {
  .mini-cta { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; }
  .mini-cta__actions { flex-direction: column; }
  .mini-cta__actions .btn { width: 100%; text-align: center; }
}

/* ---------- homepage: compact trust strip ---------- */
.trust-strip {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-strip .ts__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
}
.trust-strip .ts__item {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  font-weight: 600; font-size: .97rem;
}
.trust-strip .ts__check {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream); color: var(--brand); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; line-height: 1;
}
@media (max-width: 620px) {
  .trust-strip .ts__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- homepage: bottom contact section (light sage, distinct from dark footer) ---------- */
.contact-section { background: var(--cream); color: var(--ink); padding: 64px 0; }
.contact-section .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.contact-section h2 { color: var(--brand); }
.contact-section .contact__lead { color: var(--ink); font-size: 1.1rem; max-width: 40ch; }
.contact-section .contact__phone {
  font-size: 1.5rem; font-weight: 800; color: var(--brand); display: inline-block; margin-top: 14px;
}
.contact-section .contact__phone:hover { color: var(--brand-dark); text-decoration: none; }
.contact-section .contact__hours { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; }
.contact-section .form-card { background: #fff; padding: 32px; }
.contact-section .form-card label { color: var(--ink); }
.contact-section .form-card .btn { width: 100%; background: var(--brand); color: #fff; }
.contact-section .form-card .btn:hover { background: var(--brand-dark); }
.contact-section .form-note { color: var(--ink-soft); font-size: .85rem; margin-top: 12px; }
.contact-section .form-note a { color: var(--brand); }
@media (max-width: 800px) {
  .contact-section .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- reduced motion ----------
   Respect the user's motion preference: disable smooth scroll,
   shorten transitions and animations to near-instant. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
