/* Typography + spacing inspired by minimal agency sites */
:root {
  --brand-muted: #6c757d;
  --section-pad-y: 6rem;
  --bs-border-radius: 0.6rem;
  --vh-100: 100vh;   /* fallback */
  --vh-100: 100svh;  /* stable on iOS 16+ / modern Safari */
}
@supports (height: 100dvh) {
  :root { --vh-100: 100dvh; }
}
.hero-full { min-height: var(--vh-100); }

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

/* Backdrop blur with WebKit fallback */
.blur {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Buttons/links always show focus (keyboard) */
:focus-visible { outline: 2px solid #CBA135; outline-offset: 2px; }

/* Bootstrap helpers: ensure links don’t force underline if you opted out */
a.footer-link { text-decoration: none; }
a.footer-link:hover { text-decoration: none; color: #CBA135; }

/* Big, tight hero display */
.display-hero {
  font-family: "Roboto", Inter, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

/* Section spacing */
.section {
  padding: var(--section-pad-y) 0;
}

/* Editorial section headings */
.section-title {
  font-family: "Roboto", Inter, sans-serif;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--brand-muted);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin-bottom: 2rem;
}

/* Cards: crisp and light */
.card {
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
}

/* Project tiles */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius);
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}
.tile:hover img { transform: scale(1.03); }

/* Stats */
.stat-title {
  font-family: "Roboto", Inter, sans-serif;
  font-size: clamp(0.75rem, 0.75rem + 3vw, 4rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.stat-title-highlight {
  color: var(--bs-primary);
}
.stat {
  /*font-family: "Space Grotesk", Inter, sans-serif;*/
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.stat-label {
  color: var(--brand-muted);
  margin-top: .25rem;
}

/* FAQ */
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) {
  color: #000;
  background-color: rgba(0,0,0,.03);
}

/* Dark navbar: tidy the language select */
.navbar .form-select.form-select-sm {
  background-color: transparent;
  color: #3a3a3a;
  border: None;
  border-color: rgba(255,255,255,.5);
}
.navbar .form-select.form-select-sm:focus {
  box-shadow: none;
  border-color: #f81212;
}

/* Optional: nicer focus styles on links/buttons */
a, .btn:focus, .form-control:focus, .form-select:focus {
  outline: none;
  /*box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);*/
}


/* ----- Footer styles ----- */
.footer a.footer-link {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.footer a.footer-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Social icons: subtle circles */
.social-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}
.social-icon:hover {
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}

/* Language switcher container */
.lang-switcher {
  position: relative;
  background-color: transparent;
  border: none;
}

/* Toggle button keeps things tidy */
.lang-toggle .flag {
  border-radius: none;
  object-fit: cover;
}

/* Dropdown menu */
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  background-color: none;
  display: none;
  z-index: 1050; /* above navbar */
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  box-shadow: none;
  border-radius: .5rem;
}

/* OPEN ON HOVER (and keep accessible for keyboard) */
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
  display: block;
}

/* Show when open */
.lang-switcher.open .lang-menu {
  display: block;
  width: inherit;
}

/* When JS adds .force-close, hide the menu even if hovered/focused */
.lang-switcher.force-close .lang-menu {
  display: none !important;
}

/* Option buttons */
.lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: .6rem .8rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  /*border-radius: .375rem;*/
  font-size: .9375rem;
  color: #3a3a3a;
}


.lang-option:hover,
.lang-option:focus {
  background: var(--bs-link-color);
  color: white;
  outline: none;
}

.lang-option .flag {
  border-radius: 2px;
}

/* High-contrast tweak for dark mode */
[data-bs-theme="dark"] .lang-menu {
  background: var(--bs-body-bg, #1c1c1c);
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .lang-option:hover,
[data-bs-theme="dark"] .lang-option:focus {
  background: rgba(255,255,255,.06);
}