/* =========================================================
   AM Flooring — stylesheet
   ========================================================= */

:root {
  --brick: #aa4040;
  --brick-dark: #8a3232;
  --forest: #3c8c59;
  --forest-dark: #2f7047;
  --cream: #faf6ef;
  --cream-alt: #f1e9db;
  --charcoal: #2a2420;
  --charcoal-soft: #5c5248;
  --white: #ffffff;
  --border: #e6dcc9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 10px rgba(42, 36, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(42, 36, 32, 0.12);
  --header-h: 84px;

  --herringbone-pattern:
    repeating-linear-gradient(45deg, var(--brick) 0 4px, transparent 4px 32px),
    repeating-linear-gradient(-45deg, var(--forest) 0 4px, transparent 4px 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--cream-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brick);
  display: inline-block;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(170, 64, 64, 0.28);
}
.btn-primary:hover { background: var(--brick-dark); box-shadow: 0 10px 26px rgba(170, 64, 64, 0.36); }
.btn-outline {
  background: transparent;
  border-color: rgba(42, 36, 32, 0.18);
  color: var(--charcoal);
}
.btn-outline:hover { border-color: var(--charcoal); }
.btn-light {
  background: var(--white);
  color: var(--brick);
}
.btn-light:hover { background: var(--cream-alt); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 239, 0.97);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand img { height: 64px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brick); }
.nav-links a.is-active { color: var(--brick); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.header-phone svg { flex-shrink: 0; color: var(--forest); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s 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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(64px, 8vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(60, 140, 89, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-copy .eyebrow { justify-content: flex-start; }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brick);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--charcoal-soft);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}
.hero-trust svg { color: var(--forest); flex-shrink: 0; }

.hero-visual { position: relative; }

/* Quiet brand panel: reuses the same textured-panel language as .why-visual
   further down the page, instead of introducing a one-off illustration. */
.brand-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--charcoal) 0%, #17130f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--herringbone-pattern);
  background-size: 90px 90px;
  opacity: 0.1;
}
.brand-panel-rule { position: relative; width: 40px; height: 3px; background: var(--brick); }
.brand-panel-name {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
}
.brand-panel-tagline {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.65);
}

/* ---------- Herringbone divider ---------- */
.herringbone-strip {
  height: 10px;
  background-image: var(--herringbone-pattern);
  background-size: 64px 64px;
  opacity: 0.9;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  color: var(--brick);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: var(--charcoal-soft); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Before & after slider ---------- */
.ba-feature {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto 64px;
}
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: pan-y; /* vertical swipes still scroll the page on phones */
  -webkit-user-select: none;
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(42, 36, 32, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; background: var(--forest); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(42, 36, 32, 0.12);
}
.ba-handle:focus { outline: none; }
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 4px rgba(60, 140, 89, 0.35), var(--shadow-md); }
.ba-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ba-copy p { color: var(--charcoal-soft); font-size: 1.02rem; max-width: 42ch; }
.ba-copy .ba-hint { font-size: 0.85rem; font-weight: 600; color: var(--forest-dark); margin-bottom: 0; }
@media (max-width: 760px) {
  .ba-feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .ba-slider { max-width: 420px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}
.gallery-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
}
.gallery-tile--large { grid-column: span 2; grid-row: span 2; }
.gallery-tile.is-clickable { cursor: pointer; }
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-tile.is-clickable:hover img,
.gallery-tile.is-clickable:focus-visible img { transform: scale(1.06); }
.gallery-tile.is-clickable:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(24, 19, 15, 0.82) 65%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-tile.is-clickable:hover .gallery-caption,
.gallery-tile.is-clickable:focus-visible .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.gallery-caption span { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  color: var(--charcoal-soft);
  background:
    repeating-linear-gradient(45deg, var(--cream-alt) 0 10px, var(--cream) 10px 20px);
}
.gallery-placeholder svg { color: var(--border); }
.gallery-placeholder strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 600;
}
.gallery-placeholder span { font-size: 0.75rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.88);
}
.lightbox-figure {
  position: relative;
  max-width: min(900px, 88vw);
  max-height: 84vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lightbox-figure figcaption {
  color: var(--white);
  padding: 16px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lightbox-figure figcaption strong { font-family: var(--font-display); font-size: 1.1rem; }
.lightbox-figure figcaption span { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Why us ---------- */
.why-us .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.why-visual {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  min-height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
}
.why-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--herringbone-pattern);
  background-size: 90px 90px;
  opacity: 0.14;
}
.why-visual .stat {
  position: relative;
  color: var(--white);
  padding: 32px;
}
.why-visual .stat strong {
  font-family: var(--font-display);
  font-size: 3rem;
  display: block;
  line-height: 1;
}
.why-visual .stat span { font-size: 0.95rem; opacity: 0.85; }

.why-list {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--cream-alt);
  color: var(--brick);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brick);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { color: var(--charcoal-soft); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Service area ---------- */
.service-area .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}
.area-map {
  border-radius: var(--radius);
  background: var(--cream-alt);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.area-map > svg { width: 46%; color: var(--brick); opacity: 0.85; }
/* The pin icon stays as a fallback until Leaflet has drawn the map. */
.service-map { position: absolute; inset: 0; }
.area-map.has-map > svg { display: none; }.area-map .leaflet-container {
  background: var(--cream-alt);
  font-family: var(--font-body);
}
/* Mute the OpenStreetMap colours so the map sits in the site's palette. */
.area-map .leaflet-tile-pane { filter: grayscale(0.8) sepia(0.25) brightness(1.04) contrast(0.92); }
.area-map .leaflet-tooltip.area-label {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
}
.area-map .leaflet-tooltip.area-label::before { display: none; }
.area-map .leaflet-control-attribution { font-size: 0.68rem; background: rgba(250, 246, 239, 0.85); }
.area-list li[data-area] { cursor: default; transition: border-color 0.2s ease, color 0.2s ease; }
.area-list li[data-area]:hover { border-color: var(--forest); color: var(--forest-dark); }

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--herringbone-pattern);
  background-size: 70px 70px;
  opacity: 0.08;
}
.contact-info-card h3 { color: var(--white); position: relative; }
.contact-info-card p { color: rgba(250, 246, 239, 0.75); position: relative; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
}
.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(250, 246, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.95rem; }
.contact-detail span, .contact-detail a { font-size: 0.9rem; color: rgba(250, 246, 239, 0.75); }
.contact-detail a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(60, 140, 89, 0.14);
  background: var(--white);
}
/* Drop the native menulist look so the select matches the inputs' height and padding. */
.form-group select,
.form-group select:focus {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  line-height: 1.25;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235c5248' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--brick); }
.field-hint { font-size: 0.78rem; color: var(--brick); margin-top: 5px; display: none; }
.form-group.has-error .field-hint { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-alert.success { background: rgba(60, 140, 89, 0.12); color: var(--forest-dark); }
.form-alert.error { background: rgba(170, 64, 64, 0.1); color: var(--brick-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(250, 246, 239, 0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; font-weight: 700; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---------- Sticky mobile call button ---------- */
.mobile-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(170, 64, 64, 0.4);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- New-visitor offer pop-up ---------- */
body.offer-open { overflow: hidden; }
.offer-modal {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: 0 24px 60px rgba(42, 36, 32, 0.32);
  overflow: auto;
  overscroll-behavior: contain;
}
.offer-modal::backdrop { background: rgba(42, 36, 32, 0.55); }
.offer-modal[open] { animation: offer-in 0.35s ease both; }
@keyframes offer-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.offer-band {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap; /* on a phone, "Flooring credit" drops under the amount */
  justify-content: center;
  gap: 4px 12px;
  padding: 28px 56px 24px;
  background: var(--charcoal);
  color: var(--cream);
  overflow: hidden;
}
/* The site's herringbone motif, faint, like a floor under the number. */
.offer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--herringbone-pattern);
  opacity: 0.2;
}
.offer-amount {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}
.offer-band-label {
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-alt);
}
.offer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(250, 246, 239, 0.14);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease;
}
.offer-close:hover { background: rgba(250, 246, 239, 0.28); }
.offer-close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.offer-form { padding: 24px 28px 20px; }
.offer-modal h2 { font-size: clamp(1.4rem, 3.6vw, 1.75rem); margin-bottom: 8px; text-wrap: balance; }
.offer-step-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-dark);
  margin-bottom: 10px;
}
.offer-lede { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 20px; }
.offer-modal .form-row { gap: 14px; }
.offer-modal .form-group { margin-bottom: 14px; }
.offer-modal textarea { min-height: 84px; }
.offer-actions { display: flex; gap: 12px; margin-top: 6px; }
.offer-actions .btn { flex: 1; }
.offer-error {
  padding: 10px 14px;
  border: 1px solid rgba(170, 64, 64, 0.3);
  border-radius: 10px;
  background: rgba(170, 64, 64, 0.07);
  color: var(--brick-dark);
  font-size: 0.88rem;
}
.offer-code-row { display: flex; gap: 12px; margin: 8px 0 18px; }
.offer-code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px dashed var(--forest);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  -webkit-user-select: all;
  user-select: all;
}
.offer-terms { margin: 14px 0 0; font-size: 0.75rem; color: var(--charcoal-soft); text-align: center; }
@media (max-width: 520px) {
  .offer-form { padding: 20px 18px 16px; }
  .offer-modal .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-modal[open] { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero .container,
  .why-us .container,
  .service-area .container,
  .contact .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; order: -1; }
  .why-visual { order: -1; min-height: 260px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-tile--large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .mobile-call { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-tile--large { grid-column: span 1; grid-row: span 1; }
  .gallery-caption { opacity: 1; transform: translateY(0); }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
