/* === CSS Variables === */
:root {
  --bg-deep: #08050F;
  --bg-base: #0F0A1A;
  --bg-surface: #160F26;
  --bg-elevated: #1F1631;
  --border: rgba(201, 169, 97, 0.18);
  --border-strong: rgba(201, 169, 97, 0.35);
  --gold: #C9A961;
  --gold-bright: #E5C77A;
  --purple: #7C5BC6;
  --purple-deep: #4A2F8A;
  --text: #F2E9DA;
  --text-muted: #A89886;
  --text-dim: #6B5F50;
  --danger: #C45B5B;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 12px;

  --shadow-glow: 0 0 40px rgba(201, 169, 97, 0.15);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at top, rgba(124, 91, 198, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(201, 169, 97, 0.08) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* === Starfield background === */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head .lead { margin: 1rem auto 0; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 5, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.nav-cta { display: flex; gap: 0.5rem; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1A0F00;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(201, 169, 97, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1B8AC0; transform: translateY(-1px); }
.btn-wa { background: #25D366; color: #0A1F0F; }
.btn-wa:hover { background: #1EBA56; transform: translateY(-1px); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; min-height: 52px; }

/* === Hero === */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta svg { color: var(--gold); }

/* Decorative ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* === Cards / Grids === */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(201, 169, 97, 0.04) 100%);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(124, 91, 198, 0.15));
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* === Specialist cards === */
.specialist {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.specialist:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.specialist-portrait {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-elevated), var(--purple-deep));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.specialist-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(124, 91, 198, 0.3) 0%, transparent 50%);
}
.specialist-monogram {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  z-index: 1;
  letter-spacing: 0.05em;
}

.specialist-body { padding: 1.5rem; }
.specialist h3 { margin-bottom: 0.25rem; }
.specialist .role {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.specialist p { color: var(--text-muted); font-size: 0.9rem; }

/* === FAQ / Accordion === */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold-bright); }
.faq-q .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq-item[open] .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* === List with bullets === */
.check-list { display: grid; gap: 0.85rem; }
.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.7rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

/* === Two-column === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* === CTA Block === */
.cta-block {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  background:
    linear-gradient(135deg, rgba(124, 91, 198, 0.12), rgba(201, 169, 97, 0.08)),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}
.cta-block h2 { margin-bottom: 1rem; }
.cta-block .lead { margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(196, 91, 91, 0.06);
  border: 1px solid rgba(196, 91, 91, 0.2);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Page header === */
.page-header {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }

/* === Form === */
.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 540px;
  margin: 0 auto;
}
.form-group { display: grid; gap: 0.5rem; }
.form-group label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-dim); }

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* === Mobile === */
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    background: var(--bg-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
    z-index: 40;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity var(--transition), transform var(--transition), visibility 0s;
  }
  .nav-links a { font-size: 1.2rem; font-family: var(--font-serif); }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
