/* San Diego Senior Moves: shared styles. Large, high-contrast type for older eyes. */
:root {
  --sage: #4f6b2e;        /* buttons, links (7:1 on white) */
  --sage-dark: #3b5221;
  --sage-mid: #7c9a4f;
  --sage-light: #eef3e5;
  --cream: #f7f1e6;
  --cream-dark: #ede3d0;
  --ink: #22281e;
  --muted: #4a5343;
  --line: #d9dccf;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(34, 40, 30, 0.10);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-dark); }
:focus-visible { outline: 3px solid #c58b1c; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 76px 0; }
.section.alt { background: var(--cream); }
.section.sage { background: var(--sage-light); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 740px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 36px; }
.leaf { display: block; width: 56px; height: 4px; background: var(--sage-mid); border-radius: 4px; margin: 14px 0 0; }
.center .leaf { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--line); padding-left: 16px; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand-text span { font-size: .85rem; color: var(--muted); }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; }
.header-phone { color: var(--sage); font-size: 1.45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-note { font-size: .82rem; color: var(--muted); }
.header-nav { border-top: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px; padding-block: 8px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sage); box-shadow: inset 0 -3px 0 var(--sage-mid); }
.nav a.btn, .nav a.btn:hover { color: var(--white); box-shadow: none; padding: 9px 18px; }
.nav-toggle { display: none; background: var(--white); border: 2px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .brand-text, .header-note { display: none; }
  .brand img { height: 46px; }
  .header-phone { font-size: 1.1rem; }
  .header-contact { margin-left: auto; }
  .nav-toggle { display: block; }
  .header-nav { border-top: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); padding: 0; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); max-width: none; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 20px; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sage-mid); }
  .nav a.btn { margin: 14px 20px; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header-phone { font-size: 1rem; }
  .header-top { gap: 10px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--sage); color: var(--white); text-decoration: none; font-family: var(--sans); font-weight: 700; padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1.05rem; line-height: 1.3; transition: background .15s ease, transform .15s ease; text-align: center; }
.btn:hover { background: var(--sage-dark); color: var(--white); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--sage-dark); border: 2px solid var(--sage); }
.btn.secondary:hover { background: var(--sage); color: var(--white); }
.btn.light { background: var(--white); color: var(--sage-dark); }
.btn.light:hover { background: var(--cream); color: var(--sage-dark); }
.btn.small { padding: 11px 20px; font-size: .98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.call-link { font-weight: 700; font-size: 1.1rem; text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-photo { position: relative; justify-self: center; }
.hero-photo img { width: 300px; max-width: 100%; border-radius: 200px 200px 24px 24px; background: var(--sage-light); }
.hero-badge { position: absolute; left: -24px; bottom: 28px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; font-size: .9rem; line-height: 1.35; }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--sage-dark); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .98rem; }
.trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-mid); flex: none; }
.page-hero { background: var(--cream); padding: 56px 0 48px; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .9rem; margin-bottom: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 48px; }
  .hero-photo img { width: 200px; }
  .hero-badge { left: auto; right: -70px; bottom: 16px; }
}

/* Paths ("Which describes you?") */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.path:hover { border-color: var(--sage-mid); transform: translateY(-2px); color: var(--ink); }
.path .who { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.path h3 { margin: 8px 0 10px; }
.path p { color: var(--muted); flex: 1; }
.path .go { font-weight: 700; color: var(--sage); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* Grids, cards, lists */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.alt .card, .section.sage .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); color: var(--sage-dark); font-weight: 700; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 36px; margin-bottom: .6em; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); color: var(--white); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.center-v { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .25em; padding-top: 6px; }
.note { background: var(--sage-light); border-left: 5px solid var(--sage-mid); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
table.compare { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .98rem; background: var(--white); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--sage-light); font-family: var(--serif); }
.table-scroll { overflow-x: auto; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--sage-mid); border-radius: 22px; overflow: hidden; }
.guide-cover { background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%); padding: 26px 24px 22px; text-align: center; border-bottom: 1px solid var(--line); }
.guide-cover span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.guide-cover strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .03em; line-height: 1.2; color: var(--ink); text-transform: uppercase; }
.guide-card.family .guide-cover { background: linear-gradient(160deg, var(--sage-light) 0%, #dfe9cf 100%); }
.guide-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.guide-body h3 { margin-bottom: .35em; }
.guide-body p { color: var(--muted); font-size: 1rem; flex: 1; }
.guide-body .btn { align-self: flex-start; }
.tag { align-self: flex-start; background: var(--sage-light); color: var(--sage-dark); font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.stars { color: #b8860b; font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
.review figcaption { color: var(--sage-dark); font-size: .98rem; }

/* Meet Betty */
.meet { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.meet img { border-radius: 24px; background: var(--sage-light); width: 280px; }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } .meet img { width: 220px; } }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.creds li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 700; margin: 0; }

/* Services list */
.services { display: grid; gap: 14px; }
.service { display: grid; grid-template-columns: 260px 1fr; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.service h3 { margin: 0; background: var(--sage); color: var(--white); font-family: var(--sans); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: 20px 22px; display: flex; align-items: center; }
.service p { margin: 0; padding: 18px 22px; display: flex; align-items: center; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; } .service h3 { padding: 14px 20px; } }

/* CTA band */
.cta-band { background: var(--sage); color: var(--white); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; max-width: 640px; opacity: .95; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.cta-phone { color: var(--white); font-weight: 700; }
.cta-phone:hover { color: var(--cream); }
@media (max-width: 860px) { .cta-inner { flex-direction: column; align-items: flex-start; } .cta-actions { align-items: flex-start; } }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border-top: 6px solid var(--sage-mid); }
.form-card h3 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 2px solid #b9bfae; border-radius: 10px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(79,107,46,.2); }
fieldset.who-for { border: 0; padding: 0; margin: 0 0 16px; }
.who-for legend { font-weight: 700; font-size: .98rem; margin-bottom: 8px; padding: 0; }
.who-for label { display: flex; align-items: center; gap: 10px; font-weight: 400; border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; }
.who-for label:has(input:checked) { border-color: var(--sage); background: var(--sage-light); }
.who-for input, .sms-consent input { width: 22px; height: 22px; accent-color: var(--sage); flex: none; margin: 0; }
.sms-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .8rem; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
.sms-consent input { width: 18px; height: 18px; margin-top: 2px; }
.lead-form .btn { width: 100%; margin-top: 6px; }
.consent { font-size: .8rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.email-hint { font-size: .9rem; margin: 6px 0 0; }
.email-hint button { background: none; border: 0; padding: 0; color: var(--sage); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Guide popup */
.dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--ink); }
.dialog::backdrop { background: rgba(34,40,30,.6); }
.dialog form { padding: 30px; position: relative; }
.dialog h3 { font-size: 1.55rem; margin-bottom: .25em; padding-right: 30px; }
.dialog-sub { color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 2.2rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 10px; }
.dialog-close:hover { color: var(--ink); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--sage); }
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul { padding: 0 22px; }
.faq details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Footer */
.site-footer { background: #283021; color: #e8eadf; padding: 60px 0 100px; font-size: .95rem; }
.site-footer a { color: #e8eadf; }
.site-footer a:hover { color: var(--white); }
.site-footer h3 { color: var(--white); font-size: 1.15rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { width: 220px; margin-bottom: 18px; }
.designations { color: #c9d5b0; font-weight: 700; margin-top: -.4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 24px; font-size: .82rem; color: #c3c8b8; }
.legal a { color: #c3c8b8; }

/* Mobile call bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 18px rgba(0,0,0,.15); padding-bottom: env(safe-area-inset-bottom); background: var(--white); }
  .mobile-cta a { padding: 16px; text-align: center; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
  .mobile-cta .call { background: var(--sage); color: var(--white); }
  .mobile-cta .value { background: var(--cream); color: var(--sage-dark); }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
