/* Theme color tokens */
:root {
  --background: 270 32% 97%;
  --foreground: 266 48% 13%;
  --card: 0 0% 100%;
  --card-foreground: 266 48% 13%;
  --popover: 0 0% 100%;
  --popover-foreground: 266 48% 13%;
  --primary: 42 90% 56%;
  --primary-foreground: 268 58% 12%;
  --secondary: 270 28% 92%;
  --secondary-foreground: 266 48% 13%;
  --muted: 270 24% 92%;
  --muted-foreground: 268 14% 43%;
  --accent: 42 90% 56%;
  --accent-foreground: 268 58% 12%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 270 22% 84%;
  --input: 270 22% 84%;
  --ring: 42 90% 56%;
  --radius: 0.5rem;

  --navy: 268 56% 18%;
  --navy-light: 268 44% 26%;
  --navy-foreground: 0 0% 100%;
  --gold: 42 90% 56%;
  --gold-light: 45 92% 68%;
  --gold-muted: 43 82% 91%;
  --shadow-color: 268 56% 18%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: hsl(var(--background));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  color: hsl(var(--foreground));
  font-family: 'Playfair Display','Georgia',serif;
  letter-spacing: 0;
}

a { color: inherit; }

::selection {
  background: hsl(var(--gold) / 0.28);
  color: hsl(var(--foreground));
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

/* Utility helpers */
.section-padding { padding: 5rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 7rem 1rem; } }
.container-narrow { max-width: 72rem; margin-left:auto; margin-right:auto; }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-navy { background-color: hsl(var(--navy)); }
.bg-navy-light { background-color: hsl(var(--navy-light)); }
.bg-gold { background-color: hsl(var(--gold)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.border-border { border-color: hsl(var(--border)); }
.border-navy-light { border-color: hsl(var(--navy-light)); }
.text-navy { color: hsl(var(--navy)); }
.text-navy-foreground { color: hsl(var(--navy-foreground)); }
.text-gold { color: hsl(var(--gold)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.fill-gold { fill: hsl(var(--gold)); }
.border-gold { border-color: hsl(var(--gold)); }
.gradient-gold { background: linear-gradient(135deg, hsl(var(--gold)), hsl(var(--gold-light))); }
.font-heading { font-family: 'Playfair Display','Georgia',serif; }

/* Critical utility fallbacks */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%); }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[600px\] { min-height: 600px; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.p-0 { padding: 0; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.gap-1 { gap: 0.25rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-0 { border: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.shadow-lg { box-shadow: 0 10px 20px -12px hsl(var(--shadow-color) / 0.55); }
.shadow-xl { box-shadow: 0 20px 40px -26px hsl(var(--shadow-color) / 0.68); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0; }
.tracking-widest { letter-spacing: 0.12em; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.15\] { line-height: 1.15; }
.list-none { list-style: none; }
.no-underline { text-decoration: none; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.transition-transform { transition: transform .18s ease; }
.aspect-\[9\/16\] { aspect-ratio: 9 / 16; }
.bg-transparent { background: transparent; }
.bg-navy\/35 { background-color: hsl(var(--navy) / 0.35); }
.bg-navy\/80 { background-color: hsl(var(--navy) / 0.8); }
.bg-navy\/85 { background-color: hsl(var(--navy) / 0.85); }
.bg-navy\/90 { background-color: hsl(var(--navy) / 0.9); }
.bg-navy\/95 { background-color: hsl(var(--navy) / 0.95); }
.bg-navy-light\/80 { background-color: hsl(var(--navy-light) / 0.8); }
.bg-background\/95 { background-color: hsl(var(--background) / 0.95); }
.bg-card\/90 { background-color: hsl(var(--card) / 0.9); }
.bg-gold\/10 { background-color: hsl(var(--gold) / 0.1); }
.bg-gold\/20 { background-color: hsl(var(--gold) / 0.2); }
.text-navy-foreground\/30 { color: hsl(var(--navy-foreground) / 0.3); }
.text-navy-foreground\/40 { color: hsl(var(--navy-foreground) / 0.4); }
.text-navy-foreground\/50 { color: hsl(var(--navy-foreground) / 0.5); }
.text-navy-foreground\/60 { color: hsl(var(--navy-foreground) / 0.6); }
.text-navy-foreground\/70 { color: hsl(var(--navy-foreground) / 0.7); }
.text-navy-foreground\/80 { color: hsl(var(--navy-foreground) / 0.8); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.border-navy-foreground\/5 { border-color: hsl(var(--navy-foreground) / 0.05); }
.border-navy-foreground\/10 { border-color: hsl(var(--navy-foreground) / 0.1); }
.hover\:text-gold:hover { color: hsl(var(--gold)); }
.hover\:border-gold\/30:hover { border-color: hsl(var(--gold) / 0.3); }
.hover\:scale-105:hover { transform: scale(1.05); }
.-translate-x-1\/2.-translate-y-1\/2.hover\:scale-105:hover { transform: translate(-50%, -50%) scale(1.05); }
.group:hover .group-hover\:bg-gold\/20 { background-color: hsl(var(--gold) / 0.2); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:min-h-\[700px\] { min-height: 700px; }
  .md\:h-14 { height: 3.5rem; }
  .md\:h-20 { height: 5rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Header */
body > nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--navy) / 0.97) !important;
  border-bottom: 1px solid hsl(var(--gold) / 0.18);
  box-shadow: 0 16px 40px -30px hsl(var(--shadow-color) / 0.85);
  backdrop-filter: blur(12px);
}

body > nav > .container-narrow {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

body > nav a {
  text-decoration: none;
}

body > nav a[aria-label] > span {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body > nav a[aria-label] .text-navy-foreground {
  color: hsl(var(--navy-foreground));
}

body > nav a[aria-label] .text-gold {
  color: hsl(var(--gold));
}

body > nav > .container-narrow > div {
  display: none;
}

body > nav > .container-narrow > div a:not(.ar-btn),
body > nav > div[data-mobile-menu] a:not(.ar-btn) {
  color: hsl(var(--navy-foreground) / 0.76);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

body > nav > .container-narrow > div a:not(.ar-btn):hover,
body > nav > div[data-mobile-menu] a:not(.ar-btn):hover {
  color: hsl(var(--gold));
}

button[data-mobile-toggle] {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--navy-foreground));
  background: hsl(var(--navy-light) / 0.72);
  border: 1px solid hsl(var(--gold) / 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

body > nav > div[data-mobile-menu] {
  background: hsl(var(--navy));
  border-top: 1px solid hsl(var(--gold) / 0.16);
  padding: 0.5rem 1rem 1rem;
}

body > nav > div[data-mobile-menu] a {
  display: block;
  padding: 0.7rem 0;
}

body > nav > div[data-mobile-menu] .ar-btn {
  display: flex;
  margin-top: 0.5rem;
}

body > nav > div[data-mobile-menu].hidden {
  display: none;
}

@media (min-width: 768px) {
  body > nav > .container-narrow {
    min-height: 5rem;
  }

  body > nav a[aria-label] > span {
    font-size: 1.65rem;
  }

  body > nav > .container-narrow > div {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  button[data-mobile-toggle] {
    display: none;
  }
}

/* Accordion */
.ar-acc-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card) / 0.92);
  box-shadow: 0 18px 45px -35px hsl(var(--shadow-color) / 0.42);
  backdrop-filter: blur(4px);
}

.ar-acc-trigger {
  width:100%;
  text-align:left;
  padding:1.25rem 1.5rem;
  background:transparent;
  border:0;
  font-weight:600;
  color: hsl(var(--foreground));
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  font-size:0.95rem;
}

.ar-acc-trigger:hover { color: hsl(var(--gold)); }
.ar-acc-trigger:focus-visible { outline-offset: -4px; }
.ar-acc-trigger .chev { transition: transform .2s ease; flex-shrink:0; }
.ar-acc-item.open .ar-acc-trigger .chev { transform: rotate(180deg); }
.ar-acc-content { display:none; padding: 0 1.5rem 1.25rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.65; }
.ar-acc-item.open .ar-acc-content { display:block; }

/* Form fields */
.ar-input, .ar-select, .ar-textarea {
  width:100%;
  height:3rem;
  border-radius:var(--radius);
  background: hsl(var(--navy));
  color: hsl(var(--navy-foreground));
  border:1px solid hsl(var(--navy-foreground) / 0.14);
  padding: 0 1rem;
  font-family:'Inter',sans-serif;
  font-size:0.875rem;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ar-textarea { height:auto; min-height:120px; padding: 0.75rem 1rem; resize:vertical; }
.ar-input::placeholder, .ar-textarea::placeholder { color: hsl(var(--navy-foreground) / 0.42); }
.ar-input:focus, .ar-select:focus, .ar-textarea:focus {
  border-color: hsl(var(--gold) / 0.72);
  box-shadow: 0 0 0 3px hsl(var(--gold) / 0.24);
}
.ar-select option { background: hsl(var(--navy)); color: hsl(var(--navy-foreground)); }

.ar-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  border-radius:var(--radius);
  font-weight:700;
  padding: 0.875rem 2rem;
  border:0;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  font-family:'Inter',sans-serif;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--gold)), hsl(var(--gold-light)));
  box-shadow: 0 12px 30px -18px hsl(var(--gold) / 0.75);
  text-decoration: none;
}

.ar-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -20px hsl(var(--gold) / 0.85);
}

.ar-btn:active { transform: translateY(0); }
.ar-btn:disabled { cursor: not-allowed; opacity: 0.62; transform: none; }
.ar-btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* Toast */
.ar-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: hsl(var(--navy));
  color: hsl(var(--navy-foreground));
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -18px hsl(var(--shadow-color) / 0.75);
  border:1px solid hsl(var(--gold) / 0.45);
  max-width: 360px;
  font-size: 0.875rem;
  z-index: 100;
  opacity:0;
  transform: translateY(10px);
  transition: all .25s ease;
}

.ar-toast.show { opacity:1; transform: translateY(0); }

/* Video testimonials */
.testimonial-video-card {
  box-shadow: 0 24px 50px -32px hsl(var(--shadow-color) / 0.8);
}

.testimonial-video-wrap {
  background: hsl(var(--navy));
}

.testimonial-video-toggle {
  box-shadow: 0 16px 35px -18px hsl(var(--gold) / 0.9);
}

/* Legal pages */
.legal-page,
.page-shell {
  background:
    radial-gradient(circle at top left, hsl(var(--gold) / 0.16), transparent 34rem),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--secondary)));
  color: hsl(var(--foreground));
  min-height: 60vh;
}

.legal-hero {
  background:
    linear-gradient(135deg, hsl(var(--navy) / 0.96), hsl(var(--navy-light) / 0.94)),
    radial-gradient(circle at 80% 15%, hsl(var(--gold) / 0.18), transparent 22rem);
  border-bottom: 1px solid hsl(var(--gold) / 0.18);
  padding: 5rem 1rem 4rem;
  text-align: center;
}

.legal-hero h1 {
  color: hsl(var(--navy-foreground));
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.legal-hero p:not(.legal-eyebrow) {
  color: hsl(var(--navy-foreground) / 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1.25rem auto 0;
  max-width: 46rem;
}

.legal-eyebrow {
  color: hsl(var(--gold));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.legal-content-wrap {
  padding: 4rem 1rem 5rem;
}

.legal-content {
  background: hsl(var(--card) / 0.96);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px -42px hsl(var(--shadow-color) / 0.65);
  margin: 0 auto;
  max-width: 52rem;
  padding: 2rem;
}

.legal-content h2 {
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 2rem 0 0.65rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.legal-content strong {
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .legal-hero {
    padding: 6rem 1rem 5rem;
  }

  .legal-content {
    padding: 3rem;
  }
}

/* Lucide icons sizing */
[data-lucide] { width: 1.25rem; height: 1.25rem; }
