/* ==========================================================================
   YOURNAME Roofing: "Stormproof" demo
   --------------------------------------------------------------------------
   ✏️ To rebrand: change the colours and fonts in section 1.
   Contents: 1 Settings · 2 Base · 3 Buttons & labels · 4 Header · 5 Hero ·
   6 Sections · 7 Services · 8 Before & after · 9 Why us · 10 Our work ·
   11 Reviews · 12 FAQ · 13 Contact · 14 Footer & call bar · 15 Motion
   ========================================================================== */

/* 1. Settings
   ========================================================================== */
:root {
  --slate-950: #0c1013;
  --slate-900: #11171b;
  --slate-800: #182026;
  --slate-700: #243037;
  --slate-500: #4b5a62;
  --rain: #e9eef0;
  --muted: #a3afb4;
  --copper: #d07a3f;
  --copper-light: #e8955a;
  --copper-deep: #b5652f;
  --line: rgba(233, 238, 240, 0.1);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --topper-h: 104px;
  --pitch: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --pitch: 64px;
  }
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topper-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rain);
  background: var(--slate-950);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--copper-light);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--slate-950);
  background: var(--copper-light);
}

.skip-link:focus { top: 12px; }

/* 3. Buttons & labels
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 1.05rem; }

.btn-copper { color: var(--slate-950); background: var(--copper); }
.btn-copper:hover { background: var(--copper-light); }

.btn-ghost { color: var(--rain); border-color: rgba(233, 238, 240, 0.4); }
.btn-ghost:hover { border-color: var(--rain); background: rgba(233, 238, 240, 0.08); }

.btn-dark { color: var(--rain); background: var(--slate-950); }
.btn-dark:hover { background: var(--slate-800); }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.kicker-dark { color: var(--slate-950); }

/* 4. Header
   ========================================================================== */
.topper {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

.emergency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px var(--gutter);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--slate-950);
  background: var(--copper);
}

.emergency-bar a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.pulse {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-950);
  animation: pulse 1.8s ease-out infinite;
}

.site-header {
  height: 68px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.is-scrolled .site-header,
.menu-open .site-header {
  background: rgba(12, 16, 19, 0.95);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-mark path + path { stroke: var(--rain); }

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--copper-light);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 22px; }

.nav ul a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.nav ul a:hover { color: var(--rain); }
.nav-cta { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.menu-btn { display: none; }

@media (max-width: 1023.98px) {
  .menu-btn {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 10px;
  }

  .menu-btn span {
    display: block;
    height: 2px;
    background: var(--rain);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 8px var(--gutter) 28px;
    background: var(--slate-950);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }

  .nav ul { flex-direction: column; gap: 0; }

  .nav ul a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rain);
    border-bottom: 1px solid var(--line);
  }

  .nav-cta { min-height: 52px; }
}

/* 5. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(640px, 100vh, 980px);
  min-height: clamp(640px, 100svh, 980px);
  padding-top: calc(var(--topper-h) + 40px);
  padding-bottom: var(--pitch); /* room for the roof-peak edge of the next section */
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
  animation: settle 12s var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 16, 19, 0.75) 0%, rgba(12, 16, 19, 0) 22%),
    linear-gradient(90deg, rgba(12, 16, 19, 0.92) 0%, rgba(12, 16, 19, 0.7) 40%, rgba(12, 16, 19, 0.15) 75%),
    linear-gradient(0deg, rgba(12, 16, 19, 0.95) 0%, rgba(12, 16, 19, 0) 45%);
}

/* Gentle falling rain */
.hero-rain {
  position: absolute;
  inset: -20% 0 0;
  z-index: -1;
  background-image: repeating-linear-gradient(104deg, transparent 0 34px, rgba(233, 238, 240, 0.07) 34px 35px, transparent 35px 70px);
  background-size: 240px 240px;
  animation: rain 1.4s linear infinite;
  opacity: 0.8;
  pointer-events: none;
}

.hero-inner { padding-bottom: 48px; }

.hero-title {
  max-width: 11ch;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1.6rem + 8vw, 7.6rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero-title span { color: var(--copper-light); }

/* Keeps the small label readable over the bright sunset */
.hero .kicker { text-shadow: 0 1px 12px rgba(10, 14, 16, 0.9), 0 0 2px rgba(10, 14, 16, 0.8); }

.hero-lead {
  max-width: 34rem;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  color: rgba(233, 238, 240, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  border-top: 1px solid var(--line);
  background: rgba(12, 16, 19, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding-block: 18px;
}

.trust-list li { display: flex; flex-direction: column; }

.trust-list strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--copper-light);
}

.trust-list span { font-size: 0.85rem; color: var(--muted); }

@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 22px; }
}

@media (max-width: 519.98px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* 6. Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
}

.section-dark { background: var(--slate-900); }

/* Slate-course texture */
.section-slates {
  background-color: var(--slate-950);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='56'%3E%3Cpath d='M0 27.5h64M0 55.5h64M16 0v28M48 28v28' stroke='%23e9eef0' stroke-opacity='0.035' fill='none'/%3E%3C/svg%3E");
}

.section-copper {
  color: var(--slate-950);
  background: var(--copper);
}

/* Roof-pitch top edge */
.pitch {
  margin-top: calc(var(--pitch) * -1);
  padding-top: calc(clamp(80px, 10vw, 128px) + var(--pitch));
  clip-path: polygon(0 var(--pitch), 50% 0, 100% var(--pitch), 100% 100%, 0 100%);
}

.section-head { max-width: 760px; margin-bottom: 52px; }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  max-width: none;
}

.section-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-title span { color: var(--copper-light); }
.section-copper .section-title span { color: var(--rain); }

.section-lead {
  max-width: 40rem;
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--muted);
}

.section-copper .section-lead { color: rgba(12, 16, 19, 0.82); }
.section-lead a { font-weight: 700; color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }

/* 7. Services
   ========================================================================== */
.services {
  display: grid;
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--slate-800);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.service:hover { border-color: rgba(208, 122, 63, 0.6); }

.service-img { aspect-ratio: 4 / 3; overflow: hidden; }

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service:hover .service-img img { transform: scale(1.05); }

.service-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}

.service-num {
  position: absolute;
  top: -22px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--slate-950);
  background: var(--copper);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.service p { margin-top: 10px; color: var(--muted); }

.service-price {
  margin-top: auto !important;
  padding-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.service-price strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--rain);
}

.service-body p:nth-last-child(2) { margin-bottom: 18px; }
.service-urgent { border-color: rgba(208, 122, 63, 0.5); }

.services-note {
  margin-top: 28px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* 8. Before & after
   ========================================================================== */
.ba {
  display: grid;
  gap: 40px;
  align-items: center;
}

.ticks { display: grid; gap: 10px; margin-top: 24px; font-weight: 600; }

.ticks li { display: flex; gap: 12px; align-items: flex-start; }

.ticks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--slate-950) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23e8955a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-900);
  box-shadow: 0 40px 80px -30px rgba(12, 16, 19, 0.7);
  user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rain);
  background: rgba(12, 16, 19, 0.75);
}

.compare-tag-before { left: 16px; }
.compare-tag-after { right: 16px; color: var(--slate-950); background: var(--copper-light); }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--rain);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  padding: 13px;
  fill: none;
  stroke: var(--slate-950);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--rain);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(12, 16, 19, 0.4);
  transform: translate(-50%, -50%);
}

/* The real control: an invisible slider covering the whole image */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.compare:focus-within .compare-handle svg { outline: 3px solid var(--slate-950); outline-offset: 3px; }

@media (min-width: 960px) {
  .ba { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
}

/* 9. Why us
   ========================================================================== */
.why { display: grid; gap: 48px; }

.why-photo { position: relative; }

.why-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.why-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  font-weight: 600;
  background: rgba(12, 16, 19, 0.85);
  border-left: 4px solid var(--copper);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--copper-light);
}

.stats span { font-size: 0.85rem; color: var(--muted); }

.reasons { display: grid; gap: 22px; margin-top: 32px; }

.reasons li { display: flex; gap: 16px; }

.reasons svg {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 1px solid rgba(208, 122, 63, 0.4);
}

.reasons h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.reasons p { margin-top: 4px; color: var(--muted); }

.steps {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--slate-800);
  border: 1px solid var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--slate-950);
  background: var(--copper);
}

.steps strong { display: block; }
.steps small { color: var(--muted); }

@media (min-width: 640px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .why { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .why-photo { position: sticky; top: calc(var(--topper-h) + 24px); }
}

/* 10. Our work
   ========================================================================== */
.gallery { display: grid; gap: 16px; }

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: left;
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-btn:hover img { transform: scale(1.04); }

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(12, 16, 19, 0.9), transparent);
}

.gallery-cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-cap small { color: var(--copper-light); font-weight: 600; }

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 280px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-btn img { aspect-ratio: auto; }
}

.lightbox {
  width: min(1100px, calc(100% - 24px));
  max-height: 92vh;
  padding: 0;
  color: var(--rain);
  background: var(--slate-950);
  border: 1px solid var(--line);
}

.lightbox::backdrop { background: rgba(12, 16, 19, 0.88); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-cap { padding: 14px 18px; font-weight: 600; }

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(12, 16, 19, 0.8);
}

.lightbox-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 11. Reviews
   ========================================================================== */
.reviews { display: grid; gap: 20px; }

.review {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--slate-800);
  border-top: 4px solid var(--copper);
}

.stars { font-size: 1.1rem; letter-spacing: 0.15em; color: var(--copper-light); }

.review blockquote { margin: 16px 0 22px; font-size: 1.05rem; }

.review figcaption {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.review figcaption strong { display: block; }
.review figcaption span { font-size: 0.88rem; color: var(--muted); }

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* 12. FAQ
   ========================================================================== */
.faq { display: grid; gap: 40px; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  font-size: 2rem;
  color: var(--copper-light);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); }

@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
}

/* 13. Contact
   ========================================================================== */
.contact { display: grid; gap: 40px; align-items: start; }

.contact-cards { display: grid; gap: 10px; margin-top: 28px; }

.contact-cards a {
  display: block;
  padding: 14px 18px;
  background: rgba(12, 16, 19, 0.1);
  border-left: 4px solid var(--slate-950);
  transition: background-color 0.2s;
}

.contact-cards a:hover { background: rgba(12, 16, 19, 0.2); }
.contact-cards small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.contact-cards strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.form-card {
  padding: 30px 22px;
  color: var(--rain);
  background: var(--slate-950);
  box-shadow: 0 40px 80px -30px rgba(12, 16, 19, 0.7);
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.form-grid { display: grid; gap: 16px; margin-top: 24px; }

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  color: var(--rain);
  background: var(--slate-800);
  border: 1px solid rgba(233, 238, 240, 0.18);
  border-radius: 0;
}

.field select option { color: #11171b; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper-light);
  box-shadow: 0 0 0 3px rgba(232, 149, 90, 0.25);
}

.field.has-error input { border-color: #ff8a80; }
.field-error { display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: #ff9d94; }

.chips { margin: 0; padding: 0; border: 0; }
.chips label { position: relative; display: inline-block; margin: 0 6px 8px 0; }

/* The real radio button is hidden; the styled chip shows instead */
.chips input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(233, 238, 240, 0.25);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chips input:checked + span { color: var(--slate-950); background: var(--copper-light); border-color: var(--copper-light); }
.chips input:focus-visible + span { outline: 3px solid var(--copper-light); outline-offset: 2px; }

.form-submit { width: 100%; margin-top: 22px; background: var(--copper); color: var(--slate-950); }
.form-submit:hover { background: var(--copper-light); }
.form-note { margin-top: 12px; font-size: 0.85rem; text-align: center; color: var(--muted); }

.form-success { padding: 30px 6px; text-align: center; }
.form-success:focus { outline: none; }

.form-success svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success p { margin-top: 10px; color: var(--muted); }
.form-success a { color: var(--copper-light); font-weight: 700; }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
  .form-card { padding: 38px 34px; }
}

@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
}

/* 14. Footer & call bar
   ========================================================================== */
.site-footer {
  padding: 64px 0 96px;
  background: var(--slate-950);
  border-top: 1px solid var(--line);
}

.footer-grid { display: grid; gap: 32px; }
.footer-about, .footer-text { margin-top: 14px; max-width: 24rem; color: var(--muted); }

.footer-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.footer-links { display: grid; gap: 8px; margin-top: 14px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--rain); }

.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--slate-950);
  border-top: 1px solid var(--line);
}

.call-bar a {
  display: grid;
  place-items: center;
  min-height: 56px;
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.call-bar .call-bar-main { color: var(--slate-950); background: var(--copper); border: 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer { padding-bottom: 32px; }
  .call-bar { display: none; }
}

@media (max-width: 519.98px) {
  :root { --topper-h: 124px; }
  .emergency-bar { flex-wrap: wrap; row-gap: 0; font-size: 0.8rem; }
}

/* 15. Motion
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

.hero-inner > * { animation: rise 0.9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rain { from { background-position: 0 0; } to { background-position: -60px 240px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12, 16, 19, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(12, 16, 19, 0); } }

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