/* ═══════════════════════════════════════════════════════════════
   EUROALBA — dark partnership section, palace photo, stats, grid
═══════════════════════════════════════════════════════════════ */

#euroalba {
  position: relative;
  padding: 96px 48px;
  overflow: hidden;
  background: linear-gradient(160deg, #040d1c 0%, #081428 60%, #0c1b36 100%);
}
.euroalba-palace-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/images/palace.jpg');
  background-size: cover;
  background-position: center 25%;
  opacity: .10;
  filter: saturate(0.55) sepia(0.3);
}
.euroalba-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.euroalba-glow {
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 580px;
  background: radial-gradient(ellipse, rgba(201,168,76,.05) 0%, transparent 65%);
  pointer-events: none;
}

.ea-container { position: relative; z-index: 2; }

/* ── Header block ──────────────────────────────────────────── */
.ea-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.euroalba-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: var(--rfull);
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold2);
  margin-bottom: 18px;
}
.euroalba-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold2);
  animation: blink 2.4s ease-in-out infinite;
}
.euroalba-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800; line-height: 1.15; letter-spacing: -1px;
  color: #fff; margin-bottom: 16px;
}
.euroalba-title em { font-style: italic; color: var(--gold2); }
.euroalba-desc {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,.62);
}

.euroalba-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; margin: 56px 0;
}

/* ── Left column ───────────────────────────────────────────── */
.euroalba-proj-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800; letter-spacing: -.6px;
  color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.euroalba-proj-title em { color: var(--gold2); font-style: italic; }
.euroalba-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 11px 22px; border-radius: var(--rfull);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  margin-top: 20px;
}
.euroalba-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,168,76,.3); }
.ea-arrow { opacity: .55; }

/* ── Stats column ──────────────────────────────────────────── */
.euroalba-stats { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.euroalba-stat {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.1);
  border-left: 3px solid var(--gold);
  border-radius: var(--rmd);
  transition: background .2s;
}
.euroalba-stat:hover { background: rgba(201,168,76,.05); }
.euroalba-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--gold2); line-height: 1; min-width: 70px;
}
.euroalba-stat-lbl {
  font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.4;
}

/* ── Projects grid ─────────────────────────────────────────── */
.euroalba-proj-header { margin: 56px 0 28px; text-align: center; }
/* Single horizontal carousel: a snap-scrolling track + overlay arrows.
   min-width:0 lets it shrink inside the grid column so the track can
   actually overflow-scroll instead of stretching the column to content. */
.proj-carousel { position: relative; min-width: 0; }
.proj-grid {
  display: flex;
  gap: 2.5%;                        /* gap between cards */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox */
  scroll-snap-type: x mandatory;
  padding: 4px 2px 8px;
  margin-bottom: 0;
}
.proj-grid::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.proj-card {
  flex: 0 0 75%;                    /* one main item in sight; ~10% peek each side */
  width: 75%;
  scroll-snap-align: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--rmd);
  padding: 14px 14px 12px;
  transition: background .2s, border-color .2s, transform .2s;
}
/* Big, centered project photo */
.proj-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  border-radius: var(--rsm);
  margin-bottom: 12px;
  background: #0d1a2e;
}
.proj-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(201,168,76,.28);
  transform: translateY(-3px);
}

/* Prev/next controls */
.proj-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,21,38,.82); color: var(--gold2);
  border: 1px solid rgba(201,168,76,.35);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 3;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.proj-nav:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.proj-nav.prev { left: -8px; }
.proj-nav.next { right: -8px; }
.proj-nav:disabled { opacity: 0; pointer-events: none; }
.proj-icon {
  height: 30px; margin-bottom: 8px;
  display: flex; align-items: center;
  font-size: 22px; line-height: 1;
  color: var(--gold2);
}
.proj-icon .ic { width: 22px; height: 22px; }
.proj-name  { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 6px; }
.proj-detail { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.proj-loc    { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; }

/* ── Why-cards (inside EuroAlba) ───────────────────────────── */
.why-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.why-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--rlg);
  padding: 26px 22px; text-align: center;
  transition: background .2s, border-color .2s;
}
.why-card:hover {
  background: rgba(201,168,76,.05);
  border-color: rgba(201,168,76,.22);
}
.why-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold2);
}
.why-card-icon .ic { width: 22px; height: 22px; }
.why-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.why-card-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65; }

/* ── Palace photo card — featured image + 2 supporting thumbs ─ */
.euroalba-palace-card {
  width: 100%;
  min-width: 0;            /* allow the carousel track to scroll, not stretch */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.palace-img-wrap {
  position: relative;
  border-radius: var(--rlg);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.22);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  background: #0d1a2e;
  margin: 0;
}
.palace-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.palace-img-wrap:hover img { transform: scale(1.04); }
.palace-main img { height: 280px; object-position: center 30%; }
.palace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.palace-sub img { height: 130px; }
.palace-sub { box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.palace-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px 10px;
  background: linear-gradient(transparent, rgba(4,13,28,.92));
  margin: 0;
}
.palace-sub .palace-caption { padding: 10px 12px 8px; }
.palace-caption-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px;
}
.palace-sub .palace-caption-title { font-size: 12px; }
.palace-caption-sub { font-size: 11.5px; color: rgba(255,255,255,.6); }
.palace-sub .palace-caption-sub { font-size: 10.5px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  #euroalba        { padding: 64px 24px; }
  .euroalba-top    { grid-template-columns: 1fr; gap: 36px; margin: 36px 0; }
  .why-cards       { grid-template-columns: 1fr 1fr; }
  .palace-main img { height: 260px; }
  .palace-sub img  { height: 120px; }
}
@media (max-width: 768px) {
  #euroalba        { padding: 52px 20px; }
  .why-cards       { grid-template-columns: 1fr; }
  .palace-main img { height: 220px; }
  .palace-sub img  { height: 110px; }
  .euroalba-stats  { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .euroalba-stat   { flex: 1; min-width: 130px; }
}
@media (max-width: 480px) {
  #euroalba           { padding: 40px 16px; }
  .proj-card          { flex-basis: 82%; width: 82%; }
  .proj-image         { height: 170px; }
  .palace-main img    { height: 200px; }
  .palace-sub img     { height: 100px; }
  .euroalba-stats     { flex-direction: column; }
  .euroalba-stat-num  { font-size: 26px; }
}

/* ── RTL ────────────────────────────────────────────────────── */
[dir="rtl"] .euroalba-stat       { border-left: 1px solid rgba(201,168,76,.1); border-right: 3px solid var(--gold); }
