/* =========================================================
   THEME REFRESH – Dark Blue Black (FINAL)
   ========================================================= */

/* =======================
   Design Tokens
   ======================= */
:root {
  /* Black → very dark blue */
  --rf-bg-0: #070A12;
  --rf-bg-1: #0A1020;
  --rf-bg-2: #101B33;

  /* Text */
  --rf-text: rgba(255,255,255,0.95);
  --rf-muted: rgba(255,255,255,0.75);
  --rf-dim: rgba(255,255,255,0.58);

  /* Gold restraint */
  --rf-gold-soft: rgba(201,169,98,0.55);

  /* Surfaces */
  --rf-line: rgba(255,255,255,0.12);
  --rf-surface: rgba(255,255,255,0.05);
  --rf-surface-2: rgba(255,255,255,0.08);

  /* Pencil-paper */
  --rf-paper: #f6f4ef;
  --rf-paper-line: rgba(0,0,0,0.10);

  /* Radius & shadow */
  --rf-radius: 22px;
  --rf-radius-lg: 30px;
  --rf-shadow: 0 18px 55px rgba(0,0,0,0.55);
  --rf-shadow-soft: 0 12px 40px rgba(0,0,0,0.35);
}

/* =======================
   Global background
   ======================= */
body {
  background:
    url('../images/background.jpg') center/cover no-repeat fixed,
    radial-gradient(
      1200px 700px at 50% 18%,
      var(--rf-bg-2),
      var(--rf-bg-1) 55%,
      var(--rf-bg-0) 100%
    ) !important;
  color: var(--rf-text) !important;
}

/* Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      900px 520px at 50% 22%,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.35) 72%,
      rgba(0,0,0,0.65) 100%
    );
}

/* Noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* =======================
   Navbar
   ======================= */
.navbar.scrolled {
  background: rgba(8,12,22,0.85) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rf-line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35) !important;
}

.nav-link {
  color: var(--rf-muted) !important;
}
.nav-link:hover {
  color: var(--rf-text) !important;
}
.nav-link::after {
  background: rgba(201,169,98,0.75) !important;
}
.nav-link.active {
  color: var(--gold) !important;
  background: rgba(201,169,98,0.06);
}

/* =======================
   HERO – logo dominates
   ======================= */
.hero-main {
  background: transparent !important;
  min-height: 100vh !important;
  padding: 5.5rem 1.5rem 3.5rem !important;
  justify-content: center !important;
}

.hero-main::before {
  background:
    radial-gradient(
      520px 380px at 50% 22%,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0) 60%
    ) !important;
}

.hero-logo-large {
  width: min(640px, 86vw) !important;
  opacity: 0.98;
  filter:
    drop-shadow(0 18px 55px rgba(0,0,0,0.75))
    drop-shadow(0 0 40px rgba(80,120,255,0.10));
}

.hero-phone-large {
  margin-top: 1.2rem !important;
  font-size: 1.05rem !important;
  color: var(--rf-muted) !important;
}

.hero-phone-large a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92) !important;
}

/* Scroll indicator */
.scroll-indicator svg {
  color: rgba(255,255,255,0.55) !important;
}
.scroll-indicator:hover svg {
  color: rgba(255,255,255,0.85) !important;
}

/* =======================
   Hero content
   ======================= */
.hero-content {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0) 75%
    ) !important;
  border-top: 1px solid var(--rf-line);
}

.hero-tagline {
  color: rgba(201,169,98,0.92) !important;
}
.hero-subtitle {
  color: var(--rf-text) !important;
}
.hero-description {
  color: var(--rf-muted) !important;
}
.hero-closing {
  color: rgba(201,169,98,0.72) !important;
}

/* =======================
   BUTTONS – FIXED CONTRAST
   ======================= */
.btn,
.btn-primary,
.btn-secondary,
.btn span {
  color: rgba(255,255,255,0.97) !important;
}

.btn-primary {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}
.btn-primary:hover {
  background: rgba(255,255,255,0.18) !important;
}

.btn-whatsapp {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}

/* Storage Notice Banner - Full Override */
.cookies-banner {
  position: fixed !important;
  top: -100% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(10, 22, 40, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--gold) !important;
  border-top: none !important;
  padding: 1rem 2rem !important;
  z-index: 10000 !important;
  transition: top 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.cookies-banner.visible {
  top: 0 !important;
  bottom: auto !important;
}

.cookies-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.cookies-content p {
  margin: 0 !important;
  color: var(--rf-text) !important;
  font-size: 0.95rem !important;
  flex: 1 !important;
}

.cookies-buttons {
  display: flex !important;
  gap: 0.8rem !important;
  flex-shrink: 0 !important;
}

.cookies-accept {
  padding: 0.6rem 2rem !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
}

.cookies-accept:hover {
  background: var(--gold-light) !important;
}

/* Language Selector - Full Override */
.language-selector select,
#language-selector {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: rgba(10, 22, 40, 0.9) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a962' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 0.5rem center !important;
  padding: 0.5rem 0.8rem 0.5rem 1.8rem !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  min-width: 100px !important;
}

html[dir="ltr"] .language-selector select,
html[dir="ltr"] #language-selector {
  background-position: right 0.5rem center !important;
  padding: 0.5rem 1.8rem 0.5rem 0.8rem !important;
}

.language-selector select:hover,
#language-selector:hover {
  background-color: rgba(201, 169, 98, 0.15) !important;
}

.language-selector select option,
#language-selector option {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* =======================
   Pencil-sketch images
   ======================= */
.service-card,
.benefit-card {
  background: var(--rf-surface) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: var(--rf-shadow-soft);
}

.service-card-image,
.lectures-hero-image img,
.section img {
  background: var(--rf-paper);
  padding: 10px;
  border-radius: var(--rf-radius-lg) !important;
  border: 1px solid var(--rf-paper-line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =======================
   Sections & headers
   ======================= */
.benefits-section,
.page-header {
  background: rgba(255,255,255,0.025) !important;
  border-top: 1px solid var(--rf-line);
  border-bottom: 1px solid var(--rf-line);
}

/* =======================
   Accessibility panel
   ======================= */
.accessibility-panel {
  background: rgba(8,12,22,0.94) !important;
  border: 1px solid var(--rf-line) !important;
  box-shadow: var(--rf-shadow);
}

/* =======================
   Mobile refinements
   ======================= */
@media (max-width: 600px) {
  .hero-logo-large {
    width: min(560px, 90vw) !important;
  }
  .hero-main {
    padding-top: 5.8rem !important;
  }
}

/* Ensure background works on all screen sizes */
@media (max-width: 768px) {
  body {
    background:
      url('../images/background.jpg') center/cover no-repeat fixed,
      radial-gradient(
        1200px 700px at 50% 18%,
        var(--rf-bg-2),
        var(--rf-bg-1) 55%,
        var(--rf-bg-0) 100%
      ) !important;
  }
}

