:root {
  --basetao-orange: #d47034;
  --basetao-orange-dark: #b85a28;
  --basetao-ink: #171a20;
  --basetao-muted: #657083;
  --basetao-line: #e2e6ec;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 430px) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 10px max(22px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--basetao-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.brand-word {
  color: var(--basetao-ink);
  font-size: 19px;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #353b46;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--basetao-orange);
}

.header-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  align-items: center;
  min-width: 0;
  height: 46px;
  overflow: hidden;
  border: 1.5px solid var(--basetao-orange);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(212, 112, 52, .08);
}

.header-search-mode {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  border-right: 1px solid var(--basetao-line);
  color: #5f6672;
  font-size: 12px;
  font-weight: 800;
}

.header-search input {
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--basetao-ink);
  font: inherit;
  font-size: 13px;
}

.header-search input::placeholder {
  color: #9aa3b3;
}

.header-search button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--basetao-orange);
  cursor: pointer;
}

.header-search button:hover {
  color: var(--basetao-orange-dark);
  background: #fff7f1;
}

.header-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.locale-switcher {
  position: relative;
  justify-self: end;
  font-size: 13px;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--basetao-line);
  border-radius: 12px;
  background: #f7f8fa;
  color: var(--basetao-ink);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.locale-trigger:hover,
.locale-trigger[aria-expanded="true"] {
  border-color: var(--basetao-orange);
  background: #fff;
  box-shadow: 0 10px 28px rgba(212, 112, 52, .14);
}

.locale-globe {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid #7d8797;
  border-radius: 50%;
  color: #7d8797;
  font-size: 15px;
  line-height: 1;
}

.locale-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.locale-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  width: min(420px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--basetao-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
}

.locale-popover[hidden] { display: none; }

.locale-title {
  display: block;
  margin: 0 0 10px;
  color: #697386;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.locale-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.locale-options.currency-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locale-option,
.locale-submit {
  min-height: 38px;
  border: 1px solid var(--basetao-line);
  border-radius: 10px;
  background: #fff;
  color: var(--basetao-ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.locale-option:hover,
.locale-option.is-selected {
  border-color: var(--basetao-orange);
  background: #fff5ee;
  color: var(--basetao-orange-dark);
}

.locale-submit {
  width: 100%;
  border-color: var(--basetao-orange);
  background: var(--basetao-orange);
  color: #fff;
  font-weight: 900;
}

.locale-submit:hover { background: var(--basetao-orange-dark); }

#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget span { display: none !important; }

body { top: 0 !important; }

/* Official BaseTao first-slide image; site copy and internal search remain independent. */
.hero {
  min-height: 620px;
  padding: 92px 0 78px;
  background: #063b46;
  color: #fff;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.hero::after {
  background: linear-gradient(90deg, rgba(2, 24, 34, .88) 0%, rgba(2, 31, 42, .76) 42%, rgba(2, 28, 39, .22) 78%, rgba(2, 28, 39, .10) 100%);
}

.hero .hero-layout { max-width: 1180px; }
.hero .hero-layout > div { max-width: 720px; }
.hero p { color: rgba(255, 255, 255, .92); }

.hero .global-search button {
  background: var(--basetao-orange);
}

.hero .global-search button:hover {
  background: var(--basetao-orange-dark);
  box-shadow: 0 14px 24px rgba(212, 112, 52, .30);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 12px 20px;
  }

  .brand { grid-column: 1; grid-row: 1; }
  .locale-switcher { grid-column: 2; grid-row: 1; }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(720px, 100%);
    justify-self: center;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: center;
    overflow-x: auto;
    width: 100%;
    padding: 2px 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    gap: 10px;
    padding: 11px 12px;
  }

  .brand-logo { width: 126px; }
  .brand-word { font-size: 15px; }

  .locale-trigger {
    min-height: 39px;
    padding: 6px 9px;
  }

  .locale-trigger-label { font-size: 11px; }
  .locale-globe { width: 19px; height: 19px; font-size: 13px; }

  .header-search {
    grid-template-columns: auto minmax(0, 1fr) 40px;
    height: 44px;
  }

  .header-search-mode {
    padding: 0 9px;
    font-size: 10px;
  }

  .header-search input {
    padding: 0 9px;
    font-size: 12px;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
  }

  .locale-popover {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

  .locale-options { grid-template-columns: 1fr; }
  .locale-options.currency-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero {
    min-height: 650px;
    padding: 64px 0 58px;
  }

  .hero .hero-bg { object-position: 58% center; }

  .hero::after {
    background: linear-gradient(180deg, rgba(2, 24, 34, .90) 0%, rgba(2, 31, 42, .76) 62%, rgba(2, 28, 39, .48) 100%);
  }

  .hero .hero-layout > div { max-width: none; }
}
