/* ============================================================
   Luxor Care Home Health Services — Modern design system
   Direction: clean contemporary — deep oxblood/rust (brand),
   warm cream, gold accent, Manrope display, bento services grid.
   ============================================================ */

:root {
  --oxblood: #6b1f2a;
  --oxblood-2: #8a2f3a;
  --oxblood-3: #4a141c;
  --rust: #a63d2f;
  --gold: #c9a227;
  --gold-soft: #f3e7c8;
  --cream: #faf6f0;
  --cream-2: #f3ece2;
  --paper: #fffdf9;
  --ink: #2b1d1a;
  --muted: #6f5f58;
  --line: #e8ddd2;

  --font-display: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(43, 29, 26, 0.06);
  --shadow-md: 0 16px 40px rgba(43, 29, 26, 0.10);
  --shadow-lg: 0 28px 64px rgba(43, 29, 26, 0.16);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--oxblood);
  color: #fff;
  box-shadow: 0 8px 24px rgba(107, 31, 42, 0.30);
}
.btn-primary:hover { background: var(--oxblood-2); transform: translateY(-1px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--oxblood); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 60px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) { font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.15s ease; }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.btn-nav { padding: 11px 22px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero (full-bleed)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--oxblood-3); color: #fff; }
.hero-media {
  position: absolute; inset: 0;
  background: url('/images/hero.webp') center / cover no-repeat;
  filter: saturate(0.95);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(74, 20, 28, 0.95) 0%, rgba(74, 20, 28, 0.85) 45%, rgba(74, 20, 28, 0.45) 100%);
}
.hero-inner { position: relative; padding: 120px 24px 130px; max-width: 640px; }
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold); }
.hero-sub { margin-top: 20px; font-size: 1.16rem; color: rgba(255,255,255,0.86); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats { background: var(--oxblood); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.78); }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--paper); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-seal {
  position: absolute;
  bottom: -28px;
  right: -16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}
.seal-badge { font-size: 0.8rem; font-weight: 700; color: var(--oxblood); line-height: 1.4; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.about-muted { color: var(--muted); font-size: 1rem !important; }
.about-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); }
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rust);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ============================================================
   Services (bento grid)
   ============================================================ */
.services { background: var(--cream-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.services-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rust); }
.card-lg { grid-column: span 2; }
.card-wide { grid-column: span 3; }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; color: var(--ink); }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-lg .card-body { padding: 34px; }
.card-lg h3 { font-size: 1.4rem; }

/* ============================================================
   Coverage
   ============================================================ */
.coverage { background: var(--paper); }
.coverage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.county {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.county:hover { border-color: var(--rust); background: var(--gold-soft); transform: translateY(-2px); }

/* ============================================================
   Mission
   ============================================================ */
.mission { background: var(--oxblood-3); position: relative; overflow: hidden; }
.mission::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
}
.mission-inner { display: flex; justify-content: center; position: relative; }
.mission-card { max-width: 760px; text-align: center; }
.mission .kicker { color: var(--gold); }
.mission-card h2 { color: #fff; margin-bottom: 18px; }
.mission-text { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 62ch; margin: 0 auto; }
.mission-quote {
  margin: 36px auto 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 44ch; }

.contact-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.panel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: none; }
.panel-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rust); flex-shrink: 0; }
.panel-value { font-weight: 600; color: var(--ink); text-align: right; font-size: 1rem; }
.panel-value a:hover, .panel-value:hover { color: var(--rust); }

/* ============================================================
   Notice
   ============================================================ */
.notice { background: var(--cream); padding: 56px 0; border-top: 1px solid var(--line); }
.notice-title { font-size: 1.1rem; margin-bottom: 12px; }
.notice p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 85ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--oxblood-3); color: rgba(255,255,255,0.82); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: #fff; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 0.95rem; color: rgba(255,255,255,0.72); line-height: 1.5; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; padding-bottom: 22px; font-size: 0.86rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   Reveal
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 480px; }
  .services-bento { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-column: span 2; }
  .card-wide { grid-column: span 2; }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .btn-nav { margin-top: 16px; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 560px) {
  .services-bento { grid-template-columns: 1fr; }
  .card-lg, .card-wide { grid-column: span 1; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: 1fr; }
  .panel-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .panel-value { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-seal { right: 0; }
}
