/* ==========================================================================
   Prudence Consortium – Design System
   Institutional • Trust-driven • Executive-level
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --deep-navy: #0e172a;
  --charcoal: #1a2a42;
  --brand-red: #ab291f;
  --brand-blue: #29a6de;
  --soft-ivory: #F5F3EF;
  --light-gray: #E0E1DD;
  --white: #FFFFFF;
  --text-primary: #0e172a;
  --text-secondary: #1a2a42;
  --text-muted: #5C6B7A;

  /* Typography */
  --font-heading: 'Playfair Display', 'Cormorant', Georgia, serif;
  --font-body: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding-desktop: 100px;
  --section-padding-tablet: 60px;
  --section-padding-mobile: 40px;
  --max-width: 1280px;
  --grid-gap: 24px;

  /* Transitions */
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-hover: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--soft-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-hover), opacity var(--transition-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-desktop) 0;
}

@media (max-width: 1024px) {
  .section { padding: var(--section-padding-tablet) 0; }
}

@media (max-width: 640px) {
  .section { padding: var(--section-padding-mobile) 0; }
}

/* Grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

@media (max-width: 768px) {
  .grid-12 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Navigation - Transparent to solid on scroll
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              padding 0.4s ease;
}

/* Solid state when scrolled (or on inner pages without banner) */
.nav.nav-scrolled,
body:not(.home-page):not(.has-page-banner) .nav {
  background: rgba(14, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(171, 41, 31, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px;
  transition: padding 300ms ease-in-out;
}

.nav.nav-scrolled .nav-inner,
body:not(.home-page):not(.has-page-banner) .nav .nav-inner {
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

/* Dropdown parents */
.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}

.nav-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 200ms ease;
}

.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.nav-open .nav-chevron {
  transform: rotate(-135deg);
}

/* Standard dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 20px 0;
  background: var(--deep-navy);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 100;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.nav-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 200ms ease, background 200ms ease;
}

.nav-dropdown a:hover {
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown a::after {
  display: none !important;
}

/* Mega menu */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 420px;
  padding: 0;
  background: var(--deep-navy);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 100;
}

.nav-has-mega:hover .nav-mega,
.nav-has-mega.nav-open .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.nav-mega-column {
  padding: 24px 28px;
}

.nav-mega-column:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mega-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mega-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega-column li {
  margin: 0;
}

.nav-mega-column a {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 200ms ease;
}

.nav-mega-column a:hover {
  color: var(--brand-red);
}

.nav-mega-column a::after {
  display: none !important;
}

.nav-cta-wrap {
  margin-left: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-blue);
  transition: width 300ms ease-in-out;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA uses btn-secondary style - ensure button styles override nav link */
.nav-cta.btn-secondary {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Nav CTA hover matches hero "Explore Our Services" */
.nav .nav-cta:hover {
  background: var(--white);
  color: var(--deep-navy) !important;
  border-color: var(--white);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: var(--deep-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 32px;
    gap: 0;
    transition: right 300ms ease-in-out;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links > li > a {
    display: block;
    padding: 16px 32px;
  }

  .nav-has-dropdown > a {
    position: relative;
  }

  .nav-chevron {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 200ms ease;
  }

  .nav-has-dropdown.nav-open .nav-chevron {
    transform: translateY(-50%) rotate(-135deg);
  }

  /* Hide dropdowns by default on mobile */
  .nav-dropdown,
  .nav-mega {
    position: static;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 0;
    transition: max-height 300ms ease;
  }

  .nav-has-dropdown.nav-open .nav-dropdown,
  .nav-has-mega.nav-open .nav-mega {
    max-height: 500px;
  }

  .nav-dropdown {
    padding: 0 0 12px;
  }

  .nav-dropdown a {
    padding: 12px 32px 12px 48px;
    font-size: 0.9rem;
  }

  .nav-mega {
    width: 100%;
    padding: 0;
  }

  .nav-mega-inner {
    grid-template-columns: 1fr;
  }

  .nav-mega-column {
    padding: 16px 32px 16px 48px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-mega-column h4 {
    margin-bottom: 12px;
  }

  .nav-cta-wrap {
    margin-left: 0;
    padding: 16px 32px;
  }

  .nav-cta-wrap .nav-cta {
    display: block;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   Hero - Premium full-width background
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../img/Amb-prudence.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 23, 42, 0.85) 0%,
    rgba(14, 23, 42, 0.65) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-left: 0;
}

/* Fade-up animation on load */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.6s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.2s; }
.hero-animate:nth-child(3) { animation-delay: 0.3s; }
.hero-animate:nth-child(4) { animation-delay: 0.4s; }
.hero-animate:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(171, 41, 31, 0.4);
}

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--deep-navy) !important;
  border-color: var(--white);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

.hero-scroll-indicator svg {
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   Page Banner (inner pages - About, etc.)
   ========================================================================== */
.page-banner {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../img/Amb-prudence.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 23, 42, 0.88) 0%,
    rgba(14, 23, 42, 0.7) 100%
  );
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-banner-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 640px;
}

@media (max-width: 768px) {
  .page-banner {
    min-height: 35vh;
    padding: 120px 24px 60px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 100px;
    min-height: 85vh;
  }

  .hero-headline {
    font-size: clamp(2rem, 5vw, 2.375rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll-indicator {
    bottom: 24px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background var(--transition-hover), color var(--transition-hover), box-shadow var(--transition-hover), transform var(--transition-hover), border-color var(--transition-hover);
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #8f2018;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(171, 41, 31, 0.35), 0 0 20px rgba(212, 175, 55, 0.15);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover {
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.btn-secondary-light {
  background: transparent;
  color: var(--deep-navy);
  border: 2px solid var(--charcoal);
}

.btn-secondary-light:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* ==========================================================================
   Authority Strip
   ========================================================================== */
.authority-strip {
  background: var(--charcoal);
  padding: 48px 24px;
}

.authority-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.authority-item-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--brand-red);
  display: block;
  margin-bottom: 8px;
}

.authority-item-label {
  font-size: 0.85rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .authority-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ==========================================================================
   Capabilities Cards
   ========================================================================== */
.capabilities {
  background: var(--soft-ivory);
}

.capabilities-header {
  text-align: center;
  margin-bottom: 60px;
}

.capabilities-header h1,
.capabilities-header h2 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.capabilities-header p {
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* 2-column layout for 4-card sections (Why Choose Us) */
.capabilities-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .capabilities-grid--2col {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--white);
  padding: 40px 32px;
  box-shadow: 0 2px 20px rgba(14, 23, 42, 0.06);
  border-left: 4px solid transparent;
  transition: box-shadow var(--transition-hover), transform var(--transition-hover), border-color var(--transition-hover);
}

.pillar-card:hover {
  box-shadow: 0 8px 40px rgba(14, 23, 42, 0.1);
  transform: translateY(-2px);
  border-left-color: var(--brand-red);
}

.pillar-card h3 {
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.pillar-card .problem {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pillar-card .approach {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Strategic Philosophy
   ========================================================================== */
.philosophy {
  background: var(--deep-navy);
  padding: 100px 24px;
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .philosophy {
    padding: 60px 24px;
  }
}

/* ==========================================================================
   Our Subsidiaries - Institutional-grade card design
   ========================================================================== */
.subsidiaries {
  background: var(--soft-ivory);
}

.subsidiaries-container {
  max-width: 1320px;
}

.subsidiaries-header {
  text-align: center;
  margin-bottom: 60px;
}

.subsidiaries-header h1,
.subsidiaries-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.subsidiaries-header p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.subsidiary-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(14, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.subsidiary-card:hover {
  box-shadow: 0 8px 32px rgba(14, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: var(--brand-red);
}

.subsidiary-card-image {
  height: 240px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.subsidiary-card-image img {
  max-width: 60%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.subsidiary-card-divider {
  height: 1px;
  background: var(--light-gray);
}

.subsidiary-card-content {
  padding: 30px;
}

.subsidiary-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.subsidiary-card:hover .subsidiary-card-content h3::after {
  width: 100%;
}

.subsidiary-card-content h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.3s ease;
}

.subsidiary-card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.subsidiary-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.subsidiary-card-link:hover {
  color: var(--brand-blue);
}

.subsidiary-card-link::after {
  display: none !important;
}

.subsidiaries-grid--parent {
  grid-template-columns: repeat(3, 1fr);
}

.subsidiary-card--parent {
  text-decoration: none;
  color: inherit;
  display: block;
}

.subsidiary-card--parent:hover {
  border-color: rgba(198, 167, 94, 0.5);
  box-shadow: 0 8px 32px rgba(14, 23, 42, 0.08);
}

.subsidiary-card--placeholder {
  opacity: 0.85;
  pointer-events: none;
}

.subsidiary-card-image--placeholder {
  background: var(--light-gray);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.subsidiary-industry-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C6A75E;
  margin-bottom: 8px;
}

/* Corporate structure diagram */
.structure-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.structure-node {
  text-align: center;
  padding: 24px 40px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.structure-node--parent {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.structure-node--parent .structure-label {
  color: var(--white);
}

.structure-node--parent .structure-sublabel {
  color: rgba(255, 255, 255, 0.7);
}

.structure-node--sub {
  display: block;
  text-decoration: none;
  color: inherit;
}

.structure-node--sub:hover {
  border-color: #C6A75E;
  box-shadow: 0 4px 20px rgba(14, 23, 42, 0.08);
}

.structure-node--placeholder {
  opacity: 0.6;
}

.structure-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-navy);
}

.structure-sublabel {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.structure-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .structure-nodes {
    grid-template-columns: 1fr;
  }

  .subsidiaries-grid--parent {
    grid-template-columns: 1fr;
  }
}

/* Governance section */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.governance-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--deep-navy);
}

.governance-item p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 768px) {
  .governance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .subsidiaries-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .subsidiaries-header {
    margin-bottom: 40px;
  }

  .subsidiary-card-image {
    height: 200px;
    padding: 32px;
  }

  .subsidiary-card-content {
    padding: 24px;
  }
}

/* ==========================================================================
   Thought Leadership / Insights
   ========================================================================== */
.insights {
  background: var(--soft-ivory);
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.insights-header h2 {
  color: var(--deep-navy);
}

.insights-header a {
  margin-bottom: 4px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(14, 23, 42, 0.06);
  transition: box-shadow var(--transition-hover), transform var(--transition-hover);
}

.insight-card:hover {
  box-shadow: 0 8px 40px rgba(14, 23, 42, 0.1);
  transform: translateY(-4px);
}

.insight-image {
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.insight-content {
  padding: 28px;
}

.insight-content h3 {
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.insight-content p {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   Insights Page – Editorial Layout
   ========================================================================== */
.insights-section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.insights-section-header h2 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.insights-section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Featured Insight */
.featured-insight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-insight-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-gray);
}

.featured-insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-insight-content {
  padding: 24px 0;
}

.insight-category {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 16px;
}

.featured-insight-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--deep-navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-insight-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .featured-insight {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-insight-image {
    aspect-ratio: 16/9;
  }
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid rgba(14, 23, 42, 0.06);
  transition: box-shadow var(--transition-hover), transform var(--transition-hover), border-color var(--transition-hover);
}

.article-card:hover {
  box-shadow: 0 8px 40px rgba(14, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: rgba(171, 41, 31, 0.2);
}

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 12px;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(14, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(14, 23, 42, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-navy);
  text-align: left;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(14, 23, 42, 0.02);
}

.faq-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 24px 28px;
  margin: 0 0 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Professional Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.resource-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid rgba(14, 23, 42, 0.06);
  transition: box-shadow var(--transition-hover), transform var(--transition-hover), border-color var(--transition-hover);
}

.resource-card:hover {
  box-shadow: 0 8px 40px rgba(14, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: rgba(171, 41, 31, 0.2);
}

.resource-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 12px;
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.resource-download {
  display: inline-block;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Insights CTA */
.insights-cta .philosophy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insights-cta .philosophy-inner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
/* ==========================================================================
   Premium Testimonial Slider
   ========================================================================== */
/* Testimonials - deep navy (darkest of the three) */
.testimonials-slider {
  background: var(--deep-navy);
  padding: 120px 24px;
}

.testimonials-slider-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-slider-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.testimonials-slider-divider {
  width: 60px;
  height: 2px;
  background: rgba(171, 41, 31, 0.9);
  margin: 0 auto 48px;
}

.testimonials-carousel {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.testimonial-arrow:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.testimonial-arrow-prev {
  left: -52px;
}

.testimonial-arrow-next {
  right: -52px;
}

.testimonials-track {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial-quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(171, 41, 31, 0.5);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 32px;
  font-style: normal;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  font-style: normal;
}

.testimonial-role {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-dot.active {
  background: var(--brand-red);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .testimonials-slider {
    padding: 60px 24px;
  }

  .testimonial-arrow {
    display: none;
  }

  .testimonial-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
/* Final CTA - slightly lighter than testimonials for distinction */
.final-cta {
  background: #132039;
  padding: 100px 24px;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 24px;
}

.final-cta p {
  color: var(--light-gray);
  margin: 0 auto 40px;
  max-width: 600px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--charcoal);
  padding: 80px 24px 40px;
}

.footer-logo {
  display: block;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 56px;
  width: auto;
  opacity: 0.95;
  transition: opacity var(--transition-hover);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 0.85rem;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-hover);
}

.footer-bottom a:hover {
  color: var(--brand-blue);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ==========================================================================
   Professional Scroll Reveal Animations
   Hardware-accelerated: transform + opacity only
   ========================================================================== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease-out;
}

.reveal-left {
  transform: translateX(-40px) translateY(0);
}

.reveal-right {
  transform: translateX(40px) translateY(0);
}

.reveal-scale {
  transform: translateY(40px) scale(1.02);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children - parent gets .reveal-stagger, children animate with delay */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease-out;
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Card stagger - 0.12s per card */
.reveal-stagger-cards > * {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease-out;
}

.reveal-stagger-cards.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger-cards > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger-cards > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger-cards > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger-cards > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger-cards > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger-cards > *:nth-child(6) { transition-delay: 0.6s; }

/* Grid stagger - 0.08s per item */
.reveal-stagger-grid > * {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease-out;
}

.reveal-stagger-grid.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger-grid > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger-grid > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger-grid > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger-grid > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger-grid > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger-grid > *:nth-child(6) { transition-delay: 0.4s; }

/* Mobile: reduced motion */
@media (max-width: 768px) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .fade-in {
    transform: translateY(20px);
    transition-duration: 0.6s;
  }

  .reveal-stagger > *,
  .reveal-stagger-cards > *,
  .reveal-stagger-grid > * {
    transform: translateY(20px);
    transition-duration: 0.6s;
  }
}

/* ==========================================================================
   Contact Form – Premium Input System
   ========================================================================== */
.contact-section {
  padding: 100px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-info h1,
.contact-info h2 {
  color: var(--deep-navy);
  margin-bottom: 24px;
}

.contact-info p {
  margin-bottom: 24px;
}

.contact-details {
  margin-top: 32px;
}

.contact-details p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form-message {
  display: none;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 4px;
}

.contact-form-message:not(:empty) {
  display: block;
}

.contact-form-message--success {
  background: rgba(41, 166, 222, 0.12);
  color: var(--charcoal);
  border: 1px solid rgba(41, 166, 222, 0.3);
}

.contact-form-message--error {
  background: rgba(171, 41, 31, 0.08);
  color: var(--brand-red);
  border: 1px solid rgba(171, 41, 31, 0.25);
}

.contact-form {
  background: var(--white);
  padding: 48px;
  box-shadow: 0 4px 30px rgba(14, 23, 42, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group .required {
  color: var(--brand-red);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--light-gray);
  background: var(--soft-ivory);
  transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(171, 41, 31, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230D1B2A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

/* Map container */
.map-container {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 16px;
}

/* Leadership portrait placeholder */
.leadership-portrait {
  background: var(--charcoal);
  min-height: 400px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .leadership-layout {
    grid-template-columns: 1fr !important;
  }
}
