/* ============================================================================
   Alden Home Inspections — Stylesheet
   ============================================================================ */

/* ----- Design tokens ----- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #10294c;
  --navy-700: #163862;
  --navy-600: #1d4b82;
  --blue-500: #2f6fbf;
  --blue-400: #4c8ddb;
  --accent:   #f4a300;   /* warm gold CTA */
  --accent-dark: #d98b00;

  --ink:      #1a2433;
  --slate:    #4a5568;
  --muted:    #6b7688;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fa;
  --bg-navy-soft: #eef3f9;
  --white:    #ffffff;

  --shadow-sm: 0 1px 3px rgba(11,31,58,.08);
  --shadow-md: 0 8px 24px rgba(11,31,58,.10);
  --shadow-lg: 0 20px 48px rgba(11,31,58,.16);

  --radius:   12px;
  --radius-lg: 18px;
  --maxw:     1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #dce6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--slate); }
.section--navy .lead { color: #b9cae0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 6px 16px rgba(244,163,0,.35); }
.btn--primary:hover { background: var(--accent-dark); color: var(--navy-900); }
.btn--nav { background: var(--accent); color: var(--navy-900); padding: 11px 20px; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--ghost { background: var(--white); color: var(--navy-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue-400); color: var(--navy-800); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy-900); font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--navy-900); }
.brand svg { flex: 0 0 auto; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand-logo { height: 58px; width: auto; display: block; border-radius: 8px; }
@media (max-width: 720px) { .brand-logo { height: 48px; } }
.footer-logo { height: 66px; width: auto; display: block; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  color: var(--slate); font-weight: 600; font-size: .97rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); background: var(--bg-navy-soft); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.nav-phone:hover { color: var(--blue-500); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .25s; }

/* ----- Hero ----- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(115deg, rgba(11,31,58,.94) 0%, rgba(22,56,98,.86) 55%, rgba(29,75,130,.72) 100%),
    url("../img/hero.svg") center/cover no-repeat, var(--navy-800);
  overflow: hidden;
}
.hero__inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #c9d7ea; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 42px; color: #b9cae0; font-size: .95rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hero__trust svg { color: var(--accent); }

/* ----- Feature strip ----- */
.strip { background: var(--navy-900); color: #cfe; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 22px; }
.strip__item { display: flex; align-items: center; gap: 12px; color: #dbe7f5; font-weight: 600; font-size: .98rem; }
.strip__item svg { color: var(--accent); flex: 0 0 auto; }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f2; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-navy-soft); color: var(--blue-500); margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); margin-bottom: .6rem; font-size: .98rem; }
.card__price { font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.card__link { font-weight: 700; font-size: .95rem; }

/* ----- Value / why-us split ----- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.checklist li svg { color: var(--blue-500); flex: 0 0 auto; margin-top: 3px; }
.checklist b { color: var(--navy-800); display: block; }
.checklist span { color: var(--slate); font-size: .97rem; }
.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-700); }
.media-card svg { width: 100%; height: auto; display: block; }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: #a9bcd6; font-weight: 600; font-size: .95rem; }

/* ----- Steps ----- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }

/* ----- Testimonials ----- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy-800); }

/* ----- Service area ----- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.area-list span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--navy-700); }

/* ----- CTA band ----- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600));
  color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe; max-width: 560px; margin-inline: auto; }
.cta-band .btn { margin-top: 18px; }

/* ----- Page header (interior pages) ----- */
.page-head { background: var(--navy-800); color: #fff; padding: 64px 0; }
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: #b9cae0; max-width: 640px; margin: 0; }
.breadcrumb { color: #8ba6c9; font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a { color: #b9cae0; }

/* ----- Detailed service item ----- */
.svc { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.svc__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-navy-soft); color: var(--blue-500); display: grid; place-items: center; }
.svc h3 { margin-bottom: .35rem; }
.svc p { color: var(--slate); margin-bottom: .5rem; }
.svc ul { color: var(--slate); font-size: .95rem; margin-bottom: 0; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-row svg { color: var(--blue-500); flex: 0 0 auto; margin-top: 3px; }
.info-row b { display: block; color: var(--navy-800); }
.info-row a, .info-row span { color: var(--slate); }
.embed-frame { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); background: var(--bg-soft); }
.embed-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.embed-placeholder {
  border: 2px dashed #c6d4e6; border-radius: var(--radius); padding: 48px 28px; text-align: center;
  color: var(--slate); background: var(--bg-navy-soft);
}
.embed-placeholder h3 { color: var(--navy-800); }
.embed-placeholder code { background: #dde8f5; padding: 2px 8px; border-radius: 6px; font-size: .88rem; color: var(--navy-800); }

/* ----- Custom quote form ----- */
.quote-fields .field { display: grid; gap: 6px; }
.flabel { font-weight: 700; color: var(--navy-800); font-size: .95rem; display: block; }
.req { color: #c0392b; }
.quote-fields input[type=text], .quote-fields input[type=email], .quote-fields input[type=tel],
.quote-fields input[type=number], .quote-fields select, .quote-fields textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.quote-fields input:focus, .quote-fields select:focus, .quote-fields textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(76,141,219,.15); }
.quote-fields textarea { resize: vertical; min-height: 64px; }
.quote-fields .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; margin: 0; font-weight: 600; }
.addon:hover { border-color: var(--blue-400); background: var(--bg-soft); }
.addon input { width: 18px; height: 18px; accent-color: var(--blue-500); flex: 0 0 auto; }
.addon .a-label { color: var(--navy-800); }
.addon .a-price { margin-left: auto; color: var(--slate); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.estimate-bar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-md); }
.estimate-bar .est-amt { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.estimate-bar small { display: block; color: #a9bcd6; font-weight: 700; font-size: .72rem; letter-spacing: .1em; }
@media (max-width: 720px) {
  .quote-fields .grid2, .addons { grid-template-columns: 1fr; }
}

/* ----- Two-card quote layout ----- */
.quote-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; max-width: 980px; margin-inline: auto; }
.quote-estimate {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: var(--radius-lg); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-md); position: sticky; top: 92px;
}
.quote-estimate .eyebrow { color: var(--accent); }
.qe-label { color: #b9cae0; font-weight: 600; margin: .4rem 0 0; }
.qe-amount { font-size: 2.9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin: .1rem 0 1.1rem; }
.sqft-slider { width: 100%; accent-color: var(--accent); cursor: pointer; }
.qe-sqft { margin-top: 12px; font-size: 1.05rem; color: #dbe7f5; }
.qe-sqft b { color: var(--accent); font-size: 1.2rem; }
.qe-note { color: #9fb3d1; font-size: .84rem; margin: 18px 0 0; }

.quote-fields { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.qform-fine { font-size: .8rem; color: var(--muted); margin: 0; }

/* address autocomplete dropdown */
.addr-wrap { position: relative; }
.addr-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); max-height: 250px; overflow-y: auto; display: none;
}
.addr-suggest.open { display: block; }
.addr-item { padding: 11px 14px; cursor: pointer; font-size: .94rem; color: var(--ink); border-bottom: 1px solid var(--bg-soft); }
.addr-item:last-child { border-bottom: 0; }
.addr-item:hover, .addr-item.active { background: var(--bg-navy-soft); color: var(--navy-800); }

@media (max-width: 780px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-estimate { position: static; }
}

/* ----- FAQ accordion ----- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-500); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > .faq-a { padding: 0 22px 18px; color: var(--slate); }

/* ----- Sticky mobile action bar ----- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; background: var(--navy-800); box-shadow: 0 -4px 16px rgba(11,31,58,.22); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-weight: 700; color: #fff; text-decoration: none; font-size: 1rem; }
.mobile-bar a.call { background: var(--navy-700); }
.mobile-bar a.quote { background: var(--accent); color: var(--navy-900); }
.mobile-bar svg { flex: 0 0 auto; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 58px; }
}

/* ----- Legal / policy pages ----- */
.legal { max-width: 820px; margin-inline: auto; }
.legal .updated { color: var(--muted); font-size: .9rem; margin: -.4rem 0 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; color: var(--navy-800); }
.legal p, .legal li { color: var(--slate); }
.legal a { text-decoration: underline; }
.legal .callout { background: var(--bg-navy-soft); border: 1px solid #d5e2f2; border-radius: var(--radius); padding: 16px 20px; margin: 1.5rem 0; color: var(--navy-800); font-size: .95rem; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-900); color: #a9bcd6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color: #a9bcd6; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand svg { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #7f95b4; }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe; }
.social a:hover { background: var(--accent); color: var(--navy-900); }

/* ----- Modal (Spectora quote widget) ----- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,31,58,.6); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(720px, 94vw); max-height: 90vh; margin: 5vh auto 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; }
.modal__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--slate); padding: 4px 10px; border-radius: 8px; }
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__body { overflow: auto; flex: 1; }
.modal__body iframe { width: 100%; height: 70vh; border: 0; display: block; }

/* ----- Utilities ----- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-title { margin-bottom: 44px; }
.hidden { display: none !important; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Collapse nav to hamburger before it overflows and clips the logo */
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .grid--3, .grid--2, .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .hero__inner { padding: 64px 0 72px; }
}
