/* ================================================
   Awimax Energy Limited — Main Stylesheet
   Brand: #076c9c (blue primary), Lato typeface
   ================================================ */

/* --- Custom Properties --- */
:root {
  --blue:        #076c9c;
  --blue-dark:   #055a82;
  --blue-xdark:  #033d5a;
  --blue-light:  #e6f2f8;
  --amber:       #c17f24;
  --amber-light: #f9eed7;
  --dark:        #1c2b35;
  --mid:         #4a5f6d;
  --light-bg:    #f2f6f9;
  --border:      #cddce8;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(7,108,156,.10);
  --shadow-md:   0 4px 20px rgba(7,108,156,.14);
  --radius:      4px;
  --nav-h:       72px;
  --font:        'Lato', Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin-bottom: 1rem; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-alt { background: var(--light-bg); }
.section-blue { background: var(--blue); color: var(--white); }
.section-dark { background: var(--dark); color: var(--white); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-blue  { color: var(--blue); }
.text-amber { color: var(--amber); }

/* --- Section Labels & Headings --- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .75rem;
}
.section-heading {
  margin-bottom: 1rem;
}
.section-heading-group {
  margin-bottom: 3rem;
}
.divider {
  width: 3rem;
  height: 3px;
  background: var(--blue);
  margin: 1rem 0 0;
}
.divider-center { margin: 1rem auto 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: #a86b1c;
  border-color: #a86b1c;
  color: var(--white);
}

/* ===================================================
   NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  z-index: 1000;
  transition: box-shadow .2s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo:hover { opacity: .9; }

/* Primary nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: block;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  transition: color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover {
  color: var(--blue);
}
/* Active/current page: amber underline + amber text for clear visual distinction */
.nav-links > li.active > a {
  color: var(--blue);
  border-bottom: 2px solid var(--amber);
  padding-bottom: calc(.5rem - 2px);  /* compensate for border */
}
.nav-links > li.has-dropdown > a::after {
  content: ' ▾';
  font-size: .65rem;
  opacity: .7;
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--blue);
  z-index: 200;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown li a {
  display: block;
  padding: .65rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
  background: var(--light-bg);
  color: var(--blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: transform .25s, opacity .25s;
}

/* ===================================================
   HERO — Homepage (video)
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0;
  padding-top: var(--nav-h);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* above slides so video plays over the poster images */
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0; /* behind video — acts as poster/fallback while video loads */
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,61,90,.82) 0%, rgba(7,108,156,.55) 100%);
  z-index: 2; /* above video */
}
.hero-content {
  position: relative;
  z-index: 3; /* above overlay (z:2) */
  max-width: 700px;
}
.hero-tagline {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 60ch;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slide nav dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,61,90,.80) 0%, rgba(7,108,156,.55) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: .5rem;
}
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .5; }

/* ===================================================
   HOME — ABOUT INTRO
   =================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-text .section-label { display: block; }
.intro-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--mid);
  margin-top: .2rem;
}
.intro-img { position: relative; }
.intro-img img {
  width: 100%;
  border-radius: var(--radius);
}
.intro-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.intro-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.intro-badge span   { font-size: .75rem; }

/* ===================================================
   SERVICES GRID
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-left: 4px solid var(--blue);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--amber);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: var(--blue);
}
.service-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.service-card p  { font-size: .9rem; color: var(--mid); margin: 0; }

/* ===================================================
   PRODUCTS
   =================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--light-bg);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 1.25rem; }
.product-card-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.product-card-body p  { font-size: .875rem; color: var(--mid); margin: 0; }

/* ===================================================
   PROJECTS
   =================================================== */
.projects-list { display: flex; flex-direction: column; gap: 3.5rem; }
.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.project-item:nth-child(even) .project-img { order: 1; }
.project-item:nth-child(even) .project-text { order: 2; }
.project-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.project-text h3 { margin-bottom: .75rem; }
.project-text p  { color: var(--mid); font-size: .95rem; }
.project-highlights {
  margin: 1rem 0;
  padding-left: 0;
}
.project-highlights li {
  padding: .3rem 0 .3rem 1rem;
  font-size: .875rem;
  color: var(--mid);
  border-left: 2px solid var(--border);
  margin-bottom: .25rem;
  padding-left: 1rem;
}
.project-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 2px;
  margin-bottom: .75rem;
}

/* ===================================================
   GALLERY
   =================================================== */
.gallery-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  color: var(--mid);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--light-bg);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,61,90,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  color: var(--white);
  font-size: 2rem;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(3,61,90,.85));
  padding: 1rem .75rem .6rem;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform .25s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  padding: 1rem .75rem;
  cursor: pointer;
  transition: background .2s;
  border-radius: var(--radius);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  white-space: nowrap;
}

/* ===================================================
   TEAM
   =================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-card-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--blue-light);
  background: var(--light-bg);
}
.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.team-card .role {
  font-size: .8rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.team-card p { font-size: .875rem; color: var(--mid); margin: 0; }
.team-card a {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
}

/* Team profile (individual page) */
.team-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.team-profile-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.team-profile-meta { margin-bottom: 1.5rem; }
.team-profile-meta .role {
  font-size: .85rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ===================================================
   NEWS & BLOG
   =================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--light-bg);
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 1.25rem; }
.news-meta {
  font-size: .78rem;
  color: var(--mid);
  margin-bottom: .5rem;
}
.news-meta .tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: .1rem .45rem;
  border-radius: 2px;
  font-weight: 700;
  margin-right: .3rem;
}
.news-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card-body p  { font-size: .875rem; color: var(--mid); }
.news-card-body a.read-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  margin-top: .5rem;
}

/* News post single */
.news-post-hero { margin-bottom: 2.5rem; }
.news-post-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}
.news-post-body { max-width: 800px; }
.news-post-body h2 { margin: 2rem 0 .75rem; }
.news-post-body p  { font-size: 1rem; color: var(--dark); line-height: 1.75; }

/* ===================================================
   PARTNERS
   =================================================== */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.partner-logo img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter .2s;
}
.partner-logo:hover img { filter: none; }

.clients-list {
  columns: 2;
  column-gap: 2rem;
  font-size: .95rem;
  color: var(--mid);
}
.clients-list li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}

.cert-cards { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cert-card {
  flex: 1; min-width: 200px;
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.cert-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.cert-card p   { font-size: .85rem; opacity: .85; margin-bottom: 1rem; }

/* ===================================================
   HSE
   =================================================== */
.hse-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.hse-pillar {
  background: var(--white);
  border-top: 4px solid var(--blue);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hse-pillar h3 { font-size: 1rem; margin-bottom: .5rem; }
.hse-pillar p  { font-size: .875rem; color: var(--mid); margin: 0; }

.policy-block {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.policy-block p { color: var(--dark); font-size: .95rem; }

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h3 { font-size: 1rem; color: var(--blue); margin-bottom: .5rem; }
.contact-info-block p, .contact-info-block a {
  font-size: .95rem; color: var(--mid);
}
.contact-info-block a:hover { color: var(--blue); }

/* Form */
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--dark);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,108,156,.1);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .8rem; color: var(--mid); margin-top: .5rem; }
.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* ===================================================
   FOUNDATION
   =================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.program-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}
.program-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.program-card p  { font-size: .875rem; color: var(--mid); margin: 0; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--blue-xdark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand img { height: 44px; margin-bottom: 1rem; filter: brightness(10); }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 30ch; }
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li {
  display: flex;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .65rem;
  align-items: flex-start;
}
.footer-contact li svg {
  width: 15px; height: 15px;
  fill: var(--amber);
  flex-shrink: 0;
  margin-top: .15rem;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bar a { color: rgba(255,255,255,.6); }
.footer-bar a:hover { color: var(--white); }

/* ===================================================
   CALL TO ACTION BAND
   =================================================== */
.cta-band {
  background: var(--blue);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ===================================================
   ABOUT HISTORY PAGE
   =================================================== */
.history-timeline {
  position: relative;
  padding-left: 2rem;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue-light);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: .3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-year {
  font-size: .78rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.timeline-item h3 { margin-bottom: .4rem; }
.timeline-item p  { font-size: .9rem; color: var(--mid); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.value-item {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
}

/* ===================================================
   PRIVACY / TERMS
   =================================================== */
.legal-content { max-width: 860px; }
.legal-content h2 { margin: 2.5rem 0 .75rem; font-size: 1.3rem; }
.legal-content p  { line-height: 1.8; color: var(--dark); margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content ul li { margin-bottom: .4rem; color: var(--mid); font-size: .95rem; line-height: 1.7; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .intro-grid     { grid-template-columns: 1fr; }
  .intro-badge    { display: none; }
  .project-item   { grid-template-columns: 1fr; }
  .project-item:nth-child(even) .project-img,
  .project-item:nth-child(even) .project-text { order: unset; }
  .contact-grid   { grid-template-columns: 1fr; }
  .team-profile   { grid-template-columns: 1fr; }
  .team-profile-img { max-width: 300px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: .75rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); display: block; width: 100%; }
  .nav-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border-top: none;
    background: var(--light-bg);
    padding-left: 1rem;
    border-left: 3px solid var(--blue);
    margin: .25rem 0;
  }
  .nav-links > li.has-dropdown > a::after { content: ''; }

  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .page-hero { height: 220px; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .clients-list { columns: 1; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .intro-stats { gap: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================================================
   ACCESSIBILITY
   =================================================== */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===================================================
   MISC / UTILITIES
   =================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--blue-dark); }

/* ===================================================
   PARTNERS — clients list & cert additions
   =================================================== */
.client-item {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.client-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.cert-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.cert-link {
  display: inline-block;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.4);
  transition: color .15s;
}
.cert-link:hover { color: var(--white); }

/* ===================================================
   LEGAL PAGES (privacy / terms)
   =================================================== */
.legal-doc {
  max-width: 860px;
}
.legal-doc h2 { margin: 2.5rem 0 .75rem; font-size: 1.3rem; }
.legal-doc p  { line-height: 1.8; color: var(--dark); margin-bottom: 1rem; }
.legal-doc ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.legal-doc ul li { margin-bottom: .4rem; color: var(--mid); font-size: .95rem; line-height: 1.7; }
.legal-updated {
  font-size: .85rem;
  color: var(--mid);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-contact-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2rem;
}
.legal-contact-box p { color: var(--dark); }

/* ===================================================
   NEWS ARTICLE SUB-PAGES
   =================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.article-body {
  min-width: 0;
}
.article-body h3 { margin: 1.75rem 0 .6rem; }
.article-body p  { color: var(--dark); line-height: 1.8; }
.article-body ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.article-body ul li { margin-bottom: .4rem; color: var(--mid); font-size: .95rem; line-height: 1.7; }
.article-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: var(--mid);
}
.article-meta-sep { opacity: .5; }
.news-date {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 2px;
}
.article-lead {
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}
.article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.article-cta {
  background: var(--light-bg);
  border-left: 4px solid var(--amber);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-cta p { color: var(--dark); margin-bottom: 1rem; }

/* Article sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-box h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue-light);
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sidebar-links li a {
  font-size: .875rem;
  color: var(--mid);
  transition: color .15s;
  padding-left: .75rem;
  border-left: 2px solid var(--border);
  display: block;
}
.sidebar-links li a:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}
.sidebar-box-cta {
  background: var(--blue);
  border-color: var(--blue);
}
.sidebar-box-cta h4 { color: var(--white); border-bottom-color: rgba(255,255,255,.2); }
.sidebar-box-cta p  { color: rgba(255,255,255,.8); font-size: .875rem; margin-bottom: 1rem; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* ===================================================
   TEAM PROFILE SUB-PAGES
   =================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.profile-photo {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-photo > img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.profile-name-card {
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.profile-name-card h2 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.profile-title {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  margin: 0;
}
.profile-content h3 { margin: 1.75rem 0 .6rem; font-size: 1.2rem; }
.profile-content p  { color: var(--dark); line-height: 1.8; }

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; }
}

/* ===================================================
   TEAM CARD ADDITIONS (used on profile pages)
   =================================================== */
/* .team-img used in team sub-page grids — distinct from .team-card-img */
.team-card .team-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--blue-light);
  background: var(--light-bg);
}
.team-card .team-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-role {
  font-size: .8rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.team-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  transition: color .15s;
}
.team-link:hover { color: var(--blue-dark); }
.team-bio {
  font-size: .875rem;
  color: var(--mid);
}
.news-read-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  margin-top: .5rem;
  transition: color .15s;
}
.news-read-more:hover { color: var(--blue-dark); }

/* ===================================================
   CONTACT PAGE ADDITIONS
   =================================================== */
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 18px; height: 18px;
  fill: var(--blue);
}
.contact-form-wrap {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,108,156,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.map-embed iframe {
  width: 100%;
  border: none;
  display: block;
}
.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}
.form-status.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  display: block;
}
.form-status.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  display: block;
}

/* HSE pillar icon */
.hse-pillar-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   OPTION A UPGRADE — Design Tokens, Animations, UX Enhancements
   ═══════════════════════════════════════════════════════════════ */

/* ── Spacing scale ──────────────────────────────────────────── */
:root {
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Transition tokens */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms cubic-bezier(.4,0,.2,1);
}

/* ── Scroll-reveal animations ───────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Delay cascades for child cards */
[data-reveal].revealed [data-reveal-child]:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].revealed [data-reveal-child]:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].revealed [data-reveal-child]:nth-child(3) { transition-delay: 0.19s; }
[data-reveal].revealed [data-reveal-child]:nth-child(4) { transition-delay: 0.26s; }
[data-reveal].revealed [data-reveal-child]:nth-child(5) { transition-delay: 0.33s; }
[data-reveal].revealed [data-reveal-child]:nth-child(6) { transition-delay: 0.40s; }

/* Don't animate if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Sticky / shrinking header ──────────────────────────────── */
/* Keep position:fixed from the original block; only add transitions + scroll state */
.site-header {
  transition: height var(--t-base), box-shadow var(--t-base), background var(--t-base);
  will-change: height, box-shadow, background;
}
.site-header.scrolled {
  height: 56px;               /* shrink from 72px */
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
  background: rgba(7, 108, 156, 0.97);
  backdrop-filter: blur(4px);
}

/* ── Nav text: white when header is scrolled (dark bg) ────────── */
.site-header.scrolled .nav-links > li > a {
  color: #fff;
  font-size: .85rem;
}
.site-header.scrolled .nav-links > li > a:hover,
.site-header.scrolled .nav-links > li.active > a {
  color: var(--amber);      /* amber accent for active + hover — visible on blue */
}
/* Keep dropdown white even when scrolled */
.site-header.scrolled .nav-dropdown {
  background: var(--white);
}
.site-header.scrolled .nav-dropdown li a {
  color: var(--dark);
}
/* Hamburger icon lines → white */
.site-header.scrolled .nav-toggle span {
  background: #fff;
}
/* Logo: compact when scrolled */
.site-header.scrolled .nav-logo img {
  height: 38px;
  transition: height var(--t-base);
}

/* ── Back-to-top button ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(7,108,156,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-fast);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ── Stat counter animation ─────────────────────────────────── */
.stat-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Hover lift on cards ─────────────────────────────────────── */
.service-card,
.product-card,
.news-card,
.team-card {
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.service-card:hover,
.product-card:hover,
.news-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* ── Focus-visible utility ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -99px;
  left: 0;
  background: var(--blue-dark);
  color: #fff;
  padding: .5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-bottom-right-radius: 4px;
}
.skip-link:focus { top: 0; }
