/* ============================================================
   SEP SourceOne International – Website Stylesheet
   Brand Colors: Navy #1B2A6B | Gold #C9A84C | Sky #72A2C4
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --navy:       #1B2A6B;
  --deep-navy:  #14183A;
  --slate:      #444D72;
  --steel:      #5B6794;
  --sky:        #72A2C4;
  --powder:     #8AB3D2;
  --ice:        #A5C5DE;
  --gold:       #C9A84C;
  --gold-light: #E8D08A;
  --white:      #FFFFFF;
  --grey-light: #F4F6FB;
  --grey-mid:   #D8D8D8;
  --grey-dark:  #BFC3CC;
  --text-dark:  #1A1A2E;
  --text-mid:   #3B3F5C;
  --text-light: #6B7280;
  --shadow-sm:  0 2px 8px rgba(27,42,107,0.10);
  --shadow-md:  0 6px 24px rgba(27,42,107,0.14);
  --shadow-lg:  0 12px 40px rgba(27,42,107,0.18);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: all 0.28s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-mid); font-size: 1rem; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-navy { background: var(--navy); }
.bg-deep-navy { background: var(--deep-navy); }
.bg-grey { background: var(--grey-light); }
.gold-text { color: var(--gold); }
.sky-text  { color: var(--sky); }

/* Section heading accent */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sky));
  border-radius: 2px;
}
.section-heading p {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.28s ease, color 0.28s ease;
  white-space: nowrap;
  transform: translateY(0);
}
/* Bevel rectangle + push-button feel, applied site-wide — same recipe as
   the Quality Excellence page, colors/backgrounds below are unchanged. */
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 6px 0 #0d1128,
    0 12px 20px rgba(27,42,107,0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 8px 0 #0d1128,
    0 16px 26px rgba(27,42,107,0.40);
}
.btn-primary:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 2px rgba(0,0,0,0.3),
    0 1px 0 #0d1128,
    0 2px 6px rgba(27,42,107,0.3);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 3px rgba(80,56,8,0.25),
    0 6px 0 #8b6914,
    0 12px 20px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 3px rgba(80,56,8,0.25),
    0 8px 0 #8b6914,
    0 16px 26px rgba(201,168,76,0.50);
}
.btn-gold:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 2px rgba(80,56,8,0.3),
    0 1px 0 #8b6914,
    0 2px 6px rgba(201,168,76,0.35);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 0 rgba(255,255,255,0.18);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 0 rgba(255,255,255,0.28), 0 14px 22px rgba(0,0,0,0.25);
}
.btn-outline:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 0 rgba(255,255,255,0.2);
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(27,42,107,0.18);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 0 rgba(27,42,107,0.28), 0 14px 22px rgba(27,42,107,0.25);
}
.btn-outline-navy:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 0 rgba(27,42,107,0.2);
}

/* ---- Top Info Bar ---- */
.top-bar {
  background: var(--deep-navy);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--grey-mid);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--ice); transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar-item { display: flex; align-items: center; gap: 5px; }

/* ---- Header / Navbar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header .container {
  max-width: 1360px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand .brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  border-radius: 16px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.brand-legacy {
  font-size: 0.7rem;
  color: var(--steel);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
}
.nav-item { position: relative; display: flex; min-width: 0; }
.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  margin: 3px 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.24;
  text-align: center;
  color: var(--navy);
  border-radius: 10px;
  border: 1px solid var(--grey-mid);
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -3px 6px rgba(20,24,58,0.12) inset,
    0 3px 6px rgba(20,24,58,0.14),
    0 6px 14px rgba(20,24,58,0.08);
  white-space: normal;
  word-break: normal;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.nav-link::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.9), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sky));
  border-radius: 2px;
  transition: width 0.4s ease, left 0.4s ease;
}
@keyframes navSweep {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
@keyframes navSettle {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-5px) scale(1.045); }
  100% { transform: translateY(-3px) scale(1.035); }
}
.nav-link:hover, .nav-link.active {
  color: var(--deep-navy);
  background: var(--white);
  border-color: var(--gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 -3px 6px rgba(20,24,58,0.08) inset,
    0 0 0 2px rgba(201,168,76,0.5),
    0 10px 22px rgba(20,24,58,0.2),
    0 3px 8px rgba(201,168,76,0.3);
  animation: navSettle 0.5s cubic-bezier(.22,1.4,.36,1) forwards;
}
.nav-link:hover::before, .nav-link.active::before { animation: navSweep 0.75s ease forwards; }
.nav-link:hover::after, .nav-link.active::after { width: 55%; left: 22.5%; }
.nav-link:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 1px 2px rgba(20,24,58,0.25) inset, 0 1px 2px rgba(20,24,58,0.15) !important;
  animation: none;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 9px 20px;
  font-size: 0.86rem;
  color: var(--text-mid);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--grey-light);
  color: var(--navy);
  padding-left: 26px;
}

.nav-cta { margin-left: 6px; flex-shrink: 0; }
.nav-cta .btn { padding: 0 14px; min-height: 44px; font-size: 0.86rem; }
/* "Contact SEP" nav button — gold, shallow bevel sized to match the other nav buttons
   (the standalone .btn-gold's deeper "0 6px 0" 3D lip was making it look taller). */
.nav-cta .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -3px 4px rgba(80,56,8,0.22),
    0 3px 6px rgba(80,56,8,0.2),
    0 6px 14px rgba(201,168,76,0.32);
}
.nav-cta .btn-primary:hover {
  background: linear-gradient(135deg, #d9b563 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -3px 4px rgba(80,56,8,0.22),
    0 0 0 2px rgba(201,168,76,0.4),
    0 10px 18px rgba(201,168,76,0.42);
}
.nav-cta .btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 3px rgba(80,56,8,0.3),
    0 1px 3px rgba(80,56,8,0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 50%, var(--slate) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(114,162,196,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,168,76,0.10) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--white) 0px, var(--white) 1px,
    transparent 1px, transparent 40px
  );
}

/* ---- Hero Photo-Loop Watermark (continuous background slideshow) ---- */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroPhotoFade 16s ease-in-out infinite;
}
.hero-photo-slide:nth-child(1) {
  background-image: url('../img/hero/watermark/hero-wm-1-cotton-field.jpg');
  animation-delay: 0s;
}
.hero-photo-slide:nth-child(2) {
  background-image: url('../img/hero/watermark/hero-wm-2-knitting-hall.jpg');
  animation-delay: 4s;
}
.hero-photo-slide:nth-child(3) {
  background-image: url('../img/hero/watermark/a4a4.png');
  background-position: 68% 48%;
  filter: brightness(0.97) saturate(1);
  animation-delay: 8s;
}
.hero-photo-slide:nth-child(4) {
  background-image: url('../img/hero/watermark/hero-wm-4-shipping-logistics.jpg');
  animation-delay: 12s;
}
@keyframes heroPhotoFade {
  0%   { opacity: 0; transform: scale(1); }
  2%   { opacity: 1; }
  21%  { opacity: 1; transform: scale(1.06); }
  25%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}
.hero-photo-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(15,19,50,0.90) 0%, rgba(20,24,58,0.72) 30%, rgba(20,24,58,0.38) 55%, rgba(20,24,58,0.16) 75%, rgba(20,24,58,0.08) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #f0d68a 0%, var(--gold) 45%, #a97f26 100%);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--deep-navy);
  padding: 9px 24px 9px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.75),
    inset 0 -4px 8px rgba(90,64,10,0.35),
    0 6px 14px rgba(201,168,76,0.35),
    0 0 0 rgba(201,168,76,0.55);
  animation: badgeGlow 2.6s ease-in-out infinite;
}
.hero-badge .badge-star {
  display: inline-block;
  animation: badgeStar 2.6s ease-in-out infinite;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: badgeShine 3.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes badgeShine {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes badgeGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.75),
      inset 0 -4px 8px rgba(90,64,10,0.35),
      0 6px 14px rgba(201,168,76,0.35),
      0 0 0 rgba(201,168,76,0.45);
  }
  50% {
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,0.85),
      inset 0 -4px 8px rgba(90,64,10,0.35),
      0 8px 22px rgba(201,168,76,0.55),
      0 0 18px 3px rgba(201,168,76,0.45);
  }
}
@keyframes badgeStar {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.3) rotate(20deg); }
}
.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 28px;
  border-radius: 16px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.hero h1 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.hero-company-wrap {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-company-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: companyScroll 8s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-company {
  display: inline-block;
  color: var(--gold);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding-right: 70px;
  white-space: nowrap;
}
@keyframes companyScroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}
.hero-tagline {
  color: var(--ice);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  margin-bottom: 28px;
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--ice);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Marquee/Trust Bar ---- */
.trust-bar {
  background: var(--navy);
  padding: 14px 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  gap: 48px;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-size: 0.84rem;
  font-weight: 600;
  flex-shrink: 0;
}
.trust-bar-item svg { color: var(--gold); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px 28px;
  perspective: 1600px;
}
.cards-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cards-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Service Card — deep 3D tilt style */
.service-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f8 100%);
  border-radius: 18px;
  padding: 34px 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 3px 6px rgba(27,42,107,0.10),
    0 18px 30px -14px rgba(27,42,107,0.30);
  border: 1px solid rgba(27,42,107,0.07);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: perspective(1200px) rotateX(2deg) translateY(0) scale(1);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::before {
  /* contact shadow — grows and darkens as the card lifts, selling the 3D depth */
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  bottom: -14px;
  height: 26px;
  background: radial-gradient(ellipse, rgba(20,24,58,0.38) 0%, transparent 72%);
  border-radius: 50%;
  opacity: 0.55;
  transform: scaleX(0.9);
  transition: all 0.5s ease;
  z-index: -1;
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.6) 48%, transparent 62%);
  transform: translateX(-140%);
  animation: cardShimmerFast 1.15s ease-in-out infinite;
  pointer-events: none;
}
.service-card:hover {
  transform: perspective(1200px) rotateX(-6deg) rotateY(5deg) translateY(-16px) scale(1.035);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 6px 14px rgba(27,42,107,0.14),
    0 40px 55px -18px rgba(27,42,107,0.45);
  border-color: var(--ice);
}
.service-card:hover::before {
  bottom: -26px;
  opacity: 0.85;
  transform: scaleX(1.06);
  filter: blur(2px);
}
@keyframes cardShimmerFast {
  0%   { transform: translateX(-140%); }
  60%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
.service-card .card-icon {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--sky) 0%, var(--navy) 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.55),
    inset 0 -10px 16px rgba(0,0,0,0.32),
    0 14px 22px -6px rgba(27,42,107,0.55);
  animation: iconFloat 3.4s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card .card-icon::after {
  /* soft floating contact-shadow beneath the icon badge */
  content: '';
  position: absolute;
  left: 12%; right: 12%;
  bottom: -12px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(20,24,58,0.40), transparent 75%);
  border-radius: 50%;
  z-index: -1;
}
.service-card:hover .card-icon {
  transform: translateY(-6px) scale(1.08) rotate(-3deg);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.6),
    inset 0 -10px 16px rgba(0,0,0,0.32),
    0 22px 30px -8px rgba(27,42,107,0.6);
}
.service-card .card-icon::before {
  content: '';
  position: absolute;
  top: -35%; left: -25%;
  width: 85%; height: 85%;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
  transform: rotate(-20deg);
  pointer-events: none;
}
.service-card .card-icon i {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  color: var(--white);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.service-card h3 { font-size: 1.05rem; color: var(--navy); }
.service-card p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }
.service-card .card-link {
  font-size: 0.85rem;
  color: var(--sky);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: var(--transition);
}
.service-card .card-link:hover { color: var(--navy); gap: 8px; }

/* Feature Card (why choose us) — deep 3D tilt style */
.feature-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f8 100%);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 3px 6px rgba(27,42,107,0.09),
    0 16px 26px -14px rgba(27,42,107,0.28);
  border-left: 4px solid var(--navy);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  transform: perspective(1200px) rotateX(2deg) translateY(0);
  transform-style: preserve-3d;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  bottom: -12px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(20,24,58,0.32) 0%, transparent 72%);
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.5s ease;
  z-index: -1;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.55) 48%, transparent 62%);
  transform: translateX(-140%);
  animation: cardShimmerFast 1.15s ease-in-out infinite;
  pointer-events: none;
}
.feature-card:hover {
  transform: perspective(1200px) rotateX(-5deg) rotateY(4deg) translateY(-12px) scale(1.03);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 34px 46px -16px rgba(27,42,107,0.40);
}
.feature-card:hover::before { bottom: -22px; opacity: 0.8; filter: blur(2px); }
.feature-card .fc-num {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(180deg, var(--ice) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(27,42,107,0.25));
  transition: transform 0.4s ease;
}
.feature-card:hover .fc-num { transform: translateY(-3px) scale(1.08); }
.feature-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.feature-card p  { font-size: 0.88rem; color: var(--text-light); }

/* Stat Card */
.stat-card {
  text-align: center;
  padding: 32px 20px;
}
.stat-card .big-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-card .big-label {
  font-size: 0.9rem;
  color: var(--ice);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- Intro Section ---- */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-section.reverse { direction: rtl; }
.intro-section.reverse > * { direction: ltr; }
.intro-text h2 { margin-bottom: 16px; }
.intro-text p  { margin-bottom: 18px; font-size: 1rem; }
.intro-text ul { margin: 18px 0 28px; }
.intro-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.95rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--grey-light);
}
.intro-text ul li:last-child { border-bottom: none; }
.intro-text ul li .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 0.7rem;
  margin-top: 2px;
}
.intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.intro-image .img-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.5;
}
.intro-image .img-badge .badge-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--deep-navy));
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(114,162,196,0.12), transparent);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  { color: var(--ice); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner .btn-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---- QMS Section ---- */
.qms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.qms-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.qms-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}
.qms-card .qms-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 16px;
  background: var(--grey-light);
}
.qms-card .qms-body {
  padding: 20px;
}
.qms-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.qms-card p  { font-size: 0.85rem; color: var(--text-light); }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
  perspective: 1400px;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f8 100%);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27,42,107,0.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 3px 6px rgba(27,42,107,0.08),
    0 16px 28px -14px rgba(27,42,107,0.25);
  transition: transform 0.4s cubic-bezier(.2,.8,.3,1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.gallery-item:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 42px -16px rgba(27,42,107,0.38),
    0 10px 18px rgba(27,42,107,0.18);
  border-color: var(--ice);
  z-index: 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(27,42,107,0.18));
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.gallery-item:hover::after { transform: translateX(120%); }

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.gallery-tab {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--grey-mid);
  color: var(--text-mid);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-tab:hover, .gallery-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { color: var(--navy); margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-item .ci-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.1rem;
}
.contact-item .ci-body h4 { font-size: 0.88rem; color: var(--text-light); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item .ci-body p, .contact-item .ci-body a {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.contact-item .ci-body a:hover { color: var(--navy); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-mid);
}
.contact-form h3 { color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--grey-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(114,162,196,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- File Upload Field ---- */
.file-upload-wrap {
  border: 2px dashed var(--grey-mid);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f9fc;
  transition: border-color 0.25s;
  cursor: pointer;
}
.file-upload-wrap:hover { border-color: var(--navy); }
.file-upload-wrap input[type="file"] { display: none; }
.file-upload-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.2s;
  flex-shrink: 0;
}
.file-upload-btn:hover { background: var(--gold); color: var(--deep-navy); }
.file-upload-info { flex: 1; min-width: 0; }
.file-upload-name {
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.file-upload-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }
.file-upload-wrap.has-file { border-color: var(--navy); border-style: solid; background: #f0f3fb; }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.team-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.team-card p  { font-size: 0.82rem; color: var(--text-light); }
.team-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0 auto 16px;
  border: 3px solid var(--ice);
  box-shadow: 0 2px 10px rgba(27,42,107,0.15);
}

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { background: var(--grey-light); }
.faq-question h4 {
  font-size: 0.97rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  font-weight: 700;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--navy); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-answer p, .faq-answer ul {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 4px 24px 20px;
}

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 60%, var(--slate) 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(114,162,196,0.15), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: var(--ice); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--ice);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Vision/Mission ---- */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  text-align: center;
  transition: var(--transition);
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.vm-card h3 { color: var(--navy); margin-bottom: 18px; font-size: 1.4rem; }
.vm-card p  { color: var(--text-mid); font-size: 1.0rem; line-height: 1.8; }

/* F&CO Message */
.fco-message {
  background: linear-gradient(135deg, var(--grey-light), var(--white));
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--navy);
  position: relative;
}
.fco-message::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 28px;
  font-size: 6rem;
  color: var(--ice);
  line-height: 1;
  font-family: Georgia, serif;
}
.fco-message p { font-size: 1.0rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 18px; }
.fco-sig { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.fco-sig .sig-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.fco-sig .sig-name { font-weight: 700; color: var(--navy); }
.fco-sig .sig-title { font-size: 0.82rem; color: var(--text-light); }
.fco-sig .sig-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--navy);
  box-shadow: 0 2px 8px rgba(27,42,107,0.2);
}

/* ---- Book Card ---- */
.book-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-mid);
  margin-bottom: 32px;
}
.book-section h3 { color: var(--navy); margin-bottom: 14px; }
.book-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.book-topic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--grey-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-mid);
}
.book-topic .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ---- Process Steps ---- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 32px;
}
.process-step:last-child { padding-bottom: 0; }
.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--sky), var(--ice));
  min-height: 28px;
  margin-top: 4px;
}
.process-step:last-child .step-line { display: none; }
.step-body h4 { color: var(--navy); margin-bottom: 8px; margin-top: 8px; }
.step-body p, .step-body ul li {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}
.step-body ul { margin-top: 8px; }
.step-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
}
.step-body ul li::before {
  content: '▸';
  color: var(--sky);
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--deep-navy);
  color: var(--grey-mid);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; color: var(--grey-dark); }
.footer-tagline {
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.footer-slogan { font-size: 0.8rem; color: var(--grey-dark); }
.footer-section h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--grey-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--gold); }
.footer-links a:hover { color: var(--ice); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.footer-contact-item .fci-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 16px;
  margin-top: 2px;
}
.footer-contact-item a { color: var(--ice); }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--grey-dark);
}
.footer-bottom a { color: var(--ice); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal {
  padding: 14px 0 4px;
  margin-top: -8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.footer-legal a { color: var(--grey-dark); transition: var(--transition); }
.footer-legal a:hover { color: var(--gold-light); }

/* ---- Social Media Icons Bar ---- */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  color: var(--ice) !important;
  font-size: 1.05rem;
  text-decoration: none !important;
  transition: background 0.22s, transform 0.12s ease, color 0.22s, box-shadow 0.22s ease;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 4px 0 rgba(0,0,0,0.35),
    0 8px 14px rgba(0,0,0,0.25);
}
.social-icon:hover {
  background: var(--gold);
  color: var(--deep-navy) !important;
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 3px rgba(0,0,0,0.2),
    0 6px 0 rgba(0,0,0,0.35),
    0 14px 22px rgba(0,0,0,0.35);
}
.social-icon:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.3),
    0 1px 0 rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.3);
}
/* Original brand colours shown at rest (default state), so each icon is
   instantly recognizable by its own platform colour instead of one flat tint. */
.social-icon.si-fb { color: #1877f2 !important; }
.social-icon.si-x  { color: #f5f5f5 !important; } /* X's own dark-mode mark is white/near-white — pure black would vanish on this dark footer */
.social-icon.si-yt { color: #ff0000 !important; }
.social-icon.si-li { color: #0a66c2 !important; }
.social-icon.si-ig { color: #e4405f !important; }
.social-icon.si-tt { color: #25f4ee !important; } /* TikTok's signature cyan accent — visible on dark footer, unlike its black mark */
.social-icon.si-wa { color: #25d366 !important; }

/* Brand-specific hover colours */
.social-icon.si-fb:hover    { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.social-icon.si-x:hover     { background: #000;    border-color: #000;    color: #fff !important; }
.social-icon.si-yt:hover    { background: #ff0000; border-color: #ff0000; color: #fff !important; }
.social-icon.si-li:hover    { background: #0a66c2; border-color: #0a66c2; color: #fff !important; }
.social-icon.si-ig:hover    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e6683c; color: #fff !important; }
.social-icon.si-tt:hover    { background: #000; border-color: #000; color: #fff !important; }
.social-icon.si-wa:hover    { background: #25d366; border-color: #25d366; color: #fff !important; }
/* WhatsApp label badge (to distinguish the two numbers) */
.social-icon .wa-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--gold);
  color: var(--deep-navy);
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.social-icon { position: relative; }

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 800;
  font-size: 1.1rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); }

/* ---- Misc ---- */
.pill-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pill-navy { background: rgba(27,42,107,0.1); color: var(--navy); }
.pill-gold { background: rgba(201,168,76,0.15); color: #8B6914; }
.pill-sky  { background: rgba(114,162,196,0.15); color: #2A6A96; }

.separator {
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--gold));
  border: none;
}

/* Image grid for contact */
.contact-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.contact-imgs img {
  border-radius: var(--radius-md);
  height: 120px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Picture gallery categories */
.pic-section { margin-bottom: 56px; }
.pic-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.pic-section-title h3 { color: var(--navy); }
.pic-section-line { flex: 1; height: 2px; background: var(--grey-mid); }

/* ---- Google Translate – suppress banner & body shift ---- */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
/* Hide Google's native widget container (we use our own button) */
#google_translate_element { display: none !important; }

/* ---- Custom Language Selector ---- */
.custom-translate {
  position: relative;
  display: inline-block;
}
/* Blinking branded button */
.gt-btn {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.3px;
  animation: gt-blink 1.8s ease-in-out infinite;
  transition: background 0.2s, color 0.2s;
  line-height: 1.6;
}
.gt-btn:hover {
  background: var(--gold);
  color: var(--deep-navy);
  animation: none;
}
@keyframes gt-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.22; }
}
/* Dropdown list */
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--deep-navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 210px;
  z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  max-height: 300px;
  overflow-y: auto;
}
.lang-menu.open { display: block; }
.lang-menu li {
  padding: 7px 16px;
  color: var(--ice);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-menu li:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

/* ---- Picture Gallery Slideshow ---- */
.pic-slideshow-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1128;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
  user-select: none;
}

.pic-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0d1128;
}

.pic-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  cursor: zoom-in;
}

.pic-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.pic-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(27,42,107,0.80);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s;
  box-shadow: 0 3px 14px rgba(0,0,0,0.45);
}
.slide-btn:hover {
  background: var(--navy);
  transform: translateY(-50%) scale(1.09);
}
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }

.slide-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 30;
  background: rgba(20,24,58,0.78);
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.slide-dots-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 13px;
  background: rgba(20,24,58,0.60);
  flex-wrap: wrap;
  min-height: 40px;
}

.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  border: none;
  flex-shrink: 0;
  padding: 0;
}
.slide-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.slide-dot:hover { background: var(--ice); }

/* ==============================
   RESPONSIVE
   ============================== */

/* Nav switches to hamburger below 1300px — a 10-item menu plus logo and a
   CTA button simply cannot fit a horizontal bar below this width without
   crowding or overflowing, so we hand it to the mobile-style dropdown early. */
@media (max-width: 1300px) {
  .navbar-brand .brand-logo { height: 48px; }
  .brand-legacy { display: none; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-menu.open { display: flex; }
  .nav-item { display: block; }
  .nav-link {
    display: block;
    width: auto;
    min-height: auto;
    padding: 10px 14px;
    font-size: 0.92rem;
    text-align: left;
    white-space: normal;
  }
  .nav-cta { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: var(--grey-light);
    display: none;
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .nav-item.open .dropdown-menu { display: block; }
}

@media (max-width: 1024px) {
  .intro-section { grid-template-columns: 1fr; gap: 36px; }
  .intro-section.reverse { direction: ltr; }
  .intro-image img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .top-bar { display: none; }

  .hero { min-height: auto; }
  .hero-content { padding: 56px 0 48px; }
  .hero-stats { gap: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-imgs { grid-template-columns: 1fr; }
  .fco-message { padding: 28px; }
  .vm-card { padding: 32px 24px; }
  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   OUR LEGACY (About) PAGE — a deliberately different 3D
   language from Home: gold-forward hexagon medallions, a
   vertical top-to-bottom shimmer, a Y-axis "flip toward you"
   tilt, and frosted-glass cards sitting on tinted glass bands,
   instead of Home's white glossy navy-icon cards.
   ============================================================ */

.legacy-glass-dark, .legacy-glass-light {
  position: relative;
  overflow: hidden;
}
.legacy-glass-dark {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 45%, var(--slate) 100%);
}
.legacy-glass-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(114,162,196,0.20) 0%, transparent 55%),
    radial-gradient(circle at 84% 78%, rgba(201,168,76,0.14) 0%, transparent 50%);
  pointer-events: none;
}
.legacy-glass-dark .section-heading h2 { color: var(--white); }
.legacy-glass-dark .section-heading p  { color: var(--ice); }
.legacy-glass-dark .section-heading h2::after { background: linear-gradient(90deg, var(--gold), var(--ice)); }

.legacy-glass-light {
  background: linear-gradient(135deg, var(--ice) 0%, var(--powder) 55%, var(--sky) 100%);
}
.legacy-glass-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.45) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(27,42,107,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.legacy-glass-light .section-heading h2::after { background: linear-gradient(90deg, var(--navy), var(--deep-navy)); }

.legacy-glass-dark .container, .legacy-glass-light .container { position: relative; z-index: 1; }

.legacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  perspective: 1500px;
}

.legacy-card {
  position: relative;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  padding: 34px 26px 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 10px rgba(20,24,58,0.18),
    0 20px 34px -16px rgba(20,24,58,0.35);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  transform: perspective(1100px) rotateY(3deg);
  transform-style: preserve-3d;
  overflow: hidden;
}
.legacy-card::before {
  /* vertical shimmer, continuous — deliberately different motion axis from Home's diagonal sweep */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,0.6) 48%, transparent 62%);
  transform: translateY(-140%);
  animation: legacyShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes legacyShimmer {
  0%   { transform: translateY(-140%); }
  60%  { transform: translateY(140%); }
  100% { transform: translateY(140%); }
}
.legacy-card::after {
  /* folded corner ribbon — a small "certified" seal accent */
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 34px 34px 0;
  border-color: transparent var(--deep-navy) transparent transparent;
  opacity: 0.9;
}
.legacy-card:hover {
  transform: perspective(1100px) rotateY(-11deg) rotateX(3deg) translateY(-14px) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 3px rgba(91,103,148,0.35),
    0 0 34px 6px rgba(91,103,148,0.35),
    0 34px 50px -18px rgba(20,24,58,0.42);
}
.legacy-icon {
  position: relative;
  width: 66px; height: 66px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: linear-gradient(150deg, #f0d68a 0%, var(--gold) 55%, #8b6914 100%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -8px 12px rgba(80,56,8,0.35),
    0 10px 18px -6px rgba(139,105,20,0.55);
  transition: transform 0.35s ease;
}
.legacy-card:hover .legacy-icon { transform: rotate(8deg) scale(1.08); }
.legacy-icon i {
  font-size: 1.5rem;
  color: var(--deep-navy);
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.35));
}
.legacy-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.legacy-card p, .legacy-card li { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.legacy-card ul { margin-top: 4px; }
.legacy-card li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(27,42,107,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.legacy-card li:last-child { border-bottom: none; }
.legacy-card li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---- Legacy Photo Card — same glass/shimmer/ribbon/tilt language as
   .legacy-card, built for images (Portfolio: Product & Visual Showcase) ---- */
.legacy-photo-card {
  position: relative;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  padding: 12px 12px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 10px rgba(20,24,58,0.18),
    0 20px 34px -16px rgba(20,24,58,0.35);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  transform: perspective(1100px) rotateY(3deg);
  transform-style: preserve-3d;
  overflow: hidden;
}
.legacy-photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,0.6) 48%, transparent 62%);
  transform: translateY(-140%);
  animation: legacyShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.legacy-photo-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0.92;
  z-index: 3;
}
.legacy-photo-card:hover {
  transform: perspective(1100px) rotateY(-11deg) rotateX(3deg) translateY(-14px) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 3px rgba(91,103,148,0.35),
    0 0 34px 6px rgba(91,103,148,0.35),
    0 34px 50px -18px rgba(20,24,58,0.42);
}
.legacy-photo-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f4f6fb;
  cursor: pointer;
}
.legacy-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.legacy-photo-card:hover .legacy-photo-frame img { transform: scale(1.08); }
.legacy-photo-card h4 {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}
/* Product-slide variant — full spec-sheet slides must never be cropped */
.legacy-photo-frame.product-slide {
  aspect-ratio: 16/9;
  background: #ffffff;
}
.legacy-photo-frame.product-slide img { object-fit: contain; }
.legacy-photo-card:hover .legacy-photo-frame.product-slide img { transform: scale(1.04); }

/* ---- Legacy Slideshow Card — same glass language wrapping a category
   slideshow (Visual Showcase) ---- */
.legacy-slideshow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 34px;
  perspective: 1800px;
}
.legacy-slideshow-card {
  position: relative;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 18px 18px 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 10px rgba(20,24,58,0.18),
    0 20px 34px -16px rgba(20,24,58,0.35);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
  transform: perspective(1400px) rotateY(1.5deg);
  transform-style: preserve-3d;
  overflow: hidden;
}
.legacy-slideshow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,0.55) 48%, transparent 62%);
  transform: translateY(-140%);
  animation: legacyShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.legacy-slideshow-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 38px 38px 0;
  border-color: transparent var(--deep-navy) transparent transparent;
  opacity: 0.9;
  z-index: 3;
}
.legacy-slideshow-card:hover {
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.015);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 0 0 3px rgba(91,103,148,0.3),
    0 0 34px 6px rgba(91,103,148,0.3),
    0 30px 46px -18px rgba(20,24,58,0.4);
}
.legacy-slideshow-card .slideshow-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.legacy-slideshow-card .slideshow-cat-icon {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: linear-gradient(150deg, #f0d68a 0%, var(--gold) 55%, #8b6914 100%);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -6px 10px rgba(80,56,8,0.35),
    0 8px 14px -6px rgba(139,105,20,0.5);
}
.legacy-slideshow-card .slideshow-cat-icon i { font-size: 1.1rem; color: var(--deep-navy); }
.legacy-slideshow-card h3 { font-size: 1.08rem; color: var(--navy); margin: 0; }
.legacy-slideshow-card .pic-slideshow-wrap { position: relative; z-index: 1; }

/* ============================================================
   SOLUTIONS PAGE — five distinct 3D languages, one per block
   group, on a cooler slate/steel/powder palette (gold used only
   as a sparing accent) so the page reads differently from both
   Overview (navy/gold glossy) and Our Legacy (gold hexagons on
   navy/steel glass).
   ============================================================ */

.sol-band-steel-light {
  background: linear-gradient(135deg, #eef1f8 0%, #dbe4f2 100%);
}
.sol-band-slate-dark {
  position: relative;
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate) 55%, var(--steel) 100%);
  overflow: hidden;
}
.sol-band-slate-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(138,179,210,0.22) 0%, transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(201,168,76,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.sol-band-slate-dark .container { position: relative; z-index: 1; }
.sol-band-slate-dark .section-heading h2 { color: var(--white); }
.sol-band-slate-dark .section-heading p  { color: var(--ice); }
.sol-band-slate-dark .section-heading h2::after { background: linear-gradient(90deg, var(--gold), var(--powder)); }

/* --- Group 1 (4) — coin-flip medallions --- */
.sol-g1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}
.sol-g1-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #eef1f8);
  border-radius: 20px;
  padding: 30px 18px 24px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(68,77,114,0.10), 0 16px 26px -14px rgba(68,77,114,0.28);
  border: 1px solid rgba(68,77,114,0.08);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
}
.sol-g1-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 3px 6px rgba(68,77,114,0.12), 0 0 0 3px rgba(138,179,210,0.40), 0 28px 40px -16px rgba(68,77,114,0.40);
}
.sol-g1-medal {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--powder) 0%, var(--slate) 75%);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.55),
    inset 0 -8px 14px rgba(0,0,0,0.25),
    0 10px 18px -6px rgba(68,77,114,0.5);
  border: 3px solid rgba(255,255,255,0.7);
  transition: transform 0.65s cubic-bezier(.3,1.3,.4,1);
  transform-style: preserve-3d;
}
.sol-g1-card:hover .sol-g1-medal { transform: rotateY(360deg) scale(1.08); }
.sol-g1-medal i { font-size: 1.55rem; color: var(--white); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.sol-g1-card h4 { font-size: 0.92rem; color: var(--slate); font-weight: 700; }

/* --- Group 2 (4) — folded-corner cards --- */
.sol-g2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.sol-g2-card {
  position: relative;
  background: var(--white);
  border-radius: 4px 16px 16px 16px;
  padding: 30px 26px 26px;
  box-shadow: 0 3px 6px rgba(27,42,107,0.08), 0 14px 24px -12px rgba(27,42,107,0.24);
  border: 1px solid rgba(27,42,107,0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  overflow: hidden;
}
.sol-g2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 28px 28px 0 0;
  border-color: var(--powder) transparent transparent transparent;
  transition: border-width 0.4s ease, border-color 0.4s ease;
  filter: drop-shadow(2px 2px 3px rgba(27,42,107,0.22));
}
.sol-g2-card:hover::before {
  border-width: 44px 44px 0 0;
  border-color: var(--gold) transparent transparent transparent;
}
.sol-g2-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 0 3px 6px rgba(27,42,107,0.10), 0 26px 36px -16px rgba(27,42,107,0.32);
}
.sol-g2-card h3 { font-size: 1.02rem; color: var(--navy); margin: 4px 0 10px; }
.sol-g2-card p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* --- Group 3 (2) — sliding drawer panels --- */
.sol-g3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.sol-g3-panel {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #f2f4fa);
  border-radius: 18px;
  padding: 30px 28px 30px 34px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(68,77,114,0.10), 0 18px 30px -16px rgba(68,77,114,0.26);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.sol-g3-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--steel), var(--powder));
  transition: width 0.4s ease;
}
.sol-g3-panel:hover::before { width: 14px; }
.sol-g3-panel:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(68,77,114,0.12), 0 0 0 2px rgba(91,103,148,0.30), 0 26px 40px -16px rgba(68,77,114,0.35);
}
.sol-g3-panel h3 { color: var(--navy); margin-bottom: 8px; }

/* --- Group 4 (3) — stacked deck fan --- */
.sol-g4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 8px 4px;
}
.sol-g4-card {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 3px 6px rgba(27,42,107,0.08), 0 14px 22px -12px rgba(27,42,107,0.22);
  border: 1px solid rgba(27,42,107,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.sol-g4-card::before, .sol-g4-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(27,42,107,0.06);
  z-index: -1;
  transition: transform 0.4s ease;
}
.sol-g4-card::before { transform: translate(5px, 5px); }
.sol-g4-card::after  { transform: translate(10px, 10px); opacity: 0.7; }
.sol-g4-card:hover { transform: translate(-6px, -6px); box-shadow: 0 3px 6px rgba(27,42,107,0.10), 0 22px 34px -14px rgba(27,42,107,0.30); }
.sol-g4-card:hover::before { transform: translate(11px, 11px); }
.sol-g4-card:hover::after  { transform: translate(20px, 20px); }
.sol-g4-card h4 { color: var(--navy); font-size: 0.96rem; margin-bottom: 6px; }
.sol-g4-card p  { font-size: 0.86rem; color: var(--text-light); }

/* --- Group 5 (6) — floating diamond halo --- */
.sol-g5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.sol-g5-card {
  position: relative;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 42px 22px 26px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(20,24,58,0.14), 0 16px 26px -14px rgba(20,24,58,0.30);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
}
.sol-g5-diamond {
  width: 50px; height: 50px;
  margin: 0 auto 20px;
  background: linear-gradient(145deg, #f0d68a 0%, var(--gold) 70%);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -6px 10px rgba(80,56,8,0.3),
    0 8px 16px -4px rgba(139,105,20,0.5);
  animation: solG5Float 3.6s ease-in-out infinite;
}
@keyframes solG5Float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(-6px); }
}
.sol-g5-diamond i { transform: rotate(-45deg); color: var(--deep-navy); font-size: 1.1rem; }
.sol-g5-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 3px 6px rgba(20,24,58,0.16), 0 0 26px 6px rgba(201,168,76,0.45), 0 26px 40px -16px rgba(20,24,58,0.4);
}
.sol-g5-card h4 { color: var(--deep-navy); font-size: 0.94rem; margin-bottom: 8px; font-weight: 700; }
.sol-g5-card p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   QUALITY EXCELLENCE PAGE — beveled/embossed 3D language
   (neumorphic light+dark dual shadows) with tactile push-button
   CTAs, distinct again from Overview / Our Legacy / Solutions.
   ============================================================ */

.bevel-rect {
  position: relative;
  padding: 9px;
  background: linear-gradient(145deg, #f6f8fc, #dde3ef);
  border-radius: 14px;
  box-shadow:
    -6px -6px 14px rgba(255,255,255,0.9),
    6px 6px 16px rgba(20,24,58,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.bevel-rect img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.35), inset 0 -1px 2px rgba(255,255,255,0.4);
}
.bevel-rect:hover {
  transform: translateY(-6px);
  box-shadow:
    -8px -8px 18px rgba(255,255,255,0.95),
    8px 14px 26px rgba(20,24,58,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

.bevel-circle {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef1f8, #c9d2e3);
  box-shadow:
    -5px -5px 10px rgba(255,255,255,0.9),
    5px 5px 12px rgba(20,24,58,0.26),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  margin: 0 auto 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
}
.bevel-circle i { font-size: 1.7rem; color: var(--navy); filter: drop-shadow(0 1px 1px rgba(255,255,255,0.5)); }
.bevel-circle:hover {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    -6px -6px 12px rgba(255,255,255,0.95),
    8px 8px 16px rgba(20,24,58,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}
.bevel-circle-dark {
  background: linear-gradient(145deg, #1b2a6b, #0d1128);
  box-shadow:
    -5px -5px 10px rgba(255,255,255,0.06),
    5px 5px 12px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.bevel-circle-dark i { color: var(--gold); filter: none; }

/* Push buttons — raised at rest, physically depress when clicked */
.btn-push {
  position: relative;
  background: linear-gradient(180deg, #f0d68a 0%, var(--gold) 55%, #b8922e 100%);
  color: var(--deep-navy);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 3px rgba(80,56,8,0.25),
    0 6px 0 #8b6914,
    0 12px 20px rgba(20,24,58,0.30);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-push:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -2px 3px rgba(80,56,8,0.25),
    0 8px 0 #8b6914,
    0 16px 26px rgba(20,24,58,0.35);
  color: var(--deep-navy);
}
.btn-push:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 2px rgba(80,56,8,0.3),
    0 1px 0 #8b6914,
    0 2px 6px rgba(20,24,58,0.3);
}
.btn-push-navy {
  position: relative;
  background: linear-gradient(180deg, var(--slate) 0%, var(--navy) 55%, var(--deep-navy) 100%);
  color: var(--white);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -2px 3px rgba(0,0,0,0.3),
    0 6px 0 #0d1128,
    0 12px 20px rgba(20,24,58,0.35);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-push-navy:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 3px rgba(0,0,0,0.3),
    0 8px 0 #0d1128,
    0 16px 26px rgba(20,24,58,0.4);
  color: var(--white);
}
.btn-push-navy:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.35),
    0 1px 0 #0d1128,
    0 2px 6px rgba(20,24,58,0.3);
}

/* QMS module cards */
.qe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.qe-module-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 6px rgba(20,24,58,0.08), 0 14px 24px -12px rgba(20,24,58,0.22);
  border: 1px solid rgba(20,24,58,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.qe-module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 3px 6px rgba(20,24,58,0.10), 0 22px 34px -14px rgba(20,24,58,0.30);
}
.qe-module-card .bevel-rect { aspect-ratio: 4/3; margin-bottom: 14px; }
.qe-module-card h4 { color: var(--navy); font-size: 0.94rem; margin: 0 8px 8px; }
.qe-module-card p  { font-size: 0.84rem; color: var(--text-light); margin: 0 8px 6px; line-height: 1.55; }
.qe-module-card.qe-lab {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  padding: 24px 16px;
  text-align: center;
}
.qe-module-card.qe-lab h4 { color: var(--gold); margin: 0 8px 8px; }
.qe-module-card.qe-lab p  { color: var(--ice); margin: 0 8px; }

/* Key outcomes panels on dark CTA band */
.qe-outcome-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  box-shadow:
    -4px -4px 10px rgba(255,255,255,0.05),
    6px 6px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.qe-outcome-panel:hover {
  transform: translateY(-6px);
  box-shadow:
    -5px -5px 12px rgba(255,255,255,0.06),
    10px 14px 22px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

/* ============================================================
   PURPOSE & DIRECTION (Our Vision / Our Mission / CEO's Message)
   — a sixth distinct 3D language: animated aurora glow, glass
   statement panels with a slow-flowing gradient border, tall
   "monolith" pillar cards, rotated value badges, and an
   editorial manuscript layout for the CEO's letter. Deliberately
   different in shape and motion from every other page family.
   ============================================================ */

/* Aurora glow — layered behind the page-hero on all 3 pages */
.pd-hero .pd-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pd-hero .pd-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  animation: pdAuroraDrift 15s ease-in-out infinite;
}
.pd-hero .pd-aurora span:nth-child(1) { width: 340px; height: 340px; background: var(--sky);    top: -110px; left: 8%;   animation-duration: 16s; }
.pd-hero .pd-aurora span:nth-child(2) { width: 260px; height: 260px; background: var(--gold);   bottom: -90px; right: 12%; animation-duration: 12s; animation-delay: 2s; }
.pd-hero .pd-aurora span:nth-child(3) { width: 200px; height: 200px; background: var(--powder); top: 15%; right: 28%;  animation-duration: 18s; animation-delay: 4s; }
@keyframes pdAuroraDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-24px) scale(1.15); }
}

/* Statement panel — glass card, slow-flowing gradient ring */
.pd-statement-wrap { display: flex; justify-content: center; padding: 6px; }
.pd-statement-panel {
  position: relative;
  max-width: 820px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 46px 44px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(20,24,58,0.10), 0 34px 60px -24px rgba(20,24,58,0.35);
}
.pd-statement-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(120deg, var(--gold), var(--sky), var(--navy), var(--gold));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pdBorderFlow 6s linear infinite;
  z-index: -1;
}
@keyframes pdBorderFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.pd-statement-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #f0d68a 0%, var(--gold) 55%, #8b6914 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -8px 12px rgba(80,56,8,0.3), 0 10px 20px -6px rgba(139,105,20,0.5);
}
.pd-statement-icon i { font-size: 1.6rem; color: var(--deep-navy); }
.pd-statement-panel .pd-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 700; margin-bottom: 14px; display: block; }
.pd-statement-panel h2 { color: var(--navy); margin-bottom: 18px; }
.pd-statement-panel p.pd-statement-text { font-size: 1.18rem; line-height: 1.85; color: var(--text-dark); font-weight: 500; }

/* Pillar cards — tall "monolith" shape, distinct from hexagon/circle/diamond used elsewhere */
.pd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  perspective: 1400px;
}
.pd-pillar {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  border-radius: 6px 6px 26px 26px;
  padding: 38px 22px 28px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(27,42,107,0.08), 0 20px 30px -16px rgba(27,42,107,0.26);
  border-top: 4px solid var(--gold);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease, border-color 0.5s ease;
  transform-style: preserve-3d;
}
.pd-pillar:hover {
  transform: perspective(1000px) rotateX(6deg) translateY(-12px);
  box-shadow: 0 4px 8px rgba(27,42,107,0.10), 0 32px 44px -18px rgba(27,42,107,0.36);
  border-top-color: var(--navy);
}
.pd-pillar-num {
  position: absolute; top: 14px; right: 18px;
  font-size: 2.2rem; font-weight: 800;
  color: rgba(27,42,107,0.08);
  line-height: 1;
}
.pd-pillar i { font-size: 1.8rem; color: var(--navy); margin-bottom: 14px; display: block; }
.pd-pillar h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.pd-pillar p  { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }

/* Value badges (Mission page) — rotated rounded-square badge, hexagon-free */
.pd-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.pd-value-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 3px 6px rgba(20,24,58,0.08), 0 14px 22px -12px rgba(20,24,58,0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pd-value-card:hover { transform: translateY(-6px); box-shadow: 0 3px 6px rgba(20,24,58,0.10), 0 22px 32px -14px rgba(20,24,58,0.3); }
.pd-value-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.2), 0 6px 12px -4px rgba(20,24,58,0.4);
  transition: transform 0.4s ease;
}
.pd-value-card:hover .pd-value-badge { transform: rotate(225deg); }
.pd-value-badge i { transform: rotate(-45deg); color: var(--gold); font-size: 1.1rem; }
.pd-value-card:hover .pd-value-badge i { transform: rotate(-225deg); }
.pd-value-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.pd-value-card p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; }

/* CEO's Message — editorial manuscript layout */
.pd-letter {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fffdf8 0%, #faf7ef 100%);
  border-radius: 20px;
  padding: 56px 60px;
  box-shadow: 0 10px 20px rgba(20,24,58,0.08), 0 40px 70px -30px rgba(20,24,58,0.30);
  border: 1px solid rgba(201,168,76,0.25);
  overflow: hidden;
}
.pd-letter::before {
  content: '\201C';
  position: absolute; top: -10px; left: 22px;
  font-family: Georgia, serif;
  font-size: 7rem;
  color: rgba(201,168,76,0.18);
  line-height: 1;
}
.pd-letter-urdu {
  position: relative; z-index: 1;
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  font-size: 1.25rem;
  line-height: 2.3;
  direction: rtl;
  text-align: right;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(27,42,107,0.18);
}
.pd-letter p { font-size: 1.02rem; line-height: 1.85; color: var(--text-dark); margin-bottom: 18px; position: relative; z-index: 1; }
.pd-letter .pd-letter-tagline { font-weight: 700; color: var(--navy); font-style: italic; }
.pd-signature {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(201,168,76,0.3);
}
.pd-portrait-frame {
  flex-shrink: 0;
  width: 84px; height: 92px;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
  box-shadow: 0 6px 16px rgba(20,24,58,0.3);
  border: 2px solid var(--gold);
}
.pd-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.pd-sig-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); font-style: italic; }
.pd-sig-title { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

/* Brand identity cards (CEO page closing) */
.pd-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}
.pd-brand-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  transition: transform 0.35s ease, background 0.35s ease;
}
.pd-brand-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.13); }
.pd-brand-card .pd-brand-label { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.pd-brand-card .pd-brand-value { color: var(--white); font-weight: 700; font-size: 0.98rem; }

@media (max-width: 640px) {
  .pd-letter { padding: 38px 24px; }
  .pd-statement-panel { padding: 34px 24px; }
}

/* ---- Leadership & Team additions to the Purpose & Direction family ---- */

/* Founder spotlight — glass panel + flowing gradient ring, profile layout */
.pd-founder-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto 56px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 42px 44px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  box-shadow: 0 10px 20px rgba(20,24,58,0.10), 0 34px 60px -24px rgba(20,24,58,0.35);
}
.pd-founder-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(120deg, var(--gold), var(--sky), var(--navy), var(--gold));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pdBorderFlow 6s linear infinite;
  z-index: -1;
}
.pd-founder-portrait {
  flex-shrink: 0;
  width: 130px; height: 142px;
  clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
  box-shadow: 0 8px 20px rgba(20,24,58,0.3);
  border: 3px solid var(--gold);
  overflow: hidden;
}
.pd-founder-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pd-founder-info { flex: 1; min-width: 240px; }
.pd-founder-info h2 { color: var(--navy); margin-bottom: 4px; }
.pd-founder-role { color: var(--text-light); font-size: 0.9rem; margin-bottom: 14px; }
.pd-founder-info p { color: var(--text-dark); font-size: 0.95rem; line-height: 1.7; }
.pd-founder-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Team grid — elongated-hexagon portrait frames, same motif as the CEO signature */
.pd-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  perspective: 1400px;
}
.pd-team-card {
  position: relative;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 30px 22px 26px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(20,24,58,0.08), 0 16px 26px -14px rgba(20,24,58,0.26);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
}
.pd-team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 3px 6px rgba(20,24,58,0.12), 0 0 0 3px rgba(201,168,76,0.35), 0 30px 44px -18px rgba(20,24,58,0.4);
}
.pd-team-photo {
  width: 92px; height: 100px;
  margin: 0 auto 18px;
  clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(20,24,58,0.25);
  border: 2px solid var(--gold);
  transition: transform 0.5s ease;
}
.pd-team-card:hover .pd-team-photo { transform: scale(1.08) rotate(-2deg); }
.pd-team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pd-team-card h4 { color: var(--navy); font-size: 0.98rem; margin-bottom: 4px; }
.pd-team-role { color: var(--gold); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.pd-team-card p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.55; }

@media (max-width: 640px) {
  .pd-founder-card { padding: 30px 24px; text-align: center; justify-content: center; }
}

/* ============================================================
   HELP CENTRE ("hc-") — 7th distinct 3D design language.
   Floating glass query-bubbles, a levitating glass search bar,
   3D flip category cards, and a height-independent grid-accordion.
   IMPORTANT: no sound-hover / data-tone anywhere in this family —
   visual + animation only, per explicit client instruction.
   ============================================================ */

/* ---- Hero: floating query bubbles ---- */
.hc-hero { position: relative; overflow: hidden; }
.hc-hero .hc-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hc-hero .hc-bubbles span {
  position: absolute;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(135deg, rgba(138,179,210,0.24), rgba(201,168,76,0.16));
  border: 1px solid rgba(165,197,222,0.35);
  box-shadow: 0 10px 30px -8px rgba(10,14,40,0.4);
  animation: hcBubbleFloat linear infinite;
}
.hc-hero .hc-bubbles span::before {
  content: '?';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}
.hc-hero .hc-bubbles span:nth-child(1) { width: 64px;  height: 64px;  top: 10%;  left: 6%;   font-size: 1.4rem; animation-duration: 9s; }
.hc-hero .hc-bubbles span:nth-child(2) { width: 40px;  height: 40px;  top: 60%;  left: 12%;  font-size: 1rem;   animation-duration: 7s;  animation-delay: 1s; }
.hc-hero .hc-bubbles span:nth-child(3) { width: 88px;  height: 88px;  top: 20%;  right: 8%;  font-size: 1.8rem; animation-duration: 11s; animation-delay: 0.5s; }
.hc-hero .hc-bubbles span:nth-child(4) { width: 50px;  height: 50px;  top: 68%;  right: 16%; font-size: 1.1rem; animation-duration: 8s;  animation-delay: 2s; }
.hc-hero .hc-bubbles span:nth-child(5) { width: 30px;  height: 30px;  top: 38%;  left: 42%;  font-size: 0.8rem; animation-duration: 6.5s; animation-delay: 1.5s; }
.hc-hero .hc-bubbles span:nth-child(6) { width: 56px;  height: 56px;  top: 78%;  left: 48%;  font-size: 1.2rem; animation-duration: 10s; animation-delay: 3s; }
@keyframes hcBubbleFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-26px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ---- Search bar (levitating glass) ---- */
.hc-search-wrap { max-width: 640px; margin: 34px auto 0; position: relative; z-index: 2; }
.hc-search-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.97);
  border-radius: 50px;
  padding: 15px 24px;
  box-shadow: 0 20px 50px -14px rgba(10,14,40,0.5), inset 0 2px 0 rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hc-search-box:focus-within { transform: translateY(-3px); box-shadow: 0 26px 60px -14px rgba(10,14,40,0.6), 0 0 0 3px rgba(201,168,76,0.45); }
.hc-search-box i.fa-magnifying-glass { color: var(--navy); font-size: 1.05rem; flex-shrink: 0; }
.hc-search-box input {
  border: none; outline: none; flex: 1;
  font-size: 0.98rem; color: var(--text-dark); background: transparent;
}
.hc-search-box input::placeholder { color: var(--text-light); }
.hc-search-clear {
  border: none; background: var(--grey-light); color: var(--text-light);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center; font-size: 0.75rem;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.hc-search-clear.show { display: flex; }
.hc-search-clear:hover { background: var(--navy); color: var(--white); }
.hc-search-status { text-align: center; margin-top: 12px; font-size: 0.82rem; color: var(--ice); letter-spacing: 0.3px; min-height: 1.2em; }

/* ---- Popular question chips ---- */
.hc-popular { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.hc-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.hc-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep-navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -6px rgba(201,168,76,0.5);
}

/* ---- Category grid: 3D flip cards ---- */
.hc-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin: 8px 0 4px; }
.hc-cat-card { perspective: 1400px; height: 210px; cursor: pointer; }
.hc-cat-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.hc-cat-card:hover .hc-cat-inner, .hc-cat-card:focus-within .hc-cat-inner { transform: rotateY(180deg); }
.hc-cat-front, .hc-cat-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 26px 20px;
  box-shadow: var(--shadow-md);
}
.hc-cat-front { background: linear-gradient(150deg, #ffffff 0%, var(--grey-light) 100%); border: 1px solid var(--grey-mid); }
.hc-cat-front i { font-size: 2.1rem; color: var(--navy); margin-bottom: 14px; }
.hc-cat-count {
  position: absolute; top: 14px; right: 16px;
  background: var(--gold); color: var(--white);
  font-size: 0.68rem; font-weight: 700; padding: 3px 11px; border-radius: 20px;
}
.hc-cat-front h4 { color: var(--navy); font-size: 1rem; line-height: 1.35; }
.hc-cat-back {
  background: linear-gradient(150deg, var(--navy) 0%, var(--deep-navy) 100%);
  color: var(--white);
  transform: rotateY(180deg);
}
.hc-cat-back p { font-size: 0.84rem; color: var(--ice); line-height: 1.55; margin-bottom: 14px; }
.hc-cat-back span { font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.hc-cat-back span i { margin-left: 4px; transition: transform 0.3s ease; }
.hc-cat-card:hover .hc-cat-back span i { transform: translateX(4px); }

/* ---- Section headers ---- */
.hc-section { margin-bottom: 56px; scroll-margin-top: 110px; }
.hc-section-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 2px solid var(--grey-mid);
}
.hc-section-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}
.hc-section:hover .hc-section-icon { transform: rotate(0deg) scale(1.05); }
.hc-section-head h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 2px; }
.hc-section-head p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.hc-section-count {
  margin-left: auto; background: var(--grey-light); color: var(--navy);
  font-weight: 700; font-size: 0.78rem; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--grey-mid); white-space: nowrap;
}

/* ---- Sub-topic group label ---- */
.hc-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px 4px; }
.hc-group-label:first-of-type { margin-top: 0; }

/* ---- Accordion items (grid-based height-independent animation) ---- */
.hc-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.hc-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-mid);
  box-shadow: 0 2px 8px rgba(27,42,107,0.06);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hc-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--sky));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s ease;
}
.hc-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(27,42,107,0.18); }
.hc-item.open { border-color: var(--gold); box-shadow: 0 14px 34px -10px rgba(201,168,76,0.3); }
.hc-item.open::before { transform: scaleY(1); }
.hc-q { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; }
.hc-q h4 { flex: 1; font-size: 0.95rem; color: var(--navy); font-weight: 600; line-height: 1.45; }
.hc-q-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), background 0.3s ease, color 0.3s ease;
}
.hc-q-icon i { font-size: 0.82rem; }
.hc-item.open .hc-q-icon { background: linear-gradient(135deg, var(--gold), var(--navy)); color: var(--white); transform: rotate(225deg); }
.hc-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(.4,0,.2,1); }
.hc-item.open .hc-a-wrap { grid-template-rows: 1fr; }
.hc-a-inner { overflow: hidden; min-height: 0; }
.hc-a-inner p { padding: 0 22px 20px 22px; font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; }
.hc-item.hc-flash { animation: hcFlash 1.1s ease; }
@keyframes hcFlash {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(201,168,76,0.3); }
  35%      { box-shadow: 0 0 0 6px rgba(201,168,76,0.55); }
}

/* ---- No search results ---- */
.hc-no-results { text-align: center; padding: 60px 20px; color: var(--text-light); display: none; }
.hc-no-results.show { display: block; }
.hc-no-results i { font-size: 2.4rem; color: var(--grey-dark); margin-bottom: 16px; display: block; }

/* ---- Closing CTA panel ---- */
.hc-cta { position: relative; background: linear-gradient(120deg, var(--deep-navy) 0%, var(--navy) 55%, var(--slate) 100%); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; overflow: hidden; color: var(--white); }
.hc-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(201,168,76,0.18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(114,162,196,0.18), transparent 55%);
}
.hc-cta h2, .hc-cta p, .hc-cta .btn-actions { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .hc-hero .hc-bubbles span { display: none; }
  .hc-hero .hc-bubbles span:nth-child(1),
  .hc-hero .hc-bubbles span:nth-child(3) { display: block; }
  .hc-section-head { flex-wrap: wrap; }
  .hc-section-count { margin-left: 0; }
}
@media (max-width: 640px) {
  .hc-cat-grid { grid-template-columns: 1fr 1fr; }
  .hc-cat-card { height: 180px; }
}
@media (max-width: 460px) {
  .hc-cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT ("cn-") — 8th distinct 3D design language.
   Split hero with a floating tilted photo card, a fanned 3D
   card-stack for contact info, an overlapping photo collage,
   a glass form panel, and tilt-lift quick-category cards.
   NO sound anywhere on this page — visual + animation only.
   ============================================================ */

/* ---- Hero: split layout, floating tilted photo ---- */
.cn-hero { text-align: left; padding-bottom: 70px; }
.cn-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 44px;
  text-align: left;
}
.cn-hero .breadcrumb { justify-content: flex-start; }
.cn-hero p { margin: 0; }
.cn-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cn-hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--ice);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cn-hero-badge:hover { transform: translateY(-3px); background: rgba(201,168,76,0.16); }
.cn-hero-badge i { color: var(--gold); }

.cn-hero-photo { position: relative; perspective: 1200px; }
.cn-hero-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(201,168,76,0.28), transparent 65%);
  filter: blur(12px);
  z-index: 0;
  animation: cnGlowPulse 5s ease-in-out infinite;
}
.cn-hero-photo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(4deg) rotate(-2deg);
  box-shadow: 0 30px 60px -14px rgba(5,8,25,0.55), 0 0 0 6px rgba(255,255,255,0.08);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.cn-hero-photo:hover .cn-hero-photo-frame { transform: rotateY(0deg) rotateX(0deg) rotate(0deg) scale(1.02); }
.cn-hero-photo-frame img { display: block; width: 100%; height: auto; }
@keyframes cnGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* ---- Contact info: fanned 3D card stack ---- */
.contact-info h3 { color: var(--navy); margin-bottom: 24px; }
.contact-item {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--cn-tilt, 0deg));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.contact-item:nth-child(odd)  { --cn-tilt: -0.6deg; }
.contact-item:nth-child(even) { --cn-tilt: 0.6deg; }
.contact-item:hover {
  transform: rotate(0deg) translateY(-4px) translateX(3px);
  box-shadow: 0 16px 32px -10px rgba(27,42,107,0.22);
  border-color: var(--gold);
}
.contact-item .ci-icon {
  box-shadow: 0 6px 14px -4px rgba(27,42,107,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.4s ease;
}
.contact-item:hover .ci-icon { transform: rotate(-6deg) scale(1.08); }

/* ---- Photo collage (replaces flat 3-in-a-row grid) ---- */
.cn-photo-cluster { position: relative; margin-top: 30px; height: 230px; }
.cn-photo-cluster img {
  position: absolute;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
}
.cn-photo-a { width: 72%; height: 210px; top: 0; left: 0; z-index: 1; transform: rotate(-3deg); }
.cn-photo-b {
  width: 46%; height: 150px; bottom: 0; right: 0; z-index: 2;
  border: 4px solid var(--white);
  transform: rotate(4deg);
}
.cn-photo-cluster:hover .cn-photo-a { transform: rotate(-1deg) scale(1.02); box-shadow: var(--shadow-lg); }
.cn-photo-cluster:hover .cn-photo-b { transform: rotate(1deg) scale(1.05); box-shadow: var(--shadow-lg); }

/* ---- Form panel: glass 3D upgrade ---- */
.contact-form {
  background: linear-gradient(150deg, #ffffff 0%, var(--grey-light) 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 24px 60px -20px rgba(27,42,107,0.28), var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--sky), var(--navy));
}
.cn-form-icon {
  position: absolute; top: -20px; right: 28px;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #b8922e);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  box-shadow: 0 10px 24px -8px rgba(201,168,76,0.5);
  transform: rotate(-8deg);
  transition: transform 0.4s ease;
}
.contact-form:hover .cn-form-icon { transform: rotate(0deg) scale(1.06); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18), 0 6px 14px -6px rgba(27,42,107,0.2);
  transform: translateY(-2px);
}

/* ---- Inquiry quick-category cards: tilt-lift 3D ---- */
.cn-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.cn-quick-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.cn-quick-card:hover {
  transform: translateY(-8px) rotateX(6deg);
  box-shadow: 0 22px 40px -14px rgba(27,42,107,0.28);
  border-top-color: var(--gold);
}
.cn-quick-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--gold); font-size: 1.35rem;
  box-shadow: 0 8px 16px -6px rgba(27,42,107,0.4);
  transition: transform 0.4s ease;
}
.cn-quick-card:hover .cn-quick-icon { transform: rotate(-8deg) scale(1.08); }
.cn-quick-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 8px; }
.cn-quick-card p { font-size: 0.84rem; color: var(--text-light); line-height: 1.5; }

/* ---- Trust strip ---- */
.cn-trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px;
  background: linear-gradient(120deg, var(--deep-navy), var(--navy));
  border-radius: var(--radius-lg);
  padding: 34px 40px;
}
.cn-trust-item { display: flex; align-items: center; gap: 14px; }
.cn-trust-item i {
  font-size: 1.3rem; color: var(--deep-navy);
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(201,168,76,0.5);
}
.cn-trust-item strong { display: block; font-size: 0.92rem; color: var(--white); }
.cn-trust-item span { display: block; font-size: 0.76rem; color: var(--ice); }

/* ---- Form status message ---- */
.cn-form-status { margin-top: 14px; font-size: 0.85rem; text-align: center; min-height: 1.2em; }

@media (max-width: 900px) {
  .cn-hero .container { grid-template-columns: 1fr; text-align: center; }
  .cn-hero .breadcrumb { justify-content: center; }
  .cn-hero p { margin: 0 auto; }
  .cn-hero-badges { justify-content: center; }
  .cn-hero-photo { margin-top: 30px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .cn-hero-photo-frame { transform: none; }
}
@media (max-width: 640px) {
  .contact-form { padding: 30px 22px; }
  .cn-trust-strip { padding: 26px 24px; gap: 22px; justify-content: flex-start; }
}

/* ============================================================
   INSIGHTS ("ins-") — deliberately NOT a new distinct 3D family.
   This page reuses the sitewide component system as-is:
   .page-hero, .breadcrumb, .btn/.btn-gold/.btn-outline/-navy,
   .section-heading, .intro-section/.intro-text/.intro-image/
   .img-badge, .cards-grid/.service-card/.card-icon/.card-link,
   .book-topics/.book-topic, .pill-label, .pd-pillars-grid/
   .pd-pillar, .cn-quick-grid/.cn-quick-card, .cn-hero-badges/
   .cn-hero-badge, .form-row/.form-group. Only the handful of
   patterns below (photo hero, article cards, filter pills,
   category-card photo strip, divider banners, value grid,
   newsletter panel, closing band) have no sitewide equivalent.
   NO sound anywhere on this page — visual + animation only.
   ============================================================ */

/* ---- Hero: full-bleed photo variant of .page-hero, left-aligned ---- */
.ins-hero { text-align: left; padding: 108px 0 78px; background: none; }
.ins-hero::before { content: none; }
.ins-hero-photo-layer {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/insights/hero-banner.jpg') center/cover no-repeat;
}
.ins-hero-tint {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(20,24,58,0.94) 0%, rgba(27,42,107,0.88) 40%, rgba(68,77,114,0.62) 74%, rgba(91,103,148,0.32) 100%);
}
.ins-hero .container { position: relative; z-index: 1; }
.ins-hero .breadcrumb { justify-content: flex-start; }
.ins-hero h1 { max-width: 740px; text-align: left; }
.ins-hero p { max-width: 640px; margin: 0; text-align: left; }
.ins-hero-highlight {
  max-width: 660px;
  margin-top: 20px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ins-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.ins-hero .cn-hero-badges { justify-content: flex-start; margin-top: 30px; }

/* ---- Divider banner (Cotton-to-Textile / Category icons) ---- */
.ins-divider-banner {
  position: relative;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
}
.ins-divider-banner img { width: 100%; height: 100%; object-fit: cover; }
.ins-divider-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 30px;
  background: linear-gradient(100deg, rgba(20,24,58,0.80) 0%, rgba(27,42,107,0.42) 55%, rgba(27,42,107,0.14) 100%);
  color: var(--white); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.2px;
}

/* ---- Category cards: service-card + photo strip on top ---- */
.ins-cat-card { padding-top: 0; }
.ins-cat-photo {
  margin: -34px -28px 20px;
  height: 150px;
  overflow: hidden;
  position: relative;
  border-radius: 18px 18px 0 0;
}
.ins-cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ins-cat-card:hover .ins-cat-photo img { transform: scale(1.08); }
.ins-key-message {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--grey-mid);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
}
.ins-key-message i { color: var(--gold); margin-right: 6px; }

/* ---- Featured Insights: 1 large + 4 supporting article cards ---- */
.ins-featured-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.ins-featured-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ins-article-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 3px 6px rgba(27,42,107,0.10),
    0 18px 30px -14px rgba(27,42,107,0.30);
  border: 1px solid rgba(27,42,107,0.07);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease, border-color 0.5s ease;
  display: flex;
  flex-direction: column;
}
.ins-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 14px rgba(27,42,107,0.14), 0 34px 50px -18px rgba(27,42,107,0.42);
  border-color: var(--ice);
}
.ins-article-img { position: relative; overflow: hidden; }
.ins-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.ins-article-card:hover .ins-article-img img { transform: scale(1.08); }
.ins-article-lg .ins-article-img { height: 300px; }
.ins-article-sm .ins-article-img { height: 138px; }
.ins-article-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ins-article-sm .ins-article-body { padding: 16px 18px; gap: 6px; }
.ins-article-card h3, .ins-article-card h4 { color: var(--navy); }
.ins-article-lg h3 { font-size: 1.28rem; line-height: 1.35; }
.ins-article-sm h4 { font-size: 0.92rem; line-height: 1.4; }
.ins-article-excerpt { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }
.ins-article-sm .ins-article-excerpt {
  font-size: 0.79rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ins-article-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px; font-size: 0.78rem; color: var(--text-light);
}
.ins-article-meta i { color: var(--sky); margin-right: 4px; }
.ins-article-readmore {
  font-size: 0.85rem; color: var(--sky); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; transition: var(--transition);
}
.ins-article-card:hover .ins-article-readmore { color: var(--navy); gap: 8px; }

/* ---- Explore by Category: filter pills ---- */
.ins-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.ins-filter-pill {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--grey-light);
  color: var(--navy);
  border: 1.5px solid var(--grey-mid);
  transition: all 0.3s ease;
  cursor: pointer;
}
.ins-filter-pill:hover { background: rgba(114,162,196,0.15); border-color: var(--sky); color: #2A6A96; transform: translateY(-2px); }
.ins-filter-pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 8px 16px -6px rgba(27,42,107,0.4); }

/* ---- Why Read SEP Insights: navy trust band with 9 value points ---- */
.ins-why { position: relative; overflow: hidden; background: var(--deep-navy); }
.ins-why-bg { position: absolute; inset: 0; background: url('../img/insights/why-insights-bg.jpg') center/cover; opacity: 0.32; }
.ins-why-tint { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,24,58,0.95), rgba(27,42,107,0.90)); }
.ins-why .container { position: relative; z-index: 1; }
.ins-why .section-heading h2 { color: var(--white); }
.ins-why .section-heading p { color: var(--ice); }
.ins-why-lead { max-width: 820px; margin: -30px auto 46px; text-align: center; color: var(--ice); font-size: 0.98rem; line-height: 1.85; }
.ins-value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ins-value-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.ins-value-item:hover { transform: translateY(-4px); background: rgba(201,168,76,0.14); border-color: var(--gold); }
.ins-value-item i {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--deep-navy); font-size: 1.05rem;
  box-shadow: 0 8px 16px -6px rgba(201,168,76,0.5);
}
.ins-value-item span { color: var(--white); font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.ins-why-closing {
  text-align: center; margin-top: 48px; font-size: 1.12rem; font-style: italic;
  color: var(--gold-light); max-width: 760px; margin-left: auto; margin-right: auto;
}

/* ---- Generic centered highlight statement (Knowledge Philosophy, etc.) ---- */
.ins-highlight-statement {
  text-align: center; max-width: 780px; margin: 44px auto 0;
  font-size: 1.15rem; font-weight: 600; color: var(--navy);
  padding: 22px 30px; border-top: 1px solid var(--grey-mid); border-bottom: 1px solid var(--grey-mid);
}

/* ---- Newsletter: photo/texture band with glass form ---- */
.ins-newsletter { position: relative; overflow: hidden; }
.ins-newsletter-bg { position: absolute; inset: 0; background: url('../img/insights/newsletter-bg.jpg') center/cover; }
.ins-newsletter-tint { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,24,58,0.95) 0%, rgba(27,42,107,0.92) 55%, rgba(68,77,114,0.86) 100%); }
.ins-newsletter .container { position: relative; z-index: 1; }
.ins-newsletter-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.ins-newsletter-inner h2 { color: var(--white); }
.ins-newsletter-inner > p { color: var(--ice); max-width: 620px; margin: 14px auto 0; }
.ins-newsletter-form {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 36px;
  text-align: left;
}
.ins-newsletter-form .form-group label { color: var(--ice); }
.ins-newsletter-form .form-group input,
.ins-newsletter-form .form-group select {
  background: rgba(255,255,255,0.94);
  border-color: transparent;
}
.ins-newsletter-privacy { font-size: 0.78rem; color: var(--ice); margin-top: 16px; text-align: center; }

/* ---- Final Closing Statement: full-bleed photo band ---- */
.ins-closing { position: relative; overflow: hidden; padding: 96px 0; text-align: center; }
.ins-closing-bg { position: absolute; inset: 0; background: url('../img/insights/final-closing.jpg') center/cover; }
.ins-closing-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,58,0.92), rgba(27,42,107,0.88)); }
.ins-closing .container { position: relative; z-index: 1; max-width: 820px; }
.ins-closing h2 { color: var(--white); margin-bottom: 20px; }
.ins-closing p { color: var(--ice); font-size: 1.05rem; line-height: 1.85; margin-bottom: 16px; }
.ins-closing-final-line { margin-top: 26px; font-size: 1.25rem; font-weight: 700; color: var(--gold-light); font-style: italic; }

@media (max-width: 900px) {
  .ins-featured-grid { grid-template-columns: 1fr; }
  .ins-hero { padding: 90px 0 60px; }
  .ins-hero .breadcrumb { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ins-featured-side { grid-template-columns: 1fr; }
  .ins-divider-banner { height: 160px; }
  .ins-newsletter-form { padding: 26px 22px; }
  .ins-closing { padding: 64px 0; }
}

/* ============================================================
   PAGE HERO — reusable single-photo slow-zoom background.
   Drops into any .page-hero section (Our Legacy, Solutions,
   Quality Excellence, Portfolio pages, Knowledge Center,
   Purpose & Direction pages, Leadership & Team) without
   altering the base .page-hero rule — the photo layer simply
   sits on top of the existing navy gradient and covers it.
   Same restrained motion language as Insights/Contact heroes.
   ============================================================ */
.page-hero-photo-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: pageHeroSlowZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}
.page-hero-tint-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(20,24,58,0.93) 0%, rgba(27,42,107,0.87) 42%, rgba(68,77,114,0.58) 76%, rgba(91,103,148,0.30) 100%);
}
@keyframes pageHeroSlowZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-photo-layer { animation: none; }
}

/* ============================================================
   INSIGHTS — Read More modal (Featured + Latest Insight cards).
   Clicking "Read More" opens the full excerpt in a clean,
   on-brand overlay instead of a dead link.
   ============================================================ */
.ins-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,24,58,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ins-modal-overlay.open { opacity: 1; visibility: visible; }
.ins-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(5,8,25,0.5);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.ins-modal-overlay.open .ins-modal-card { transform: translateY(0) scale(1); }
.ins-modal-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: block; }
.ins-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(20,24,58,0.75);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ins-modal-close:hover { background: var(--gold); color: var(--deep-navy); transform: rotate(90deg); }
.ins-modal-body { padding: 30px 34px 34px; }
.ins-modal-body h3 { color: var(--navy); margin: 14px 0 16px; font-size: 1.4rem; line-height: 1.35; }
.ins-modal-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 18px; }
.ins-modal-meta i { color: var(--sky); margin-right: 4px; }
.ins-modal-text { font-size: 0.98rem; color: var(--text-mid); line-height: 1.85; }
.ins-modal-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
body.ins-modal-lock { overflow: hidden; }
@media (max-width: 640px) {
  .ins-modal-img { height: 180px; }
  .ins-modal-body { padding: 24px 22px 28px; }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms & Conditions / Cookie
   Policy) — plain, clean readable prose. Deliberately NOT a
   new 3D visual family; these are reference/utility pages, so
   they reuse .page-hero + existing typography only.
   ============================================================ */
.legal-content { max-width: 840px; margin: 0 auto; }
.legal-updated {
  display: inline-block;
  background: var(--grey-light);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 32px;
}
.legal-content h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--grey-light);
  font-size: 1.3rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { margin-top: 22px; margin-bottom: 10px; font-size: 1.05rem; color: var(--navy); }
.legal-content p { margin-bottom: 14px; line-height: 1.85; color: var(--text-mid); }
.legal-content ul, .legal-content ol { margin: 0 0 16px 22px; }
.legal-content li { margin-bottom: 8px; line-height: 1.75; color: var(--text-mid); }
.legal-content a { color: var(--sky); text-decoration: underline; }
.legal-content a:hover { color: var(--navy); }
.legal-toc {
  background: var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 40px;
  position: sticky;
  top: 84px;
  z-index: 5;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-mid);
}
.legal-toc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 0;
}
.legal-toc-toggle h4 { color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.legal-toc-toggle i { transition: transform 0.25s ease; color: var(--navy); font-size: 0.85rem; margin-left: auto; }
.legal-toc.collapsed .legal-toc-toggle i { transform: rotate(-90deg); }
.legal-toc-list-wrap { max-height: 40vh; overflow-y: auto; margin-top: 12px; }
.legal-toc.collapsed .legal-toc-list-wrap { display: none; }
.legal-toc ol { margin: 0 0 0 20px; column-count: 1; column-gap: 28px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--text-mid); font-size: 0.86rem; line-height: 1.5; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; }
.legal-toc a:hover { color: var(--gold); text-decoration: underline; padding-left: 3px; }
.legal-toc a.active { color: var(--navy); font-weight: 700; }
@media (min-width: 760px) {
  .legal-toc-many .legal-toc-list-wrap ol { column-count: 2; }
}
/* Keep headings from hiding underneath the sticky header / sticky TOC when jumped to via anchor link */
.legal-content h2 { scroll-margin-top: 100px; }
@media (max-width: 900px) {
  .legal-toc { position: static; }
  .legal-toc-list-wrap { max-height: none; }
}

/* ---- Legal clause highlight box (Disclaimer / Liability / Force Majeure, etc.) ---- */
.legal-highlight {
  background: linear-gradient(135deg, rgba(201,168,76,0.10), rgba(201,168,76,0.03));
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 18px 0;
}
.legal-highlight p { margin-bottom: 0; color: var(--text-dark); font-weight: 500; }
.legal-highlight p + p { margin-top: 10px; }
.legal-highlight .lh-icon { color: var(--gold); margin-right: 8px; }
.legal-contact-box {
  background: linear-gradient(135deg, var(--grey-light), var(--white));
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 36px;
}
.legal-contact-box p { margin-bottom: 6px; }
.legal-contact-box p:last-child { margin-bottom: 0; }

/* ---- Cookie Policy: type cards (Section 5) ---- */
.cookie-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 20px 0 8px; }
.cookie-type-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.cookie-type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ice); }
.cookie-type-card .ctc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-type-card .ctc-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.cookie-type-card h4 { font-size: 0.95rem; color: var(--navy); margin: 0; }
.cookie-type-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0; }
.cookie-type-status {
  display: inline-block; margin-top: 12px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 20px;
}
.cookie-type-status.always { background: rgba(27,42,107,0.1); color: var(--navy); }
.cookie-type-status.optional { background: rgba(114,162,196,0.15); color: #2A6A96; }

/* ============================================================
   COOKIE CONSENT SYSTEM — sitewide floating banner + centered
   preferences modal. Loads on every page via footer.php. Navy
   glass-blur banner, white modal card, SEP navy/gold/sky palette.
   ============================================================ */

/* ---- Bottom banner ---- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 10000;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(20,24,58,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -16px rgba(5,8,25,0.55);
  padding: 22px 26px;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 380px; min-width: 260px; }
.cookie-banner-text i { color: var(--gold); font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.cookie-banner-text p { color: var(--ice); font-size: 0.86rem; line-height: 1.6; margin: 0; }
.cookie-banner-text a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.cookie-manage-link {
  background: none; border: none; color: var(--ice); font-size: 0.82rem; font-weight: 600;
  text-decoration: underline; cursor: pointer; padding: 8px 4px; font-family: inherit;
  transition: color 0.25s ease;
}
.cookie-manage-link:hover { color: var(--gold-light); }

/* ---- Preferences modal ---- */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(20,24,58,0.74);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-modal-overlay.open { opacity: 1; visibility: visible; }
.cookie-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 36px 34px;
  box-shadow: 0 40px 80px -20px rgba(5,8,25,0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.cookie-modal-overlay.open .cookie-modal-card { transform: translateY(0) scale(1); }
.cookie-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-light); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.cookie-modal-close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.cookie-modal-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.cookie-modal-card h3 i { color: var(--gold); }
.cookie-modal-intro { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.cookie-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--grey-light);
}
.cookie-pref-row:first-of-type { border-top: none; }
.cookie-pref-text h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-pref-tag {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  background: rgba(114,162,196,0.15); color: #2A6A96; padding: 2px 9px; border-radius: 20px;
}
.cookie-pref-text p { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--grey-mid); border-radius: 30px;
  transition: background 0.3s ease;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--navy); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle-locked .cookie-toggle-slider { cursor: default; opacity: 0.85; }
.cookie-toggle-locked input:checked + .cookie-toggle-slider { background: var(--steel); }

.cookie-modal-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 26px; }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: center; }
  .cookie-modal-card { padding: 28px 22px; }
  .cookie-pref-row { flex-direction: column; gap: 10px; }
}

/* ---- Honeypot anti-spam field (Contact + Newsletter forms) ----
   Hidden off-screen rather than display:none, since some bots skip
   fields that are display:none but still auto-fill visually-hidden
   ones — this stays in the accessibility tree as aria-hidden and
   is never reachable by keyboard (tabindex="-1"), but real visitors
   never see or touch it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================================================
   CLIENT TRUST PAGE — testimonial cards ("ct-" prefix, minimal
   new set; page otherwise reuses .section-heading, .pill-label,
   .cards-grid, .stat-card, .service-card, .cta-banner).
   ============================================================ */
.ct-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.ct-testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-mid);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.ct-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ice);
}
.ct-quote-icon { color: var(--gold); font-size: 1.6rem; opacity: 0.55; margin-bottom: 10px; }
.ct-stars { color: var(--gold); font-size: 0.78rem; letter-spacing: 3px; margin-bottom: 16px; }
.ct-quote-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}
.ct-author { display: flex; align-items: center; gap: 14px; }
.ct-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ct-author-info h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.ct-author-info span { font-size: 0.78rem; color: var(--text-light); }
