/* ========================================
   AMSTEEL — Master Stylesheet
   Clean, industrial, smooth
   ======================================== */

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

/* ---- Custom Properties ---- */
:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3d3d3d;
  --gray-600: #555;
  --gray-400: #999;
  --gray-300: #bbb;
  --gray-200: #ddd;
  --gray-100: #f0f0f0;
  --white: #fff;

  --orange: #eb5b04;
  --orange-dark: #c94d00;
  --orange-light: #f57a2e;

  --heading: 'Poppins', sans-serif;
  --body: 'Poppins', sans-serif;

  --container: min(1140px, 88vw);
  --nav-h: 76px;

  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

body {
  font-family: var(--body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
ul { list-style:none; }
h1,h2,h3,h4 { font-weight:700; line-height:1.2; color:var(--black); }

/* ---- Utility ---- */
.container { width: var(--container); margin: 0 auto; }
.section { padding: clamp(60px,10vw,120px) 0; }
.section--dark { background: var(--dark); color: var(--gray-300); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: var(--white); }
.section--gray { background: var(--gray-100); }
.section--center { text-align:center; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px,4vw,48px);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: clamp(15px,1.6vw,18px);
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.8;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all .35s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(235,91,4,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px,4vw,48px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
  overflow: visible;
}

.nav--scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
}

/* When mobile menu is open, clear the nav background so overlay shows properly */
@media (max-width: 900px) {
  .nav--menu-open {
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
  }
  .nav--menu-open .nav__hamburger span,
  .nav--menu-open .nav__hamburger.is-active span {
    background: var(--white) !important;
  }
  .nav--menu-open .nav__logo img {
    filter: brightness(0) invert(1);
  }
}

.nav__logo img { width: 310px; max-width: 100%; height: auto; transition: opacity .3s; }
.nav--scrolled .nav__logo img { filter: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .3s, background .3s;
  white-space: nowrap;
}

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

.nav__link:hover {
  background: rgba(255,255,255,.1);
}

.nav--scrolled .nav__link:hover {
  background: rgba(0,0,0,.05);
}

.nav--scrolled .nav__cta:hover {
  background: var(--orange-light);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .3s var(--ease);
}

.nav__link:hover::after { width: 100%; }

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

.nav__cta {
  background: var(--orange);
  color: var(--black) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}

.nav__cta::after { display: none; }
.nav__cta:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(235,91,4,.3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background .3s, transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}

.nav--scrolled .nav__hamburger span { background: var(--black); }

.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__hamburger { display: flex; }

  .nav {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav--scrolled {
    height: auto;
  }

  /* Hide desktop nav links on mobile — use the overlay instead */
  .nav__links { display: none; }

  .nav__link {
    font-size: 22px !important;
    padding: 14px 20px !important;
    color: var(--white) !important;
    letter-spacing: .04em;
  }

  .nav__link:hover { background: rgba(255,255,255,.06) !important; }

  .nav__link::after { display: none; }

  .nav__cta {
    margin-top: 12px;
    font-size: 16px !important;
    padding: 14px 32px !important;
  }
}

/* ---- Mobile Menu Overlay (sibling of nav, NOT child) ---- */
.mobile-overlay {
  display: none;
}

@media (max-width: 900px) {
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .mobile-overlay.is-open {
    display: flex;
    animation: fadeIn 0.3s var(--ease) forwards;
  }

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

  .mobile-overlay__link {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    padding: 14px 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background 0.3s;
  }

  .mobile-overlay__link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-overlay__cta {
    margin-top: 12px;
    font-size: 16px;
    padding: 14px 32px;
    background: var(--orange);
    color: var(--black) !important;
    border-radius: 50px;
    font-weight: 700;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.3) 50%,
    rgba(0,0,0,.15) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding-bottom: clamp(60px,12vw,140px);
}

.hero__tag {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .3s forwards;
}

.hero__title {
  font-size: clamp(36px,6vw,80px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  max-width: 800px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .5s forwards;
}

.hero__desc {
  font-size: clamp(15px,1.5vw,18px);
  color: rgba(255,255,255,.7);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .7s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .9s forwards;
}

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

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: fadeUp .8s var(--ease-out) 1.2s forwards;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%,100% { transform:scaleY(1); opacity:1; }
  50% { transform:scaleY(.5); opacity:.4; }
}

/* ---- Stats Bar ---- */
.stats {
  background: var(--white);
  padding: 0;
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  overflow: hidden;
}

.stats__item {
  padding: clamp(24px,3vw,40px);
  text-align: center;
  border-right: 1px solid var(--gray-200);
  transition: background .3s;
}

.stats__item:last-child { border-right: none; }
.stats__item:hover { background: var(--gray-100); }

.stats__number {
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stats__number span { color: var(--orange); }

.stats__label {
  font-size: 13px;
  color: var(--gray-600);
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item { border-bottom: 1px solid var(--gray-200); }
}

/* ---- About / Overview ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,6vw,80px);
  align-items: center;
}

.about__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.about__image:hover img { transform: scale(1.04); }

.about__text { font-size: 16px; line-height: 1.85; color: var(--gray-600); }
.about__text + .about__text { margin-top: 16px; }

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---- Services Grid ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: clamp(24px,3vw,36px);
  transition: all .4s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

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

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s;
}

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

.service-card__icon svg {
  width: 22px; height: 22px;
  stroke: var(--gray-700);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}

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

.service-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.service-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Gallery ---- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 4px;
}

/* Gallery slots with rotating images */
.gallery__slot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery__slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.gallery__slot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s var(--ease);
}

.gallery__slot:hover .gallery__slot-overlay {
  background: rgba(0,0,0,.35);
}

.gallery__slot:hover .gallery__slot-img {
  transform: scale(1.05);
}

/* Old gallery classes - kept for compatibility */
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

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

.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s;
}

.gallery__item:hover .gallery__item__overlay {
  background: rgba(0,0,0,.25);
}


@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2,1fr); }
}

/* ---- Applications ---- */
.apps__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.apps__tag {
  padding: 12px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all .3s var(--ease);
  cursor: default;
}

.apps__tag:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
  transform: translateY(-2px);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 48px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline__item {
  position: relative;
  margin-bottom: 36px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--orange);
  z-index: 1;
  transition: background .3s, transform .3s var(--ease);
}

.timeline__item:hover::before {
  background: var(--orange);
  transform: scale(1.3);
}

.timeline__year {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ---- Certifications ---- */
.cert__list {
  max-width: 700px;
  margin: 40px auto 0;
}

.cert__group-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
  margin: 32px 0 16px;
  max-width: 1160px;
  margin-inline: auto;
  margin-top: 32px;
  padding-inline: 24px;
}

.cert__group-title:first-child { margin-top: 40px; }

.cert__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cert__item::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Certificate cards ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.cert-grid--index { margin-top: 48px; }

.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--orange);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.cert-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.cert-card--feature {
  background: var(--dark);
  border: 1px solid var(--gray-800);
  color: var(--white);
}

.cert-card__mark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: 12px;
}

.cert-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.cert-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.cert-card--feature .cert-card__desc { color: var(--gray-300); }

.cert-card__validity {
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.cert-card__view {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}

.cert-card__view:hover { background: var(--orange-dark); }

/* ---- Certificate lightbox ---- */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-lightbox.is-open { display: flex; }

.cert-lightbox__dialog {
  background: var(--white);
  width: min(900px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cert-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.cert-lightbox__title {
  font-size: 15px;
  font-weight: 600;
}

.cert-lightbox__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px 10px;
}

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

.cert-lightbox__pages {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f4f4f4;
}

.cert-lightbox__pages img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

/* ---- Gallery photo lightbox ---- */
.gallery-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 30px;
  color: var(--white);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  width: 44px;
  height: 44px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-lightbox__close:hover { color: var(--black); background: rgba(255,255,255,.9); }

.gallery-lightbox__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #1c1c1c;
  min-height: 260px;
}

.gallery-lightbox__img-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.gallery-lightbox__img-wrap img {
  max-width: 100%;
  max-height: calc(92vh - 160px);
  object-fit: contain;
  display: block;
}

.gallery-lightbox__arrow {
  flex: 0 0 auto;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-lightbox__arrow:hover { background: rgba(255,255,255,.25); }

.gallery-lightbox__count {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  padding: 10px 0 14px;
  background: #141414;
}

/* ---- Archive note ---- */
.cert-archive-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-600);
  border-left: 3px solid var(--orange);
  background: var(--gray-100);
  padding: 14px 18px;
  margin: 0 auto 20px;
  max-width: 1160px;
}

/* ---- CSR ---- */
.csr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 24px;
  margin-top: 48px;
}

.csr__card {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.csr__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

.csr__card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.csr__card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.csr__card__text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Careers CTA ---- */
.cta-section {
  text-align: center;
  padding: clamp(80px,14vw,160px) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,91,4,.08), transparent 70%);
  top: -100px; right: -100px;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-sub { color: var(--gray-400); margin: 0 auto 40px; }

.cta__contact {
  margin-top: 40px;
  font-size: 15px;
  color: var(--gray-400);
  line-height: 2;
}

.cta__contact a {
  color: var(--orange);
  transition: color .3s;
}

.cta__contact a:hover { color: var(--orange-light); }

/* ---- Page Header (inner pages) ---- */
.page-header {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.page-header__bg {
  position: absolute;
  inset: 0;
}

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

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%);
}

.page-header__content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding-bottom: clamp(32px,6vw,72px);
}

.page-header__title {
  font-size: clamp(32px,5vw,56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

/* Breadcrumb */
.breadcrumb {
  padding: 24px 0;
}

.breadcrumb__inner {
  width: var(--container);
  margin: 0 auto;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color .3s;
}

.breadcrumb a:hover { color: var(--black); }

.breadcrumb__sep { color: var(--gray-300); }

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: var(--gray-400);
  padding: clamp(48px,8vw,80px) 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand img {
  width: 240px;
  max-width: 100%;
  height: auto;
  opacity: .9;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  font-size: 14px;
  transition: color .3s;
}

.footer ul a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s;
}

.footer__social a:hover { border-color: var(--orange); }

.footer__social svg {
  width: 14px; height: 14px;
  fill: var(--gray-600);
  transition: fill .3s;
}

.footer__social a:hover svg { fill: var(--orange); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Content text for inner pages */
.content-text {
  font-size: clamp(15px,1.5vw,17px);
  line-height: 1.85;
  color: var(--gray-600);
  max-width: 720px;
}

.content-text + .content-text { margin-top: 16px; }

.content-heading {
  font-size: clamp(22px,3vw,32px);
  margin: 48px 0 20px;
  letter-spacing: -.02em;
}

/* Facility cards for About page */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
  margin-top: 32px;
}

.facility-card {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

.facility-card {
  display: flex;
  flex-direction: column;
}

.facility-card__title {
  min-height: 38px;
}

.facility-card__text {
  min-height: 130px;
}

.facility-card__map {
  width: 100%;
  height: 200px;
  min-height: 200px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 0;
  filter: none;
  transition: filter .25s var(--ease);
}

.facility-card__loc {
  margin-top: auto;
  padding-top: 14px;
}

.facility-card:hover .facility-card__map {
  filter: brightness(1.12);
}

.facility-card__loc-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.facility-card__loc-addr {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.facility-card__loc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}

.facility-card__loc-link:hover { color: var(--orange-light); }

.facility-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.facility-card__text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Contact block */
.contact-block {
  text-align: center;
  margin-top: 48px;
  padding: 48px;
  background: var(--gray-100);
  border-radius: 12px;
}

.contact-block__text {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
}

.contact-block__text a {
  color: var(--black);
  font-weight: 600;
}

/* List styles for inner pages */
.info-list {
  margin-top: 24px;
  max-width: 640px;
}

.info-list li {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---- Client Logos ---- */
.clients__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 70px;
  padding: 12px;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s;
}

.clients__logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.clients__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .clients__logos { gap: 24px; }
  .clients__logo { width: 110px; height: 60px; }
}

/* ---- Services List (numbered) ---- */
.services__list {
  max-width: 800px;
  margin: 0 auto;
}

.services__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: transform .3s var(--ease);
}

.services__item:hover {
  transform: translateX(8px);
}

.services__item--has-photos {
  cursor: pointer;
}

.services__item--has-photos .services__content {
  min-width: 0;
}

.services__photos-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--orange);
  border: 1px solid rgba(235,91,4,.35);
  border-radius: 20px;
  white-space: nowrap;
  vertical-align: middle;
}

.services__photos-hint svg {
  width: 14px;
  height: 14px;
}

/* ---- Service photo lightbox ---- */
.svc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.svc-lightbox.is-open { display: flex; }

.svc-lightbox__dialog {
  background: var(--white);
  width: min(1000px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.svc-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.svc-lightbox__title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-lightbox__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 3px 10px;
}

.svc-lightbox__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px 10px;
}

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

.svc-lightbox__grid {
  overflow-y: auto;
  padding: 20px;
  column-count: 2;
  column-gap: 14px;
  background: #f4f4f4;
}

.svc-lightbox__grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin-bottom: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}

@media (max-width: 640px) {
  .svc-lightbox__grid { column-count: 1; }
}

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

.services__number {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  min-width: 56px;
  letter-spacing: -.02em;
}

.services__content {
  flex: 1;
}

.services__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.services__desc {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .services__item {
    gap: 16px;
  }
  .services__number {
    min-width: 40px;
  }
}

/* ---- Finished Castings gallery ---- */
.gallery-app {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.gallery-app__item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.gallery-app__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery-app__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22,30,44,.14);
}

@media (max-width: 900px) {
  .gallery-app { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .gallery-app { grid-template-columns: repeat(2, 1fr); }
}
