/* ============================================================
   UNICQA — brand stylesheet v2
   Palette:  Blue #103069  |  Yellow #FEC936
   Type:     Urbane Rounded (self-hosted, all weights)
   ============================================================ */

/* --- Urbane Rounded — self-hosted from assets/fonts/ ------- */
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-Thin.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-ExtraLight.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-Light.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* Urbane Rounded has no Regular cut — Medium covers 400-500 body text */
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-Medium.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-Medium.woff') format('woff');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-DemiBold.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-Bold.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbane Rounded';
  src: url('../assets/fonts/UrbaneRounded-Heavy.woff2') format('woff2'),
       url('../assets/fonts/UrbaneRounded-Heavy.woff') format('woff');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --blue: #103069;
  --blue-dark: #0b2350;
  --blue-darker: #081a3c;
  --yellow: #fec936;
  --yellow-dark: #e5b41f;
  --ink: #1e2a3a;
  --gray: #55627a;
  --light: #f5f7fb;
  --white: #ffffff;
  --max-w: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(16, 48, 105, 0.14);
  --shadow-sm: 0 4px 14px rgba(16, 48, 105, 0.10);
  --font: 'Urbane Rounded', 'Quicksand', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max-w), 92%);
  margin: 0 auto;
}

/* ---------------- Header / Navigation ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 14px rgba(16, 48, 105, 0.10);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
}

.nav-links a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--yellow);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero (video background) ---------------- */

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh; /* small-viewport unit — avoids iOS toolbar height jump */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 80px;
  color: var(--white);
  /* fallback shown if the video is blocked (e.g. iOS Low Power Mode) */
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-darker) 100%);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--blue-darker);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 48, 105, 0.62) 0%, rgba(8, 26, 60, 0.78) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 90px 24px;
  animation: heroFade 1s ease both;
}

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

.hero-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.hero h1 .accent { color: var(--yellow); }

.hero p {
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #eef3fb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero p strong { font-weight: 700; color: var(--yellow); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 38px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 201, 54, 0.45);
  text-decoration: none;
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--yellow);
  box-shadow: none;
}
.btn-outline:hover { background: var(--yellow); color: var(--blue); }

/* ---------------- Generic sections ---------------- */

section {padding: 80px 0;}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 22px;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--yellow);
  margin-top: 14px;
}

.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }

.lead-text { color: var(--gray); font-size: 1.03rem; font-weight: 500; }

.lead-text--spaced {
  margin-top: 16px;
}

/* ---------------- Home: welcome ---------------- */

.welcome { background: var(--white); }

.welcome .mascot {
  max-width: 400px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(16, 48, 105, 0.20));
}

.welcome .btn { margin-top: 30px; }

/* ---------------- Home: why choose us ---------------- */

.why {
  background: #d0dffbb3;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -140px;
  background: url('../assets/img/logo-mark.png') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

.why .art {
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ---------------- Home: value card slider ---------------- */

.form-intro {
  max-width: 640px;
  margin-bottom: 34px;
}

.honeypot-field {
  display: none;
}

.team {background: var(--white);text-align: center;padding-bottom: 70px;max-width: 100%;}

.team .section-subtitle {
  color: var(--gray);
  max-width: 640px;
  margin: -6px auto 44px;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 per row → 2 rows for 10 cards */
  gap: 16px;
  padding: 12px 0 8px;
}

.card-grid a {
  display: block;
}

.card-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  cursor: zoom-in;
}

.card-grid a:hover img,
.card-grid a:focus-visible img {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(16, 48, 105, 0.18);
  outline: none;
}

/* ---------------- Home: security ---------------- */

.security {background: #0b2350;color: var(--white);position: relative;overflow: hidden;}

.security::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  left: -180px; bottom: -180px;
  background: url('../assets/img/logo-mark.png') no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

.security .section-title { color: var(--white); }
.security .section-title::after { background: var(--yellow); }

.security .intro {
  max-width: 840px;
  margin: 0 auto 56px;
  text-align: center;
  color: #ccd9ee;
  font-weight: 500;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
}

.security-card {
  background: rgb(26 72 142);
  border: 1px solid rgba(254, 201, 54, 0.25);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.security-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.security-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--yellow);
}

.security-card p { font-size: 0.93rem; color: #ccd9ee; }

.trust-strip { margin-top: 64px; text-align: center; position: relative; }

.trust-strip h4 {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--yellow);
  margin-bottom: 28px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logos img {
  height: 88px;
  width: auto;
  background: transparent;
  padding: 0;
}

/* ---------------- Image lightbox (built in JS) ---------------- */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;            /* hidden until JS adds .open */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox.open { display: flex; }

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 60, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.image-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: var(--blue);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

body.lightbox-open { overflow: hidden; }

/* ---------------- Services page ---------------- */

.services-list { background: var(--white); }

.service-block {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 14px 6px;
}

.service-block h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-block p { color: var(--gray); font-size: 1.02rem; font-weight: 500; }

/* Even blocks: filled dark-blue card, yellow heading, right-aligned */
.service-block:nth-child(even) {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  text-align: right;
  box-shadow: var(--shadow);
}

.service-block:nth-child(even) h3 { color: var(--yellow); }
.service-block:nth-child(even) p { color: #dbe4f4; }

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  object-fit: cover;
  transition: transform .2s ease, box-shadow .2s ease;
}

.banner-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 48, 105, 0.18);
}

/* ---------------- Careers page ---------------- */

.positions { background: var(--white); }

.positions .eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 44px;
  background: var(--blue);
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  padding: 14px 46px;
  border-radius: 14px;
  text-align: center;
}

.positions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.position-block h3 {
  display: block;
  background: var(--yellow);
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.position-block p { font-size: 0.97rem; color: var(--gray); font-weight: 500; }

.positions .cta-row { text-align: center; margin-top: 48px; }

/* Mascot occupies the empty grid cell beside the last position card */
.mascot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-mascot {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(16, 48, 105, 0.20));
}

/* ---------------- Forms (Apply / Contact) ---------------- */

.form-section {
  position: relative;
  color: var(--white);
  overflow: hidden;
  /* fallback shown if the video is blocked (e.g. iOS Low Power Mode) */
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-darker) 100%);
}

.form-section video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--blue-darker);
}

.form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 60, 0.82);
  z-index: 1;
}

.form-section .container { position: relative; z-index: 2; }

.form-section .section-title { color: var(--white); }

/* Careers "Apply now" — center the heading, intro and form card */
#apply-now .container { text-align: center; }
#apply-now .section-title::after { margin-left: auto; margin-right: auto; }
#apply-now .form-intro { margin-left: auto; margin-right: auto; }
#apply-now .form-card { margin-left: auto; margin-right: auto; text-align: left; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--yellow);
  box-shadow: var(--shadow);
  padding: 42px 38px;
  max-width: 640px;
}

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

.form-grid .full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 15px;
  border: 1.5px solid #d3dcea;
  border-radius: 12px;
  background: #fafcff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(254, 201, 54, 0.35);
}

.form-note {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7dd;
  border: 1.5px solid var(--yellow);
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-note.show { display: block; }

/* ---------------- Contact page extras ---------------- */

.contact-flex {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: start;
}

.contact-side img {
  border-radius: var(--radius-lg);
  border: 3px solid var(--yellow);
  box-shadow: var(--shadow);
}

.contact-side .caption {
  margin-top: 16px;
  color: #d9e4f4;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-info { background: var(--light); }

.contact-info-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info .info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--yellow);
  box-shadow: var(--shadow);
  padding: 44px 38px;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--yellow);
  box-shadow: var(--shadow);
  min-height: 460px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.contact-info h6 {
  font-size: 1rem;
  color: var(--blue);
  margin: 22px 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-info p { color: var(--gray); font-weight: 500; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #10306a;
  padding: 72px 0 30px;
  border-top: 6px solid var(--yellow);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; bottom: -120px;
  background: url('../assets/img/logo-mark.png') no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  align-items: start;
  position: relative;
}

.footer-grid h3 {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-tagline {
  font-style: italic;
  color: #9fb4d6;
  margin: 16px 0 20px;
  font-weight: 500;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-row img.mark { width: 52px; height: 52px; }
.footer-logo {max-width: 300px;background: transparent;}

.footer-contact p { margin-bottom: 8px; font-size: 0.95rem; font-weight: 500; }
.footer-contact strong { color: var(--white); }
.footer-contact a { color: var(--yellow); }

.footer-icons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-icons .icon-circle {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}

.footer-icons .icon-circle svg { display: block; }

.footer-icons .icon-circle:hover {
  transform: translateY(-3px);
  background: var(--yellow-dark);
  text-decoration: none;
}

.footer-verse {
  font-style: italic;
  font-weight: 700;
  color: var(--yellow);
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(254, 201, 54, 0.25);
  margin-top: 50px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.87rem;
  color: #8aa0c4;
  position: relative;
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
}



/* ---------------- Why Choose Us photo ---------------- */

.why .art.photo {
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow);
}

/* ---------------- Services CTA band ---------------- */

.cta-band {
  position: relative;
  padding: 90px 0;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(16, 48, 105, 0.90), rgba(8, 26, 60, 0.94)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat;
}

.cta-inner { max-width: 720px; }

.cta-band h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-band h2::after {
  content: '';
  display: block;
  width: 64px; height: 5px;
  border-radius: 4px;
  background: var(--yellow);
  margin: 14px auto 0;
}

.cta-band p {
  color: #d9e4f4;
  font-weight: 500;
  margin-bottom: 30px;
}

/* ---------------- Static background for Ready to get started ---------------- */

.form-section.bg-static {
  background:
    linear-gradient(rgba(16, 48, 105, 0.88), rgba(8, 26, 60, 0.93)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat;
}

.form-section.bg-static::after { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablets & small laptops --- */
@media (max-width: 900px) {
  .two-col,
  .two-col.reverse,
  .contact-flex,
  .contact-info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 14px 26px rgba(16, 48, 105, 0.16);
    border-bottom: 3px solid var(--yellow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-links.open { max-height: 340px; }

  .nav-links li { border-top: 1px solid #eef2f8; }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: none;
  }

  section { padding: 68px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 26px; }
  .hero { min-height: 78vh; min-height: 78svh; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Phones --- */
@media (max-width: 560px) {
  .nav-wrap { height: 68px; }
  .brand img { height: 44px; }
  .nav-links { top: 68px; }
  .hero { margin-top: 68px; min-height: 70vh; min-height: 70svh; }

  .hero-content { padding: 70px 18px; }
  .hero-mark { width: 56px; height: 56px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2.1rem); }
  .hero p { font-size: 1rem; }

  section { padding: 54px 0; }
  .section-title { margin-bottom: 16px; }
  .section-title::after { width: 52px; height: 4px; margin-top: 10px; }

  .lead-text, .service-block p, .position-block p { font-size: 0.94rem; }

  .btn { width: 100%; text-align: center; padding: 15px 20px; }

  .welcome .mascot { max-width: 260px; }
  .why .art { max-width: 260px; }
  .careers-mascot { max-width: 240px; }

.card-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .card-grid img { border-width: 2px; }

  
  .security-grid { grid-template-columns: 1fr; }
  .security-card img { height: 160px; }
  .trust-logos { gap: 20px; }
  .trust-logos img { height: 64px; padding: 0; }

  .service-block { padding: 14px 2px; }
  .service-block h3 { font-size: 1.2rem; }
  .service-block:nth-child(even) { padding: 26px 22px; }
  .banner-img { margin-top: 32px; }

  .positions-list { grid-template-columns: 1fr; gap: 26px; }
  .position-block h3 { font-size: 1rem; }
  .positions .eyebrow { font-size: 1.3rem; padding: 12px 32px; }

  .form-card { padding: 26px 18px; border-radius: var(--radius); }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */

  .contact-info .info-card { padding: 32px 22px; }

  .footer-grid { gap: 36px; }
  .footer-logo { max-width: 180px; }
}

/* --- Very small phones --- */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.4rem; }
  .trust-logos img { height: 54px; }
}

@media (max-width: 560px) {
  .cta-band { padding: 60px 0; }
  .why .art.photo { max-width: 300px; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.theme-toggle {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--blue);
  border: 1.5px solid #d3dcea;
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .2s, color .2s, transform .2s;
}

.theme-toggle:hover { transform: translateY(-2px); }

/* show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 900px) {
  .theme-toggle { margin-left: 0; }
}

/* ============================================================
   DARK MODE
   ============================================================ */

[data-theme="dark"] body {
  background: #0a1830;
  color: #d9e2f4;
}

/* header + nav */
[data-theme="dark"] .site-header {
  background: rgba(10, 24, 48, 0.97);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
[data-theme="dark"] .nav-links a { color: #e8eefc; }
[data-theme="dark"] .nav-links {
  background: #0a1830;
}
[data-theme="dark"] .nav-links li { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .nav-toggle span { background: #e8eefc; }
[data-theme="dark"] .theme-toggle {
  background: #13294f;
  color: var(--yellow);
  border-color: #24406f;
}

/* generic text + titles */
[data-theme="dark"] .section-title { color: #eef3fc; }
[data-theme="dark"] .lead-text,
[data-theme="dark"] .team .section-subtitle { color: #a9bbdd; }

/* section backgrounds */
[data-theme="dark"] .welcome,
[data-theme="dark"] .team,
[data-theme="dark"] .services-list,
[data-theme="dark"] .positions { background: #0a1830; }

[data-theme="dark"] .why,
[data-theme="dark"] .contact-info { background: #0e2144; }

[data-theme="dark"] .positions .eyebrow { color: #eef3fc; }

/* cards */
[data-theme="dark"] .service-block,
[data-theme="dark"] .position-block { border-bottom-color: rgba(255,255,255,0.10); }
[data-theme="dark"] .service-block h3 { color: var(--yellow); }
[data-theme="dark"] .service-block p,
[data-theme="dark"] .position-block p { color: #b7c6e4; }

[data-theme="dark"] .card-grid img { border-color: var(--yellow); }

/* security section already dark — just deepen it slightly */
[data-theme="dark"] .security {background: #13294f;}

/* forms */
[data-theme="dark"] .form-card {
  background: #13294f;
  color: #d9e2f4;
}
[data-theme="dark"] .form-field label { color: #e8eefc; }
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea {
  background: #0e2144;
  border-color: #24406f;
  color: #eef3fc;
}
[data-theme="dark"] .form-field input:focus,
[data-theme="dark"] .form-field select:focus,
[data-theme="dark"] .form-field textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(254, 201, 54, 0.25);
}
[data-theme="dark"] .form-note {
  background: #1a3560;
  border-color: var(--yellow);
  color: #ffe28a;
}

/* contact info card */
[data-theme="dark"] .contact-info .info-card { background: #13294f; }
[data-theme="dark"] .contact-info h6 { color: var(--yellow); }
[data-theme="dark"] .contact-info p { color: #b7c6e4; }
[data-theme="dark"] .contact-info a { color: var(--yellow); }

/* footer stays dark in both themes — no changes needed */

/* error state for the form note (both themes) */
.form-note.error {
  background: #fdecea;
  border-color: #d9534f;
  color: #8a2622;
}
[data-theme="dark"] .form-note.error {
  background: #3a1a1a;
  border-color: #d9534f;
  color: #ffb3ae;
}

/* smooth theme transition */
body,
.site-header,
.service-block,
.position-block,
.form-card,
.form-field input,
.form-field select,
.form-field textarea,
.contact-info .info-card {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
