/* ==========================================================================
   Alliance Group Home Design System v2 "Riverhouse"
   Deep marine ink + burnished copper + warm bone. Editorial, quiet luxury.
   NOTE: legacy variable names (--green-*, --gold, --cream) are kept as
   aliases so existing markup keeps working; their values now map to the
   new palette.
   ========================================================================== */

:root {
  /* new palette */
  --ink-950: #0f2233;
  --ink-900: #14304a;
  --ink-800: #1b4165;
  --ink-700: #275a8a;
  --ink-600: #3873ab;
  --ink-100: #dce8f2;
  --ink-50: #edf4f9;
  --copper: #c5872b;
  --plum: #5c3f85;
  --plum-bright: #b18fdd;
  --logo-blue: #1d5fa8;
  --logo-blue-bright: #2f79c9;
  --cyan: #0eacdb;
  --cyan-bright: #4cc3e8;
  --copper-bright: #eda54a;
  --copper-deep: #8a5a10;
  --bone: #f4f1ea;
  --panel: #fdfbf7;
  --sand: #e9e3d6;

  /* legacy aliases (do not remove; used across pages) */
  --green-950: var(--ink-950);
  --green-900: var(--ink-900);
  --green-800: var(--ink-800);
  --green-700: var(--ink-700);
  --green-600: var(--ink-600);
  --green-100: var(--ink-100);
  --green-50: var(--ink-50);
  --cream: var(--bone);
  --cream-dark: var(--sand);
  --gold: var(--copper);
  --gold-soft: var(--copper-bright);

  --ink: #232a2f;
  --ink-soft: #4e585f;
  --ink-mute: #656f77;
  --white: var(--panel);
  --line: #ddd5c6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 38, 0.05), 0 6px 18px rgba(16, 28, 38, 0.05);
  --shadow-md: 0 2px 6px rgba(16, 28, 38, 0.06), 0 18px 44px rgba(16, 28, 38, 0.10);
  --shadow-lg: 0 4px 10px rgba(16, 28, 38, 0.08), 0 34px 80px rgba(16, 28, 38, 0.18);
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  /* faint paper grain, tiled */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bone);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior: none;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink-950);
  margin: 0 0 0.45em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
a { color: var(--logo-blue); }

em, .italic { font-family: var(--font-display); font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 44px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--logo-blue)); }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; line-height: 1.75; }
.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 44px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--logo-blue), var(--cyan)); }
.section { padding: clamp(76px, 9.5vw, 130px) 0; }
.section-tight { padding: clamp(52px, 6vw, 84px) 0; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--bone); }

/* dark section base: ink with faint grain + copper glow */
.dark-panel {
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(14, 172, 219, 0.16), transparent 62%),
    radial-gradient(700px 380px at 5% 110%, rgba(111, 77, 158, 0.16), transparent 60%),
    var(--grain);
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--copper); color: #fff; padding: 12px 20px;
  border-radius: 0 0 6px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink-900); color: var(--bone); }
.btn-primary:hover { background: var(--ink-700); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--logo-blue); color: #fff; }
.btn-gold:hover { background: var(--logo-blue-bright); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(35, 42, 47, 0.35); color: var(--ink-900); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-900); background: rgba(16, 28, 38, 0.04); }
.on-dark .btn-ghost, .dark-panel .btn-ghost, .cta-band .btn-ghost, .page-hero .btn-ghost
  { border-color: rgba(244, 241, 234, 0.45); color: var(--bone); }
.on-dark .btn-ghost:hover, .dark-panel .btn-ghost:hover, .cta-band .btn-ghost:hover
  { border-color: var(--bone); background: rgba(244, 241, 234, 0.08); }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.top-strip {
  background: var(--ink-950); color: #a9c4dc; font-size: 0.82rem;
  padding: 9px 0; letter-spacing: 0.02em;
}
.top-strip .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top-strip a { color: var(--cyan-bright); text-decoration: none; font-weight: 500; }
.top-strip a:hover { text-decoration: underline; }
.top-strip .dot { color: #3a5570; margin: 0 8px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 213, 198, 0.6);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(16, 28, 38, 0.08); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand > span { display: block; }
img.brand-mark { width: auto; height: 48px; flex: none; }
/* the emblem sits on a light tile in dark footers so its blues stay legible */
.site-footer img.brand-mark { background: var(--panel); padding: 7px 10px; border-radius: 14px; height: 58px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.34rem;
  color: var(--ink-950); line-height: 1.05; letter-spacing: 0.01em; white-space: nowrap;
}
.brand-sub { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--plum); font-weight: 600; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; white-space: nowrap;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.02em; border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
@media (max-width: 1600px) and (min-width: 1121px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 1330px) and (min-width: 1121px) {
  .nav-links a { padding: 10px 9px; font-size: 0.84rem; }
}
.nav-links a:hover { color: var(--ink-950); }
.nav-links a[aria-current="page"] { color: var(--logo-blue); border-bottom-color: var(--logo-blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-links .menu-cta { display: none; }
.nav-cta .btn { padding: 12px 20px; font-size: 0.72rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 48px; height: 48px; flex: none; cursor: pointer; color: var(--ink-900);
  align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--logo-blue); color: var(--logo-blue); }
.nav-toggle:active { transform: scale(0.92); background: var(--ink-50); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--ink-950); border-color: var(--ink-950); color: var(--bone); }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .menu-cta { border-bottom: none; padding-top: 14px; }
  .nav-links .menu-cta .btn-gold {
    display: flex; justify-content: center; width: 100%;
    color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; border-bottom: none;
  }
  .nav-links .menu-cta .btn-gold:hover { color: #fff; background: var(--logo-blue-bright); }
  .nav-links a { padding: 13px 12px; font-size: 1.02rem; border-bottom: 1px solid rgba(221,213,198,0.4); }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .top-strip .strip-right { display: none; }
  /* keep search + hamburger; the drawer CTA and sticky call-bar carry
     Call/Schedule. The brand shrinks and ellipsizes so the controls are
     never clipped, even at 320px. */
  .site-header .wrap { padding: 0 16px; }
  .nav-bar { height: 72px; gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand > span { min-width: 0; }
  .brand-name { font-size: 1.02rem; display: block; overflow: hidden; text-overflow: ellipsis; }
  img.brand-mark { height: 38px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-gold, .nav-cta .btn-ghost { display: none; }
  .nav-links .menu-cta { display: block; }
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 10px; }
  ul.hero-badges > li { border-left: none; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after {
  /* faint copper hairline framing the hero bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 80px);
  align-items: center; padding: clamp(60px, 8vw, 120px) 0 clamp(64px, 8vw, 120px);
}
.hero h1 .accent { color: var(--plum); font-style: italic; font-weight: 500; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 38px; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.04em;
  border-left: 1px solid var(--line);
}
.hero-badges li:first-child { border-left: none; padding-left: 0; }
.hero-badges svg { color: var(--copper); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--ink-mute); margin-top: 20px; }
.hero-note a { color: var(--copper-deep); font-weight: 600; }

.hero-visual { position: relative; padding: 18px 18px 0 0; }
.hero-visual::before {
  /* amber frame offset behind the photo, echoing the arch */
  content: ""; position: absolute; top: 0; right: 0; width: 78%; height: 88%;
  border: 1px solid var(--copper); opacity: 0.55;
  border-radius: 260px 260px 22px 22px;
}
.hero-photo {
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6; position: relative;
  background: var(--ink-800);
  border-radius: 300px 300px 22px 22px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -26px; bottom: 40px;
  background: var(--panel); box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: 18px 22px; display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero-card .ic {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--ink-50); color: var(--logo-blue); display: grid; place-items: center;
}
.hero-card strong { display: block; color: var(--ink-950); font-size: 0.95rem; }
.hero-card span { font-size: 0.82rem; color: var(--ink-mute); }
.hero-card--top { left: auto; right: -16px; top: 44px; bottom: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-card { left: 10px; }
  .hero-card--top { right: 10px; }
}

/* ---------- Cinematic hero (homepage slideshow) ---------- */
.hero-cinema {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(560px, 92vh, 860px);
  background: var(--ink-950);
}
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide {
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slides .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slides .slide.is-active { opacity: 1; }
/* slow drift so the photos feel alive without stealing focus */
@keyframes hero-drift {
  from { transform: scale(1.02) translateX(0); }
  to   { transform: scale(1.12) translateX(-2.2%); }
}
.hero-slides .slide.is-active img { animation: hero-drift 15s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide.is-active img { animation: none; transform: none; }
}
/* tint: deep navy over the text side, easing off to the right, with the
   logo's cyan and plum breathing faintly at the edges */
.hero-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 96% 4%, rgba(14, 172, 219, 0.16), transparent 60%),
    radial-gradient(700px 460px at 2% 108%, rgba(111, 77, 158, 0.22), transparent 58%),
    linear-gradient(102deg, rgba(13, 28, 43, 0.94) 0%, rgba(13, 28, 43, 0.86) 34%, rgba(13, 28, 43, 0.55) 62%, rgba(13, 28, 43, 0.28) 100%);
}
.hero-tint::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; padding: clamp(90px, 12vh, 150px) 24px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero-content .inner { max-width: 640px; }
.hero-cinema h1 { color: var(--bone); }
.hero-cinema h1 .accent { color: var(--plum-bright); }
.hero-cinema .eyebrow { color: var(--cyan-bright); }
.hero-cinema .lead { color: #cfdce9; }
.hero-cinema .hero-badges li { color: #bccddd; border-left-color: rgba(244, 241, 234, 0.22); }
.hero-cinema .hero-note { color: #9db4c9; }
.hero-cinema .hero-note a { color: var(--cyan-bright); }
.hero-cinema .btn-ghost { border-color: rgba(244, 241, 234, 0.5); color: var(--bone); }
.hero-cinema .btn-ghost:hover { border-color: var(--bone); background: rgba(244, 241, 234, 0.08); }
/* slide dots */
.hero-dots { display: flex; gap: 10px; margin-top: 44px; }
.hero-dots button {
  width: 34px; height: 5px; border-radius: 3px; border: none; cursor: pointer;
  background: rgba(244, 241, 234, 0.28); padding: 0;
  transition: background 0.3s ease;
}
.hero-dots button:hover { background: rgba(244, 241, 234, 0.55); }
.hero-dots button.active { background: var(--cyan-bright); }
.hero-dots button:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; }
@media (max-width: 900px) {
  /* text spans the full width on small screens, so the tint stays strong edge to edge */
  .hero-tint {
    background:
      radial-gradient(500px 300px at 96% 0%, rgba(14, 172, 219, 0.14), transparent 60%),
      linear-gradient(180deg, rgba(13, 28, 43, 0.9) 0%, rgba(13, 28, 43, 0.84) 70%, rgba(13, 28, 43, 0.72) 100%);
  }
}
@media (max-width: 640px) {
  .hero-cinema { min-height: 86vh; }
  .hero-content { padding-top: 70px; padding-bottom: 90px; }
}

/* ---------- Trust bar (light, so the dark hero has a landing) ---------- */
.trust-bar { background-color: var(--panel); background-image: var(--grain); color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.trust-bar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-top: 40px; padding-bottom: 40px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 0 26px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item svg { color: var(--logo-blue); flex: none; margin-top: 3px; }
.trust-item strong { display: block; color: var(--ink-950); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.trust-item span { font-size: 0.83rem; }
@media (max-width: 900px) {
  .trust-bar .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 540px) {
  .trust-bar .wrap { grid-template-columns: 1fr; }
  .trust-item { border-left: none; padding: 0; }
}

/* ---------- Compliance strip ---------- */
.compliance {
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 400px at 90% -20%, rgba(237, 165, 74, 0.22), transparent 62%),
    radial-gradient(700px 380px at 5% 110%, rgba(111, 77, 158, 0.18), transparent 60%),
    var(--grain);
  color: rgba(255,255,255,0.88);
  border-top: 1px solid rgba(14, 172, 219, 0.35);
  border-bottom: 1px solid rgba(14, 172, 219, 0.35);
}
.compliance .wrap { padding-top: 46px; padding-bottom: 46px; text-align: center; }
.compliance .eyebrow { color: var(--cyan); }
.compliance h2 { color: #fff; margin: 6px 0 8px; }
.compliance .lead { color: rgba(255,255,255,0.82); max-width: 62ch; margin: 0 auto 26px; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
.cbadge { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; background: rgba(255,255,255,0.04); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; color: #fff; }
.cbadge svg { color: var(--cyan); flex: none; }
.compliance-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); max-width: 70ch; margin: 0 auto; }
.compliance-note a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 540px) {
  .cbadge { padding: 10px 14px; font-size: 0.84rem; }
}

/* ---------- Cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::after {
  content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--logo-blue), var(--plum)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 22px;
  background: var(--ink-50); border: 1px solid var(--ink-100);
  color: var(--logo-blue); display: grid; place-items: center;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; line-height: 1.7; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 600; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper-deep); text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.reverse > .split-media { order: 2; }
@media (max-width: 900px) { .split, .split.reverse > .split-media { grid-template-columns: 1fr; order: initial; } }
.split-media { position: relative; padding: 20px 0 0 20px; }
.split-photo {
  overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.4; background: var(--ink-800);
  border-radius: 22px 110px 22px 22px;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 60%;
  border-top: 1px solid var(--copper); border-left: 1px solid var(--copper);
  border-top-left-radius: 26px;
  opacity: 0.6; z-index: -1;
}

.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 0.98rem; }
.check-list svg { color: var(--copper); flex: none; margin-top: 4px; }
.check-list strong { color: var(--ink-950); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; }
.stat { text-align: center; padding: 10px 20px; border-left: 1px solid rgba(244,241,234,0.14); }
.stat:first-child { border-left: none; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 10px; margin-top: 44px; }
  .stat { border-left: none; padding: 0 6px; }
}
.stat b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw + 1rem, 3.2rem);
  color: var(--cyan-bright); line-height: 1; white-space: nowrap;
  /* Cormorant defaults to old-style figures (tiny 0/2, tall 7), which makes
     24/7 and 100% look broken; lining numerals keep every digit full height */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
/* the label only; > keeps it away from the counter span inside <b> */
.stat > span { font-size: 0.84rem; color: #a9c4dc; margin-top: 10px; display: block; letter-spacing: 0.03em; }
.stat b span { font: inherit; color: inherit; display: inline; margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 54px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step; padding: 0 30px;
  border-left: 1px solid rgba(244,241,234,0.14);
}
.step:first-child { border-left: none; padding-left: 0; }
@media (max-width: 960px) { .step:nth-child(3) { border-left: none; padding-left: 0; } }
@media (max-width: 560px) { .step { border-left: none; padding: 0; } }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; font-style: italic;
  display: block; color: var(--cyan-bright); line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; color: var(--bone); }
.step p { color: #a9c4dc; font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* ---------- Quote / testimonial ---------- */
.quote-panel {
  background: var(--panel); border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 76px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.quote-panel::before {
  content: "\201C"; position: absolute; top: -34px; left: 26px;
  font-family: var(--font-display); font-size: 14rem; color: var(--sand); line-height: 1;
}
.quote-text {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35;
  color: var(--ink-950); position: relative; max-width: 26em;
}
.quote-who { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.quote-who .avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: var(--ink-950); border: 1px solid var(--plum-bright);
  color: var(--plum-bright); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.quote-who strong { display: block; color: var(--ink-950); }
.quote-who span { font-size: 0.84rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 44px auto 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { background: transparent; border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 6px; font-family: var(--font-display); font-weight: 600; color: var(--ink-950); font-size: 1.3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.4rem; font-weight: 300; color: var(--copper);
  transition: transform 0.2s ease; flex: none; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 6px 26px; color: var(--ink-soft); font-size: 0.97rem; max-width: 68ch; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(700px 300px at 90% 0%, rgba(237, 165, 74, 0.3), transparent 62%),
    var(--grain);
  border: 1px solid rgba(237, 165, 74, 0.35);
  padding: clamp(48px, 6vw, 88px); text-align: center; color: var(--bone);
}
.cta-band h2 { color: var(--bone); }
.cta-band p { color: #a9c4dc; max-width: 56ch; margin: 0 auto 32px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.contact-line {
  display: flex; gap: 16px; align-items: flex-start; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.contact-line > div { min-width: 0; }
.contact-line a, .contact-line span { overflow-wrap: anywhere; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--ink-50); color: var(--logo-blue); display: grid; place-items: center; }
.contact-line strong { display: block; color: var(--ink-950); font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; }
.contact-line a { color: var(--copper-deep); font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-line span { font-size: 0.92rem; color: var(--ink-soft); }

.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-900); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: var(--bone);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(237, 165, 74, 0.16); background: var(--panel);
}
.field textarea { resize: vertical; min-height: 120px; }
.consent, .field label.consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem;
  color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--copper-deep); flex: none; }
.form-note { font-size: 0.8rem; color: var(--ink-mute); margin-top: 14px; }
.form-note a { color: var(--copper-deep); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success .ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ink-50); color: var(--logo-blue); display: grid; place-items: center; }

/* ---------- Map / placeholder ---------- */
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }
.map-placeholder {
  height: 420px; border-radius: var(--radius); border: 1px dashed var(--line);
  background: var(--panel); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-mute);
}

/* ---------- Neighborhood map ---------- */
.hood-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 24px; }
@media (max-width: 900px) { .hood-grid { grid-template-columns: 1fr; } }
.hood-map {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hood-map svg { display: block; width: 100%; height: auto; }
.hood-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.hood-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 0.96rem;
}
.hood-list .place { color: var(--ink-950); font-weight: 500; display: flex; align-items: center; gap: 12px; }
.hood-list .place svg { color: var(--copper); flex: none; }
.hood-list .dist { color: var(--ink-mute); font-size: 0.84rem; white-space: nowrap; letter-spacing: 0.04em; }
.hood-note { font-size: 0.8rem; color: var(--ink-mute); margin-top: 14px; }
@media (max-width: 560px) {
  .hood-list li { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hood-list .dist { padding-left: 29px; }
}

/* ---------- Careers: open positions ---------- */
.openings-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 620px) { .openings-grid { grid-template-columns: 1fr; } }

/* ---------- Amenities nearby ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 960px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .amenity-grid { grid-template-columns: 1fr; } }
.amenity-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amenity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.amenity-card:nth-child(3n+1) { border-radius: 110px 16px 16px 16px; }
.amenity-card:nth-child(3n) { border-radius: 16px 110px 16px 16px; }
.amenity-photo { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--ink-50); }
.amenity-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.amenity-card:hover .amenity-photo img { transform: scale(1.04); }
.amenity-photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-600);
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(237, 165, 74, 0.18), transparent 60%),
    linear-gradient(150deg, var(--ink-50), var(--ink-100));
}
.amenity-body { padding: 22px 24px 26px; }
.amenity-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.amenity-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.amenity-dist {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--logo-blue); background: rgba(29, 95, 168, 0.10);
  border-radius: 999px; padding: 5px 13px;
}

/* ---------- Search overlay ---------- */
.search-btn {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.search-btn:hover { border-color: var(--copper); color: var(--copper-deep); }
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 170;
  background: rgba(15, 34, 51, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 10vh 20px 20px; overflow-y: auto;
}
.search-overlay.show { display: block; }
.search-panel {
  max-width: 640px; margin: 0 auto; background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-panel input {
  width: 100%; border: none; padding: 22px 26px; font-size: 1.15rem; font-family: var(--font-body);
  background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line);
}
.search-panel input:focus { outline: none; }
.search-results { max-height: 52vh; overflow-y: auto; }
.search-results a {
  display: block; padding: 16px 26px; text-decoration: none; border-bottom: 1px solid var(--line);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover, .search-results a.active { background: var(--ink-50); }
.search-results .r-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-950); }
.search-results .r-page { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--logo-blue); }
.search-results .r-text { font-size: 0.86rem; color: var(--ink-soft); margin-top: 2px; }
.search-results mark { background: rgba(237, 165, 74, 0.35); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 26px; text-align: center; color: var(--ink-mute); font-size: 0.94rem; }
.search-hint { padding: 12px 26px; font-size: 0.75rem; color: var(--ink-mute); border-top: 1px solid var(--line); }

/* ---------- Comparison table ---------- */
.compare-wrap { margin-top: 52px; overflow-x: auto; }
.compare {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 640px;
}
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 1px solid var(--ink-900); padding-top: 22px;
}
.compare thead th.us { color: var(--bone); background: var(--ink-950); border-bottom-color: var(--copper); }
.compare tbody th { font-weight: 600; color: var(--ink-950); font-size: 0.95rem; width: 26%; }
.compare td { color: var(--ink-soft); font-size: 0.93rem; }
.compare td.us { background: rgba(237, 165, 74, 0.06); color: var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare td.us strong { color: var(--copper-deep); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

/* stacked-card layout on phones; sideways scrolling hides the contrast */
@media (max-width: 700px) {
  .compare-wrap { overflow-x: visible; }
  .compare { min-width: 0; border: none; background: transparent; box-shadow: none; }
  .compare thead { display: none; }
  .compare tbody, .compare tbody tr, .compare tbody th, .compare tbody td { display: block; width: 100%; }
  .compare tbody tr {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 14px; overflow: hidden;
  }
  .compare tbody th {
    width: auto; font-family: var(--font-display); font-size: 1.3rem;
    padding: 18px 20px 10px; border-bottom: 1px solid var(--line);
  }
  .compare tbody td { border-bottom: none; padding: 14px 20px; }
  .compare tbody td::before {
    display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px;
  }
  .compare tbody td.us { border-left: 2px solid var(--copper); border-right: none; }
  .compare tbody td.us::before { content: "At Alliance Group Home"; color: var(--copper-deep); }
  .compare tbody td:not(.us)::before { content: "Typical large facility"; }
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 34px; }
.gallery-filters button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s ease;
}
.gallery-filters button:hover { border-color: var(--copper); color: var(--copper-deep); }
.gallery-filters button.active { background: var(--ink-950); border-color: var(--ink-950); color: var(--bone); }

.gallery-grid { columns: 3 300px; column-gap: 18px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 18px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); cursor: zoom-in;
  padding: 0; width: 100%; display: block; border-radius: 18px;
}
.gallery-item:nth-child(3n) { border-radius: 120px 18px 18px 18px; }
.gallery-item:nth-child(3n+1) { border-radius: 18px 18px 120px 18px; }
.gallery-item img { width: 100%; height: auto; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption, .gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(16, 28, 38, 0.82));
  color: var(--bone); font-size: 0.84rem; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover figcaption, .gallery-item:hover .cap { opacity: 1; }
/* touch screens have no hover, so keep captions visible */
@media (hover: none) {
  .gallery-item figcaption, .gallery-item .cap { opacity: 1; }
}
.gallery-item.hidden { display: none; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 180;
  background: rgba(16, 28, 38, 0.94); padding: 4vh 4vw;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; box-shadow: var(--shadow-lg); border-radius: 14px; }
.lightbox .lb-cap { color: #a9c4dc; font-size: 0.9rem; letter-spacing: 0.06em; }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(244,241,234,0.3); color: var(--bone);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: border-color 0.15s ease;
}
.lightbox button:hover { border-color: var(--bone); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Photo strip (homepage gallery preview) ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; padding-bottom: 26px; }
.photo-strip a { position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 3.7; display: block; background: var(--panel); border-radius: 18px; }
.photo-strip a:nth-child(odd) { border-radius: 170px 170px 18px 18px; }
.photo-strip a:nth-child(even) { transform: translateY(26px); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-strip a:hover img { transform: scale(1.045); }
.photo-strip .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(16, 28, 38, 0.8));
  color: var(--bone); font-size: 0.8rem; letter-spacing: 0.05em;
}
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip a:nth-child(even) { transform: translateY(14px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 400px at 90% -20%, rgba(237, 165, 74, 0.22), transparent 62%),
    radial-gradient(700px 380px at 5% 110%, rgba(111, 77, 158, 0.18), transparent 60%),
    var(--grain);
  color: var(--bone); padding: clamp(64px, 8vw, 108px) 0;
  border-bottom: 1px solid rgba(14, 172, 219, 0.35);
}
.page-hero h1 { color: var(--bone); }
.page-hero .lead { color: #a9c4dc; }
.page-hero .eyebrow { color: var(--cyan-bright); }
.services-tagline { margin-top: 26px; color: var(--cyan-bright); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.crumbs { font-size: 0.78rem; color: #a3b8ca; margin-bottom: 26px; letter-spacing: 0.12em; text-transform: uppercase; }
.crumbs a { color: #a9c4dc; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--ink-950); background-image: var(--grain); color: #8fa5b8; margin-top: 0; border-top: 1px solid rgba(111, 77, 158, 0.4); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(56px, 7vw, 90px) 0 52px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--cyan-bright); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: #8fa5b8; text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: var(--bone); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid rgba(244, 241, 234, 0.1); padding: 24px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: #8fa5b8;
}
.footer-bottom a { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.powered { display: block; margin-top: 4px; font-size: 0.74rem; color: #62788c; letter-spacing: 0.04em; }
.powered a { color: #8fa5b8; text-decoration: none; }
.powered a:hover { color: var(--cyan-bright); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150;
  max-width: 620px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  display: none;
}
.cookie-banner.show { display: block; animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 16px; }
.cookie-banner p a { color: var(--copper-deep); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: 0.7rem; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink-950); border-top: 1px solid rgba(237,165,74,0.4);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.call-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.72rem; }
@media (max-width: 720px) {
  .call-bar { display: flex; }
  body { padding-bottom: 70px; }
  .cookie-banner { bottom: 84px; }
}

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

/* ---------- Values grid (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.value-card .ic { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--ink-50); border: 1px solid var(--ink-100); color: var(--logo-blue); display: grid; place-items: center; }
.value-card h3 { font-size: 1.35rem; }
.value-card p { font-size: 0.89rem; color: var(--ink-soft); margin: 0; }

/* ---------- Detail rows (services page) ---------- */
.svc-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 16px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.svc-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-row .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ink-50); border: 1px solid var(--ink-100); color: var(--logo-blue); display: grid; place-items: center; }
.svc-row h3 { margin-bottom: 8px; }
.svc-row p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
@media (max-width: 560px) { .svc-row { grid-template-columns: 1fr; } }

/* ---------- Booking calendar ---------- */
.booking-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }

.cal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h3 { margin: 0; font-size: 1.6rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-900); cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: all 0.15s ease;
}
.cal-nav button:hover:not(:disabled) { border-color: var(--copper); color: var(--copper-deep); }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-week span { text-align: center; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--bone);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; position: relative; transition: all 0.15s ease;
}
.cal-day:hover:not(:disabled) { border-color: var(--copper); background: rgba(237,165,74,0.07); }
.cal-day:disabled { color: #c3bdb0; background: transparent; cursor: default; text-decoration: line-through; text-decoration-color: #d5cfc2; }
.cal-day.empty { background: transparent; border: none; cursor: default; }
.cal-day.open::after { content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--logo-blue); }
.cal-day.selected { background: var(--ink-950); color: var(--bone); border-color: var(--ink-950); }
.cal-day.selected::after { background: var(--cyan-bright); }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 0.78rem; color: var(--ink-mute); flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.slot-btn {
  padding: 12px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: transparent;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--ink-900); cursor: pointer;
  transition: all 0.15s ease; letter-spacing: 0.03em;
}
.slot-btn:hover { border-color: var(--copper); color: var(--copper-deep); }
.slot-btn.selected { background: var(--ink-950); border-color: var(--ink-950); color: var(--bone); }
.slot-empty { color: var(--ink-mute); font-size: 0.92rem; padding: 8px 0; }

.captcha-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.captcha-row img, .captcha-row .captcha-img { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.captcha-row .field { flex: 1; min-width: 130px; }
.captcha-refresh {
  background: none; border: none; color: var(--copper-deep); font-weight: 600; font-size: 0.8rem;
  cursor: pointer; text-decoration: underline; padding: 4px; letter-spacing: 0.04em;
}
.form-error {
  display: none; background: #f9ece8; border: 1px solid #e3c3b6; color: #8a3a24;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.92rem; margin-bottom: 16px;
}
.form-error.show { display: block; }

.notice-box {
  background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  padding: 20px 24px; font-size: 0.92rem; color: var(--ink-soft); margin: 24px 0;
}
.notice-box strong { color: var(--ink-950); }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 1.9rem; margin-top: 2em; }
.legal-body h3 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-meta { font-size: 0.86rem; color: var(--ink-mute); border-left: 2px solid var(--copper); padding-left: 14px; }

/* ---------- Print ---------- */
@media print {
  .top-strip, .site-header, .call-bar, .cookie-banner, .search-overlay,
  .hero-dots, .nav-cta, .cta-band, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .hero-cinema { min-height: auto; background: #fff; }
  .hero-slides, .hero-tint { display: none !important; }
  .hero-cinema h1, .hero-cinema .lead, .hero-cinema .hero-note { color: #000 !important; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer a, .site-footer h4 { color: #000; }
  a[href^="tel:"]::after { content: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
