@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* New Zealand corporate palette */
  --color-primary: #041B47;      /* Deep Navy Blue */
  --color-primary-dark: #02102B; /* Deeper Navy */
  --color-secondary: #0A4FBF;    /* Royal Blue */
  --color-accent: #D61F3A;       /* Flag Red */
  --color-accent-dark: #A9162C;  /* Deeper Red */
  --color-white: #FFFFFF;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #050505;
  --color-text-light: #1E293B;
  --color-border: #DCE7F5;

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  --gradient-soft: linear-gradient(135deg, #0A4FBF 0%, #041B47 55%, #0A2A63 100%);
  --gradient-bg: linear-gradient(180deg, #F8FAFC 0%, #EEF3FB 100%);

  --shadow-soft: 0 8px 30px rgba(4, 27, 71, 0.07);
  --shadow-medium: 0 14px 40px rgba(4, 27, 71, 0.14);
  --shadow-glass: 0 8px 32px rgba(4, 27, 71, 0.09);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;

  --container-width: 1240px;
  --header-height: 108px;
  --topbar-height: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 65% 42% at 8% 6%, rgba(10, 79, 191, 0.18), transparent 68%),
    radial-gradient(ellipse 54% 38% at 94% 25%, rgba(37, 211, 102, 0.15), transparent 70%),
    radial-gradient(ellipse 55% 40% at 48% 96%, rgba(214, 31, 58, 0.10), transparent 70%),
    var(--gradient-bg);
  background-size: 150% 150%;
  background-attachment: fixed;
  animation: ambientBackground 18s ease-in-out infinite alternate;
  line-height: 1.6;
  overflow-x: hidden;
}

/* A quiet texture gives the shared page background more depth without
   competing with readable content and cards. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(10, 79, 191, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: ambientPattern 20s linear infinite;
}

body > * { position: relative; z-index: 1; }

@keyframes ambientPattern {
  from { background-position: 0 0; }
  to { background-position: 52px 52px; }
}

@keyframes ambientBackground {
  from { background-position: 0% 0%, 100% 20%, 40% 100%, 0% 0%; }
  to { background-position: 18% 12%, 82% 4%, 56% 84%, 0% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 44px 0; }
.section-tight { padding: 30px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(30, 136, 229, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.7;
}

.section-header { margin-bottom: 26px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(4, 27, 71, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(4, 27, 71, 0.4); }

.btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.btn-solid {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(4, 27, 71, 0.28);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4, 27, 71, 0.38); }

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

.ceo-block { grid-template-columns: 340px 1fr; }
@media (max-width: 768px) {
  .ceo-block { grid-template-columns: 1fr !important; }
}

.page-hero {
  padding: calc(var(--header-height) + var(--topbar-height) + 64px) 0 64px;
  background: radial-gradient(120% 140% at 15% 0%, #1e3a8a 0%, #0a1230 45%, #050814 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(38% 45% at 20% 30%, rgba(139,92,246,0.35), transparent 70%),
    radial-gradient(32% 40% at 80% 20%, rgba(56,189,248,0.3), transparent 70%),
    radial-gradient(30% 38% at 55% 85%, rgba(236,72,153,0.22), transparent 70%);
  filter: blur(10px);
  animation: pageHeroAurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: pageHeroSheen 6s ease-in-out infinite;
  pointer-events: none;
}
.page-hero-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; margin-bottom: 6px; }
.page-hero p { opacity: 0.9; max-width: 560px; margin: 18px auto 0; }

.page-hero-underline {
  display: inline-block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #f472b6);
  background-size: 200% 100%;
  animation: pageHeroShimmer 3s linear infinite;
  transform-origin: center;
}

.page-hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; animation: pageHeroFloat 7s ease-in-out infinite; }
.page-hero-shape.shape-a { width: 300px; height: 300px; background: #8b5cf6; top: -10%; right: 6%; animation-delay: 0s; }
.page-hero-shape.shape-b { width: 240px; height: 240px; background: #38bdf8; opacity: 0.28; bottom: -14%; left: 8%; animation-delay: 1.4s; }
.page-hero-shape.shape-c { width: 190px; height: 190px; background: #f472b6; opacity: 0.2; top: 38%; left: 48%; animation-delay: 2.6s; }

@keyframes pageHeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}

@keyframes pageHeroAurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, -3%) rotate(6deg); }
}

@keyframes pageHeroSheen {
  0% { left: -60%; }
  100% { left: 120%; }
}

@keyframes pageHeroShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============ Global animation utilities ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 31, 58, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(214, 31, 58, 0); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-left { animation: fadeLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-right { animation: fadeRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.scale-in { animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.float-anim { animation: floatY 5s ease-in-out infinite; }
.pulse-glow { animation: pulseGlow 2.4s ease-in-out infinite; }

.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(10, 79, 191, 0.28);
}

@media (max-width: 768px) {
  .section { padding: 30px 0; }
  .section-tight { padding: 22px 0; }
  .section-header { margin-bottom: 20px; }
}
@media (max-width: 768px) {
  .about-intro-row {
    grid-template-columns: 1fr !important;
  }
}
