/* ==========================================================================
   Ace Strategies — Consolidated Global Stylesheet
   Version: 2.0 | Phase 1 Architecture Consolidation
   Replaces: style.css, style-ii.css, style-mobile.css, snippets.css,
             capabilities.css, and all inline <style> blocks
   ==========================================================================

   TABLE OF CONTENTS
   -----------------
   01. Variables & Reset
   02. Global Utilities
   03. Custom Cursor
   04. Navigation
   05. Hero — Shared Base
   06. Section Headers & Dividers
   07. Carousel — Shared Infrastructure
   08. Services Carousel (Homepage)
   09. Logo Marquee
   10. Testimonials Carousel
   11. Team Grid (Homepage Teaser)
   12. News Carousel
   13. Membership / Professional Affiliations
   14. CTA Section
   15. Contact Form
   16. Footer
   17. About Page
   18. Capabilities / Services Overview Page
   19. Service Detail Pages (Public Affairs, Stakeholder, Media, Market Entry, Strategic Comms)
   20. Team Page (Full Profiles)
   21. Cases Page
   22. News & Insights Page
   23. Code of Conduct / Privacy / Terms (Document Pages)
   24. Contact Page
   25. Responsive — Tablet (max-width: 1024px)
   26. Responsive — Mobile (max-width: 900px)
   27. Responsive — Small Mobile (max-width: 600px)
   28. Responsive — Extra Small (max-width: 480px)
   29. Reduced Motion
   30. Service Detail Page — Shared Component Library
   31. Service Detail — Responsive
   32. Footer Utility Classes (Referenced in Rebuilt Pages)
   33. News Page Detail Fix — Poll Bar Animation Trigger
   34. Capabilities Page — Responsive Service Detail Rows
   35. Contact Page Hero Fix
   36. Legal Pages — Body Background Fix
   37. IAA Partner Card — Logo Placeholder for Pending Client Assets
   38. IAA — Invest Australia Alliance
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES & RESET
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colours */
  --navy:       #1a2b45;
  --sky-blue:   #6CACE4;
  --blue-dark:  #4A89C1;
  --red:        #F4364C;
  --red-dark:   #C91D32;
  --gold:       #C9A961;
  --gold-light: #F4E4C1;
  --white:      #FFFFFF;

  /* Typography */
  --font:       'IBM Plex Sans', sans-serif;
  --font-serif: 'IBM Plex Serif', serif;

  /* Layout */
  --max-width:  1200px;
}


/* ==========================================================================
   02. GLOBAL UTILITIES
   ========================================================================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  cursor: auto;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  transition: background-color 0.5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

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

a {
  transition: color 0.3s ease;
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
}


/* ==========================================================================
   03. CUSTOM CURSOR
   ========================================================================== */
.cursor,
.cursor-follower {
  display: block;
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
}

.cursor {
  width: 12px; height: 12px;
  background: var(--sky-blue);
  margin-left: -6px; margin-top: -6px;
  transition: background 0.2s ease;
}

.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(108, 172, 228, 0.3);
  margin-left: -16px; margin-top: -16px;
  transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body.on-light-bg .cursor               { background: var(--red); }
body.on-light-bg .cursor-follower      { border-color: rgba(244, 54, 76, 0.3); }
body.on-dark-bg  .cursor               { background: var(--sky-blue); }
body.on-dark-bg  .cursor-follower      { border-color: rgba(108, 172, 228, 0.3); }

.cursor.hover          { opacity: 0.4; }
.cursor-follower.hover { width: 50px; height: 50px; margin-left: -25px; margin-top: -25px; opacity: 0.6; }

@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-follower { display: none !important; }
}


/* ==========================================================================
   04. NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 14px 28px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  background: rgba(26, 43, 69, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.8);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo {
  height: 30px;
  width: auto;
  position: relative;
  z-index: 11000;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 4px 0;
  color: var(--white);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  position: relative;
  z-index: 11001;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--white);
  display: block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   05. HERO — SHARED BASE
   ========================================================================== */
.hero {
  height: 60vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

/* Homepage hero is taller */
.hero--home {
  height: 100vh;
  min-height: 600px;
}

.hero-media {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Pages use a stronger overlay */
.hero--page .hero-video { opacity: 0.97; }

.hero-media::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26, 43, 69, 0.5) 0%, rgba(26, 43, 69, 0.7) 100%);
  z-index: 2;
}

.hero--page .hero-media::before {
  background: linear-gradient(135deg, rgba(26, 43, 69, 0.9) 0%, rgba(26, 43, 69, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 1000px;
  padding: 0 40px;
  padding-top: 80px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.hero-title .word span {
  display: inline-block;
  transform-origin: bottom center; }

.hero-title em  {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--white); }

.hero-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Homepage & Service Page CTA circle */
.hero-cta-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  position: relative; /* Establishes a stacking context */
  z-index: 50;        /* Higher than standard section backgrounds */
}

.hero-cta-circle {
  width: 150px;
  height: 150px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
  box-shadow: 0 8px 24px rgba(244, 54, 76, 0.25);
  position: relative;
  z-index: 51;        /* Secondary layer of protection */
}

.hero-cta-circle:hover {
  transform: scale(1.1);
  background: var(--red-dark);
}

.hero-cta-circle:hover { transform: scale(1.1); background: var(--red-dark); }

/* Page-level hero title variant */

.hero-page-title {
  color: var(--white);
  font-family: var(--font);
  /* reduced upper bound from 3.25rem to 2.75rem */
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-page-title span {
  color: var(--sky-blue);
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-page-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* global media container background fallback - Remove later when not needed*/
.bio-portrait,
.mosaic-large,
.mosaic-small,
.tech-image,
.film-frame,
.service-detail-media,
.profile-image-wrapper,
.case-media,
.feature-image-wrapper,
.news-item-img,
.service-bg-card,
.team-card-front,
.partner-logo-wrapper {
  background-color: var(--navy);
}

/* ==========================================================================
   06. SECTION HEADERS & DIVIDERS
   ========================================================================== */
section { padding: 80px 20px; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

/* global section titles (h2) used in the 3-column and advanced methods blocks */
.section-title {
  font-family: var(--font);
  /* reduced to match the detail-section-title bounds */
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600; /* lowered from 700 to reduce visual weight */
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: inherit;
}

.section-divider {
  width: 60px; height: 2px;
  background: var(--sky-blue);
  margin: 24px auto;
  opacity: 0.6;
}

/* Light & dark section backgrounds */
.section--light { background: var(--white); color: var(--navy); }
.section--off-white { background: #fafafa; color: var(--navy); }
.section--dark { background: var(--navy); color: var(--white); }


/* ==========================================================================
   07. CAROUSEL — SHARED INFRASTRUCTURE
   ========================================================================== */
.carousel-container-outer {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  /* horizontal padding creates space for arrow buttons */
  padding: 0 64px;
}

/* Arrow buttons — always visible, never hidden on mobile */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 15px rgba(26, 43, 69, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: var(--navy);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  /* Always visible — no opacity toggle */
  opacity: 1;
  visibility: visible;
  flex-shrink: 0;
}

.carousel-nav-btn:hover {
  background: var(--sky-blue);
  color: var(--white);
  border-color: var(--sky-blue);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(26, 43, 69, 0.2);
}

.carousel-nav-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.carousel-nav-btn.prev-btn { left: 4px; }
.carousel-nav-btn.next-btn { right: 4px; }

.carousel-nav-btn .material-symbols-outlined { font-size: 1.5rem; }

/* On dark section backgrounds the button inverts */
.section--dark .carousel-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.section--dark .carousel-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Scroll-indicator dots (shared) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

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

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}


/* ==========================================================================
   08. SERVICES CAROUSEL (Homepage)
   ========================================================================== */
.services-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
  width: 100%;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.services-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  /* hide browser scrollbar — dots provide visual indicator */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-carousel-track::-webkit-scrollbar { display: none; }

.service-bg-card {
  height: 420px;
  flex-shrink: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-wide   { width: 560px; }
.card-narrow { width: 300px; }
.card-square { width: 460px; }

.service-bg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); }

.service-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.8s ease;
}

.service-bg-card:hover .service-img { transform: scale(1.06); }

.service-bg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(26, 43, 69, 0.92) 40%, rgba(26, 43, 69, 0.2) 100%);
  transition: background 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.service-bg-card:hover::before {
  background: linear-gradient(to top, rgba(26, 43, 69, 0.96) 40%, rgba(26, 43, 69, 0.4) 100%);
}

.service-card-content {
  position: relative;
  z-index: 3;
  padding: 28px;
  width: 100%;
  text-align: left;
}

.service-card-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
  font-weight: 500;
}

.service-card-content p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 100%;
}

.service-link-btn {
  display: inline-grid;
  place-content: center;
  padding: 10px 24px;
  min-height: 44px;
  background: var(--sky-blue);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-link-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   09. LOGO MARQUEE
   ========================================================================== */
.logo-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.logo-track-wrapper { overflow: hidden; width: 100%; }

.logo-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 90s linear infinite;
}

.logo-track:hover { animation-play-state: paused; }

.logo-item {
  width: 160px; height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin: 0 36px;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.logo-item:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.08); }
.logo-item img   { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ==========================================================================
   10. TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials-section {
  padding: 80px 0;
  background: var(--white);
  color: var(--navy);
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  width: 560px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #fafafa;
  border: 1px solid rgba(26, 43, 69, 0.08);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(26, 43, 69, 0.08);
}

.quote-icon {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: 28px;
}

.testimonial-author { margin-top: auto; }

.author-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
  font-style: normal;
}

.author-role {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ==========================================================================
   11. TEAM GRID (Homepage Teaser)
   ========================================================================== */
.team-teaser-section {
  padding: 80px 20px;
  background: #fafafa;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-card {
  position: relative;
  width: 100%; height: 400px;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
}

.team-card-inner {
  position: relative;
  width: 100%; height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .team-card:hover .team-card-inner { transform: rotateY(180deg); }
}

/* Touch tap to flip */
.team-card.flipped .team-card-inner { transform: rotateY(180deg); }

.team-card-front,
.team-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 4px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card-front { background: var(--navy); transform: rotateY(0deg); }
.team-card-front img { width: 100%; height: 100%; object-fit: cover; }

.team-info-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(26, 43, 69, 0.95), transparent);
  text-align: left;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 2px;
}

.team-role {
  font-family: var(--font);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky-blue);
}

.team-card-back {
  background: var(--navy);
  color: var(--white);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.team-bio {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
}

.team-social-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--sky-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.team-social-btn:hover { background: var(--blue-dark); }


/* ==========================================================================
   12. NEWS CAROUSEL (Homepage)
   ========================================================================== */
.news-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.news-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.news-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news-carousel-track::-webkit-scrollbar { display: none; }

.news-text-card {
  width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(26, 43, 69, 0.1);
  border-radius: 8px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.news-text-card:hover {
  border-color: var(--sky-blue);
  box-shadow: 0 8px 24px rgba(26, 43, 69, 0.08);
  transform: translateY(-4px);
}

.news-date {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 16px;
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.3;
  color: var(--sky-blue);
  margin-bottom: 14px;
}

.news-snippet {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 24px;
  flex-grow: 1;
  max-width: 100%;
}

.news-read-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  align-self: flex-start;
}

.news-text-card:hover .news-read-link {
  color: var(--sky-blue);
  border-bottom-color: var(--sky-blue);
}


/* ==========================================================================
   13. MEMBERSHIP / PROFESSIONAL AFFILIATIONS
   ========================================================================== */
.membership-section {
  padding: 60px 0;
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}


/* ==========================================================================
   14. CTA SECTION
   ========================================================================== */
.cta-section {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
  text-align: center;
  padding: 80px 20px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
}

.cta-title .highlight {
  background: linear-gradient(145deg, var(--sky-blue), var(--blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 1.15rem;
  max-width: 100%;
}

.cta-button {
  display: inline-grid;
  place-content: center;
  padding: 16px 48px;
  min-height: 52px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.cta-button:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(201, 169, 97, 0.25);
}


/* ==========================================================================
   15. CONTACT FORM
   ========================================================================== */
.contact-section-dark {
  background: var(--navy);
  color: var(--white);
  padding: 100px 40px;
  position: relative;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

.contact-info-panel { padding-top: 20px; }

.contact-heading {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-divider {
  width: 60px; height: 3px;
  background: var(--gold);
  margin-bottom: 40px;
}

.contact-detail-row {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  align-items: flex-start;
}

.icon-gold {
  color: var(--gold);
  font-size: 1.6rem;
  margin-top: -2px;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky-blue);
  margin-bottom: 6px;
  font-weight: 600;
}

.detail-text,
.detail-link {
  font-family: var(--font);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-decoration: none;
  max-width: 100%;
}

.detail-link:hover { color: var(--gold); }

.contact-form-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-heading {
  font-family: var(--font);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.premium-input-group {
  position: relative;
  margin-bottom: 28px;
}

.premium-input {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--white);
  transition: border-bottom-color 0.3s ease;
  outline: none;
  border-radius: 0;
}

.premium-label {
  position: absolute;
  left: 0; top: 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}

.premium-input:focus,
.premium-input:not(:placeholder-shown) { border-bottom-color: var(--gold); }

.premium-input:focus ~ .premium-label,
.premium-input:not(:placeholder-shown) ~ .premium-label {
  top: -12px;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.input-highlight {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.premium-input:focus ~ .input-highlight { width: 100%; }

.premium-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 36px;
  user-select: none;
}

.premium-checkbox input { position: absolute; opacity: 0; cursor: pointer; }

.checkmark {
  height: 20px; width: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.premium-checkbox:hover .checkmark { border-color: var(--gold); }

.premium-checkbox input:checked ~ .checkmark {
  background: var(--gold);
  border-color: var(--gold);
}

.premium-checkbox input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

.premium-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  width: 100%;
  min-height: 52px;
  background: var(--sky-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.premium-submit-btn:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 20px 40px;
  position: relative;
  font-family: var(--font);
}

.footer-logo {
  height: 35px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  margin-left: 0;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  max-width: 100%;
}
.footer-section a:hover { color: var(--sky-blue); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* linkedin button in footer */
.footer-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.footer-linkedin-btn:hover {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: var(--navy) !important;
  transform: translateY(-2px);
}

.footer-linkedin-btn svg {
  flex-shrink: 0;
  height: 1.5em;
  width: auto;
  color: var(--sky-blue);
  transition: color 0.3s ease;
}

.footer-linkedin-btn:hover svg {
  color: var(--navy);
}

/* Alliance logo block inside footer */
.footer-alliance-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.25);
}

.footer-alliance-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
}

/* Acknowledgement of country block */
.footer-acknowledgement {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.25);
}

.footer-acknowledgement p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 100%;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  margin: 0;
  max-width: 100%;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.7); }


/* ==========================================================================
   17. ABOUT PAGE
   ========================================================================== */

/* Hero override */
.about-hero {
  height: 60vh;
  min-height: 500px;
}

/* Bio Intro */
.bio-intro-section { padding: 80px 20px; background: var(--white); }

.bio-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.bio-block { display: flex; align-items: flex-start; gap: 60px; }

.bio-portrait {
  flex: 0 0 300px; height: 300px;
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }

.bio-text-area { flex: 1; padding-top: 10px; }

.bio-eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 16px; display: block; font-weight: 700;
}

.bio-headline {
  font-family: var(--font-serif); font-size: 2.25rem;
  color: var(--navy); margin-bottom: 24px; line-height: 1.2; max-width: 100%;
}

.bio-body {
  font-size: 1rem; line-height: 1.7; color: var(--navy); margin-bottom: 20px;
  max-width: 750px; opacity: 0.9;
}

/* Diplomacy Mosaic */
.diplomacy-section { padding: 80px 20px; background: #fafafa; }

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

.mosaic-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: end; }

.mosaic-large { height: 320px; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.mosaic-small { height: 200px; border-radius: 4px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.mosaic-img   { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-wrapper:hover .mosaic-img { transform: scale(1.03); }

/* Technical Split */
.technical-section { padding: 80px 20px; background: var(--white); }

.technical-wrapper {
  display: flex; align-items: center; gap: 80px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}

.tech-image { flex: 0 0 45%; height: 360px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.tech-image img { width: 100%; height: 100%; object-fit: cover; }

/* Values Film Strip */
.values-section { padding: 100px 0; background: var(--navy); color: var(--white); overflow: hidden; }

.values-header { padding: 0 20px; max-width: var(--max-width); margin: 0 auto 40px; }

.film-strip-wrapper { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.film-strip-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 16px;
}
.film-strip-track::-webkit-scrollbar { display: none; }

.film-frame {
  flex: 0 0 400px; height: 300px;
  position: relative; scroll-snap-align: start;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.film-frame:hover { transform: translateY(-5px); }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.film-frame:hover img { transform: scale(1.05); }

.film-caption {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 0.75rem; color: rgba(255,255,255,0.95);
  font-family: var(--font); text-transform: uppercase; letter-spacing: 0.05em;
}

/* Accordion */
.foldable-section { padding: 80px 20px; background: #fafafa; }

.accordion-container { max-width: 900px; margin: 0 auto; }

.accordion-item { border-bottom: 1px solid rgba(26, 43, 69, 0.15); }

.accordion-header {
  width: 100%; padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: none; cursor: pointer;
}

.accordion-title { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin: 0; max-width: 100%; }

.accordion-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--gold); border-radius: 50%;
  position: relative; flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: ''; position: absolute;
  background: var(--navy);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.accordion-icon::before { width: 10px; height: 1px; }
.accordion-icon::after  { width: 1px; height: 10px; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion-content { height: 0; overflow: hidden; opacity: 0; }
.accordion-inner   { padding-bottom: 28px; max-width: 90%; }


/* ==========================================================================
   18. CAPABILITIES / SERVICES OVERVIEW PAGE
   ========================================================================== */
.services-hero {
  position: relative;
  height: 60vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.services-hero .hero-media {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.services-hero .hero-video {
  width: 100%; height: 100%; object-fit: cover;
}

.services-hero .hero-media::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,43,69,0.9) 0%, rgba(26,43,69,0.7) 100%);
  z-index: 2;
}

.services-hero .hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 40px;
  padding-top: 80px; text-align: center;
}

.services-intro { position: relative; z-index: 20; background: var(--white); }

.intro-content,
.service-detail-container,
.process-steps,
.case-studies-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Capabilities hero alias (used in capabilities.html) */
.Capabilities-hero {
  position: relative;
  height: 60vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.Capabilities-hero .hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.Capabilities-hero .hero-video { width: 100%; height: 100%; object-fit: cover; }
.Capabilities-hero .hero-media::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,43,69,0.9) 0%, rgba(26,43,69,0.7) 100%); z-index: 2;
}
.Capabilities-hero .hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 40px; padding-top: 80px; text-align: center;
}
.Capabilities-intro { position: relative; z-index: 20; background: var(--white); }


/* ==========================================================================
   19. SERVICE DETAIL PAGES
   ========================================================================== */

/* Shared service-detail layout classes */
.service-detail-hero {
  height: 60vh; min-height: 500px;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--navy);
}

.service-detail-hero .hero-media {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.service-detail-hero .hero-video { width: 100%; height: 100%; object-fit: cover; }

.service-detail-hero .hero-media::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,43,69,0.9) 0%, rgba(26,43,69,0.7) 100%); z-index: 2;
}

.service-detail-hero .hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 40px; padding-top: 80px; text-align: center;
}

.service-detail-row {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-detail-media {
  flex: 0 0 45%; height: 360px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   20. TEAM PAGE (Full Profiles)
   ========================================================================== */
.team-hero {
  height: 60vh; min-height: 500px;
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--navy); overflow: hidden; text-align: center;
}

.team-hero .hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.team-hero .hero-media video { width: 100%; height: 100%; object-fit: cover; }

.team-hero .hero-media::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,43,69,0.9) 0%, rgba(26,43,69,0.8) 100%); z-index: 2;
}

.team-hero .hero-content { position: relative; z-index: 10; max-width: var(--max-width); padding: 0 20px; }

.team-hero-title {
  color: var(--white); font-family: var(--font);
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; margin-bottom: 20px; line-height: 1.1;
}

.team-hero-title span { color: var(--sky-blue); font-family: var(--font-serif); font-style: italic; }

/* Full profile section */
.team-section  { padding: 80px 20px; background: var(--white); }

.team-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column; gap: 100px;
}

.profile-block {
  display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start;
  scroll-margin-top: 120px;
}

.profile-image-wrapper { position: sticky; top: 110px; }

.profile-img {
  width: 100%; height: 450px; object-fit: cover;
  border-radius: 8px; box-shadow: 0 10px 30px rgba(26,43,69,0.15);
}

.profile-content h2 {
  font-family: var(--font-serif); font-size: 2.5rem; color: var(--navy); margin-bottom: 8px; max-width: 100%;
}

.profile-role {
  font-family: var(--font); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--sky-blue); margin-bottom: 28px; display: block; font-weight: 700;
}

.profile-bio p {
  margin-bottom: 22px; color: var(--navy); font-size: 1.05rem;
  line-height: 1.75; opacity: 0.9; margin-left: 0; max-width: 100%;
}

/* Capability matrix (Why We Lead) */
.capability-matrix-section { padding: 100px 20px; background: #fafafa; }

.matrix-container { max-width: var(--max-width); margin: 0 auto; }

.matrix-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 50px;
}

.matrix-card {
  background: var(--white); padding: 28px; border-radius: 8px;
  text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.matrix-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.matrix-icon   { font-size: 2.25rem; color: var(--gold); margin-bottom: 18px; }
.matrix-title  { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; max-width: 100%; }
.matrix-desc   { font-size: 0.85rem; color: rgba(26,43,69,0.7); line-height: 1.5; max-width: 100%; }


/* ==========================================================================
   21. CASES PAGE
   ========================================================================== */
.cases-hero {
  height: 60vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--navy); padding-top: 80px;
}

.cases-grid-section { padding: 80px 40px; background: var(--white); }

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-study-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26,43,69,0.1);
  border-color: var(--sky-blue);
}

.case-media { height: 240px; width: 100%; overflow: hidden; position: relative; background: var(--navy); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-study-card:hover .case-media img { transform: scale(1.05); }

.case-content { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }

.case-category {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px; display: block;
}

.case-client { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; line-height: 1.2; max-width: 100%; }
.case-title  { font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--sky-blue); margin-bottom: 14px; max-width: 100%; }
.case-body   { font-size: 0.875rem; line-height: 1.6; color: var(--navy); margin-bottom: 22px; max-width: 100%; }

.case-quote-box { margin-top: auto; padding-top: 18px; border-top: 1px solid #e5e5e5; }
.case-quote  { font-family: var(--font-serif); font-style: italic; font-size: 0.875rem; color: var(--navy); margin-bottom: 10px; max-width: 100%; }
.case-author { font-size: 0.72rem; font-weight: 600; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.05em; }


/* ==========================================================================
   22. NEWS & INSIGHTS PAGE
   ========================================================================== */
.news-hero {
  height: 50vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--navy);
  padding-top: 80px; text-align: center;
}

.news-hero-content {
  position: relative; z-index: 100;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

/* Polling visualisation */
.polling-section { padding: 100px 0; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.05); }

.poll-vis-container { width: 100%; max-width: 1200px; margin: 60px auto; padding: 0 20px; }

.poll-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }

.poll-bar-track {
  width: 100%; height: 60px; background: #f0f2f5;
  border-radius: 100px; overflow: hidden; position: relative; display: flex;
}

.poll-bar-segment {
  height: 100%; display: flex; align-items: center; padding: 0 30px;
  color: var(--white); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); width: 0%;
}

.segment-labor   { background: var(--red); justify-content: flex-start; }
.segment-liberal { background: var(--blue-dark); justify-content: flex-end; }

.poll-meta {
  display: flex; justify-content: space-between; margin-top: 15px;
  font-size: 0.85rem; color: var(--navy); opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.poll-context { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }

.poll-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }

.stat-box { background: #fafafa; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #eee; }
.stat-num   { font-size: 2rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 5px; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }

/* Feature article */
.feature-section { padding: 80px 20px; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.05); }

.feature-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}

.feature-image-wrapper { position: relative; height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(26,43,69,0.15); }
.feature-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature-image-wrapper:hover .feature-image { transform: scale(1.03); }

.feature-content h2 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--navy); line-height: 1.1; margin-bottom: 20px; max-width: 100%; }
.feature-meta       { text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-size: 0.8rem; font-weight: 700; margin-bottom: 14px; display: block; }
.feature-desc       { font-size: 1rem; line-height: 1.7; color: var(--navy); opacity: 0.9; margin-bottom: 28px; max-width: 100%; }

.feature-download-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
  background: var(--navy); color: var(--white); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; text-decoration: none;
  border-radius: 100px; font-size: 0.8rem; transition: all 0.3s ease;
}

.feature-download-btn:hover { background: var(--sky-blue); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Resource / download cards */
.resource-card {
  background: #fafafa; border: 1px solid #e5e5e5; border-radius: 8px; padding: 28px;
  display: flex; flex-direction: column; transition: all 0.3s ease; height: 100%;
}

.resource-card:hover { background: var(--white); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--sky-blue); }

.resource-icon  { font-size: 2.25rem; color: var(--gold); margin-bottom: 18px; }
.resource-meta  { font-size: 0.72rem; color: #999; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.resource-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; line-height: 1.3; max-width: 100%; }
.resource-desc  { font-size: 0.875rem; color: var(--navy); opacity: 0.8; margin-bottom: 22px; flex-grow: 1; max-width: 100%; }

.download-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--sky-blue); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; }
.download-btn:hover { color: var(--navy); }

/* News expandable grid */
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
  width: 100%; max-width: 1200px; margin: 0 auto;
}

.news-item { background: var(--white); border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.news-item-img { width: 100%; height: 250px; object-fit: cover; object-position: top; display: block; }
.news-item-body { padding: 28px; }

.news-item details { margin-top: 14px; }

.news-item summary {
  cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; list-style: none;
  display: flex; align-items: center; gap: 5px;
}
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary::after { content: '+'; font-size: 1.1em; }
.news-item details[open] summary::after { content: '-'; }

.expanded-content {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #f0f0f0;
  font-size: 0.875rem; color: var(--navy); line-height: 1.6;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   23. DOCUMENT PAGES (Code of Conduct, Privacy, Terms)
   ========================================================================== */
.document-page-section {
  padding: 120px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.document-page-section h1 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--navy); margin-bottom: 16px; max-width: 100%; }
.document-page-section h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin: 40px 0 16px; max-width: 100%; }
.document-page-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; max-width: 100%; }
.document-page-section p  { margin-bottom: 20px; line-height: 1.75; color: var(--navy); max-width: 100%; margin-left: 0; }
.document-page-section ul { padding-left: 24px; margin-bottom: 20px; }
.document-page-section li { margin-bottom: 8px; max-width: 100%; margin-inline: 0; }

.document-divider { width: 60px; height: 3px; background: var(--gold); margin: 20px 0 40px; }


/* ==========================================================================
   24. CONTACT PAGE
   ========================================================================== */
.contact-hero {
  height: 50vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--navy); padding-top: 100px; overflow: hidden;
}

.contact-hero .hero-content { max-width: 700px; }

.contact-hero .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }


/* ==========================================================================
   25. RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {

  section { padding: 60px 20px; }

  /* Navigation collapses to hamburger */
  .nav { width: 94%; padding: 12px 24px; top: 16px; }
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: -110%; width: 100vw; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 40px 60px;
    gap: 28px;
    border-radius: 0;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.4s;
    list-style: none;
  }

  .nav-menu.active {
    right: 0;
    visibility: visible;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0s;
  }

  .nav-link { font-size: 1.4rem; }

  /* Carousel cards — tablet sizes */
  .service-bg-card, .card-wide, .card-narrow, .card-square { width: 44vw; min-width: 280px; height: 420px; }
  .news-text-card { width: 44vw; min-width: 280px; }
  .testimonial-card { width: 60vw; min-width: 300px; }

  /* Team grid — 2 columns on tablet */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { height: 320px; }

  /* Case studies */
  .case-studies-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Process grid */
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 40px !important; }

  /* Contact */
  .contact-container { grid-template-columns: 1fr; gap: 60px; }
  .contact-form-panel { padding: 40px 30px; }

  /* About */
  .profile-block { grid-template-columns: 1fr; gap: 30px; }
  .profile-image-wrapper { position: relative; top: 0; max-width: 360px; margin: 0 auto; }
  .profile-img { height: 380px; }

  /* Matrix */
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }

  /* Feature */
  .feature-container { grid-template-columns: 1fr; gap: 40px; }
  .feature-image-wrapper { height: 360px; order: -1; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }

  /* Carousel outer padding tightens */
  .carousel-container-outer { padding: 0 52px; }
}


/* ==========================================================================
   26. RESPONSIVE — MOBILE (max-width: 900px)
   ========================================================================== */
@media (max-width: 900px) {

  html { font-size: 15px; }

  section { padding: 48px 16px; }
  .section-header { margin-bottom: 36px; }

  /* Nav */
  .nav { padding: 10px 20px !important; top: 10px !important; width: 95% !important; }
  .logo { height: 26px !important; }
  .nav-toggle { width: 36px !important; height: 36px !important; }
  .nav-toggle span { width: 18px !important; }

  /* Hero */
  .hero-content { padding-top: 100px; padding-bottom: 40px; }
  .hero-cta-circle { width: 110px !important; height: 110px !important; font-size: 0.65rem !important; }

  /* Carousel — cards full-width on mobile */
  .service-bg-card, .card-wide, .card-narrow, .card-square {
    width: 82vw !important;
    max-width: 360px;
    height: auto !important;
    min-height: 360px;
    scroll-snap-align: center;
  }

  .news-text-card {
    width: 82vw !important;
    max-width: 360px;
    scroll-snap-align: center;
  }

  .testimonial-card {
    width: 82vw !important;
    max-width: 360px;
    scroll-snap-align: center;
    padding: 28px 20px !important;
    height: auto !important;
  }

  /* Carousel button — smaller on mobile but always visible */
  .carousel-nav-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .carousel-nav-btn .material-symbols-outlined { font-size: 1.25rem !important; }

  .carousel-container-outer { padding: 0 44px; }

  /* Service card content */
  .service-card-content { padding: 20px !important; }
  .service-card-content h3 { font-size: 1.1rem !important; margin-bottom: 8px !important; }
  .service-card-content p  { font-size: 0.875rem !important; line-height: 1.5 !important; margin-bottom: 16px !important; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .team-card { height: 280px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 36px; }

  /* Cases */
  .case-studies-grid { grid-template-columns: 1fr !important; }
  .cases-hero { height: 50vh !important; }
  .cases-grid-section { padding: 48px 20px; }

  /* About */
  .bio-block { flex-direction: column; }
  .bio-portrait { width: 100%; flex: none; height: 280px; }
  .diplomacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .technical-wrapper { flex-direction: column; }
  .tech-image { width: 100%; height: 240px; flex: none; order: -1; }
  .film-frame { flex: 0 0 82vw; }

  /* News page */
  .poll-context, .news-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .poll-stat-grid { grid-template-columns: repeat(3, 1fr); }

  /* Team page */
  .matrix-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Logo marquee */
  .logo-item { width: 120px !important; height: 56px !important; margin: 0 24px !important; }
  .logo-item img { max-height: 48px !important; }
}


/* ==========================================================================
   27. RESPONSIVE — SMALL MOBILE (max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {

  /* Process / case grids — full single column */
  .process-grid, .case-studies-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Service stats */
  .services-stats { flex-wrap: wrap !important; gap: 28px !important; }
  .stat-item { flex: 0 0 100% !important; }

  /* Detail rows stack */
  .service-detail-row { flex-direction: column; }
  .service-detail-media { width: 100%; height: 240px; flex: none; order: -1; }

  /* Poll */
  .poll-bar-segment { padding: 0 10px; font-size: 0.85rem; }
  .poll-stat-grid { grid-template-columns: 1fr !important; }

  /* Feature */
  .feature-image-wrapper { height: 280px; }

  /* Form row */
  .form-row { grid-template-columns: 1fr !important; }

  /* Contact */
  .contact-section-dark { padding: 60px 20px; }

  /* Document pages */
  .document-page-section { padding: 100px 20px 60px; }
}


/* ==========================================================================
   28. RESPONSIVE — EXTRA SMALL (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .team-card { height: 360px !important; }
  .matrix-grid { grid-template-columns: 1fr !important; }
  .hero-cta-circle { width: 90px !important; height: 90px !important; }
}


/* ==========================================================================
   29. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor, .cursor-follower { display: none !important; }
  .logo-track { animation: none !important; }
}


/* ==========================================================================
   30. SERVICE DETAIL PAGE — SHARED COMPONENT LIBRARY
   (Covers: public-affairs, stakeholder-engagement, media-management,
    new-market-entry, strategic-communications)
   ========================================================================== */

/* --- Hero (image/gradient background variant) --- */
.detail-hero {
  height: 65vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 40px;
  padding-top: 120px;
  position: relative;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 43, 69, 1), rgba(26, 43, 69, 1));/* increased from 0.9 and 0.88 to 1 */
  z-index: 1;
}

.detail-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.detail-hero-title {
  font-family: var(--font-serif);
  /* reduced upper bound from 3rem to 2.5rem */
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 100%;
}

.detail-hero-title em { font-style: italic; color: var(--gold); }

.detail-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 300;
  max-width: 100%;
}

/* --- Intro / overview sections --- */
.detail-intro-section { padding: 100px 40px; background: var(--white); }
.detail-intro-content { max-width: 1000px; margin: 0 auto; }
.detail-intro-header  { text-align: center; margin-bottom: 60px; }

.detail-tag {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 14px; display: block;
}

/* secondary section titles (h2) */
.detail-section-title {
  font-family: var(--font-serif);
  /* reduced from 2.25rem/1.85rem down to a strict 1.5rem maximum */
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.2;
  max-width: 100%;
}

.detail-section-title--light {
  color: var(--white);
}

.detail-body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--navy);
}
.detail-body-text p {
  margin-bottom: 22px;
  max-width: 65ch; /* constrains line length to approx 65 characters */
}

/* for intro text that needs to be centred in the layout */
.detail-body-text-centred {
  max-width: 75ch; /* slightly wider for centred intro blocks */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.detail-body-text p:last-child { margin-bottom: 0; }

/* --- 2-column service card grids --- */
.detail-section { padding: 100px 40px; }
.detail-section--off-white { background: #f8f9fa; }
.detail-section--dark {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.detail-section--dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sky-blue));
}

.detail-section-content { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }


.detail-card-grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.detail-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.detail-section--off-white .detail-card { background: var(--white); }
.detail-section:not(.detail-section--off-white) .detail-card { background: #f8f9fa; }

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--sky-blue);
}

/* Gold accent bar on hover */
.detail-card::before {
  content: ''; position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  opacity: 0; transition: opacity 0.3s ease;
}
.detail-card:hover::before { opacity: 1; }

.detail-card-icon { margin-bottom: 22px; text-align: center; }
.detail-card-icon .material-symbols-outlined { font-size: 2.25rem; color: var(--sky-blue); }

.detail-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
}

.detail-card-desc {
  font-size: 1rem; line-height: 1.7; color: var(--navy);
  opacity: 0.9; text-align: center; flex-grow: 1; max-width: 100%;
}

/* --- 3-column insight / stat / step grids --- */
.detail-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 60px;
}

.detail-3col-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.detail-3col-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--sky-blue);
}

.detail-stat-number {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 600;
  color: var(--sky-blue); margin-bottom: 16px; display: block;
}

/* Dark variant 3-col */
.detail-3col-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.detail-3col-card--dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  box-shadow: none;
}

.detail-3col-card--dark h4 {
  color: var(--white); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 1rem; margin-bottom: 10px;
}

.detail-3col-card--dark p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; line-height: 1.6; max-width: 100%; }

/* Step-number circles (Stakeholder approach) */
.step-number {
  width: 56px; height: 56px;
  background: var(--navy); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  margin: 0 auto 22px; transition: background 0.3s ease, transform 0.3s ease;
}

.detail-3col-card:hover .step-number { background: var(--gold); color: var(--navy); transform: scale(1.1); }

/* --- Expert text block (quoted / highlighted para) --- */
.detail-expert-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  padding: 36px 40px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  margin-bottom: 56px;
  text-align: left;
}

.detail-expert-text p {
  max-width: 65ch; /* constrains line length to approx 65 characters */
  margin-bottom: 0;
  max-width: 100%;
}

.detail-expert-text--light {
  color: var(--navy);
  background: #f8f9fa;
  border-left-color: var(--sky-blue);
}

/* --- Partners / Alliance blocks --- */
.partners-section { padding: 80px 0; background: #fafafa; border-top: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; }

.partners-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: center; gap: 60px;
}

.partner-block {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; max-width: 450px;
}

.partner-logo-wrapper { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }

.partner-logo {
  max-width: 220px; max-height: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.8; transition: all 0.3s ease;
}

.partner-block:hover .partner-logo { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.partner-copy { font-size: 1rem; color: var(--navy); line-height: 1.6; max-width: 100%; }

.partner-divider { width: 1px; height: 80px; background: rgba(26, 43, 69, 0.1); }

/* --- Differentiator items (icon + text horizontal layout) --- */
.differentiator-row-grid {
  max-width: 1000px; margin: 60px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px;
}

.differentiator-row-item { display: flex; gap: 20px; align-items: flex-start; }

.differentiator-row-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--sky-blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.differentiator-row-icon .material-symbols-outlined { color: var(--white); font-size: 1.4rem; }

.differentiator-row-content h4 {
  font-family: var(--font); font-size: 1rem; color: var(--navy);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}

.differentiator-row-content p { font-size: 0.95rem; line-height: 1.6; color: var(--navy); max-width: 100%; }

/* --- IAA / Alliance highlight block --- */
.iaa-highlight { margin-top: 56px; }

.iaa-title { font-family: var(--font-serif); font-size: 1.7rem; color: var(--white); margin-bottom: 36px; max-width: 100%; }

.iaa-content { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.iaa-logo-container { flex: 0 0 auto; }
.iaa-logo { height: 100px; width: auto; }

.iaa-benefits { flex: 1; min-width: 280px; text-align: left; }

.iaa-benefits-list { list-style: none; margin: 0; padding: 0; }

.iaa-benefits-list li {
  margin-bottom: 14px; padding-left: 28px; position: relative;
  color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.6; max-width: 100%;
}

.iaa-benefits-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* --- Page-level CTA (detail pages use varied background) --- */
/* reduce the overall vertical footprint of the cta section */
.detail-cta-section {
  padding: 60px 20px;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-cta-section--dark {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
  color: var(--white);
}

.detail-cta-section--light { background: var(--white); }

/* ensure the cta content is elegantly constrained */
.detail-cta-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* lower the clamp ceiling and scaling factor to restore hierarchy */
.detail-cta-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.detail-cta-title--dark   {
  color: var(--white);
}

.detail-cta-title--light  {
  color: var(--navy);
}

/* ensure the subtitle matches the updated body text scale */
.detail-cta-subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.detail-cta-subtitle--dark  {
  color: rgba(255, 255, 255, 0.9);
}
.detail-cta-subtitle--light {
  color: var(--navy);
  opacity: 0.85;
}

.detail-cta-btn {
  display: inline-grid; place-content: center;
  padding: 16px 48px; min-height: 52px;
  background: var(--sky-blue); color: var(--white);
  text-decoration: none; border-radius: 100px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.9rem;
  transition: all 0.3s ease;
}

.detail-cta-btn:hover {
  background: var(--white); color: var(--navy);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.detail-cta-btn--navy:hover { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(108, 172, 228, 0.2); }

/* --- Legal / document pages --- */
.legal-content-wrapper {
  max-width: 800px; margin: 0 auto;
  padding: 160px 20px 100px; color: var(--navy);
}

.legal-content-wrapper h1 { font-family: var(--font-serif); font-size: 2.5rem; color: var(--navy); margin-bottom: 12px; max-width: 100%; }
.legal-content-wrapper h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin: 36px 0 14px; max-width: 100%; }
.legal-content-wrapper h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; max-width: 100%; }
.legal-content-wrapper p  { margin-bottom: 18px; line-height: 1.75; max-width: 100%; margin-left: 0; }
.legal-content-wrapper ul { padding-left: 22px; margin-bottom: 18px; }
.legal-content-wrapper li { margin-bottom: 7px; max-width: 100%; margin-inline: 0; }
.legal-divider            { width: 60px; height: 3px; background: var(--gold); margin: 16px 0 36px; }

/* ==========================================================================
   31. SERVICE DETAIL — RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .detail-card-grid        { grid-template-columns: 1fr; max-width: 700px; }
  .detail-3col-grid        { grid-template-columns: repeat(2, 1fr); }
  .differentiator-row-grid { grid-template-columns: 1fr; max-width: 600px; }
  .iaa-content             { flex-direction: column; text-align: center; gap: 28px; }
  .iaa-benefits            { text-align: center; }
  .partners-container      { flex-direction: column; gap: 36px; }
  .partner-divider         { width: 60px; height: 1px; }
  .detail-hero             { height: 55vh; }
}

@media (max-width: 900px) {
  .detail-intro-section,
  .detail-section          { padding: 60px 20px; }
  .detail-cta-section      { padding: 60px 20px; }
  .detail-3col-grid        { grid-template-columns: 1fr; gap: 24px; }
  .detail-hero             { height: 50vh; min-height: 400px; padding: 0 20px; padding-top: 100px; }
  .detail-hero-title       { font-size: 2rem !important; }
  .detail-hero-subtitle    { font-size: 1.1rem !important; }
  .detail-expert-text      { padding: 28px 20px; }
}


/* ==========================================================================
   32. FOOTER UTILITY CLASSES (referenced in rebuilt pages)
   ========================================================================== */
.footer-brand-name {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.4;
  font-size: 0.9rem;
  max-width: 100%;
}

.footer-abn {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  margin-bottom: 0;
  max-width: 100%;
}

.footer-alliance-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
}

/* Responsive grid fixes for rebuilt footer */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 36px; }
}

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

/* ==========================================================================
   33. NEWS PAGE DETAIL FIX — poll bar animation trigger
   ========================================================================== */
.poll-bar-segment {
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   34. CAPABILITIES PAGE — responsive service detail rows
   ========================================================================== */
@media (max-width: 900px) {
  .service-detail-container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .service-detail-container > div > div:first-child img {
    height: 260px !important;
    order: -1;
  }
}

/* ==========================================================================
   35. CONTACT PAGE HERO FIX
   ========================================================================== */
.hero--page .hero-media::before {
  background: linear-gradient(135deg, rgba(26, 43, 69, 0.88) 0%, rgba(26, 43, 69, 0.72) 100%);
}

/* ==========================================================================
   36. LEGAL PAGES — body background fix
   ========================================================================== */
.legal-content-wrapper {
  background: var(--white);
}

/* Ensure document pages have white background behind nav */
body.theme-dark .legal-content-wrapper {
  background: var(--white);
}

/* Full-page white background for legal pages */
body:has(.legal-content-wrapper) {
  background: var(--white);
}


/* ==========================================================================
   37. IAA PARTNER CARD — logo placeholder for pending client assets
   ========================================================================== */
.iaa-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 43, 69, 0.04);
  border: 1px dashed rgba(26, 43, 69, 0.2);
  border-radius: 4px;
  min-height: 60px;
  padding: 12px;
}
/* ==========================================================================
   38. IAA — INVEST AUSTRALIA ALLIANCE (EDITORIAL REDESIGN)
   ========================================================================== */

:root {
  --iaa-navy:       #101828;
  --iaa-bg:         #F4F5F6;
  --iaa-silver:     #D0D3DB;
  --iaa-gold-light: #F5E4C0;
  --iaa-text:       #101828;
  --iaa-border:     rgba(16, 24, 40, 0.12);
  --iaa-gold-dark:  #B59A5A;
  --iaa-red:        #DA1966;
}

body.iaa-page {
  background-color: var(--iaa-bg);
  color: var(--iaa-text);
  font-family: var(--font);
}

/* ── Global Nav & Footer Overrides (Scoping to IAA page only) ────────── */

/* Default State: Silver */
body.iaa-page .nav {
  background-color: var(--iaa-silver) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 24, 40, 0.08) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease !important;
}

body.iaa-page .nav-link {
  color: var(--iaa-navy) !important;
  transition: color 0.3s ease !important;
}

body.iaa-page .nav-toggle span {
  background: var(--iaa-navy) !important;
  transition: background 0.3s ease !important;
}

body.iaa-page .logo img {
  filter: brightness(0.15);
  transition: filter 0.3s ease;
}

/* Hover State on Nav Container: Light Gold */
body.iaa-page .nav:hover:not(.is-scrolling) {
  background-color: var(--iaa-gold-light) !important;
  border-color: rgba(181, 154, 90, 0.3) !important;
}

/* Hover State on individual Links */
body.iaa-page .nav-link:hover {
  color: var(--iaa-gold-dark) !important;
}

body.iaa-page .nav-link.active::after {
  background: var(--iaa-gold-dark) !important;
}

/* Active Scroll State: Gold Background */
body.iaa-page .nav.is-scrolling {
  background-color: var(--iaa-gold-dark) !important;
  border-color: var(--iaa-gold-dark) !important;
}

/* Maintain Navy elements during scroll for maximum accessibility on Gold */
body.iaa-page .nav.is-scrolling .nav-link {
  color: var(--iaa-navy) !important;
}

body.iaa-page .nav.is-scrolling .logo img {
  filter: brightness(0.15) !important;
}

body.iaa-page .nav.is-scrolling .nav-toggle span {
  background: var(--iaa-navy) !important;
}

body.iaa-page .nav.is-scrolling .nav-link.active::after {
  background: var(--iaa-navy) !important;
}

/* ── Mobile Navigation Curtain ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Set curtain background to IAA Gold */
  body.iaa-page .nav-menu {
    background-color: var(--iaa-gold-dark) !important;
  }

  /* Default link state: Navy */
  body.iaa-page .nav-menu .nav-link {
    color: var(--iaa-navy) !important;
  }

  /* Hover link state: White */
  body.iaa-page .nav-menu .nav-link:hover {
    color: #ffffff !important;
  }

  /* Underline overrides for hover/active: Red */
  body.iaa-page .nav-menu .nav-link::after {
    background-color: var(--iaa-red) !important;
    display: block !important;
  }

  /* Active page link state */
  body.iaa-page .nav-menu .nav-link.active {
    color: #ffffff !important;
  }

  body.iaa-page .nav-menu .nav-link.active::after {
    background-color: var(--iaa-red) !important;
  }
}

/* Footer Defaults */
body.iaa-page .site-footer {
  background-color: var(--iaa-silver) !important;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  color: var(--iaa-navy) !important;
}
body.iaa-page .site-footer h3 {
  color: var(--iaa-navy) !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}
body.iaa-page .footer-ack {
  color: rgba(16, 24, 40, 0.75) !important;
  font-weight: 400;
}
body.iaa-page .iaa-footer-link {
  color: rgba(16, 24, 40, 0.75) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
body.iaa-page .iaa-footer-link:hover {
  color: var(--iaa-red) !important;
}
body.iaa-page .material-symbols-outlined { color: var(--iaa-navy) !important; opacity: 0.6; }
body.iaa-page .alliance-footer-logo { filter: brightness(0.15); max-width: 200px; display: block; margin-bottom: 20px; }
body.iaa-page .footer-brand-name { color: var(--iaa-navy) !important; font-weight: 700; margin-bottom: 6px; }
body.iaa-page .footer-bottom p { color: rgba(16, 24, 40, 0.6) !important; font-weight: 500; }


/* ── Typography ──────────────────────────────────────────────────────── */
.iaa-display-title {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--iaa-text);
  margin-bottom: 24px;
}

.iaa-section-title {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--iaa-text);
  margin-bottom: 32px;
}

.iaa-superhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--iaa-gold-dark);
  margin-bottom: 24px;
}

.iaa-superhead::before {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--iaa-red);
  border-radius: 50%;
}

.iaa-lead-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(26, 43, 69, 0.85);
  max-width: 60ch;
  margin-bottom: 40px;
}

/* ── Layout & Containers ─────────────────────────────────────────────── */
.iaa-canvas {
  padding-bottom: 120px;
}

.iaa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.iaa-editorial-section {
  padding: 120px 0;
}

.iaa-section-desc {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(26, 43, 69, 0.85);
}

/* ── Asymmetrical Hero ───────────────────────────────────────────────── */
.iaa-hero-editorial {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 180px 40px 80px;
  min-height: 90vh;
}

.iaa-hero-content {
  padding-right: 40px;
}

.iaa-video-frame {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--iaa-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
  opacity: 1;
}

.iaa-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  opacity: 1;
}

.iaa-hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Buttons */
.btn-iaa-primary {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--iaa-navy);
  color: #ffffff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--iaa-navy);
  border-radius: 100px;
  transition: all 0.4s ease;
}

.btn-iaa-primary:hover {
  background-color: transparent;
  color: var(--iaa-navy);
}

.btn-iaa-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--iaa-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-iaa-text:hover {
  border-bottom-color: var(--iaa-red);
  color: var(--iaa-red);
}

/* ── Refined Marquee ─────────────────────────────────────────────────── */
.iaa-marquee-strip {
  padding: 60px 0;
  border-top: 1px solid var(--iaa-border);
  border-bottom: 1px solid var(--iaa-border);
  overflow: hidden;
  background: var(--iaa-bg);
}

.iaa-marquee-strip .logo-track {
  /* Using the global animation defined in Section 09 */
}

/* ── Typographic Grids ───────────────────────────────────────────────── */
.iaa-section-intro {
  max-width: 800px;
  margin-bottom: 80px;
}

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

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

.iaa-grid-item {
  border-top: 1px solid var(--iaa-border);
  padding-top: 24px;
}

.iaa-item-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--iaa-text);
}

.iaa-item-text {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(16, 24, 40, 0.8);
}

/* ── Service Architecture Numbers ────────────────────────────────────── */
.iaa-service-item {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--iaa-border);
  padding-top: 24px;
}

.iaa-service-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--iaa-red);
  margin-top: 4px;
}

/* ── Staggered Engagement Timeline ───────────────────────────────────── */
.iaa-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.iaa-timeline-item {
  position: relative;
  padding: 40px 0 80px 120px;
}

.iaa-timeline-bg {
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 8rem;
  font-weight: 300;
  color: var(--iaa-navy);
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

.iaa-timeline-content {
  position: relative;
  z-index: 2;
}

/* ── Alliance Index ─────────────────────────────── */
.iaa-index-wrapper {
  border-top: 1px solid var(--iaa-text);
}

.iaa-index-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 3fr;
  align-items: center;
  padding: 32px 20px;
  border-bottom: 1px solid var(--iaa-border);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
}

.iaa-index-row:hover {
  background: rgba(26, 43, 69, 0.03);
  padding-left: 32px;
  padding-right: 8px;
}

.iaa-index-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--iaa-gold-dark);
}

.iaa-index-name {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--iaa-text);
}

.iaa-index-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(26, 43, 69, 0.75);
}

/* ── Minimalist Editorial CTA (With Rounded Corners) ─────────────────── */
.iaa-editorial-cta {
  padding: 120px 40px;
}

.iaa-cta-box {
  background: #ffffff;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 40px;
  border: 1px solid var(--iaa-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.04);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .iaa-hero-editorial { grid-template-columns: 1fr; padding-top: 140px; }
  .iaa-hero-content { padding-right: 0; }
  .iaa-video-frame { aspect-ratio: 16/9; }
  .iaa-grid-3, .iaa-grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .iaa-index-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .iaa-index-row:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .iaa-timeline-item { padding-left: 0; padding-top: 80px; }
  .iaa-timeline-bg { top: 0; font-size: 6rem; }
}

@media (max-width: 600px) {
  .iaa-display-title { font-size: 2.25rem; }
  .iaa-section-title { font-size: 1.85rem; }
  .iaa-editorial-section { padding: 80px 0; }
  .iaa-cta-box { padding: 60px 20px; }
  .iaa-hero-actions { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   39. GLOBAL TYPOGRAPHY & HERO HARMONISATION (REVISED)
   ========================================================================== */

/* 1. Universal Hero Placement: Adjusted height to keep CTA within hero bounds */
body:not(.iaa-page) .hero,
body:not(.iaa-page) .detail-hero,
body:not(.iaa-page) .team-hero,
body:not(.iaa-page) .cases-hero,
body:not(.iaa-page) .news-hero,
body:not(.iaa-page) .contact-hero,
body:not(.iaa-page) .about-hero,
body:not(.iaa-page) .Capabilities-hero {
  align-items: flex-start !important;
}

/* Specific exclusion for index.html as requested */
body:not(.iaa-page):not(.home-page) .hero-content,
body:not(.iaa-page) .detail-hero-content,
body:not(.iaa-page) .news-hero-content {
  padding-top: 140px !important; /* Raised from 260px to secure CTA clearance */
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  body:not(.iaa-page):not(.home-page) .hero-content,
  body:not(.iaa-page) .detail-hero-content,
  body:not(.iaa-page) .news-hero-content {
    padding-top: 100px !important;
  }
}

/* 2. Primary H1 Title: Enforced index.html parity */
body:not(.iaa-page) .hero-title,
body:not(.iaa-page) .detail-hero-title,
body:not(.iaa-page) .team-hero-title,
body:not(.iaa-page) .hero-page-title {
  font-family: var(--font) !important;
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  margin-bottom: 28px !important;
  letter-spacing: -0.01em !important;
  color: var(--white) !important;
  text-align: center !important;
}

body:not(.iaa-page) .hero-title em,
body:not(.iaa-page) .detail-hero-title em,
body:not(.iaa-page) .team-hero-title span,
body:not(.iaa-page) .hero-page-title span {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--white) !important;
}

/* 3. Hero Subtitle */
body:not(.iaa-page) .hero-subtitle,
body:not(.iaa-page) .detail-hero-subtitle,
body:not(.iaa-page) .hero-page-sub {
  font-family: var(--font) !important;
  font-size: clamp(1rem, 1.2vw, 1.15rem) !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center !important;
}

/* 4. CTA Typography: Consistent smaller scale */
body:not(.iaa-page) .cta-title,
body:not(.iaa-page) .detail-cta-title {
  font-family: var(--font) !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px !important;
}

body:not(.iaa-page) .cta-sub,
body:not(.iaa-page) .detail-cta-subtitle {
  font-family: var(--font) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  font-weight: 300 !important;
  margin-bottom: 32px !important;
}

/* 5. Consistent Base for H2 and H3 */
body:not(.iaa-page) .section-title,
body:not(.iaa-page) .detail-section-title,
body:not(.iaa-page) .bio-headline {
  font-family: var(--font) !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

body:not(.iaa-page) .detail-card-title,
body:not(.iaa-page) .matrix-title,
body:not(.iaa-page) .case-title,
body:not(.iaa-page) .news-card-title {
  font-family: var(--font) !important;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
  font-weight: 600 !important;
}