:root {
  --black: #0a0a0a;
  --black-soft: #151515;
  --white: #ffffff;
  --silver: #f3f4f6;
  --silver-dark: #c9ced6;
  --gray: #656b74;
  --line: rgba(15, 15, 15, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.10);
  --radius: 24px;
  --radius-small: 14px;
  --container: 1180px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 860px);
}

.section {
  padding: 110px 0;
}

.silver-section {
  background: linear-gradient(180deg, #fff, var(--silver));
}

.black-section {
  background: var(--black);
  color: var(--white);
}

.align-center {
  align-items: center;
}

.hidden {
  display: none !important;
}

.top-gap {
  margin-top: 28px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  background: var(--white);
  color: var(--black);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.22), transparent 24%),
    linear-gradient(100deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.30) 100%);
  z-index: -1;
}

.hero-content {
  padding-top: 100px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 900;
  color: rgba(255,255,255,0.82);
}

.eyebrow.dark {
  color: var(--gray);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.6vw, 5.9rem);
  max-width: 980px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.7rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

p {
  color: inherit;
}

.hero-lead {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 34px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.06);
}

.btn-outline-dark {
  color: var(--black);
  border-color: rgba(0,0,0,0.18);
  background: var(--white);
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
}

/* Layout */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 6vw, 86px);
}

.feature-card,
.profile-card,
.service-aside,
.form-card,
.wizard,
.contact-card,
.cta-card,
.value-card,
.language-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-card.elevated {
  transform: rotate(1deg);
}

.feature-card img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature-card div {
  padding: 28px;
}

.feature-card a {
  font-weight: 900;
}

.section-header {
  max-width: 860px;
  text-align: center;
  margin: 0 auto 54px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.08rem;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-service-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.photo-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: -2;
  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.72));
  z-index: -1;
  transition: background 250ms ease;
}

.photo-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  transform: translateY(52px);
  transition: transform 250ms ease;
}

.photo-card-content i {
  font-size: 2rem;
  margin-bottom: 18px;
}

.photo-card-content p,
.photo-card-content span {
  opacity: 0;
  transform: translateY(10px);
  transition: 250ms ease;
}

.photo-service-card:hover img {
  transform: scale(1.08);
  filter: saturate(0.75);
}

.photo-service-card:hover .photo-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.88));
}

.photo-service-card:hover .photo-card-content {
  transform: translateY(0);
}

.photo-service-card:hover .photo-card-content p,
.photo-service-card:hover .photo-card-content span {
  opacity: 1;
  transform: translateY(0);
}

.photo-card-content span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

/* Parallax / Page hero */
.parallax-section,
.page-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}

.parallax-section::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0,0,0,0.82), rgba(0,0,0,0.36));
  z-index: -1;
}

.parallax-content {
  max-width: 830px;
  text-align: center;
}

.parallax-content h2 {
  color: var(--white);
}

.parallax-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.84);
}

.page-hero {
  min-height: 520px;
  padding-top: 120px;
}

.page-hero .container {
  max-width: 980px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 6.4rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 1.18rem;
}

/* Cards / Grids */
.language-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.language-card,
.value-card {
  padding: 28px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.language-card:hover,
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.language-card img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.value-card i {
  font-size: 2.3rem;
  margin-bottom: 18px;
}

.value-card p,
.language-card p {
  color: var(--gray);
}

.check-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 28px 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: list-item;
  padding-left: 4px;
  color: rgba(255,255,255,0.86);
}

.dark-list li {
  color: var(--black);
}

.check-list i {
  display: none;
}
.media-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-placeholder img {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.92);
  color: var(--black);
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 180ms ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.city-grid,
.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.city-grid span,
.keyword-pills span {
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  color: var(--black);
  font-weight: 800;
  font-size: 0.93rem;
}

.seo-copy {
  max-width: 1000px;
  margin: 36px auto 0;
  color: var(--gray);
  text-align: center;
}

.cta-section {
  padding-top: 72px;
}

.cta-card {
  padding: clamp(26px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #fff, #f6f6f6);
}

.cta-card p {
  color: var(--gray);
}

/* Profile / Aside */
.profile-card img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.profile-card div {
  padding: 28px;
}

.service-aside {
  padding: 18px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.service-aside img {
  border-radius: 18px;
  width: 100%;
  min-height: 270px;
  object-fit: cover;
}

.aside-box {
  padding: 22px;
  background: var(--silver);
  border-radius: 18px;
}

.aside-box p {
  color: var(--gray);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 14px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--gray);
}

.accordion.large summary {
  font-size: 1.15rem;
}

/* Contact / Forms */
.contact-card {
  padding: 30px;
  margin-bottom: 22px;
}

.contact-card p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.map-placeholder {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.map-placeholder img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.form-card,
.wizard {
  padding: clamp(24px, 4vw, 44px);
}

.form-card label,
.wizard label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  background: var(--white);
  color: var(--black);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-weight: 800;
}

.alert.success {
  background: #ecfdf3;
  color: #035c2c;
  border: 1px solid #bce7cc;
}

.alert.error {
  background: #fff0f0;
  color: #8a1717;
  border: 1px solid #f2c2c2;
}

.turnstile-wrap {
  margin: 18px 0;
  min-height: 68px;
}

/* Wizard */
.wizard-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
}

.wizard-progress span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--silver);
  font-weight: 900;
  color: var(--gray);
  border: 1px solid var(--line);
}

.wizard-progress span.active {
  background: var(--black);
  color: var(--white);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepIn 260ms ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.option-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  min-height: 170px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.option-card:hover,
.option-card.selected {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--black);
}

.option-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.language-options .option-card img {
  height: 72px;
  width: 96px;
}

.option-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.18;
  margin-bottom: 8px;
}

.option-card span {
  color: var(--gray);
  display: block;
  font-size: 0.92rem;
}

.icon-option i {
  font-size: 2.4rem;
  margin-bottom: 24px;
}

.wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review-box {
  background: var(--silver);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.review-box p {
  color: var(--gray);
  margin: 4px 0;
}

.wizard-step.needs-choice .option-card {
  border-color: rgba(138, 23, 23, 0.35);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 82px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255,255,255,0.75);
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-list.compact li {
  display: block;
}

.footer a:hover {
  color: var(--white);
}

.city-cloud {
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
}

.footer__bottom-inner {
  min-height: 56px;
  display: block;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 30;
}

/* Tablet / Mobile nav */
@media (max-width: 1120px) {
  .service-grid,
  .language-grid,
  .value-grid,
  .option-grid,
  .option-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

    .footer-grid {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .navbar {
    min-height: 74px;
  }

  .nav-menu {
    top: 78px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-actions,
  .wizard-controls,
  .cta-card {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-trust span {
    width: 100%;
  }

  .split-grid,
  .service-grid,
  .language-grid,
  .value-grid,
  .option-grid,
  .option-grid.three,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-service-card {
    min-height: 360px;
  }

  .photo-card-content {
    transform: translateY(0);
  }

  .photo-card-content p,
  .photo-card-content span {
    opacity: 1;
    transform: none;
  }

  .parallax-section,
  .page-hero {
    background-attachment: scroll;
    min-height: 470px;
  }

  .cta-card {
    text-align: center;
  }

  .wizard {
    padding: 22px;
  }

  .wizard-progress {
    justify-content: center;
  }

  .wizard-progress span {
    width: 35px;
    height: 35px;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}


/* nav 

/* Header / Navbar */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(10px);
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header.scrolled,
.site-header:focus-within {
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.76);
}

.top-bar-inner {
  width: min(100% - 32px, 1320px);
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-bar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.3;
}

.top-bar-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.top-bar-links > a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 160ms ease;
}

.top-bar-links > a:hover {
  color: var(--white);
}

.navbar {
  position: relative;
  width: min(100% - 32px, 1320px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.brand-text small {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
}

.nav-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.nav-links > a,
.nav-dropdown-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 0.93rem;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-dropdown-trigger i {
  font-size: 0.82rem;
  transition: transform 160ms ease;
}

.nav-dropdown.open .nav-dropdown-trigger i,
.nav-dropdown:hover .nav-dropdown-trigger i,
.nav-dropdown:focus-within .nav-dropdown-trigger i {
  transform: rotate(180deg);
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 17px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-cta:hover {
  background: var(--silver);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.nav-dropdown {
  position: relative;
}

/* Hover bridge so the dropdown does not disappear when moving from button to menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 16px;
  display: none;
}

.nav-dropdown:hover::after,
.nav-dropdown.open::after,
.nav-dropdown:focus-within::after {
  display: block;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-heading {
  padding: 6px 8px 12px;
  display: grid;
  gap: 2px;
}

.dropdown-heading strong {
  color: var(--white);
  font-size: 0.98rem;
}

.dropdown-heading span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dropdown-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.dropdown-grid a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

.dropdown-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.dropdown-grid strong,
.dropdown-grid small {
  display: block;
  line-height: 1.2;
}

.dropdown-grid strong {
  font-size: 0.92rem;
}

.dropdown-grid small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.language-switcher {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.language-switcher select {
  width: auto;
  max-width: 130px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  outline: 0;
  cursor: pointer;
  font-size: 0.82rem;
}

.language-switcher option {
  color: var(--black);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Give hero/page headers room for the taller fixed header */
.hero-content {
  padding-top: 148px;
}

.page-hero {
  padding-top: 156px;
}

/* Tablet / Mobile navbar */
@media (max-width: 1100px) {
  .top-bar-inner {
    min-height: 36px;
  }

  .top-bar-note {
    font-size: 0.78rem;
  }

  .navbar {
    min-height: 74px;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100vh - 138px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 12, 12, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links,
  .nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
  }

  .nav-links > a,
  .nav-dropdown-trigger,
  .nav-cta {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
  }

  .nav-cta {
    justify-content: center;
    background: var(--white);
  }

  .nav-dropdown-trigger {
    display: flex;
    justify-content: space-between;
  }

  .nav-dropdown:hover .nav-dropdown-trigger i,
  .nav-dropdown:focus-within .nav-dropdown-trigger i {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-trigger i {
    transform: rotate(180deg);
  }

  .nav-dropdown::after {
    display: none !important;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition:
      max-height 220ms ease,
      opacity 160ms ease,
      padding 160ms ease,
      margin 160ms ease;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    pointer-events: none;
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    padding: 8px;
    margin-top: 8px;
    pointer-events: auto;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 760px) {
  .top-bar-note {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .top-bar-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .top-bar-links > a {
    font-size: 0.78rem;
  }

  .language-switcher {
    margin-left: auto;
  }

  .navbar {
    width: min(100% - 24px, 1320px);
    min-height: 72px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .brand-text strong {
    font-size: 0.93rem;
  }

  .nav-menu {
    max-height: calc(100vh - 128px);
    border-radius: 20px;
  }

  .hero-content {
    padding-top: 138px;
  }

  .page-hero {
    padding-top: 138px;
  }
}

@media (max-width: 420px) {
  .top-bar-links > a {
    display: none;
  }

  .top-bar-links {
    justify-content: flex-end;
  }

  .brand-text strong {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .parallax-section,
  .page-hero {
    background-attachment: scroll;
  }
}


@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.15rem, 9vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.55rem);
  }
}