/* abn-design.css
 * Design tokens and overrides for the ABN site refresh.
 * Loaded after style.css so these win on conflicts.
 *
 * Conventions:
 *  - Brand blue: #25408f
 *  - Section header: small uppercase eyebrow → large heading → optional lede paragraph, all centred
 *  - Cards: rounded 8px, soft shadow, hover lift
 *  - Team photos: ALWAYS circle (the source headshots have a Gemini watermark in the bottom-right corner that circle-crop hides)
 */

:root {
  --abn-blue: #25408f;
  --abn-blue-dark: #1a2f6a;
  --abn-blue-soft: #4a66bb;
  --abn-text: #1a1a1a;
  --abn-text-muted: #555;
  --abn-border: #e6e8ee;
  --abn-bg-soft: #f7f8fb;
  --abn-shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --abn-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --abn-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ============================================================
 * Preloader logo (replaces the template's "ABN" letter animation)
 * ============================================================ */
.preloader-logo {
  text-align: center;
  margin: 1.5rem auto 0;
}
.preloader-logo img {
  max-width: 220px;
  width: 60vw;
  height: auto;
  display: inline-block;
  animation: abn-preloader-pulse 1.6s ease-in-out infinite;
}
@keyframes abn-preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.97); }
}

/* ============================================================
 * Section header (eyebrow + title + lede)
 * ============================================================ */
.abn-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.abn-section-head .abn-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--abn-blue);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.abn-section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--abn-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.abn-section-head p {
  font-size: 1rem;
  color: var(--abn-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
 * Team — circle photos (CRITICAL: hides Gemini watermark)
 * Applies to every team-area image across the site.
 * ============================================================ */
.team-area .thumb,
.team-area .thumb img,
.director-profiles-area .thumb img {
  border-radius: 50% !important;
  overflow: hidden;
}
.team-area .thumb {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
  background: var(--abn-bg-soft);
  border: 4px solid #fff;
  box-shadow: var(--abn-shadow-md);
}
.team-area .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Restore symmetric padding on the name/role box.
 * Template's .team-area .team-items .info has padding-bottom:0 + margin-bottom:-5px
 * (designed for social-icon overhang we removed). Override to balance top/bottom. */
.team-area .team-items .info {
  padding: 1.25rem 1rem !important;
  margin-bottom: 0 !important;
  border-radius: 8px;
  text-align: center;
}

/* Founders row — slightly larger */
.team-area.abn-founders-row .thumb {
  width: 220px;
  height: 220px;
}
.team-area.abn-founders-row .item h4 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}
.team-area.abn-founders-row .item span {
  color: var(--abn-blue);
  font-weight: 600;
}

/* Management row — smaller */
.team-area.abn-management-row .thumb {
  width: 150px;
  height: 150px;
}
.team-area.abn-management-row .item h4 {
  font-size: 1rem;
  margin-top: 0.5rem;
}
.team-area.abn-management-row .item span {
  font-size: 0.85rem;
  color: var(--abn-text-muted);
  display: block;
  line-height: 1.4;
}

/* Director-profile circle photo */
.director-profiles-area .thumb {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
  border: 4px solid #fff;
  box-shadow: var(--abn-shadow-md);
  background: var(--abn-bg-soft);
  border-radius: 50%;
  overflow: hidden;
}
.director-profiles-area .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
  max-width: none !important;
}

/* ============================================================
 * Stat cards (Stats / fun-factor area)
 * ============================================================ */
.abn-stat-card {
  background: #fff;
  border: 1px solid var(--abn-border);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.abn-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--abn-shadow-md);
}
.abn-stat-card .abn-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37,64,143,0.08);
  color: var(--abn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1rem;
}
.abn-stat-card .abn-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--abn-blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.abn-stat-card .abn-stat-label {
  font-size: 0.95rem;
  color: var(--abn-text-muted);
  font-weight: 500;
}

/* ============================================================
 * Service cards (uniform)
 * ============================================================ */
.abn-service-card {
  background: #fff;
  border: 1px solid var(--abn-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.abn-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--abn-shadow-md);
  border-color: rgba(37,64,143,0.3);
}
.abn-service-card .abn-svc-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--abn-blue) 0%, var(--abn-blue-soft) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1.25rem;
}
.abn-service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--abn-text);
  margin: 0 0 0.65rem;
}
.abn-service-card p {
  color: var(--abn-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.abn-service-card .abn-svc-link {
  color: var(--abn-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.abn-service-card .abn-svc-link:hover {
  text-decoration: underline;
}

/* ============================================================
 * Portfolio cards (image or gradient header + white body)
 * ============================================================ */
.abn-pf-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--abn-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.abn-pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--abn-shadow-lg);
}
.abn-pf-card .abn-pf-head {
  padding: 2.5rem 1.75rem;
  color: #fff;
  position: relative;
  min-height: 160px;
}
/* Image-header variant: photo fills the head, gradient tints it */
.abn-pf-card .abn-pf-head.abn-pf-img-head {
  padding: 0;
  height: 220px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.abn-pf-card .abn-pf-head.abn-pf-img-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
}
.abn-pf-card .abn-pf-head.abn-pf-img-head .abn-pf-cat {
  position: relative;
  z-index: 2;
  margin: 0 0 1.25rem 1.5rem;
  background: rgba(0,0,0,0.55);
}
.abn-pf-card .abn-pf-cat {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.abn-pf-card .abn-pf-head .abn-pf-icon {
  position: absolute;
  right: 1.75rem;
  top: 1.75rem;
  font-size: 36px;
  opacity: 0.5;
}
.abn-pf-card .abn-pf-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
}
.abn-pf-card .abn-pf-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--abn-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.abn-pf-card .abn-pf-desc {
  color: var(--abn-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

/* Gradient palette */
.abn-grad-blue   { background: linear-gradient(135deg, #25408f 0%, #4a66bb 100%); }
.abn-grad-teal   { background: linear-gradient(135deg, #0d7377 0%, #14a098 100%); }
.abn-grad-purple { background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%); }
.abn-grad-amber  { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }
.abn-grad-green  { background: linear-gradient(135deg, #166534 0%, #22c55e 100%); }
.abn-grad-rose   { background: linear-gradient(135deg, #9f1239 0%, #f43f5e 100%); }

/* ============================================================
 * About-area icon-row achievements (clean icon + text rows)
 * ============================================================ */
.abn-achievement-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.5rem;
}
.abn-achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}
.abn-achievement-list .abn-ach-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37,64,143,0.08);
  color: var(--abn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.abn-achievement-list .abn-ach-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--abn-text);
  margin: 0 0 0.25rem;
}
.abn-achievement-list .abn-ach-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--abn-text-muted);
  line-height: 1.5;
}

/* ============================================================
 * Misc — tighten template artefacts
 * ============================================================ */
/* Kill stacked overlapping about images — use .abn-clean-thumb wrapper */
.abn-clean-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--abn-shadow-md);
}
.abn-clean-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.abn-clean-thumb .abn-overlay-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--abn-blue);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--abn-shadow-md);
}

/* Client logos strip — even spacing */
.clients-strip-area img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
 * Deployed-system mini cards (icon + name only)
 * ============================================================ */
.abn-system-card {
  background: #fff;
  border: 1px solid var(--abn-border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.abn-system-card:hover {
  border-color: rgba(37,64,143,0.35);
  transform: translateY(-2px);
}
.abn-system-card .abn-system-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: rgba(37,64,143,0.08);
  color: var(--abn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.abn-system-card .abn-system-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--abn-text);
  line-height: 1.3;
}

/* ============================================================
 * Equal-height row helper for support boxes
 * ============================================================ */
.abn-equal-row {
  display: flex;
  flex-wrap: wrap;
}
.abn-equal-row > [class*="col-"] {
  display: flex;
}
.abn-equal-row > [class*="col-"] > .item {
  width: 100%;
}

/* ============================================================
 * Lightbox: clickable card affordance + modal content styles
 * ============================================================ */
.abn-card-clickable {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.abn-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 64, 143, 0.12);
}
.abn-card-clickable:focus-visible {
  outline: 2px solid var(--abn-blue);
  outline-offset: 3px;
}
.abn-read-more {
  display: inline-block;
  color: var(--abn-blue);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.abn-read-more::after {
  content: ' \2192';
}

/* Hidden inline content (Magnific Popup will pull it into the modal) */
.abn-mfp-content {
  max-width: 780px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  position: relative;
  text-align: left;
}
.mfp-content .abn-mfp-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.abn-mfp-content > h2 {
  color: var(--abn-blue);
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}
.abn-mfp-content h3 {
  color: var(--abn-blue);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.abn-mfp-content h4 {
  color: var(--abn-text);
  margin: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.abn-mfp-content p { color: var(--abn-text-muted); line-height: 1.65; margin: 0 0 0.85rem; font-size: 0.95rem; }
.abn-mfp-content ul { padding-left: 1.25rem; margin: 0 0 0.85rem; color: var(--abn-text-muted); }
.abn-mfp-content ul li { margin-bottom: 0.35rem; line-height: 1.55; font-size: 0.93rem; }
.abn-mfp-content dl dt { font-weight: 700; color: var(--abn-text); margin-top: 0.7rem; font-size: 0.9rem; }
.abn-mfp-content dl dd { margin-left: 0; margin-bottom: 0.4rem; color: var(--abn-text-muted); font-size: 0.9rem; line-height: 1.5; }
.abn-mfp-content section + section { margin-top: 1.4rem; }
.abn-mfp-tagline {
  color: var(--abn-text-muted);
  font-style: italic;
  margin: 0 0 1.25rem;
}

.abn-modal-director-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--abn-border);
  margin-bottom: 0.5rem;
}
.abn-modal-director-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.abn-modal-director-role {
  color: var(--abn-text-muted);
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.abn-timeline-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.85rem;
}
.abn-timeline-list li {
  padding: 0.45rem 0 0.45rem 0.9rem;
  border-left: 2px solid var(--abn-blue);
  margin-bottom: 0.5rem;
  color: var(--abn-text-muted);
  line-height: 1.55;
  font-size: 0.93rem;
}
.abn-timeline-list li strong { color: var(--abn-text); }

/* Magnific Popup tweaks for ABN inline content */
.mfp-abn-fade .mfp-content { transition: opacity .2s ease; opacity: 0; }
.mfp-abn-fade.mfp-ready .mfp-content { opacity: 1; }
.mfp-abn-fade .mfp-bg { transition: opacity .2s ease; opacity: 0; }
.mfp-abn-fade.mfp-ready .mfp-bg { opacity: 0.85; }
.mfp-abn-fade.mfp-removing .mfp-content,
.mfp-abn-fade.mfp-removing .mfp-bg { opacity: 0; }

@media (max-width: 768px) {
  .abn-mfp-content {
    padding: 1.5rem 1.25rem;
    margin: 0 auto;
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
  }
  .abn-modal-director-header { flex-direction: column; text-align: center; }
  .abn-modal-director-photo { width: 96px; height: 96px; }
}

/* ============================================================
 * Awards gallery
 * ============================================================ */
.abn-awards-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 767px) {
  .abn-awards-gallery { grid-template-columns: repeat(2, 1fr); }
}
.abn-awards-gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #e6e8ee;
}
.abn-awards-gallery a:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 64, 143, 0.2);
}
.abn-awards-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Certificate view link */
.abn-cert-view {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--abn-blue);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.abn-cert-view::after { content: ' \2192'; }
.abn-cert-view:hover { color: #1a2f6a; text-decoration: underline; }

/* ============================================================
 * Certificate lightbox: click image to zoom (not to close)
 * Scoped to cert popups via the mfp-abn-cert mainClass.
 * ============================================================ */
.mfp-abn-cert img.mfp-img { cursor: zoom-in; }
.mfp-abn-cert.abn-is-zoomed .mfp-container { overflow: auto; }
.mfp-abn-cert.abn-is-zoomed .mfp-container:before { display: none; }
.mfp-abn-cert.abn-is-zoomed .mfp-content { vertical-align: top; max-width: none; }
.mfp-abn-cert.abn-is-zoomed img.mfp-img {
  cursor: zoom-out;
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
}
