/* ===========================
   FONTS
   =========================== */

@font-face {
  font-family: 'Fluent System Icons';
  src: url('./FluentSystemIcons-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ===========================
   CSS VARIABLES
   =========================== */

:root {
  --primary: #2e499e;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #2e499e 0%, #1e2f6f 100%);
  --header-offset: 120px;
}

/* ===========================
   BASE STYLES
   =========================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 1rem);
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-offset);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-shell {
  min-height: calc(100vh - 180px);
}

.content-missing {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(46, 73, 158, 0.08) 0%, rgba(46, 73, 158, 0.02) 100%);
}

.content-missing h1 {
  margin-top: 0;
}

/* ===========================
   HEADER
   =========================== */

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--primary);
  padding: 1rem 2rem;
  overflow: visible;
  transition: background-color 0.22s ease, background-image 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.site-header .logo {
  justify-self: start;
}

.site-header .main-nav {
  justify-self: center;
}

.site-header .header-cta {
  justify-self: end;
}

.site-header.light {
  background-color: rgba(255, 255, 255, 0.94);
  background-image:
    radial-gradient(circle at 52% 48%, rgba(120, 120, 120, 0.06) 0%, rgba(120, 120, 120, 0.02) 36%, rgba(255, 255, 255, 0) 82%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
}

.site-header.is-scrolled {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(10, 20, 55, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 0;
  align-self: flex-end;
  margin-bottom: -0.8rem;
  position: relative;
  z-index: 2;
}

.logo img {
  display: block;
  height: 68px;
  width: auto;
}

/* ===========================
   NAVIGATION
   =========================== */

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-nav > ul > li {
  border-bottom: 2px solid transparent;
  padding-bottom: 0.35rem;
  transition: border-bottom-color 0.2s ease;
}

.main-nav a,
.main-nav .submenu-toggle {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s ease;
}

.main-nav .submenu-toggle {
  display: inline-flex;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.main-nav .submenu-caret {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
  margin-right: -0.35rem; /* Adjust for better visual alignment */
}

.main-nav .has-submenu.is-open .submenu-caret {
  transform: scaleY(-1);
}

.main-nav .is-active > a,
.main-nav .is-active > .submenu-toggle,
.main-nav a[aria-current='page'] {
  color: #1e2f6f;
}

.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .main-nav .submenu-toggle,
.site-header.is-scrolled .phone,
.site-header.is-scrolled .phone a {
  color: var(--white);
}

.site-header.is-scrolled .main-nav > ul > li.is-active,
.site-header.is-scrolled .main-nav > ul > li:has(a[aria-current='page']),
.site-header.is-scrolled .main-nav > ul > li:not(.is-active):hover,
.site-header.is-scrolled .main-nav > ul > li:not(.is-active):focus-within,
.site-header.is-scrolled .main-nav > ul > li:not(:has(a[aria-current='page'])):hover,
.site-header.is-scrolled .main-nav > ul > li:not(:has(a[aria-current='page'])):focus-within {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .main-nav .is-active > a,
.site-header.is-scrolled .main-nav .is-active > .submenu-toggle,
.site-header.is-scrolled .main-nav a[aria-current='page'] {
  color: var(--white);
}

.site-header.is-scrolled .main-nav .submenu {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled .main-nav .submenu a {
  color: var(--white);
}

.site-header.is-scrolled .main-nav .submenu a:hover,
.site-header.is-scrolled .main-nav .submenu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.main-nav > ul > li.is-active,
.main-nav > ul > li:has(a[aria-current='page']) {
  border-bottom-color: #1e2f6f;
}

.main-nav > ul > li:not(.is-active):hover,
.main-nav > ul > li:not(.is-active):focus-within,
.main-nav > ul > li:not(:has(a[aria-current='page'])):hover,
.main-nav > ul > li:not(:has(a[aria-current='page'])):focus-within {
  border-bottom-color: #8c8f96;
}

.main-nav .has-submenu {
  position: relative;
}

.main-nav .submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max-content;
  margin: 0;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(39, 61, 137, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 1200;
}

.main-nav .submenu a {
  display: block;
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-size: 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
}

.main-nav .submenu a:hover,
.main-nav .submenu a:focus-visible {
  background: rgba(39, 61, 137, 0.1);
  outline: none;
}

.main-nav a[aria-current='page'] {
  background: transparent;
}

.main-nav .has-submenu.is-open .submenu {
  display: block;
}

@media (min-width: 996px) {
  .main-nav {
    position: relative;
  }

  .main-nav .has-submenu {
    position: static;
  }

  .main-nav .submenu {
    position: fixed;
    top: var(--desktop-submenu-top, var(--header-offset));
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    box-sizing: border-box;
    min-width: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0.35rem 2rem;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .main-nav .has-submenu.is-open .submenu {
    display: flex;
  }

  .main-nav .submenu a {
    text-align: center;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.phone a {
  color: inherit;
  text-decoration: none;
}

.phone a:hover,
.phone a:focus-visible {
  text-decoration: underline;
}

.phone-icon {
  font-family: 'Fluent System Icons', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.link-icon {
  font-family: 'Fluent System Icons', sans-serif;
  font-size: 0.9em;
  line-height: 1;
  margin-left: 0.25em;
  vertical-align: middle;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transform-origin: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(0.97);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 4px 9px rgba(0, 0, 0, 0.09);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.94);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn.primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: var(--white);
}

.btn.large {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.site-header .btn.primary {
  background-color: var(--primary);
  color: var(--white);
}

.site-header .btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.site-header.is-scrolled .btn.primary {
  background-color: var(--white);
  color: var(--primary);
}

.site-header.is-scrolled .btn.secondary {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

@media (max-width: 1440px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-header .main-nav {
    justify-self: stretch;
    min-width: 0;
  }

  .site-header .main-nav > ul {
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  .site-header .header-cta .btn.primary {
    display: none;
  }
}

/* ===========================
   HERO SECTIONS
   =========================== */

.hero {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  align-items: center;
  background: #1e2f6f;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(116deg, rgba(14, 24, 58, 0.596), rgb(30 47 111 / 0%));
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 2;
}

.about-overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.9fr);
  align-items: start;
  gap: 1.5rem;
}

.about-overview-intro .cert-badge {
  padding: 1rem;
  border-radius: 10px;
  max-width: 210px;
  justify-self: end;
}

.about-overview-intro .cert-badge img {
  max-width: 170px;
}

.about-overview-intro .cert-badge p {
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .about-overview-intro {
    grid-template-columns: 1fr;
  }

  .about-overview-intro .cert-badge {
    justify-self: start;
  }
}

.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
}

.page-hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  margin: 0;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */

.content-section {
  padding: 3rem 2rem;
}

.content-section h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

#key-capabilities > h2,
#industries > h2,
#why-choose .why-choose-intro h2,
#quick-links > h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

#industries > h2 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.content-section p,
.content-section ul,
.content-section ol {
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: #444;
}

/* ===========================
   BACKGROUND STYLES
   =========================== */

.light {
  background-color: #f3f3f3;
  background-image:
    radial-gradient(circle at 52% 48%, rgba(120, 120, 120, 0.1) 0%, rgba(120, 120, 120, 0.04) 36%, rgba(255, 255, 255, 0) 82%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  background-size: auto, 170px 170px;
  background-blend-mode: normal, soft-light;
}

.capabilities,
.trust,
.case-studies {
  padding: 2rem;
}

.trust {
  background-color: #273d89;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0) 86%),
    linear-gradient(180deg, rgba(25, 40, 95, 0.2), rgba(45, 69, 150, 0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.55' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-position: center center, center center, center center;
  background-size: auto, auto, 160px 160px;
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: screen, normal, soft-light;
  color: var(--white);
}

/* ===========================
   CARD LAYOUTS
   =========================== */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cards.cards-3-max .card {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
}

.cards.cards-3-max .card p {
  margin-bottom: 1rem;
}

.cards.cards-3-max .card .btn {
  margin-top: auto;
  align-self: flex-end;
}

@media (max-width: 995px) {
  .cards.cards-3-max .card {
    flex-basis: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  .cards.cards-3-max .card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.card {
  flex: 1;
  min-width: 250px;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  box-sizing: border-box;
  min-width: 0;
}

#key-capabilities .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

#key-capabilities .card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(46, 73, 158, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(30, 47, 111, 0.08);
  padding: 1.4rem;
}

#key-capabilities .card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

#key-capabilities .card p {
  margin-bottom: 1rem;
}

#key-capabilities .card a {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

#key-capabilities .card a:hover,
#key-capabilities .card a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  #key-capabilities .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 995px) {
  #key-capabilities .cards {
    grid-template-columns: 1fr;
  }
}

#quick-links .cards {
  gap: 1.5rem;
}

#quick-links .card {
  background: #ffffff;
  border: 1px solid rgba(46, 73, 158, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(30, 47, 111, 0.08);
  padding: 1.4rem;
}

#quick-links .card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

#quick-links .card p {
  margin-bottom: 1rem;
}

#industries .card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(10, 20, 55, 0.18);
  color: #23304f;
}

#industries .card h3 {
  margin-top: 0;
  color: #18306f;
}

#industries .card p {
  color: #30415f;
}

#industries .card a {
  margin-top: auto;
  color: #18306f;
  font-weight: 700;
  text-decoration: none;
}

#industries .card a:hover,
#industries .card a:focus-visible {
  text-decoration: underline;
}

/* ===========================
   STATS
   =========================== */

.stats {
  display: flex;
  gap: 2rem;
  font-weight: bold;
  justify-content: center;
  flex-wrap: wrap;
}

#key-capabilities > p,
#industries > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

#why-choose {
  position: relative;
}

#why-choose .why-choose-shell {
  background:
    radial-gradient(circle at top right, rgba(46, 73, 158, 0.14), rgba(46, 73, 158, 0) 42%),
    linear-gradient(145deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(46, 73, 158, 0.14);
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(30, 47, 111, 0.08);
  padding: 2.25rem;
}

#why-choose .why-choose-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

#why-choose .section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(46, 73, 158, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#why-choose .why-choose-intro p {
  margin: 0;
  font-size: 1.05rem;
  color: #42516e;
}

#why-choose .why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

#why-choose .why-choose-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 73, 158, 0.12);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 10px 22px rgba(30, 47, 111, 0.06);
}

#why-choose .why-choose-card-cert {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.9fr);
  align-items: start;
  gap: 1rem;
}

#why-choose .why-choose-card-copy {
  min-width: 0;
}

#why-choose .why-choose-card-cert .cert-badge {
  padding: 1rem 1rem 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(30, 47, 111, 0.1);
  gap: 0.4rem
}

#why-choose .why-choose-card-cert .cert-badge p {
  font-size: 0.8rem;
}

#why-choose .why-choose-value {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

#why-choose .why-choose-card h3 {
  margin: 0 0 0.55rem;
  color: #18306f;
  font-size: 1rem;
}

#why-choose .why-choose-card p {
  margin: 0;
  color: #51617d;
  font-size: 0.93rem;
}

#why-choose .why-choose-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

#why-choose .why-choose-actions .btn.secondary {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(30, 47, 111, 0.08);
}

/* ===========================
   DOWNLOADS PAGE
   =========================== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.download-card {
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card .btn {
  margin-top: auto;
  align-self: center;
}

.download-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  color: var(--primary);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.download-card p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.file-info {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.notice-box {
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
  border: 2px solid var(--primary);
}

.notice-box h3 {
  color: var(--primary);
  margin-top: 0;
}

/* ===========================
   CAREERS PAGE
   =========================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.benefit-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
}

.vacancy-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.vacancy-header {
  background: var(--gradient);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.vacancy-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.vacancy-type {
  margin: 0.25rem 0 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.vacancy-salary {
  font-size: 1.3rem;
  font-weight: bold;
}

.vacancy-body {
  padding: 2rem;
}

.vacancy-body h4 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.vacancy-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.vacancy-body li {
  margin: 0.4rem 0;
}

.apprentice-section {
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
}

.apprentice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.apprentice-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
}

.apprentice-card h3 {
  color: var(--primary);
  margin-top: 0;
}

.apprentice-requirements {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.apprentice-requirements h3 {
  color: var(--primary);
  margin-top: 0;
}

.application-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-top: 1.5rem;
}

.contact-box {
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
  border: 2px solid var(--primary);
}

.contact-box h3 {
  color: var(--primary);
  margin-top: 0;
}

.contact-box a {
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.contact-info,
.contact-hours-card,
.contact-actions-card {
  background: #f9f9f9;
  border: 1px solid rgba(46, 73, 158, 0.12);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(20, 34, 77, 0.06);
}

.contact-info h2 {
  margin-top: 0;
}

.contact-aside {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contact-details p {
  margin: 0.25rem 0;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.small-text {
  font-size: 0.9rem;
  color: #666;
}

.contact-hours-card h2,
.contact-actions-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.opening-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.opening-hours-table th,
.opening-hours-table td {
  padding: 0.3rem 0;
  vertical-align: top;
}

.opening-hours-table th {
  width: 44%;
  text-align: left;
  color: var(--primary);
  font-weight: 700;
}

.opening-hours-table td {
  text-align: right;
  color: #2b3553;
}

.contact-hours-card p,
.contact-actions-card p {
  margin-bottom: 0;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.contact-actions .btn {
  justify-content: center;
}

.contact-form-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
}

.contact-form-section h2 {
  margin-top: 0;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 73, 158, 0.1);
}

.map-section {
  margin-top: 3rem;
}

.map-container {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  border: 0;
}

.directions-info {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.directions-info h3 {
  color: var(--primary);
  margin-top: 0;
}

.directions-info p {
  margin: 0.75rem 0;
}

/* ===========================
   RFQ PAGE
   =========================== */

.info-banner {
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
}

.info-banner h2 {
  margin-top: 0;
  color: var(--primary);
}

.form-container {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.rfq-form {
  max-width: 800px;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.required {
  color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 73, 158, 0.1);
}

.help-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.file-upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  position: relative;
  margin: 1rem 0;
}

.file-upload-area input[type="file"] {
  margin-bottom: 0.5rem;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: #f5f8ff;
}

.file-hint {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}

.upload-subtext {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.form-note a {
  color: var(--primary);
  text-decoration: none;
}

.rfq-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rfq-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.rfq-status.is-pending {
  color: #44506d;
}

.rfq-status.is-success {
  color: #1b6b3a;
  font-weight: 600;
}

.rfq-status.is-error {
  color: #b3261e;
  font-weight: 600;
}

.rfq-upload-progress {
  margin: 0.75rem auto 0;
  padding-left: 1.2rem;
  text-align: left;
  max-width: 580px;
  color: #44506d;
}

.rfq-upload-progress li {
  margin-bottom: 0.3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.info-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.info-card ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.info-card li {
  margin-bottom: 0.4rem;
}

.alternative-contact {
  background: #f9f9f9;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  text-align: center;
}

.alternative-contact h3 {
  margin-top: 0;
  color: var(--primary);
}

/* ===========================
   ABOUT PAGES
   =========================== */

.timeline {
  margin: 2rem 0;
}

.timeline-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.timeline-item h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.timeline-item p {
  margin: 0;
}

.cta-box {
  background: var(--gradient);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
}

.cta-box h2 {
  color: var(--white);
  border: none;
  margin-top: 0;
}

.cta-box h3 {
  color: var(--white);
  margin-top: 0;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.team-photo-placeholder {
  /* Temporary: hide placeholder tiles until real photos are available. */
  display: none;
  background: #ddd;
  height: 200px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: #999;
  font-size: 1.5rem;
}

.team-member h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.team-member p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.format-grid,
.it-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.format-card,
.it-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.format-card h3,
.it-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.format-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.workflow-step {
  flex: 1;
  min-width: 180px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.step-number {
  background: var(--primary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.workflow-step h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.workflow-step p {
  font-size: 0.9rem;
  margin: 0;
}

.cert-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  margin: 2rem 0;
}

.cert-info h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.5rem;
}

.cert-info p {
  margin: 0.5rem 0;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(30, 47, 111, 0.12);
  text-align: center;
}

.cert-badge img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.cert-badge p {
  margin: 0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

@media (max-width: 820px) {
  .cert-banner {
    grid-template-columns: 1fr;
  }
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.equipment-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.equipment-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.equipment-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.process-step {
  flex: 1;
  min-width: 180px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.process-step h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.9rem;
  margin: 0;
}

.cert-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cert-type {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.cert-type h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* ===========================
   CAPABILITIES PAGES
   =========================== */

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.machine-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
}

.machine-image-placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  height: 180px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.machine-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.machine-card h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.machine-desc {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.machine-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.machine-card li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.specs-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.specs-list li:last-child {
  border-bottom: none;
}

/* Machine list table */
.machine-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.93rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 47, 111, 0.07);
}

.machine-table thead tr {
  background: var(--primary);
  color: #fff;
}

.machine-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.machine-table tbody tr {
  border-bottom: 1px solid #e8ecf5;
}

.machine-table tbody tr:last-child {
  border-bottom: none;
}

.machine-table tbody tr:nth-child(even) {
  background: #f5f7fc;
}

.machine-table tbody tr:hover {
  background: #eef2ff;
}

.machine-table td {
  padding: 0.65rem 1rem;
  vertical-align: middle;
}

.machine-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.machine-section-heading {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 2rem 0 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.machine-category-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.machine-category-label.turning {
  background: #e8f0fe;
  color: #2e499e;
}

.machine-category-label.milling {
  background: #e4f5ed;
  color: #1a6e41;
}

.machine-category-label.inspection {
  background: #fef3e2;
  color: #7a4a00;
}

@media (max-width: 995px) {
  .machine-table {
    font-size: 0.82rem;
  }
  .machine-table thead th,
  .machine-table td {
    padding: 0.55rem 0.6rem;
  }
}

.typical-use {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed #ccc;
  font-size: 0.95rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.material-category {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.material-category h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.material-category ul {
  margin: 0;
  padding-left: 1.25rem;
}

.material-category li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.material-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.material-card h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.material-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.tolerance-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  border-radius: 8px;
  border: 2px solid var(--primary);
}

.tolerance-item {
  text-align: center;
}

.tolerance-item h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.tolerance-item p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
}

.capabilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.capability-item {
  background: #f9f9f9;
  padding: 1.25rem;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.capability-item h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.capability-item p {
  margin: 0;
  font-size: 0.95rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.example-card {
  background: #f9f9f9;
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.example-card h3 {
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.example-card p {
  margin: 0;
  font-size: 0.95rem;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portfolio-viewer {
  margin: 2rem 0;
}

.portfolio-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portfolio-thumb {
  border: 1px solid #d7dce8;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-thumb:hover,
.portfolio-thumb:focus-visible {
  border-color: #8e9fcc;
  box-shadow: 0 8px 20px rgba(30, 47, 111, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.portfolio-thumb.is-active {
  border-color: #2e499e;
  box-shadow: 0 12px 24px rgba(30, 47, 111, 0.2);
  background: #edf1ff;
}

.portfolio-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 0.35rem;
}

.portfolio-thumb span {
  display: block;
  color: #2f3d68;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.portfolio-feature {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.portfolio-feature img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  background: #e9eefb;
}

.portfolio-feature-caption {
  padding: 1.1rem 1.2rem 1.25rem;
}

.portfolio-feature-caption h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.portfolio-feature-caption p {
  margin: 0;
  color: #434343;
  font-size: 0.96rem;
}

.portfolio-item {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e9eefb;
}

.portfolio-caption {
  padding: 1rem 1rem 1.1rem;
}

.portfolio-caption h3 {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 1.02rem;
}

.portfolio-caption p {
  margin: 0;
  color: #434343;
  font-size: 0.95rem;
}

.intro-box {
  background: linear-gradient(135deg, #eff3ff 0%, #e5edff 100%);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
}

.intro-box h2 {
  margin-top: 0;
  color: var(--primary);
}

.service-options {
  margin: 2rem 0;
}

.service-option {
  background: #f9f9f9;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.service-option h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.service-option p {
  margin: 0.5rem 0;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.delivery-option {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.delivery-option h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.case-study-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid #4caf50;
  margin: 2rem 0;
}

.case-study-box p {
  margin: 0.75rem 0;
}

.case-study-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  padding: 1rem 2rem;
  background-color: #2f2f33;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='3' seed='19' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  background-size: auto, 150px 150px;
  background-blend-mode: multiply;
  color: #f5f5f5;
}

.site-footer-inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer-copy,
.site-footer-links {
  margin: 0;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer a {
  color: #f5f5f5;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.cookie-settings-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font: inherit;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1600;
}

.cookie-banner-content {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(39, 61, 137, 0.24);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 19, 48, 0.24);
  padding: 1rem;
}

.cookie-banner-content p {
  margin: 0;
  color: #1d2546;
}

.cookie-banner-actions {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-policy-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-right: auto;
}

.cookie-policy-link:hover,
.cookie-policy-link:focus-visible {
  text-decoration: underline;
}

/* ===========================
   MEDIA QUERIES
   =========================== */

@media (max-width: 995px) {
  body {
    padding-top: var(--header-offset);
    padding-bottom: 4.75rem;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 1rem;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .logo {
    margin-bottom: 0;
  }

  .logo img {
    height: 56px;
  }

  .hero {
    flex-direction: column;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero .lead {
    font-size: 1.1rem;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-top: 1px solid rgba(39, 61, 137, 0.2);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  }

  .site-header.is-scrolled .main-nav {
    background: var(--primary);
    border-top-color: rgba(255, 255, 255, 0.3);
  }

  .main-nav > ul {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    flex: 0 1 auto;
  }

  .main-nav a,
  .main-nav .submenu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0.35rem;
    font-size: 0.8rem;
    line-height: 1.2;
    width: auto;
    box-sizing: border-box;
  }

  .site-header.is-scrolled .main-nav > ul > li.is-active,
  .site-header.is-scrolled .main-nav > ul > li:has(a[aria-current='page']) {
    border-bottom-color: rgba(255, 255, 255, 0.9);
  }

  .main-nav > ul > li {
    border-bottom: none;
    padding-bottom: 0;
  }

  .main-nav .submenu-caret {
    margin-left: 0;
    margin-right: 0;
    transform: scaleY(-1);
  }

  .main-nav .has-submenu.is-open .submenu-caret {
    transform: scaleY(1);
  }

  .main-nav .has-submenu {
    position: static;
  }

  .main-nav .submenu {
    top: auto;
    bottom: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    transform: none;
    min-width: 0;
    width: 100vw;
    border-radius: 0;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
  }

  .main-nav .submenu a {
    font-size: 0.78rem;
    padding: 0.5rem 0.55rem;
  }

  .header-cta {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .header-cta .btn {
    display: none;
  }

  .cards {
    flex-direction: column;
  }

  .portfolio-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .trust {
    background-attachment: scroll, scroll, scroll;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #why-choose .why-choose-shell {
    padding: 1.5rem;
    border-radius: 18px;
  }

  #why-choose .why-choose-grid {
    grid-template-columns: 1fr;
  }

  #why-choose .why-choose-card-cert {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .machine-grid,
  .materials-grid,
  .capabilities-list,
  .examples-grid,
  .team-grid,
  .download-grid,
  .benefits-grid,
  .apprentice-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .vacancy-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vacancy-salary {
    font-size: 1.2rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-banner {
    bottom: calc(4.75rem + 0.8rem);
    left: 0.6rem;
    right: 0.6rem;
  }

  .cookie-banner-content {
    padding: 0.85rem;
  }

  .cookie-banner-actions {
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}