/* =========================================================
   OCALA DRYWALL EXPERTS — SITE STYLESHEET
   Palette: deep forest green / warm sand / charcoal / white
   Display: serif (Charter/Georgia) — Body: humanist sans (system)
   ========================================================= */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }
img, picture, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: none; padding: 0; margin: 0; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  --green-900: #142a1f;
  --green-800: #1f3d2f;
  --green-700: #2b5240;
  --green-600: #3a6a53;
  --green-100: #e7efe9;

  --sand-50:  #fbf8f2;
  --sand-100: #f5efe0;
  --sand-200: #ecdfc3;
  --sand-300: #ddc99b;

  --gold-600: #a97c33;
  --gold-500: #b98a3e;
  --gold-100: #f1e3c6;

  --charcoal:       #2a2924;
  --charcoal-light: #5b584d;
  --white: #ffffff;
  --border: #e3dac7;

  --font-serif: Charter, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(20, 42, 31, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 42, 31, 0.12);
  --shadow-lg: 0 18px 44px rgba(20, 42, 31, 0.18);

  --max-width: 1180px;
}

/* ---------- 3. BASE TYPOGRAPHY ---------- */
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.08rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; color: var(--charcoal); }
p.lede { font-size: 1.15rem; color: var(--charcoal-light); }
strong { color: var(--green-900); }
a.link-inline { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
a.link-inline:hover { color: var(--gold-600); }

::selection { background: var(--gold-100); color: var(--green-900); }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-secondary {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-secondary:hover { background: var(--green-100); }
.btn-gold {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--green-900);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--green-800); background: var(--sand-100); }
.caret { font-size: 0.65em; transition: transform 0.15s ease; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 50;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2px 32px;
}
.dropdown-grid a {
  display: block;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  white-space: nowrap;
  color: var(--charcoal);
}
.dropdown-grid a:hover { background: var(--sand-100); color: var(--green-800); }
.dropdown-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 12px;
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-900);
}
.header-call .phone-ico { color: var(--gold-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--green-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav submenu toggle button (hidden on desktop) */
.mobile-sub-toggle { display: none; }

/* ---------- 6. BREADCRUMBS ---------- */
.breadcrumbs {
  background: var(--sand-50);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--charcoal-light); }
.breadcrumbs a { color: var(--green-700); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--sand-300); }

/* ---------- 7. HERO VARIANTS ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-home {
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,31,0.78) 0%, rgba(20,42,31,0.62) 45%, rgba(20,42,31,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.15rem; color: var(--sand-100); max-width: 600px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 28px; font-size: 0.92rem; color: var(--sand-100);
}
.hero-meta strong { color: var(--white); }

/* city/service inner hero: shorter, sand background instead of image for variety on some pages */
.hero-plain {
  background: var(--green-900);
  padding: 56px 0 50px;
}
.hero-plain .hero-sub { color: var(--sand-100); }

/* ---------- 8. PHOTO BAND ---------- */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.photo-band img { height: 260px; width: 100%; object-fit: cover; }

.in-body-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}
.in-body-photo img { width: 100%; height: auto; display: block; }
.in-body-photo figcaption {
  background: var(--sand-50);
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--charcoal-light);
  border-top: 1px solid var(--border);
}

/* ---------- 9. SECTIONS ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-sand { background: var(--sand-50); }
.section-green { background: var(--green-900); color: var(--sand-100); }
.section-green h2 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}

/* ---------- 10. SERVICE GRID ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-600);
}
.service-card h3 { margin-bottom: 8px; font-size: 1.14rem; }
.service-card h3 a { color: var(--green-900); }
.service-card p { color: var(--charcoal-light); font-size: 0.95rem; margin-bottom: 10px; }
.service-card .price-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: 999px;
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- 11. COST TABLE ---------- */
.cost-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.cost-table { min-width: 560px; background: var(--white); }
.cost-table th, .cost-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.cost-table th {
  background: var(--green-900);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.cost-table tr:nth-child(even) td { background: var(--sand-50); }
.cost-table td.price { font-weight: 700; color: var(--green-800); white-space: nowrap; }
.cost-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--charcoal-light);
  border-left: 3px solid var(--gold-500);
  padding-left: 12px;
}

/* ---------- 12. ESTIMATOR ---------- */
.estimator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-weight: 700; font-size: 0.9rem; color: var(--green-900); }
.field-group select, .field-group input[type="number"], .field-group input[type="text"], .field-group input[type="email"], .field-group input[type="tel"], .field-group textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  font-size: 1rem;
}
.field-group select:focus, .field-group input:focus, .field-group textarea:focus {
  border-color: var(--green-700);
  background: var(--white);
}
.estimator-result {
  margin-top: 22px;
  padding: 22px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  border: 1px dashed var(--green-600);
}
.estimator-result .range {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green-900);
}
.estimator-result .range-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-light);
  margin-bottom: 4px;
}
.estimator-result .range-fine { font-size: 0.86rem; color: var(--charcoal-light); margin-top: 10px; }
.estimator-foot { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- 13. ACCORDION (FAQ) ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--green-900);
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--green-700);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.accordion-item.is-open .plus { transform: rotate(45deg); background: var(--green-700); color: var(--white); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel-inner { padding: 0 4px 22px; color: var(--charcoal-light); max-width: 760px; }
.accordion-item.is-open .accordion-panel { max-height: 600px; }

/* ---------- 14. GALLERY + LIGHTBOX ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand-100);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(20,42,31,0.88));
  color: var(--white);
  font-size: 0.82rem;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 42, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.is-active { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox-inner img { max-height: 75vh; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox-caption { color: var(--sand-100); margin-top: 16px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  color: var(--white); font-size: 2rem; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 2.4rem;
  padding: 10px 18px;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ---------- 15. TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-family: var(--font-serif); font-size: 1.08rem; color: var(--charcoal); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.monogram {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--green-900); font-size: 0.95rem; }
.testimonial-loc { font-size: 0.85rem; color: var(--charcoal-light); }

/* ---------- 16. CASE STUDY / RESULTS CARDS ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.case-card img { width: 100%; height: 230px; object-fit: cover; }
.case-card-body { padding: 24px; }
.case-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.case-stats {
  display: flex;
  gap: 22px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-stat .num { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--green-900); display: block; }
.case-stat .lbl { font-size: 0.78rem; color: var(--charcoal-light); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- 17. BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.post-card img { border-radius: var(--radius-md); height: 150px; object-fit: cover; width: 100%; }
.post-card h3 a { color: var(--green-900); }
.post-meta { font-size: 0.8rem; color: var(--charcoal-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.sidebar-box {
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-box h4 { color: var(--green-900); margin-bottom: 14px; }
.sidebar-box ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a:hover { color: var(--green-700); }

.post-article h2 { margin-top: 2rem; }
.post-article p { max-width: 70ch; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ---------- 18. FORMS (CONTACT) ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form .field-group { margin-bottom: 18px; }
.contact-info-card {
  background: var(--green-900);
  color: var(--sand-100);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--gold-100); font-weight: 700; }
.contact-info-list { margin-top: 18px; }
.contact-info-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.contact-info-list li:last-child { border-bottom: none; }

/* ---------- 19. FOOTER ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--sand-100);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { color: var(--sand-200); font-size: 0.92rem; margin: 14px 0; max-width: 32ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-col ul li a { color: var(--sand-200); }
.footer-col ul li a:hover { color: var(--white); text-decoration: underline; }
.footer-col-split { columns: 2; column-gap: 20px; }
.footer-areas { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 30px 0; }
.footer-areas a { font-size: 0.88rem; color: var(--sand-200); }
.footer-areas a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  padding: 22px 0 90px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--sand-300);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-range-note { font-size: 0.8rem; color: var(--sand-300); padding-top: 18px; border-top: 1px dashed rgba(255,255,255,0.2); max-width: 70ch; }

/* ---------- 20. STICKY MOBILE CALL BAR (CSS only) ---------- */
.sticky-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: var(--green-800);
  border-top: 1px solid var(--green-900);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-500);
}
.sticky-call-bar a:active { background: var(--gold-600); }

/* ---

/* ===== Responsive + print (Task 1b) ===== */
/* =========================================================
   RESPONSIVE TAIL
   Ocala Drywall Experts — style.css continuation
   Breakpoints: 1020px / 900px / 640px
   ========================================================= */

/* ---------------------------------------------------------
   1020px — nav begins to tighten, photo bands step down
   --------------------------------------------------------- */
@media (max-width: 1020px) {
  .site-header .container {
    gap: 12px;
  }

  .site-nav ul {
    gap: 18px;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-grid {
    gap: 24px;
  }

  .photo-band {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* ---------------------------------------------------------
   900px — hamburger kicks in, dropdown collapses,
   hero stacks, sticky call bar appears
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--green-700);
    border-radius: var(--radius-sm, 4px);
    background: var(--green-900, #0f3d2e);
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-400, #d9a441);
    margin: 4px auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle.is-open::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span {
    opacity: 0;
  }

  .nav-toggle.is-open::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--green-900, #0f3d2e);
    border-top: 1px solid var(--green-700);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 50;
  }

  .site-nav.is-open {
    max-height: 600px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a {
    display: block;
    padding: 14px 20px;
    min-height: 44px;
    line-height: 1.2;
  }

  /* Services dropdown becomes a static stacked list */
  .site-nav .has-dropdown .dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--green-800, #124a38);
    border: none;
    width: 100%;
    padding: 0;
    transform: none;
  }

  .site-nav .has-dropdown.is-open .dropdown {
    display: block;
  }

  .site-nav .dropdown a {
    padding-left: 36px;
    font-size: 0.92rem;
  }

  .site-nav .has-dropdown > a::after {
    content: "+";
    float: right;
    margin-left: 8px;
  }

  .site-nav .has-dropdown.is-open > a::after {
    content: "\2212";
  }

  .header-call-btn {
    display: none;
  }

  /* Hero stacking */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-photo {
    order: -1;
    margin-bottom: 20px;
  }

  /* Photo band to 2 columns */
  .photo-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Service grid to 2 columns */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cost table scrollable */
  .cost-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--green-200, #cfe3da);
    border-radius: var(--radius-md, 8px);
  }

  .cost-table {
    min-width: 640px;
  }

  /* Estimator stacking */
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .estimator-result {
    margin-top: 12px;
  }

  /* Gallery to 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Case study cards stack */
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  /* Footer columns stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .footer-areas ul {
    columns: 2;
  }

  /* Sticky mobile tap-to-call bar visible under 900px */
  .sticky-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    min-height: 56px;
  }

  body {
    padding-bottom: 56px;
  }
}

/* ---------------------------------------------------------
   640px — single column everywhere, tight phone layout
   --------------------------------------------------------- */
@media (max-width: 640px) {
  .site-header .container {
    padding: 10px 14px;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 1.05rem;
    max-width: 62vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding: 32px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .btn,
  .cta-button,
  .estimator-btn,
  .sticky-call-bar a {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 0.98rem;
  }

  /* Photo band single column */
  .photo-band {
    grid-template-columns: 1fr;
  }

  /* Service grid single column */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
  }

  /* Case study cards full width, tighter padding */
  .case-study-card {
    padding: 18px;
  }

  /* Footer single column, areas list single column */
  .footer-areas ul {
    columns: 1;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* FAQ accordion full width tap targets */
  .faq-item summary,
  .faq-question {
    padding: 14px 16px;
    min-height: 44px;
  }

  /* Estimator full stack, bigger tap targets */
  .estimator select,
  .estimator input {
    min-height: 44px;
    font-size: 1rem;
  }

  /* Sticky call bar text sizing on small phones */
  .sticky-call-bar span {
    font-size: 0.85rem;
  }

  .sticky-call-bar a {
    flex: 1;
    justify-content: center;
  }

  /* Breadcrumb wraps cleanly on narrow screens */
  .breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */
@media print {
  .site-header,
  .site-nav,
  .nav-toggle,
  .sticky-call-bar,
  .hero-photo,
  .gallery-lightbox,
  .footer-areas,
  .cta-band,
  .estimator {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .case-study-grid,
  .service-grid,
  .photo-band,
  .gallery-grid {
    display: block;
  }

  .case-study-card,
  .service-card {
    break-inside: avoid;
    border: 1px solid #999;
    margin-bottom: 12px;
    padding: 10px;
  }
}

/* ===== Chrome supplement (fix round) ===== */
/* ===== Chrome corrections supplement: header/footer/JS classes ===== */

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius, 8px);
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: var(--font-display, 'Poppins', sans-serif);
  color: var(--green-900, #123c24);
  font-weight: 700;
  line-height: 1.1;
  display: block;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #6b7a70);
  font-weight: 400;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  text-decoration: none;
  color: var(--text, #1f2a23);
  font-weight: 500;
}

.nav-item > a:hover {
  color: var(--green-700, #1d6b3e);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 0.25rem 2rem;
  background: #fff;
  box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.12));
  border-radius: var(--radius, 8px);
  padding: 1rem 1.25rem;
  z-index: var(--z-header, 100);
  min-width: 440px;
}

.has-dropdown:hover .nav-dropdown,
.nav-dropdown.open {
  display: grid;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
}

.dropdown-col a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--text, #1f2a23);
  font-size: 0.92rem;
  white-space: nowrap;
}

.dropdown-col a:hover {
  color: var(--green-700, #1d6b3e);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .site-nav .nav-dropdown {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    min-width: 0;
    padding: 0.5rem 0 0.5rem 1rem;
  }
  .site-nav.open .nav-dropdown.open {
    display: grid;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-a {
  padding: 1rem 1.25rem 1.25rem;
}

.faq-q[aria-expanded="true"] {
  color: var(--green-900, #123c24);
  font-weight: 700;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay, 999);
}

.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: var(--radius, 8px);
  display: block;
}

.lb-caption {
  color: var(--cream, #f6f1e7);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  max-width: 70ch;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: var(--cream, #f6f1e7);
  color: var(--green-900, #123c24);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.lb-close {
  top: -18px;
  right: -18px;
}

.lb-prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
}

/* Estimator */
.est-range {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-700, #1d6b3e);
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.est-note {
  font-size: 0.82rem;
  color: var(--muted, #6b7a70);
}

/* Sticky mobile call bar */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  z-index: var(--z-header, 100);
}

.bar-call,
.bar-quote {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.bar-call {
  background: var(--green-700, #1d6b3e);
  color: #fff;
}

.bar-quote {
  background: transparent;
  color: var(--green-900, #123c24);
  border: 2px solid var(--green-700, #1d6b3e);
}

@media (max-width: 720px) {
  .sticky-call-bar {
    display: flex;
  }
}
/* ===== CSS REPAIR ROUND 2 ===== */

/* 1. Photo hero text visibility */
.hero .hero-content h1 {
  color: var(--green-900);
}
.hero .hero-eyebrow {
  color: var(--green-700, #3f5d3a);
  letter-spacing: 0.08em;
}
.hero .hero-meta {
  color: var(--ink-muted, #5a5a52);
}

/* 2. Plain band paragraph readability */
.hero-plain p {
  color: var(--cream, #f6f1e4);
}

/* 3. Hero grid two-column desktop layout + phone photo treatment */
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius, 10px);
  display: block;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 2.5rem;
    align-items: stretch;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-photo {
    height: 100%;
  }
  .hero-photo img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: var(--radius-lg, 14px);
  }
}

/* 4. Nav toggle button visibility */
.nav-toggle {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  background: var(--green-900);
  color: var(--cream, #f6f1e4);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm, 6px);
}
.nav-toggle span,
.nav-toggle .nav-toggle-label {
  color: inherit;
  font-size: inherit;
  display: inline-block;
}

/* 5. Phone header height and call link nowrap */
@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }
  .site-header .header-inner,
  .site-header .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .brand {
    font-size: 1.05rem;
  }
  .brand-tag {
    font-size: 0.7rem;
  }
  .call-btn,
  .header-call {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
}

/* 6. Phone horizontal overflow fixes */
@media (max-width: 640px) {
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .testimonial-card {
    min-width: 0;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-layout input,
  .contact-layout select,
  .contact-layout textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .estimator {
    grid-template-columns: minmax(0, 1fr);
  }
  .estimator select,
  .estimator input {
    width: 100%;
    box-sizing: border-box;
  }

  .cost-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cost-table-wrap table {
    width: 100%;
    min-width: 480px;
  }
}

/* Global defensive guard */
img, table, input, select, textarea {
  max-width: 100%;
}

/* Round 3 header repairs */

/* Defect 2: hide mobile menu toggle on desktop/tablet-up */
@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
}

/* Defect 1: fix striped/invisible menu button on phones */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    min-height: 44px;
    width: auto;
    padding: 0.55rem 1rem;
    background: var(--green-900);
    background-image: none;
    background-blend-mode: normal;
    color: var(--cream);
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    border-radius: 4px;
    text-indent: 0;
    overflow: visible;
  }
}

/* Defect 3: collapse header to one row on phones */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .brand-name {
    white-space: nowrap;
    font-size: 1.0rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    font-size: 0.66rem;
    white-space: nowrap;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .btn-call {
    white-space: nowrap;
    font-size: 0.82rem;
  }
}

/* ROUND 4 — header fixes at phone widths */
@media (max-width: 900px) {

  .site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .site-header .brand-link {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* Hide the in-header call link on phones; sticky bar + hero button cover it */
  .site-nav .btn-call,
  .site-nav.is-open .btn-call,
  .header-inner .site-nav .btn-call {
    display: none !important;
  }

  .site-header .nav-toggle {
    flex: 0 0 auto;
  }

  /* MENU TEXT — override whatever earlier rule is painting stripes over the label */
  .site-header .nav-toggle {
    background: var(--green-900);
    background-image: none;
    color: var(--cream, #f6f1e4);
    font-size: 0.95rem;
    line-height: 1;
    text-indent: 0;
    letter-spacing: normal;
    border: 0;
    padding: 0.6rem 1rem;
    min-height: 44px;
    border-radius: 6px;
  }

  .site-header,
  .header-inner {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header a.call-btn { display: none; }
  .brand-link { flex: 1 1 auto; min-width: 0; }
  .brand-name { white-space: nowrap; }
  .nav-toggle { padding-left: 0.8rem; padding-right: 0.8rem; }
}
