/* ============================================================
   Senior Home Checks — styles.css
   Warm, photo-forward small-business service site.
   No frameworks, no web fonts — system fonts only, so the site
   is fully self-contained and fast on Cloudflare.
   ============================================================ */

:root {
  --pine: #1f4d3a;          /* deep pine green — primary */
  --pine-dark: #173b2d;
  --pine-soft: #e7efe9;     /* pale green tint */
  --cream: #fbf7ef;         /* warm page background */
  --paper: #ffffff;
  --amber: #d98e32;         /* warm accent, used sparingly */
  --amber-soft: #f8ecd9;
  --ink: #22302a;           /* body text */
  --ink-soft: #54645c;      /* secondary text */
  --line: #e3ddd0;          /* warm hairline */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 77, 58, 0.10);
  --shadow-sm: 0 4px 14px rgba(31, 77, 58, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pine-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--pine); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; scroll-margin-top: 84px; }
section.alt { background: var(--paper); }
section.tint { background: var(--pine-soft); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 44em; }

.section-head { max-width: 46em; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #c17d27; }
.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline:hover { background: var(--pine-soft); }
.btn-light { background: #fff; color: var(--pine-dark); }
.btn-light:hover { background: var(--amber-soft); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--pine-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--pine);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--pine); }
.nav-links a.btn { color: #fff; padding: 10px 20px; }
.nav-phone { font-weight: 700; color: var(--pine-dark); white-space: nowrap; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-links { margin-left: 0; gap: 14px; }
  .nav-links a:not(.btn) { font-size: 0.92rem; }
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-copy .lede { margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero-card .hc-icon { font-size: 1.4rem; line-height: 1.2; }
.hero-card p { margin: 0; font-size: 0.95rem; }
.hero-card strong { color: var(--pine-dark); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--pine);
  color: #fff;
  padding: 20px 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: center;
  text-align: center;
}
.trust-strip span { font-weight: 600; font-size: 0.99rem; white-space: nowrap; }
.trust-strip .dot { color: var(--amber); }

/* ---------- Two-column with photo ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.split img.photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--pine-dark);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; }

.how-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  margin-bottom: 26px;
  max-height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Checklist ---------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.check-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  box-shadow: var(--shadow-sm);
}
.check-card h3 { display: flex; align-items: center; gap: 10px; }
.check-card h3 .ci { font-size: 1.3rem; }
.check-card ul { list-style: none; margin: 0; padding: 0; }
.check-card li {
  padding: 7px 0 7px 30px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.check-card li:last-child { border-bottom: none; }
.check-card li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--pine);
  font-weight: 800;
}
.check-card.wide { grid-column: 1 / -1; }
.check-note { margin-top: 20px; color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 860px) {
  .check-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--pine);
  box-shadow: var(--shadow);
  position: relative;
}
.price-flag {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { margin-bottom: 2px; }
.price-sub { color: var(--ink-soft); margin-bottom: 14px; font-size: 0.98rem; }
.price {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--pine-dark);
  line-height: 1;
}
.price small { font-size: 1rem; font-family: inherit; color: var(--ink-soft); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 2px; top: 6px;
  color: var(--pine); font-weight: 800;
}
.price-card .btn { margin-top: auto; }

.billing-box {
  max-width: 880px;
  margin: 28px auto 0;
  background: var(--amber-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.billing-box p { margin: 0 0 6px; }
.billing-box p:last-child { margin: 0; }

@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ---------- Guarantees ---------- */

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.guarantee {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
}
.guarantee .g-icon {
  font-size: 2rem;
  background: var(--pine-soft);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.guarantee p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .guarantee-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--pine-dark);
  padding: 14px 0;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--amber);
  font-weight: 700;
  flex: none;
}
.faq details[open ] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }

/* ---------- Photo report strip ---------- */

.report-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.report-strip img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.report-points { list-style: none; padding: 0; margin: 18px 0 0; }
.report-points li { padding: 8px 0 8px 32px; position: relative; }
.report-points li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px;
  color: var(--pine); font-weight: 800;
}
@media (max-width: 860px) {
  .report-strip { grid-template-columns: 1fr; }
}

/* ---------- CTA band + footer ---------- */

.cta-band {
  background: var(--pine);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebe2; max-width: 40em; margin: 0 auto 26px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band a { color: #fff; }
.area-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 30px;
}
.area-list span {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer {
  background: var(--pine-dark);
  color: #cfe0d5;
  padding: 38px 0;
  font-size: 0.93rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer p { margin: 0; }
.fineprint {
  background: var(--pine-dark);
  color: #9db8a8;
  font-size: 0.82rem;
  padding: 0 0 30px;
}
.fineprint p { margin: 0 0 6px; max-width: 62em; }
