/* ═══════════════════════════════════════════════
   BEC Global Styles
   Barcelona Entrepreneurs Club — barcelonaentrepreneurs.com
   ═══════════════════════════════════════════════ */

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

/* ── PALETTE ── */
:root {
  /* Brand colors */
  --cream:       #FDFCFA;          /* soft white background */
  --cream-alt:   #F5F0EB;          /* slightly warmer, for alternating sections */
  --ink:         #1A1410;
  --red:         #8B2626;
  --red-light:   #B03A3A;
  --red-dim:     #6E1E1E;
  --muted:       #564E44;          /* body text — readable on cream */
  --border:      #E2DCD4;
  --white:       #FFFFFF;

  /* RGB channels — use with rgba(var(--x-rgb), .alpha) */
  --red-rgb:     139,38,38;
  --cream-rgb:   253,252,250;
  --ink-rgb:     26,20,16;
  --white-rgb:   255,255,255;
  --muted-rgb:   86,78,68;

  /* Derived */
  --border-dark: rgba(var(--white-rgb), 0.08);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-accent:  'Dancing Script', cursive;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper-grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--red); }

/* ── SHARED SECTION ELEMENTS ── */
.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 680px;
}
.section-title em { font-style: italic; color: var(--red); }

.section-divider { width: 100%; height: 1px; background: var(--border); position: relative; z-index: 1; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 52px;
  background: rgba(var(--cream-rgb), 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: 175px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); }
.header-nav a.active { color: var(--ink); font-weight: 600; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.header-cta:hover { background: var(--red-dim); transform: translateY(-1px); }

/* ── MOBILE MENU TOGGLE ── */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
  transition: border-color 0.2s;
}

.menu-toggle:hover {
  border-color: var(--muted);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-cta { display: none; }

/* ── FOOTER ── */
.site-footer {
  padding: 48px 80px 36px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
  display: block;
}

.footer-logo-text span {
  color: var(--red);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
  margin-top: 16px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity 0.2s;
}

.footer-social-icon:hover { opacity: 0.8; }
.footer-social-icon.meetup { background: #E0393E; }
.footer-social-icon.telegram { background: #2AABEE; }
.footer-social-icon.whatsapp { background: #25D366; }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--red); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--red-dim); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  padding: 18px 40px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--red); transform: translateY(-2px); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 80px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-header { padding: 14px 20px; }

  .menu-toggle { display: flex; }

  /* ── Mobile full-screen menu ── */
  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 200;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 32px;
    overflow-y: auto;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .header-nav a:first-child {
    border-top: 1px solid var(--border);
  }

  .header-nav a.active {
    color: var(--ink);
    font-weight: 600;
  }

  .header-cta { display: none; }

  .nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 16px 36px !important;
    border-radius: 100px !important;
    border: none !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin-top: 20px !important;
    width: auto !important;
    max-width: none !important;
  }

  .container { padding: 0 24px; }

  .site-footer { padding: 40px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}
