/*
Theme Name: Astra Child (EPEX)
Theme URI: https://epextechnologies.com
Description: Astra Child Theme for EPEX Technologies and Consulting Pvt Ltd
Author: EPEX Technologies
Template: astra
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================
   CSS CUSTOM PROPERTIES
   ================================================ */
:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --green-pale:   #D8F3DC;
  --gold:         #C9963A;
  --gold-light:   #E8B86D;
  --gold-pale:    #FDF3E3;
  --white:        #FFFFFF;
  --off-white:    #F8FAF8;
  --text:         #1A2E1A;
  --muted:        #4A6358;
  --border:       #C8DDD0;
  --dark:         #0D2318;

  /* Override Astra's default blue (#046BD2) with our brand palette */
  --ast-global-color-0: #1B4332;
  --ast-global-color-1: #2D6A4F;
  --ast-global-color-2: #C9963A;
  --ast-global-color-3: #E8B86D;
  --ast-global-color-4: #1A2E1A;
  --ast-global-color-5: #4A6358;
  --ast-global-color-6: #F8FAF8;
  --ast-global-color-7: #ffffff;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 4px rgba(27,67,50,0.08);
  --shadow-md: 0 4px 16px rgba(27,67,50,0.12);
  --shadow-lg: 0 12px 40px rgba(27,67,50,0.16);
  --shadow-gold: 0 4px 14px rgba(201,150,58,0.35);
}

/* ================================================
   ASTRA LAYOUT OVERRIDES — keep page content full-width
   ================================================ */
.site-content > .ast-container,
#content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#primary.content-area {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ast-article-single,
article.hentry {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: none !important;
  border-radius: 0 !important;
}

.entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ================================================
   BASE RESET & TYPOGRAPHY
   ================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main) !important;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a, a:hover, a:visited { text-decoration: none !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-weight: 800;
  letter-spacing: -1.5px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p { color: var(--muted); margin-bottom: 1rem; }

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

/* ================================================
   ASTRA OVERRIDES — FULL WIDTH PAGES
   ================================================ */
.entry-title,
.ast-page-title-bar,
.page-title-bar { display: none !important; }

/* Remove ALL gaps between header and first section */
body.page #content,
body.page .site-content,
body.page-template-default #content,
body.page-template-default .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page .entry-content,
body.page #primary,
body.page .content-area {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.page #secondary { display: none !important; }

body.page .ast-separate-container .ast-article-single,
body.page .ast-plain-container .ast-article-single {
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page .ast-plain-container #primary,
body.page .ast-separate-container #primary {
  float: none !important;
  width: 100% !important;
}

/* Kill any Astra spacing between header and content */
.ast-page-builder-template #content,
.ast-page-builder-template .site-content,
body.page .ast-page-builder-template,
#content.ast-page-builder-template {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.ast-desktop .main-header-menu > .menu-item { line-height: normal !important; }

body.page-template-default .site-content { padding: 0 !important; }

/* Remove WordPress default margin on .entry-content first child */
body.page .entry-content > *:first-child { margin-top: 0 !important; }
body.page .entry-content > section:first-child,
body.page .entry-content > div:first-child { margin-top: 0 !important; }

/* Astra injects padding-top:2em on .ast-page-builder-template .site-main > article
   when no page builder is detected — zero it out unconditionally */
.ast-page-builder-template .site-main > article,
.ast-single-post.ast-page-builder-template .site-main > article,
.ast-page-builder-template .hentry {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ================================================
   MOBILE HAMBURGER MENU
   ================================================ */
.ast-button-wrap .menu-toggle,
.ast-button-wrap .menu-toggle.main-header-menu-toggle,
.main-header-menu-toggle {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
}

/* Color the hamburger/close SVG icons white — do NOT set display here (Astra controls hide/show) */
.ast-button-wrap .menu-toggle .ast-mobile-svg {
  fill: #ffffff !important;
  width: 22px !important;
  height: 22px !important;
}

/* Mobile nav dropdown panel */
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .main-header-bar-navigation .main-navigation,
.ast-mobile-header-wrap {
  background: var(--green-dark) !important;
}

/* Mobile nav items — proper touch spacing and colors */
.ast-header-break-point .main-header-bar-navigation .menu-item .menu-link,
.ast-header-break-point .main-header-bar-navigation .menu-item > a {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  padding: 14px 20px !important;
  border-color: rgba(255,255,255,0.1) !important;
  display: block !important;
  width: 100% !important;
}

.ast-header-break-point .main-header-bar-navigation .menu-item .menu-link:hover,
.ast-header-break-point .main-header-bar-navigation .menu-item > a:hover {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.05) !important;
}

/* Reset gold CTA button in mobile dropdown — looks out of place there */
.ast-header-break-point .main-header-bar-navigation li:last-child > a {
  background: none !important;
  color: rgba(255,255,255,0.9) !important;
  border-radius: 0 !important;
  padding: 14px 20px !important;
  font-weight: 500 !important;
}

/* ================================================
   ASTRA HEADER STYLES
   ================================================ */
#masthead,
.site-header,
.ast-primary-header-bar,
.ast-masthead-custom-menu-items,
.ast-flex.main-header-bar-navigation {
  background: var(--green-dark) !important;
}

.main-header-bar {
  background: var(--green-dark) !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}


.ast-site-identity .site-title a,
.site-title a {
  color: #fff !important;
  font-family: var(--font-main) !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.5px !important;
}

.ast-primary-header-bar .ast-flex { align-items: center !important; }

/* Logo: minimize vertical padding so the mark sits as large as possible in the header */
.ast-site-identity { padding: 7px 0 !important; }

/* Match logo opacity to nav item color (rgba(255,255,255,0.8)) for visual consistency */
.ast-site-identity .custom-logo,
.epex-footer__logo img {
  opacity: 0.8 !important;
}

/* Nav links — desktop only (mobile override is in the hamburger section above) */
.ast-desktop .main-header-menu .menu-item > a,
.ast-desktop .main-navigation .menu-item > a,
.ast-desktop #site-navigation .menu-item > a {
  color: rgba(255,255,255,0.8) !important;
  font-family: var(--font-main) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  transition: color 0.2s ease !important;
  padding: 8px 14px !important;
  letter-spacing: 0.01em !important;
}

.ast-desktop .main-header-menu .menu-item > a:hover,
.ast-desktop .main-navigation .menu-item > a:hover,
.ast-desktop #site-navigation .menu-item > a:hover {
  color: var(--gold) !important;
}

/* Last nav item as gold "Contact Us" button — desktop only */
.ast-desktop .main-header-menu > li:last-child > a,
.ast-desktop #site-navigation > ul > li:last-child > a {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  padding: 8px 18px !important;
  transition: var(--transition) !important;
}

.ast-desktop .main-header-menu > li:last-child > a:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px) !important;
}

/* Sticky header */
.ast-sticky-active,
.ast-header-sticked { box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important; }

/* Mobile menu */
.ast-mobile-menu-buttons .menu-toggle,
.ast-button-wrap .menu-toggle {
  color: white !important;
  border-color: rgba(255,255,255,0.3) !important;
}

/* ================================================
   ASTRA FOOTER STYLES
   ================================================ */
#colophon,
.site-footer,
.ast-small-footer,
footer.site-footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,0.45) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.ast-small-footer .ast-footer-copyright,
.footer-widget-area,
.ast-footer-widget-area {
  background: var(--dark) !important;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.epex-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.epex-section { padding: 100px 0; }
.epex-section--sm { padding: 60px 0; }
.epex-section--dark { background: var(--green-dark); }
.epex-section--darker { background: var(--dark); }
.epex-section--off-white { background: var(--off-white); }
.epex-section--gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); }
.epex-section--white { background: var(--white); }

.epex-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.epex-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.epex-section-title { color: var(--text); margin-bottom: 16px; }
.epex-section-title--white { color: #fff; }
.epex-section-subtitle { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.epex-section-subtitle--white { color: rgba(255,255,255,0.7); }

.epex-text-center { text-align: center; }
.epex-text-center .epex-label { justify-content: center; }
.epex-text-center .epex-section-subtitle { margin: 0 auto; }

/* ================================================
   BUTTON STYLES
   ================================================ */
.epex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.epex-btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark) !important;
  box-shadow: var(--shadow-gold);
}
.epex-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,150,58,0.45);
  color: var(--dark) !important;
}

.epex-btn--green {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff !important;
  box-shadow: var(--shadow-md);
}
.epex-btn--green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}

.epex-btn--outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.6);
}
.epex-btn--outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ================================================
   HERO SECTION
   ================================================ */
.epex-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--green-dark) 55%, var(--green-mid) 100%);
  overflow: hidden;
}

.epex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.epex-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.epex-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.epex-hero__content { max-width: 760px; }

.epex-hero__abstract {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epex-hero__abstract svg { width: 100%; height: 100%; }

@media (max-width: 1024px) {
  .epex-hero__grid { grid-template-columns: 1fr; }
  .epex-hero__abstract { display: none; }
}

.epex-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.epex-hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.epex-hero__title {
  color: #fff !important;
  margin-bottom: 24px;
  line-height: 1.1;
}

.epex-hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 600px;
}

.epex-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.epex-hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.epex-hero__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.epex-hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ================================================
   INTRO BAND
   ================================================ */
.epex-intro-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 32px 0;
  border-bottom: 3px solid var(--gold);
}

.epex-intro-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.epex-intro-band__text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
  margin: 0;
}

/* ================================================
   SERVICE CARDS (HOME PAGE)
   ================================================ */
.epex-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.epex-service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.epex-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.epex-service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.epex-service-card:hover::before { transform: scaleX(1); }

.epex-service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.epex-service-card__icon svg { width: 26px; height: 26px; }

.epex-service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.epex-service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.epex-service-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.epex-service-card__link:hover { color: var(--gold) !important; }
.epex-service-card__link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.epex-service-card__link:hover svg { transform: translateX(3px); }

/* ================================================
   ABOUT STRIP (2 COLUMN)
   ================================================ */
.epex-about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.epex-about-strip__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.epex-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 8px;
}

.epex-placeholder--portrait {
  aspect-ratio: 3/4;
  min-height: 420px;
}

.epex-placeholder--article {
  aspect-ratio: 16/9;
  min-height: 200px;
}

.epex-placeholder--hero {
  min-height: 500px;
}

/* ================================================
   STATS ROW
   ================================================ */
.epex-stats-row {
  background: linear-gradient(135deg, var(--green-dark) 0%, #163828 100%);
  padding: 70px 0;
}

.epex-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.epex-stat-block {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.epex-stat-block:last-child { border-right: none; }

.epex-stat-block__number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.epex-stat-block__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ================================================
   WHY EPEX SECTION
   ================================================ */
.epex-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.epex-why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.epex-why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px;
  width: 28px; height: 2px;
  background: var(--gold);
}
.epex-why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,150,58,0.3);
  transform: translateY(-2px);
}

.epex-why-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.epex-why-card__text { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.7; }

/* ================================================
   INDUSTRY CARDS
   ================================================ */
.epex-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.epex-industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}
.epex-industry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.epex-industry-card__icon {
  width: 56px; height: 56px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.epex-industry-card__icon svg { width: 28px; height: 28px; }
.epex-industry-card__title { font-size: 0.95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.epex-industry-card__desc { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ================================================
   TESTIMONIAL CARDS
   ================================================ */
.epex-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.epex-testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.epex-testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.epex-testimonial-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
}
.epex-testimonial-card--dark:hover {
  background: rgba(255,255,255,0.07);
}

.epex-testimonial-card__quote {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.epex-testimonial-card--dark .epex-testimonial-card__quote { color: rgba(255,255,255,0.7); }

.epex-testimonial-card__author { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.epex-testimonial-card--dark .epex-testimonial-card__author { color: #fff; }

.epex-testimonial-card__role { font-size: 0.8rem; color: var(--muted); }
.epex-testimonial-card--dark .epex-testimonial-card__role { color: rgba(255,255,255,0.5); }

/* ================================================
   CTA SECTION
   ================================================ */
.epex-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.epex-cta__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.epex-cta__text { color: rgba(13,35,24,0.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ================================================
   PAGE HERO (INNER PAGES)
   ================================================ */
.epex-page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 60%, var(--green-mid) 100%);
  padding: 90px 0 70px;
  position: relative;
}
.epex-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.epex-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.epex-breadcrumb a { color: var(--gold) !important; }
.epex-breadcrumb span { color: rgba(255,255,255,0.45); }

.epex-page-hero__title { color: #fff !important; margin-bottom: 16px; }
.epex-page-hero__subtitle { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 640px; margin: 0; }

/* ================================================
   SERVICE DETAIL CARDS (SERVICES PAGE)
   ================================================ */
.epex-service-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  transition: var(--transition);
  margin-bottom: 28px;
}
.epex-service-detail:hover { box-shadow: var(--shadow-lg); }

.epex-service-detail__header {
  background: linear-gradient(160deg, var(--green-dark), var(--dark));
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.epex-service-detail__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 16px;
}
.epex-service-detail__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.epex-service-detail__subtitle { font-size: 0.8rem; color: var(--gold); line-height: 1.6; }

.epex-service-detail__deliverables {
  padding: 40px 32px;
  background: var(--white);
  border-right: 1px solid var(--border);
}
.epex-service-detail__outcomes {
  padding: 40px 32px;
  background: var(--off-white);
}

.epex-service-detail__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.epex-service-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.epex-service-detail ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0 6px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}
.epex-service-detail ul li:last-child { border-bottom: none; }
.epex-service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* ================================================
   FOUNDER PAGE
   ================================================ */
.epex-founder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.epex-founder-sidebar {
  position: sticky;
  top: 100px;
}

.epex-founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.epex-founder-card__photo {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

.epex-founder-card__info { padding: 28px; }
.epex-founder-card__name { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.epex-founder-card__title { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.epex-founder-card__detail { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.epex-founder-card__detail svg { width: 16px; height: 16px; color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.epex-founder-card__detail span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.epex-creds-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 20px 0;
}
.epex-creds-box__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green-dark); margin-bottom: 12px; }
.epex-creds-box ul { list-style: none; padding: 0; margin: 0; }
.epex-creds-box ul li { font-size: 0.8rem; color: var(--muted); padding: 4px 0; padding-left: 14px; position: relative; }
.epex-creds-box ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 2px; background: var(--gold); }

/* Expertise tags */
.epex-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.epex-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(27,67,50,0.15);
}

/* Experience items */
.epex-experience-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.epex-experience-item:last-child { border-bottom: none; }

.epex-experience-item__period {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.epex-experience-item__role { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.epex-experience-item__company { font-size: 0.85rem; color: var(--green-mid); font-weight: 600; margin-bottom: 10px; }
.epex-experience-item__desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* Certifications grid */
.epex-certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.epex-cert-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  border-top: 2px solid var(--gold);
}
.epex-cert-card__name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.epex-cert-card__issuer { font-size: 0.78rem; color: var(--muted); }

/* Education list */
.epex-education-list { list-style: none; padding: 0; margin: 0; }
.epex-education-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.epex-education-item:last-child { border-bottom: none; }
.epex-education-item__badge {
  width: 40px; height: 40px;
  background: var(--green-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-dark);
}
.epex-education-item__degree { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.epex-education-item__institution { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ================================================
   VALUES BOX
   ================================================ */
.epex-values-box {
  background: var(--green-dark);
  border-radius: 8px;
  padding: 40px;
}
.epex-values-box__title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 28px; }
.epex-value-item { margin-bottom: 22px; }
.epex-value-item:last-child { margin-bottom: 0; }
.epex-value-item__label { font-weight: 700; color: var(--gold); font-size: 0.88rem; margin-bottom: 4px; }
.epex-value-item__text { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.6; }

/* ================================================
   MISSION / VISION CARDS
   ================================================ */
.epex-mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.epex-mv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.epex-mv-card--gold { border-top: 3px solid var(--gold); }
.epex-mv-card--green { border-top: 3px solid var(--green-mid); }
.epex-mv-card__heading { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.epex-mv-card__text { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin: 0; }

/* ================================================
   SECTOR CARDS (CLIENTS PAGE)
   ================================================ */
.epex-sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.epex-sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.epex-sector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  border-radius: 8px 8px 0 0;
}
.epex-sector-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.epex-sector-card:hover::before { transform: scaleX(1); }
.epex-sector-card__icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.epex-sector-card__icon svg { width: 26px; height: 26px; }
.epex-sector-card__title { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.epex-sector-card__text { font-size: 0.87rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ================================================
   ARTICLE CARDS (INSIGHTS PAGE)
   ================================================ */
.epex-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.epex-article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.epex-article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.epex-article-card__image { background: linear-gradient(135deg, var(--green-mid), var(--green-dark)); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-align: center; padding: 20px; }
.epex-article-card__body { padding: 28px; }
.epex-article-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.epex-article-card__cat::before { content: ''; display: block; width: 16px; height: 2px; background: var(--gold); }
.epex-article-card__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.epex-article-card__excerpt { font-size: 0.87rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.epex-article-card__meta { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.epex-contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: flex-start; }
.epex-contact-info__heading { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.epex-contact-info__text { color: var(--muted); margin-bottom: 32px; line-height: 1.75; }

.epex-contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.epex-contact-detail__icon { width: 40px; height: 40px; background: var(--green-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.epex-contact-detail__icon svg { width: 20px; height: 20px; color: var(--green-dark); }
.epex-contact-detail__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-dark); margin-bottom: 4px; }
.epex-contact-detail__value { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

.epex-discovery-box {
  background: var(--green-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 28px;
  margin-top: 32px;
}
.epex-discovery-box__title { font-size: 0.95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.epex-discovery-box__text { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.7; }

.epex-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.epex-form-box__heading { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.epex-form-box__sub { color: var(--muted); margin-bottom: 28px; font-size: 0.9rem; }
.epex-form-note { font-size: 0.78rem; color: var(--muted); margin-top: 16px; font-style: italic; }

/* CF7 Overrides */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-family: var(--font-main) !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  background: #fff !important;
  transition: border-color 0.2s ease !important;
  margin-bottom: 16px !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none !important;
  border-color: var(--green-mid) !important;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1) !important;
}
.wpcf7-form textarea { min-height: 130px !important; resize: vertical !important; }
.wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: var(--shadow-gold) !important;
  font-family: var(--font-main) !important;
  letter-spacing: 0.02em !important;
}
.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(201,150,58,0.45) !important;
}
.wpcf7-form .wpcf7-form-control-wrap { display: block !important; margin-bottom: 4px !important; }
.wpcf7-form p { color: var(--text) !important; font-weight: 500 !important; font-size: 0.85rem !important; margin-bottom: 6px !important; }

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.epex-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.epex-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   ELEMENTOR GLOBAL OVERRIDES
   ================================================ */
.elementor-section.elementor-section-stretched { width: 100% !important; left: 0 !important; }
.elementor-widget-wrap { width: 100% !important; }
.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated { padding: 0 !important; }

/* ================================================
   LOGO STYLE
   ================================================ */
.epex-logo { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none !important; }
.epex-logo__epex { font-weight: 800; color: #fff; font-size: 1.4rem; letter-spacing: -0.5px; }
.epex-logo__tech { font-weight: 500; color: var(--gold); font-size: 1rem; }

/* ── Header logo: hide Astra site-title text, inject via CSS ── */
.site-title a,
.ast-site-identity .site-title > a {
  font-size: 0 !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  text-decoration: none !important;
}
.site-title a::before,
.ast-site-identity .site-title > a::before {
  content: 'EPEX';
  font-family: var(--font-main) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
  line-height: 1 !important;
}
.site-title a::after,
.ast-site-identity .site-title > a::after {
  content: 'Technologies';
  font-family: var(--font-main) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--gold) !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
/* Hide Astra site tagline in header */
.ast-site-identity .site-description { display: none !important; }

/* ================================================
   CUSTOM FOOTER
   ================================================ */
.epex-footer {
  background: var(--dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.45);
}
.epex-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.epex-footer__logo { margin-bottom: 18px; }
.epex-footer__desc { font-size: 0.87rem; line-height: 1.75; color: rgba(255,255,255,0.45); margin: 0; }
.epex-footer__col-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.epex-footer__links { list-style: none; padding: 0; margin: 0; }
.epex-footer__links li { margin-bottom: 10px; }
.epex-footer__links a { color: rgba(255,255,255,0.45) !important; font-size: 0.87rem; transition: color 0.2s ease; }
.epex-footer__links a:hover { color: var(--gold) !important; }
.epex-footer__contact-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.epex-footer__contact-item svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.epex-footer__contact-item span { font-size: 0.84rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.epex-footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.epex-footer-bottom__copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.epex-footer-bottom__links { display: flex; gap: 20px; }
.epex-footer-bottom__links a { font-size: 0.8rem; color: rgba(255,255,255,0.3) !important; transition: color 0.2s ease; }
.epex-footer-bottom__links a:hover { color: var(--gold) !important; }

/* ================================================
   CUSTOM HEADER
   ================================================ */
.epex-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.epex-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.epex-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.epex-nav { display: flex; align-items: center; gap: 4px; }
.epex-nav__link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
.epex-nav__link:hover { color: var(--gold) !important; }
.epex-nav__link--cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.epex-nav__link--cta:hover { background: var(--gold-light) !important; color: var(--dark) !important; }

/* Mobile nav toggle */
.epex-nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 6px 10px; color: white; cursor: pointer; }

/* ================================================
   GLOBAL LINK COLOUR — override Astra's default blue
   ================================================ */
a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* Restore link colour inside our own components to white/green where needed */
.epex-hero a, .epex-section--dark a, .epex-section--darker a,
.epex-footer a { color: inherit; }

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

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .epex-container { padding: 0 32px; }
  .epex-services-grid { grid-template-columns: repeat(2, 1fr); }
  .epex-industries-grid { grid-template-columns: repeat(2, 1fr); }
  .epex-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .epex-stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px; }
  .epex-stat-block:nth-child(2n) { border-right: none; }
  .epex-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .epex-service-detail { grid-template-columns: 1fr; }
  .epex-founder-layout { grid-template-columns: 1fr; }
  .epex-founder-sidebar { position: static; }
  .epex-about-strip { gap: 48px; }
  .epex-client-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Container — give edges breathing room */
  .epex-container { padding: 0 20px; }

  /* Sections */
  .epex-section { padding: 60px 0; }
  .epex-section--sm { padding: 40px 0; }

  /* Hero */
  .epex-hero { min-height: 100svh; align-items: flex-start; padding-top: 100px; padding-bottom: 60px; }
  .epex-hero__content { max-width: 100%; }
  .epex-hero__title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .epex-hero__subtitle { font-size: 0.95rem; }
  .epex-hero__actions { flex-direction: column; gap: 12px; }
  .epex-hero__actions .epex-btn { width: 100%; justify-content: center; text-align: center; }
  .epex-hero__stats { flex-direction: column; gap: 20px; }
  .epex-hero__stat-number { font-size: 2.2rem; }

  /* Intro band */
  .epex-intro-band__inner { flex-direction: column; text-align: center; gap: 20px; }

  /* Grids → single column */
  .epex-services-grid { grid-template-columns: 1fr; }
  .epex-why-grid { grid-template-columns: 1fr; }
  .epex-testimonials-grid { grid-template-columns: 1fr; }
  .epex-mv-grid { grid-template-columns: 1fr; }
  .epex-sectors-grid { grid-template-columns: 1fr; }
  .epex-articles-grid { grid-template-columns: 1fr; }
  .epex-certs-grid { grid-template-columns: 1fr; }
  .epex-about-strip { grid-template-columns: 1fr; gap: 32px; }
  .epex-client-logos-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .epex-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Industries */
  .epex-industries-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .epex-contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .epex-form-box { padding: 28px 20px; }

  /* Footer */
  .epex-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .epex-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .epex-footer-bottom__links { justify-content: center; }

  /* Page hero */
  .epex-page-hero { padding: 100px 0 50px; }
  .epex-page-hero__title { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Service detail */
  .epex-service-detail { grid-template-columns: 1fr; }

  /* Founder */
  .epex-founder-layout { grid-template-columns: 1fr; }
  .epex-founder-sidebar { position: static; }
  .epex-founder-photo { max-width: 280px; margin: 0 auto; }

  /* CTA section */
  .epex-cta-section { text-align: center; }
  .epex-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .epex-cta-actions .epex-btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Headings scale */
  h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); letter-spacing: -0.5px; }
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }

  /* Overflow guard */
  img, video, iframe { max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .epex-container { padding: 0 16px; }
  .epex-industries-grid { grid-template-columns: 1fr; }
  .epex-stats-grid { grid-template-columns: 1fr; }
  .epex-stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .epex-client-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .epex-hero { padding-top: 90px; }
  .epex-btn { padding: 12px 20px; font-size: 0.9rem; }
  .epex-footer-bottom__links { flex-direction: column; gap: 8px; }
}
