/* =========================================================
   HAWAZ GROUP — MAIN STYLESHEET
   Plain CSS (no framework). Design tokens as CSS variables.
========================================================= */

:root {
  --navy: #0A1B3D;
  --navy2: #0F2450;
  --royal: #163A73;
  --sapphire: #1E56A0;
  --gold: #C89B3C;
  --gold-light: #E8C766;
  --gold-deep: #9C7A26;
  --ivory: #F7F5F0;
  --ink: #12172B;

  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;

  --container-max: 1280px;
  --nav-height: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--navy); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 0 28px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.font-serif { font-family: var(--font-serif); }

.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}
.text-gold { color: var(--gold); }
.text-gold-deep { color: var(--gold-deep); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border-color: rgba(247,245,240,0.4);
  color: var(--ivory);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-gold {
  border-color: rgba(200,155,60,0.5);
  color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}
.btn-navy:hover { background: var(--navy2); }

.gold-underline { position: relative; }
.gold-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width 0.3s ease;
}
.gold-underline:hover::after { width: 100%; }

/* reveal-on-scroll (handled by js/reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.scroll-mt-20 { scroll-margin-top: 96px; }

/* =========================================================
   NAVBAR
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 27, 61, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 27, 61, 0.97);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(247,245,240,0.9);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---- Sectors dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(247,245,240,0.9);
  transition: color 0.2s ease;
  padding: 0;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--gold); }
.nav-caret { transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -14px;
  min-width: 240px;
  background: var(--navy);
  border: 1px solid rgba(200,155,60,0.25);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: rgba(247,245,240,0.85);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-dropdown-link:hover { background: rgba(200,155,60,0.12); color: var(--gold); }
.nav-dropdown-link.active { color: var(--gold); }
.nav-dropdown-link .code {
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(200,155,60,0.5);
  color: var(--gold);
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--ivory);
  padding: 8px;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: var(--navy);
  border-top: 1px solid rgba(200,155,60,0.2);
  padding: 16px 20px 24px 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--ivory); font-size: 0.95rem; }
.mobile-menu a.gold { color: var(--gold); font-weight: 600; }
.mobile-menu-label { color: var(--gold); margin: 4px 0 -6px; }
.mobile-menu a.mobile-sublink { padding-left: 14px; font-size: 0.9rem; color: rgba(247,245,240,0.75); }

/* =========================================================
   HERO SLIDER (homepage)
========================================================= */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(10,27,61,0.7) 45%, rgba(10,27,61,0.4) 100%);
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,27,61,0.3);
}

.hero-watermark {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 320px; height: 320px;
  object-fit: contain;
  object-position: bottom right;
  z-index: 2;
  opacity: 0.1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 128px 20px 96px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 768px) { .hero-content { padding-left: 32px; padding-right: 32px; } }

.hero-eyebrow { margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-serif);
  color: var(--ivory);
  font-weight: 500;
  font-size: 2.5rem;
  max-width: 720px;
  line-height: 1.05;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-sub {
  color: rgba(247,245,240,0.8);
  font-size: 1rem;
  max-width: 560px;
  margin-top: 24px;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-dots {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dot {
  height: 6px; width: 16px;
  border-radius: 999px;
  background: rgba(247,245,240,0.4);
  border: none;
  transition: all 0.3s ease;
}
.hero-dot:hover { background: rgba(247,245,240,0.7); }
.hero-dot.active { width: 36px; background: var(--gold); }

/* =========================================================
   STATS BAR
========================================================= */
.stats {
  background: var(--navy2);
  border-top: 1px solid rgba(200,155,60,0.2);
  border-bottom: 1px solid rgba(200,155,60,0.2);
}
.stats-grid {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-family: var(--font-serif); font-size: 2.25rem; color: var(--gold); }
.stat-label { color: rgba(247,245,240,0.7); margin-top: 8px; }

/* =========================================================
   FEATURED WORK CAROUSEL (3-up, distinct from hero slider)
========================================================= */
.carousel-section { padding: 80px 0 96px; background: var(--ivory); }
.carousel-section .section-title { margin-top: 12px; }
.carousel {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}
.carousel-item {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
@media (min-width: 768px) { .carousel-item { flex-basis: calc((100% - 40px) / 3); } }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-item-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(10,27,61,0.85), transparent);
}
.carousel-item-caption .eyebrow { display: block; margin-bottom: 6px; }
.carousel-item-caption p { color: var(--ivory); font-size: 0.9rem; font-weight: 500; }

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--ivory);
  border: 1px solid rgba(200,155,60,0.4);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(10,27,61,0.15);
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.carousel-nav:hover { background: var(--gold); color: var(--navy); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
@media (min-width: 768px) { .carousel-prev { left: -22px; } .carousel-next { right: -22px; } }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(10,27,61,0.2);
  border: none;
  transition: all 0.3s ease;
}
.carousel-dot:hover { background: rgba(10,27,61,0.4); }
.carousel-dot.active { width: 22px; background: var(--gold); }

/* =========================================================
   ABOUT US
========================================================= */
.about-section { padding: 88px 0; background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.about-image { position: relative; }
.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(200,155,60,0.25);
}
.about-seal {
  position: absolute;
  right: -24px; bottom: -24px;
  width: 140px; height: 140px;
  object-fit: contain;
  opacity: 0.95;
  background: var(--ivory);
  border-radius: 999px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(10,27,61,0.2);
}
.about-content .section-desc { margin-top: 18px; max-width: none; }
.about-content .section-desc + .section-desc { margin-top: 14px; }
.about-pillars {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) { .about-pillars { grid-template-columns: 1fr 1fr; } }
.about-pillar { display: flex; align-items: flex-start; gap: 12px; }
.about-pillar svg { flex-shrink: 0; margin-top: 3px; }
.about-pillar-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.about-pillar-desc { color: rgba(18,23,43,0.65); font-size: 0.85rem; margin-top: 4px; line-height: 1.5; }

/* =========================================================
   SERVICES SECTION
========================================================= */
.section { padding: 96px 0; }
.section-head p.eyebrow { margin-bottom: 12px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--navy);
  max-width: 640px;
}
@media (min-width: 768px) { .section-title { font-size: 2.75rem; } }
.section-desc { color: rgba(18,23,43,0.7); margin-top: 20px; max-width: 560px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: block;
  background: var(--navy);
  overflow: hidden;
  border: 1px solid rgba(200,155,60,0.15);
  border-top: none;
}
.service-card-media { position: relative; height: 224px; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.service-card-illustration { width: 100%; height: 100%; display: block; transition: transform 0.7s ease; }
.service-card:hover .service-card-media img,
.service-card:hover .service-card-illustration { transform: scale(1.06); }
.service-card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(10,27,61,0.3) 40%, transparent 100%);
}
.service-card-code {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(200,155,60,0.7);
  background: rgba(10,27,61,0.6);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.service-card-body { padding: 24px; }
.service-card-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ivory); transition: color 0.2s ease; }
.service-card:hover .service-card-title { color: var(--gold); }
.service-card-desc { color: rgba(247,245,240,0.6); font-size: 0.875rem; margin-top: 12px; line-height: 1.6; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: var(--gold); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
}
.service-card-link svg { transition: transform 0.2s ease; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }
.service-card-external { display: block; margin-top: 8px; font-size: 0.75rem; color: var(--gold-light); opacity: 0.8; }

.services-cta {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.3);
  padding: 32px;
}
.services-cta .section-title { font-size: 1.5rem; margin-top: 12px; }
.services-cta .btn { margin-top: 24px; width: fit-content; }

.service-tag {

  display: inline-block;
  padding: 5px 12px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  border: 1px solid rgba(200,155,60,0.5);
  border-radius: 9px;
  }



/* =========================================================
   GALLERY SECTION
========================================================= */
.gallery-section { background: var(--navy); padding: 96px 0; }
.gallery-head {
  display: flex; flex-direction: column; gap: 24px;
  justify-content: space-between;
}
@media (min-width: 768px) { .gallery-head { flex-direction: row; align-items: flex-end; } }
.gallery-head .section-title { color: var(--ivory); }

.gallery-tabs { display: flex; gap: 2px; border: 1px solid rgba(200,155,60,0.3); width: fit-content; }
.gallery-tab {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  background: transparent; color: rgba(247,245,240,0.7); border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.gallery-tab.active { background: var(--gold); color: var(--navy); }
.gallery-tab:not(.active):hover { color: var(--gold); }

.gallery-panel { margin-top: 48px; }
.gallery-panel[hidden] { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  background: none;
  aspect-ratio: 1 / 1;
}
.photo-item.large { grid-column: span 2; grid-row: span 2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-item:hover img { transform: scale(1.1); }
.photo-caption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  background: rgba(10,27,61,0);
  opacity: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.photo-item:hover .photo-caption { background: rgba(10,27,61,0.4); opacity: 1; }
.photo-caption span { color: var(--ivory); font-size: 0.75rem; font-weight: 500; text-align: left; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-item {
  display: block; text-align: left;
  background: var(--navy); border: none; padding: 0; overflow: hidden;
}
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.5s ease; }
.video-item:hover .video-thumb img { transform: scale(1.06); }
.video-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(10,27,61,0.4);
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn {
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(200,155,60,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
}
.video-item:hover .video-play-btn { background: var(--gold-light); }
.video-duration {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 0.75rem; background: rgba(10,27,61,0.8); color: var(--ivory);
  padding: 4px 8px; border-radius: 4px;
}
.video-item-body { padding: 16px; border: 1px solid rgba(200,155,60,0.15); border-top: none; }
.video-item-title { color: var(--ivory); font-size: 0.875rem; font-weight: 500; }

/* Lightbox / modal (shared) */
.lightbox, .video-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,27,61,0.95);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
@media (min-width: 768px) { .lightbox, .video-modal { padding: 40px; } }
.lightbox.open, .video-modal.open { display: flex; }
.lightbox-close, .video-modal-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: rgba(247,245,240,0.8);
}
.lightbox-close:hover, .video-modal-close:hover { color: var(--gold); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(247,245,240,0.7);
}
.lightbox-nav:hover { color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (min-width: 768px) { .lightbox-prev { left: 32px; } .lightbox-next { right: 32px; } }
.lightbox-body { max-width: 900px; width: 100%; }
.lightbox-body img { max-height: 75vh; object-fit: contain; margin: 0 auto; }
.lightbox-caption { text-align: center; color: rgba(247,245,240,0.7); margin-top: 16px; font-size: 0.875rem; }

.video-modal-body { max-width: 900px; width: 100%; }
.video-modal-body video { width: 100%; max-height: 75vh; background: #000; }
.video-modal-title { color: rgba(247,245,240,0.8); margin-top: 16px; font-size: 0.875rem; }
.video-modal-note { color: rgba(247,245,240,0.4); margin-top: 4px; font-size: 0.75rem; }

/* =========================================================
   CONTACT SECTION
========================================================= */
.contact-card {
  background: var(--ivory);
  border: 1px solid rgba(200,155,60,0.3);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-card { grid-template-columns: 1fr 1fr; } }
.contact-info, .contact-form { padding: 40px 24px; }
@media (min-width: 768px) { .contact-info, .contact-form { padding: 56px; } }
.contact-info .section-title { font-size: 1.5rem; }
@media (min-width: 768px) { .contact-info .section-title { font-size: 2rem; } }
.contact-info p.section-desc { margin-top: 20px; }
.contact-detail-list { margin-top: 32px; font-size: 0.875rem; }
.contact-detail-list p { margin-bottom: 12px; }
.contact-detail-list .label { color: var(--gold-deep); font-weight: 600; }
.contact-detail-list a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.contact-detail-list a:hover { color: var(--navy); }

.contact-form { background: var(--navy); display: flex; flex-direction: column; gap: 16px; }
.form-field {
  background: transparent;
  border: 1px solid rgba(247,245,240,0.25);
  padding: 12px 16px;
  color: var(--ivory);
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  width: 100%;
}
.form-field::placeholder { color: rgba(247,245,240,0.4); }
.form-field:focus { border-color: var(--gold); }
select.form-field { background: var(--navy); color: rgba(247,245,240,0.8); }
.contact-submit { margin-top: 8px; padding: 14px; position: relative; }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  color: var(--gold-light);
  font-size: 0.875rem;
  margin-top: 4px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  color: #E8A0A0;
  font-size: 0.875rem;
  margin-top: 4px;
}
.form-error.show { display: block; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: var(--navy); border-top: 1px solid rgba(200,155,60,0.2); }
.footer-grid {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
 .footer-grid {padding-left: 20px;}
.footer-about { color: rgba(247,245,240,0.5); font-size: 0.875rem; margin-top: 20px; line-height: 1.6; }
.footer-heading { margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(247,245,240,0.6); font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-office { color: rgba(247,245,240,0.6); font-size: 0.875rem; line-height: 1.6; }
.footer-office a {
  color: rgba(247,245,240,0.6);
  text-decoration: underline;
  text-decoration-color: rgba(200,155,60,0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-office a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(200,155,60,0.1); }
.footer-bottom-inner {
  padding: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.75rem; color: rgba(247,245,240,0.4);
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }

/* =========================================================
   SERVICE DETAIL PAGE
========================================================= */
.service-hero {
  position: relative;
  height: 64vh;
  min-height: 440px;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}
.service-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.service-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(10,27,61,0.6) 45%, rgba(10,27,61,0.3) 100%);
}
.service-hero-content {
  position: relative; z-index: 2;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 128px 20px 64px 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 768px) { .service-hero-content { padding-left: 32px; padding-right: 32px; } }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.875rem; font-weight: 600;
  margin-bottom: 24px; width: fit-content;
}
.service-hero-code-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-hero-code {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
}
.service-hero-title {
  font-family: var(--font-serif); color: var(--ivory);
  font-size: 2.25rem; max-width: 720px; line-height: 1.15;
}
@media (min-width: 768px) { .service-hero-title { font-size: 3.75rem; } }

.service-detail {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 20px 80px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 768px) { .service-detail { padding-left: 32px; padding-right: 32px; grid-template-columns: 2fr 1fr; } }

.service-lede {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--navy);
  margin-top: 16px; line-height: 1.4;
}
@media (min-width: 768px) { .service-lede { font-size: 1.875rem; } }
.service-desc { color: rgba(18,23,43,0.7); margin-top: 24px; line-height: 1.7; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px;
  background: rgba(10,27,61,0.05);
  border: 1px solid rgba(200,155,60,0.2);
}
.feature-item svg { flex-shrink: 0; margin-top: 2px; }
.feature-item span { font-size: 0.875rem; color: rgba(18,23,43,0.8); }

.external-callout {
  margin-top: 48px;
  padding: 32px;
  background: var(--navy);
  color: var(--ivory);
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 640px) { .external-callout { flex-direction: row; align-items: center; justify-content: space-between; } }
.external-callout-title { font-family: var(--font-serif); font-size: 1.25rem; margin-top: 8px; }
.external-callout .btn { flex-shrink: 0; }

.service-sidebar {
  border: 1px solid rgba(200,155,60,0.25);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 112px;
}
.service-sidebar .section-desc { font-size: 0.875rem; margin-top: 12px; }
.service-sidebar .btn { margin-top: 24px; display: block; width: 100%; }
.sidebar-divider { border-top: 1px solid rgba(200,155,60,0.15); margin-top: 32px; padding-top: 24px; }
.sidebar-other-list li { margin-bottom: 8px; }
.sidebar-other-list a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: rgba(18,23,43,0.7); transition: color 0.2s ease;
}
.sidebar-other-list a:hover { color: var(--gold-deep); }
.sidebar-other-list .code { font-size: 0.75rem; color: var(--gold-deep); }

.next-division {
  background: var(--navy2);
  padding: 64px 0;
}
.next-division-inner {
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; justify-content: space-between;
  text-align: center;
}
@media (min-width: 640px) { .next-division-inner { flex-direction: row; text-align: left; } }
.next-division-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ivory); margin-top: 8px; }

/* =========================================================
   SECTOR PAGE EXTRAS: About / Our Services / Who We Serve /
   Certifications & Affiliations
========================================================= */
.sector-extra { padding: 72px 0; }
.sector-extra:nth-of-type(even) { background: var(--ivory); }
.sector-extra .section-head { max-width: 640px; }

.sector-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
@media (min-width: 768px) { .sector-about-grid { grid-template-columns: 1fr 1fr; } }
.sector-about-grid .section-desc { max-width: none; }

.subservice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 640px) { .subservice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .subservice-grid { grid-template-columns: repeat(3, 1fr); } }
.subservice-card {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid rgba(200,155,60,0.25);
  border-top: 2px solid var(--gold);
}
.subservice-card-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); }
.subservice-card-desc { color: rgba(18,23,43,0.65); font-size: 0.875rem; margin-top: 10px; line-height: 1.55; }

.who-serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 640px) { .who-serve-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .who-serve-grid { grid-template-columns: repeat(3, 1fr); } }
.who-serve-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  border: 1px solid rgba(200,155,60,0.2);
}
.who-serve-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.who-serve-title { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.who-serve-desc { color: rgba(18,23,43,0.6); font-size: 0.825rem; margin-top: 4px; line-height: 1.5; }

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 640px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }
.cert-badge {
  text-align: center;
  padding: 28px 18px;
  background: var(--navy);
  border: 1px solid rgba(200,155,60,0.25);
}
.cert-badge-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.cert-badge-title { color: var(--ivory); font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.cert-badge-issuer { color: rgba(247,245,240,0.55); font-size: 0.75rem; margin-top: 8px; }

/* =========================================================
   MANAGEMENT PAGE
========================================================= */
.mgmt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.mgmt-grid-3 { }
.mgmt-grid-5 { }
@media (min-width: 480px) { .mgmt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .mgmt-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .mgmt-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .mgmt-grid-5 { grid-template-columns: repeat(5, 1fr); } }
.mgmt-card {
  text-align: center;
  padding: 0 0 28px;
  background: var(--navy);
  border: 1px solid rgba(200,155,60,0.2);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mgmt-card:hover { border-color: rgba(200,155,60,0.5); transform: translateY(-3px); }
.mgmt-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-bottom: 2px solid rgba(200,155,60,0.5);
  overflow: hidden;
}
.mgmt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.mgmt-sample-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(200,155,60,0.94);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 0;
}
.mgmt-role {
  color: var(--ivory);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 16px;
}
.mgmt-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(200,155,60,0.5);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-sans);
}
.mgmt-placeholder {
  color: rgba(247,245,240,0.4);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 10px;
  padding: 0 16px;
}
