/* The William Senior Living — warm limestone + deep indigo + terracotta + cream */
:root {
  --limestone: #c4b6a0;
  --limestone-deep: #a8967c;
  --limestone-soft: #ddd3c2;
  --indigo: #2d375c;
  --indigo-deep: #1e2540;
  --indigo-mid: #3d4a73;
  --indigo-soft: #e8ebf4;
  --terracotta: #c46244;
  --terracotta-deep: #a34e35;
  --terracotta-soft: #f3e0d8;
  --cream: #f7f2e9;
  --cream-bright: #fcf9f4;
  --ink: #1c2233;
  --muted: #5a6174;
  --line: #d9d0c2;
  --white: #ffffff;
  --focus: #c46244;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(30, 37, 64, 0.12);
  --shadow-soft: 0 4px 18px rgba(30, 37, 64, 0.08);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--cream-bright) 0%, var(--cream) 40%, #efe8dc 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-mid); text-underline-offset: 0.18em; }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--indigo);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

/* Utility bar — limestone band */
.utility-bar {
  background: linear-gradient(90deg, var(--limestone-deep), var(--limestone));
  color: var(--indigo-deep);
  font-size: 0.9rem;
  font-weight: 500;
}
.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
}
.utility-bar a {
  color: var(--indigo-deep);
  font-weight: 700;
  text-decoration: none;
}
.utility-bar a:hover { color: var(--terracotta-deep); text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 249, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  min-width: 0;
}
.logo svg { flex-shrink: 0; }
.logo .tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--indigo);
  background: var(--cream-bright);
  color: var(--indigo);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--indigo); color: var(--cream); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  color: var(--indigo);
  font-weight: 560;
  font-size: 0.92rem;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--indigo-soft);
  color: var(--indigo-deep);
}
.site-nav .nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  margin-left: 0.25rem;
}
.site-nav .nav-cta:hover { background: var(--terracotta-deep); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream-bright);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.1rem;
    gap: 0.2rem;
  }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
}

/* Hero — limestone panel with indigo overlay band */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.75rem 0 2.25rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  color: var(--indigo-deep);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.25rem; }
.hero-alnm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracotta-soft);
  border: 1px solid #e5c4b6;
  color: var(--terracotta-deep);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero-alnm:hover { background: #efd2c6; color: var(--terracotta-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.hero-meta { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--limestone-soft);
  aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(45, 55, 92, 0.92);
  color: var(--cream);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  max-width: min(90%, 280px);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .hero-visual { order: -1; max-height: 320px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-deep); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-secondary:hover { background: var(--indigo); color: var(--cream); }
.btn-ghost {
  background: var(--indigo-soft);
  color: var(--indigo-deep);
}
.btn-ghost:hover { background: #d8deef; color: var(--indigo-deep); }

/* Sections */
.section { padding: 3rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(232,235,244,0.45));
  border-block: 1px solid var(--line);
}
.section-limestone {
  background:
    linear-gradient(135deg, rgba(196,182,160,0.35), rgba(247,242,233,0.9)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(168,150,124,0.06) 12px, rgba(168,150,124,0.06) 24px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--indigo-deep);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 600;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--indigo);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}
p { margin: 0 0 1rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(45,55,92,0.06), transparent 55%),
    var(--cream-bright);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  color: var(--indigo-deep);
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.15;
}

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.card h3 { margin-top: 0; }
.card a.card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--terracotta);
}
.card a.card-link:hover { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--limestone-soft);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: inset 0 0 0 3px var(--terracotta-soft);
}

.cta-band {
  background: var(--indigo);
  color: var(--cream);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2, .cta-band p { color: inherit; }
.cta-band p { opacity: 0.92; margin-bottom: 0; }
.cta-band .btn-primary { background: var(--terracotta); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--indigo);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.price-card.featured { border-top-color: var(--terracotta); background: var(--cream-bright); }
.price-card .tier {
  font-weight: 700;
  color: var(--indigo);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--indigo-deep);
  font-weight: 650;
  line-height: 1;
}
.price-card .note { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.call-rates {
  display: inline-block;
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-weight: 800;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  margin: 0.5rem 0 1rem;
}

.notice {
  background: var(--indigo-soft);
  border-left: 4px solid var(--indigo);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}
.notice.soft {
  background: #f4ebe3;
  border-left-color: var(--limestone-deep);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--limestone-soft);
}
.gallery-item figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--indigo);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--terracotta);
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p:last-child { margin-bottom: 0.25rem; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 650; color: var(--indigo-deep); font-size: 0.95rem; }
.req { color: var(--terracotta); }
input, select, textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream-bright);
  color: var(--ink);
}
input:hover, select:hover, textarea:hover { border-color: var(--limestone-deep); }
.form-hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; }

/* Footer */
.site-footer {
  background: var(--indigo-deep);
  color: #d7dceb;
  margin-top: 3rem;
  padding: 2.75rem 0 1.5rem;
}
.site-footer a { color: #f0e7d8; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 {
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.footer-nap p { margin: 0 0 0.35rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240,231,216,0.45);
}
.footer-map {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #111;
}
.footer-map iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 320px !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.9rem;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

/* Misc */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--indigo-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
table.compare th, table.compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th { background: var(--indigo); color: var(--cream); }
table.compare tr:last-child td { border-bottom: 0; }

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