:root {
  --dark: #1a1712;
  --dark-2: #262119;
  --gold: #c99a2e;
  --gold-light: #e0b94a;
  /* Text-weight gold. Default --gold is 2.4:1 on cream/white, fails 4.5:1
     for small text. Used for eyebrow labels and star ratings on light
     backgrounds: 4.72:1 against --cream. */
  --gold-dark: #8a6a1f;
  --cream: #faf7f1;
  --text: #2a251d;
  --text-light: #6b6255;
  --border: #e6ddc9;
  /* Form control borders. --border alone is 1.35:1 on white, fails the
     3:1 non-text UI minimum. This hits 3.63:1. */
  --input-border: #8d8672;
  --error: #b3261e;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

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

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

/* Header */
header.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 65;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--gold-light); }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a {
  color: #eee9dd;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 4px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold-light); }
/* Current page: underline, not color alone. */
nav.main-nav a.active { text-decoration: underline; text-underline-offset: 4px; }

/* Service Areas dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-toggle::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--dark-2);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  min-width: 190px;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.nav-dropdown-menu a { padding: 11px 18px; font-weight: 600; }
.nav-dropdown-menu a:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(201,154,46,0.12); }

#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 15px 10px;
  margin: -15px -10px;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; background: #fff; height: 2px; width: 26px; position: relative; transition: 0.2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

@media (max-width: 820px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 20px 16px;
    gap: 14px;
    display: none;
    border-bottom: 3px solid var(--gold);
  }
  #nav-toggle:checked ~ nav.main-nav { display: flex; }
  /* Visually hidden, not display:none, so it stays keyboard-focusable.
     Space toggles a native checkbox with no extra JS needed. */
  #nav-toggle {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }
  #nav-toggle:focus-visible ~ .nav-toggle-label {
    outline: 3px solid var(--gold-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--dark);
  }
  .nav-toggle-label { display: block; }
  .header-cta .btn-outline { display: none; }
  .nav-dropdown-menu {
    position: static;
    display: flex !important;
    background: transparent;
    border-top: none;
    box-shadow: none;
    min-width: 0;
    padding: 2px 0 0 14px;
  }
  .nav-dropdown-menu a { padding: 12px 0; font-size: 0.86rem; color: #cfc6b3; }
  .nav-dropdown-toggle::after { display: none; }
}

/* Sticky mobile call/text bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--dark);
  border-top: 3px solid var(--gold);
}
.mobile-bar-inner { display: flex; }
.mobile-bar-inner a {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-bar-inner a.call { background: var(--gold); color: var(--dark); }
@media (max-width: 820px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 54px; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--dark) url('../images/atoz-cover-wood-carriage-doors.jpg') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,14,0.92) 0%, rgba(20,18,14,0.72) 55%, rgba(20,18,14,0.4) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 20px 88px;
}
.hero h1 { font-size: 2.5rem; line-height: 1.15; max-width: 640px; margin-bottom: 16px; }
.hero p.lede { font-size: 1.15rem; max-width: 560px; color: #f1ead9; margin-bottom: 26px; }
.hero-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-rating .stars { color: var(--gold-light); letter-spacing: 2px; font-size: 1.05rem; }
.hero-rating .rating-text {
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 14px 26px; font-size: 1rem; }
@media (max-width: 700px) {
  .hero h1 { font-size: 1.9rem; }
}

/* Sections */
section { padding: 60px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}
h2 { font-size: 1.9rem; color: var(--dark); margin-bottom: 10px; }
h3 { font-size: 1.2rem; color: var(--dark); }
p { color: var(--text); }
p.dek { color: var(--text-light); font-size: 1.05rem; }

.bg-dark { background: var(--dark); color: #f1ead9; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .eyebrow { color: var(--gold-light); }

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 1rem; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Before/after drag slider */
.ba-wrap { display: flex; flex-direction: column; gap: 22px; }
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 4/3;
}
.ba-slider .ba-before, .ba-slider .ba-after {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-slider .ba-divider, .ba-slider .ba-handle { will-change: left; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  pointer-events: none;
}
.ba-arr { width: 0; height: 0; }
.ba-arr-l { border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 8px solid var(--dark); }
.ba-arr-r { border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 8px solid var(--dark); }
.ba-label {
  position: absolute; top: 14px;
  padding: 4px 12px;
  background: rgba(20,18,14,0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  pointer-events: none;
}
.ba-label-l { left: 14px; }
.ba-label-r { right: 14px; }
@media (max-width: 600px) { .ba-handle { width: 36px; height: 36px; } }

/* Reviews */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 22px;
}
.review-stars { color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 1rem; margin-bottom: 12px; }
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.review-date { color: var(--text-light); font-size: 0.82rem; }

/* CTA band */
.cta-band {
  background: var(--gold);
  color: var(--dark);
  text-align: center;
}
.cta-band h2 { color: var(--dark); }
.cta-band .btn-outline { border-color: var(--dark); color: var(--dark); }
.cta-band .btn-outline:hover { background: rgba(26,23,18,0.08); }

/* Contact form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.required-tag { font-weight: 400; color: var(--text-light); text-transform: none; letter-spacing: 0; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  min-height: 44px;
}
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--text-light); margin-top: 14px; }
.embed-form { min-height: 632px; }
.field-error { display: block; font-size: 0.85rem; color: var(--error); margin-top: 5px; min-height: 1.2em; }

/* Info list */
.info-list { list-style: none; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; }
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--text-light); }

/* Town chips */
.town-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.town-chips span {
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-block;
}
/* When a chip wraps a link, the link itself carries the pill so the whole
   visible pill is clickable, not just the text baseline. */
.town-chips span:has(a) { padding: 0; border: none; background: none; }
.town-chips a {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 100px;
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--dark);
  color: #cfc6b3;
  padding: 50px 0 30px;
  font-size: 0.9rem;
}
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
footer p { color: #cfc6b3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer a { color: #cfc6b3; text-decoration: underline; }
footer a:hover { color: var(--gold-light); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.footer-dealer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #3a352a;
  padding: 24px 0;
}
.footer-dealer img { height: 40px; width: auto; }
.footer-dealer-text {
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-bottom { padding-top: 20px; font-size: 0.8rem; color: #a89e88; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Legal / privacy policy */
.legal { max-width: 760px; padding: 50px 20px 70px; }
.legal h2 { margin-top: 46px; padding-top: 4px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 30px; margin-bottom: 6px; }
.legal p, .legal li { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--gold-dark); text-decoration: underline; }
.legal a:hover { color: var(--dark); }
.toc-list { padding-left: 22px; }
.toc-list li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal thead th { background: var(--cream); font-weight: 700; }
.legal tbody th { font-weight: 600; white-space: nowrap; }
address { font-style: normal; margin-bottom: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-light); text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--dark);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Focus ring: two tones so it's visible against both the site's light
   sections (dark ring reads at 16.7:1) and dark sections (gold ring reads
   at 9.5:1). One of the two always has 3:1+ against whatever's behind it. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.ba-slider:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--dark);
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
