﻿/*
Theme Name: Brand React Theme
Theme URI: https://example.com/
Author: Brand Team
Author URI: https://example.com/
Description: Minimal WordPress theme for trade website and overseas marketing company sites with lightweight React mounts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: brand-react-theme
*/

@font-face {
  font-family: "OPPO Sans";
  src: url("assets/common/fonts/OPPO Sans 4.0.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "OPPO Sans";
  src: url("assets/common/fonts/OPPO Sans 4.0.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "OPPO Sans";
  src: url("assets/common/fonts/OPPO Sans 4.0.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "OPPO Sans";
  src: url("assets/common/fonts/OPPO Sans 4.0.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/common/fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/common/fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/common/fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand-text: #172033;
  --brand-muted: #5d6678;
  --brand-border: #e5e9f0;
  --brand-bg: #ffffff;
  --brand-soft: #f6f8fb;
  --brand-primary: #175cff;
  --site-width: 1120px;
  --site-gutter: 32px;
  --header-height: 92px;
  --section-space: 56px;
  --hero-space: 80px;
  --font-title: "OPPO Sans", Arial, sans-serif;
  --font-subtitle: "OPPO Sans", Arial, sans-serif;
  --font-body: "OPPO Sans", Arial, sans-serif;
  --font-decor: "OPPO Sans", Arial, sans-serif;
  --font-data: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  color: var(--brand-text);
  background: var(--brand-bg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: #ffffff;
  transform: translate3d(0, 0, 0);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease, transform 240ms ease;
  will-change: transform;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-hidden {
  transform: translate3d(0, -110%, 0);
}

.site-main {
  padding-top: var(--header-height);
}

.site-header__inner,
.site-footer__inner,
.section {
  width: min(var(--site-width), calc(100% - var(--site-gutter)));
  margin: 0 auto;
}

.site-header__inner {
  width: calc(100% - 120px);
  max-width: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-height);
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 700;
}

.site-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header__brand .custom-logo {
  display: block;
  width: auto;
  max-height: 48px;
}

.site-header__site-name {
  color: var(--brand-text);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.site-header__nav,
.site-header__menu {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__nav {
  position: absolute;
  left: 50%;
  justify-content: center;
  width: min(680px, calc(100% - 280px));
  transform: translateX(-50%);
}

.site-header__menu {
  width: 100%;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-subtitle);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.site-header__menu > li {
  margin: 0;
}

.site-header__menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-height);
  color: var(--brand-text);
  transition: color 160ms ease;
}

.site-header__menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  content: "";
}

.site-header__menu > li > a:hover,
.site-header__menu > li > a:focus,
.site-header__menu > .current-menu-item > a,
.site-header__menu > .current_page_item > a,
.site-header__menu > .current-menu-ancestor > a {
  color: var(--brand-primary);
}

.site-header__menu > li > a:hover::after,
.site-header__menu > li > a:focus::after,
.site-header__menu > .current-menu-item > a::after,
.site-header__menu > .current_page_item > a::after,
.site-header__menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.site-header__menu-empty {
  color: var(--brand-muted);
  font-size: 14px;
}

.hero {
  background: var(--brand-soft);
  padding: var(--hero-space) 0;
}

.hero__content {
  width: min(var(--site-width), calc(100% - var(--site-gutter)));
  margin: 0 auto;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--brand-muted);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
}

.section {
  padding: var(--section-space) 0;
}

.section h2 {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.section p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--brand-muted);
  font-weight: 400;
}

p,
li {
  font-family: var(--font-body);
  font-weight: 400;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
}

.subtitle,
.site-header__menu,
.footer-column__title {
  font-family: var(--font-subtitle);
  font-weight: 500;
}

.decor-text {
  font-family: var(--font-decor);
  font-weight: 300;
}

.data-text,
.stat-number,
.price,
.percentage {
  font-family: var(--font-data);
}

.page-editor-content {
  padding-bottom: 24px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.placeholder-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: #ffffff;
}

.placeholder-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.placeholder-card p {
  margin: 0;
  font-size: 14px;
}

.placeholder-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--brand-border);
  background: var(--brand-soft);
}

.react-mount {
  padding: 16px;
  border: 1px dashed var(--brand-border);
  border-radius: 8px;
  color: var(--brand-muted);
}


.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  color: #d6d9df;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.2), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(14, 165, 233, 0.14), transparent 24%),
    linear-gradient(135deg, #111419 0%, #151a24 48%, #0f1218 100%);
  font-size: 16px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.82), rgba(125, 211, 252, 0.7), transparent);
  content: "";
}

.site-footer::after {
  position: absolute;
  right: -120px;
  bottom: 32px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(48px);
  pointer-events: none;
  content: "";
}

.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  gap: 72px;
  align-items: flex-start;
  padding: 72px 0 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-logo__image {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 62px;
}

.footer-logo__text {
  display: inline-block;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-qrcode__image {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-qrcode:hover .footer-qrcode__image,
.footer-qrcode:focus-within .footer-qrcode__image {
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
  transform: scale(1.035);
}

.footer-column__title {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a,
.footer-bottom a {
  position: relative;
  display: inline-block;
  color: #d6d9df;
  transform: translateX(0);
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a::after,
.footer-contact a::after,
.footer-bottom a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95), rgba(125, 211, 252, 0.75));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  content: "";
}

.footer-links a:hover,
.footer-links a:focus,
.footer-contact a:hover,
.footer-contact a:focus,
.footer-bottom a:hover,
.footer-bottom a:focus {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover::after,
.footer-links a:focus::after,
.footer-contact a:hover::after,
.footer-contact a:focus::after,
.footer-bottom a:hover::after,
.footer-bottom a:focus::after {
  transform: scaleX(1);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-bottom p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: #8e939b;
}

@media (min-width: 1280px) {
  :root {
    --site-width: 1200px;
    --site-gutter: 48px;
    --section-space: 64px;
    --hero-space: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .footer-qrcode__image,
  .footer-links a,
  .footer-contact a,
  .footer-bottom a,
  .footer-links a::after,
  .footer-contact a::after,
  .footer-bottom a::after {
    transition: none;
  }

  .site-footer {
    opacity: 1;
    transform: none;
  }

  .footer-qrcode:hover .footer-qrcode__image,
  .footer-qrcode:focus-within .footer-qrcode__image,
  .footer-links a:hover,
  .footer-links a:focus,
  .footer-contact a:hover,
  .footer-contact a:focus,
  .footer-bottom a:hover,
  .footer-bottom a:focus {
    transform: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --site-width: 1320px;
    --site-gutter: 64px;
    --section-space: 72px;
    --hero-space: 112px;
  }

  .hero h1 {
    font-size: 64px;
  }
}

@media (max-width: 1024px) {
  :root {
    --site-gutter: 40px;
    --section-space: 48px;
    --hero-space: 72px;
  }

  .site-header__nav {
    width: min(600px, calc(100% - 240px));
  }

  .site-header__inner {
    width: calc(100% - 64px);
  }

  .site-header__menu {
    gap: 28px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 64px;
    padding: 56px 0 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --site-gutter: 32px;
    --header-height: 56px;
    --section-space: 40px;
    --hero-space: 56px;
  }

  .site-header__inner {
    width: calc(100% - 32px);
    min-height: var(--header-height);
  }

  .site-header__brand .custom-logo {
    max-height: 30px;
  }

  .site-header__nav {
    display: none;
  }

  .hero h1 {
    max-width: none;
    font-size: 34px;
  }

  .hero p {
    max-width: none;
    font-size: 16px;
  }

  .section h2 {
    font-size: 24px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }


  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 44px;
  }

  .footer-brand {
    gap: 18px;
  }

  .footer-column__title {
    margin-bottom: 16px;
    font-size: 17px;
  }

  .footer-links,
  .footer-contact {
    gap: 12px;
  }

  .footer-bottom {
    padding: 24px 0;
  }
}

@media (max-width: 420px) {
  :root {
    --site-gutter: 24px;
    --section-space: 32px;
    --hero-space: 44px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section h2 {
    font-size: 22px;
  }

  .placeholder-card,
  .react-mount {
    padding: 16px;
  }


  .footer-main {
    padding: 40px 0 36px;
  }

  .footer-logo__text {
    font-size: 24px;
  }

  .footer-qrcode__image {
    width: 96px;
    height: 96px;
  }

  .footer-bottom p {
    flex-direction: column;
    gap: 4px;
  }
}

