/* ============================================================
   AMETAL AFRICA - Main Stylesheet
   Industrial EPC Contractor Website
   ============================================================
   TABLE OF CONTENTS:
   1.  CSS Custom Properties (Variables)
   2.  Reset & Base Styles
   3.  Typography
   4.  Utility Classes
   5.  Animations & Keyframes
   6.  Page Loading Animation
   7.  Page Transitions
   8.  Header & Navigation
   9.  Mobile Hamburger Menu
   10. Hero Section
   11. Section Labels
   12. About / Who We Are Section
   13. Stats Section
   14. Sector Tabs Section
   15. Project Showcase Cards
   16. Africa Map Section
   17. EPC Process Steps
   18. Newsletter / CTA Section
   19. Blog Page Grid
   20. Footer
   21. Buttons
   22. Forms
   23. Decorative Elements (Geometric Accents)
   24. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================ */

:root {
  /* --- Colors --- */
  --color-primary:        #2B3A4E;
  --color-primary-rgb:    43, 58, 78;
  --color-accent:         #D4652E;
  --color-accent-rgb:     212, 101, 46;
  --color-dark-bg:        #1E2A38;
  --color-dark-bg-rgb:    30, 42, 56;
  --color-light-gray:     #F5F5F5;
  --color-white:          #FFFFFF;
  --color-text-dark:      #1A1A1A;
  --color-text-light:     #6B7280;
  --color-border:         #E5E7EB;
  --color-overlay:        rgba(30, 42, 56, 0.7);

  /* --- Typography --- */
  --font-heading:         'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Fluid Typography Sizes --- */
  --text-xs:              clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:              clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base:            clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg:              clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl:              clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:             clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl:             clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl:             clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl:             clamp(2.75rem, 2rem + 3.75vw, 4.5rem);
  --text-stat:            clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* --- Spacing --- */
  --space-xs:             0.5rem;
  --space-sm:             1rem;
  --space-md:             1.5rem;
  --space-lg:             2rem;
  --space-xl:             3rem;
  --space-2xl:            4rem;
  --space-3xl:            6rem;
  --space-section:        clamp(4rem, 3rem + 5vw, 8rem);

  /* --- Layout --- */
  --container-max:        1280px;
  --container-narrow:     960px;
  --container-wide:       1440px;
  --header-height:        80px;

  /* --- Effects --- */
  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            12px;
  --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg:            0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lift:          0 12px 40px rgba(0, 0, 0, 0.15);
  --transition-fast:      150ms ease;
  --transition-base:      300ms ease;
  --transition-slow:      500ms ease;
  --transition-smooth:    500ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-text-dark);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-dark);
}

h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  line-height: 1.15;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-light);
}

strong {
  font-weight: 600;
}


/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--gray {
  background-color: var(--color-light-gray);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-white  { color: var(--color-white); }
.text-accent { color: var(--color-accent); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   5. ANIMATIONS & KEYFRAMES
   ============================================================ */

/* --- Fade In Up --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Fade In Left --- */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Fade In Right --- */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Fade In --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Scale In --- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Slide Down (for header) --- */
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* --- Pulse (for map dots) --- */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.8); opacity: 0.4; }
  100% { transform: scale(1);   opacity: 1; }
}

/* --- Count Up (stat numbers) --- */
@keyframes countFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Spin (loading) --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Progress bar width (loading) --- */
@keyframes loadProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- Line grow (section label) --- */
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 40px; }
}

/* --- Hero text reveal --- */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

/* --- Scroll-triggered animation classes (applied via JS) --- */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  opacity: 1;
}

.fade-in-up.is-visible {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left.is-visible {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right.is-visible {
  animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in.is-visible {
  animation: fadeIn 0.7s ease forwards;
}

.scale-in.is-visible {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered children delays */
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 500ms; }


/* ============================================================
   6. PAGE LOADING ANIMATION
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--color-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.page-loader__logo span {
  color: var(--color-accent);
}

.page-loader__bar {
  width: 200px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.page-loader__bar-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
  animation: loadProgress 1.5s ease forwards;
}


/* ============================================================
   7. PAGE TRANSITIONS
   ============================================================ */

.page-transition {
  animation: fadeIn 0.4s ease;
}

.page-transition-exit {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ============================================================
   8. HEADER & NAVIGATION
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

/* Transparent state (on hero) */
.header--transparent {
  background-color: transparent;
}

/* Solid state (on scroll) */
.header--solid,
.header.is-scrolled,
.header.scrolled,
.header--transparent.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Logo --- */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: 1001;
}

.header__logo-img {
  height: 56px;
  width: auto;
  object-fit: cover;
  object-position: center top;
  clip-path: inset(2% 8% 35% 8%);
  margin-bottom: -20px;
  margin-top: -2px;
  margin-right: -2px;
  transition: filter 0.3s ease;
}

.header__logo-text {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-shadow: none;
  font-weight: 600;
  line-height: 1;
}

.header__logo-text span {
  color: var(--color-accent);
}

/* --- Desktop Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

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

/* --- Dropdown (if needed) --- */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  transition: background-color var(--transition-fast),
              color var(--transition-fast);
}

.nav__dropdown-link:hover {
  background-color: var(--color-light-gray);
  color: var(--color-accent);
}

/* --- Header CTA --- */
.header__cta {
  margin-left: var(--space-sm);
}


/* ============================================================
   9. MOBILE HAMBURGER MENU
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger__line + .hamburger__line {
  margin-top: 6px;
}

/* Open state */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--color-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base),
              color var(--transition-fast);
}

.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the links */
.mobile-nav.is-open .mobile-nav__link:nth-child(1) { transition-delay: 100ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(2) { transition-delay: 150ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(3) { transition-delay: 200ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(4) { transition-delay: 250ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(5) { transition-delay: 300ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(6) { transition-delay: 350ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(7) { transition-delay: 400ms; }

.mobile-nav__link:hover {
  color: var(--color-accent);
}

.mobile-nav__cta {
  margin-top: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  transition-delay: 450ms;
}

.mobile-nav.is-open .mobile-nav__cta {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   10. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-dark-bg);
}

.hero--medium {
  min-height: 70vh;
}

.hero--small {
  min-height: 50vh;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.15) 40%
    ),
    linear-gradient(
      135deg,
      rgba(var(--color-dark-bg-rgb), 0.85) 0%,
      rgba(var(--color-dark-bg-rgb), 0.6) 50%,
      rgba(var(--color-dark-bg-rgb), 0.75) 100%
    );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-white);
  background: rgba(var(--color-accent-rgb), 0.2);
  border: 1px solid rgba(var(--color-accent-rgb), 0.4);
  padding: 0.5em 1.2em;
  border-radius: 2px;
  margin-bottom: var(--space-lg);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--color-white);
  max-width: 800px;
  margin-bottom: var(--space-md);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
  text-shadow: none;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
  text-shadow: none;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s backwards;
}

/* Hero scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease 1.5s backwards;
}

.hero__scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: pulse 2s ease-in-out infinite;
}


/* ============================================================
   11. SECTION LABELS
   ============================================================ */

/* Pattern: "── SECTION NAME" (horizontal line + uppercase text) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Dark section variant */
.section--dark .section-label {
  color: var(--color-accent);
}

.section__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-shadow: none;
}

.section__description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.8;
}

.section--dark .section__description {
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   12. ABOUT / WHO WE ARE SECTION
   ============================================================ */

.about {
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__content {
  max-width: 540px;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  overflow: hidden;
}

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

/* Decorative accent block removed — raw industrial look */
.about__image-wrapper::before {
  display: none;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.about__feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.about__feature-text h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
  color: var(--color-text-dark);
}

.about__feature-text p {
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Text-first metrics — no icons */
.about__metrics {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.about__metric {
  display: flex;
  flex-direction: column;
}

.about__metric strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about__metric span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 600;
}


/* ============================================================
   13. STATS SECTION
   ============================================================ */

.stats {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stats__item {
  padding: var(--space-xl) var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Divider between stat items */
.stats__item + .stats__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stats__number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  line-height: 1;
}

.stats__number {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  color: var(--color-accent);
  line-height: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats__number.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats__plus {
  font-family: var(--font-heading);
  font-size: calc(var(--text-stat) * 0.7);
  color: var(--color-accent);
  opacity: 0.8;
  line-height: 1;
}

.stats__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: 0.15rem;
}

.stats__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Bottom accent line under each stat */
.stats__item::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: 0.75rem;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}

.stats__item.is-visible::after {
  opacity: 1;
  transform: scaleX(1);
}


/* ============================================================
   14. SECTOR TABS SECTION
   ============================================================ */

.sectors {
  position: relative;
}

.sectors__header {
  margin-bottom: var(--space-2xl);
}

/* --- Tab Navigation --- */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 3px solid var(--color-border);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.tabs__button {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: calc(var(--text-sm) + 1px);
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: color var(--transition-fast),
              border-color var(--transition-fast);
  white-space: nowrap;
}

.tabs__button:hover {
  color: var(--color-text-dark);
}

.tabs__button--active {
  color: var(--color-text-dark);
  font-weight: 700;
  border-bottom-color: var(--color-accent);
}

/* --- Tab Panels --- */
.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel--active {
  display: block;
}

.tab-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.tab-panel__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tab-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tab-panel__image:hover img {
  transform: scale(1.03);
}

.tab-panel__content h3 {
  margin-bottom: var(--space-sm);
}

.tab-panel__content p {
  margin-bottom: var(--space-md);
}

.tab-panel__list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tab-panel__list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.tab-panel__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}


/* ============================================================
   15. PROJECT SHOWCASE CARDS
   ============================================================ */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.project-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img.gallery-active,
.project-card:hover .project-card__image > img {
  transform: scale(1.05);
}

/* Category tag overlaid on image */
.project-card__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
}

.project-card__body {
  padding: var(--space-md);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.project-card:hover .project-card__title {
  color: var(--color-accent);
}

.project-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.project-card__location svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

/* Featured project (larger card) */
.project-card--featured {
  grid-column: span 2;
}

.project-card--featured .project-card__image {
  aspect-ratio: 2 / 1;
}

/* Impact line under title */
.project-card__impact {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

/* Homepage project filter tabs */
.project-filters--home {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.project-filter-tab {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.project-filter-tab:hover {
  color: var(--color-accent);
}

.project-filter-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 700;
}

.project-filter-tab::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.project-filter-tab:hover::after {
  width: 100%;
}

.project-filter-tab.active::after {
  width: 100%;
}


/* ============================================================
   16. GLOBAL PRESENCE / MAP SECTION
   ============================================================ */

.map-section {
  background-color: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
}

.map-section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.map-section__header h2 {
  color: var(--color-white);
}

.map-section__header p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  font-size: var(--text-base);
}

/* SVG Map */
.map-section__map {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.map-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
}

.map-svg__country {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.5;
  transition: fill 0.3s ease;
}

.map-svg__country:hover {
  fill: rgba(255, 255, 255, 0.12);
}

.map-svg__highlight {
  fill: rgba(var(--color-accent-rgb), 0.35);
  stroke: var(--color-accent);
  stroke-width: 1;
  transition: fill 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(var(--color-accent-rgb), 0.3));
}

.map-svg__highlight:hover {
  fill: rgba(var(--color-accent-rgb), 0.5);
}

.map-svg__highlight--orange {
  fill: rgba(255, 140, 0, 0.4);
  stroke: #FF8C00;
  filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.3));
}

.map-svg__highlight--orange:hover {
  fill: rgba(255, 140, 0, 0.6);
}

.map-svg__link {
  cursor: pointer;
}

a.map-country {
  text-decoration: none;
  color: inherit;
  display: block;
}

.map-svg__line {
  stroke: var(--color-accent);
  stroke-width: 0.8;
  stroke-dasharray: 4 3;
  opacity: 0.4;
}

.map-svg__dot {
  fill: var(--color-accent);
}

.map-svg__dot--hq {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 6px rgba(var(--color-accent-rgb), 0.6));
}

.map-svg__dot-pulse {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  opacity: 0;
  animation: mapPulse 2.5s ease-out infinite;
}

@keyframes mapPulse {
  0% { r: 8; opacity: 0.6; }
  100% { r: 22; opacity: 0; }
}

.map-svg__label {
  fill: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.map-svg__label--left {
  text-anchor: end;
}

.map-svg__sublabel {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-family: inherit;
}

.map-svg__sublabel--left {
  text-anchor: end;
}

/* Country Cards */
.map-section__countries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.map-country {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
}

.map-country:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
}

.map-country__icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--color-accent-rgb), 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.2rem;
  color: var(--color-accent);
}

.map-country__name {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.map-country__role {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  margin: 0;
}


/* ============================================================
   17. EPC PROCESS STEPS
   ============================================================ */

.process {
  position: relative;
  overflow: hidden;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  position: relative;
  margin-top: var(--space-2xl);
}

/* Connecting line removed — using numbered steps */
.process__steps::before {
  display: none;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--space-sm);
}

.process__step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.process__step:hover .process__step-number {
  opacity: 0.8;
}

.process__step-icon {
  display: none;
}

.process__step-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.process__step-desc {
  font-size: var(--text-xs);
  color: var(--color-text-dark);
  max-width: 200px;
  line-height: 1.6;
}

/* Arrow between steps */
.process__arrow {
  display: none;
}


/* ============================================================
   18. NEWSLETTER / CTA SECTION
   ============================================================ */

.cta-section {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta-section__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-xl);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form__input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast),
              background-color var(--transition-fast);
}

.newsletter-form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form__input:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form__button {
  padding: 14px 28px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form__button:hover {
  background-color: #c05828;
  transform: translateY(-1px);
}

/* Decorative triangle accent */
.cta-section__accent {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background-color: rgba(var(--color-accent-rgb), 0.08);
  transform: rotate(45deg);
}


/* ============================================================
   19. BLOG PAGE GRID
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.blog-card__category {
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card__date {
  color: var(--color-text-light);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--color-accent);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured blog post (large, full-width) */
.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card--featured .blog-card__image {
  aspect-ratio: auto;
  min-height: 300px;
}

.blog-card--featured .blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
}

.blog-card--featured .blog-card__title {
  font-size: var(--text-2xl);
}

.blog-card--featured .blog-card__excerpt {
  -webkit-line-clamp: 5;
}


/* ============================================================
   20. FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.7);
}

.footer__main {
  padding: var(--space-3xl) 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

/* Footer brand column */
.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 36px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
}

.footer__logo-text span {
  color: var(--color-accent);
}

.footer__description {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.6);
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer nav columns */
.footer__column h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast),
              padding-left var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Footer contact info */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer__bottom {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-accent);
}


/* ============================================================
   21. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1;
  white-space: nowrap;
}

/* Primary button: filled orange */
.btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #c05828;
  border-color: #c05828;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Secondary button: outlined dark */
.btn--secondary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Secondary on dark backgrounds */
.btn--secondary-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn--secondary-light:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Small button variant */
.btn--sm {
  padding: 10px 24px;
  font-size: var(--text-xs);
}

/* Large button variant */
.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

/* Button icon */
.btn svg {
  width: 16px;
  height: 16px;
}

.btn--icon-right svg {
  order: 1;
}

/* Text link style button */
.btn--link {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
  position: relative;
}

.btn--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

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


/* ============================================================
   22. FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}


/* ============================================================
   23. DECORATIVE ELEMENTS (GEOMETRIC ACCENTS)
   ============================================================ */

/* Triangle accent overlays for section decoration */
.accent-triangle {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.accent-triangle--top-right {
  top: 0;
  right: 0;
  border-top: 200px solid rgba(var(--color-accent-rgb), 0.06);
  border-left: 200px solid transparent;
}

.accent-triangle--bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 200px solid rgba(var(--color-accent-rgb), 0.06);
  border-right: 200px solid transparent;
}

.accent-triangle--bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 300px solid rgba(var(--color-primary-rgb), 0.05);
  border-left: 300px solid transparent;
}

/* Diagonal line accent */
.accent-line {
  position: absolute;
  width: 150px;
  height: 2px;
  background-color: rgba(var(--color-accent-rgb), 0.2);
  transform: rotate(-45deg);
  pointer-events: none;
}

/* Dot pattern decoration */
.accent-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(
    circle,
    rgba(var(--color-accent-rgb), 0.15) 1.5px,
    transparent 1.5px
  );
  background-size: 16px 16px;
  pointer-events: none;
}


/* ============================================================
   PROJECT CARD IMAGE GALLERY / SLIDESHOW
   ============================================================ */

.project-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card__gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-card__gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card__gallery img.gallery-active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  padding: 0;
  line-height: 1;
}

.project-card:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.gallery-nav--prev {
  left: 8px;
}

.gallery-nav--next {
  right: 8px;
}

/* Dot indicators */
.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .gallery-dots {
  opacity: 1;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Image counter badge */
.gallery-count {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 3;
  pointer-events: none;
}


/* ============================================================
   25. REFERENCES / OUR CLIENTS SECTION
   ============================================================ */

.references__header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.references__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  text-shadow: none;
}

.references__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Reference tags (client names) */
.references__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 1100px;
  margin: 0 auto;
}

.reference-tag {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.reference-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

/* ============================================================
   26. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- 1200px (Large desktops) --- */
@media (max-width: 1200px) {
  .footer__main {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__column:last-child {
    grid-column: 1 / -1;
  }

  .process__steps::before {
    display: none;
  }
}

/* --- 992px (Tablets landscape / Small desktops) --- */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__content {
    max-width: 100%;
  }

  .about__image-wrapper {
    order: -1;
  }

  .tab-panel__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card--featured {
    grid-column: span 2;
  }

  .map-section__countries {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    row-gap: var(--space-2xl);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(3)::before {
    display: none;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card--featured {
    grid-column: 1 / -1;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* --- 768px (Tablets portrait) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  /* Hero adjustments */
  .hero {
    min-height: 80vh;
  }

  .hero__title {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__scroll-indicator {
    display: none;
  }

  /* Tabs scroll horizontally */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs__button {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  /* Project filter tabs */
  .project-filter-tab {
    padding: 8px 16px;
    font-size: var(--text-xs);
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: span 1;
  }

  .project-card--featured .project-card__image {
    aspect-ratio: 16 / 10;
  }

  /* Process steps */
  .process__steps {
    grid-template-columns: 1fr 1fr;
  }

  .process__step-number {
    font-size: 2rem;
  }

  /* Stats */
  .stats__item + .stats__item::before {
    display: none;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--featured {
    grid-template-columns: 1fr;
  }

  .blog-card--featured .blog-card__image {
    min-height: 200px;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Grid utilities */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* References */
  .references__tier--primary {
    font-size: 0.9rem;
  }

  .references__tier--secondary {
    font-size: 0.8rem;
  }

  .references__tier--tertiary {
    font-size: 0.75rem;
  }
}

/* --- 576px (Mobile) --- */
@media (max-width: 576px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero {
    min-height: 100svh;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* About features single column */
  .about__features {
    grid-template-columns: 1fr;
  }

  /* Stats single column */
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats__item {
    padding: var(--space-md) var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stats__item:last-child {
    border-bottom: none;
  }

  /* Process steps single column */
  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process__step {
    flex-direction: row;
    text-align: left;
    gap: var(--space-md);
  }

  .process__step-number {
    font-size: 1.75rem;
    min-width: auto;
  }

  /* Map countries single column on mobile */
  .map-section__countries {
    grid-template-columns: 1fr;
  }

  /* References */
  .references__heading {
    font-size: var(--text-2xl);
  }

  .references__tier--primary {
    font-size: 0.85rem;
  }

  .references__tier--secondary {
    font-size: 0.78rem;
  }

  .references__tier--tertiary {
    font-size: 0.72rem;
  }

  /* Footer legal links */
  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }

  /* Button full width on mobile */
  .btn--block-mobile {
    width: 100%;
    text-align: center;
  }
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
  }
}


/* ============================================================
   25. SUBPAGE STYLES
   ============================================================ */


/* ========== PAGE HERO (Subpages) ========== */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-dark-bg);
    color: var(--color-white);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Top gradient for nav readability (PCL-style) */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    z-index: 2;
    pointer-events: none;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--color-dark-bg-rgb), 0.9) 0%,
        rgba(var(--color-dark-bg-rgb), 0.75) 50%,
        rgba(var(--color-dark-bg-rgb), 0.85) 100%
    );
    z-index: 1;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

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

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-white);
    text-shadow: none;
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ========== ABOUT PAGE ========== */

/* Company Story */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.story__heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    color: var(--color-text-dark);
}

.story__text p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

.story__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Timeline */
.timeline__track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline__track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-border);
    transform: translateY(-50%);
}

.timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.timeline__marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px var(--color-accent);
    margin-bottom: var(--space-sm);
}

.timeline__content {
    margin-top: var(--space-xs);
}

.timeline__year {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-xs);
}

.timeline__desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* EPC Pillars / Approach Cards */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.pillar {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.pillar__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    background-color: rgba(var(--color-accent-rgb), 0.1);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.5rem;
}

.pillar__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.pillar__desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Leadership */
.leadership {
    margin-top: var(--space-2xl);
}

.leader {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.leader__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

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

.leader__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.leader__title {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-md);
}

.leader__bio {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Section Header (used in about, sectors) */
.section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-dark);
}

/* CTA Section (subpages) */
.section--cta {
    background: var(--color-dark-bg);
    color: var(--color-white);
}

.cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta__text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
}


/* ========== SECTORS PAGE ========== */

.sector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.sector--img-right {
    direction: ltr;
}

.sector--img-right .sector__content {
    order: -1;
}

.sector__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sector__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.sector__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.sector__desc {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.sector__list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.sector__list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--text-base);
    color: var(--color-text-dark);
}

.sector__list li i {
    color: var(--color-accent);
    font-size: var(--text-sm);
}

.sector__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-accent);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap var(--transition-base), color var(--transition-fast);
}

.sector__link:hover {
    gap: var(--space-sm);
    color: var(--color-text-dark);
}

.section--white {
    background-color: var(--color-white);
}


/* ========== PROJECTS PAGE ========== */

.project-filters,
.filter-btn {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card__content {
    padding: var(--space-md);
}

.project-card__content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.project-card__location {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.project-card__location i {
    color: var(--color-accent);
    margin-right: 4px;
}

.project-card__year {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-top: var(--space-xs);
}

.project-card__client {
    font-size: var(--text-sm);
    color: var(--color-text-dark);
    margin-top: var(--space-sm);
    font-weight: 500;
    line-height: 1.4;
}

.project-card__client strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Project card tag colors */
.project-card__tag {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    background-color: var(--color-accent);
}

.tag--energy {
    background-color: var(--color-accent) !important;
}

.tag--marine {
    background-color: #2980b9 !important;
}

.tag--industrial {
    background-color: #6B7280 !important;
}

.tag--commercial {
    background-color: #8B5CF6 !important;
}

.tag--humanitarian {
    background-color: #EC4899 !important;
}

.project-category--humanitarian {
    color: #EC4899;
}


/* ========== CONTACT PAGE ========== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
    color: var(--color-text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.form-group label .required {
    color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.btn--full {
    width: 100%;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-info__card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contact-info__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--color-accent-rgb), 0.1);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.125rem;
}

.contact-info__details h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-dark);
    margin-bottom: 2px;
}

.contact-info__details p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.contact-info__details a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-info__details a:hover {
    text-decoration: underline;
}



/* ========== BLOG PAGE ========== */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.blog-filters__btn {
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blog-filters__btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.blog-filters__btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.blog-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__tag {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    background-color: var(--color-accent);
}

.blog-card__content {
    padding: var(--space-md);
}

.blog-card__date {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.blog-card__content h3 a {
    color: inherit;
    transition: color var(--transition-fast);
}

.blog-card__content h3 a:hover {
    color: var(--color-accent);
}

.blog-card__content p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: gap var(--transition-base);
}

.blog-card__link:hover {
    gap: var(--space-sm);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--color-dark-bg);
}

.newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-lg);
}

.newsletter__form {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter__input-group {
    display: flex;
    gap: var(--space-xs);
}

.newsletter__input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter__btn {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition-fast);
}

.newsletter__btn:hover {
    background-color: #c0571f;
}


/* ========== BLOG POST PAGE ========== */

/* Breadcrumb */
.breadcrumb {
    padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-md);
    background: var(--color-light-gray);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.breadcrumb__list li::before {
    content: '/';
    margin-right: var(--space-xs);
    color: var(--color-border);
}

.breadcrumb__list li:first-child::before {
    display: none;
}

.breadcrumb__list a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.breadcrumb__list a:hover {
    color: var(--color-accent);
}

.breadcrumb__list li[aria-current="page"] {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Blog Post */
.blog-post {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.blog-post__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.blog-post__tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    background-color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.blog-post__header h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.blog-post__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.blog-post__featured {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-post__featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Article Content Typography */
.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-text-dark);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.article-content p {
    font-size: var(--text-base);
    line-height: 1.85;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--color-light-gray);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-dark);
    margin: 0;
}

.article-content ul {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-lg);
}

.article-content ul li {
    position: relative;
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* Share Buttons */
.blog-post__share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: var(--space-2xl) auto;
    max-width: 720px;
}

.blog-post__share span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-dark);
}

.blog-post__share-links {
    display: flex;
    gap: var(--space-sm);
}

.blog-post__share-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-light-gray);
    color: var(--color-text-light);
    font-size: 1rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.blog-post__share-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Author Box */
.blog-post__author {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl);
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) auto;
    max-width: 720px;
}

.blog-post__author-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-post__author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post__author-info h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.blog-post__author-info p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Related Articles */
.related-articles {
    background: var(--color-light-gray);
}

.related-articles .section__title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}


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

@media (max-width: 1024px) {
    .story {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .leader {
        grid-template-columns: 180px 1fr;
        gap: var(--space-lg);
    }

    .sector {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .sector--img-right .sector__content {
        order: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline__track {
        flex-direction: column;
        gap: var(--space-lg);
        padding-left: var(--space-xl);
    }

    .timeline__track::before {
        top: 0;
        bottom: 0;
        left: 8px;
        right: auto;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline__item {
        flex-direction: row;
        text-align: left;
        gap: var(--space-md);
    }

    .timeline__marker {
        margin-bottom: 0;
        position: absolute;
        left: calc(-1 * var(--space-xl) + 1px);
    }

    .leader {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader__image {
        max-width: 200px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post__meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-post__share {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post__author {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================================================
   PROJECT DETAIL PAGES
   ============================================================ */

.project-detail {
    padding: var(--space-section) 0;
}

.project-detail__grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
}

.project-detail__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.project-detail__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.info-block {
    padding: var(--space-2xl);
    background: var(--color-light-gray);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
}

.info-block h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.info-block dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-lg) var(--space-2xl);
}

.info-block dt {
    font-weight: 600;
    color: var(--color-primary);
}

.info-block dd {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-block p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-dark);
}

.project-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.project-detail__gallery h3 {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.project-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--color-light-gray);
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-gallery-item:hover img {
    transform: scale(1.05);
}

.project-gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-gallery-item:hover::after {
    opacity: 1;
}

.project-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.sidebar-box {
    padding: var(--space-2xl);
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
}

.sidebar-box h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    color: var(--color-accent);
}

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

.sidebar-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-label {
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
    width: 80px;
}

.sidebar-cta {
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--color-accent) 0%, rgba(212, 101, 46, 0.8) 100%);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
}

.sidebar-cta h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.sidebar-cta p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.btn--block {
    width: 100%;
    display: block;
}

.project-category--energy {
    color: #4F46E5;
}

.project-category--marine {
    color: #0891B2;
}

.project-category--industrial {
    color: #EA580C;
}

.project-category--commercial {
    color: #8B5CF6;
}

/* Responsive project detail */
@media (max-width: 1024px) {
    .project-detail__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .sidebar-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .sidebar-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .info-block dl {
        grid-template-columns: 1fr;
        gap: var(--space-sm) 0;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-box {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   LIGHTBOX / PHOTO GALLERY MODAL
   ============================================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-base);
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all var(--transition-base);
    z-index: 10000;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--transition-base);
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox__nav--prev {
    left: 20px;
}

.lightbox__nav--next {
    right: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
}

.lightbox__title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    max-width: 60%;
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox__content {
        height: 80vh;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox__nav--prev {
        left: 10px;
    }

    .lightbox__nav--next {
        right: 10px;
    }

    .lightbox__close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }

    .lightbox__title {
        max-width: 70%;
        font-size: var(--text-base);
        top: 60px;
    }

    .lightbox__counter {
        font-size: var(--text-xs);
        bottom: 10px;
    }
}
