/* =========================================================
   Himalaya Care Solutions — design system
   ========================================================= */

:root {
  /* Palette: Himalaya (default) — deep navy + cyan from the brand logo + warm cream + terracotta */
  --bg: #F4EFE6;
  --bg-elev: #FBFAF6;
  --bg-deep: #E8E2D3;
  --ink: #14202A;
  --ink-soft: #2C3D4D;
  --muted: #6A7785;
  --line: #D6D2C5;
  --line-soft: #E4DFD0;
  --brand: #143E5C;          /* deep navy from wordmark */
  --brand-700: #1F5A82;
  --brand-500: #3A82B1;       /* mid mountain blue */
  --brand-300: #8FB5CC;
  --brand-50: #E3EEF5;
  --accent: #C97B5C;          /* warm terracotta — complements blue */
  --accent-700: #A75F44;
  --accent-50: #F4E3D9;

  /* Type */
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans: "Geist", "DM Sans", "Manrope", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Scale */
  --t-display: clamp(48px, 6.6vw, 96px);
  --t-h1: clamp(38px, 4.8vw, 64px);
  --t-h2: clamp(28px, 3vw, 42px);
  --t-h3: clamp(20px, 1.6vw, 26px);
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 12px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — restrained, residential */
  --shadow-sm: 0 1px 2px rgba(31, 58, 51, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(31, 58, 51, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(31, 58, 51, 0.28);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* Palette swaps via [data-palette] on <html> */
html[data-palette="alpine"] {
  /* Evergreen forest direction */
  --bg: #F4EFE6;
  --bg-elev: #FBFAF6;
  --bg-deep: #EAE3D5;
  --ink: #1A1F1D;
  --ink-soft: #3A413E;
  --muted: #6B7470;
  --line: #D9D2C2;
  --line-soft: #E6DFD0;
  --brand: #1F3A33;
  --brand-700: #2C5048;
  --brand-500: #3F6E63;
  --brand-300: #7CA095;
  --brand-50: #E5EDEA;
  --accent: #C97B5C;
  --accent-700: #A75F44;
  --accent-50: #F4E3D9;
}

html[data-palette="sandstone"] {
  --bg: #F7F2EA;
  --bg-elev: #FCF8F1;
  --bg-deep: #ECE1CD;
  --ink: #261C13;
  --ink-soft: #3D2E22;
  --muted: #7A6856;
  --line: #DDCDB3;
  --line-soft: #E8DCC6;
  --brand: #3A2A1F;
  --brand-700: #5C4334;
  --brand-500: #7E5D48;
  --brand-300: #B89A82;
  --brand-50: #ECE1D2;
  --accent: #7C9A7E;
  --accent-700: #5A7B5D;
  --accent-50: #DEE7DC;
}

html[data-palette="slate"] {
  --bg: #F1ECE3;
  --bg-elev: #F8F5EE;
  --bg-deep: #E1DBCE;
  --ink: #131A1D;
  --ink-soft: #2A3439;
  --muted: #5E6B70;
  --line: #C9D2D2;
  --line-soft: #DCE2E0;
  --brand: #1F2A2E;
  --brand-700: #324249;
  --brand-500: #4B6068;
  --brand-300: #8AA0A6;
  --brand-50: #DCE4E5;
  --accent: #B5654C;
  --accent-700: #8E4B36;
  --accent-50: #ECD9CF;
}

/* Type pairings via [data-type] */
html[data-type="spectral-dmsans"] {
  --font-display: "Spectral", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}
html[data-type="instrument-manrope"] {
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

/* Density */
html[data-density="compact"] {
  --s-7: 36px;
  --s-8: 48px;
  --s-9: 72px;
  --s-10: 96px;
  --t-body: 16px;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brand); color: var(--bg-elev); }

/* =========================================================
   Type primitives
   ========================================================= */
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink); margin: 0; }
.display { font-size: var(--t-display); letter-spacing: -0.025em; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 2px;
}
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
}
.muted { color: var(--muted); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* =========================================================
   Layout
   ========================================================= */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--s-9) 0; position: relative; }
.section--tight { padding: var(--s-8) 0; }
.section--xl { padding: var(--s-10) 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--bg-elev); }
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-700); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg-elev); }

.btn--soft {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}
.btn--soft:hover { border-color: var(--brand); }

.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--sm { padding: 9px 14px; font-size: 13px; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }

.card--dark {
  background: var(--brand);
  color: var(--bg-elev);
  border-color: var(--brand-700);
}
.card--dark .muted { color: rgba(244, 239, 230, 0.7); }

/* =========================================================
   Pill / tag
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.tag--accent { background: var(--accent-50); color: var(--accent-700); }
.tag--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }

/* =========================================================
   Header / nav
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header--scrolled { border-bottom-color: var(--line-soft); }

.header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.brand-mark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark__icon { width: 36px; height: 36px; }
.brand-mark__sub { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; line-height: 1; margin-top: 2px; }
.brand-mark__text { line-height: 1.05; }

.nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav a {
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 450;
  transition: background .15s ease, color .15s ease;
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-deep); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 1px;
}

.header__cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  transition: background .15s ease;
}
.header__phone:hover { background: var(--bg-deep); }
.header__phone svg { width: 14px; height: 14px; color: var(--brand); }

.menu-btn { display: none; }

@media (max-width: 1180px) {
  .header__phone span { display: none; }
}
@media (max-width: 1040px) {
  .nav, .header__phone, .header__cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  padding: 24px var(--gutter);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--brand);
  color: var(--bg);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer a { color: rgba(244, 239, 230, 0.85); }
.footer a:hover { color: var(--bg-elev); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-300);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(244, 239, 230, 0.6);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__grid > .footer__col:first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Page transitions
   ========================================================= */
.page-enter {
  animation: pageIn .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Hero — Home page
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 20px 0 28px;
}
.hero__headline em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__meta {
  margin-top: 56px;
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta-item { font-size: 14px; }
.hero__meta-item dt { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.hero__meta-item dd { margin: 0; color: var(--ink); font-weight: 500; }

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-deep);
}
.hero__visual image-slot { width: 100%; height: 100%; display: block; }

.hero__badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--bg-elev);
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  max-width: 280px;
}
.hero__badge svg { flex-shrink: 0; color: var(--brand); }
.hero__badge-text { font-size: 13px; line-height: 1.35; }
.hero__badge-text strong { display: block; font-size: 14px; margin-bottom: 2px; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4/3; }
}

/* Topographic accent */
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* =========================================================
   Service tiles
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .services-grid, .services-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .services-grid, .services-grid--3 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 24px 32px;
  display: flex; flex-direction: column;
  min-height: 260px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--brand-300); }
.service-card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 24px;
}
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* =========================================================
   Section header
   ========================================================= */
.sec-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
}
.sec-head--centered {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.sec-head h2 em { color: var(--brand); }
.sec-head__intro {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 48ch;
}
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head h2 { font-size: 30px; }
}

/* =========================================================
   Homes (cards w/ images)
   ========================================================= */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) { .homes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .homes-grid { grid-template-columns: 1fr; } }

.home-card {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-card__media {
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.home-card__media image-slot { width: 100%; height: 100%; }
.home-card__chip {
  position: absolute; top: 14px; left: 14px;
  background: var(--bg-elev); padding: 6px 12px;
  border-radius: var(--r-pill); font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.home-card__chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #4FA86A; }
.home-card__chip .dot--limited { background: #D9A14B; }
.home-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.home-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
.home-card__loc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.home-card__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin: 4px 0 10px; }
.home-card__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.home-card__cta { font-size: 14px; font-weight: 500; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.home-card:hover .home-card__cta .arrow { transform: translateX(3px); }
.home-card__cta .arrow { transition: transform .2s ease; }

/* =========================================================
   Testimonial
   ========================================================= */
.quote {
  position: relative;
  padding: var(--s-8) 0;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 0.5;
  color: var(--brand-300);
  opacity: 0.4;
  margin-bottom: -20px;
}
.quote__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 0 32px;
}
.quote__attrib { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.quote__attrib::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* =========================================================
   Feature blocks (Accessibility / Comfort)
   ========================================================= */
.features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.feature__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--bg);
  display: grid; place-items: center;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1;
  margin: 0;
}
.feature ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature ul li { font-size: 14.5px; color: var(--ink-soft); padding-left: 22px; position: relative; line-height: 1.4; }
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 1px; background: var(--accent);
}

/* =========================================================
   Contact / form
   ========================================================= */
.contact {
  background: var(--brand);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: 48px;
  position: relative; overflow: hidden;
}
.contact h2 { color: var(--bg); }
.contact .lede { color: rgba(244, 239, 230, 0.78); }
.contact__details { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; font-size: 15px; }
.contact__details > div { display: flex; gap: 14px; align-items: flex-start; }
.contact__details svg { color: var(--brand-300); flex-shrink: 0; margin-top: 3px; }
.contact__details strong { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-300); font-weight: 500; margin-bottom: 2px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-300); }
.form__input, .form__textarea {
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid rgba(244, 239, 230, 0.18);
  color: var(--bg);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color .15s ease, background .15s ease;
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-color: var(--bg); background: rgba(244, 239, 230, 0.1);
}
.form__input::placeholder, .form__textarea::placeholder { color: rgba(244, 239, 230, 0.4); }
.form__textarea { min-height: 120px; resize: vertical; }
.form__error { font-size: 13px; color: #F4A782; margin-top: 4px; }
.form__field.is-error .form__input, .form__field.is-error .form__textarea { border-color: #F4A782; }
.form__success {
  background: rgba(244, 239, 230, 0.08);
  border: 1px solid var(--brand-300);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--bg);
}
.form__success svg { color: var(--brand-300); margin: 0 auto 12px; }

/* =========================================================
   Admission steps
   ========================================================= */
.steps {
  margin-top: 56px;
  display: flex; flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background .2s ease;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { background: var(--bg-elev); }
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--brand);
  line-height: 1;
}
.step__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.step__desc { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 820px) {
  .step { grid-template-columns: 50px 1fr; gap: 20px; }
  .step__desc { grid-column: 1 / -1; }
  .step__num { font-size: 32px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faqs { margin-top: 48px; max-width: 880px; margin-left: auto; margin-right: auto; }
.faq {
  border-top: 1px solid var(--line);
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 28px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color .15s ease;
}
.faq__q:hover { color: var(--brand); }
.faq__toggle {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .2s ease, transform .25s ease;
}
.faq.is-open .faq__toggle { background: var(--brand); color: var(--bg-elev); border-color: var(--brand); transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq.is-open .faq__a { max-height: 400px; }
.faq__a-inner {
  padding: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* =========================================================
   Page heros (non-Home)
   ========================================================= */
.page-hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 80px);
  position: relative;
}
.page-hero__inner { max-width: 880px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
}
.page-hero h1 em { color: var(--brand); }
.page-hero__sub {
  font-size: clamp(17px, 1.3vw, 21px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumbs a:hover { color: var(--ink); }

/* =========================================================
   Two-column editorial layout (About sections)
   ========================================================= */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
}
.editorial__label { position: sticky; top: 120px; align-self: start; }
.editorial__label .eyebrow { display: inline-block; margin-bottom: 16px; }
.editorial__label h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.editorial__body p {
  font-size: 17.5px; line-height: 1.62; color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 62ch;
}
.editorial__body p:first-letter {
  /* subtle, only on first paragraph optionally */
}
.editorial__body p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial__label { position: static; }
}

/* =========================================================
   Detail page (Victory)
   ========================================================= */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 0 0;
}
.detail-hero__media {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deep);
}
.detail-hero__media--wide {
  aspect-ratio: 1/1;
}
@media (max-width: 820px) { .detail-hero { grid-template-columns: 1fr; } }

.spec-list { list-style: none; padding: 0; margin: 24px 0 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.spec-list li strong { color: var(--ink); font-weight: 500; }
.spec-list li span { color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
  margin-top: 48px;
}
.gallery-grid > * {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-deep);
}
.gallery-grid > *:nth-child(1) { grid-row: 1 / 3; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery-grid > *:nth-child(1) { grid-row: 1; grid-column: 1 / -1; }
}

/* =========================================================
   Stats
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px;
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 8px;
}
.stat__num em { font-style: italic; color: var(--accent); }
.stat__label { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; } }

/* =========================================================
   Misc
   ========================================================= */
.kbd {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-deep); font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* Image-slot styling overrides */
image-slot {
  --is-bg: var(--bg-deep);
  --is-border: var(--line);
  width: 100%;
  height: 100%;
  display: block;
}

/* Focus rings */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline-offset: 4px; }

/* =========================================================
   Mobile responsiveness (per MOBILE-CHANGES spec)
   ========================================================= */

/* Utility grid layouts referenced from JSX */
.split-2, .split-12, .split-13 { display: grid; align-items: center; }
.split-2  { grid-template-columns: 1fr 1fr;   gap: clamp(40px, 5vw, 80px); }
.split-12 { grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 4vw, 48px); }
.split-13 { grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.tri       { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 820px) {
  .split-2, .split-12, .split-13 { grid-template-columns: 1fr; gap: 32px; }
  .tri { grid-template-columns: 1fr; }
}

/* Mini-grids (4-up principles, home-detail features) stay 2-up on phones,
   only collapse on the smallest screens (per spec: 380-480px range). */
@media (max-width: 360px) {
  .mini-grid { grid-template-columns: 1fr; }
}

/* Mobile reflow: typography, gutter, section padding */
@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --t-body: 16px;
    --s-9: 56px;
    --s-10: 72px;
  }
  .hero { padding: 32px 0 48px; }
  .hero__headline { font-size: 38px; line-height: 1.05; margin: 16px 0 22px; }
  .hero__cta { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: 20px 28px; margin-top: 36px; padding-top: 20px; }
  .hero__meta-item { min-width: 130px; flex: 1 1 130px; }
  .editorial { padding: 56px 0; gap: 28px; }
  .editorial__body p { font-size: 16px; margin-bottom: 16px; }
  .contact { padding: 30px; gap: 32px; }
  .page-hero { padding: 56px 0 32px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero__sub { font-size: 16.5px; }
  .stats { padding: 28px; gap: 20px; }
  .gallery-grid { gap: 8px; }
}

/* Smallest screens */
@media (max-width: 480px) {
  .hero__headline { font-size: 32px; }
  .page-hero h1 { font-size: 34px; }
  .detail-hero { gap: 16px; }
  .home-card__name { font-size: 22px; }
  .quote__text { font-size: 24px; }
}
