:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-wide: 1200px;
  --content-default: 960px;
  --font-display: "Sentient", Georgia, serif;
  --font-body: "Satoshi", "Inter", sans-serif;
  --navy: #062a4e;
  --navy-dark: #04192f;
  --navy-deep: #02111f;
  --red: #b51226;
  --gold: #d0a342;
  --green: #d0a342;
  --sky: #0b4f86;
  --sky-dark: #062a4e;
  --surface: #f8fafc;
  --surface-warm: #f2f0ea;
  --text: #0b1724;
  --muted: #5e6a75;
  --white: #ffffff;
  --shadow-lg: 0 18px 60px rgb(2 17 31 / 0.18);
  --shadow-md: 0 10px 30px rgb(2 17 31 / 0.14);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--navy);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
}

.site-header {
  background: linear-gradient(180deg, #062f58 0%, #0d7fa7 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.header-top {
  width: min(100% - 2rem, 1320px);
  min-height: 10.5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 10.5rem 1fr 13.5rem;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-2);
}

.brand-mark {
  width: clamp(7.5rem, 12vw, 10rem);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: var(--white);
  padding: var(--space-2);
  box-shadow: 0 16px 42px rgb(0 0 0 / 0.22);
  display: grid;
  place-items: center;
}

.brand-mark img {
  border-radius: var(--radius-full);
}

.header-center {
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.eyebrow {
  font-size: var(--text-lg);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
  line-height: 1.2;
}

.credential {
  font-size: var(--text-sm);
  font-weight: 700;
}

.rule {
  height: 1px;
  width: 100%;
  background: rgb(255 255 255 / 0.55);
  margin-block: var(--space-3) var(--space-2);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-4), 4vw, var(--space-12));
  font-size: var(--text-sm);
  font-weight: 800;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.95;
}

.main-nav a:hover {
  color: #bbf1ff;
}

.call-card {
  justify-self: end;
  display: grid;
  gap: var(--space-3);
  text-align: center;
  align-items: center;
  font-weight: 900;
}

.call-card span {
  font-size: var(--text-sm);
  line-height: 1.2;
}

.call-card a {
  background: linear-gradient(180deg, #d21a30 0%, #a70f21 100%);
  border: 2px solid rgb(255 255 255 / 0.8);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  line-height: 1;
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.18);
  white-space: nowrap;
}

.call-card a:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #e11f38 0%, #b51226 100%);
}

.service-hero {
  background: var(--navy-deep);
}

.hero-image-wrap {
  position: relative;
  min-height: clamp(28rem, 50vw, 38rem);
  overflow: hidden;
  border-top: 2px solid var(--navy-deep);
  border-bottom: 2px solid var(--navy-deep);
}

.hero-house {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(3 19 35 / 0.18), transparent 32%, rgb(3 19 35 / 0.16)),
    linear-gradient(180deg, transparent 60%, rgb(3 19 35 / 0.24));
  pointer-events: none;
}

.service-tag {
  --notch: 1.15rem;
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  min-width: clamp(12rem, 18vw, 17rem);
  padding: var(--space-2) var(--space-8);
  background: linear-gradient(180deg, #0b4f86 0%, #062a4e 100%);
  color: var(--white);
  border: 2px solid rgb(255 255 255 / 0.9);
  border-left-color: var(--gold);
  border-right-color: var(--gold);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%, var(--notch) 50%);
  box-shadow: 0 12px 24px rgb(2 17 31 / 0.3);
  font-size: var(--text-sm);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.24);
}

.service-tag:hover {
  background: linear-gradient(180deg, #b51226 0%, #7f0b19 100%);
  transform: translateY(-1px);
}

.tag-house {
  top: 55%;
  left: 18%;
}

.tag-gutter {
  top: 50%;
  left: 47%;
}

.tag-roof {
  top: 39%;
  right: 34%;
}

.tag-brick {
  top: 74%;
  left: 34%;
}

.tag-deck {
  top: 73%;
  right: 19%;
}

.tag-concrete {
  bottom: 6%;
  left: 56%;
}

.low-pressure-mark {
  position: absolute;
  z-index: 2;
  left: 10%;
  top: 17%;
  display: grid;
  place-items: center;
  width: clamp(9rem, 14vw, 13rem);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background:
    radial-gradient(circle at 50% 38%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.16) 58%, transparent 60%),
    linear-gradient(180deg, rgb(13 127 167 / 0.95), rgb(4 42 78 / 0.78));
  color: var(--white);
  font-weight: 900;
  text-align: center;
  line-height: 0.95;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.36);
  opacity: 0.94;
}

.low-pressure-mark span {
  font-size: var(--text-sm);
  color: #bbf1ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.low-pressure-mark strong {
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  max-width: 8ch;
}

.service-band {
  background: linear-gradient(90deg, #062a4e 0%, #0b4f86 50%, #b51226 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.service-band h1 {
  font-size: clamp(1.35rem, 2.3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}

.section-kicker {
  color: var(--sky-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: var(--space-5);
}

p + p {
  margin-top: var(--space-4);
}

.quote-panel {
  background:
    linear-gradient(140deg, rgb(6 42 78 / 0.98), rgb(4 25 47 / 0.98)),
    var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: var(--space-6);
}

.quote-panel h2 {
  color: var(--white);
  margin-bottom: var(--space-3);
}

.quote-panel__label {
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-2);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  font-weight: 900;
  font-size: var(--text-sm);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: #d3152d;
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.38);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 0.1);
}

.service-list {
  background: var(--surface-warm);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: var(--space-8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.services-grid article {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgb(2 17 31 / 0.08);
}

.services-grid h3 {
  font-size: var(--text-lg);
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.services-grid p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.mascot-section {
  background:
    linear-gradient(90deg, rgb(4 25 47 / 0.96), rgb(6 42 78 / 0.9)),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.mascot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}

.mascot-grid h2,
.mascot-grid .section-kicker {
  color: var(--white);
}

.mascot-grid .section-kicker {
  color: var(--gold);
}

.mascot-grid img {
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.34));
}

.service-areas {
  background: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.photos-placeholder {
  background: var(--surface-warm);
}

.photos-placeholder .container {
  max-width: var(--content-wide);
}

.photos-placeholder > .container > p:not(.section-kicker) {
  max-width: 48rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.results-grid figure {
  background: var(--white);
  border: 1px solid rgb(2 17 31 / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(2 17 31 / 0.08);
}

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

.results-grid figcaption {
  padding: var(--space-3) var(--space-4);
  color: var(--navy);
  font-weight: 900;
  font-size: var(--text-sm);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: var(--space-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.site-footer img {
  width: 5rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.site-footer a {
  display: block;
  color: #bbf1ff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .header-top {
    grid-template-columns: 7rem 1fr;
    gap: var(--space-4);
    padding-block: var(--space-4);
  }

  .call-card {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .intro-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-top {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .brand-mark {
    width: 7rem;
  }

  .main-nav {
    display: none;
  }

  .call-card {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    min-height: 34rem;
  }

  .hero-house {
    object-position: 47% center;
  }

  .service-tag {
    min-width: auto;
    width: min(10rem, 36vw);
    min-height: 2.1rem;
    padding-inline: var(--space-3);
    font-size: 0.64rem;
  }

  .tag-house {
    top: 57%;
    left: 5%;
  }

  .tag-gutter {
    top: 49%;
    left: auto;
    right: 1%;
  }

  .tag-roof {
    top: 28%;
    right: 4%;
  }

  .tag-brick {
    top: 73%;
    left: 5%;
  }

  .tag-deck {
    top: 66%;
    right: 1%;
  }

  .tag-concrete {
    bottom: 5%;
    left: 42%;
  }

  .low-pressure-mark {
    left: 9%;
    top: 11%;
    width: 7rem;
  }

  .services-grid,
  .results-grid,
  .mascot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mascot-grid img {
    max-width: 20rem;
    margin-inline: auto;
  }
}

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