/* Peak City Home Inspections - design layer.
   Brand: navy / blue / sky from the logo, white ground, square corners,
   wide block headlines, no gradients, no card shadows. */

:root {
  --navy: #002048;
  --navy-700: #0d3366;
  --navy-950: #00152f;
  --blue: #1880b8;
  --action: #1272a8;
  --action-hover: #0e5f8e;
  --sky: #38a8d0;
  --blue-100: #e4f2f9;
  --gray-50: #f6f8fa;
  --gray-200: #e3e8ee;
  --gray-300: #cfd7e0;
  --gray-600: #4b5768;
  --ink: #1d2733;
  --white: #ffffff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 75rem;
  --gutter: 1.5rem;
  --section: 6rem;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

@media (max-width: 767px) {
  :root { --section: 4rem; --gutter: 1.25rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Type ---------- */
.display {
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--navy);
  text-wrap: balance;
}
.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--action);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--sky); flex: none; }
.kicker--light { color: var(--sky); }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-top: .9rem; max-width: 22ch; }
.lead { font-size: 1.1875rem; color: var(--gray-600); max-width: 60ch; }
.prose p + p { margin-top: 1rem; }
.prose { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.4rem;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--action-hover); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--blue-100); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--blue-100); color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { height: 3rem; width: auto; }
.site-nav { display: none; align-items: center; gap: 1.75rem; }
.site-nav > a:not(.btn):not(.header-phone), .nav-drop > a, .nav-drop-label {
  color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0;
}
.site-nav > a:not(.btn):hover, .nav-drop > a:hover { color: var(--action); }
.site-nav a[aria-current="page"] { color: var(--action); }
.header-phone { color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--action); }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 14rem; padding: .5rem 0;
  background: var(--white); border: 1px solid var(--gray-300); border-top: 2px solid var(--navy);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: .5rem 1rem; color: var(--navy); text-decoration: none; }
.nav-drop-menu a:hover { background: var(--blue-100); }
.nav-caret { font-size: .7em; }
.header-mobile { display: flex; align-items: center; gap: .5rem; }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: .7rem; background: none; border: 2px solid var(--navy); cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--navy); }
.mobile-menu { border-top: 1px solid var(--gray-200); background: var(--white); }
.mobile-menu nav { display: flex; flex-direction: column; padding: .5rem 0 1rem; }
.mobile-link { display: block; padding: .8rem 0; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gray-200); }
.mobile-sub { padding-left: 1rem; font-weight: 400; }
.mobile-heading { color: var(--gray-600); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-mobile, .mobile-menu { display: none !important; }
  .brand img { height: 3.4rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 4rem; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__h1 { margin-bottom: 1rem; }
.hero__headline { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 17ch; }
.hero__intro { margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: .9375rem; color: var(--gray-600); }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__photo { max-width: 30rem; width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero__photo { justify-self: end; }
}

/* ---------- Credentials strip ---------- */
.creds { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.creds__list { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; gap: 1rem 2rem; }
.creds__list li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; color: var(--navy); line-height: 1.35; }
.creds__list svg { width: 1.35rem; height: 1.35rem; color: var(--blue); flex: none; margin-top: .05rem; }
.creds__list small { display: block; font-weight: 400; color: var(--gray-600); font-size: .875rem; margin-top: .15rem; }
@media (min-width: 640px) { .creds__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .creds__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--gray-50); }
.section__head { margin-bottom: 3rem; }
.section__head .lead { margin-top: 1.1rem; }

/* Inspection cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--gray-300);
  padding: 1.75rem 1.6rem 1.9rem;
}
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue-100); color: var(--blue); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-top: 1.1rem; font-size: 1.25rem; font-weight: 800; font-stretch: 105%; color: var(--navy); line-height: 1.2; }
.card p { margin-top: .6rem; color: var(--gray-600); font-size: 1rem; }
.cards__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* About */
.about__grid { display: grid; gap: 2.5rem; align-items: start; }
.about__photo { max-width: 26rem; }
.about__text .prose { margin-top: 1.4rem; }
.signature { margin-top: 1.5rem; width: 180px; mix-blend-mode: multiply; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; align-items: center; }
}

/* Booking steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--gray-300); padding: 1.6rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  background: var(--navy); color: var(--white); font-weight: 800;
}
.steps h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 800; color: var(--navy); }
.steps p { margin-top: .45rem; color: var(--gray-600); font-size: 1rem; }
.agents-note { margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--blue-100); color: var(--navy); max-width: 62ch; }

/* Closing band */
.band { background: var(--navy); color: var(--white); padding: var(--section) 0; }
.band .display { color: var(--white); }
.band__text { margin-top: 1.1rem; color: #c9d6e6; font-size: 1.1875rem; max-width: 56ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b8c6d8; padding: 3.5rem 0 2rem; font-size: .9375rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__logo { width: 210px; }
.footer__about { margin-top: 1.1rem; max-width: 34ch; }
.footer-heading { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.footer__list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .45rem; }
.footer-link { color: var(--white); text-decoration: none; }
.footer-link:hover { color: var(--sky); text-decoration: underline; }
.footer-sub { padding-left: .75rem; }
.footer-subhead { color: var(--white); font-weight: 600; }
.footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: .5rem; font-size: .8125rem; color: #8ea1b8;
}
@media (min-width: 700px) { .footer__legal { flex-direction: row; justify-content: space-between; } }
.footer__legal a { color: #c9d6e6; }

/* ---------- Mobile booking bar ---------- */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; border-top: 2px solid var(--navy); }
.mobile-cta-bar .btn { flex: 1; min-height: 3.5rem; }
.mobile-cta-bar .btn--call { background: var(--navy); color: var(--white); }
@media (max-width: 639px) { body { padding-bottom: 3.5rem; } }
@media (min-width: 640px) { .mobile-cta-bar { display: none; } }

/* ---------- 404 ---------- */
.notfound { padding: 6rem 0; text-align: center; }
.notfound .display { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.notfound p { margin: 1.2rem auto 0; max-width: 46ch; color: var(--gray-600); font-size: 1.125rem; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Landing page: compact service list + meet strip ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 3rem; }
@media (min-width: 800px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service-list li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.service-list .card__icon { flex: none; }
.service-list strong { display: block; color: var(--navy); font-size: 1.125rem; font-weight: 800; font-stretch: 105%; margin-bottom: .3rem; }
.service-list li > span:last-child { color: var(--gray-600); font-size: 1rem; }
.meet { display: grid; gap: 2rem; align-items: center; }
.meet__photo { width: 11rem; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
@media (min-width: 800px) { .meet { grid-template-columns: auto 1fr; gap: 3.5rem; } .meet__photo { width: 15rem; } }

/* ---------- Photos ---------- */
.photo-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__figure .photo-img { aspect-ratio: 3 / 4; }
.about__figure figcaption {
  margin-top: .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy);
}

/* ---------- Services: one H2 per service ---------- */
.services { display: grid; gap: 2.25rem 3.5rem; }
@media (min-width: 860px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service { display: flex; gap: 1.1rem; align-items: flex-start; }
.service .card__icon { flex: none; margin-top: .2rem; }
.service h2 { font-size: 1.375rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.2; color: var(--navy); }
.service p { margin-top: .55rem; color: var(--gray-600); font-size: 1rem; max-width: 60ch; }
.service a { color: var(--action); }

/* ---------- Embedded scheduler ---------- */
.schedule__head { max-width: 64rem; margin: 0 auto 2rem; }
.schedule__head .lead { margin-top: 1rem; }
.schedule__newtab { margin-top: .9rem; font-weight: 600; font-size: .9375rem; }
.schedule__frame { max-width: 64rem; margin: 0 auto; border: 1px solid var(--gray-300); background: var(--white); }
.schedule__frame iframe { display: block; width: 100%; height: 1150px; border: 0; }
@media (max-width: 639px) {
  .schedule .wrap { padding: 0; }
  .schedule__head { padding: 0 var(--gutter); }
  .schedule__frame { border-left: 0; border-right: 0; }
  .schedule__frame iframe { height: 1250px; }
}

/* ---------- Review band ---------- */
.quote-band { background: var(--navy); padding: 4.5rem 0; }
.quote { margin: 0 auto; max-width: 52rem; text-align: center; }
.quote__mark { width: 2.75rem; height: auto; fill: var(--sky); margin: 0 auto 1.25rem; display: block; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; font-weight: 600; color: #fff;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky);
}

/* Section-end next step */
.section__cta { margin-top: 3rem; display: flex; justify-content: center; }

/* ---------- Services background: faint blueprint ---------- */
#services {
  background: #fff url("/static/images/home-inspection-blueprint-background.jpg?v=3") center / cover no-repeat;
}
@media (max-width: 859px) {
  /* Tall single column on phones: keep the drawing at natural width at the top instead of zooming it */
  #services { background-size: 140% auto; background-position: center top; }
}
