/* =========================================================
   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:        #1d9a51;
  --brand-dark:   #178344;
  --ink:          #121714;
  --ink-soft:     #4b5e52;
  --line:         #e4e0d8;
  --bg:           #faf8f5;
  --bg-alt:       #f4efe6;
  --bg-dark:      #faf8f5;
  --card:         #fcfbf8;
  --max:          1160px;
  --radius:       0.85rem;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  letter-spacing: -0.01em;
  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); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 500; font-style: italic; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: .55em; }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: .35em; letter-spacing: -0.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-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(29, 154, 81, 0.3);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: #f4efe6; color: var(--ink); }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  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: 46px; 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: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  min-width: 250px; padding: 8px 0; box-shadow: 0 10px 25px -5px rgba(29, 154, 81, 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, .has-dropdown:focus-within .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); }

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: 9999px; font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(29, 154, 81, 0.3);
  border: 0; font-family: inherit; font-size: .97rem; cursor: pointer;
}
.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); }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--ink); background: var(--bg) !important; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 88px 20px 72px; text-align: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); font-family: var(--font-body); font-style: normal; }
.hero h1 { color: var(--ink); margin: 12px auto 16px; max-width: 16ch; }
.hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero .btn--ghost { color: var(--ink) !important; border-color: var(--line) !important; background: var(--card) !important; }
.hero--dark {
  color: #f4f7f5;
  background:
    linear-gradient(rgba(244, 247, 245, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 245, .045) 1px, transparent 1px),
    #101614 !important;
  background-size: 56px 56px, 56px 56px, auto !important;
}
.hero--dark h1 { color: #f7faf8; }
.hero--dark p { color: #c5d0c8; }
.hero--dark .hero__eyebrow { color: #3dce78; }
.hero--dark .btn--ghost { color: #f4f7f5 !important; border-color: rgba(244, 247, 245, .22) !important; background: transparent !important; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg); color: var(--ink); }
.section--dark h2, .section--dark h3 { color: var(--ink); }
.section--dark p { color: var(--ink-soft); }
.section__lead { max-width: 65ch; }
.hero + .section .wrap > h2 {
  text-align: center;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}
.hero + .section .section__lead:not(.icon-list) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero + .section .section__lead:not(.icon-list) p { text-align: center; }
.hero + .section .section__lead:not(.icon-list) .btn { margin-top: 8px; }
.icon-list { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; text-align: left; }
.icon-row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; margin-bottom: 0; }
.icon-row p { text-align: left; margin-bottom: 0; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; background: #eaf6ee; color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0; }
@media (max-width: 800px) { .icon-list { grid-template-columns: 1fr; } }
.icon-badge svg { width: 24px; height: 24px; }
.hero + .section .wrap > h2.heading-short { max-width: 11.5em; }
.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: var(--card); border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 26px;
  box-shadow: 0 10px 25px -5px rgba(29, 154, 81, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}
.section--alt .card { background: var(--card); }
.card h3 { margin-bottom: .4em; }
.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: 1rem; background: var(--card); 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: var(--card); border: 1px solid var(--line); border-radius: 1rem; 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: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-body); font-size: 1.05rem; padding: 16px 0; list-style: none; color: var(--ink); }
.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: transparent; color: #fff; text-align: center; padding: 24px 20px 64px; }
.cta-band .wrap { background: var(--brand); border-radius: 1.5rem; padding: 56px 28px; }
.cta-band h2, .cta-band h2 span { color: #fff; font-style: italic; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .muted { color: rgba(255,255,255,.85) !important; }
.cta-band .btn { background: #fff; color: var(--brand); box-shadow: none; }
.cta-band .btn:hover { background: #f4efe6; color: var(--brand); }

/* ---------- estimate / contact form ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 30px; box-shadow: 0 10px 25px -5px rgba(29, 154, 81, 0.04); }
.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: 0.75rem;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); color: var(--ink-soft); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.site-footer h4, .site-footer .footer-heading { color: var(--ink); margin-bottom: 14px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; font-style: normal; }
.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: var(--ink-soft); font-size: .93rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer p { color: var(--ink-soft); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: var(--ink-soft); }
.footer-disclaimer { font-size: .82rem; color: var(--ink-soft); 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; }

/* ---------- Accessibility additions ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cta-band :focus-visible, .skip-link:focus-visible { outline-color: #fff; }
.nav__links a { color: #4b5e52; font-weight: 600; padding: 8px 10px; border-radius: 0.5rem; }
.nav__links a:hover { color: var(--brand); background: #eaf6ee; text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.form-required-note { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- request popup ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18, 23, 20, 0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; background: var(--card); width: 100%; max-width: 780px;
  border-radius: 1.25rem; padding: 36px; border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.97); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 18px; background: var(--bg-alt);
  border: none; font-size: 1.6rem; line-height: 1; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-card h2 { font-size: 1.8rem; margin-bottom: 6px; font-style: italic; }
.modal-subtitle { color: var(--ink-soft); font-size: 1rem; margin-bottom: 24px; }
.person-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 8px; }
@media (max-width: 700px) { .person-row { grid-template-columns: 1fr; } }
.contact-pref { background: #eaf6ee; border: 1px solid #c2e8cf; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.contact-pref__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 650px) { .contact-pref__row { grid-template-columns: 1fr; gap: 8px; } }
.contact-pref__heading { font-weight: 700; color: var(--ink); font-size: 0.98rem; margin-bottom: 4px; }
.contact-pref__copy { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }
.contact-pref__or { text-align: center; font-weight: 700; color: var(--ink); font-size: 0.95rem; margin: 16px 0; position: relative; }
.contact-pref__or::before, .contact-pref__or::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: #c2e8cf; }
.contact-pref__or::before { left: 0; } .contact-pref__or::after { right: 0; }
.field--flush { margin-bottom: 0; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; display: none; }
.form-status.success { display: block; background: #e6f4ea; color: #137333; border: 1px solid #ceebd6; }
.form-status.error { display: block; background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
}
