:root {
  color-scheme: light;
  --ink: #102021;
  --muted: #5e6d70;
  --line: #d9e3e1;
  --panel: #ffffff;
  --wash: #f4f8f6;
  --mint: #dff2ed;
  --teal: #08756f;
  --teal-dark: #05544f;
  --coral: #de6b4f;
  --gold: #f3c765;
  --shadow: 0 18px 45px rgba(8, 40, 38, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(222, 107, 79, 0.45);
  outline-offset: 3px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  font-weight: 850;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(244, 248, 246, 0.92);
  border-bottom: 1px solid rgba(217, 227, 225, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions,
.field-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
}

.site-header nav {
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--teal);
}

.nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 117, 111, 0.18);
  animation: quotePulse 2.6s ease-in-out 3;
}

.site-header nav .nav-quote:hover {
  color: #fff;
  background: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  min-height: auto;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 52px) clamp(28px, 5vw, 56px);
}

.hero-copy,
.quote-copy,
.contact-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text,
.content-grid p,
.section-heading p,
.quote-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

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

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-bullets li {
  position: relative;
  min-height: 38px;
  padding: 9px 12px 9px 34px;
  color: #203739;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 850;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 9px;
  height: 15px;
  border: solid var(--teal);
  border-width: 0 3px 3px 0;
  transform: translateY(-58%) rotate(45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 22px rgba(8, 117, 111, 0.2);
  animation: quotePulse 2.6s ease-in-out 3;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal-dark);
  background: #fff;
  border-color: var(--line);
}

.hero-media {
  min-height: 0;
  max-height: 480px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  object-position: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  min-height: 108px;
  padding: 24px;
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.steps-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
  padding: clamp(44px, 6vw, 76px) clamp(18px, 4vw, 52px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mobile-quote-bar {
  display: none;
}

.section-heading {
  max-width: 520px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  position: relative;
  min-height: 180px;
  padding: 54px 18px 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: steps;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 900;
}

.steps-list strong,
.steps-list span {
  display: block;
}

.steps-list strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.02rem;
}

.steps-list span {
  color: var(--muted);
  line-height: 1.48;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
  padding: clamp(44px, 6vw, 76px) clamp(18px, 4vw, 52px);
  background: #f9fbfa;
}

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

.proof-grid article {
  min-height: 138px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(8, 40, 38, 0.06);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1.04rem;
}

.proof-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.content-grid,
.quote-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 52px);
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: #2b4143;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #fff;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  height: clamp(320px, 34vw, 430px);
}

.service-gallery img {
  min-width: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-gallery img:first-child {
  margin-top: 0;
}

.quote-section {
  align-items: stretch;
  min-height: calc(100vh - 70px);
  scroll-margin-top: 70px;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
  background: #eaf4f1;
}

.quote-form,
.contact-form {
  display: grid;
  gap: 12px;
  align-self: start;
  padding: clamp(18px, 3vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section {
  scroll-margin-top: 70px;
  background: var(--wash);
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-section-label {
  margin-top: 4px;
  padding-top: 6px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.quote-submit {
  width: min(100%, 320px);
}

.quote-confirmation {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 70px);
}

.quote-confirmation section {
  max-width: 760px;
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-page {
  padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 52px);
}

.policy-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-content h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.policy-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
}

.policy-content p,
.policy-content li {
  color: #31484a;
  line-height: 1.65;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.policy-content a,
footer a {
  color: var(--teal);
  font-weight: 850;
}

.policy-updated {
  color: var(--muted);
  font-weight: 850;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 70px);
  background:
    linear-gradient(rgba(244, 248, 246, 0.82), rgba(244, 248, 246, 0.9)),
    url("https://images.pexels.com/photos/6195111/pexels-photo-6195111.jpeg?auto=compress&cs=tinysrgb&w=1400") center/cover;
}

.auth-panel {
  display: grid;
  gap: 28px;
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 227, 225, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 8vw, 4rem);
}

.auth-link {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-link a {
  color: var(--teal);
}

.admin-page {
  min-height: 100vh;
  padding: clamp(22px, 5vw, 64px);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.quotes-list {
  display: grid;
  gap: 16px;
}

.quote-card,
.empty-state {
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(8, 40, 38, 0.08);
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.quote-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.quote-card-header p,
.quote-card time,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.quote-card-header .quote-address {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.quote-card time {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 800;
}

.quote-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.quote-details div {
  min-width: 0;
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.quote-details a {
  color: var(--teal);
}

.quote-notes {
  margin: 0;
  color: #2b4143;
  line-height: 1.6;
}

.field-row {
  gap: 14px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label {
  display: grid;
  gap: 8px;
  width: 100%;
  color: #31484a;
  font-size: 0.92rem;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.extras-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  background: #fbfdfc;
  border: 1px solid #cbd9d7;
  border-radius: 8px;
  cursor: pointer;
}

.checkbox-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #cbd9d7;
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 117, 111, 0.18);
  border-color: var(--teal);
}

@keyframes quotePulse {
  0%,
  100% {
    box-shadow: 0 12px 22px rgba(8, 117, 111, 0.2), 0 0 0 0 rgba(243, 199, 101, 0);
  }

  50% {
    box-shadow: 0 12px 24px rgba(8, 117, 111, 0.26), 0 0 0 7px rgba(243, 199, 101, 0.42);
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

footer span {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    gap: 14px;
    min-height: auto;
  }

  .hero,
  .content-grid,
  .steps-section,
  .proof-section,
  .quote-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .service-gallery {
    min-height: 0;
    height: clamp(300px, 50vw, 380px);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    min-height: 0;
  }

  .admin-header,
  .quote-card-header {
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.9rem;
  }

  .site-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .mobile-quote-bar {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: #fff;
    background: var(--teal);
    border-bottom: 1px solid rgba(5, 84, 79, 0.25);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(8, 40, 38, 0.12);
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.25rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.05;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

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

  .hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quote-section {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .quote-form {
    gap: 14px;
  }

  .extras-group {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 0;
    padding: 20px;
  }

  .proof-grid article {
    min-height: 0;
  }

  .service-gallery,
  .field-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .service-gallery {
    height: auto;
    min-height: 0;
  }

  .service-gallery img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .service-gallery img:first-child {
    margin-top: 0;
  }

  footer {
    flex-direction: column;
  }

  .quote-details {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
