
/* Theme variables, scoped (no :root pollution) */
.epac-contact{
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: transparent;
  --card: #ffffff;
  --muted: #475569;
  --text: #0f172a;
  --text-soft: #334155;
  --ring: rgba(2,6,23,0.08);
}
/* Optional dark mode by class */
.epac-contact.is-dark{
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --bg: #0b1020;
  --card: #0f172a;
  --muted: #cbd5e1;
  --text: #e5e7eb;
  --text-soft: #cbd5e1;
  --ring: rgba(148,163,184,0.25);
}

.epac-contact.container{
  max-width: 1120px;
  margin-inline: auto;
  padding: 3rem 1rem;
  color: var(--text);
  background: var(--bg);
}

.title{
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text);
}

.cards{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 640px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .cards{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card{
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.epac-contact.is-dark .card{
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.epac-contact.is-dark .card:hover{
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.iconwrap{
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  margin-bottom: .75rem;
}
.icon{ width: 24px; height: 24px; color: var(--primary); }

.card-title{
  font-size: 1.125rem;
  font-weight: 700;
  margin: .5rem 0 .25rem;
  color: var(--text);
}

.link{
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(2,6,23,0.35);
}
.epac-contact.is-dark .link{
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.4);
}
.link:hover{ border-bottom-style: solid; }

.link-primary{ color: var(--primary-dark); }
.epac-contact.is-dark .link-primary{ color: #c7d2fe; }

.address{ white-space: normal; line-height: 1.55; color: var(--text-soft); }

.cta{
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.cta h2{ font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .75rem; }
.cta p{ margin-bottom: 1rem; }

.btn{
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  background: white;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn:active{ transform: translateY(0); }

/* reveal animation */
.reveal{ opacity: 0; transform: translateY(18px) scale(.98); }
.reveal.in{ opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
