/* TargetProof unified design system — academy interior palette site-wide */
:root {
  --bg: #0a0c14;
  --card: #141a25;
  --card-hover: #1a2230;
  --border: #22283a;
  --border-subtle: #2f3548;
  --input-bg: #111319;
  --gold: #c5a26f;
  --gold-hover: #d4b17d;
  --text: #e8e0d1;
  --muted: #8a7f68;
  --dim: #c5b8a0;
  --cream: #d4c9b3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.section-header, .serif, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

/* In-body links: always distinguishable from text */
.prose a:not(.btn):not(.home-cta):not(.card-cta):not(.inline-cta):not(.trust-tile),
.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(197, 162, 111, 0.5);
  text-underline-offset: 3px;
}
.prose a:not(.btn):not(.home-cta):not(.card-cta):not(.inline-cta):not(.trust-tile):hover,
.text-link:hover {
  color: var(--gold-hover);
  text-decoration-color: var(--gold-hover);
}

/* —— Site chrome —— */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 12, 20, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-nav-links { display: flex; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.site-nav-links a { color: var(--dim); }
.site-nav-links a:hover, .site-nav-links a.active { color: var(--gold); }
.site-logo img { display: block; height: 2.25rem; width: auto; }

.btn, .premium-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.5rem; border-radius: 9999px; font-size: 0.875rem;
  font-weight: 500; transition: all 0.2s; border: none; white-space: nowrap; cursor: pointer;
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }
.btn-gold, .premium-button {
  background: var(--gold);
  color: #0a0c14;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(197, 162, 111, 0.35);
}
.btn-gold:hover, .premium-button:hover {
  background: var(--gold-hover);
  color: #0a0c14;
  box-shadow: 0 2px 8px rgba(197, 162, 111, 0.35);
}
.btn-outline, .subtle-button {
  border: 1.5px solid rgba(197, 162, 111, 0.55);
  color: var(--gold);
  background: transparent;
  font-weight: 600;
}
.btn-outline:hover, .subtle-button:hover {
  border-color: var(--gold);
  background-color: rgba(197, 162, 111, 0.1);
  color: var(--gold-hover);
}
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.inline-cta:hover {
  background: var(--gold);
  color: #0a0c14;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.site-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer-tagline { display: flex; align-items: center; gap: 0.5rem; }
.site-footer-links {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.75rem;
}
.site-footer-links a {
  color: var(--dim);
  text-decoration: underline;
  text-decoration-color: rgba(197, 162, 111, 0.25);
  text-underline-offset: 3px;
}
.site-footer-links a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

@media (max-width: 768px) {
  .site-nav-links { display: none; }
}

/* —— Shared interior + homepage —— */
.luxury-bg { background-color: var(--bg); }
.warm-card {
  background-color: var(--card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.warm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}
.warm-border { border-color: var(--border); }
.nav-warm { background-color: rgba(10, 12, 20, 0.96); backdrop-filter: blur(20px); }
.nav-link { transition: color 0.2s ease; color: var(--dim); }
.nav-link:hover { color: var(--gold); }
.gold-accent { color: var(--gold); }
.cream-text { color: var(--text); }

.estate-label, .label {
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.estate-hero {
  background-image: linear-gradient(rgba(10,12,20,0.45), rgba(10,12,20,0.68)), url('/assets/sanctuary/hero-estate-twilight.jpg');
  background-size: cover; background-position: center 30%;
}
.library-hero {
  background-image: linear-gradient(rgba(10,12,20,0.38), rgba(10,12,20,0.78)), url('/assets/sanctuary/bg-library-sanctuary.jpg');
  background-size: cover; background-position: center;
}
.garden-hero {
  background-image: linear-gradient(rgba(10,12,20,0.28), rgba(10,12,20,0.58)), url('/assets/sanctuary/bg-garden-closer.jpg');
  background-size: cover; background-position: center;
}
.onsite-panel {
  background-image: linear-gradient(rgba(10,12,20,0.18), rgba(10,12,20,0.18)), url('/assets/sanctuary/onsite-discreet-engineer.jpg');
  background-size: cover; background-position: center;
}

.service-tier {
  overflow: visible;
  border-radius: 1.5rem;
}
.tier-card-image {
  height: 11rem;
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem 1.5rem 0 0;
}
.tier-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.tier-label-note {
  color: var(--cream);
  font-weight: 400;
}
.service-tier--featured .tier-label-note { color: var(--gold); opacity: 0.9; }
.tier-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
}
.tier-price {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 2rem;
}
.teaser-card { overflow: hidden; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.teaser-card:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45); }
.teaser-card-image { height: 10.5rem; background-size: cover; background-position: center; }
.teaser-title {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Homepage CTAs — sized for label length */
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid transparent;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .home-cta { font-size: 0.8125rem; padding: 0.65rem 1rem; }
}
.home-cta--gold {
  background: var(--gold);
  color: #0a0c14;
  font-weight: 600;
}
.home-cta--gold:hover { background: var(--gold-hover); color: #0a0c14; }
.home-cta--white {
  background: white;
  color: #0a0c14;
  font-weight: 600;
}
.home-cta--white:hover { background: #f5f0e6; }
.home-cta--outline {
  border: 1.5px solid rgba(197, 162, 111, 0.55);
  color: var(--gold);
  background: transparent;
  font-weight: 600;
}
.home-cta--outline:hover {
  background: rgba(197, 162, 111, 0.1);
  border-color: var(--gold);
}
.home-cta--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
  font-weight: 600;
}
.home-cta--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.home-cta--rect { border-radius: 1rem; padding: 0.75rem 1.5rem; }

.card-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  transition: all 0.2s;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.card-cta:hover {
  background: rgba(197, 162, 111, 0.12);
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}
.card-cta--secondary {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  margin-bottom: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(138, 127, 104, 0.6);
  text-underline-offset: 3px;
}
.card-cta--secondary:hover {
  color: var(--gold);
  background: transparent;
  text-decoration-color: var(--gold);
}
.card-cta--gold {
  background: var(--gold);
  color: #0a0c14;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card-cta--gold:hover {
  background: var(--gold-hover);
  color: #0a0c14;
  border-color: var(--gold-hover);
}
.card-cta--accent { border-color: rgba(197, 162, 111, 0.5); }

/* Headings on photo backgrounds */
.image-hero-heading {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}
.garden-hero .image-hero-heading {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.trust-tile {
  background-color: rgba(20, 26, 37, 0.88);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.trust-tile:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(197, 162, 111, 0.25);
}
.trust-tile-action {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}
a.trust-tile:hover .trust-tile-action { color: var(--gold-hover); }
.founder-card {
  background-color: rgba(20, 26, 37, 0.94);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
}
.founder-photo {
  width: 8rem; height: 8rem;
  border-radius: 9999px;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.founder-bio {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.founder-cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.5;
}
.founder-cred-list li {
  padding-left: 1rem;
  position: relative;
}
.founder-cred-list li::before {
  content: '·';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.founder-insurance {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}
.founder-insurance strong {
  color: var(--dim);
  font-weight: 500;
}
.modal { animation: fadeInScale 0.2s ease forwards; }
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Map legacy estate hardcoded utilities → academy palette */
.bg-\[\#1a1714\] { background-color: var(--card); }
.bg-\[\#1f1c19\] { background-color: var(--input-bg); }
.bg-\[\#24201c\] { background-color: var(--card-hover); }
.bg-\[\#11100e\] { background-color: var(--input-bg); }
.border-\[\#3f3931\] { border-color: var(--border-subtle); }

/* Tailwind-like helpers (no CDN on homepage/programs/model) */
.max-w-screen-2xl { max-width: 1280px; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-sm { max-width: 24rem; }
.pt-20 { padding-top: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-12 { padding-top: 3rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.m-0 { margin: 0; }
.p-9 { padding: 2.25rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-0 { padding: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.text-white { color: white; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-\[15px\] { font-size: 0.9375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[2px\] { letter-spacing: 2px; }
.tracking-\[3px\] { letter-spacing: 3px; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-none { line-height: 1; }
.leading-\[0\.92\] { line-height: 0.92; }
.leading-\[0\.95\] { line-height: 0.95; }
.text-\[\#c5a26f\] { color: #c5a26f; }
.text-\[\#c5b8a0\] { color: #c5b8a0; }
.text-\[\#d4c9b3\] { color: #d4c9b3; }
.text-\[\#8a7f68\] { color: #8a7f68; }
.text-\[\#6b6354\] { color: #6b6354; }
.text-\[\#0f0d0b\] { color: #0a0c14; }
.text-\[\#e8e0d1\] { color: #e8e0d1; }
.bg-\[\#c5a26f\] { background-color: #c5a26f; }
.bg-white { background-color: white; }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-\[\#c5a26f\] { border-color: #c5a26f; }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.service-tier.overflow-hidden { overflow: visible; }
.relative { position: relative; }
.absolute { position: absolute; }
.-top-3 { top: -0.75rem; }
.right-8 { right: 2rem; }
.z-10 { z-index: 10; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-\[100dvh\] { min-height: 100dvh; }
.min-h-\[720px\] { min-height: 720px; }
.min-h-\[18rem\] { min-height: 18rem; }
.shrink-0 { flex-shrink: 0; }
.object-cover { object-fit: cover; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.no-underline { text-decoration: none; }
.text-inherit { color: inherit; }
.text-center { text-align: center; }
.list-none { list-style: none; }
.antialiased { -webkit-font-smoothing: antialiased; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-all { transition: all 0.2s; }
.group:hover .group-hover\:text-\[\#d4b17d\] { color: #d4b17d; }
.hover\:bg-\[\#d4b17d\]:hover { background-color: #d4b17d; }
.hover\:bg-\[\#1f1c19\]:hover { background-color: var(--input-bg); }
.hover\:bg-\[\#24201c\]:hover { background-color: var(--card-hover); }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,0.05); }
.hover\:text-white:hover { color: white; }
.hover\:text-\[\#c5b8a0\]:hover { color: #c5b8a0; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-\[\#f5f0e6\]:hover { background-color: #f5f0e6; }
.pl-5 { padding-left: 1.25rem; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-\[\#c5a26f\]\/50 { border-color: rgba(197,162,111,0.5); }
.sm\:col-span-2 { grid-column: span 2; }
.sm\:flex-row { flex-direction: row; }
.sm\:items-center { align-items: center; }
.sm\:justify-between { justify-content: space-between; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .md\:col-span-5 { grid-column: span 5; }
  .md\:col-span-7 { grid-column: span 7; }
  .md\:col-span-12 { grid-column: span 12; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:p-10 { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-5 { grid-column: span 5; }
  .lg\:col-span-7 { grid-column: span 7; }
  .lg\:gap-16 { gap: 4rem; }
}
@media (max-width: 639px) {
  .sm\:col-span-2 { grid-column: span 1; }
  .sm\:flex-row { flex-direction: column; }
}