/* =====================================================
   AIZEN WEBSITE — PATCH.CSS  v3.2
   ===================================================== */

/* --------------------------------------------------
   1. HEADER: Aizen logo — vertically centred with nav text
   -------------------------------------------------- */
header img[alt="Aizen"] {
  height: 143px !important;
  width: auto !important;
  margin-top: 0 !important;
}

/* --------------------------------------------------
   1b. FOOTER: Logo centrado verticalmente con Contact
   -------------------------------------------------- */

/* Override Tailwind h-[220px] on footer logo */
footer img[alt="Aizen"] {
  height: 143px !important;
  width: auto !important;
  margin-bottom: 1.25rem !important;
}

/* Center the logo+tagline column vertically
   so it aligns in height with phone/email rows */
footer .flex.flex-col.items-center.text-center {
  justify-content: center !important;
}

/* Also centre the grid row so all columns align mid-height */
footer [class*="grid-cols"] {
  align-items: center !important;
}

/* --------------------------------------------------
   2. CERTIFICATIONS: ISO badges larger; rest uniform
   -------------------------------------------------- */
/* ISO badges: larger (they use iso-badge.png) */
.cert-item img[src*="iso-badge"] {
  max-width: 95% !important;
  max-height: 95% !important;
  width: 95% !important;
}

/* --------------------------------------------------
   3. STRATEGIC PARTNERS — individual sizing per logo
   Google (62%) is the visual reference baseline.
   -------------------------------------------------- */
.partner-logo {
  position: relative !important;
  overflow: hidden !important;
}
.partner-logo img {
  width: auto !important;
  height: auto !important;
  max-width: 62% !important;   /* Google baseline — perfect as-is */
  max-height: 62% !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

/* CrowdStrike: 127% × 0.90 = 114% */
.partner-logo img[alt="CrowdStrike"] {
  max-width: 114% !important;
  max-height: 114% !important;
}

/* Palo Alto: 68% × 1.20 = 82% */
.partner-logo img[alt="Palo Alto"] {
  max-width: 82% !important;
  max-height: 82% !important;
}

/* Microsoft: 68% × 1.10 = 75% */
.partner-logo img[alt="Microsoft"] {
  max-width: 75% !important;
  max-height: 75% !important;
}

/* Splunk: 48% × 1.20 = 58% */
.partner-logo img[alt="Splunk"] {
  max-width: 58% !important;
  max-height: 58% !important;
}

/* Cisco: 50% × 1.10 = 55% */
.partner-logo img[alt="Cisco"] {
  max-width: 55% !important;
  max-height: 55% !important;
}

/* --------------------------------------------------
   4. #about overflow: allow tall injected content
   -------------------------------------------------- */
#about {
  overflow: visible !important;
}

/* --------------------------------------------------
   5. DUBLIN FACILITIES — typography matching About Us
   -------------------------------------------------- */
#dublin-facilities {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#dublin-facilities .facilities-header {
  text-align: center;
  margin-bottom: 3rem;
}

#dublin-facilities .facilities-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(242, 201, 76, 0.1);
  border: 1px solid rgba(242, 201, 76, 0.3);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f2c94c;
}

#dublin-facilities .facilities-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  line-height: 1.15;
}

#dublin-facilities .facilities-subtitle {
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.125rem; /* same as text-lg */
}

#dublin-facilities .facilities-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) {
  #dublin-facilities .facilities-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #dublin-facilities .facilities-features { grid-template-columns: 1fr; }
}

#dublin-facilities .facility-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}
#dublin-facilities .facility-card:hover {
  border-color: rgba(242, 201, 76, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* Yellow icon boxes — identical to module-card icons */
#dublin-facilities .facility-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.625rem;
  background: rgba(242, 201, 76, 0.1);
  border: 1px solid rgba(242, 201, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #f2c94c;
  flex-shrink: 0;
}

#dublin-facilities .facility-card h4 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

#dublin-facilities .facility-card p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem; /* text-base, matches rest of about */
  line-height: 1.7;
  margin: 0;
}

/* Gallery */
#dublin-facilities .facilities-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  #dublin-facilities .facilities-gallery { grid-template-columns: repeat(2, 1fr); }
}

#dublin-facilities .gallery-img-wrapper {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4/3;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}
#dublin-facilities .gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}
#dublin-facilities .gallery-img-wrapper:hover img {
  transform: scale(1.05);
  opacity: 1;
}
#dublin-facilities .gallery-img-wrapper .img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.625rem 0.75rem;
  background: linear-gradient(to top, rgba(10,10,10,0.85), transparent);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* --------------------------------------------------
   6. LATAM / BRAZIL BLOCK
   -------------------------------------------------- */
#latam-presence {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(242, 201, 76, 0.15);
  background: linear-gradient(135deg, rgba(242,201,76,0.04) 0%, rgba(255,255,255,0.01) 100%);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (max-width: 640px) { #latam-presence { flex-direction: column; } }

#latam-presence .latam-flag { font-size: 2.75rem; flex-shrink: 0; line-height: 1; }

#latam-presence .latam-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}
#latam-presence .latam-content p {
  font-size: 1rem; /* text-base */
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0;
}
#latam-presence .latam-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem;
}
#latam-presence .latam-pill {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 9999px;
  border: 1px solid rgba(242,201,76,0.25); background: rgba(242,201,76,0.08);
  color: rgba(242,201,76,0.85); font-weight: 500;
}

/* --------------------------------------------------
   7. SUCCESS CASES — inside #about, large typography
   -------------------------------------------------- */
#success-cases {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#success-cases .sc-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
#success-cases .sc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 9999px;
  background: rgba(242, 201, 76, 0.1); border: 1px solid rgba(242, 201, 76, 0.3);
  margin-bottom: 1.5rem; font-size: 0.875rem; font-weight: 500; color: #f2c94c;
}
#success-cases .sc-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700; color: white; margin: 0 0 1rem 0; line-height: 1.15;
}
#success-cases .sc-intro {
  color: rgba(255, 255, 255, 0.5);
  max-width: 680px; margin: 0 auto; line-height: 1.7;
  font-size: 1.125rem; /* text-lg */
}

#success-cases .sc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 1024px) {
  #success-cases .sc-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

#success-cases .sc-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
#success-cases .sc-card:hover {
  border-color: rgba(242, 201, 76, 0.3);
  transform: translateY(-4px);
}

#success-cases .sc-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: flex-start; gap: 1rem;
}

/* Yellow icon — same design as facility-icon and module-card icon */
#success-cases .sc-card-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(242, 201, 76, 0.1);
  border: 1px solid rgba(242, 201, 76, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: #f2c94c;
}

#success-cases .sc-card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: #f2c94c;
  background: rgba(242, 201, 76, 0.1); border: 1px solid rgba(242, 201, 76, 0.2);
  padding: 2px 10px; border-radius: 9999px; margin-bottom: 0.4rem;
}
#success-cases .sc-card-title {
  font-size: 1.125rem; font-weight: 700; color: white;
  margin: 0.2rem 0 0 0; line-height: 1.3;
}

#success-cases .sc-card-body { padding: 1.25rem 1.5rem 1.5rem; }

#success-cases .sc-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: rgba(255,255,255,0.3); margin-bottom: 0.3rem;
}
#success-cases .sc-text {
  font-size: 0.9rem; /* slightly larger than before */
  color: rgba(255, 255, 255, 0.55); line-height: 1.7; margin: 0 0 1rem 0;
}

#success-cases .sc-metrics {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#success-cases .sc-metric {
  flex: 1; min-width: 80px; padding: 0.6rem; border-radius: 0.5rem;
  background: rgba(242, 201, 76, 0.05);
  border: 1px solid rgba(242, 201, 76, 0.15); text-align: center;
}
#success-cases .sc-metric-value {
  font-size: 1.15rem; font-weight: 700; color: #f2c94c;
  display: block; margin-bottom: 2px;
}
#success-cases .sc-metric-label {
  font-size: 0.65rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* --------------------------------------------------
   8. SERVICE DETAIL MODAL
   -------------------------------------------------- */
#service-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#service-modal-overlay.active { opacity: 1; pointer-events: all; }

#service-modal-box {
  background: #111; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem; max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative; padding: 2.5rem;
  transform: translateY(20px); transition: transform 0.3s ease;
}
#service-modal-overlay.active #service-modal-box { transform: translateY(0); }

#service-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1; transition: border-color 0.2s, color 0.2s;
}
#service-modal-close:hover { border-color: #f2c94c; color: #f2c94c; }

#service-modal-tag {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #f2c94c; margin-bottom: 0.5rem; display: block;
}
#service-modal-title { font-size: 1.75rem; font-weight: 700; color: white; margin: 0 0 0.5rem; }
#service-modal-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin: 0 0 2rem; }

#service-modal-body h4 { color: white; font-weight: 600; font-size: 1rem; margin: 1.5rem 0 0.75rem; }
#service-modal-body h4:first-child { margin-top: 0; }
#service-modal-body p { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.7; margin: 0 0 0.75rem; }
#service-modal-body ul { list-style: none; padding: 0; margin: 0 0 1rem; }
#service-modal-body ul li { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.6; padding: 0.3rem 0 0.3rem 1.25rem; position: relative; }
#service-modal-body ul li::before { content: "▸"; position: absolute; left: 0; color: #f2c94c; }

/* --------------------------------------------------
   9. CUSTOM NAV ACTIVE STATE for tall About section
   -------------------------------------------------- */
header nav a[data-about-active="true"] {
  color: #f2c94c !important;
}
header nav a[data-about-active="true"] span.absolute {
  width: 100% !important;
}
