/* Header stack — utility row + main nav (utility hides on scroll down) */
.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-top-bar {
  background: linear-gradient(90deg, var(--color-charcoal) 0%, var(--color-ocean) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-xs);
  max-height: var(--top-bar-height);
  overflow: hidden;
  transition:
    max-height 0.35s var(--ease-luxury),
    opacity 0.3s ease,
    transform 0.35s var(--ease-luxury);
}

.site-header-stack.is-utility-hidden .site-top-bar {
  max-height: 0;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.site-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--top-bar-height);
  padding-block: var(--space-xs);
}

.site-top-bar__region {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  white-space: nowrap;
}

.site-top-bar__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-top-bar__contacts a,
.site-top-bar__location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
}

.site-top-bar__contacts a:hover {
  color: var(--color-white);
}

.site-top-bar__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.site-top-bar__label {
  font-weight: 600;
  margin-right: 0.15em;
}

/* Main nav bar */
.site-header {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    box-shadow 0.4s var(--ease-luxury),
    border-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-gray-100);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.logo:hover { opacity: 0.92; }
.logo__img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: min(260px, 52vw);
  object-fit: contain;
}
.logo--footer .logo__img {
  max-height: 56px;
  max-width: 240px;
}
.logo__fallback {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--color-gray-100);
}
.main-nav.is-open { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: var(--space-md);
  color: var(--color-gray-700);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover,
.nav-link.is-active { color: var(--color-navy); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-lg);
  display: none;
}
.has-dropdown.is-open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}
.dropdown a:hover { color: var(--color-maroon); }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-100);
}

.site-header .btn--outline {
  color: var(--color-maroon);
  border-color: var(--color-maroon);
}
.site-header .btn--outline:hover {
  background: var(--color-maroon);
  color: var(--color-white);
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    align-items: center;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
    gap: var(--space-md);
  }
  .nav-list { display: flex; align-items: center; gap: 0; }
  .nav-link { padding: var(--space-sm) var(--space-md); width: auto; }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    padding: var(--space-sm) 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
  }
  .dropdown a { color: var(--color-gray-700); padding: var(--space-sm) var(--space-lg); }
  .dropdown a:hover { background: var(--color-gray-100); color: var(--color-navy); }
  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-actions {
    flex-direction: row;
    margin: 0;
    padding: 0;
    border: none;
  }
}

/* Hero slider — full viewport below header (homepage); light blue overlay (~0.3) */
.hero {
  position: relative;
  width: 100%;
  color: var(--color-white);
  overflow: hidden;
  background-color: var(--color-navy-light);
}
.page-home .hero--slider {
  --hero-height: calc(100vh - var(--header-stack-height));
  --hero-height: calc(100dvh - var(--header-stack-height));
  --hero-nav-height: 3.25rem;
  display: flex;
  flex-direction: column;
  min-height: var(--hero-height);
  height: var(--hero-height);
}

/* Desktop home hero layout — see asia-layout.css (full-bleed slides) */
@media (max-width: 767px) {
  .page-home .hero--slider {
    min-height: var(--hero-height);
    height: auto;
  }
}

.page-home .hero-slides {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease-luxury), visibility 1.1s var(--ease-luxury);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 45, 58, 0.72) 0%, rgba(26, 107, 138, 0.45) 42%, rgba(26, 107, 138, 0.2) 68%, transparent 85%),
    linear-gradient(to top, rgba(26, 45, 58, 0.55) 0%, transparent 50%);
  pointer-events: none;
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: var(--space-xl) 0 var(--space-2xl);
  box-sizing: border-box;
}
.hero-slide__copy {
  max-width: 640px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-charcoal);
  background: var(--color-soil-light);
  padding: 0.45em 1em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  text-shadow: none;
}
.hero__headline {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.hero__rule {
  flex-shrink: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-soil-light), var(--color-ocean-light));
  border-radius: 2px;
  opacity: 0.95;
}
.hero h1 {
  color: var(--color-white);
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4.5vw, var(--text-hero));
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__lead {
  font-size: var(--text-lg);
  max-width: 520px;
  opacity: 0.95;
  margin-bottom: var(--space-2xl);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.hero .btn--outline {
  color: var(--color-white);
  border-color: var(--color-white);
}
.hero .btn--outline:hover {
  background: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-white);
}
/* Slide indicators — in flow on mobile (no overlap); overlay on large screens */
.hero-slider__nav {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: var(--hero-nav-height);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  margin: 0;
  background: linear-gradient(to top, rgba(26, 107, 138, 0.35), transparent);
}
.hero-slider__dot {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-slider__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: transform var(--transition), background var(--transition);
}
.hero-slider__dot:hover::before,
.hero-slider__dot:focus-visible::before {
  transform: scale(1.2);
}
.hero-slider__dot:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
.hero-slider__dot.is-active::before {
  background: var(--color-maroon-light);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .page-home .hero--slider {
    --hero-nav-height: 3.5rem;
  }
  .hero-slide__media { background-position: 55% center; }
  .hero-slide__content {
    align-items: flex-start;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero__headline {
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }
  .hero__rule { width: 2px; }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    line-height: 1.2;
  }
  .hero__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
  }
  .hero__lead {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
    max-width: none;
  }
  .hero__actions {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: var(--text-sm);
  }
  .hero__actions .btn--lg {
    padding: 0.85rem 1.25rem;
  }
  .hero-slider__nav {
    gap: 0.25rem;
    padding: var(--space-xs) var(--space-sm) max(var(--space-md), env(safe-area-inset-bottom));
    background: rgba(30, 143, 196, 0.45);
  }
  .hero-slider__dot::before {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.25rem; }
  .hero__lead { font-size: var(--text-sm); }
  .hero__actions .btn { padding: 0.75rem 1rem; }
}

/* Short mobile screens (landscape / small phones) */
@media (max-width: 768px) and (max-height: 520px) {
  .page-home .hero--slider {
    --hero-nav-height: 2.75rem;
  }
  .hero-slide__content {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-xs);
  }
  .hero__lead { margin-bottom: var(--space-sm); }
  .hero__actions .btn { padding: 0.6rem 1rem; }
  .hero-slider__nav { padding-top: 0; padding-bottom: var(--space-sm); }
  .hero-slider__dot { width: 2rem; height: 2rem; }
}

@media (min-width: 769px) {
  .hero-slider__nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    flex-shrink: 0;
    min-height: 0;
    gap: 0.75rem;
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    background: transparent;
    pointer-events: none;
  }

  .hero-slider__nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 70%);
    pointer-events: none;
  }
  .hero-slider__dot {
    pointer-events: auto;
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Sections */
.section { padding: var(--space-4xl) 0; }
.section--alt { background: var(--color-off-white); }
.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-white); }
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}
.section__header p { color: var(--color-gray-500); }

/* Grid */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-ocean) 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}
.page-hero h1 { color: var(--color-white); margin: 0; }
.page-hero--compact {
  padding: var(--space-2xl) 0;
}
.page-hero--compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.page-hero .breadcrumb {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  opacity: 0.85;
}
.page-hero .breadcrumb a { color: var(--color-white); }
.page-hero .breadcrumb a:hover { color: var(--color-maroon-light); opacity: 1; }
.page-hero__lead {
  max-width: 640px;
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  opacity: 0.92;
  line-height: 1.5;
}
.page-hero--image {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-navy);
  background-image:
    linear-gradient(105deg, rgba(41, 171, 226, 0.92) 0%, rgba(41, 171, 226, 0.8) 50%, rgba(30, 143, 196, 0.65) 100%),
    var(--page-hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero--image .container { position: relative; z-index: 1; }

/* Footer */
.site-footer {
  background: linear-gradient(165deg, var(--color-charcoal) 0%, var(--color-ocean) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p { font-size: var(--text-sm); opacity: 0.85; }
.footer-meta {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  font-size: var(--text-sm);
  opacity: 0.9;
}
.footer-meta li {
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.footer-meta a {
  color: rgba(255, 255, 255, 0.92);
}
.footer-meta a:hover {
  color: var(--color-white);
}
.footer-tagline {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: var(--space-md) 0 var(--space-sm);
}
.footer-col h3 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--text-sm);
  opacity: 0.85;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.9); }
.footer-credit {
  padding: 0 0 var(--space-lg);
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.8;
}
.footer-credit p { margin: 0; }
.footer-credit a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.footer-credit a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Client zone layout */
.client-zone-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  padding: var(--space-md);
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
}
.client-zone-nav a {
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
}
.client-zone-nav a:hover,
.client-zone-nav a.is-active {
  background: var(--color-teal);
  color: var(--color-white);
}

.support-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
}

/* Floating WhatsApp / phone */
.float-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.float-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-btn__icon {
  display: block;
  flex-shrink: 0;
}
.float-btn:hover {
  transform: translateY(-2px);
  color: var(--color-white);
  box-shadow: 0 8px 28px rgba(26, 45, 58, 0.22);
}
.float-btn--wa { background: #25d366; }
.float-btn--wa:hover { background: #20bd5a; }
.float-btn--phone { background: var(--color-soil); }
.float-btn--phone:hover { background: var(--color-soil-dark); }
@media (max-width: 599px) {
  .float-actions { bottom: 1rem; right: 1rem; }
}
