/* ============================================================
   DUBAI SMILE - Global Stylesheet
   Brand Identity System
   ============================================================ */

/* --- Brand Tokens --- */
:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A0;
  --gold-dark: #A07D2E;
  --navy: #0A1628;
  --navy-light: #152238;
  --white: #FFFFFF;
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --accent: #2E8B8B;
  --accent-light: #3AAFAF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --success: #10B981;
  --error: #EF4444;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6, .serif, .font-headline, .font-serif {
  font-family: 'Playfair Display', 'Georgia', serif;
}

.font-accent {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

::selection {
  background-color: var(--gold-light);
  color: var(--navy);
}

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Glass Nav --- */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* --- Utility --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.editorial-shadow { box-shadow: 0 20px 40px rgba(10, 22, 40, 0.08); }
.ghost-border { border-bottom: 1px solid rgba(232, 213, 160, 0.2); }
.ghost-border-bottom { border-bottom: 1px solid rgba(232, 213, 160, 0.2); }
.accent-top { border-top: 3px solid var(--gold); }
.no-line-border { border: none; }
.no-line { border: none; }

.asymmetric-clip { border-radius: 0.75rem 0.75rem 0.75rem 0; }
.asymmetric-image { border-radius: 0.75rem 0.75rem 0.75rem 0; }

.hero-gradient {
  background: radial-gradient(circle at center, var(--cream) 0%, var(--cream-dark) 100%);
}

.glass-panel {
  backdrop-filter: blur(16px);
  background: rgba(253, 248, 240, 0.8);
}

/* --- FAQ Accordion --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item:focus-within .accordion-content { max-height: 500px; }
.faq-item:focus-within .arrow-icon { transform: rotate(180deg); }

/* --- Focus (Accessibility) --- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Error Pages --- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.error-page h1 {
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--gold);
  line-height: 1;
  margin: 0;
}
.error-page h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin: 1rem 0; }
.error-page p { color: var(--gold-light); max-width: 480px; margin: 0 auto 2rem; font-size: 1.1rem; }
.error-page .btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--navy); border: none; padding: 14px 32px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.error-page .btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 2px solid var(--gold); padding: 12px 32px; border-radius: 8px; font-weight: 600; text-decoration: none; }

/* --- Legal Pages --- */
.legal-page { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.legal-page h1 { font-size: 2.5rem; color: var(--navy); margin-bottom: 0.5rem; }
.legal-page .last-updated { color: var(--text-light); font-size: 0.875rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.5rem; color: var(--navy); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-page p, .legal-page li { color: var(--text-light); line-height: 1.8; }
.legal-page ul { padding-left: 1.5rem; }

/* --- Print --- */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: white; color: black; }
}
