@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
  /* Primary Colors */
  --primary: #000a1e;
  --primary-container: #002147;
  --primary-container-high: #003068;
  
  /* Secondary Colors */
  --secondary: #735c00;
  --secondary-container: #fce38a;
  --secondary-container-high: #f5d960;
  
  /* Surface Colors */
  --surface: #fcf9f8;
  --surface-dim: #d9d5d4;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f2f0;
  --surface-container: #efedec;
  --surface-container-high: #e3e1df;
  --surface-container-highest: #dedbda;
  
  /* Text Colors */
  --on-surface: #1c1b1b;
  --on-surface-variant: #49454e;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-primary-container: #ffffff;
  --on-secondary-container: #251a00;
  
  /* Outline Colors */
  --outline: #79747e;
  --outline-variant: #cac4d0;
  
  /* Error Colors */
  --error: #ba1a1a;
  --error-container: #ffdad6;
  
  /* Accent Colors */
  --gold: #e9c349;
  --gold-light: #f5e2a4;
  --gold-dark: #a38800;
  --accent-red: #b22234;
  --accent-purple: #4b0082;
  
  /* Navy Colors */
  --navy: #002147;
  --navy-light: #003068;
  --navy-dark: #000a1e;
  
  /* Inverse Colors */
  --inverse-surface: #323130;
  --inverse-on-surface: #f5f2f0;
  --inverse-primary: #fecb51;
  
  /* Background */
  --background: #fcf9f8;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 10, 30, 0.3), 0 1px 3px 1px rgba(0, 10, 30, 0.15);
  --shadow-md: 0 4px 8px 3px rgba(0, 10, 30, 0.15), 0 1px 3px rgba(0, 10, 30, 0.3);
  --shadow-lg: 0 8px 12px 6px rgba(0, 10, 30, 0.15), 0 4px 4px rgba(0, 10, 30, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--on-surface);
}

h1 { font-size: 3.5rem; line-height: 4rem; letter-spacing: -0.015625em; }
h2 { font-size: 2.8125rem; line-height: 3.25rem; }
h3 { font-size: 2.25rem; line-height: 2.75rem; }
h4 { font-size: 2rem; line-height: 2.5rem; }
h5 { font-size: 1.75rem; line-height: 2.25rem; }
h6 { font-size: 1.5rem; line-height: 2rem; }

p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.03125em;
}

.label-lg {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.00625em;
  font-weight: 500;
}

.label-md {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.03125em;
  font-weight: 500;
}

.label-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  line-height: 1rem;
  letter-spacing: 0.03125em;
  font-weight: 500;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 10, 30, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.25rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25rem;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.nav-desktop a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-desktop a:hover {
  background: var(--surface-container);
}

.nav-desktop a.active {
  background: var(--primary-container);
  color: var(--on-primary);
}

/* ============================================
   MEGA DROPDOWN NAVIGATION
   ============================================ */

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item > a:hover,
.nav-item > button:hover {
  background: var(--surface-container);
}

.nav-item > a.active,
.nav-item > button.active {
  background: var(--primary-container);
  color: var(--on-primary);
}

.nav-item .dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 10, 30, 0.12);
  padding: 20px 24px;
  min-width: 200px;
  z-index: 110;
  margin-top: 0;
}

.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.nav-item:hover .mega-dropdown {
  display: block;
}

.mega-dropdown a {
  display: block;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--on-surface);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.mega-dropdown a:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}

.mega-dropdown a.active {
  background: var(--primary-container);
  color: var(--on-primary);
  font-weight: 500;
}

.mega-dropdown .dropdown-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
  padding: 4px 16px 8px;
  pointer-events: none;
}

/* Mobile accordion nav */
.mobile-nav-section {
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--on-surface);
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-section-header svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-section.open .mobile-nav-section-header svg {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav-section.open .mobile-nav-sub {
  max-height: 400px;
}

.mobile-nav-sub a {
  display: block;
  padding: 10px 0 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--on-surface-variant);
  text-decoration: none;
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav-sub a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  color: var(--on-surface);
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--surface-container);
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.00625em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  box-shadow: 0 1px 2px rgba(0, 10, 30, 0.3), 0 1px 3px 1px rgba(0, 10, 30, 0.15);
}

.btn-secondary {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.btn-secondary:hover {
  box-shadow: 0 1px 2px rgba(0, 10, 30, 0.3), 0 1px 3px 1px rgba(0, 10, 30, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--outline);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.btn-outline-secondary:hover {
  background: var(--secondary);
  color: var(--on-secondary);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 12px rgba(233, 195, 73, 0.3);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
}

.btn-white:hover {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--on-surface);
}

.btn-ghost:hover {
  background: var(--surface-container);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 24px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.75rem;
  border-radius: 16px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--outline-variant);
}

.card:hover {
  box-shadow: 0 4px 8px 3px rgba(0, 10, 30, 0.15), 0 1px 3px rgba(0, 10, 30, 0.3);
  transform: translateY(-2px);
}

.card-elevated {
  border: none;
  box-shadow: 0 1px 2px rgba(0, 10, 30, 0.3), 0 1px 3px 1px rgba(0, 10, 30, 0.15);
}

.card-filled {
  background: var(--surface-container-low);
  border: none;
}

.card-outlined {
  background: var(--surface);
  border: 1px solid var(--outline);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface-container);
}

.card-content {
  padding: 16px;
}

.card-header {
  padding: 16px 16px 0;
}

.card-body {
  padding: 0 16px 16px;
}

.card-footer {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  position: relative;
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 49, 120, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(115, 92, 0, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(60deg, var(--gold-light) 25%, transparent 25.5%, transparent 75%, var(--gold-light) 75%, var(--gold-light)),
    linear-gradient(60deg, var(--gold-light) 25%, transparent 25.5%, transparent 75%, var(--gold-light) 75%, var(--gold-light));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero h1 {
  color: var(--on-primary);
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-secondary {
  background: var(--primary-container);
  color: var(--on-primary);
}

.hero-secondary::before {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(233, 195, 73, 0.08) 0%, transparent 50%);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 24px;
}

.section-sm {
  padding: 48px 24px;
}

.section-lg {
  padding: 96px 24px;
}

.section-dark {
  background: var(--primary);
  color: var(--on-primary);
}

.section-alt {
  background: var(--surface-container-low);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--on-surface-variant);
  font-size: 1.125rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark h2 {
  color: var(--on-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ============================================
   STATS ROW
   ============================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  padding: 120px 24px 24px;
  background: var(--surface-container-low);
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.breadcrumb li a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: var(--outline);
}

.breadcrumb li:last-child::after {
  display: none;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  background: var(--primary);
  color: var(--on-primary);
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 49, 120, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(115, 92, 0, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--on-primary);
  margin-bottom: 16px;
  max-width: 800px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  font-size: 1.125rem;
}

/* ============================================
   ACCORDIONS
   ============================================ */

.accordion-item {
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface-container-lowest);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface);
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: var(--surface-container-low);
}

.accordion-trigger svg {
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 20px 20px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--on-surface);
  background: var(--surface-container-lowest);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 10, 30, 0.12);
}

.form-input::placeholder {
  color: var(--on-surface-variant);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2379747e' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================
   BADGES / CHIPS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03125em;
}

.badge-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.badge-secondary {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.badge-gold {
  background: var(--gold);
  color: var(--primary);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--on-surface-variant);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  color: var(--on-surface);
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--surface-container-low);
}

.chip-selected {
  background: var(--primary-container);
  color: var(--on-primary);
  border-color: var(--primary-container);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.bg-primary { background-color: var(--primary); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-gold { background-color: var(--gold); }
.bg-accent-red { background-color: var(--accent-red); }
.bg-accent-purple { background-color: var(--accent-purple); }

.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-headline { font-family: 'Playfair Display', serif; }

.text-accent-red { color: var(--accent-red); }
.text-accent-purple { color: var(--accent-purple); }

.border-gold { border-color: var(--gold); }
.border-primary { border-color: var(--primary); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(233, 195, 73, 0.3);
  transform: translateY(-2px);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface);
  flex-direction: column;
  padding: 80px 24px 24px;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}

.mobile-nav-overlay a {
  display: block;
  padding: 16px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--on-surface);
  text-decoration: none;
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav-overlay a:hover {
  color: var(--primary);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 10, 30, 0.3);
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  transform: scale(1.1);
}

/* ============================================
   PORTAL / ADMIN LAYOUT
   ============================================ */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 260px;
  background: var(--primary);
  color: var(--on-primary);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .portal-sidebar {
    transform: translateX(-100%);
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 4px;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav a.active {
  background: rgba(233, 195, 73, 0.15);
  color: var(--gold);
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-main {
  flex: 1;
  margin-left: 260px;
  background: var(--surface);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .portal-main {
    margin-left: 0;
  }
}

.portal-topbar {
  height: 64px;
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.portal-content {
  padding: 24px;
  max-width: 1280px;
}

/* ============================================
   LOADING / SPINNER
   ============================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--outline-variant);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(252, 249, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  box-shadow: 0 8px 12px 6px rgba(0, 10, 30, 0.15), 0 4px 4px rgba(0, 10, 30, 0.3);
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

.toast-success { border-left: 4px solid #2e7d32; }
.toast-error { border-left: 4px solid var(--error); }
.toast-info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
