/* Roofing landing page (/roof/ only). Loaded after home.css by
   templates/roof.mjs and scoped under .lp-roof, so it only adds what the
   homepage has no equivalent for: the drawn hero art, the service cards, the
   roof-type chips, the roof-to-ceiling chain, and the questions list. */

/* Hero: no photograph, text left, drawn roofline right */
.lp-roof .roof-hero {
  min-height: 640px;
  background: radial-gradient(ellipse at 75% 40%, #0f2c52 0%, #071a33 62%);
}
.lp-roof .roof-hero::after {
  display: none;
}
.lp-roof .roof-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}
.lp-roof .roof-art {
  width: 100%;
  height: auto;
}
.lp-roof .roof-art .rain line {
  stroke: #9fb8d4;
  stroke-width: 2;
  stroke-linecap: round;
}
.lp-roof .roof-art .rain-a {
  opacity: 0.35;
  animation: roof-rain 0.9s linear infinite;
}
.lp-roof .roof-art .rain-b {
  opacity: 0.2;
  animation: roof-rain 1.4s linear infinite;
}
.lp-roof .roof-art .ridge {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: roof-draw 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  filter: drop-shadow(0 0 14px rgba(227, 185, 84, 0.45));
}
@keyframes roof-rain {
  from { transform: translate(0, -60px); }
  to { transform: translate(-18px, 60px); }
}
@keyframes roof-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-roof .roof-art .rain-a,
  .lp-roof .roof-art .rain-b {
    animation: none;
  }
  .lp-roof .roof-art .ridge {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Services */
.lp-roof .roof-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.lp-roof .roof-services .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--lp-line);
  border-top: 3px solid var(--lp-accent);
  border-radius: var(--lp-radius);
  background: rgba(19, 51, 92, 0.35);
}
.lp-roof .roof-services h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.lp-roof .roof-services p {
  margin: 0;
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-roof .roof-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}
.lp-roof .roof-types .label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-roof .roof-types ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-roof .roof-types li {
  padding: 10px 22px;
  border: 1px solid var(--lp-accent);
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
}

/* Roof to ceiling */
.lp-roof .roof-inside {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.lp-roof .roof-chain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lp-roof .roof-chain li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--lp-line);
}
.lp-roof .roof-chain li:first-child {
  border-top: 0;
}
.lp-roof .roof-chain .n {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #071a33;
  background: var(--lp-accent);
}
.lp-roof .roof-chain strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
  color: #ffffff;
}
.lp-roof .roof-chain li > span:last-child {
  color: var(--lp-muted);
  line-height: 1.5;
}

/* Questions */
.lp-roof .roof-faq {
  max-width: 880px;
}
.lp-roof .roof-faq h2 {
  margin-bottom: 32px;
}
.lp-roof .roof-faq details {
  border-top: 1px solid var(--lp-line);
}
.lp-roof .roof-faq details:last-of-type {
  border-bottom: 1px solid var(--lp-line);
}
.lp-roof .roof-faq summary {
  cursor: pointer;
  padding: 22px 36px 22px 0;
  position: relative;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}
.lp-roof .roof-faq summary::-webkit-details-marker {
  display: none;
}
.lp-roof .roof-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--lp-accent);
}
.lp-roof .roof-faq details[open] summary::after {
  content: "\2212";
}
.lp-roof .roof-faq details p {
  margin: 0;
  padding: 0 0 24px;
  line-height: 1.6;
  color: var(--lp-muted);
}

@media (max-width: 1020px) {
  .lp-roof .roof-hero .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lp-roof .roof-art {
    max-width: 440px;
    justify-self: center;
  }
  .lp-roof .roof-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-roof .roof-inside {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .lp-roof .roof-hero {
    min-height: 0;
  }
  .lp-roof .roof-art {
    max-width: 260px;
  }
  .lp-roof .roof-services {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .lp-roof .roof-services .card {
    padding: 24px;
  }
}

/* Roof guides under the questions */
.lp-roof .roof-guides {
  margin-top: 48px;
}
.lp-roof .roof-guides h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 12px;
}
.lp-roof .roof-guides ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-roof .roof-guides li {
  padding: 10px 0;
}
.lp-roof .roof-guides a {
  font-weight: 600;
  line-height: 1.45;
}
