/* ============================================================
   Vegas Home Health Partners — Shared Theme
   Used by: Homepage.html, About.html, Services.html, Contact.html,
            services/*.html
   Source of truth for tokens, nav, footer, buttons, section frame.
   ============================================================ */

:root {
  --bg: #FAF6F0;
  --bg-elevated: #FFFFFF;
  --bg-warm: #F1E9D8;
  --bg-deep: #2B4332;
  --bg-deeper: #1F3024;
  --text: #1A1F1B;
  --text-secondary: #5A5F58;
  --text-muted: #666A63;
  --border: #E5DECC;
  --border-strong: #C9C0A6;
  --accent: #B8442A;
  --accent-hover: #9C3620;
  --gold: #B89968;
  --shadow-sm: 0 1px 2px rgba(26, 31, 27, 0.04), 0 2px 4px rgba(26, 31, 27, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 31, 27, 0.06), 0 2px 4px rgba(26, 31, 27, 0.04);
  --shadow-lg: 0 24px 48px rgba(26, 31, 27, 0.08), 0 8px 16px rgba(26, 31, 27, 0.04);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--bg-deep); color: #F1E9D8; }

/* ===== Announcement bar ===== */
.announce {
  background: var(--bg-deep);
  color: #F1E9D8;
  font-size: 13px;
  text-align: center;
  padding: 9px var(--gutter);
  letter-spacing: 0.02em;
}
.announce strong { color: #fff; font-weight: 500; }
.announce a { border-bottom: 1px solid rgba(241, 233, 216, 0.4); }

/* ===== Navigation ===== */
nav.primary {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background-image: url('/assets/logo-mark.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}
.nav-links a { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current { font-weight: 500; }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone {
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}
.nav-hours {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-phone-mobile {
  display: none;
  color: var(--text);
  padding: 8px;
  margin-right: 4px;
}
@media (max-width: 1180px) {
  .nav-hours { display: none; }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

@media (max-width: 940px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-phone-mobile { display: inline-flex; align-items: center; }
  .nav-cta .btn-primary { display: none; }
  .nav-inner { gap: 12px; padding: 14px var(--gutter); }
  .logo { font-size: 17px; }
  .logo small { font-size: 9px; letter-spacing: 0.12em; }
  .logo-mark { width: 32px; height: 32px; }

  /* Mobile menu open state */
  nav.primary.is-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter);
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  nav.primary.is-mobile-open .nav-links a {
    font-size: 17px;
    padding: 6px 0;
  }
  /* Hamburger animates into an X when open */
  nav.primary.is-mobile-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.primary.is-mobile-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  nav.primary.is-mobile-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--bg-deep); color: #F1E9D8; }
.btn-dark:hover { background: var(--bg-deeper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-warm); }

/* ===== Section frame ===== */
section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.container { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 760px;
  text-wrap: pretty;
}
h2.section-title em { font-style: italic; color: var(--bg-deep); }

.section-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 56px;
  text-wrap: pretty;
}

/* ===== Page hero (subpages) ===== */
.page-hero {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 153, 104, 0.08), transparent 50%),
    var(--bg);
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-deep);
  margin-bottom: 24px;
  padding: 7px 14px;
  background: rgba(43, 67, 50, 0.06);
  border-radius: 999px;
  width: fit-content;
}
.page-hero-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--bg-deep); border-radius: 50%; }
h1.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: pretty;
}
h1.page-hero-title em { font-style: italic; color: var(--bg-deep); font-weight: 400; }
.page-hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 540px;
}
.page-hero-side {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--text);
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  max-width: 380px;
}
.page-hero-side small {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 820px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

/* ===== Trust bar ===== */
.trust {
  background: var(--bg-deep);
  color: #F1E9D8;
  padding: 20px var(--gutter);
}
.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.trust-item { display: flex; align-items: center; gap: 8px; opacity: 0.92; }
.trust-item svg { flex-shrink: 0; }
.trust-divider { width: 1px; height: 16px; background: rgba(241, 233, 216, 0.2); }
@media (max-width: 768px) { .trust-divider { display: none; } }

/* ===== Final CTA ===== */
.final-cta {
  background: var(--bg-deep);
  color: #F1E9D8;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 153, 104, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 153, 104, 0.1), transparent 50%);
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta .section-eyebrow { color: rgba(241, 233, 216, 0.6); justify-content: center; }
.final-cta .section-eyebrow::before { background: rgba(241, 233, 216, 0.6); }
.final-cta h2 { color: #F1E9D8; margin: 0 auto 20px; }
.final-cta h2 em { color: var(--gold); }
.final-cta p {
  color: rgba(241, 233, 216, 0.75);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.final-cta .btn-primary { background: var(--gold); color: var(--bg-deeper); }
.final-cta .btn-primary:hover { background: #C9A876; }
.final-cta .btn-ghost { color: #F1E9D8; border-color: rgba(241, 233, 216, 0.3); }
.final-cta .btn-ghost:hover { background: rgba(241, 233, 216, 0.08); }
.final-cta-meta {
  margin-top: 32px;
  font-size: 13px;
  color: rgba(241, 233, 216, 0.5);
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-deeper);
  color: rgba(241, 233, 216, 0.7);
  padding: 64px var(--gutter) 32px;
  font-size: 14px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(241, 233, 216, 0.1);
}
.footer-brand .logo { color: #F1E9D8; }
.footer-brand p { margin-top: 16px; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  color: #F1E9D8;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #F1E9D8; }

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(241, 233, 216, 0.72);
}
.footer-legal-creds { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal-creds span strong { color: rgba(241, 233, 216, 0.8); font-weight: 500; }

.emergency {
  background: rgba(184, 68, 42, 0.12);
  border: 1px solid rgba(184, 68, 42, 0.3);
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 32px;
  font-size: 13px;
  color: rgba(241, 233, 216, 0.85);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.emergency strong { color: #F1E9D8; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Mobile sticky CTA bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  gap: 8px;
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-bar .mb-call { background: var(--bg-deep); color: #F1E9D8; }
.mobile-bar .mb-text { background: var(--bg-warm); color: var(--text); }
.mobile-bar .mb-refer { background: var(--accent); color: #fff; }
@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Subpage helpers ===== */
.bleed-warm { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bleed-elevated { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bleed-deep { background: var(--bg-deep); color: #F1E9D8; }
.bleed-deep h2.section-title { color: #F1E9D8; }
.bleed-deep h2.section-title em { color: var(--gold); }
.bleed-deep .section-eyebrow { color: rgba(241, 233, 216, 0.6); }
.bleed-deep .section-eyebrow::before { background: rgba(241, 233, 216, 0.6); }
.bleed-deep .section-lead { color: rgba(241, 233, 216, 0.75); }

/* Very narrow phones: keep the header on one line */
@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .logo { font-size: 15px; }
  .logo small { font-size: 8px; }
}
@media (max-width: 360px) {
  .logo-mark { display: none; }
  .logo { font-size: 14px; }
  .logo small { display: none; }
}
/* Tablet widths: the full nav does not fit between 941 and 1100px; drop the button and hours, keep the phone number */
@media (min-width: 941px) and (max-width: 1100px) {
  .nav-cta .btn-primary { display: none; }
  .nav-hours { display: none; }
}

/* ===== Skip link + main landmark ===== */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; padding: 12px 16px; background: #FFFFFF; color: #1F3024; font-weight: 500; border-radius: 0 0 8px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.skip-link:focus { left: 0; top: 0; outline: 2px solid #2B4332; }
main:focus { outline: none; }

/* ===== Shared FAQ + ZIP table (moved from per-page inline styles so area/Spanish pages can use them) ===== */
.faq { background: var(--bg); border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 0.6fr 1fr; gap: 80px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
details.q { border-bottom: 1px solid var(--border); padding: 24px 0; cursor: pointer; }
details.q:first-child { border-top: 1px solid var(--border); }
details.q summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
details.q summary::-webkit-details-marker { display: none; }
.q-icon { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; display: grid; place-items: center; transition: all 0.3s; }
.q-icon::before { content: "+"; font-size: 18px; line-height: 1; color: var(--text-secondary); font-weight: 300; transition: transform 0.3s; }
details.q[open] .q-icon { background: var(--bg-deep); border-color: var(--bg-deep); }
details.q[open] .q-icon::before { color: #F1E9D8; transform: rotate(45deg); }
details.q .answer { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-top: 14px; padding-right: 52px; }
.area-zips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 32px; padding: 24px; background: rgba(0, 0, 0, 0.15); border-radius: 4px; border: 1px solid rgba(241, 233, 216, 0.1); }
.area-zip { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(241, 233, 216, 0.08); color: inherit; text-decoration: none; }
.area-zip:nth-last-child(-n+2) { border-bottom: none; }
.area-zip span:last-child { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 13px; }
a.area-zip:hover span:first-child { text-decoration: underline; }
.spec-zips .area-zips { background: var(--bg-warm); border-color: var(--border); }
.spec-zips .area-zip { border-bottom-color: var(--border); }
.spec-zips .area-zip span:last-child { color: var(--text-secondary); }
.spec-what-body > h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 32px 0 14px; }
.spec-what-body > h3:first-of-type { margin-top: 0; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .area-zips { grid-template-columns: 1fr; } }
