:root {
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-dark: #8B6914;
  --navy: #1A365D;
  --navy-soft: #2C5282;
  --bg: #F7F5F0;
  --bg-alt: #EFEBE3;
  --surface: #FFFFFF;
  --text: #1A202C;
  --text-secondary: #2D3748;
  --text-muted: #4A5568;
  --border: #E2DED4;
  --border-strong: #C9B896;
  --green: #0D7A5F;
  --green-soft: #E6F4EF;
  --red: #C53030;
  --red-soft: #FFF5F5;
  --blue: #2B6CB0;
  --card-bg: #FFFFFF;
  --card-border: #E2DED4;
  --gold-tint: #FBF6E8;
  --gold-border-muted: #E8D5A8;
  --green-border-muted: #B8E0D2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 32, 44, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 32, 44, 0.06);
  --focus-ring: 0 0 0 3px rgba(184, 134, 11, 0.45);
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --touch: 44px;
  --aya-sticky-header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--aya-sticky-header-height, 64px) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 500;
}
a:hover { color: var(--gold-dark); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #FDFCFA 0%, var(--bg) 45%, #EDE8DC 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.orb1 { width: 420px; height: 420px; background: #E8D5A8; top: -120px; right: -80px; }
.orb2 { width: 360px; height: 360px; background: #B8E0D2; bottom: -100px; left: -60px; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.logo,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--navy);
}
.logo:hover,
.brand-link:hover { text-decoration: none; color: var(--gold-dark); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  color: #1a202c;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.35);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-tagline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
@media (max-width: 479px) {
  .brand-tagline { display: none; }
  .brand-mark { width: 32px; height: 32px; font-size: 0.95rem; }
  .brand-name { font-size: 1.05rem; }
}
[dir="rtl"] .brand-link { flex-direction: row-reverse; }
[dir="rtl"] .brand-text { align-items: flex-end; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  overflow: visible;
}

.nav-links > a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}
.nav-links > a:hover {
  background: var(--bg-alt);
  color: var(--navy);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1A202C;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

footer.site-footer {
  text-align: center;
  padding: 36px 16px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
footer.site-footer a {
  color: var(--text-secondary);
  margin: 0 6px;
  padding: 6px 8px;
  font-size: 14px;
  display: inline-block;
}
footer.site-footer a:hover { color: var(--navy); }

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

[dir="rtl"] .site-header { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; justify-content: flex-start; }

@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  .site-header { padding: 14px 24px; flex-wrap: nowrap; }
}

@media (max-width: 479px) {
  .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }
  .logo { font-size: 1.15rem; }
  .nav-links {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
}
