:root {
  color-scheme: light;
  --ink: #07111f;
  --panel: #0b1727;
  --muted: #546070;
  --line: #d8e4ee;
  --ice: #f3f8fc;
  --white: #ffffff;
  --blue: #0076bd;
  --blue-dark: #004b86;
  --cyan: #18a7df;
  --focus: #f2b84b;
  --shadow: 0 20px 50px rgba(7, 17, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  background: rgba(7, 17, 31, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(24, 167, 223, 0.18);
}

.hero {
  min-height: min(62vh, 620px);
  background: var(--panel);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.intro-band {
  padding: 42px 0;
  background: linear-gradient(135deg, #ffffff 0%, #edf7fd 58%, #d9edf8 100%);
  border-bottom: 1px solid var(--line);
}

.intro-layout,
.estimate-layout,
.quote-hero-layout,
.split-layout,
.quote-layout,
.footer-layout {
  display: grid;
  gap: 32px;
}

.intro-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
}

h2 {
  max-width: 740px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #28384b;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 118, 189, 0.28);
}

.button.secondary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: #b8d3e5;
}

.section {
  padding: 76px 0;
}

#services,
#estimate,
#area {
  scroll-margin-top: 90px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 820px;
}

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

.service-card {
  min-height: 152px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
}

.service-card h3 {
  color: var(--blue-dark);
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.estimate-section {
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.95), rgba(0, 75, 134, 0.86)),
    url("assets/banner.png") center / cover;
  color: var(--white);
}

.estimate-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  align-items: center;
}

.estimate-copy .eyebrow {
  color: #85d6ff;
}

.estimate-copy h2 {
  max-width: 760px;
}

.estimate-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.estimate-notes {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 26px 0 16px;
  padding: 0;
  list-style: none;
}

.estimate-notes li {
  position: relative;
  padding: 12px 0;
  padding-left: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.estimate-notes li::before {
  position: absolute;
  left: 2px;
  top: 1rem;
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.calculator-tool {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.calculator-tool small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.full-span {
  grid-column: 1 / -1;
}

.estimate-result {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #b8d3e5;
  border-radius: 8px;
  background: #f2f9fd;
}

.estimate-result span {
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-result strong {
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1;
}

.estimate-quote-link {
  width: 100%;
  margin-top: 18px;
}

.split-section {
  background: var(--ice);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-layout {
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  align-items: center;
}

.flyer-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flyer-frame img {
  width: 100%;
  aspect-ratio: 0.69;
  object-fit: cover;
  object-position: top center;
}

.area-copy p {
  max-width: 640px;
  color: #34445a;
  font-size: 1.06rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  color: #18283b;
  font-weight: 700;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.08rem;
  content: "";
  width: 14px;
  height: 14px;
  border: 4px solid var(--cyan);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.quote-hero {
  padding: 58px 0;
  background:
    linear-gradient(110deg, rgba(7, 17, 31, 0.96) 0%, rgba(8, 27, 48, 0.9) 58%, rgba(0, 118, 189, 0.72) 100%),
    url("assets/banner.png") center / cover;
  color: var(--white);
}

.quote-hero .eyebrow {
  color: #85d6ff;
}

.quote-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.quote-hero-layout {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
}

.quote-hero img {
  width: 220px;
  justify-self: end;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36));
}

.quote-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%);
}

.quote-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.quote-form,
.contact-panel,
.thanks-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
.photo-fields {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: #223348;
  font-weight: 900;
}

legend span {
  display: inline;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9c9d8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  padding: 0 13px;
}

textarea {
  padding: 13px;
  resize: vertical;
}

input[type="file"] {
  height: auto;
  padding: 11px;
}

.full-label {
  display: block;
  margin-top: 18px;
}

.photo-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed #a9c7d9;
  border-radius: 8px;
  background: #f8fcff;
}

.photo-fields legend {
  padding: 0 8px;
}

.form-submit {
  width: 100%;
  margin-top: 22px;
  border: 0;
  font-size: 1rem;
}

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

.contact-panel {
  padding: 26px;
  background: var(--panel);
  color: var(--white);
}

.contact-panel img {
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.contact-panel h2 {
  font-size: 1.7rem;
}

.contact-panel p,
.service-area span {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel a {
  display: block;
  margin-top: 14px;
  color: #86d8ff;
  font-weight: 900;
  text-decoration: none;
}

.service-area {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-layout {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-layout div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-layout img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-layout p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-layout a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.thanks-main {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 48px 18px;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, 0.88), rgba(0, 76, 134, 0.76)),
    url("assets/banner.png") center / cover;
}

.thanks-section {
  width: min(680px, 100%);
  padding: 34px;
  text-align: center;
}

.thanks-section img {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.thanks-section p:not(.eyebrow) {
  margin: 18px auto 24px;
  max-width: 520px;
  color: var(--muted);
}

.thanks-section .intro-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .intro-layout,
  .estimate-layout,
  .split-layout,
  .quote-hero-layout,
  .quote-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .intro-actions {
    justify-self: start;
  }

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

  .quote-hero img {
    justify-self: start;
    width: 180px;
  }

  .footer-layout div:last-child {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 10px;
    min-height: 112px;
    flex-direction: column;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    flex: 1;
    padding: 10px 6px;
    font-size: 0.76rem;
    white-space: nowrap;
    text-align: center;
  }

  .hero {
    min-height: 320px;
  }

  .hero img {
    height: 320px;
    min-height: 320px;
    object-position: center top;
  }

  .intro-band,
  .section,
  .quote-hero {
    padding: 42px 0;
  }

  #services,
  #estimate,
  #area {
    scroll-margin-top: 132px;
  }

  .service-grid,
  .form-grid,
  .photo-fields {
    grid-template-columns: 1fr;
  }

  .quote-form,
  .calculator-tool,
  .contact-panel,
  .thanks-section {
    padding: 20px;
  }

  .footer-layout div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
