/* ==========================================================================
   SAT ALFA - Main Design System CSS
   ========================================================================== */

:root {
  --yellow: #F1FF0A;
  --black: #0D0C11;
  --white: #FFFFFF;
  --bg: #F4F4F2;
  --gray-text: #5B5B63;
  --success: #22C55E;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 24px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px rgba(13, 12, 17, 0.06);
  --shadow-hover: 0 14px 36px rgba(13, 12, 17, 0.12);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.15;
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  text-decoration: none;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 6px 20px rgba(241, 255, 10, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(241, 255, 10, 0.5);
}

.btn-secondary {
  background-color: var(--black);
  color: var(--yellow);
}

.btn-sparkle {
  color: var(--black);
}

.btn-secondary .btn-sparkle {
  color: var(--yellow);
}

.btn-outline {
  background-color: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

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

/* ==========================================================================
   Floating Navbar (Pill)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 24px;
  transition: background 250ms ease, box-shadow 250ms ease, color 250ms ease, border-color 250ms ease;

  /* Transparent / Dark Hero State */
  background: rgba(13, 12, 17, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

/* Scrolled State: Yellow Blur */
.navbar.is-scrolled {
  background: rgba(241, 255, 10, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #0D0C11;
  box-shadow: 0 8px 30px rgba(13, 12, 17, 0.12);
  border: 1px solid rgba(13, 12, 17, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar.is-scrolled {
    background: #F1FF0A;
  }
}

/* Brand */
.navbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
}

.brand-logo {
  color: var(--yellow);
  flex-shrink: 0;
}

.navbar.is-scrolled .brand-logo {
  color: #0D0C11;
}

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(10px, 1.2vw, 26px);
  margin: 0 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 1280px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .nav-links {
    gap: clamp(8px, 1vw, 16px);
  }
  .nav-item {
    font-size: clamp(12px, 0.8vw, 13.5px);
    padding: 6px 1px;
  }
}

@media (min-width: 1441px) {
  .nav-links {
    gap: clamp(10px, 1.2vw, 26px);
  }
  .nav-item {
    font-size: clamp(13px, 0.8vw, 15px);
    padding: 6px 2px;
  }
}

.nav-item {
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-item:hover {
  opacity: 1;
  color: var(--yellow);
}

.navbar.is-scrolled .nav-item {
  color: #0D0C11;
}

.navbar.is-scrolled .nav-item:hover {
  color: #0D0C11;
  opacity: 0.7;
}

/* Navbar Right (Phone + Lang) */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-phone {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-phone {
    display: inline-block;
  }
}

.nav-phone:hover {
  color: var(--yellow);
}

.navbar.is-scrolled .nav-phone {
  color: #0D0C11;
}

.navbar.is-scrolled .nav-phone:hover {
  color: rgba(13, 12, 17, 0.7);
}

.navbar.is-scrolled .burger-btn {
  color: #0D0C11;
}

/* Language Dropdown Switcher */
.lang-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .lang-dropdown-wrap {
    display: none;
  }
}

.lang-dropdown-btn {
  width: 64px;
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 8px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), transform var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lang-chevron {
  color: var(--white);
  transition: transform 150ms ease, color var(--transition-normal);
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* Scrolled state: dark button and black chevron */
.navbar.is-scrolled .lang-dropdown-btn {
  background: rgba(13, 12, 17, 0.08);
  border: 1px solid rgba(13, 12, 17, 0.12);
  color: #0D0C11;
}

.navbar.is-scrolled .lang-dropdown-btn:hover {
  background: rgba(13, 12, 17, 0.14);
}

.navbar.is-scrolled .lang-chevron {
  color: #0D0C11;
}

/* Dropdown Card (always white with black text) */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13, 12, 17, 0.18);
  border: 1px solid rgba(13, 12, 17, 0.08);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1100;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .lang-dropdown-menu {
    transition: none;
    transform: none;
  }
  .lang-chevron {
    transition: none;
  }
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0D0C11;
  text-decoration: none;
  border-radius: 12px;
  background: transparent;
  transition: background-color var(--transition-fast);
}

.lang-menu-item:hover {
  background: #F4F4F2;
  color: #0D0C11;
}

.lang-menu-item.active {
  background: #F4F4F2;
  color: #0D0C11;
  font-weight: 700;
}

.lang-name {
  flex: 1;
  white-space: nowrap;
}

.lang-check {
  color: #0D0C11;
  margin-left: auto;
  flex-shrink: 0;
}

/* Flag circles */
.flag-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
  flex-shrink: 0;
}

.flag-circle--row {
  width: 28px;
  height: 28px;
}

.flag-circle--sm {
  width: 20px;
  height: 20px;
}

/* Burger Toggle */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  color: inherit;
}

@media (min-width: 1280px) {
  .burger-btn {
    display: none;
  }
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ==========================================================================
   Mobile Fullscreen Menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto 0;
}

.mobile-nav-item {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-item:hover {
  color: var(--yellow);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-lang-switcher {
  display: flex;
  gap: 12px;
}

.mobile-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mobile-lang-pill:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-lang-pill.active {
  background: transparent;
  color: var(--white);
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow);
}

/* ==========================================================================
   Floating Call Button
   ========================================================================== */

.floating-call-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(13, 12, 17, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}

.floating-call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(13, 12, 17, 0.5);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

.section {
  min-height: 480px;
  padding: 100px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.section-hero {
  min-height: 100vh;
  background: linear-gradient(180deg, #0D0C11 0%, #17161F 100%);
  color: var(--white);
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: flex-end;
}

.hero-container {
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(36px, 6vw, 68px);
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title-line2 {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-text);
  max-width: 500px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--gray-text);
}

/* ==========================================================================
   Motion & Fade-up
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover, .floating-call-btn:hover {
    transform: none !important;
  }
  button, a {
    transition: none !important;
  }
}

/* ==========================================================================
   Accessibility: Focus Outlines
   ========================================================================== */

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

/* High contrast outline on dark backgrounds */
.section-hero :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.advantage-card--dark :focus-visible,
.contact-card :focus-visible,
.navbar:not(.is-scrolled) :focus-visible,
.floating-call-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* On yellow elements or active buttons, dark outline for contrast */
.btn-primary:focus-visible,
.events-banner :focus-visible,
.lang-dropdown-btn:focus-visible,
.lang-menu-item:focus-visible {
  outline: 2px solid var(--black) !important;
  outline-offset: 3px;
}

.form-input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive adjustments for small screens (<400px)
   ========================================================================== */

@media (max-width: 400px) {
  .site-header {
    padding: 0 8px;
  }
  .navbar {
    padding: 0 12px;
  }
  .navbar-right {
    gap: 8px;
  }
}
