/*
Theme Name: Bo Tao Electronics
Theme URI: https://www.bt-electro.com/
Author: Bo Tao Electronics
Description: A responsive, editable WordPress theme for the Bo Tao Electronics brand and product catalogue.
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: botao-electronics
*/

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #171819;
  background: #fbfbfa;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bte-red: #f10101;
  --bte-ink: #171819;
  --bte-body: #4b4f53;
  --bte-muted: #6e7276;
  --bte-line: rgb(23 24 25 / 14%);
  --bte-white: #fbfbfa;
  --bte-silver: #e9ebec;
  --bte-max: 1380px;
  --bte-header-height: clamp(88px, 8.6vh, 104px);
  --bte-footer-height: 164px;
  --bte-ease: cubic-bezier(.16, 1, .3, 1);
  --bte-layer-header: 50;
  --bte-layer-menu: 60;
  --bte-layer-dialog: 80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bte-white);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--bte-ink);
  background: var(--bte-white);
  -webkit-font-smoothing: antialiased;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus {
  z-index: 100;
  top: 8px;
  left: 8px;
  width: auto !important;
  height: auto !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  clip: auto !important;
  color: var(--bte-ink);
  background: var(--bte-white);
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgb(241 1 1 / 28%);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  z-index: var(--bte-layer-header);
  top: 0;
  height: var(--bte-header-height);
  border-bottom: 1px solid rgb(23 24 25 / 10%);
  background: rgb(251 251 250 / 98%);
}

.site-header__inner {
  width: 100%;
  height: 100%;
  padding: 0 clamp(32px, 3.2vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(13px, 1vw, 18px);
  font-size: clamp(21px, 1.5vw, 26px);
  font-weight: 620;
  letter-spacing: -.026em;
  white-space: nowrap;
}

.site-brand__logo,
.site-brand .custom-logo {
  width: clamp(62px, 4.4vw, 72px);
  height: clamp(62px, 4.4vw, 72px);
  object-fit: contain;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(22px, 1.65vw, 32px);
  list-style: none;
}

.site-nav a {
  position: relative;
  min-height: var(--bte-header-height);
  display: inline-flex;
  align-items: center;
  color: #252628;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 480;
  letter-spacing: -.018em;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--bte-red);
  transform: translateX(-50%);
  transition: width .22s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav a[aria-current="page"]::after {
  width: 38px;
}

.site-nav__products {
  position: relative;
}

.site-nav__products > a {
  padding-right: 17px;
}

.site-nav__products > a::before {
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform .22s var(--bte-ease);
}

.product-dropdown {
  position: absolute;
  z-index: var(--bte-layer-menu);
  top: calc(100% - 12px);
  left: 50%;
  width: 274px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgb(23 24 25 / 12%);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  list-style: none;
  background:
    linear-gradient(112deg, rgb(255 255 255 / 84%), rgb(245 246 246 / 96%)),
    url("assets/images/brushed-silver-surface-4k.jpg") center / cover;
  box-shadow: 0 18px 42px rgb(23 24 25 / 13%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transform-origin: top center;
  transition: opacity .2s ease, visibility .2s ease, transform .24s var(--bte-ease);
}

.site-nav__products:hover .product-dropdown,
.site-nav__products:focus-within .product-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-nav__products:hover > a::before,
.site-nav__products:focus-within > a::before {
  transform: translateY(-35%) rotate(225deg);
}

.site-nav .product-dropdown a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #303235;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -.012em;
  transition: color .18s ease, background-color .18s ease, transform .2s var(--bte-ease);
}

.site-nav .product-dropdown a::after {
  display: none;
}

.site-nav .product-dropdown a:hover,
.site-nav .product-dropdown a:focus-visible {
  color: var(--bte-red);
  background: rgb(255 255 255 / 76%);
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
}

.page-intro {
  border-bottom: 1px solid var(--bte-line);
  background: var(--bte-white);
}

.page-intro__inner {
  width: min(var(--bte-max), calc(100% - 96px));
  min-height: 136px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(48px, 4.5vw, 68px);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.page-intro p {
  max-width: 520px;
  margin: 0;
  color: var(--bte-muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  text-align: right;
  text-wrap: pretty;
}

.silver-surface {
  position: relative;
  border-bottom: 1px solid var(--bte-line);
  background-color: var(--bte-silver);
  background-image:
    linear-gradient(112deg, rgb(255 255 255 / 22%), transparent 36%, rgb(205 209 211 / 12%) 72%, rgb(255 255 255 / 16%)),
    url("assets/images/brushed-silver-surface-seamless-4k.jpg");
  background-position: center;
  background-size: 100% 100%, cover;
}

.site-footer {
  min-height: var(--bte-footer-height);
  background: #fafafa;
  color: #25282b;
}

.site-footer__inner {
  width: min(var(--bte-max), calc(100% - 96px));
  min-height: var(--bte-footer-height);
  margin: 0 auto;
  padding: 16px 0 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.footer-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-column--rating {
  align-items: flex-start;
}

.footer-column--social {
  align-items: center;
}

.footer-heading {
  color: #25282b;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 590;
}

.footer-column p {
  margin: 0;
  color: #62666a;
  font-size: 14px;
  line-height: 1.3;
}

.footer-stars {
  color: var(--bte-red);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 2px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #25282b;
  transition: color .24s var(--bte-ease), transform .24s var(--bte-ease);
}

.footer-socials a:hover {
  color: var(--bte-red);
  transform: translateY(-3px);
}

.footer-socials .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.footer-socials svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

.footer-slogan {
  justify-self: end;
  margin: 0;
  color: #36393c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: center;
}

.site-footer__legal {
  padding-top: 11px;
  border-top: 1px solid rgb(23 24 25 / 13%);
}

.site-footer__legal p {
  margin: 0;
  color: #6a6e72;
  font-size: 12.5px;
  line-height: 1.35;
}

.content-page {
  width: min(var(--bte-max), calc(100% - 96px));
  min-height: 55svh;
  margin: 0 auto;
  padding: 64px 0 96px;
}

.content-page__title {
  margin: 0 0 28px;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 590;
  letter-spacing: -.035em;
}

.content-page__body {
  max-width: 760px;
  color: var(--bte-body);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 1380px) {
  .site-header__inner {
    padding-inline: 28px;
  }

  .site-brand__logo,
  .site-brand .custom-logo {
    width: 58px;
    height: 58px;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-nav__list {
    gap: 18px;
  }

  .site-nav a {
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  :root {
    --bte-header-height: 76px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    padding-inline: 22px;
  }

  .site-brand__logo,
  .site-brand .custom-logo {
    width: 50px;
    height: 50px;
  }

  .site-brand {
    gap: 12px;
    font-size: 18px;
  }

  .menu-toggle {
    position: relative;
    z-index: var(--bte-layer-menu);
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    display: grid;
    place-content: center;
    border-radius: 999px;
    color: var(--bte-white);
    background: #1d1f20;
    cursor: pointer;
  }

  .menu-toggle__line,
  .menu-toggle__line::before,
  .menu-toggle__line::after {
    width: 18px;
    height: 1.5px;
    display: block;
    content: "";
    background: currentColor;
    transition: transform .24s ease;
  }

  .menu-toggle__line {
    position: relative;
  }

  .menu-toggle__line::before {
    position: absolute;
    top: -6px;
  }

  .menu-toggle__line::after {
    position: absolute;
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line::before {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: calc(var(--bte-layer-header) - 1);
    inset: var(--bte-header-height) 0 auto;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--bte-line);
    background: rgb(251 251 250 / 98%);
    transform: translateY(-120%);
    transition: transform .28s var(--bte-ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav__list {
    display: grid;
  }

  .site-nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--bte-line);
    font-size: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav__products > a {
    padding-right: 24px;
  }

  .site-nav__products > a::before {
    right: 4px;
  }

  .product-dropdown {
    position: static;
    width: 100%;
    padding: 5px 0 10px 18px;
    border: 0;
    border-radius: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav .product-dropdown a {
    min-height: 40px;
    border-bottom: 0;
    font-size: 14px;
  }

  .site-nav .current-menu-item > a,
  .site-nav .current_page_item > a,
  .site-nav a[aria-current="page"] {
    color: var(--bte-red);
  }

  .page-intro__inner,
  .site-footer__inner,
  .content-page {
    width: calc(100% - 48px);
  }

  .page-intro__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .page-intro p {
    max-width: 680px;
    text-align: left;
  }

  .site-footer__columns {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-inline: 16px;
  }

  .site-brand {
    gap: 10px;
    font-size: 16px;
  }

  .site-brand__logo,
  .site-brand .custom-logo {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .page-intro__inner,
  .site-footer__inner,
  .content-page {
    width: calc(100% - 36px);
  }

  .page-intro__inner {
    padding: 26px 0 24px;
  }

  .page-intro h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .site-footer__inner {
    min-height: 0;
    padding: 26px 0 18px;
    gap: 22px;
  }

  .site-footer {
    min-height: 0;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column,
  .footer-column--rating,
  .footer-column--social {
    align-items: center;
    text-align: center;
  }

  .footer-slogan {
    justify-self: center;
  }

  .site-footer__legal {
    padding-top: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
