/* The Rose Garden Elderly Care — San Jose, CA
   Palette: soft rose/blush, sage greens, warm cream
   Unique vs Joe's Place (sage/honey cottage), Hibiscus coral, Prairie terracotta,
   Lakeview teal, IC Monroeville slate.
   WCAG 2.2 AA floor: 4.5:1 body, 18px+, 44px targets, visible focus */
:root {
  --rose: #b76e79;
  --rose-deep: #8c4a55;
  --rose-soft: #f3e0e3;
  --blush: #d4a5ad;
  --sage: #6b8f71;
  --sage-deep: #3f5c45;
  --sage-soft: #dce8de;
  --sage-mist: #eef4ef;
  --cream: #faf7f2;
  --cream-warm: #f3ebe3;
  --ink: #2c2426;
  --muted: #5c5356;
  --line: #e0d4d0;
  --white: #ffffff;
  --focus: #2f5d8c;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(44, 36, 38, 0.09);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.125rem; /* 18px */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--rose-deep); color: #fff; padding: .75rem 1.1rem;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.utility-bar {
  background: linear-gradient(90deg, var(--rose-deep), #9a5a64 50%, var(--sage-deep));
  color: #faf6f4; font-size: .95rem;
}
.utility-bar .container {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .55rem 0;
}
.utility-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.utility-bar a:hover { color: var(--cream-warm); }

.site-header {
  background: rgba(250, 247, 242, .97);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--rose-deep); font-weight: 700;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2;
}
.logo .mark { flex-shrink: 0; }
.logo .tag {
  display: block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 600; color: var(--muted); letter-spacing: .03em;
}
.header-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.header-phone {
  color: var(--sage-deep); font-weight: 700; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .5rem;
}
.header-phone:hover { color: var(--rose-deep); }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .15rem .85rem; align-items: center;
}
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  min-height: 44px; display: inline-flex; align-items: center; padding: .25rem .2rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rose-deep); }
.nav-sub { position: relative; }
.nav-sub > ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: .5rem; flex-direction: column; gap: 0; z-index: 60;
}
.nav-sub:hover > ul, .nav-sub:focus-within > ul { display: flex; }
.nav-sub > ul a { padding: .55rem .75rem; width: 100%; }
.nav-toggle {
  display: none; min-height: 44px; min-width: 44px;
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  font-weight: 700; color: var(--ink); cursor: pointer; padding: .5rem .85rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn-primary { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.btn-sage { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.btn-sage:hover { background: #2f4634; color: #fff; }
.btn-light { background: var(--white); color: var(--rose-deep); border-color: var(--blush); }
.btn-light:hover { background: var(--rose-soft); color: var(--rose-deep); }
.btn-outline {
  background: transparent; color: var(--sage-deep); border-color: var(--sage);
}
.btn-outline:hover { background: var(--sage-soft); }

.hero {
  position: relative; min-height: clamp(320px, 52vw, 520px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
  background: var(--sage-deep);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72);
}
.hero-content {
  position: relative; z-index: 1; padding: 3rem 0 2.5rem;
  max-width: 40rem;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--blush); margin: 0 0 .5rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15; margin: 0 0 .75rem; font-weight: 600; color: #fff;
}
.hero-lead { margin: 0 0 1.25rem; font-size: 1.15rem; color: #f7f0ef; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(44,20,28,.72) 0%, rgba(44,20,28,.35) 55%, rgba(63,92,69,.25) 100%);
  z-index: 0;
}

.page-hero {
  background: linear-gradient(135deg, var(--rose-soft), var(--sage-mist) 60%, var(--cream));
  padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 .6rem; color: var(--rose-deep); font-weight: 600; line-height: 1.2;
}
.page-hero .lede { margin: 0; color: var(--muted); max-width: 42rem; font-size: 1.1rem; }

.section { padding: 3rem 0; }
.section-alt { background: var(--sage-mist); }
.section-rose { background: var(--rose-soft); }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  color: var(--sage-deep); margin: 0 0 1rem; font-weight: 600; line-height: 1.25;
}
.section h3 {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--rose-deep);
  margin: 1.5rem 0 .6rem; font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 48rem; }
.prose p, .prose li { max-width: 48rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .35rem 0; }
.note {
  background: var(--cream-warm); border-left: 4px solid var(--rose);
  padding: 1rem 1.15rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0;
  color: var(--muted); font-size: 1.02rem;
}

.grid-2, .grid-3, .grid-4 {
  display: grid; gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card img { border-radius: 10px; margin-bottom: .85rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.price-card {
  text-align: center; padding: 1.5rem 1.25rem;
}
.price-card .amount {
  font-family: var(--font-display); font-size: 2rem; color: var(--rose-deep);
  font-weight: 600; margin: .35rem 0;
}
.price-card .label { color: var(--muted); font-size: .95rem; }

.cta-band {
  background: linear-gradient(120deg, var(--rose-deep), #7a4a55 45%, var(--sage-deep));
  color: #fff; padding: 2.5rem 0; text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 .75rem; font-family: var(--font-display); font-size: 2rem; }
.cta-band p { margin: 0 auto 1.25rem; max-width: 36rem; color: #f5e8ea; }
.cta-band .btn { margin: .25rem; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.gallery-grid figure {
  margin: 0; background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption {
  padding: .75rem 1rem; font-size: .92rem; color: var(--muted);
}

.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1.1rem; margin: .65rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--sage-deep);
  min-height: 44px; display: flex; align-items: center;
}
.faq details[open] summary { color: var(--rose-deep); margin-bottom: .5rem; }
.faq details p { margin: 0 0 .5rem; color: var(--muted); }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-weight: 700; margin-bottom: .35rem; color: var(--ink);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 44px; padding: .65rem .85rem; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
  color: var(--ink);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

.footer-map {
  background: var(--cream-warm); border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.footer-map iframe {
  width: 100%; max-width: 100%; height: 320px; border: 0; border-radius: var(--radius);
  display: block;
}
.site-footer {
  background: #2a2224; color: #e8e0e2; padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #f0d0d5; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h2, .site-footer h3 {
  font-family: var(--font-display); color: #fff; font-size: 1.2rem;
  margin: 0 0 .75rem; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; }
.footer-nap address { font-style: normal; line-height: 1.7; }
.social-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.social-list a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: .45rem .85rem;
  border: 1px solid #5a4548; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem;
}
.footer-bottom {
  border-top: 1px solid #4a3a3d; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  justify-content: space-between; font-size: .92rem; color: #b8aeb0;
}
.footer-legal a { margin-right: .85rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; order: 5;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 12px; padding: .75rem 1rem; margin-top: .35rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-sub > ul {
    position: static; display: none; box-shadow: none; border: none;
    padding-left: .75rem; background: transparent;
  }
  .nav-sub.is-open > ul, .nav-sub:focus-within > ul { display: flex; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
