:root {
  --gold: #f25151;
  --gold-light: #e84040;
  --charcoal: #091c8b;
  --steel: #161c3a;
  --mid: #212952;
  --light-gray: #f0f2f8;
  --off-white: #f8f9fc;
  --text-muted: #8a90a8;
  --white: #ffffff;
  --navy: #1e2461;
  --navy-light: #2b3480;
  --red: #cc1717;
  --red-light: #e84040;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", sans-serif;
  background: var(--charcoal);
  color: var(--white);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: #091d8bb7;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204, 23, 23, 0.35);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-text span:last-child {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== PAGES ===== */
.page {
  display: block;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active {
  display: block;
}

/* ===== HOME PAGE ===== */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 650px;
  overflow: hidden;
  background: var(--charcoal);
}

/* Engineer photo fills the entire hero background */
.hero-right {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-engineer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Diagonal dark overlay: fully opaque on left, fades to transparent on right */
.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  /* diagonal clip — dark navy panel covers left ~60%, cuts diagonally to right */
  background: linear-gradient(
    105deg,
    var(--charcoal) 0%,
    var(--charcoal) 38%,
    rgba(13, 32, 53, 0.55) 52%,
    rgba(13, 32, 53, 0.1) 65%,
    transparent 75%
  );
  z-index: 1;
}

/* Content sits on top of everything */
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 60px 5% 60px 5%;
  max-width: 620px;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease forwards;
}

/* Subtle red tint accent on far left */
.hero-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(204, 23, 23, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.25s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--steel);
  border-top: 2px solid var(--red);
}

.stat {
  padding: 24px 5%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* SECTION SHARED */
section {
  padding: 100px 5%;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.section-title em {
  font-style: normal;
  color: var(--gold);
}

/* HOME SERVICES PREVIEW */
.services-preview {
  background: var(--off-white);
  color: var(--charcoal);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: default;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

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

.service-card:hover {
  background: #f0f4ff;
  box-shadow: 0 6px 24px rgba(13, 17, 40, 0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(204, 23, 23, 0.12);
  border: 1px solid rgba(204, 23, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
}

.services-preview .section-tag {
  color: var(--red);
}
.services-preview .section-tag::before {
  background: var(--red);
}
.services-preview .section-title {
  color: var(--charcoal);
}
.services-preview .section-title em {
  color: var(--red);
}

/* CLIENTS */
.clients-section {
  background: var(--white);
  padding: 80px 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.clients-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 40px;
}

.clients-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.client-pill {
  padding: 10px 22px;
  border: 1px solid rgba(13, 17, 40, 0.15);
  font-size: 0.78rem;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  background: white;
}

.client-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}

/* WHY US */
.why-section {
  background: var(--light-gray);
  color: var(--charcoal);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-section .section-title {
  color: var(--charcoal);
}
.why-section .section-tag {
  color: var(--gold);
}
.why-section .section-tag::before {
  background: var(--gold);
}

.why-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-num {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  min-width: 44px;
  opacity: 0.5;
}

.why-item h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.why-visual {
  position: relative;
}

.why-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 1;
}

.why-img-cell {
  background: var(--mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.why-img-cell.tall {
  grid-row: span 2;
}

/* ===== SERVICES PAGE ===== */
#services-page {
  background: var(--charcoal);
}

.page-hero {
  background: var(--charcoal);
  padding: 80px 5% 60px;
  border-bottom: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: attr(data-title);
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Playfair Display", serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-hero p {
  margin-top: 1rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.8;
}

.services-detail {
  padding: 80px 5%;
  background: var(--off-white);
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-detail-card {
  background: var(--white);
  padding: 44px 36px;
  border-left: 4px solid var(--red);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  color: var(--charcoal);
}

.service-detail-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(13, 17, 40, 0.12);
}

.service-detail-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-detail-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--navy);
}

.service-detail-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.service-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(204, 23, 23, 0.35);
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

a.service-tag:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.hsse-banner {
  background: linear-gradient(135deg, var(--red) 0%, #8b0e0e 100%);
  margin: 0 5% 80px;
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hsse-banner h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.hsse-banner p {
  color: rgba(228, 228, 228, 0.75);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 500px;
  line-height: 1.7;
}

.hsse-banner .icon-big {
  font-size: 8rem;
  opacity: 0.4;
}

/* ===== GALLERY PAGE ===== */
#gallery-page {
  background: var(--charcoal);
}

.gallery-filter {
  padding: 40px 5% 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--off-white);
}

.filter-btn {
  padding: 9px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(13, 17, 40, 0.2);
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.25s;
}

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

.gallery-grid {
  padding: 40px 5% 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  background: var(--off-white);
  align-items: start;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--steel);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.gallery-item-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  transition: transform 0.4s;
  position: relative;
}

.gallery-item-img.tall {
  aspect-ratio: 3/4;
}
.gallery-item-img.wide {
  aspect-ratio: 16/9;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  padding: 36px 14px 14px;
}

.gallery-overlay p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.4;
}

/* ===== ABOUT PAGE ===== */
#about-page {
  background: var(--charcoal);
}

.about-intro {
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--off-white);
  color: var(--charcoal);
}

.about-intro .section-tag {
  color: var(--red);
}
.about-intro .section-tag::before {
  background: var(--red);
}
.about-intro .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--charcoal);
}
.about-intro .section-title em {
  color: var(--red);
}

.about-intro p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 1.5rem;
}

.about-quote {
  border-left: 4px solid var(--red);
  padding-left: 24px;
  margin-top: 2rem;
}

.about-quote p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.about-grid-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 180px;
  gap: 8px;
}

.about-img-cell {
  background: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.about-img-cell.span2 {
  grid-column: span 2;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--charcoal);
  border-radius: 50%;
  border: 4px solid var(--charcoal);
}

.about-badge span:first-child {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge span:last-child {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

/* MD PROFILE */
.md-section {
  background: var(--steel);
  padding: 80px 5%;
}

.md-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
}

.md-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.md-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.md-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px;
}

.md-credentials {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--off-white);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 8px;
}

.md-bio {
  font-size: 0.93rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.md-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.md-detail-item {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
}

.md-detail-label {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.md-detail-item p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.md-quote {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.md-quote p {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .md-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .md-photo {
    aspect-ratio: 4 / 3;
  }
}

/* HSSE POLICY */
.hsse-section {
  background: var(--mid);
  padding: 80px 5%;
}

.hsse-inner {
  max-width: 900px;
}

.hsse-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 44px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.hsse-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.hsse-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 24px;
}

.hsse-icon {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 28px;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.hsse-list p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.hsse-closing {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* VALUES */
.values-section {
  background: var(--steel);
  padding: 80px 5%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 50px;
}

.value-card {
  background: var(--charcoal);
  padding: 48px 36px;
  text-align: center;
  transition: background 0.25s;
}

.value-card:hover {
  background: var(--mid);
}

.value-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* MISSION / VISION */
.mv-section {
  padding: 80px 5%;
  background: var(--charcoal);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
}

.mv-card.vision-card {
  background: var(--gold);
  color: var(--off-white);
}

.mv-card.mission-card {
  background: var(--steel);
}

.mv-card.quality-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--gold);
  grid-column: 1 / -1;
}

.mv-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.mv-card p,
.mv-card li {
  font-size: 0.92rem;
  line-height: 1.8;
  opacity: 0.85;
}

.mv-card ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mv-card li::before {
  content: "→ ";
  color: var(--gold-light);
  font-weight: 700;
}

.vision-card li::before {
  color: rgba(26, 28, 30, 0.5);
}

.mv-watermark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: "Playfair Display", serif;
  font-size: 7rem;
  font-weight: 900;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* ===== CONTACT PAGE ===== */
#contact-page {
  background: var(--charcoal);
}

.contact-layout {
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  background: var(--off-white);
}

.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.contact-info h2 em {
  font-style: normal;
  color: var(--red);
}

.contact-info p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(204, 23, 23, 0.12);
  border: 1px solid rgba(204, 23, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.safety-motto {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid rgba(204, 23, 23, 0.3);
  background: rgba(204, 23, 23, 0.05);
  font-style: italic;
  color: var(--red);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.04em;
}

/* CONTACT FORM */
.contact-form-wrap {
  background: var(--white);
  padding: 50px 44px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  color: var(--charcoal);
}

.contact-form-wrap h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: #f8f9fc;
  border: 1px solid rgba(13, 17, 40, 0.15);
  color: var(--charcoal);
  font-family: "Barlow", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.25s,
    background 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: #fff5f5;
}

.form-group select option {
  background: white;
  color: var(--charcoal);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}

.footer-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.75;
}

.footer-col h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom .gold {
  color: var(--gold);
  font-style: italic;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links a {
    padding: 16px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-left {
    padding: 40px 5% 40px;
    max-width: 100%;
  }
  .hero-right::after {
    background: linear-gradient(
      180deg,
      rgba(13, 32, 53, 0.88) 0%,
      rgba(13, 32, 53, 0.55) 60%,
      rgba(13, 32, 53, 0.25) 100%
    );
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .why-grid,
  .about-intro,
  .mv-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  section {
    padding: 60px 5%;
  }
  .services-detail {
    padding: 60px 5%;
  }
  .page-hero {
    padding: 60px 5% 40px;
  }
  .contact-layout {
    padding: 60px 5%;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .contact-form-wrap {
    padding: 32px 24px;
  }
}

/* ===== DYNAMIC GALLERY (Firebase images) ===== */
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

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

.gallery-loading {
  padding: 120px 5% 120px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  animation: fadeIn 0.7s;
}

.gallery-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(204, 23, 23, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 18px;
  opacity: 0.85;
}

.gallery-loading p {
  font-size: 1.02rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 0.85;
}

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

/* PROJECT COUNT BADGE */
.project-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

.lightbox-img.lb-loading {
  opacity: 0.3;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px 0;
  gap: 16px;
}

.lightbox-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}

.lightbox-counter {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.lightbox-close:hover {
  color: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
  z-index: 10;
}
.lightbox-prev {
  left: 16px;
}
.lightbox-next {
  right: 16px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 600px) {
  .lightbox-prev {
    left: 6px;
  }
  .lightbox-next {
    right: 6px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

/* GALLERY SKELETON & LOAD MORE */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}

.gallery-skeleton {
  background: linear-gradient(
    90deg,
    var(--steel) 25%,
    var(--mid) 50%,
    var(--steel) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  min-height: 220px;
}

.gallery-skeleton img {
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:not(.gallery-skeleton) img {
  opacity: 1;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 5% 80px;
}

.load-more-btn {
  padding: 14px 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.load-more-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== CONTACT FORM FEEDBACK ===== */
.form-error {
  color: #e84040;
  font-size: 0.82rem;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
}
