:root {
  --navy: #073858;
  --navy-deep: #04263d;
  --steel: #4e565c;
  --muted: #65727b;
  --orange: #ff741f;
  --orange-dark: #d95813;
  --paper: #f7f8f7;
  --white: #ffffff;
  --line: rgba(7, 56, 88, 0.16);
  --shadow: 0 24px 70px rgba(4, 38, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy-deep);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 38, 61, 0.28), rgba(7, 56, 88, 0.18)),
    rgba(4, 38, 61, 0.18);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 38, 61, 0.32), rgba(7, 56, 88, 0.22)),
    rgba(4, 38, 61, 0.22);
  box-shadow: 0 16px 50px rgba(4, 38, 61, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  width: 206px;
  min-width: 150px;
  padding: 2px 0;
  border-radius: 8px;
}

.brand img {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.92;
}

.nav-action {
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 800;
  color: var(--white);
  background: var(--orange);
  white-space: nowrap;
}

.language-toggle {
  margin-left: 18px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: start;
  overflow: hidden;
  background: var(--navy-deep);
  scroll-margin-top: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -54px;
  height: 118px;
  background: var(--orange);
  clip-path: polygon(0 42%, 16% 72%, 36% 54%, 56% 74%, 78% 58%, 100% 74%, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(4, 38, 61, 0.92) 0%, rgba(4, 38, 61, 0.72) 44%, rgba(4, 38, 61, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 38, 61, 0.82) 0%, rgba(4, 38, 61, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.5fr);
  gap: 24px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 126px 0 36px;
  color: var(--white);
}

.hero-message {
  max-width: 800px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 4.2vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.75vw, 1.55rem);
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy-intro {
  max-width: 700px;
}

.hero-actions,
.site-footer,
.contact-methods {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-estimate {
  justify-self: end;
  width: min(100%, 460px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(4, 38, 61, 0.78), rgba(7, 56, 88, 0.64)),
    rgba(4, 38, 61, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(4, 28, 45, 0.26);
}

.hero-estimate h2 {
  margin-bottom: 7px;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.08;
  color: var(--orange);
}

.hero-estimate p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.hero-estimate .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.hero-estimate .contact-form {
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  gap: 8px 10px;
}

.hero-estimate textarea {
  min-height: 54px;
}

.hero-estimate label {
  gap: 5px;
  font-size: 0.88rem;
}

.hero-estimate label:nth-child(n + 3),
.hero-estimate .button,
.hero-estimate .form-note {
  grid-column: 1 / -1;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.82);
}

.consent-field input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--orange);
}

.hero-estimate .button {
  min-height: 42px;
  padding-block: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--navy-deep);
  background: var(--white);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro,
.financing-band,
.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: center;
}

.section-kicker {
  color: var(--orange-dark);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro > p,
.cta p,
.brand-panel p,
.service-card p,
.timeline p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 285px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(4, 38, 61, 0.06);
}

.service-icon,
.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  margin-bottom: 34px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--white);
  background: var(--navy);
}

.service-card h3,
.timeline h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.financing-band {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 84px max(16px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--navy);
}

.financing-image,
.financing-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.financing-image {
  object-fit: cover;
  object-position: center;
}

.financing-overlay {
  background:
    linear-gradient(90deg, rgba(4, 28, 45, 0.84), rgba(4, 38, 61, 0.58) 48%, rgba(4, 38, 61, 0.28)),
    linear-gradient(0deg, rgba(4, 28, 45, 0.28), rgba(4, 28, 45, 0.08));
}

.financing-band > div:not(.financing-overlay) {
  position: relative;
  z-index: 1;
}

.financing-band .section-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.finance-actions {
  display: grid;
  gap: 12px;
}

.finance-actions a {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 900;
  color: var(--white);
  background: rgba(4, 38, 61, 0.35);
  backdrop-filter: blur(8px);
}

.finance-actions a:hover {
  background: rgba(255, 116, 31, 0.9);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 42px;
  right: 42px;
  height: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 20px 0 0;
}

.timeline li:last-child {
  padding-right: 0;
}

.brand-panel {
  display: grid;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  padding: 36px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-panel img {
  width: min(760px, 100%);
  margin: 0 auto;
}

.brand-panel > div {
  display: grid;
  gap: 18px;
}

.brand-panel h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.statement-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 56, 88, 0.05);
}

.statement-grid h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.statement-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  padding: 46px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 38, 61, 0.95), rgba(7, 56, 88, 0.94)),
    var(--navy);
  box-shadow: var(--shadow);
}

.cta-visual {
  grid-column: 1 / -1;
}

.cta .section-kicker,
.cta p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.contact-methods a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
  color: var(--white);
}

.before-after {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  --comparison-position: 50%;
}

.showcase .before-after {
  margin-top: 0;
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.comparison-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.comparison-after,
.comparison-divider,
.comparison-range {
  position: absolute;
  inset: 0;
}

.comparison-after {
  overflow: hidden;
  width: 100%;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.comparison-after .comparison-image {
  height: 100%;
}

.comparison-divider {
  left: var(--comparison-position);
  right: auto;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(4, 38, 61, 0.22);
  pointer-events: none;
}

.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(4, 38, 61, 0.28);
  transform: translate(-50%, -50%);
}

.comparison-divider span::before,
.comparison-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--white);
  border-left: 3px solid var(--white);
}

.comparison-divider span::before {
  left: 13px;
  transform: translateY(-50%) rotate(-45deg);
}

.comparison-divider span::after {
  right: 13px;
  transform: translateY(-50%) rotate(135deg);
}

.comparison-range {
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: ew-resize;
  opacity: 0;
  appearance: none;
  background: transparent;
}

.comparison-range::-webkit-slider-thumb {
  width: 48px;
  height: 48px;
  appearance: none;
}

.comparison-range::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: 0;
}

.before-after-labels {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.before-after-labels span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.92);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.bot-field {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.94);
}

.hero-estimate input,
.hero-estimate textarea {
  padding: 8px 11px;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
  color: var(--white);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-style: normal;
  justify-items: end;
  text-align: right;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact span {
  color: var(--orange);
  font-size: 1rem;
  line-height: 1;
}

.privacy-notice {
  margin-top: 8px;
  max-width: 760px;
}

.privacy-notice summary {
  width: max-content;
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
}

.privacy-notice div {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.privacy-notice p {
  margin-bottom: 8px;
}

.privacy-notice a {
  font-weight: 900;
  color: var(--orange-dark);
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(0, 43, 66, 0.92), rgba(0, 79, 128, 0.58)),
    url("assets/hero-roofing.png") center / cover no-repeat;
}

.thank-you {
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 52, 79, 0.82);
  box-shadow: var(--shadow);
}

.thank-you img {
  width: min(260px, 70%);
  margin-bottom: 36px;
}

.thank-you h1 {
  margin-bottom: 14px;
}

.thank-you p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
}

.thank-you-english {
  margin-top: 16px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .brand {
    width: 154px;
  }

  .nav-links {
    display: none;
  }

  .language-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 138px;
    padding-bottom: 62px;
  }

  .hero-estimate {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
  }

  .hero-estimate .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-estimate label,
  .hero-estimate .button,
  .hero-estimate .form-note {
    grid-column: 1;
  }

  .intro,
  .financing-band,
  .cta,
  .brand-panel,
  .comparison-grid,
  .statement-grid,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: 20px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline li {
    padding: 0 0 0 64px;
  }

  .timeline span {
    position: absolute;
    left: 0;
    top: 0;
  }

  .section {
    padding: 68px 0;
  }

  .cta,
  .brand-panel {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 10px;
  }

  .brand {
    width: 132px;
    min-width: 118px;
  }

  .nav-action {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .language-toggle {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 4.1rem);
  }

  .hero-content {
    width: calc(100% - 24px);
    padding-bottom: 56px;
  }

  .hero-estimate {
    padding: 18px;
  }

  .hero-estimate h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-contact a {
    justify-content: flex-start;
  }
}
