html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(251, 191, 36, 0.25);
  color: #111827;
}

/* =========================
   HEADER / MENU
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  color: #ffffff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.brand-link:hover {
  color: #fbbf24;
  transform: translateY(-1px);
}

.site-header-right {
  width: min(100%, 1140px);
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.28;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 28px rgba(0,0,0,0.18);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-pill:hover {
  transform: translateY(-2px);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 34px rgba(0,0,0,0.28);
}

.nav-pill:active {
  transform: translateY(0);
}

.nav-pill-active {
  background: linear-gradient(180deg, #fcd34d, #fbbf24);
  color: #000000 !important;
  border-color: #fbbf24;
  box-shadow:
    0 14px 32px rgba(251, 191, 36, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.nav-pill-active:hover {
  color: #000000 !important;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: #fbbf24;
}

.header-contact-row {
  display: flex;
  justify-content: flex-end;
}

.nav-pill-contact {
  min-width: 180px;
  background: linear-gradient(180deg, #fcd34d, #fbbf24);
  color: #000000;
  border-color: #fbbf24;
  font-weight: 800;
}

.nav-pill-contact:hover {
  color: #000000;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: #fbbf24;
}

/* =========================
   BUTTONS
========================= */

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: #fbbf24;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.22);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  background: #fcd34d;
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.28);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.45);
}

/* =========================
   CARDS / EFFECTS
========================= */

.card-hover {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
}

.soft-glow {
  position: relative;
}

.soft-glow::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  background: rgba(251, 191, 36, 0.10);
  filter: blur(40px);
  border-radius: 999px;
  pointer-events: none;
}

/* =========================
   ANIMATIONS
========================= */

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================
   FORMS
========================= */

.focus-ring-amber:focus,
.focus-ring-amber:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35);
  border-color: #fbbf24;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1380px) {
  .site-header-inner {
    gap: 22px;
  }

  .brand-link {
    font-size: 26px;
  }

  .nav-pill {
    font-size: 14px;
    min-height: 56px;
    padding: 10px 14px;
  }
}

@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: 1fr;
  }

  .site-header-right {
    width: 100%;
    justify-self: stretch;
  }

  .nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-contact-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: 14px 14px;
  }

  .brand-link {
    font-size: 24px;
    min-height: auto;
  }

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

  .nav-pill {
    min-height: 54px;
    font-size: 14px;
  }

  .nav-pill-contact {
    min-width: 100%;
  }
}