/* 
   AMMARI ADVISORY - OFFICIAL STYLESHEET
   Visual Style: Premium Matte Black/Charcoal, Rich Gold/Bronze, Crisp White/Silver-Grey
   Aesthetic: High-end, Industrial-Luxury, Geometric, Clean lines & angles
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================== */
:root {
  /* Color Palette */
  --bg-matte-black: #0A0A0A;
  --bg-dark-charcoal: #121212;
  --bg-light-charcoal: #1C1C1C;
  --bg-slate-footer: #0E0F10;
  
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #AA820A;
  --gold-bronze: #8A6605;
  --gold-gradient: linear-gradient(135deg, #AA820A 0%, #D4AF37 50%, #F3E5AB 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA820A 100%);
  --gold-glow: 0 0 15px rgba(212, 175, 55, 0.25);
  
  --text-white: #FFFFFF;
  --text-light-grey: #E5E5E5;
  --text-muted: #A0A0A0;
  --text-dark: #121212;
  
  --border-color: #262626;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-focus: rgba(212, 175, 55, 0.8);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-matte-black);
  color: var(--text-light-grey);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-matte-black);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-light-charcoal);
  border: 2px solid var(--bg-matte-black);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================
   3. TYPOGRAPHY & HEADINGS
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  position: relative;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
}

.center-title {
  text-align: center;
}
.center-title::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* ==========================================
   4. LAYOUT COMPONENTS & UTILITIES
   ========================================== */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-dark-charcoal);
}

/* Grid Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Geometric Accents & Borders */
.geom-accent-line {
  position: relative;
}

.geom-accent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
}

.angle-cut {
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.angle-border {
  position: relative;
  border: 1px solid var(--border-color);
}

.angle-border::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  border-top: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
  pointer-events: none;
}

.angle-border::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  pointer-events: none;
}

/* Buttons & CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: none;
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--gold-primary);
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn-outline-gold:hover::before {
  left: 150%;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-light);
  box-shadow: var(--gold-glow);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Highlight badge */
.badge-gold {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
  background: rgba(212, 175, 55, 0.05);
}

/* ==========================================
   5. HEADER / NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
}

/* Crest Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-crest {
  width: 42px;
  height: 42px;
}

.logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-white);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light-grey);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: var(--transition-fast);
}

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

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

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-fast);
}

/* ==========================================
   6. HERO SECTION
   ========================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-matte-black);
  overflow: hidden;
}

/* Background overlay with deep parallax image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.95) 100%),
                    linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, transparent 20%, rgba(10, 10, 10, 0.95) 100%),
                    url('assets/images/WhatsApp Image 2026-06-02 at 15.40.51.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-subtext {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-subtext span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
}

.hero h1 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero h1 strong {
  display: block;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
}

.hero-pillars {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-light-grey);
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.hero-pillars span {
  color: var(--gold-primary);
  margin: 0 0.75rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-primary), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--text-white);
  animation: scrollPulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ==========================================
   7. ABOUT US & VISION
   ========================================== */
.about-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light-grey);
  margin-bottom: 2rem;
  text-align: justify;
}

.about-desc::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding-right: 0.75rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.vision-card {
  background-color: var(--bg-light-charcoal);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.vision-card:first-child {
  margin-bottom: 2rem;
}

.vision-card:hover {
  transform: translateY(-5px);
}

.vision-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vision-icon {
  width: 24px;
  height: 24px;
  stroke: var(--gold-primary);
}

.vision-card h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* About Us Gallery Showcase */
.about-gallery-grid {
  margin-top: 4.5rem;
}

.gallery-image-card {
  position: relative;
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.gallery-image-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
  transform: translateY(-5px);
}

.gallery-img-wrapper {
  position: relative;
  height: 340px;
  width: 100%;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-image-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 60%, transparent 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.gallery-overlay h4 {
  font-size: 1.35rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}

.gallery-overlay p {
  font-size: 0.9rem;
  color: var(--text-light-grey);
  margin-bottom: 0;
  font-weight: 300;
}

/* ==========================================
   8. WHY AMMARI ADVISORY & VALUES
   ========================================== */
.why-grid {
  margin-bottom: 6rem;
}

.why-card {
  background: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.why-card:hover {
  background: var(--bg-light-charcoal);
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.why-card:hover::before {
  width: 100%;
}

.why-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.15);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.why-card:hover .why-num {
  color: var(--gold-primary);
  transform: scale(1.1);
}

.why-card h4 {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Values Highlight */
.values-wrap {
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
}

.value-item {
  text-align: center;
  padding: 0 1.5rem;
}

.value-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-light-charcoal);
  border: 1px solid var(--border-gold);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); /* Hexagonal icon base */
  transition: var(--transition-smooth);
}

.value-item:hover .value-icon-box {
  transform: rotate(45deg);
  background-color: var(--gold-primary);
  border-color: var(--gold-light);
}

.value-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-primary);
  fill: none;
  transition: var(--transition-smooth);
}

.value-item:hover .value-icon-box svg {
  stroke: var(--bg-matte-black);
  transform: rotate(-45deg);
}

.value-item h4 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.value-item p {
  font-size: 0.95rem;
}

/* ==========================================
   9. CORE SERVICES (Split pane / accordion)
   ========================================== */
.services-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  min-height: 520px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-tab {
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  outline: none;
}

.service-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: var(--transition-fast);
}

.service-tab.active {
  background-color: var(--bg-light-charcoal);
  border-color: var(--border-gold);
  box-shadow: var(--gold-glow);
}

.service-tab.active::before {
  background-color: var(--gold-primary);
}

.service-tab-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.service-tab-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.service-tab-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light-grey);
}

.service-tab.active .service-tab-text {
  color: var(--text-white);
}

.service-tab-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: var(--transition-smooth);
}

.service-tab.active .service-tab-arrow {
  stroke: var(--gold-primary);
  transform: translateX(5px);
}

/* Services Display Panel */
.services-display {
  background-color: var(--bg-light-charcoal);
  border: 1px solid var(--border-color);
  padding: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.services-display::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.service-content-pane {
  display: none;
  animation: fadeInPane 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.service-content-pane.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.service-display-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-display-icon {
  width: 48px;
  height: 48px;
  stroke: var(--gold-primary);
  stroke-width: 1.5;
  background: rgba(212, 175, 55, 0.05);
  padding: 0.75rem;
  border: 1px solid var(--border-gold);
}

.service-display-title {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 0;
}

.service-display-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-grey);
  margin-bottom: 2.5rem;
}

.service-display-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-list-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-primary);
  stroke-width: 2.5;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Mobile service accordion (hidden by default) */
.services-mobile-accordion {
  display: none;
}

/* ==========================================
   10. TECHNICAL EXPERTISE & APPROACH
   ========================================== */
.expertise-top {
  margin-bottom: 4rem;
}

.expertise-approach {
  border-left: 3px solid var(--gold-primary);
  padding-left: 2rem;
}

.expertise-approach h3 {
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.focus-item {
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.focus-item:hover {
  border-color: var(--border-gold);
  background-color: var(--bg-light-charcoal);
}

.focus-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
}

.focus-text {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-white);
  font-size: 0.95rem;
}

/* Capabilities list tags */
.capabilities-wrap {
  margin-top: 5rem;
}

.capabilities-title {
  text-transform: uppercase;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.capabilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.capability-tag {
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light-grey);
  transition: var(--transition-smooth);
  position: relative;
}

.capability-tag:hover {
  border-color: var(--gold-primary);
  color: var(--text-white);
  background-color: rgba(212, 175, 55, 0.05);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

/* ==========================================
   11. HEALTH, SAFETY & QUALITY
   ========================================== */
.hsqe-container {
  background-image: linear-gradient(rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.95)), 
                    url('assets/images/WhatsApp Image 2026-06-02 at 15.40.49 (4).jpeg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-gold);
  padding: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hsqe-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-gradient);
}

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

.hsqe-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: center;
}

.hsqe-statement h3 {
  font-size: 2.25rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hsqe-statement p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.hsqe-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hsqe-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hsqe-badge {
  background: var(--gold-gradient);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hsqe-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  stroke-width: 3;
}

.hsqe-pillar-text h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hsqe-pillar-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ==========================================
   12. INDUSTRIES WE SERVE
   ========================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.industry-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, rgba(212, 175, 55, 0.05), transparent);
  transition: var(--transition-smooth);
  z-index: 1;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.industry-card:hover::before {
  height: 100%;
}

.industry-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light-charcoal);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.industry-card:hover .industry-icon-box {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
}

.industry-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-primary);
  fill: none;
}

.industry-card h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

/* ==========================================
   13. GLOBAL FOOTPRINT
   ========================================== */
.map-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

/* Interactive SVG World Map Styling */
.map-visual {
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
}

.map-svg {
  width: 100%;
  height: auto;
  fill: #222222; /* Countries color */
}

.map-svg path {
  transition: fill 0.3s ease;
}

.map-svg path:hover {
  fill: #333333;
}

/* Glowing Pulsing Map Marker */
.map-pin {
  cursor: pointer;
}

.map-pin-circle {
  fill: var(--gold-primary);
  stroke: var(--gold-light);
  stroke-width: 1px;
}

.map-pin-pulse {
  fill: var(--gold-primary);
  opacity: 0.4;
  transform-origin: center;
  animation: pulsePin 2s infinite ease-out;
}

@keyframes pulsePin {
  0% {
    r: 4px;
    opacity: 0.6;
  }
  100% {
    r: 16px;
    opacity: 0;
  }
}

/* Tooltip style for interactive map */
.map-tooltip {
  position: absolute;
  background-color: var(--bg-light-charcoal);
  border: 1px solid var(--gold-primary);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-white);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  max-width: 250px;
}

.map-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip h5 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.map-tooltip p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light-grey);
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.delivery-item {
  background-color: var(--bg-dark-charcoal);
  border-left: 3px solid var(--border-color);
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.delivery-item.active, .delivery-item:hover {
  border-left-color: var(--gold-primary);
  background-color: var(--bg-light-charcoal);
}

.delivery-item h4 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.delivery-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.delivery-item.active h4 {
  color: var(--gold-primary);
}

/* ==========================================
   14. CONTACT & FOOTER
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--bg-dark-charcoal);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.contact-detail-item:hover .contact-icon-box {
  border-color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
  fill: none;
}

.contact-text h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.contact-text p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-white);
}

/* B2B Contact Section Frame Card */
.contact-section-card {
  background-color: #131416; /* Warm gold-charcoal framed color background */
  border: 1px solid var(--gold-primary); /* Gold border wrapping all contact components */
  padding: 4.5rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.contact-section-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.25);
}

.contact-section-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-top: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
}

.contact-section-card::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-bottom: 3px solid var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
}

.contact-form-inner {
  background: transparent;
  padding: 0;
}

.form-group {
  position: relative;
  margin-bottom: 2.25rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: var(--transition-smooth);
}

.form-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-input:focus {
  border-bottom-color: var(--gold-primary);
  box-shadow: 0 1px 0 var(--gold-primary);
}

textarea.form-input {
  min-height: 120px;
  resize: none;
}

/* Footer Section */
.footer {
  background-color: var(--bg-slate-footer);
  border-top: 1px solid var(--border-gold);
  padding: 5rem 0 2.5rem;
  position: relative;
}

/* 3-column grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-gold);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.footer-linkedin-btn:hover {
  color: #0A66C2;
  border-color: #0A66C2;
  background: rgba(10, 102, 194, 0.06);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-nav-list a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--gold-primary);
}

.footer-nav-list a:hover::before {
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold-primary);
}

.footer-contact-list a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* Success Modal / Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-light-charcoal);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  stroke: var(--gold-primary);
  stroke-width: 2.5;
}

.toast-text h4 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.toast-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Geometric section divider styles for higher organization */
.section-divider-geom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  opacity: 0.75;
  padding: 1.5rem 0;
}
.section-divider-geom .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.section-divider-geom .diamond {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-primary);
}

/* ==========================================
   15. ANIMATIONS ON SCROLL
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for children elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================
   16. RESPONSIVE DESIGN (Media Queries)
   ========================================== */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .services-display {
    min-height: 400px;
  }
  .hsqe-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .map-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Mobile Navigation Hamburger Menu */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--bg-dark-charcoal);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 1005;
    transition: var(--transition-smooth);
    padding: 3rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .header-cta {
    display: none; /* Hide standard CTA in mobile header */
  }
  
  .nav-menu .btn {
    width: 100%;
    margin-top: 1.5rem;
  }
  
  /* Hamburger transform when menu is active */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Services dynamic display behavior changes on mobile */
  .services-split {
    display: none; /* Hide complex desktop split-pane */
  }
  
  .services-mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-accordion-item {
    background-color: var(--bg-dark-charcoal);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
  }
  
  .mobile-accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
  }
  
  .mobile-accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .mobile-accordion-num {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-primary);
    font-weight: 600;
  }
  
  .mobile-accordion-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
  }
  
  .mobile-accordion-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    transition: var(--transition-smooth);
  }
  
  .mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.5rem;
  }
  
  .mobile-accordion-item.active {
    border-color: var(--border-gold);
  }
  
  .mobile-accordion-item.active .mobile-accordion-arrow {
    transform: rotate(180deg);
    stroke: var(--gold-primary);
  }
  
  .mobile-accordion-inner {
    padding-bottom: 2rem;
  }
  
  .mobile-accordion-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .mobile-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  
  .focus-areas-grid {
    grid-template-columns: 1fr;
  }
  
  .hsqe-container {
    padding: 2.5rem 1.5rem;
  }
  
  .hsqe-statement h3 {
    font-size: 1.75rem;
  }
  
  .map-visual {
    padding: 1rem;
  }
  
  .contact-section-card {
    padding: 2.5rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .grid-3, .grid-4, .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LIGHT MODE OVERRIDES
   ========================================== */
body.light-mode {
  --bg-matte-black: #F0EFEB;
  --bg-dark-charcoal: #E5E4DF;
  --bg-light-charcoal: #D8D7D2;
  --bg-slate-footer: #2A2A2A;
  --text-white: #0D0D0D;
  --text-light-grey: #1A1A1A;
  --text-muted: #444444;
  --text-dark: #0D0D0D;
  --border-color: #C5C5BE;
  --border-gold: rgba(170, 130, 10, 0.45);
  background-color: var(--bg-matte-black);
  color: var(--text-light-grey);
}

/* Header in light mode */
body.light-mode .header {
  background: rgba(240, 239, 235, 0.95);
}

body.light-mode .header.scrolled {
  background-color: rgba(240, 239, 235, 0.97);
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Nav links in light mode */
body.light-mode .nav-link {
  color: #1A1A1A;
}

body.light-mode .nav-link:hover {
  color: var(--gold-dark);
}

body.light-mode .nav-dropdown-menu {
  background: #E5E4DF;
  border-color: var(--border-color);
}

body.light-mode .nav-dropdown-item {
  color: #1A1A1A;
  border-bottom-color: var(--border-color);
}

body.light-mode .nav-dropdown-item:hover {
  color: var(--gold-dark);
}

body.light-mode .theme-toggle {
  border-color: var(--border-color);
  color: var(--gold-dark);
}

/* Hero stays dark - images are dark themed */
body.light-mode .hero {
  background-color: #0F0F0F;
}

body.light-mode .hero-bg {
  opacity: 0.6;
}

/* Headings in light mode */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #0D0D0D;
}

/* Hero headings stay white since hero is dark */
body.light-mode .hero h1,
body.light-mode .hero h2,
body.light-mode .hero p {
  color: #FFFFFF;
}

body.light-mode .hero p {
  color: rgba(255,255,255,0.8);
}

/* Section alt background */
body.light-mode .section-alt {
  background-color: var(--bg-dark-charcoal);
}

/* Cards */
body.light-mode .vision-card,
body.light-mode .why-card,
body.light-mode .focus-item,
body.light-mode .gallery-img-card,
body.light-mode .service-content-pane,
body.light-mode .contact-section-card,
body.light-mode .project-card,
body.light-mode .expert-card {
  background-color: var(--bg-light-charcoal);
  border-color: var(--border-color);
}

/* Ensure card text is readable */
body.light-mode .why-card h4,
body.light-mode .vision-card h3,
body.light-mode .project-card h4,
body.light-mode .service-tab,
body.light-mode .stat-num {
  color: #0D0D0D;
}

body.light-mode .why-card p,
body.light-mode .vision-card p,
body.light-mode .project-card p,
body.light-mode .about-desc {
  color: #444444;
}

/* Project card image overlay: keep caption readable */
body.light-mode .project-card-body {
  background: var(--bg-light-charcoal);
}

body.light-mode .project-card-body h4 {
  color: #0D0D0D;
}

body.light-mode .project-card-body p {
  color: #555555;
}

/* Section backgrounds */
body.light-mode .section {
  background-color: var(--bg-matte-black);
}

/* Body text paragraphs */
body.light-mode p {
  color: #444444;
}

/* Muted text */
body.light-mode .badge-gold {
  color: var(--gold-dark);
}

/* Footer stays dark even in light mode for contrast */
body.light-mode .footer {
  background-color: #1E1E1E;
  border-top-color: var(--border-gold);
}

body.light-mode .footer-col-title {
  color: var(--gold-primary);
}

body.light-mode .footer-tagline,
body.light-mode .footer-nav-list a,
body.light-mode .footer-contact-list li,
body.light-mode .footer-contact-list a,
body.light-mode .footer-bottom {
  color: #AAAAAA;
}

body.light-mode .footer-nav-list a:hover,
body.light-mode .footer-contact-list a:hover {
  color: var(--gold-primary);
}

body.light-mode .footer-bottom {
  border-top-color: rgba(255,255,255,0.08);
}

body.light-mode ::-webkit-scrollbar-track { background: var(--bg-dark-charcoal); }
body.light-mode ::-webkit-scrollbar-thumb { background: #BBBBBB; }

/* Keep text readable inside elements that remain dark/overlay/popup in light mode */
body.light-mode .gallery-overlay h4 {
  color: var(--gold-primary) !important;
}
body.light-mode .gallery-overlay p {
  color: var(--text-light-grey) !important;
}
body.light-mode .gallery-caption h5 {
  color: var(--text-white) !important;
}
body.light-mode .gallery-caption p {
  color: var(--gold-primary) !important;
}
body.light-mode .lightbox-caption {
  color: var(--text-white) !important;
}
body.light-mode .map-popup h5 {
  color: var(--text-white) !important;
}
body.light-mode .map-popup p {
  color: var(--text-muted) !important;
}
body.light-mode .map-popup p strong {
  color: var(--text-light-grey) !important;
}
body.light-mode .hero-pillars {
  color: #E5E5E5 !important;
}
body.light-mode .nav-dropdown-item svg {
  color: var(--gold-dark);
}
body.light-mode .nav-dropdown-item.active {
  color: var(--gold-dark) !important;
}

/* ==========================================
   THEME TOGGLE BUTTON
   ========================================== */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-primary);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: rotate(20deg);
}

/* Sun icon hidden in light mode, moon hidden in dark mode */
body.light-mode .icon-sun { display: none; }
body.light-mode .icon-moon { display: block; }
.icon-moon { display: none; }
.icon-sun { display: block; }

/* ==========================================
   NAV DROPDOWN MENU
   ========================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  transform: translateX(-50%) translateY(-6px);
  z-index: 200;
}

/* Transparent bridge to prevent mouse-out hover loss over the 1rem gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-grey);
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

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

.nav-dropdown-item.active {
  color: var(--gold-primary);
}

.nav-dropdown-item svg { color: var(--gold-primary); flex-shrink: 0; }

.nav-dropdown-item:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
}

/* LinkedIn nav icon */
.nav-social-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-social-icon:hover {
  color: #0A66C2;
  transform: translateY(-2px);
}

/* ==========================================
   WORLD MAP + INTERACTIVE PINS
   ========================================== */
.world-map-wrap {
  position: relative;
  overflow: visible;
  margin-bottom: 3rem;
  background: var(--bg-dark-charcoal);
  border-color: var(--border-gold);
}

.world-map-img-container {
  position: relative;
  width: 100%;
  line-height: 0;
}

.world-map-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  border-radius: 0;
}

/* Pin wrapper (absolutely positioned over the image) */
.map-pin-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.map-pin {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold-primary);
  border-radius: 50%;
  border: 2px solid var(--text-white);
  z-index: 2;
  transition: var(--transition-fast);
}

.map-pin--hq .map-pin-dot {
  background: #ffffff;
  border-color: var(--gold-primary);
  width: 13px;
  height: 13px;
}

.map-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  animation: mapPulse 2s ease-out infinite;
}

.map-pin--hq .map-pin-pulse {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes mapPulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}

/* Pin popup */
.map-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid var(--gold-primary);
  padding: 1rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.map-popup--left {
  left: auto;
  right: calc(100% + 14px);
  bottom: 50%;
  transform: translateY(50%) translateX(8px);
}

.map-pin-wrap:hover .map-popup,
.map-pin-wrap.active .map-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.map-pin-wrap:hover .map-popup.map-popup--left,
.map-pin-wrap.active .map-popup.map-popup--left {
  transform: translateY(50%) translateX(0);
}

.map-popup-flag {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.map-popup h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.map-popup-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.65rem;
}

.map-popup p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.map-popup p strong {
  color: var(--text-light-grey);
}

/* Map legend */
.map-legend {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid rgba(212,175,55,0.4);
  flex-shrink: 0;
}

.map-legend-dot--hq {
  background: #fff;
  border-color: var(--gold-primary);
}

.map-legend-hint {
  margin-left: auto;
  font-style: italic;
  font-size: 0.75rem;
}

/* ==========================================
   PROJECT CARDS (below map)
   ========================================== */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--bg-dark-charcoal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .project-card-img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1);
}

.project-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-flag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.project-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.project-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ptag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.55rem;
  background: rgba(212,175,55,0.04);
}

/* ==========================================
   EXPERTS PAGE STYLES
   ========================================== */
.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  padding-top: calc(var(--header-height) + 3rem);
  background: var(--bg-dark-charcoal);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

/* Expert Profile Card */
.expert-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  background: var(--bg-dark-charcoal);
  border: 1px solid var(--border-gold);
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.expert-photo-wrap {
  position: relative;
}

.expert-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}

.expert-card:hover .expert-photo {
  filter: grayscale(0%);
}

.expert-photo-frame {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
  pointer-events: none;
}

.expert-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expert-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0;
}

.expert-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-top: 0.35rem;
}

.expert-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light-grey);
  border-left: 2px solid var(--border-gold);
  padding-left: 1.5rem;
}

.expert-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.expert-meta-item {
  background: var(--bg-light-charcoal);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.expert-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
}

.expert-meta-value {
  font-size: 0.9rem;
  color: var(--text-light-grey);
  font-weight: 500;
}

.expert-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.country-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(212,175,55,0.07);
  border: 1px solid var(--border-gold);
  color: var(--text-light-grey);
}

.expert-specializations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spec-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  background: rgba(212,175,55,0.04);
}

.expert-linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Project portfolio section on experts page */
.projects-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.expert-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 2rem 1rem 0.85rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h5 {
  font-size: 0.9rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.gallery-caption p {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border: 1px solid var(--border-gold);
}

.lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: var(--transition-fast);
  z-index: 9001;
}

.lightbox-close:hover {
  background: rgba(212,175,55,0.25);
  transform: rotate(90deg);
}

/* ==========================================
   FOOTER LINKEDIN LINK
   ========================================== */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-linkedin:hover {
  color: #0A66C2;
}

/* ==========================================
   SHARED PAGE NAV (experts.html / gallery.html)
   ========================================== */
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.page-back-link:hover {
  color: var(--gold-primary);
}

/* ==========================================
   RESPONSIVE — NEW SECTIONS
   ========================================== */
@media (max-width: 1024px) {
  .project-cards-grid { grid-template-columns: 1fr 1fr; }
  .expert-card { grid-template-columns: 220px 1fr; gap: 2rem; }
  .expert-projects-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  .project-cards-grid { grid-template-columns: 1fr; }
  .expert-card { grid-template-columns: 1fr; }
  .expert-photo { aspect-ratio: 4/3; }
  .expert-projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .map-popup { min-width: 200px; font-size: 0.75rem; }
  .nav-dropdown-menu { left: 0; transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu { transform: none; }
  .expert-meta-grid { grid-template-columns: 1fr; }
  .world-map-img-container { overflow-x: auto; }
}
