:root {
  color-scheme: light;
  --ink: #142023;
  --muted: #5b686b;
  --line: #d8e0dd;
  --paper: #f7faf8;
  --white: #ffffff;
  --teal: #0e6f6b;
  --teal-dark: #084a47;
  --copper: #b56c37;
  --sage: #dfe9e3;
  --charcoal: #0d1416;
  --shadow: 0 18px 55px rgba(13, 20, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 36px;
  border-bottom: 1px solid rgba(216, 224, 221, 0.7);
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 218px;
}

.brand-logo {
  display: block;
  width: 218px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #263638;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.site-footer a:hover {
  border-color: currentColor;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(14, 111, 107, 0.22);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(9, 14, 16, 0.36), rgba(9, 14, 16, 0.06)),
    url("assets/clearview-hero-office.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 16, 18, 0.9) 0%, rgba(10, 16, 18, 0.62) 42%, rgba(10, 16, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 16, 18, 0.42) 0%, rgba(10, 16, 18, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 108px 36px 96px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c99f;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 4.5rem;
  line-height: 0.98;
  font-weight: 850;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.6rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.17rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.hero-contact a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  min-height: 118px;
  padding: 26px 36px;
  background: var(--white);
}

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

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.verse-strip {
  padding: 34px 36px;
  color: var(--white);
  background: var(--teal-dark);
}

.verse-strip.light {
  color: var(--ink);
  background: var(--sage);
}

.verse-strip p {
  max-width: 980px;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: 750;
  text-align: center;
}

.verse-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.verse-strip.light span {
  color: var(--muted);
}

.section {
  padding: 88px 36px;
}

.intro-section {
  background: var(--paper);
}

.about-preview {
  background: #edf4f0;
}

.about-preview-panel,
.founder-card,
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.about-preview-panel {
  padding: 40px;
  border: 1px solid rgba(14, 111, 107, 0.16);
  border-radius: 8px;
  background: var(--white);
}

.about-preview-panel p,
.story-grid p,
.founder-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--teal);
  font-weight: 850;
  border-bottom: 1px solid currentColor;
}

.split-layout,
.section-heading,
.estimate-layout,
.contact-section,
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.split-layout p,
.section-heading p,
.estimate-layout p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.section-heading {
  align-items: end;
  margin-bottom: 38px;
}

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

.service-card {
  min-height: 232px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.service-card p,
.timeline-item p,
.faq-list p {
  color: var(--muted);
}

.service-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 850;
}

.process-section {
  background: #eef4f0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.timeline-item {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(14, 111, 107, 0.16);
  border-radius: 8px;
  background: var(--white);
}

.timeline-item span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--copper);
  font-weight: 850;
}

.estimate-section {
  background: var(--charcoal);
  color: var(--white);
}

.estimate-layout {
  align-items: center;
}

.estimate-layout p {
  color: rgba(255, 255, 255, 0.72);
}

.estimate-tool {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.estimate-tool label,
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.estimate-tool input,
.estimate-tool select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 32, 35, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.estimate-result {
  display: block;
  min-height: 92px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 850;
}

.estimate-result small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-area {
  background: var(--paper);
}

.area-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.area-list li {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  font-weight: 750;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.faq-list summary {
  min-height: 64px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  padding: 0 22px 20px;
}

.contact-section {
  padding: 88px 36px;
  background: #e4ece7;
}

.contact-copy,
.contact-form {
  align-self: start;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 850;
  border-bottom: 1px solid rgba(8, 74, 71, 0.35);
}

.contact-links.compact {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(20, 32, 35, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.form-button {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  align-items: center;
  padding: 28px 36px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--charcoal);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer a {
  justify-self: end;
  font-weight: 750;
}

.about-hero {
  padding: 104px 36px 82px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 16, 18, 0.9), rgba(10, 16, 18, 0.62)),
    url("assets/clearview-hero-office.png") center / cover no-repeat;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: end;
}

.about-hero h1 {
  font-size: 4rem;
}

.about-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.about-story {
  background: var(--white);
}

.principle-section {
  background: #eef4f0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.founder-section {
  background: var(--paper);
}

.founder-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 22px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    margin-left: auto;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    padding: 82px 24px 76px;
  }

  .trust-strip,
  .split-layout,
  .section-heading,
  .estimate-layout,
  .area-panel,
  .about-preview-panel,
  .story-grid,
  .founder-card,
  .about-hero-inner,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 1px;
  }

  .trust-strip div,
  .section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .footer-links,
  .site-footer a {
    justify-self: start;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 188px;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(9, 14, 16, 0.34), rgba(9, 14, 16, 0.05)),
      url("assets/clearview-hero-office.png") 58% center / cover no-repeat;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 16, 18, 0.9) 0%, rgba(10, 16, 18, 0.72) 65%, rgba(10, 16, 18, 0.32) 100%),
      linear-gradient(0deg, rgba(10, 16, 18, 0.48) 0%, rgba(10, 16, 18, 0) 34%);
  }

  .hero-content {
    padding: 66px 20px 64px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy,
  .split-layout p,
  .section-heading p,
  .estimate-layout p,
  .contact-copy p {
    font-size: 1rem;
  }

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

  .service-grid,
  .timeline,
  .principle-grid,
  .area-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .service-card,
  .timeline-item {
    min-height: 0;
  }

  .area-panel,
  .about-preview-panel,
  .founder-card,
  .contact-form,
  .estimate-tool {
    padding: 22px;
  }

  .about-hero {
    padding: 72px 20px 64px;
  }

  .about-hero h1 {
    font-size: 2.45rem;
  }

  .verse-strip {
    padding: 28px 20px;
  }

  .verse-strip p {
    font-size: 1.02rem;
  }
}
