/* ==========================================================================
   RAINLINE GUTTER CARE
   Wet night: ink blue-black ground, cool bone type, one rainwater aqua doing
   every action. Full-bleed hero over a blocked gutter, static trust strip,
   service carousel, reviews, glow cards, FAQ, contact form.
   ========================================================================== */

:root {
  --background: #0B141C;
  --card: #13202B;
  --foreground: #E7EFF4;
  --primary-cta: #5AD3C4;
  --primary-cta-text: #04241F;
  --secondary-cta: #1D2E3B;
  --secondary-cta-text: #E7EFF4;
  --accent: #5AD3C4;
  --background-accent: #1E7F80;
  --radius: 0.75rem;
  --content-width: 87.5vw;
  --section-head-size: var(--text-6xl);
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: var(--font-body);
}

@media (width >= 1536px) {
  :root { --section-head-size: var(--text-7xl); }
}

/* On a dark ground the card gradient needs more body to read as a surface. */
.card {
  background: linear-gradient(
    to bottom right,
    color-mix(in srgb, var(--card) 95%, transparent),
    color-mix(in srgb, var(--card) 65%, transparent)
  );
  border-color: color-mix(in srgb, var(--foreground) 10%, transparent);
}

.section-head h2 {
  background: linear-gradient(100deg, var(--foreground) 40%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 42rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 5rem;
}

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

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11, 20, 28, 0.58) 0%, rgba(11, 20, 28, 0.90) 72%),
    linear-gradient(to top, var(--background) 2%, transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.hero__title {
  max-width: 30ch; /* the headline sits on one line at desktop */
  font-size: var(--text-8xl);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 52ch;
  font-size: var(--text-xl);
  line-height: 1.45;
  color: color-mix(in srgb, var(--foreground) 85%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero .avatar-stack { justify-content: center; }
.hero .avatar-stack__row img { border-color: rgba(255, 255, 255, 0.35); }
.hero .avatar-stack p { font-size: var(--text-base); font-weight: 600; }

/* Trust strip pinned to the bottom of the hero. The template scrolled this;
   it sits still here and wraps onto a second line on narrow screens. */
.hero__trust {
  position: absolute;
  z-index: 2;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding-inline: 6vw;
}

.hero__trust .trust-pill {
  border: 1px solid color-mix(in srgb, var(--foreground) 14%, transparent);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (width <= 768px) {
  .hero { margin-bottom: 3rem; }
  .hero__title { font-size: var(--text-7xl); max-width: 16ch; }
  /* Pinned to the bottom, a wrapped strip climbs over the hero copy, so on a
     phone it comes out of the flow and sits under the hero instead. */
  .hero__trust { position: static; margin-top: 2rem; padding-inline: 0; }
}

/* --- Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.contact-panel h2 {
  font-size: var(--text-6xl);
  line-height: 1.1;
}

.contact-panel > p {
  max-width: 34ch;
  font-size: var(--text-lg);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.contact-grid__media {
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-grid__media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

@media (width <= 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { padding: 1.5rem; }
  .contact-grid__media img { min-height: 16rem; }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--card);
  color: var(--foreground);
  padding-block: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }

.footer-nav h3 {
  font-size: var(--text-base);
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--text-lg); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent);
  font-size: var(--text-base);
  opacity: 0.6;
}

.footer-legal-bar div { display: flex; gap: 1.25rem; }

@media (width <= 768px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

/* Hero legibility pass 2026-09-21: the headline faded into teal over the
   brightest part of the photo. It stays one solid colour, and the centre of
   the scrim is a touch darker. */
.hero__title.grad-head { background: none; color: var(--foreground); }
.hero::after {
  background:
    radial-gradient(ellipse at center, rgba(11, 20, 28, 0.7) 0%, rgba(11, 20, 28, 0.92) 72%),
    linear-gradient(to top, var(--background) 2%, transparent 40%);
}
