/* ============================================
   BUBALINDA.COM - GLOBAL STYLES
   ============================================ */

:root {
  /* Primary, Black & Gold */
  --gold: #c9a961;
  --gold-dark: #a8893f;
  --gold-light: #e6c987;
  --gold-soft: #f0dfb3;

  /* Backwards-compat aliases (so existing rules using --terracotta still work) */
  --terracotta: var(--gold-dark);
  --terracotta-dark: #8a6f30;
  --ochre: var(--gold);
  --ochre-light: var(--gold-light);

  /* Backgrounds & surfaces */
  --cream: #faf6ee;
  --cream-warm: #f3ebd9;
  --paper: #ffffff;

  /* Inks */
  --ink: #0d0d0d;
  --ink-soft: #3a3a3a;

  /* Misc */
  --shadow: rgba(13, 13, 13, 0.14);
  --moss: #5a6e3f;

  /* Gambia flag, used as accent stripes */
  --gambia-red: #ce1126;
  --gambia-blue: #0c1c8c;
  --gambia-green: #3a7728;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

main { flex: 1; }

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
}

/* ============================================
   BRAND LOGO, text-based, inspired by Buba & Alinda hand-script
   "Bub" + italic gold "a" + "linda" + small gold ".com" + heart
   ============================================ */

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  position: relative;
}

.brand-text {
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}

.brand-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.1em;
  margin: 0 -1px;
  display: inline-block;
  transform: translateY(1px);
}

.brand-tld {
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0;
  margin-left: -2px;
  align-self: baseline;
}

.brand-heart {
  width: 12px;
  height: 12px;
  color: var(--gold);
  margin-left: 4px;
  align-self: center;
  transform: translateY(-6px) rotate(8deg);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(201, 169, 97, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-heart {
  transform: translateY(-8px) rotate(16deg) scale(1.15);
}

.brand:hover .brand-text em,
.brand:hover .brand-tld {
  color: var(--gold-dark);
}

/* Footer brand variant, bigger */
.footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
  line-height: 1;
}

.footer-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.1em;
  margin: 0 -1px;
}

.footer-brand-tld {
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  margin-left: -2px;
}

.footer-brand-heart {
  width: 14px;
  height: 14px;
  color: var(--gold);
  margin-left: 4px;
  align-self: center;
  transform: translateY(-10px) rotate(8deg);
  filter: drop-shadow(0 1px 2px rgba(201, 169, 97, 0.5));
}

.nav-center {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 4px;
}

.nav-center a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.2s;
}

.nav-center a:hover {
  background: var(--cream-warm);
  color: var(--ink);
}

.nav-center a.active {
  background: var(--ink);
  color: var(--cream);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.3s;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--cream);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--gold-light);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1.5px solid var(--ink);
}

.header-cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 169, 97, 0.4);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99;
  padding: 100px 6vw 40px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
}

.mobile-menu a.active {
  color: var(--gold);
  font-style: italic;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: all 0.3s;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 169, 97, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

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

.section-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header h2 em {
  font-style: italic;
  color: var(--gold);
}

.section-header p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ============================================
   PAGE HEADER (for non-home pages)
   ============================================ */

.page-header {
  padding: 160px 6vw 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ochre-light) 0%, transparent 60%);
  opacity: 0.4;
  top: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.page-header h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.page-header p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

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

/* ============================================
   GAMBIA STRIPES, accent divider
   Used as a thin tricolor band that recalls the Gambia flag.
   Add <div class="gambia-stripes"></div> wherever a divider belongs.
   ============================================ */

.gambia-stripes {
  height: 6px;
  display: flex;
  width: 100%;
}
.gambia-stripes span {
  flex: 1;
  display: block;
}
.gambia-stripes span:nth-child(1) { background: var(--gambia-red); }
.gambia-stripes span:nth-child(2) { background: #ffffff; flex: 0.15; }
.gambia-stripes span:nth-child(3) { background: var(--gambia-blue); }
.gambia-stripes span:nth-child(4) { background: #ffffff; flex: 0.15; }
.gambia-stripes span:nth-child(5) { background: var(--gambia-green); }

.gambia-stripes-thin { height: 3px; }

/* Vertical variant for sidebars/cards */
.gambia-stripes-vertical {
  width: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.gambia-stripes-vertical span {
  flex: 1;
  display: block;
  width: 100%;
}
.gambia-stripes-vertical span:nth-child(1) { background: var(--gambia-red); }
.gambia-stripes-vertical span:nth-child(2) { background: #ffffff; flex: 0.15; }
.gambia-stripes-vertical span:nth-child(3) { background: var(--gambia-blue); }
.gambia-stripes-vertical span:nth-child(4) { background: #ffffff; flex: 0.15; }
.gambia-stripes-vertical span:nth-child(5) { background: var(--gambia-green); }

/* ============================================
   FOOTER (dark, rich)
   ============================================ */

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 6vw 30px;
  margin-top: auto;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--gambia-red) 0%, var(--gambia-red) 38%,
    #ffffff 38%, #ffffff 42%,
    var(--gambia-blue) 42%, var(--gambia-blue) 58%,
    #ffffff 58%, #ffffff 62%,
    var(--gambia-green) 62%, var(--gambia-green) 100%
  );
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed rgba(201, 169, 97, 0.25);
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--cream);
}

.footer-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.footer-tagline {
  color: rgba(250, 246, 238, 0.65);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--gold);
}

.footer-col p, .footer-col a {
  display: block;
  color: rgba(250, 246, 238, 0.7);
  font-size: 13px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(250, 246, 238, 0.55);
}

.footer-bottom strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-flag {
  width: 100%;
  max-width: 140px;
  height: auto;
  margin-top: 12px;
  border-radius: 4px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  display: block;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.footer-contact-line svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */

/* ============================================
   LANGUAGE SWITCHING
   Higher-specificity rules with !important to override component-level
   display rules (e.g. .footer-col a { display: block; })
   ============================================ */

[data-lang="en"] { display: none !important; }
body.lang-en [data-lang="nl"] { display: none !important; }
body.lang-en [data-lang="en"] { display: revert !important; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  header { padding: 16px 5vw; }
  .brand { font-size: 20px; }
  
  .nav-center { display: none; }
  .header-cta span:not(.arrow) { display: none; }
  .header-cta { padding: 8px 14px; }
  
  .mobile-menu-btn { display: flex; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .page-header { padding: 130px 5vw 60px; }
}
