/* ============================================================
   ABALAR — Multi-page Stylesheet
   ============================================================ */

/* --- Shared wide container: page content aligns with logo ↔ CTA button --- */
.container {
  max-width: 1480px;
  padding: 0 32px;
}

/* --- Nav items sizing --- */
.nav-menu { gap: 2px; }
.nav-menu a { font-size: 0.75rem; padding: 7px 7px; white-space: nowrap; }
.nav-cta   { font-size: 0.78rem; padding: 9px 16px; margin-left: 4px; white-space: nowrap; flex-shrink: 0; }

/* hamburger only below 1180px */
@media (max-width: 1180px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    position: fixed;
    top: 88px;
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(234,223,206,.92);
    z-index: 999;
  }
  .nav-menu.open .nav-cta-mobile { display: flex; margin: 12px 0 0; }
}
@media (min-width: 1181px) {
  .hamburger { display: none !important; }
  .nav-menu  { display: flex !important; }
  .nav-cta   { display: inline-flex !important; }
}

/* --- Page hero --- */
.page-hero {
  padding: 64px 0 56px; text-align: center;
  position: relative; overflow: hidden;
  background: var(--purple-light);
}
.page-hero.ph-orange { background: #FFF7ED; }
.page-hero.ph-green  { background: #F0FDF4; }
.page-hero.ph-dark   { background: var(--dark); }
.page-hero.ph-dark h1, .page-hero.ph-dark p { color: var(--white); }

.page-hero::before {
  content: ''; position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: var(--purple); opacity: .06;
  top: -180px; right: -80px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--orange); opacity: .07;
  bottom: -60px; left: -40px; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 10px 0 18px; }
.page-hero > .container > p { max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--grey); margin-bottom: 16px;
}
.breadcrumb a { color: var(--purple); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #C4B5FD; }

/* --- Page sections --- */
.page-section { padding: 80px 0; }
.page-section.bg-white        { background: var(--white); }
.page-section.bg-light        { background: var(--light-bg); }
.page-section.bg-purple-light { background: var(--purple-light); }

/* --- Two-column --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.align-top { align-items: start; }
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse > * { order: unset !important; }
}

/* --- Info box --- */
.info-box { background: var(--white); border-radius: var(--radius); padding: 32px 36px; border: 1.5px solid #EDE9FA; }

/* --- Feature block --- */
.feature-block {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 24px; padding: 52px 48px;
  position: relative; overflow: hidden;
}
.feature-block::before {
  content: ''; position: absolute; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.05); top: -100px; right: -60px;
}
.feature-block h2, .feature-block h3 { color: var(--white); }
.feature-block p { color: rgba(255,255,255,.78); }
.feature-block .eyebrow { color: #C4B5FD; }

/* --- Check list --- */
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-light); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; margin-top: 2px; font-weight: 900;
}
.check-text { font-size: .95rem; color: var(--dark); line-height: 1.5; }

/* --- Tags --- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag { padding: 7px 18px; border-radius: 50px; font-size: .82rem; font-weight: 700; }
.tag.purple { background: var(--purple-light); color: var(--purple); }
.tag.orange { background: #FEF3C7; color: #D97706; }
.tag.green  { background: #DCFCE7; color: var(--green-dark); }
.tag.blue   { background: #DBEAFE; color: #1D4ED8; }

/* --- Page image --- */
.page-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.page-img img { width: 100%; object-fit: cover; min-height: 340px; }

/* --- Big stat cards --- */
.big-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.big-stat-card {
  background: var(--white); border-radius: 20px;
  padding: 36px 32px; border: 1.5px solid #EDE9FA; text-align: center;
}
.big-stat-number { font-size: 3.6rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.big-stat-label  { font-size: .9rem; color: var(--grey); font-weight: 500; }

/* --- Steps --- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--purple-light); color: var(--purple);
  font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h4 { margin-bottom: 4px; }
.step-body p  { font-size: .9rem; margin: 0; }

/* --- Partner grid --- */
.partner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.partner-card {
  background: var(--white); border: 1.5px solid #EDE9FA;
  border-radius: 16px; padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; transition: var(--transition);
  font-weight: 700; color: var(--grey); font-size: .9rem; text-align: center;
}
.partner-card:hover { border-color: var(--purple); color: var(--purple); box-shadow: var(--shadow); }
@media (max-width: 700px) { .partner-grid { grid-template-columns: repeat(2,1fr); } }

/* --- News tabs --- */
.news-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.news-tab {
  padding: 8px 20px; border-radius: 50px; font-size: .84rem; font-weight: 700;
  border: 2px solid #EDE9FA; cursor: pointer; transition: var(--transition);
  background: var(--white); color: var(--grey);
}
.news-tab.active, .news-tab:hover { background: var(--purple); color: var(--white); border-color: var(--purple); }

/* --- Related pages strip --- */
.related-pages { padding: 56px 0; background: var(--dark); }
.related-pages-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 28px;
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 24px; transition: var(--transition);
  text-decoration: none; display: block;
}
.related-card:hover { background: rgba(107,53,200,.25); border-color: var(--purple); }
.related-card-icon { font-size: 1.4rem; margin-bottom: 10px; }
.related-card h4 { color: var(--white); margin-bottom: 6px; font-size: 1rem; }
.related-card p  { color: rgba(255,255,255,.5); font-size: .83rem; margin: 0; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* --- Map placeholder --- */
.map-placeholder {
  background: linear-gradient(145deg, var(--purple-light), #dbeafe);
  border-radius: 24px; min-height: 420px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 5rem; box-shadow: var(--shadow); gap: 12px;
}
.map-placeholder p { font-size: 1rem; font-weight: 700; color: var(--purple); margin: 0; }

/* --- Participate cards --- */
.participate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.participate-card {
  border-radius: 20px; padding: 40px 36px;
  border: 2px solid #EDE9FA; transition: var(--transition);
}
.participate-card:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.participate-card.featured {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
}
.participate-card.featured h3,
.participate-card.featured p { color: var(--white); }
.participate-card.featured p { color: rgba(255,255,255,.75); }
.participate-icon {
  font-size: 2rem; width: 60px; height: 60px; border-radius: 16px;
  background: var(--purple-light); display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
}
.participate-card.featured .participate-icon { background: rgba(255,255,255,.15); }
.participate-card h3 { margin-bottom: 12px; }
.participate-card p  { font-size: .92rem; margin-bottom: 24px; }
@media (max-width: 700px) { .participate-grid { grid-template-columns: 1fr; } }

/* --- Contact grid --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Inner wide news grid --- */
.news-grid-lg {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
@media (max-width: 900px) { .news-grid-lg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid-lg { grid-template-columns: 1fr; } }

/* --- Participar hero title accent --- */
.participa-hero .eyebrow::after {
  display: none;
}

.participa-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.participa-title-accent::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 84%;
  height: 10px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 14' preserveAspectRatio='none'%3E%3Cpath d='M4 10c10-4 21-6 34-5 12 1 25 2 42-2' fill='none' stroke='%235e28d8' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

@media (max-width: 700px) {
  .participa-title-accent {
    padding-bottom: 12px;
  }

  .participa-title-accent::after {
    width: 78%;
    height: 8px;
  }
}


/* Language switcher visibility in static/page previews */
.nav-language-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu.open .nav-language-item {
  display: block;
}

.nav-menu.open .language-switcher {
  margin: 4px 0 8px;
  width: max-content;
}

.nav-menu.open .language-options {
  left: 0;
  right: auto;
}

.nav-menu.open .language-options a {
  display: flex;
}

/* --- Legal pages --- */
.legal-hero {
  padding-bottom: 48px;
}

.legal-page .page-section {
  padding: 72px 0 88px;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.85;
}

.legal-content h2 {
  margin: 42px 0 14px;
  color: var(--dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-updated {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: .88rem;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .legal-page .page-section {
    padding: 52px 0 64px;
  }

  .legal-content {
    font-size: .95rem;
    line-height: 1.75;
  }

  .legal-content h2 {
    margin-top: 34px;
  }

  .legal-updated {
    display: flex;
    border-radius: 18px;
  }
}
