/*
Theme Name: Beyme
Theme URI: https://beyme.com
Author: Beyme Team
Description: Jiangxi Beyme New Materials Technology Co., Ltd - Professional Acoustic Products Website. B2B + Official hybrid.
Version: 2.0.1
License: GPL v2
Text Domain: beyme
*/

/* ============================================
   CSS Variables - Soundbox Blue Color Scheme
   ============================================ */
:root {
  --primary: #c41e3a;
  --primary-dark: #8b0000;
  --primary-light: #dc143c;
  --accent: #e63946;
  --accent-light: #ff6b6b;
  --accent-dark: #a31621;
  --bg-light: #f5f7fa;
  --bg-gray: #eef1f5;
  --text-dark: #1a1a1a;
  --text-body: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --white: #ffffff;
  --border: #e0e5ec;
  --border-light: #eef1f5;
  --footer-bg: #1a2a3a;
  --footer-text: #a0b0c0;
  --danger: #e53935;
  --success: #2e7d32;
  --warning: #f9a825;
  --logo-red: #9b3030;
  --overlay-dark: rgba(0, 0, 0, 0.25);
  --overlay-light: rgba(60, 20, 20, 0.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; margin: 0; padding: 0; --wp-admin--admin-bar--height: 0px !important; scroll-padding-top: 0 !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header .title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header .desc {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light { background: var(--bg-light); }
.bg-white { background: var(--white); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }

.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--footer-text);
}
.top-bar a:hover { color: var(--white); }

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   Main Header & Navigation
   ============================================ */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand-en {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-text .brand-zh {
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 10px 16px;
  color: #333333;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
  color: var(--white);
  background: var(--primary);
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a .dropdown-arrow { font-size: 0.65rem; margin-left: 4px; display: inline-block; transition: transform var(--transition); }
.has-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  min-width: 680px;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu .dropdown-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--transition);
}

.dropdown-menu .dropdown-category:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.dropdown-menu .dropdown-category img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-gray);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Cart Icon */
.header-cart {
  position: relative;
}

.cart-icon {
  color: var(--primary);
  font-size: 1.1rem;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px;
}
.cart-icon:hover { color: var(--accent); }

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch a {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.lang-switch .lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Mobile Navigation
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
}

.mobile-nav.active { display: block; }

.mobile-nav-list > li > a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-dropdown-menu {
  padding-left: 16px;
  margin-bottom: 8px;
}

.mobile-dropdown-menu a {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ============================================
   Hero Banner (Soundbox Style)
   ============================================ */
.hero-banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-banner .swiper { height: 100%; }

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.hero-slide .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-feature-item i {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-top: 3px;
}

.hero-bottom-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 40px;
}

.hero-icon-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}

.hero-icon-block:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

.hero-icon-block .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.1rem;
}

.hero-icon-block .icon-text strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-icon-block .icon-text span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.hero-cta {
  position: absolute;
  right: 24px;
  bottom: 40px;
  z-index: 5;
}

/* Swiper overrides */
.hero-banner .swiper-pagination { bottom: 24px !important; }
.hero-banner .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
}
.hero-banner .swiper-pagination-bullet-active { background: var(--accent); }

.hero-banner .swiper-button-prev,
.hero-banner .swiper-button-next {
  color: var(--white);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all var(--transition);
}

.hero-banner .swiper-button-prev:hover,
.hero-banner .swiper-button-next:hover { background: rgba(255,255,255,0.25); }
.hero-banner .swiper-button-prev::after,
.hero-banner .swiper-button-next::after { font-size: 1rem; }

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.about-text .lead {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.about-highlight i { color: var(--accent); }

/* ============================================
   Stats Counter
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-image {
  height: 220px;
  overflow: hidden;
  background: var(--bg-gray);
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-card-body .category {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.product-card-body .price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.product-card-body .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   Cases Section
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card-image img { transform: scale(1.05); }

.case-card-body {
  padding: 20px;
}

.case-card-body .venue {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.case-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card-body p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  height: 180px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body {
  padding: 16px;
}

.news-card-body .date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.news-card-body h3 a { color: var(--text-dark); }
.news-card-body h3 a:hover { color: var(--accent); }

/* ============================================
   Partners
   ============================================ */
.partners-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 16px 0;
}

.partners-scroll img {
  height: 52px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition);
}

.partners-scroll img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--footer-text);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--footer-text);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-contact i {
  color: var(--accent-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary); color: var(--white); }

/* ============================================
   Inner Page Header
   ============================================ */
.page-header {
  background: var(--primary);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb a:hover { color: var(--white); }

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.contact-form-wrap .form-group {
  margin-bottom: 16px;
}

.contact-form-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,122,181,0.1);
}

.contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.contact-form-wrap .wpcf7-submit { width: auto; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  transition: all var(--transition);
}

.team-card:hover { box-shadow: var(--shadow-md); }

.team-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

.team-card .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.team-card .role {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* ============================================
   About Page
   ============================================ */
.about-page-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.facility-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.facility-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cert-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.cert-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   Products Page
   ============================================ */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filter a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all var(--transition);
}

.category-filter a:hover,
.category-filter a.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Media Queries
   ============================================ */

/* LG: 992px - 1199px (Tablet Landscape) */
@media (max-width: 1199px) {
  .container { max-width: 960px; }
  .hero-banner { height: 520px; }
  .hero-title { font-size: 2.4rem; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .about-page-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .facility-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* MD: 768px - 991px (Tablet Portrait) */
@media (max-width: 991px) {
  .container { max-width: 720px; }

  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 64px; }
  .mobile-nav { top: 64px; }

  .hero-banner { height: 460px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-bottom-blocks { grid-template-columns: 1fr; gap: 12px; }
  .hero-cta { right: 16px; bottom: 24px; }
  .hero-features { flex-direction: column; gap: 8px; }

  .section { padding: 56px 0; }
  .section-header .title { font-size: 1.8rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 28px 16px; }
  .stat-number { font-size: 2.2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .dropdown-menu { min-width: auto; width: 480px; }
}

/* SM: <768px (Mobile) */
@media (max-width: 767px) {
  .container { max-width: 100%; padding: 0 16px; }

  .top-bar-left { justify-content: center; }
  .top-bar-right { display: none; }

  .hero-banner { height: 420px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-icon-block { padding: 12px 16px; }
  .hero-icon-block .icon-circle { width: 36px; height: 36px; font-size: 0.9rem; }
  .hero-icon-block .icon-text strong { font-size: 0.8rem; }
  .hero-cta { position: static; margin-top: 16px; }

  .section { padding: 40px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header .title { font-size: 1.5rem; }

  .about-highlights { grid-template-columns: 1fr; }

  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .facility-gallery { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .page-header h1 { font-size: 1.5rem; }

  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ============================================
   WooCommerce Overrides & Bug Fixes
   ============================================ */
/* Override purple Add to Cart button */
.woocommerce button.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
  background: var(--accent) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
}
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--accent-dark) !important;
}

/* Quantity input styling */
.woocommerce .quantity input.qty {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  min-height: 44px;
}

/* Remove nested scrollbars from section grids */
.cases-grid, .news-grid, .products-grid { overflow: visible !important; }
.case-card, .news-card, .product-card { overflow: hidden; }

/* Better hero text readability */
.hero-features { font-size: 0.92rem; line-height: 1.6; }
.hero-feature-item { color: rgba(255,255,255,0.92); }

/* Logo contrast improvement */
.logo img { max-height: 44px; }
.logo .brand-en { font-size: 1.2rem; letter-spacing: 1px; }

/* Navigation spacing */
.nav-list > li > a { padding: 10px 14px; letter-spacing: 0.3px; }

/* Breadcrumb contrast */
.page-header .breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.9); }

/* Hide admin bar for non-logged-in users */
#wpadminbar { display: none; }

/* Fix product card image heights */
.product-card-image { height: 200px; background: var(--bg-gray); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* News/case card image placeholder */
.news-card-image, .case-card-image { background: var(--bg-gray); }
.news-card-image img, .case-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Remove duplicate floating button */
.hero-cta { z-index: 5; }

/* Better section spacing */
.section + .section { border-top: none; }
.bg-light + .bg-light { border-top: 1px solid var(--border-light); }

/* Fix price prominence */
.product-card-body .price { font-size: 1.1rem; font-weight: 700; }

/* Category filter active state */
.category-filter a.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Post content styling */
.post-content { line-height: 1.9; font-size: 1.05rem; }
.post-content p { margin-bottom: 1.2em; }
.post-content img { border-radius: var(--radius-md); margin: 1.5em 0; }

/* ============================================
   Products & Contact Page Fixes
   ============================================ */
/* Smaller hero for inner pages */
.page-header { padding: 36px 0; }
.page-header h1 { font-size: 1.6rem; }

/* Product card fixed image height */
.product-card-image { height: 220px !important; overflow: hidden; background: var(--bg-gray); }
.product-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Product card border/shadow */
.product-card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }

/* Fix category filter buttons */
.category-filter { gap: 6px; }
.category-filter a { padding: 8px 16px; font-size: 0.82rem; line-height: 1.4; display: inline-flex; align-items: center; border-radius: 20px; }
.category-filter a.active { background: var(--accent); color: var(--white); }

/* Product card body spacing */
.product-card-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.product-card-body h3 { font-size: 0.92rem; margin-bottom: 0; }
.product-card-body .category { font-size: 0.78rem; font-weight: 500; }
.product-card-body .btn { margin-top: auto; align-self: flex-start; }

/* Contact form spacing */
.contact-form-wrap { padding: 28px; }
.contact-form-wrap h3 { margin-top: 0; padding-top: 0; }
.contact-form-wrap .wpcf7-submit { margin-top: 8px; }

/* Team card images */
.team-card i.fa-user { color: var(--accent); }
.team-card { padding: 20px 14px; }

/* Contact info box */
.contact-grid > div:last-child > div:last-child { border: 1px solid var(--border); background: var(--white); }

/* Fix breadcrumb in page header */
.page-header .container { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Consistent grid min-height for cases/news cards */
.case-card-image, .news-card-image { height: 200px; overflow: hidden; }
.case-card-image img, .news-card-image img { object-fit: cover; width: 100%; height: 100%; }


/* Force product card image consistency */
.product-card-image img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Fix button cutoff - remove overflow hidden from card */
.product-card { overflow: visible !important; }

/* Smaller hero section */
.page-header { padding: 28px 0 !important; }
.page-header h1 { font-size: 1.4rem !important; margin-bottom: 2px !important; }

/* Ensure footer is visible */
.site-footer { display: block !important; clear: both; }


/* Fix hero cta white block */
.hero-cta { position: absolute; right: 24px; bottom: 32px; z-index: 5; }
.hero-cta .btn-white { background: var(--accent); color: var(--white); border-color: var(--accent); }
.hero-cta .btn-white:hover { background: var(--white); color: var(--accent); border-color: var(--white); }

/* Ensure hero content does not overflow */
.hero-banner { position: relative; overflow: hidden; }
.hero-slide .container { max-width: 1200px; }

/* Fix hero bottom blocks alignment */
.hero-bottom-blocks { max-width: 100%; }

/* Ensure no white block appears */
.hero-banner *, .hero-slide * { box-sizing: border-box; }

/* Fix responsive hero */
@media (max-width: 991px) {
  .hero-bottom-blocks { grid-template-columns: 1fr; }
  .hero-cta { right: 16px; bottom: 20px; }
}
@media (max-width: 767px) {
  .hero-cta { position: relative; right: auto; bottom: auto; margin-top: 16px; }
}


/* Adaptive product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Product card max width */
.product-card { max-width: 360px; }

/* Page content min height to push footer */
.site-main { min-height: 40vh; }


/* Ensure full-width dark sections */
.top-bar, .site-header, .hero-banner, .page-header, .site-footer {
  width: 100% !important;
  min-width: 100% !important;
}
html, body { overflow-x: hidden; max-width: 100%; }


/* Fix hero bottom blocks */
.hero-bottom-blocks {
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Move Swiper pagination below blocks */
.hero-banner .swiper-pagination {
  bottom: 12px !important;
}

/* Block internal spacing */
.hero-icon-block {
  padding: 14px 20px;
  margin: 0;
}

/* Hero content centering */
.hero-slide .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


/* Mobile Nav Fix */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 99999;
  overflow-y: auto;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobile-nav.active {
  display: block;
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}
.mobile-nav-close {
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 24px 24px;
}
.mobile-nav-list > li > a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
body.mobile-nav-open {
  overflow: hidden;
}

/* Hero Video Background */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video-wrapper video.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video directly inside hero-slide (no wrapper) */
video.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero-video-wrapper ~ .container,
.hero-video-wrapper + .container,
video.hero-video ~ .container {
    position: relative;
    z-index: 2;
}

/* Stats Animation Enhancement */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s ease;
}

.stat-number.counted {
    color: var(--accent);
}

/* Fade in animation for stats on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    opacity: 0;
}

.stat-item.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item.visible:nth-child(1) { animation-delay: 0.1s; }
.stat-item.visible:nth-child(2) { animation-delay: 0.2s; }
.stat-item.visible:nth-child(3) { animation-delay: 0.3s; }
.stat-item.visible:nth-child(4) { animation-delay: 0.4s; }
