/* ==========================================================================
   Home Sweet Home Roofing Solutions
   Royal blue and red sampled from the logo (blue #1858a8, red #d82828, on
   cream), set on a deep navy base. Mobile-first, breakpoints 480 / 768 / 1024.
   ========================================================================== */

:root {
  /* Brand (logo colours) */
  --blue: #1b56a6;
  --blue-deep: #164789;
  --blue-light: #3a74c4;
  --red: #d42a2a;
  --red-light: #e5544b;
  --red-deep: #a51f1f;
  --red-soft: #ff8a80;
  --red-glow: #ffd2cd;

  /* Supporting tones */
  --navy: #0b1630;
  --navy-2: #102044;
  --navy-3: #182c58;
  --cream: #faf6ee;
  --cream-2: #f1ebdf;
  --sand: #e3dccd;
  --white: #ffffff;
  --text: #15192a;
  --text-muted: #4e5366;
  --text-on-dark: #eef1f8;
  --text-on-dark-muted: #b7bfd3;
  --line: #d9d1c1;
  --line-dark: rgba(255, 255, 255, 0.14);
  --input-border: #9b9585;
  --success: #24683c;
  --error: #b3261e;

  /* RGB channels for overlays and glows */
  --navy-rgb: 11, 22, 48;
  --red-rgb: 212, 42, 42;
  --white-rgb: 255, 255, 255;

  /* Typography */
  --font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.94rem;
  --fs-h1: clamp(2.05rem, 1.35rem + 3.3vw, 3.7rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.9vw, 2.7rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.1rem, 1.03rem + 0.35vw, 1.25rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(4rem, 3rem + 4vw, 6.5rem);
  --container-max: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-height: 80px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-photo: 0 18px 40px rgba(var(--navy-rgb), 0.22);
  --shadow-nav: 0 2px 18px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 16px rgba(var(--navy-rgb), 0.06), 0 1px 3px rgba(var(--navy-rgb), 0.04), inset 0 1px 0 rgba(var(--white-rgb), 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--navy-rgb), 0.14), 0 10px 20px rgba(var(--navy-rgb), 0.08);
  --shadow-btn: 0 4px 15px rgba(var(--red-rgb), 0.3), inset 0 1px 0 rgba(var(--white-rgb), 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--red-rgb), 0.45), inset 0 1px 0 rgba(var(--white-rgb), 0.35);
  --shadow-btn-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --focus-ring: 0 0 0 3px rgba(27, 86, 166, 0.3);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  /* Keeps focused fields clear of the chat button fixed to the bottom */
  scroll-padding-bottom: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

a {
  color: var(--blue);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-deep);
}

/* Phone numbers never break across lines */
a[href^="tel:"] {
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--red-soft);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.section {
  padding-block: var(--section-pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 400;
  padding: var(--space-sm) var(--space-md);
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-light) 0%, var(--red) 50%, var(--red-deep) 100%);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-3px);
}

.btn-primary:active {
  box-shadow: var(--shadow-btn-pressed);
  transform: translateY(0);
}

/* Inverted, dark variant */
.btn-dark {
  color: var(--text-on-dark);
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 50%, var(--navy) 100%);
  box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.25), inset 0 1px 0 rgba(var(--white-rgb), 0.14);
}

.btn-dark:hover {
  color: var(--white);
  box-shadow: 0 12px 30px rgba(var(--navy-rgb), 0.35), inset 0 1px 0 rgba(var(--white-rgb), 0.14);
  transform: translateY(-3px);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.9rem;
  font-size: 1.12rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.text-link {
  display: inline-block;
  padding-block: 0.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--blue);
}

.text-link--light {
  color: var(--white);
  text-decoration-color: var(--red-soft);
}

.text-link--light:hover {
  color: var(--red-glow);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(var(--navy-rgb), 0.8), rgba(var(--navy-rgb), 0));
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.menu-open,
.site-header--solid {
  background: var(--navy);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.logo {
  display: block;
  padding-block: 0.3rem;
}

.logo-img {
  width: auto;
  height: 64px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Solid panel on mobile, never see-through */
.nav-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  display: none;
  padding: var(--space-md) var(--gutter) var(--space-lg);
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
}

.nav-menu.open {
  display: block;
}

.nav-links a {
  display: block;
  position: relative;
  padding-block: 0.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--red-soft);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--white);
}

.btn-nav {
  width: 100%;
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--white);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-links a::after {
    bottom: 6px;
  }

  .btn-nav {
    width: auto;
    margin: 0;
    padding: 0.7rem 1.6rem;
  }

  .site-header {
    --nav-height: 88px;
  }

  .logo-img {
    height: 78px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 880px);
  padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl);
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--navy);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  overflow: hidden;
}

.hero-bg picture,
.cta-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}

/* Phones: the copy sits over the whole photo, so the shade is even and
   heavier low down */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.6) 0%, rgba(var(--navy-rgb), 0) 24%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.35) 0%, rgba(var(--navy-rgb), 0.62) 45%, rgba(var(--navy-rgb), 0.86) 100%);
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: end;
}

.hero-content {
  max-width: 660px;
}

.hero-title {
  font-size: var(--fs-h1);
  color: var(--white);
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--red-soft);
}

.hero-line {
  display: block;
}

.highlight {
  color: var(--red-soft);
}

.hero-text {
  max-width: 34em;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

.hero-title,
.hero-text {
  text-shadow: 0 2px 20px rgba(var(--navy-rgb), 0.5);
}

.hero .highlight {
  text-shadow: none;
}

/* One real recommendation in a glass panel */
.hero-quote {
  max-width: 380px;
  padding: var(--space-lg);
  background: rgba(var(--navy-rgb), 0.45);
  border: 1px solid rgba(var(--white-rgb), 0.16);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}

.hero-quote figcaption {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

@media (min-width: 768px) {
  .hero-bg img {
    object-position: 60% 55%;
  }

  /* Left-weighted shade: copy on the left, new ridge bright on the right */
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(var(--navy-rgb), 0.55) 0%, rgba(var(--navy-rgb), 0) 20%),
      linear-gradient(90deg, rgba(var(--navy-rgb), 0.88) 0%, rgba(var(--navy-rgb), 0.74) 36%, rgba(var(--navy-rgb), 0.32) 62%, rgba(var(--navy-rgb), 0.12) 85%);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-3xl);
  }

  .hero-quote {
    margin-bottom: var(--space-sm);
  }
}

/* ==========================================================================
   Marquee and service area strip
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: 0.85rem;
  background: var(--navy-2);
  border-top: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-on-dark);
}

.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.5rem;
  background: var(--red-soft);
  border-radius: 50%;
}

.area-strip {
  padding-block: var(--space-md);
  color: var(--white);
  background: var(--blue);
}

.area-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.area-strip p {
  font-weight: 600;
}

.area-hours {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .area-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   Services: sticky intro, list with rules
   ========================================================================== */

.services-grid {
  display: grid;
  gap: var(--space-2xl);
}

.services-intro p {
  max-width: 30em;
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.services-intro .text-link {
  margin-top: var(--space-md);
}

.service-list {
  border-top: 2px solid var(--text);
}

.service {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-top: 0.1rem;
  color: var(--blue);
}

.service p {
  max-width: 38em;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.service .service-note {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--red-deep);
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .service {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-lg);
    padding-block: var(--space-xl);
  }
}

/* ==========================================================================
   Recent jobs: photo tiles with lightbox
   ========================================================================== */

.work {
  background: var(--cream-2);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.work-head {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.work-head p {
  max-width: 34em;
  margin-top: var(--space-sm);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.tile {
  position: relative;
  min-width: 0;
}

.tile--tall {
  grid-row: span 2;
}

.tile--wide {
  grid-column: span 2;
}

.media-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  background: var(--sand);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.media-zoom picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-zoom-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(var(--navy-rgb), 0);
  opacity: 0;
  transition: opacity var(--transition-base), background var(--transition-base);
}

.media-zoom-icon svg {
  width: 44px;
  height: 44px;
  transform: scale(0.8);
  transition: transform var(--transition-base);
}

.media-zoom:hover .media-zoom-icon,
.media-zoom:focus-visible .media-zoom-icon {
  background: rgba(var(--navy-rgb), 0.4);
  opacity: 1;
}

.media-zoom:hover .media-zoom-icon svg,
.media-zoom:focus-visible .media-zoom-icon svg {
  transform: scale(1);
}

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem var(--space-md) var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  background: linear-gradient(180deg, rgba(var(--navy-rgb), 0), rgba(var(--navy-rgb), 0.85));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  pointer-events: none;
}

@media (min-width: 768px) {
  .work-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
}

/* ==========================================================================
   Proof band
   ========================================================================== */

.proof {
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(27, 86, 166, 0.35), transparent 70%),
    var(--navy);
}

.proof-top {
  display: grid;
  gap: var(--space-xl);
}

.proof-title {
  font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.4rem);
  color: var(--white);
}

.proof-title > span {
  display: block;
}

.proof-accent {
  color: var(--red-soft);
}

.proof-note {
  max-width: 36em;
  padding-left: var(--space-lg);
  font-size: var(--fs-lead);
  border-left: 3px solid var(--red);
}

.facts {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line-dark);
}

.fact dt {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.counter {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
}

.fact dd {
  margin: 0.3rem 0 0;
  color: var(--text-on-dark-muted);
}

.fact dd a {
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .proof-note {
    margin-left: auto;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  gap: var(--space-2xl);
}

.about-photos {
  position: relative;
  padding-bottom: 4rem;
}

.about-photo-main {
  aspect-ratio: 11 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-photo);
}

.about-photo-main picture {
  display: block;
  height: 100%;
}

.about-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The full-colour logo on a cream card, tucked under the photo */
.about-badge {
  position: absolute;
  right: var(--space-md);
  bottom: 0;
  width: clamp(120px, 28%, 170px);
  padding: var(--space-md);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-photo);
}

.about-badge img {
  width: 100%;
}

.about-copy p {
  max-width: 36em;
  margin-top: var(--space-md);
  color: var(--text-muted);
}

.about-copy .about-lead {
  font-size: var(--fs-lead);
  color: var(--text);
}

.about-copy .btn {
  margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: center;
  }
}

/* ==========================================================================
   Reviews (Facebook recommendations: no star ratings exist, so none shown)
   ========================================================================== */

.reviews {
  background: var(--cream-2);
}

.reviews-head p {
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

.recommends {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--blue-deep);
}

.recommends svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.review-featured {
  max-width: 920px;
  padding-block: var(--space-xl) var(--space-2xl);
}

.review-featured p {
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.38;
}

.review-featured figcaption {
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--text-muted);
}

.review-list {
  display: grid;
  gap: 0 var(--space-2xl);
  border-top: 1px solid var(--line);
}

.review {
  padding: var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.review blockquote {
  margin-top: var(--space-xs);
}

.review-source {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-more {
  margin-top: var(--space-lg);
}

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

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--navy);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--navy-rgb), 0.94) 0%, rgba(var(--navy-rgb), 0.82) 55%, rgba(var(--navy-rgb), 0.55) 100%);
}

.cta-inner {
  position: relative;
}

.cta h2 {
  max-width: 17em;
  color: var(--white);
}

.cta h2 span {
  display: block;
}

.cta-accent {
  color: var(--red-soft);
}

.cta p {
  max-width: 34em;
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-info > p {
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.contact-list {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.contact-item dd {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--text-muted);
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.form-panel {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-fields {
  display: grid;
  gap: var(--space-md);
}

.form-fields[hidden] {
  display: none;
}

.form-row {
  display: grid;
  gap: var(--space-md);
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: var(--focus-ring);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}

.form-privacy {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-success h3 {
  color: var(--success);
}

.form-success p {
  margin-top: var(--space-xs);
}

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

@media (min-width: 768px) {
  .form-panel {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-3xl) var(--space-lg);
  color: var(--text-on-dark-muted);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

.footer-brand img {
  width: auto;
  height: 110px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: var(--space-md);
}

.site-footer h2 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
  color: var(--white);
}

.site-footer li {
  padding-block: 0.1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.55rem;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast), transform 0.3s ease;
}

.site-footer a:hover {
  color: var(--red-soft);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.site-footer .social-link {
  display: inline-grid;
  margin-top: var(--space-md);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer .social-link:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: var(--fs-small);
}

.footer-bottom p {
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-dark);
}

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

/* ==========================================================================
   Privacy page
   ========================================================================== */

.legal {
  max-width: 760px;
  padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--section-pad);
}

.legal h1 {
  font-size: var(--fs-h2);
}

.legal h2 {
  margin-top: var(--space-xl);
  font-size: 1.35rem;
}

.legal p,
.legal ul {
  margin-top: var(--space-sm);
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal-updated {
  color: var(--text-muted);
}

.site-footer--slim {
  padding-top: var(--space-md);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-md) 5rem;
  background: rgba(6, 12, 26, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Visible at once, so focus can move into the dialog as it opens */
  transition: opacity 0.4s ease, visibility 0s;
}

.lightbox-figure {
  max-width: min(1100px, 100%);
}

.lightbox-media img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin-inline: auto;
  background: var(--navy);
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin-top: var(--space-sm);
  text-align: center;
  color: var(--text-on-dark);
}

.lightbox-count {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(var(--navy-rgb), 0.9);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox-prev,
.lightbox-next {
  bottom: var(--space-md);
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

@media (min-width: 768px) {
  .lightbox {
    padding: var(--space-2xl) 5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   Animations (motion is opt-in)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals: hidden only when JS is there to show them again */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .service-list .service:nth-child(2n) { transition-delay: 0.1s; }

  .work-grid .tile:nth-child(4n + 2) { transition-delay: 0.1s; }
  .work-grid .tile:nth-child(4n + 3) { transition-delay: 0.2s; }
  .work-grid .tile:nth-child(4n) { transition-delay: 0.3s; }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 8s linear infinite;
  }

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-out) 0.2s both;
  }

  .hero .highlight {
    color: transparent;
    background: linear-gradient(100deg, var(--red-soft) 0%, var(--red-soft) 35%, var(--red-glow) 50%, var(--red-soft) 65%, var(--red-soft) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s 1 both;
  }

  .hero-quote {
    animation: slide-down 0.8s var(--ease-out) 0.6s both;
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  /* Service icons pop in as each row reveals */
  .js .service.fade-in .service-icon {
    transform: scale(0);
  }

  .js .service.fade-in.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-out) 0.3s both;
  }

  /* Recommendation checkmarks (Facebook has no stars, so the check pops instead) */
  .js .fade-in:not(.visible) .recommends svg {
    opacity: 0;
  }

  .js .fade-in.visible .recommends svg {
    animation: star-pop 0.3s var(--ease-out) 0.2s both;
  }

  /* Reviews */
  .review-list .review:nth-child(2n) {
    transition-delay: 0.15s;
  }

  .js .review.fade-in.visible {
    transition: opacity 1.2s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  }

  .js .review.fade-in.visible:hover {
    background-color: var(--white);
    border-bottom-color: var(--blue);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  /* Warranty counter */
  .js .proof-title:not(.visible) .counter {
    opacity: 0;
  }

  .js .proof-title.visible .counter {
    animation: pop-in 0.6s var(--ease-out) both;
  }

  .js .proof-title.visible .counter.stat-bounce {
    animation: stat-bounce 0.9s ease;
  }

  /* Job photos: lift and zoom */
  .media-zoom {
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  }

  .media-zoom:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  .media-zoom img {
    transition: transform var(--transition-slow);
  }

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

  /* Form panel lift */
  .form-panel.visible:hover {
    border-color: var(--line);
    border-top-color: var(--red);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-10px);
    transition: opacity 1.2s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s ease;
  }

  /* Micro-interactions */
  .contact-item:hover {
    transform: translateX(8px);
  }

  .site-footer a:not(.social-link):hover {
    transform: translateX(4px);
  }

  .js .about-photos:not(.visible) .about-photo-main img {
    transform: scale(1.15);
  }

  .js .about-photos.visible .about-photo-main img {
    animation: about-zoom 12s linear both;
  }

  .lightbox-media .zoom {
    animation: lightbox-zoom 0.4s var(--ease-out);
  }

  @media (min-width: 768px) {
    .marquee-track {
      animation-duration: 12s;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .media-zoom img {
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
  }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hero-zoom-out {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gold-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes stat-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-10px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(var(--red-rgb), 0.2), inset 0 1px 0 rgba(var(--white-rgb), 0.35); }
  50% { box-shadow: 0 8px 40px rgba(var(--red-rgb), 0.45), inset 0 1px 0 rgba(var(--white-rgb), 0.35); }
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(var(--red-rgb), 0.25), inset 0 1px 0 rgba(var(--white-rgb), 0.35); }
  50% { box-shadow: 0 4px 24px rgba(var(--red-rgb), 0.55), inset 0 1px 0 rgba(var(--white-rgb), 0.35); }
}

@keyframes icon-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes star-pop {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  70% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes about-zoom {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes lightbox-zoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .marquee,
  .lightbox,
  #cc-chat-toggle,
  #cc-chat-panel {
    display: none;
  }
}
