:root {
  --primary: #2f6fa6;
  --accent: #f4a623;
  --bg: #0f141a;
  --bg-alt: #161c23;
  --surface: #1c232b;
  --text: #e6edf3;
  --text-muted: #9aa6b2;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --anchor-offset: clamp(84px, 16vh, 180px);
  --shadow-soft: rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --focus: rgba(244, 166, 35, 0.8);
  --max: 1060px;
  --section-pad-y: clamp(44px, 6vw, 72px);
  --section-pad-x: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: var(--anchor-offset);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .nav-backdrop {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(230, 237, 243, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: rgba(230, 237, 243, 0.85);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transform: translateY(-140%);
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 1200;
  background: rgba(15, 20, 26, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  --brand-color: #941100;
}

.brand-logo {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.brand-logo-image {
  display: block;
  width: min(920px, 92vw);
  height: auto;
}


.brand-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
}

.brand-email:hover {
  color: var(--text);
  text-decoration: underline;
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(28, 35, 43, 0.7);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text);
}

.menu-button-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: calc(var(--max) + 220px);
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid transparent;
  background: var(--bg);
}

.nav-inner {
  padding: 14px 10px;
  display: grid;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: rgba(47, 111, 166, 0.18);
  border-color: rgba(47, 111, 166, 0.45);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-main {
  min-width: 0;
}

.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  scroll-margin-top: var(--anchor-offset);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-main > .section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.site-main > .section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  opacity: 0.6;
  pointer-events: none;
}

.site-main > .section:first-child::before,
.site-main > .section:first-child::after {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.headline {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.lead {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 70ch;
}

h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.mt-lg {
  margin-top: 34px;
}

.service-subhead.mt-lg {
  margin-top: 48px;
}

.hero-media {
  margin-top: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(
      circle at 30% 20%,
      rgba(47, 111, 166, 0.35),
      rgba(47, 111, 166, 0) 60%
    ),
    radial-gradient(circle at 70% 40%, rgba(244, 166, 35, 0.25), rgba(244, 166, 35, 0) 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: 0 18px 44px var(--shadow-soft);
  height: clamp(220px, 40vh, 420px);
}

.lang-selector .lang-hero {
  position: relative;
}

.lang-selector .lang-hero-image {
  width: 100%;
  object-fit: cover;
  height: clamp(440px, 80vh, 840px);
}

.lang-selector .lang-hero-actions {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -88px);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: min(520px, calc(100% - 24px));
  padding: 10px;
  border-radius: 999px;
  background: rgba(15, 20, 26, 0.55);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
  .lang-selector .lang-hero-actions {
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
  }
}

.service-list {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--text);
}

.service-subhead {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 400;
  display: list-item;
  list-style-position: outside;
  margin-left: 18px;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}

.media-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  height: 240px;
  box-shadow: 0 16px 32px var(--shadow-soft);
}

.media-copy p {
  margin-top: 0;
  color: var(--text-muted);
}

.contact-pill {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.contact-list {
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}

.contact-list dt {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-list dd {
  margin: 0;
}

.site-footer {
  padding: 22px 16px 42px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1100;
}

/* Mobile: nav becomes an overlay drawer */
@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .nav-backdrop {
    display: block;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 88vw);
    transform: translateX(-110%);
    transition: transform 180ms ease;
    z-index: 1500;
    border-right: 1px solid var(--border-subtle);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    background: rgba(22, 28, 35, 0.98);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-inner {
    padding: 18px 14px;
    gap: 10px;
  }

  .media-row {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    font-size: 44px;
  }
}

/* Gallery */
.gallery-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 59, 59, 0.5);
  background: rgba(255, 59, 59, 0.08);
  border-radius: 12px;
}

.gallery-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.gallery-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.gallery-section h2 {
  margin-bottom: 10px;
}

.gallery-section p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 75ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-item button {
  all: unset;
  cursor: pointer;
  display: block;
  border-radius: 10px;
}

.gallery-item button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.gallery-item figcaption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-caption-title {
  font-size: 0.95rem;
  font-weight: 650;
}

.gallery-caption-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
  --lightbox-arrow-size: 46px;
  --lightbox-arrow-gap: 12px;
}

.lightbox.is-open {
  display: grid;
  grid-template-rows: 1fr;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
}

.lightbox-button {
  border: 1px solid var(--border-subtle);
  background: rgba(28, 35, 43, 0.85);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.lightbox-arrow {
  width: var(--lightbox-arrow-size);
  height: var(--lightbox-arrow-size);
  padding: 0;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox-button:hover {
  background: rgba(28, 35, 43, 1);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 16px 22px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 94vw);
  width: 100%;
  display: grid;
  gap: 12px;
  position: relative;
}

.lightbox-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--lightbox-arrow-gap);
  align-items: center;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 700px) {
  .lightbox {
    --lightbox-arrow-size: 40px;
    --lightbox-arrow-gap: 0px;
  }

  .lightbox-media {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }

  .lightbox-arrow {
    font-size: 22px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(15, 20, 26, 0.55);
    backdrop-filter: blur(10px);
  }

  .lightbox-arrow:first-child {
    left: 10px;
  }

  .lightbox-arrow:last-child {
    right: 10px;
  }

  .lightbox-image {
    max-height: 82vh;
  }

  .lightbox-caption {
    margin-inline: 0;
  }
}

.lightbox-caption {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(28, 35, 43, 0.78);
  backdrop-filter: blur(10px);
  max-width: 100%;
  margin-inline: calc(var(--lightbox-arrow-size) + var(--lightbox-arrow-gap));
}

.lightbox-caption .gallery-caption-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.lightbox-caption .gallery-caption-meta {
  font-size: 0.95rem;
}

@media (min-width: 901px) {
  .nav-backdrop {
    display: none;
  }

  .menu-button {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }
}
