/* ══════════════════════════════════════════
   BASE.CSS
   Shared styles loaded on every page:
   reset, variables, navbar, search, language
   switcher, footer, page-hero, CTA band, and
   responsive breakpoints.
   ══════════════════════════════════════════ */


/* ══════════════════════════════════════════
   BOOTSTRAP OVERRIDES
   Bootstrap 5 is loaded BEFORE this file as
   a responsive foundation. These rules keep
   the site's custom design winning over
   Bootstrap's Reboot defaults (typography,
   link colors, headings spacing, focus ring)
   so the UI stays consistent.
   ══════════════════════════════════════════ */

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

/* Bootstrap sets a blue link color globally; restore neutral inheritance
   so our scoped anchor rules (footer, nav, careers, etc.) decide the look. */
a { color: inherit; text-decoration: none; }

/* Bootstrap Reboot adds margin-bottom to headings/paragraphs/lists; the
   site uses explicit margins per component, so neutralize the defaults. */
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote {
  margin: 0;
  padding: 0;
}

/* Reset Bootstrap's default heading font-weight (it forces 500). Each
   component sets its own weight where needed. */
h1, h2, h3, h4, h5, h6 { font-weight: inherit; line-height: 1.2; }

/* Lists use custom markers (or none) inside components — neutralize
   Bootstrap's default left padding. */
ul, ol { list-style: none; }

/* Form controls inherit fonts from the page rather than the system stack
   Bootstrap injects via Reboot. */
button, input, select, textarea, optgroup {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Image overflow safety — prevents oversized raster/video content from
   breaking responsive layouts. Scoped to img/video/picture only; SVGs
   keep their explicit width/height attributes so icons don't collapse. */
img, video, picture { max-width: 100%; height: auto; }

/* Bootstrap's default focus outline can clash with the gold accent —
   keep an accessible ring that uses the brand color. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Bootstrap sets background/color tokens on <body>; the site sets these
   explicitly below, but make sure horizontal scrolling stays disabled
   even when Bootstrap's grid utilities are not in use. */
html, body { max-width: 100%; }


/* ══════════════════════════════════════════
   RESET & VARIABLES
   ══════════════════════════════════════════ */

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

:root {
  /* ── Brand palette ─────────────────────────
     White base, navy text, navy accents.
     Red is reserved for small text labels
     (section tags, page-hero labels, badges)
     where it pops as a tag color. The bulk
     of "accent" rules across the site read
     --gold / --color-accent — those names
     are kept for backward compat but remapped
     to navy so every existing rule picks up
     the new accent automatically. */

  /* Backgrounds — almost-all white, with one
     barely-tinted alt panel for section bands. */
  --warm-white:  #ffffff;        /* Primary page canvas */
  --color-bg:    #f4f7fb;        /* Alt section background — cool off-white */
  --cream:       #ffffff;        /* Card / form surface */
  --cream-dark:  #e1e8f0;        /* Cool grey-blue — dividers, footer trim */

  /* Text — dark navy on white reads strongly */
  --text:        #1a2c4d;
  --text-light:  #4b5870;
  --text-muted:  #7e879a;
  --color-heading:    #1a2c4d;
  --color-text-muted: #4b5870;

  /* Red — kept only for text labels and badges */
  --red:        #c1272d;
  --red-dark:   #9a1f24;
  --red-light:  #e04047;
  --coral:      #f0793c;

  /* Navy accent family — used everywhere the
     code references --blue / --gold. Both names
     resolve to navy so existing rules pick up
     the accent color without per-file edits. */
  --blue:        #1a2c4d;
  --blue-light:  #2c4068;
  --blue-dark:   #0c1530;
  --gold:        #1a2c4d;        /* alias of --blue (legacy name) */
  --gold-light:  #2c4068;        /* alias of --blue-light (legacy name) */
  --color-accent:     #1a2c4d;
  --color-accent-rgb: 26, 44, 77;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
  font-weight: 300;
}

section { padding: 7rem 4rem; }

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--red);
  margin-right: 0.75rem;
  vertical-align: middle;
}


/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--blue);
  color: #ffffff;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 44, 77, 0.3);
}

/* Outline variant — transparent fill, navy border, fills on hover. */
.btn-primary.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-primary.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(26, 44, 77, 0.25);
}

.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.btn-secondary:hover { color: white; }


/* ══════════════════════════════════════════
   ANIMATIONS & REVEAL
   ══════════════════════════════════════════ */

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

@keyframes pulse-ring {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.7; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 1rem 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* When the nav is scrolled (white background), flip every text/icon
   from light to dark so it stays readable. The non-scrolled state
   keeps its white text because it sits over a dark hero. */
nav.scrolled .nav-logo            { color: var(--text); }
nav.scrolled .nav-item > a        { color: var(--text); }
nav.scrolled .nav-item > a:hover  { color: var(--blue-light); }
nav.scrolled .nav-item > a.active { color: var(--blue); }
nav.scrolled .nav-item > a::after        { background: var(--blue); }
nav.scrolled .nav-item > a.active::after { background: var(--blue); }
nav.scrolled .has-dropdown > a::before {
  border-right-color:  rgba(26, 44, 77, 0.5);
  border-bottom-color: rgba(26, 44, 77, 0.5);
}
nav.scrolled .has-dropdown:hover > a::before { border-color: var(--blue); }
nav.scrolled .search-toggle       { color: var(--text); }
nav.scrolled .search-toggle:hover { color: var(--blue); }
nav.scrolled .nav-toggle span     { background: var(--text); }
nav.scrolled .language-btn {
  background: rgba(26, 44, 77, 0.06);
  color: var(--text);
  border-color: rgba(26, 44, 77, 0.12);
}
nav.scrolled .language-btn:hover {
  background: rgba(26, 44, 77, 0.1);
  border-color: rgba(26, 44, 77, 0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-item > a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Default (over dark hero) — use white accents so the underline and
   active state stay visible. nav.scrolled overrides switch to navy
   below for the white-background state. */
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease, background 0.3s ease;
}

.nav-item > a:hover { color: white; }
.nav-item > a:hover::after { width: 100%; }

.nav-item > a.active { color: white; }
.nav-item > a.active::after { width: 100%; background: #ffffff; }

.has-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right:  1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin-left: 0.4rem;
  transition: transform 0.3s, border-color 0.3s;
  order: 1;
}

.has-dropdown:hover > a::before {
  transform: rotate(-135deg);
  border-color: #ffffff;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--blue);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  padding: 0.5rem 0;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-dropdown a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  padding-left: 1.5rem;
}

.nav-dropdown a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s;
}


/* ══════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════ */

.nav-search { position: relative; }

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.search-toggle:hover { color: white; }

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  background: var(--blue);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 0.75rem;
  z-index: 250;
  animation: fadeInDown 0.2s ease;
}

.search-panel.active { display: flex; }

.search-input {
  width: 220px;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { border-color: rgba(255, 255, 255, 0.6); }

.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
}

.search-close:hover { color: white; }


/* ══════════════════════════════════════════
   LANGUAGE SWITCHER
   ══════════════════════════════════════════ */

.language { position: relative; }

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
}

.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.language-btn .lang-code { font-family: var(--font-body); }

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  background: var(--blue);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  min-width: 170px;
  z-index: 200;
  animation: fadeInDown 0.2s ease;
}

.language-dropdown.active { display: block; }

.language-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.language-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  padding-left: 1.2rem;
}

.language-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.language-code { font-weight: 700; min-width: 24px; }
.language-name { flex: 1; font-weight: 300; }


/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

footer {
  background: #1a2c4d;
  padding: 4rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-logo span { color: var(--red); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: #ffffff; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ══════════════════════════════════════════
   SUBPAGE CONTENT
   Shared layout for the content body on
   service / consultancy sub-pages.
   ══════════════════════════════════════════ */

.subpage-content {
  background: var(--warm-white);
  padding: 5rem 5vw 6rem;
}

.subpage-content .services-inner,
.subpage-content > .subpage-inner {
  max-width: 920px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block:last-child { margin-bottom: 0; }

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.content-block p:last-child { margin-bottom: 0; }

.content-block ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.content-block ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.55rem;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--red);
}

/* Two-column grid for sub-page bullet lists (e.g. quality QA + QC,
   expertise + regulatory) and three-column for cards. */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.content-card {
  background: var(--color-bg);
  border: 1px solid rgba(26, 44, 77, 0.08);
  border-left: 3px solid var(--blue);
  padding: 1.75rem;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 0.65rem;
}

.content-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .subpage-content { padding: 3rem 1.25rem 4rem; }
  .content-block { margin-bottom: 2.25rem; }
  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* ══════════════════════════════════════════
   PAGE HERO (inner-page banner with optional slideshow)
   ══════════════════════════════════════════ */

.page-hero {
  padding: 160px 5vw 80px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
  max-width: 700px;
}

.page-hero p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.page-hero.has-slideshow {
  background: #1a1a1a;
  min-height: 500px;
}

.page-hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.page-hero-slide.active { opacity: 1; }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 20, 25, 0.75) 0%,
    rgba(30, 58, 95, 0.55) 50%,
    rgba(90, 155, 212, 0.40) 100%
  );
  z-index: 1;
}

.page-hero.has-slideshow .page-hero-label,
.page-hero.has-slideshow h1,
.page-hero.has-slideshow > p {
  color: white;
  position: relative;
  z-index: 3;
}

.page-hero.has-slideshow > p { color: rgba(255, 255, 255, 0.85); }

.page-hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.page-hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.page-hero-indicator:hover { border-color: rgba(255, 255, 255, 0.8); }

.page-hero-indicator.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════
   CTA BAND (used by inner pages)
   ══════════════════════════════════════════ */

.cta-band {
  background: var(--cream);
  color: var(--text);
  padding: 80px 5vw;
  text-align: center;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-band p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════
   SHARED RESPONSIVE
   Breakpoints (mobile-first reading):
     ≤1400px : large laptop / wide desktop tweaks
     ≤1200px : standard laptop
     ≤1024px : small laptop / large tablet
     ≤900px  : tablet
     ≤768px  : mobile menu kicks in
     ≤600px  : phone tightening
     ≤480px  : small phone
     ≤380px  : very small phone
   ══════════════════════════════════════════ */

/* Cap horizontal padding on huge monitors so content doesn't drift to
   the edges of ultrawide screens. */
@media (min-width: 1600px) {
  section { padding-left: 6rem; padding-right: 6rem; }
}

@media (max-width: 1200px) {
  nav          { padding: 1.3rem 2.5rem; }
  nav.scrolled { padding: 0.9rem 2.5rem; }
}

@media (max-width: 1024px) {
  section       { padding: 5rem 2rem; }
  nav           { padding: 1.2rem 2rem; }
  nav.scrolled  { padding: 0.8rem 2rem; }
}

/* Page-hero needs its own intermediate scale-down so the heading and
   body text don't crowd the indicators on tablet-sized screens. */
@media (max-width: 900px) {
  .page-hero { padding: 130px 5vw 70px; }
  .page-hero.has-slideshow { min-height: 420px; }
  .page-hero p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: block; z-index: 200; }
  .nav-utils  { display: none; }
  nav           { padding: 1rem 1.25rem; }
  nav.scrolled  { padding: 0.75rem 1.25rem; }

  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    justify-content: center;
    align-items: center;
    z-index: 150;
    gap: 1rem;
    overflow-y: auto;
  }

  .nav-links.mobile-open a {
    font-size: 1.3rem;
    padding: 0.75rem 1rem;
    display: block;
    color: var(--text);
  }

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

  .nav-links.mobile-open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: var(--cream);
    border-radius: 6px;
    min-width: auto;
    box-shadow: none;
    display: none;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
  }

  .nav-links.mobile-open .dropdown-open > .nav-dropdown { display: block; }

  .nav-links.mobile-open .nav-dropdown a {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    color: var(--text-light);
  }
  .nav-links.mobile-open .nav-dropdown a:hover { color: var(--red); }

  .nav-links.mobile-open .mobile-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
  }

  section { padding: 3.5rem 1.25rem; }

  footer            { padding: 3rem 1.25rem; }
  .footer-links     { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .footer-links a   { padding: 0.25rem; }

  .language { position: fixed; top: 1.25rem; right: 4rem; z-index: 150; }

  /* Hero on inner pages needs more room for indicators on phone heights. */
  .page-hero { padding: 110px 1.25rem 60px; }
  .page-hero.has-slideshow { min-height: 380px; }
  .page-hero h1 { max-width: 100%; }
  .page-hero p  { max-width: 100%; font-size: 0.95rem; line-height: 1.7; }
  .page-hero-indicators { bottom: 1.25rem; }

  /* CTA band — keep call-to-action button tappable and readable. */
  .cta-band { padding: 60px 1.25rem; }
  .cta-band p { font-size: 0.95rem; }
  .btn-primary { padding: 0.9rem 1.5rem; font-size: 0.8rem; }
}

@media (max-width: 600px) {
  /* Footer link wrap stays clean on phones. */
  .footer-links { gap: 0.6rem 1.2rem; }
  .footer-logo  { font-size: 1.2rem; }
  .footer-copy  { font-size: 0.72rem; line-height: 1.6; }
}

@media (max-width: 480px) {
  .language { top: 1rem; right: 3.5rem; }
  .nav-logo { font-size: 1.3rem; line-height: 1.15; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

@media (max-width: 380px) {
  section { padding: 3rem 1rem; }
  nav     { padding: 0.75rem 1rem; }
  .nav-logo { font-size: 1.15rem; }
  .language-btn { padding: 0.3rem 0.45rem; font-size: 0.7rem; }
  .language-btn .lang-code { display: none; }
  .page-hero { padding: 100px 1rem 50px; }
  .page-hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); line-height: 1.15; }
  .cta-band { padding: 50px 1rem; }
  .btn-primary { padding: 0.8rem 1.2rem; font-size: 0.75rem; gap: 0.5rem; }
}

