/* ── JUNETEENTH BARCELONA · SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --red:       #C8102E;
  --gold:      #C8920A;
  --green:     #00693A;
  --black:     #0D0D0D;
  --off-white: #F6F3EE;
  --mid:       #767676;
  --border:    rgba(13,13,13,0.1);
  --nav-h:     72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--off-white); color: var(--black); font-family: 'DM Sans', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5vw;
  background: rgba(246,243,238,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 24px rgba(0,0,0,0.06); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo svg { flex-shrink: 0; height: 22px; width: auto; }
.nav-logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; color: var(--black); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--black); text-decoration: none; font-size: 0.82rem; font-weight: 500; opacity: 0.5; transition: opacity 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links .nav-cta { background: var(--black); color: white !important; opacity: 1 !important; padding: 0.5rem 1.2rem; font-size: 0.78rem; transition: background 0.2s; }
.nav-links .nav-cta:hover { background: var(--red); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--black); transition: all 0.3s; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: var(--off-white);
  padding: 5rem 5vw 3rem;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(246,243,238,0.08);
}
.footer-brand {}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.footer-tagline { font-size: 0.8rem; line-height: 1.65; color: rgba(246,243,238,0.35); max-width: 200px; }
.footer-col h5 { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(246,243,238,0.28); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(246,243,238,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.7rem; color: rgba(246,243,238,0.2); }
.footer-flag { display: flex; gap: 4px; }
.footer-flag span { width: 8px; height: 8px; border-radius: 50%; display: block; }

/* ── SHARED COMPONENTS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 1.2rem;
}
.section-tag::before { content: ''; display: inline-block; width: 16px; height: 1.5px; background: currentColor; }
.section-tag.light { color: rgba(246,243,238,0.3); }

.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: all 0.22s; border: none; cursor: pointer;
}
.btn-dark { background: var(--black); color: white; }
.btn-dark:hover { background: var(--red); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #a50d25; }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-outline:hover { background: var(--black); color: white; }
.btn-outline-light { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: white; }
.btn-white { background: white; color: var(--black); }
.btn-white:hover { background: var(--off-white); }

/* ── TICKER ── */
.ticker { background: var(--red); overflow: hidden; padding: 0.7rem 0; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-track span { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: white; padding: 0 2rem; }
.ticker-track .sep { color: rgba(255,255,255,0.3); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── LANGUAGE PICKER ── */
.lang-picker {
  position: relative;
  display: flex; align-items: center;
  margin-left: 0.5rem;
}
.lang-trigger {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: 1.5px solid var(--border);
  padding: 0.35rem 0.7rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--black); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-trigger:hover { border-color: var(--black); }
.lang-trigger svg { width: 13px; height: 13px; opacity: 0.6; flex-shrink: 0; }
.lang-trigger .lang-caret { opacity: 0.4; font-size: 0.6rem; margin-left: 0.1rem; transition: transform 0.2s; }
.lang-picker.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--off-white);
  border: 1.5px solid var(--black);
  min-width: 110px;
  display: none; flex-direction: column;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(13,13,13,0.1);
}
.lang-picker.open .lang-dropdown { display: flex; }
.lang-option {
  padding: 0.65rem 1rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(13,13,13,0.55);
  cursor: pointer; background: none; border: none;
  text-align: left; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--black); color: white; }
.lang-option.lang-active { color: var(--black); font-weight: 700; }
.lang-option.lang-active::after { content: ' ✓'; color: var(--green); }

/* ── GOOGLE TRANSLATE — hide default widget bar ── */
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--off-white); padding: 2rem 5vw; border-bottom: 1px solid var(--border); gap: 1.5rem; }
  .nav-mobile-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── CUSTOM CURSOR ── */
*, *::before, *::after { cursor: none !important; }
.cursor {
  position: fixed; pointer-events: none; z-index: 99999;
  top: 0; left: 0; mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: white; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid white; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.3s, border-color 0.3s;
}
.cursor.hovering .cursor-dot { width: 0; height: 0; opacity: 0; }
.cursor.hovering .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); border-width: 2px; }
.cursor.clicking .cursor-dot { width: 12px; height: 12px; }
.cursor.clicking .cursor-ring { width: 28px; height: 28px; }
.cursor.hidden { opacity: 0; }
@media (hover: none) { *, *::before, *::after { cursor: auto !important; } .cursor { display: none; } }
