/* ================================================
   IMPIANA MAHIR SDN BHD - Design System
   Static company website. No frameworks.
   ================================================ */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-700);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-lighter);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

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

/* --- Custom Properties --- */
:root {
  /* Brand colors */
  --primary: #1A2E4A;
  --primary-light: #2C4A6E;
  --primary-lighter: #4A7EB5;

  --accent: #C8102E;
  --accent-hover: #A00D24;

  /* Neutrals */
  --white: #FFFFFF;
  --grey-50: #F8F9FA;
  --grey-100: #E8EEF4;
  --grey-200: #D1D9E0;
  --grey-300: #B0BEC5;
  --grey-700: #4A4A4A;
  --grey-900: #1C1C1E;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --nav-height: 72px;

  /* Shadows */
  --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-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--grey-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-light { color: var(--white); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--grey-50);
}

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

.section__header h2 {
  margin-bottom: var(--space-md);
  position: relative;
}

.section__header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--grey-700);
}

/* Red accent underline on section titles */
.section__header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav--scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav--scrolled .nav__logo {
  color: var(--primary);
}

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

/* No hover color change on logo (intentional) */
.nav__logo:hover {
  color: var(--white);
}

.nav--scrolled .nav__logo:hover {
  color: var(--primary);
}

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

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.nav--scrolled .nav__link {
  color: var(--grey-700);
}

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

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

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

.nav--scrolled .nav__link:hover {
  color: var(--primary);
}

/* --- Dropdown Menus --- */
.nav__dropdown-container {
  position: relative;
}

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

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

.nav__dropdown li {
  width: 100%;
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--grey-700);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav__dropdown a:hover {
  background: var(--grey-100);
  color: var(--accent);
  padding-left: 24px;
}

@media (max-width: 900px) {
  .nav__dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: transparent;
    padding: 0;
    margin-left: var(--space-md);
    margin-top: var(--space-sm);
    display: none;
  }
  
  .nav__dropdown-container:hover .nav__dropdown {
    display: block;
  }
  
  .nav__dropdown a {
    color: var(--grey-700);
    padding: 8px 0;
  }
  
  .nav__dropdown a:hover {
    background: transparent;
    color: var(--accent);
    padding-left: 0;
  }
}

.nav__cta {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle span {
  background: var(--grey-900);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grey-900);
  overflow: hidden;
}

/* Slideshow slides */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlide {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}



.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 100px;
  color: #FF6B7A;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

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


/* --- Photo-Backed Sections --- */
.section--photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.section--photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
}

.section--photo-bg .container {
  position: relative;
  z-index: 1;
}

.section--photo-bg .section__header p,
.section--photo-bg .credential__text {
  color: rgba(255, 255, 255, 0.8);
}

.section--photo-bg .credential {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--photo-bg .credential__icon svg {
  stroke: var(--accent);
}

.section--photo-bg .credential__title {
  color: var(--white);
}

.section--photo-bg .card {
  background: var(--white);
  color: var(--grey-900);
}

.section--photo-bg .card__title {
  color: var(--grey-900);
}

.section--photo-bg .card__text {
  color: var(--grey-700);
}

.section--photo-bg .card__link {
  color: var(--accent);
}

.section--photo-bg .section__header h2 {
  color: var(--white);
}

/* --- Stats Bar --- */
.stats-bar {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--space-2xl) 0;
  z-index: 2;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.stats-bar .container {
  position: relative;
  z-index: 1;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

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

.stat__number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__number .stat__suffix {
  color: var(--accent);
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-bar .stat__number {
  color: var(--white);
}

.stats-bar .stat__label {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Card Component --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* --- Cert Card --- */
a.cert-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cert-card__image {
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
  transition: transform 0.4s ease;
  cursor: pointer;
}

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

.cert-card__icon {
  width: 48px;
  height: 48px;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background var(--transition-base);
}

.cert-card:hover .cert-card__icon {
  background: var(--primary-lighter);
}

.cert-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  transition: stroke var(--transition-base);
}

.cert-card:hover .cert-card__icon svg {
  stroke: var(--white);
}

.cert-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-xs);
}

.cert-card__issuer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.cert-card__validity {
  font-size: 0.8125rem;
  color: var(--grey-500);
  margin-bottom: var(--space-sm);
  font-family: monospace;
}

.cert-card__desc {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.5;
  margin-top: auto;
}

.card__image {
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-xl);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--grey-200);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: background var(--transition-base);
}

.card:hover .card__icon {
  background: var(--accent);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  transition: stroke var(--transition-base);
}

.card:hover .card__icon svg {
  stroke: var(--white);
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link:hover {
  gap: 10px;
}

/* --- About Snippet --- */
.about-snippet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-snippet__text h2 {
  margin-bottom: var(--space-lg);
}

.about-snippet__text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-md);
  border-radius: 2px;
}

.about-snippet__text p {
  margin-bottom: var(--space-md);
  color: var(--grey-700);
}

.about-snippet__image {
  aspect-ratio: 4/3;
  background: var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Placeholder. Replace with real image. */
  background: linear-gradient(135deg, var(--grey-100) 0%, var(--grey-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-snippet__image-placeholder {
  color: var(--grey-300);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-xl);
}

/* --- Why Choose Us --- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.credential {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: all var(--transition-base);
}

.credential:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.credential__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.credential__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.credential__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-sm);
}

.credential__text {
  font-size: 0.875rem;
  color: var(--grey-700);
}

/* --- Leader Card (About page) --- */
.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-xl);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.leader-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.leader-card__photo {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  background: var(--grey-100);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--grey-200);
  transition: border-color var(--transition-base);
}

.leader-card:hover .leader-card__photo {
  border-color: var(--accent);
}

.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-card__name {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.leader-card__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.leader-card__desc {
  font-size: 0.9375rem;
  color: var(--grey-700);
  line-height: 1.6;
  max-width: 360px;
}

/* --- Mission Quote --- */
.mission-block {
  max-width: 800px;
  margin: 0 auto;
}

.mission-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.8;
  color: var(--grey-700);
  text-align: center;
  font-style: italic;
  position: relative;
  padding: var(--space-xl) 0;
}

.mission-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto var(--space-xl);
  border-radius: 2px;
}

/* --- Hub Card (clickable card linking to sub-pages) --- */
.hub-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.hub-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.hub-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-card__body {
  flex: 1;
}

.hub-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-xs);
}

.hub-card__desc {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.hub-card__arrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.hub-card:hover .hub-card__arrow {
  color: var(--accent);
}

/* --- Service Detail Section (Services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--grey-200);
}

.service-detail:last-child {
  border-bottom: none;
}

/* Alternate layout: image on left for even items */
.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__content h3 {
  margin-bottom: var(--space-md);
  position: relative;
}

.service-detail__content h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.service-detail__content p {
  color: var(--grey-700);
  margin-bottom: var(--space-md);
}

.service-detail__content ul {
  margin-bottom: var(--space-lg);
}

.service-detail__content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--grey-700);
  font-size: 0.9375rem;
}

.service-detail__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.service-detail__image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--grey-100) 0%, var(--grey-200) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-300);
  font-size: 0.875rem;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- Project Filter Tabs (Projects page) --- */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-700);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--primary-lighter);
  color: var(--primary);
}

.filter-tab--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Project Controls (filter + sort wrapper) --- */
.project-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.project-controls .filter-tabs {
  margin-bottom: 0;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sort-controls label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey-700);
  white-space: nowrap;
}

.sort-controls select {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey-900);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-controls select:focus {
  outline: none;
  border-color: var(--primary-lighter);
}

/* --- Project Card (Projects page) --- */
.project-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.project-card__year {
  /* Hidden per client request. Year data preserved in HTML for sort logic. */
  display: none;
}

.project-card__value {
  /* Hidden per client request. Data preserved in HTML. */
  display: none;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.project-card__client {
  font-size: 0.8125rem;
  color: var(--grey-700);
}

.project-card__tag {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-lighter);
  background: var(--grey-100);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Certification Card (Certifications page) --- */
.cert-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.cert-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.cert-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.cert-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-sm);
}

.cert-card__issuer {
  font-size: 0.8125rem;
  color: var(--grey-700);
  margin-bottom: var(--space-sm);
}

.cert-card__validity {
  font-size: 0.75rem;
  color: var(--primary-lighter);
  font-weight: 600;
}

.cert-card__desc {
  font-size: 0.875rem;
  color: var(--grey-700);
  margin-top: var(--space-md);
}

/* --- Contact Form (Contact page) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
}

.contact-info-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.contact-info-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-xs);
}

.contact-info-card__text {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.6;
}

.contact-info-card__text a {
  color: var(--grey-700);
}

.contact-info-card__text a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-form h3 {
  margin-bottom: var(--space-lg);
}

.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: 0.875rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--grey-900);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-lighter);
  background: var(--white);
}

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

/* --- Partner Grid (Products page) --- */
.partner-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

a.partner-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.partner-card__flag {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card__flag--dark {
  background: var(--grey-900);
  padding: 6px;
}

.partner-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: var(--space-xs);
}

.partner-card__country {
  font-size: 0.8125rem;
  color: var(--primary-lighter);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.partner-card__desc {
  font-size: 0.875rem;
  color: var(--grey-700);
}

/* --- Client Grid --- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
  justify-items: center;
  padding: var(--space-xl) 0;
}

.client-logo {
  max-width: 140px;
  max-height: 80px;
  filter: grayscale(100%) opacity(0.7);
  transition: all var(--transition-base);
  object-fit: contain;
}

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

/* --- Site Gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-section .container {
  max-width: 100%;
  padding: 0 var(--space-md);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #111827 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  font-size: 1.0625rem;
}

/* --- Footer --- */
.footer {
  background: var(--grey-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

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

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

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

.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 0.8125rem;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

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

/* --- Page Hero (for inner pages) --- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

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

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Bypass animation for deep items to prevent mobile GPU bottlenecks */
.reveal-stagger > *:nth-child(n+10) {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

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

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

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

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

  .hero__accent {
    display: none;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail--reverse {
    direction: ltr;
  }

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

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

  .leader-card__photo {
    margin: 0 auto;
  }
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.lightbox.active .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color 0.2s ease;
}

.lightbox__close:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .lightbox__close {
    top: -40px;
    right: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 1001;
  }

  .nav__links--open {
    right: 0;
  }

  .nav__link {
    color: var(--grey-700);
    font-size: 1rem;
    width: 100%;
    padding: var(--space-sm) 0;
  }

  .nav__link::after {
    bottom: 0;
  }

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

  .nav__toggle {
    display: flex;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile overlay behind nav */
  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav__overlay--visible {
    display: block;
  }

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

  .about-snippet__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

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

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: var(--space-2xl) 0;
  }

  .service-detail--reverse {
    direction: ltr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .leader-card__photo {
    margin: 0 auto;
  }

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

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