/* ==========================================================================
   MADANI SDN. BHD. — Oil & Gas Engineering (Website Concept / Demo)
   Table of contents:
     1. Reset
     2. Design tokens
     3. Base / typography
     4. Layout helpers
     5. Accessibility helpers
     6. Buttons
     7. Concept banner
     8. Header / navigation
     9. Mobile menu
     10. Hero
     11. About
     12. Services
     13. Industries
     14. Projects
     15. Careers
     16. Contact
     17. Footer
     18. Toast / inline notice
     19. Scroll reveal
     20. Responsive
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }

button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

/* 2. Design tokens
   ========================================================================== */
:root {
  --md-navy-950: #070b13;
  --md-navy-900: #0a0f1c;
  --md-navy-850: #0d1526;
  --md-navy-800: #101b30;
  --md-navy-700: #16223b;
  --md-navy-line: #223354;
  --md-green: #12b571;
  --md-green-dark: #0c9a5f;
  --md-green-light: #d6f5e6;
  --md-green-ink: #0a3323;
  --md-paper: #ffffff;
  --md-paper-alt: #f4f7fa;
  --md-ink: #101826;
  --md-ink-muted: #5b6a80;
  --md-line: #e2e8f0;

  --color-bg: var(--md-paper);
  --color-bg-alt: var(--md-paper-alt);
  --color-text: var(--md-ink);
  --color-text-muted: var(--md-ink-muted);
  --color-border: var(--md-line);
  --color-accent: var(--md-green);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --step-eyebrow: 0.72rem;
  --step-body: clamp(0.96rem, 0.3vw + 0.88rem, 1.04rem);
  --step-h1: clamp(2.4rem, 4.6vw + 1.1rem, 4.6rem);
  --step-h2: clamp(1.9rem, 2.1vw + 1.2rem, 2.8rem);
  --step-h3: clamp(1.2rem, 0.8vw + 1rem, 1.5rem);
  --step-h4: clamp(1.02rem, 0.3vw + 0.94rem, 1.12rem);

  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 2.75rem);
  --section-py: clamp(4rem, 7vw, 7rem);
  --section-py-sm: clamp(2.5rem, 4vw, 4rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-med: 380ms;
  --dur-slow: 650ms;

  --shadow-card: 0 1px 2px rgba(10, 15, 28, 0.04), 0 14px 30px -20px rgba(10, 15, 28, 0.28);
  --shadow-pop: 0 30px 60px -24px rgba(6, 10, 20, 0.5);

  --header-h: 76px;
  --banner-h: 38px;
}

/* 3. Base / typography
   ========================================================================== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--step-h4); font-weight: 700; }

p { color: var(--color-text); }

.lead {
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.15rem);
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.6em;
  height: 2px;
  background: currentColor;
}

.section--dark .eyebrow { color: #6be8b2; }

/* 4. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-py); }
.section--tight { padding-block: var(--section-py-sm); }
.section--alt { background: var(--color-bg-alt); }

.section--dark {
  background: var(--md-navy-900);
  color: #eef2f7;
}
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark p { color: inherit; }
.section--dark .lead { color: #9fb0c6; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head__text { max-width: 40rem; }
.section-head h2 { margin-top: 0.55rem; }
.section-head p { margin-top: 0.85rem; color: var(--color-text-muted); max-width: 34rem; }

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-fast) var(--ease);
}
.link-underline:hover { opacity: 0.65; }

/* 5. Accessibility helpers
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1200;
  background: var(--md-navy-900);
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--md-green);
  outline-offset: 2px;
}

/* 6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--md-green);
  color: #06231a;
  border-color: var(--md-green);
}
.btn--primary:hover { background: var(--md-green-dark); border-color: var(--md-green-dark); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.btn--dark {
  background: var(--md-navy-900);
  color: #fff;
  border-color: var(--md-navy-900);
}
.btn--dark:hover { background: var(--md-navy-800); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover { border-color: var(--md-navy-900); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.65rem 1.2rem; font-size: 0.8rem; }

/* 7. Concept banner
   ========================================================================== */
.concept-banner {
  background: var(--md-navy-950);
  color: #b9c6d9;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem var(--container-pad);
  border-bottom: 1px solid var(--md-navy-line);
}
.concept-banner strong { color: #fff; }
.concept-banner a { color: #6be8b2; border-bottom: 1px solid rgba(107, 232, 178, 0.4); }
.concept-banner a:hover { border-color: #6be8b2; }

/* 8. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  padding-block: 1rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease), padding var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 14, 24, 0.94);
  backdrop-filter: blur(10px);
  padding-block: 0.7rem;
  border-color: var(--md-navy-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--md-green);
  color: #06231a;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #93a4bd; margin-top: 0.15rem; }

.primary-nav {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 1.6vw, 1.85rem);
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d7e0ee;
  padding-block: 0.3rem;
  opacity: 0.92;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--md-green);
  transition: width var(--dur-fast) var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: #fff; opacity: 1; }
.nav-link.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }
.header-actions .btn { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}

.menu-toggle__box { position: relative; width: 18px; height: 12px; }
.menu-toggle__box span {
  position: absolute; left: 0; width: 100%; height: 1.6px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}
.menu-toggle__box span:nth-child(1) { top: 0; }
.menu-toggle__box span:nth-child(2) { top: 50%; margin-top: -0.8px; }
.menu-toggle__box span:nth-child(3) { top: 100%; margin-top: -1.6px; }
.site-header.is-open .menu-toggle__box span:nth-child(1) { top: 50%; margin-top: -0.8px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle__box span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle__box span:nth-child(3) { top: 50%; margin-top: -0.8px; transform: rotate(-45deg); }

/* 9. Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.5rem, 6vw, 4rem) 3rem;
  background: var(--md-navy-950);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu__links { display: flex; flex-direction: column; gap: 1.35rem; }
.mobile-menu__links a { font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 800; }

.mobile-menu__foot {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.mobile-menu__foot a:not(.btn) {
  font-size: 0.85rem;
  color: #6be8b2;
  border-bottom: 1px solid rgba(107, 232, 178, 0.4);
  padding-bottom: 0.15rem;
}

body.menu-open { overflow: hidden; }

/* 10. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--banner-h));
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  color: #fff;
  background: var(--md-navy-950);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.85;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 18% 55%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 18% 55%, #000 40%, transparent 75%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 19, 0.97) 0%, rgba(7, 11, 19, 0.9) 32%, rgba(9, 15, 27, 0.55) 58%, rgba(9, 15, 27, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 11, 19, 0.35) 0%, rgba(7, 11, 19, 0.15) 30%, rgba(7, 11, 19, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 2.5rem) 4rem;
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--container-pad);
}

.hero__eyebrow { margin-bottom: 1.25rem; color: #6be8b2; }

.hero h1 {
  max-width: 20ch;
  color: #fff;
}

.hero__sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.15rem);
  color: rgba(238, 242, 247, 0.86);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 11. About
   ========================================================================== */
.about-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  box-shadow: var(--shadow-card);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

.about__caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(9, 14, 24, 0.86);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
}
.about__caption h4 { font-size: 0.98rem; }
.about__caption p { margin-top: 0.3rem; font-size: 0.85rem; color: #c4d0e0; }

.about__text p { margin-top: 1.1rem; color: var(--color-text-muted); max-width: 38rem; }
.about__text h2 { margin-top: 0.6rem; }

.about__stats {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}
.about__stat strong {
  display: block;
  font-size: clamp(1.3rem, 1.3vw + 1rem, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.about__stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* 12. Services
   ========================================================================== */
.service-group + .service-group { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.service-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.75rem;
}
.service-group__head h3 { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); }
.service-group__note { font-size: 0.85rem; color: var(--color-text-muted); }

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  padding: 1.6rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #cfe9dc;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--md-green-light);
  color: var(--md-green-dark);
  margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 22px; height: 22px; }

.service-card h4 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.92rem; }

.service-note {
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* 13. Industries
   ========================================================================== */
.industry-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.industry-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.industry-card:hover img { transform: scale(1.06); }
.industry-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, 0.05) 35%, rgba(7, 11, 19, 0.9) 100%);
}
.industry-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.4rem;
}
.industry-card__body h3 { color: #fff; font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem); }
.industry-card__body p { margin-top: 0.4rem; color: #c9d4e3; font-size: 0.88rem; }

/* 14. Projects
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.filter-btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--md-navy-900); color: var(--color-text); }
.filter-btn.is-active { background: var(--md-navy-900); border-color: var(--md-navy-900); color: #fff; }

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.project-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, 0.08) 30%, rgba(7, 11, 19, 0.92) 100%);
}
.project-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.4rem; }
.project-card__tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--md-green);
  color: #06231a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}
.project-card__body h3 { color: #fff; font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem); }
.project-card__body p { margin-top: 0.4rem; color: #c9d4e3; font-size: 0.87rem; max-width: 30ch; }
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: #a9b7cb;
}
.project-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.project-card__meta svg { width: 14px; height: 14px; }

.project-grid[data-empty="true"]::after {
  content: 'No projects in this category yet — check back soon.';
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

/* 15. Careers
   ========================================================================== */
.careers-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.careers-features { display: flex; flex-direction: column; }
.careers-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--md-navy-line);
}
.careers-feature:first-of-type { padding-top: 0; }
.careers-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(18, 181, 113, 0.14);
  color: #4fe3a3;
  flex-shrink: 0;
}
.careers-feature__icon svg { width: 20px; height: 20px; }
.careers-feature p { padding-top: 0.6rem; font-weight: 600; color: #e6ecf4; }

.vacancy-list { display: flex; flex-direction: column; gap: 1rem; }
.vacancy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.4rem;
  background: var(--md-navy-850);
  border: 1px solid var(--md-navy-line);
  border-radius: var(--radius-md);
}
.vacancy-card__info h4 { color: #fff; }
.vacancy-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #9fb0c6;
}
.vacancy-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.vacancy-card__meta svg { width: 14px; height: 14px; }

/* 16. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
}

.contact-panel {
  background: var(--md-navy-950);
  color: #fff;
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.contact-panel > h3 { color: #fff; }

.contact-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(18, 181, 113, 0.16);
  color: #4fe3a3;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h4 { font-size: 0.92rem; color: #fff; }
.contact-item p { margin-top: 0.25rem; font-size: 0.88rem; color: #aab8cc; }
.contact-item p.is-placeholder { color: #7c8ba1; font-style: italic; }

.contact-socials { display: flex; gap: 0.65rem; margin-top: 0.25rem; }
.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--md-navy-line);
  color: #cdd8e8;
  cursor: default;
}
.contact-social svg { width: 16px; height: 16px; }

.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.92rem;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--md-green);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.form-actions__note { font-size: 0.8rem; color: var(--color-text-muted); }

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--md-green-light);
  color: var(--md-green-ink);
  font-size: 0.86rem;
  display: none;
}
.form-status.is-visible { display: block; }

/* 17. Footer
   ========================================================================== */
.site-footer {
  background: var(--md-navy-950);
  color: #93a4bd;
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
}

.footer-top {
  display: grid;
  gap: 2.25rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--md-navy-line);
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 30rem; font-size: 0.9rem; color: #8494ab; }

.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6be8b2; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: #b7c2d4; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.75; color: #b7c2d4; }

.footer-disclosure {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--md-navy-line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #8494ab;
  max-width: 60rem;
}
.footer-disclosure a { color: #6be8b2; border-bottom: 1px solid rgba(107, 232, 178, 0.4); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.78rem;
  color: #63728a;
}

/* 18. Toast / inline notice
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  z-index: 1300;
  max-width: min(90vw, 26rem);
  background: var(--md-navy-950);
  color: #fff;
  border: 1px solid var(--md-navy-line);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 19. Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* 20. Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .about__stats { grid-template-columns: repeat(3, auto); }
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

@media (min-width: 960px) {
  .primary-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .menu-toggle { display: none; }

  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .careers-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-top { grid-template-columns: 1.2fr 1.8fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1180px) {
  .hero__content { padding-block-end: 6rem; }
}
