/* ==========================================================================
   Geotest Consulting Engineers — Site Stylesheet (2026 redesign)
   Mobile-first, accessible (WCAG 2.1 AA), no build step, no framework.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand colors */
  --navy-950: #0b2233;
  --navy-900: #10314a;
  --navy-800: #163f5e;
  --navy-700: #1d4d70;
  --accent: #e38b29;        /* bright amber — decorative use on dark bg, large text/icons only */
  --accent-strong: #9c4d00; /* AA-compliant (>=4.5:1) on white, gray-50 and gray-100, and as white-on-accent for buttons */
  --accent-strong-hover: #7a3d00;
  --accent-100: #fdf1e2;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f7f8f9;
  --gray-100: #eef1f3;
  --gray-200: #dde3e7;
  --gray-300: #c3ccd2;
  --gray-600: #5b6b76;
  --gray-700: #46545e;
  --gray-800: #28343c;
  --gray-900: #161e23;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.75vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 3.375rem);

  /* Layout */
  --container: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 51, 0.08), 0 1px 1px rgba(11, 34, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 34, 51, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 34, 51, 0.18);
  --header-h: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; line-height: 1.2; color: var(--navy-950); margin: 0 0 0.6em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
figure { margin: 0; }
button { font-family: inherit; }

/* Visually-hidden but available to assistive tech */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--navy-950);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

/* Consistent focus ring everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Layout helpers ---- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--navy-950); color: var(--gray-200); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--gray-300); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.6em;
}
.section--dark .eyebrow { color: var(--accent); }
.sec-heading { max-width: 720px; margin-bottom: 40px; }
.sec-heading.centered { margin-inline: auto; text-align: center; }
.sec-heading p { color: var(--gray-600); font-size: 1.05rem; }
.section--dark .sec-heading p { color: var(--gray-300); }

/* ---- "Latest" carousels (homepage projects / news) ---- */
.sec-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-heading-row .sec-heading { margin-bottom: 0; }
.carousel-arrows { display: flex; gap: 10px; flex: none; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gray-300); background: var(--white);
  color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none; padding: 0;
}
.carousel-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--white); }
.carousel-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.section--dark .carousel-arrow { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.section--dark .carousel-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; height: 0; }
.carousel__item { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel__item > * { height: 100%; width: 100%; box-sizing: border-box; }
@media (min-width: 640px) {
  .carousel__item { flex-basis: calc(50% - 14px); }
}
@media (min-width: 1100px) {
  .carousel__item { flex-basis: calc(25% - 21px); }
}

.grid { display: grid; gap: 28px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: var(--white); }
.btn-primary:hover { background: var(--accent-strong-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-950); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy-950); }
.section--dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); }
.section--dark .btn-outline:hover { border-color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-950); }
.btn-light:hover { background: var(--gray-100); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- Header ---- */
.site-header { position: relative; z-index: 100; }
.header-bar-top {
  background: var(--navy-950);
  color: var(--gray-300);
  font-size: 0.85rem;
}
.header-bar-top .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 8px; }
.header-bar-top a { color: var(--gray-200); }
.header-bar-top a:hover { color: var(--white); }
.header-bar-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.header-bar-top li { display: flex; align-items: center; gap: 6px; }
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch__link {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gray-300);
}
.lang-switch__link:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,0.1); }
.lang-switch__link.is-current { color: var(--white); background: var(--accent-strong); }

.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.15s ease;
}
.site-header.is-stuck .header-main { box-shadow: var(--shadow-md); }
.header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { max-height: 46px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy-950); font-size: 1.15rem; letter-spacing: 0.02em; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav { }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--navy-950);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 10px;
  display: inline-block;
  border-radius: var(--radius-sm);
}
.main-nav > ul > li > a { white-space: nowrap; }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-active > a { color: var(--accent-strong); }
.main-nav .has-children { position: relative; }
.main-nav .has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
}
.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.main-nav .has-children:hover > .submenu,
.main-nav .has-children:focus-within > .submenu { display: block; }
.main-nav .submenu a { color: var(--gray-800); font-weight: 500; padding: 10px 12px; }
.main-nav .submenu a:hover { background: var(--gray-50); color: var(--accent-strong); }
.main-nav .webdrilling a { color: var(--accent-strong); }

/* Mobile nav
   Breakpoint is set above the English site's own needs (959px would do for
   EN alone) because the Greek and, especially, German nav labels are
   longer — "News & Media" -> "News & Medien", "Rigs and Equipment" ->
   "Bohrgeräte & Ausrüstung" etc. A single shared breakpoint keeps the
   header's height and layout consistent across all three languages
   instead of only the longest-label language switching to the mobile
   menu later than the others. */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 20px;
    padding-top: calc(var(--header-h) + 8px);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .submenu { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .main-nav .has-children.is-open > .submenu { display: block; }
  .main-nav .has-children > a::after { float: right; margin-top: 8px; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(11,34,51,0.5); z-index: 150; }
  .nav-backdrop.is-open { display: block; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

/* ---- Hero / page title band ---- */
.hero-band {
  position: relative;
  background: linear-gradient(180deg, rgba(11,34,51,0.82), rgba(11,34,51,0.82));
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 56px 0;
}
.hero-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero-band h1 { color: var(--white); margin-bottom: 0.25em; font-size: var(--step-3); }
.breadcrumb { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; font-size: 0.9rem; color: var(--gray-300); }
.breadcrumb a { color: var(--gray-300); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--white); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--gray-600); }

/* ---- Homepage hero (slider replaced by static/CSS carousel) ---- */
.home-hero { position: relative; overflow: hidden; background: var(--navy-950); }
.home-hero__track { display: flex; transition: transform 0.6s ease; }
.home-hero__slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 620px);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.home-hero__slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,34,51,0.88) 0%, rgba(11,34,51,0.55) 55%, rgba(11,34,51,0.25) 100%);
}
.home-hero__content { position: relative; z-index: 1; max-width: 640px; padding: 24px 20px; }
.home-hero__content .eyebrow { color: var(--accent); }
.home-hero__content .home-hero__title { color: var(--white); font-size: var(--step-4); margin-bottom: 0.2em; }
.home-hero__content p { font-size: 1.15rem; color: var(--gray-200); }
.home-hero__dots { position: absolute; z-index: 2; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.home-hero__dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--white); background: transparent; padding: 0; cursor: pointer;
}
.home-hero__dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.home-hero__arrow {
  position: absolute; z-index: 2; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.5);
  color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.home-hero__arrow:hover { background: rgba(255,255,255,0.3); }
.home-hero__arrow--prev { left: 16px; }
.home-hero__arrow--next { right: 16px; }
@media (max-width: 640px) { .home-hero__arrow { display: none; } }
@media (max-width: 640px) {
  /* Homepage "latest" carousels: the 4:3 card photo reads as oversized on a
     narrow phone screen, pushing the title/meta far below the fold. */
  .carousel .card__media { aspect-ratio: 16 / 9; }
}

/* ---- Stats / since-year band ---- */
.stats-band { display: grid; gap: 40px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .stats-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.stats-band > * { min-width: 0; }
.stats-band__images { position: relative; min-width: 0; min-height: 340px; margin: 20px 24px 60px 0; }
.stats-band__images::before {
  content: "";
  position: absolute;
  top: -20px; right: -24px;
  width: 58%; height: 46%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  z-index: 0;
}
.stats-band__images img { border-radius: var(--radius); object-fit: cover; position: absolute; }
.stats-band__images img:first-child {
  top: 0; left: 0;
  width: 76%; height: 100%;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(11,34,51,0.14);
}
.stats-band__images img:last-child {
  right: -24px; bottom: -40px;
  width: 46%; height: 48%;
  z-index: 2;
  border: 6px solid var(--white);
  box-shadow: 0 14px 30px rgba(11,34,51,0.2);
}
@media (min-width: 640px) { .stats-band__images { min-height: 420px; } }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { text-align: left; min-width: 0; }
.stat .num { overflow-wrap: anywhere; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--navy-950); display: block; }
.stat .label { color: var(--gray-600); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.since-year { margin-bottom: 16px; }
.since-year__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); margin: 0 0 6px; }
.since-year__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.since-year__img { height: 76px; width: auto; flex-shrink: 0; }
.since-year__work { margin: 0; line-height: 1.15; }
.since-year__lead { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-600); }
.since-year__work strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-strong); }
.since-year__word { display: block; font-size: 2rem; font-weight: 800; color: var(--navy-950); }

/* ---- Cards: services, projects, rigs, news ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0; }
.card__title a { color: var(--navy-950); text-decoration: none; }
.card__title a:hover { color: var(--accent-strong); }
.card__meta { color: var(--gray-600); font-size: 0.85rem; font-weight: 700; }
.card .card__meta { color: var(--gray-600); } /* keep card meta legible even when the card sits inside a .section--dark block */
.card__text { color: var(--gray-700); font-size: 0.95rem; flex: 1; }
.card__link { font-weight: 700; font-size: 0.9rem; color: var(--accent-strong); margin-top: auto; }

.service-icon-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.service-icon-card .icon {
  width: 56px; height: 56px; flex: none;
  border-radius: 12px;
  background: var(--accent-100);
  display: flex; align-items: center; justify-content: center;
}
.service-icon-card .icon img { width: 30px; height: 30px; object-fit: contain; }
.service-icon-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.service-icon-card p { color: var(--gray-700); margin-bottom: 0.5em; font-size: 0.95rem; }

/* ---- Info list (specs, project facts) ---- */
.info-list { list-style: none; margin: 0 0 1.2em; padding: 0; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.info-list li { display: flex; gap: 8px; padding: 12px 16px; font-size: 0.95rem; border-bottom: 1px solid var(--gray-200); }
.info-list li:last-child { border-bottom: none; }
.info-list li:nth-child(odd) { background: var(--gray-50); }
.info-list span.label { font-weight: 700; color: var(--navy-950); min-width: 140px; }

/* ---- Content / prose area used on service & project detail pages ---- */
.prose a:hover, .prose a:focus-visible { color: var(--accent-strong-hover); }
.prose h2, .prose h3 { margin-top: 1.2em; }
/* "Visit the following chapters for more details" style link lists —
   presented the same modern, no-underline way as the sidebar service nav. */
.prose ul:not(.check-list) {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prose ul:not(.check-list) > li { margin: 0; }
.prose ul:not(.check-list) > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.prose ul:not(.check-list) > li > a::after {
  content: "\2192";
  opacity: 0;
  transform: translateX(-4px);
  color: var(--accent-strong);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.prose ul:not(.check-list) > li > a:hover,
.prose ul:not(.check-list) > li > a:focus-visible {
  background: var(--accent-100);
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
  padding-left: 18px;
}
.prose ul:not(.check-list) > li > a:hover::after,
.prose ul:not(.check-list) > li > a:focus-visible::after { opacity: 1; transform: translateX(0); }
.prose-img { border-radius: var(--radius); margin: 0 0 1.2em; }
.prose .check-list, .prose ul { margin-bottom: 1.2em; }
.prose ul.check-list { list-style: none; padding: 0; }
.prose ul.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ul.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-100);
  box-shadow: inset 0 0 0 2px var(--accent-strong);
}
.gallery-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.gallery-strip a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-strip .tall { grid-row: span 2; }
@media (max-width: 560px) { .gallery-strip { grid-template-columns: 1fr; } .gallery-strip .tall { grid-row: auto; } }

/* ---- Two-column layout with sidebar (service/news detail pages) ---- */
.layout-with-sidebar { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .layout-with-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.layout-with-sidebar.sidebar-left { }
@media (min-width: 900px) { .layout-with-sidebar.sidebar-left { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.layout-with-sidebar > * { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.sidebar-box h3, .sidebar-box .sidebar-box__heading { font-size: var(--step-1); margin-bottom: 12px; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-box li { border-bottom: none; }
.sidebar-box a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.sidebar-box a:not(.btn)::after {
  content: "\2192";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: var(--accent-strong);
}
.sidebar-box a:not(.btn):hover,
.sidebar-box a:not(.btn):focus-visible {
  background: var(--accent-100);
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
  text-decoration: none;
  padding-left: 16px;
}
.sidebar-box a:not(.btn):hover::after,
.sidebar-box a:not(.btn):focus-visible::after { opacity: 1; transform: translateX(0); }
.sidebar-box a:not(.btn)[aria-current="page"] {
  background: var(--accent-100);
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
}
.sidebar-box.cta-box { background: var(--navy-950); color: var(--white); text-align: left; }
.sidebar-box.cta-box h3, .sidebar-box.cta-box h4 { color: var(--white); }
.sidebar-box.cta-box p { color: var(--gray-300); font-size: 0.9rem; }

/* ---- Filter tabs (projects / gallery) ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button {
  background: var(--white); border: 1px solid var(--gray-300); color: var(--gray-700);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.filter-bar button[aria-pressed="true"] { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
[hidden] { display: none !important; }

/* ---- Prev/next & pagination ---- */
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.prev-next a { font-weight: 700; color: var(--navy-950); }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy-900);
  background-image: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 48px 0;
}
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: var(--white); margin: 0; font-size: var(--step-2); }
.cta-band p { color: var(--gray-300); margin: 4px 0 0; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy-950); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy-800); }
.field.full { grid-column: 1 / -1; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: var(--gray-300); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 28px 0; }
.footer-top ul { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-top ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-top li { display: flex; gap: 12px; align-items: flex-start; }
.footer-top strong { display: block; color: var(--white); }
.footer-top a { color: var(--gray-300); text-decoration: none; }
.footer-top a:hover, .footer-top a:focus-visible { color: var(--white); }
.footer-main { padding: 48px 0; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-main h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.footer-main .text { color: var(--gray-300); font-size: 0.95rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-main a { color: var(--gray-300); }
.footer-main a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--gray-300); }
.social-row { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.social-row a:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---- Misc ---- */
.map-frame { width: 100%; height: 420px; border: 0; display: block; }
.text-accent { color: var(--accent-strong); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-100); color: var(--accent-strong); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
hr.rule { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }
.lightbox-trigger { position: relative; display: block; cursor: zoom-in; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(11,34,51,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
}
.lb-figure { margin: 0; max-width: min(90vw, 1100px); }
.lb-figure img { display: block; max-width: 100%; max-height: 78vh; border-radius: 6px; margin-inline: auto; }
.lb-caption { color: var(--gray-200); text-align: center; margin-top: 12px; font-size: 0.95rem; min-height: 1.2em; }
.lb-close, .lb-arrow {
  position: absolute;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.5); color: #fff;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 20px; right: 20px; }
.lb-arrow { top: 50%; translate: 0 -50%; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: var(--gray-300); font-size: 0.85rem; }
@media (max-width: 640px) {
  .lb-arrow { width: 38px; height: 38px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Homepage preloader — a full-screen "wow" first-load moment built from a
   hero slide photo: it slowly zooms (Ken Burns) while the logo pops in on
   top, then the whole screen lifts away like a curtain once site.js knows
   the page has actually finished loading. Homepage only. */
html.has-preloader, html.has-preloader body { overflow: hidden; height: 100%; }

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-950);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-preloader__photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  animation: preloaderZoom 3.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.page-preloader__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 51, 0.55), rgba(11, 34, 51, 0.72) 55%, rgba(11, 34, 51, 0.88));
}
.page-preloader__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: scale(0.55);
  animation: preloaderBrandIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}
@keyframes preloaderZoom {
  from { transform: scale(1); }
  to { transform: scale(1.18); }
}
@keyframes preloaderBrandIn {
  to { opacity: 1; transform: scale(1); }
}
.page-preloader__badge {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.page-preloader__badge img { display: block; height: 34px; width: auto; }
.page-preloader__bar {
  width: 160px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.page-preloader__bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: var(--accent);
  animation: preloaderBar 1.1s ease-in-out infinite;
}
@keyframes preloaderBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}
.page-preloader.is-leaving {
  transform: translateY(-100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-preloader__photo,
  .page-preloader__brand,
  .page-preloader__bar::after { animation: none; }
  .page-preloader__brand { opacity: 1; transform: none; }
  .page-preloader { transition: opacity 0.4s ease; }
  .page-preloader.is-leaving { transform: none; opacity: 0; }
}
