:root {
  --ink: #090909;
  --charcoal: #18201d;
  --evergreen: #06662d;
  --teal: #187d99;
  --aqua: #35bdb1;
  --orange: #f6921e;
  --earth: #4c3222;
  --paper: #fffdf8;
  --mist: #eef7f5;
  --stone: #e7e0d7;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(9, 9, 9, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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(246, 146, 30, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(76, 50, 34, 0.12);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 104px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.91rem;
  font-weight: 700;
  color: #222;
}

.primary-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--teal);
  border-color: var(--aqua);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-cta {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(9, 9, 9, 0.16);
}

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

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

.button-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

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

.button-secondary {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.nav-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 152px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(18px, 3vw, 38px);
  padding: clamp(50px, 8vw, 78px) clamp(18px, 5vw, 70px) clamp(26px, 5vw, 46px);
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.64) 34%, rgba(9, 9, 9, 0.18) 68%), url("assets/cary-home-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(9, 9, 9, 0.74), rgba(9, 9, 9, 0));
}

.hero-content {
  max-width: 810px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

h1 {
  max-width: 790px;
  font-size: clamp(2.1rem, 4.7vw, 4.55rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.path-panel {
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.path-panel a {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border-left: 4px solid var(--aqua);
  border-radius: 6px;
}

.path-panel a:nth-child(2) {
  border-color: var(--orange);
}

.path-panel a:nth-child(3) {
  border-color: var(--evergreen);
}

.path-panel a:nth-child(4) {
  border-color: var(--earth);
}

.path-panel span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-panel strong {
  line-height: 1.28;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(76, 50, 34, 0.18);
}

.intro-band div {
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--evergreen);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
}

.intro-band p {
  max-width: 390px;
  margin: 0;
  color: #4a4a4a;
}

.section,
.areas,
.contact-section {
  padding: clamp(72px, 10vw, 118px) clamp(18px, 5vw, 70px);
}

.section-heading,
.service-grid,
.feature-cards,
.two-column,
.faq-grid,
.areas,
.contact-section,
.about-section {
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

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

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.service-copy p,
.areas-copy p,
.contact-copy p,
.broker-panel p {
  margin: 0 0 24px;
  color: #464646;
  font-size: 1.05rem;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(24, 125, 153, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 32, 29, 0.06);
  font-weight: 800;
}

.step-list span {
  flex: 0 0 auto;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.split-section {
  background: #f4f0e9;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.feature-cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-cards article,
.faq-grid article,
.two-column > div,
.expectations,
.broker-panel,
.contact-card,
.lead-form {
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid rgba(76, 50, 34, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 32, 29, 0.08);
}

.feature-cards h3,
.faq-grid h3,
.two-column h3,
.expectations h3,
.contact-card h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
}

.feature-cards p,
.faq-grid p,
.two-column p,
.contact-card p {
  margin: 0;
  color: #4b4b4b;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-grid article {
  border-top: 4px solid var(--teal);
}

.faq-grid article:nth-child(2) {
  border-top-color: var(--orange);
}

.faq-grid article:nth-child(3) {
  border-top-color: var(--evergreen);
}

.faq-grid article:nth-child(4) {
  border-top-color: var(--earth);
}

.faq-grid a {
  color: var(--teal);
  font-weight: 800;
}

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

.accent-section .section-heading,
.accent-section .two-column {
  color: var(--white);
}

.accent-section h2,
.accent-section h3 {
  color: var(--white);
}

.accent-section .two-column > div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.accent-section p {
  color: rgba(255, 255, 255, 0.78);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.combined-section {
  background: linear-gradient(135deg, rgba(238, 247, 245, 0.95), rgba(255, 253, 248, 1));
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--aqua);
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.areas {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.areas-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border-top: 3px solid var(--aqua);
  border-radius: 6px;
  font-weight: 900;
}

.area-list span:nth-child(3n+2) {
  border-color: var(--orange);
}

.area-list span:nth-child(3n+3) {
  border-color: var(--evergreen);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.broker-panel {
  background: var(--mist);
}

.broker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.broker-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  color: var(--white);
  background: var(--evergreen);
  border-radius: 6px;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: #f4f0e9;
}

address {
  font-style: normal;
}

address a {
  color: var(--teal);
  font-weight: 800;
}

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

.contact-card {
  align-self: start;
}

.contact-card p {
  margin-bottom: 22px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.lead-form button {
  grid-column: 1 / -1;
}

label {
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbfb;
  border: 1px solid rgba(9, 9, 9, 0.18);
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  padding: 42px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: var(--charcoal);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 8px;
}

.footer-brand img {
  width: 118px;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-weight: 800;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--aqua);
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.88rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.error-shell {
  max-width: 720px;
  text-align: center;
}

.error-logo img {
  width: 170px;
  margin: 0 auto 24px;
}

.error-shell h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.error-shell p {
  color: #4a4a4a;
}

.error-shell .hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: 96px;
  }

  .nav-button {
    appearance: none;
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(9, 9, 9, 0.18);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .site-header.menu-open .primary-nav,
  .site-header.menu-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.menu-open .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(76, 50, 34, 0.12);
  }

  .site-header.menu-open .primary-nav a {
    padding: 12px 0;
  }

  .site-header.menu-open .header-cta {
    width: fit-content;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .path-panel {
    max-width: 560px;
  }

  .intro-band,
  .feature-cards,
  .feature-cards.three,
  .faq-grid,
  .areas,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .footer-brand {
    width: 138px;
    padding: 12px 14px;
  }

  .footer-brand img {
    width: 110px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-inline: 18px;
    padding-top: 44px;
    padding-bottom: 18px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-actions,
  .broker-actions {
    flex-direction: column;
  }

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

  .hero-actions {
    flex-direction: row;
  }

  .hero .button {
    width: auto;
    flex: 1 1 145px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.91rem;
  }

  .path-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .path-panel a {
    min-height: 52px;
    padding: 10px;
  }

  .path-panel span {
    font-size: 0.74rem;
  }

  .path-panel strong {
    display: none;
  }

  .intro-band,
  .two-column,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .section,
  .areas,
  .contact-section {
    padding-inline: 18px;
  }

  .form-row.full,
  .lead-form button {
    grid-column: auto;
  }
}
