/* ==========================================================================
   ELITRE CO., LTD. - Style System (Revised - Metallic Stainless Steel Theme)
   Design: Modern Premium Single Page
   Theme: Brushed Stainless Steel Gradient with Gas Flame Accent Highlights
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: rgba(13, 21, 39, 0.8);
  --bg-tertiary: #141f35;
  --bg-glass: rgba(13, 21, 39, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  /* Combustion Gas Flame Blue - Muted & Comfortable */
  --flame-blue-base: hsl(210, 45%, 48%);
  --flame-blue-accent: hsl(210, 55%, 64%);
  --flame-blue-glow: rgba(110, 168, 224, 0.12);
  --flame-blue-dark: hsl(210, 42%, 35%);
  
  /* Combustion Warm Flame Red - Muted & Comfortable */
  --flame-red-base: hsl(18, 48%, 46%);
  --flame-red-accent: hsl(18, 55%, 62%);
  --flame-red-glow: rgba(224, 114, 82, 0.12);
  --flame-red-dark: hsl(18, 42%, 34%);
  
  /* Muted Combustion Blend (Purple-Gray transition zone) - Comfortable & Low Saturation */
  --flame-blend-base: hsl(255, 20%, 46%);
  --flame-blend-accent: hsl(255, 30%, 64%);
  --flame-blend-glow: rgba(140, 130, 200, 0.08);
  --flame-blend-dark: hsl(255, 20%, 32%);

  /* Gradients using the new HSL variables */
  --gradient-blue: linear-gradient(135deg, var(--flame-blue-accent) 0%, var(--flame-blue-dark) 100%);
  --gradient-red: linear-gradient(135deg, var(--flame-red-accent) 0%, var(--flame-red-dark) 100%);
  --gradient-purple: linear-gradient(135deg, var(--flame-blend-accent) 0%, var(--flame-blend-dark) 100%);
  
  --gradient-card-border: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-card-border-hover: linear-gradient(180deg, rgba(110, 168, 224, 0.25) 0%, rgba(224, 114, 82, 0.25) 100%);

  --border-thin: 1px solid rgba(255, 255, 255, 0.06);
  --border-thick: 2px solid rgba(255, 255, 255, 0.1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --font-sans: 'Outfit', 'Noto Sans TC', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* World Map Theme Variables - Dark Mode */
  --map-bg: #070e1c;
  --map-dot: #4a88cc;
  --map-arc: #5aa3e8;
  --map-label-bg: #070e1c;
  --map-label-fg: #c8dff5;
  --map-tw-bg: #e87548;
}

/* --- Base Resets & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header height offset */
}

/* Metallic Stainless Steel Brushed Texture Background */
body {
  background-color: #0b111e;
  background-image: 
    linear-gradient(135deg, #182235 0%, #090d16 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
  background-blend-mode: overlay;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Bilingual Helper --- */
body.lang-zh [lang-en] {
  display: none !important;
}
body.lang-en [lang-zh] {
  display: none !important;
}

/* --- Google-Style Layered Ambient Lights (Glow Backgrounds) --- */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  mix-blend-mode: screen;
}

.glow-blue {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--flame-blue-base) 0%, transparent 70%);
  top: -10vw;
  left: -10vw;
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-red {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--flame-red-base) 0%, transparent 70%);
  top: 40vw;
  right: -10vw;
  animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

.glow-blend {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--flame-blend-base) 0%, transparent 70%);
  bottom: 20vw;
  left: 20vw;
  animation: floatGlow 22s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* --- Header Section (Glassmorphism & Sticky) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-thin);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  height: 70px;
  background-color: rgba(6, 11, 21, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Image Container (Requested for image logo upload) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image-container {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: transparent;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.logo-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Nav Menu Desktop */
.desktop-nav {
  display: flex;
  gap: 32px;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-thin);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--flame-blue-accent);
}

.lang-btn .material-symbols-outlined {
  font-size: 16px;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-thin);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--flame-blue-accent);
}

.theme-btn .material-symbols-outlined {
  font-size: 18px;
}

.header-cta-btn {
  background: var(--gradient-blue);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 14px var(--flame-blue-glow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 168, 224, 0.35);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Menu drawer */
.mobile-nav-menu {
  display: block;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-thin);
  padding: 24px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-item {
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-cta-btn {
  margin-top: 20px;
  background: var(--gradient-blue);
  color: #fff;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 14px var(--flame-blue-glow);
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.mobile-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-cta-btn:hover::before {
  opacity: 1;
}

/* --- Section Utilities --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--flame-blue-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Dual colors for gradient highlights */
.section-header.centered .section-subtitle {
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

/* --- Animations: Scroll Reveal System --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeInEffect 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeInEffect {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section (Full Background Banner Layout) --- */
.hero-section {
  padding-top: 200px;
  padding-bottom: 120px;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.82) 0%, rgba(10, 15, 29, 0.80) 50%, rgba(10, 15, 29, 0.88) 100%), url('images/hero_banner.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  position: relative;
}

.hero-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-container.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-thin);
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--flame-blue-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--flame-blue-accent);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 24px;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #f8fafc 30%, var(--flame-blue-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: #e2e8f0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  margin-bottom: 30px;
  max-width: 720px;
  line-height: 1.7;
}

/* Certification Ribbon in Hero */
.hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  justify-content: center;
  align-items: center;
}

.hero-cert-img {
  height: 52px;
  width: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #ffffff;
  padding: 4px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.hero-cert-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--flame-blue-glow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 168, 224, 0.4);
}

.btn-icon {
  font-size: 18px;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(110, 168, 224, 0.5);
  color: var(--flame-blue-accent);
}

.btn-secondary:hover {
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%) border-box;
  border-color: transparent;
  color: var(--flame-blue-accent);
}

/* Hero Visual Banner Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: var(--border-thin);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  aspect-ratio: 1.1;
  background-color: var(--bg-secondary);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
  transition: var(--transition-smooth);
}

.hero-banner-img:hover {
  transform: scale(1.02);
}

.image-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 13, 25, 0) 60%, rgba(8, 13, 25, 0.7) 100%);
  pointer-events: none;
}

/* --- About Section (Reordered, certifications tags removed) --- */
.about-section {
  background-color: var(--bg-secondary);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: flex-start;
}

.about-text-col p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-text-col strong {
  color: var(--text-primary);
}

.about-visual-col {
  display: flex;
  flex-direction: column;
}

.about-visual-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 440px;
}

/* Visual placeholder container in About Us */
.about-image-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: var(--border-thin);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1.6;
}

.about-office-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: var(--transition-smooth);
}

.about-image-card:hover .about-office-img {
  transform: scale(1.02);
}

.about-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 21, 39, 0) 50%, rgba(13, 21, 39, 0.6) 100%);
}

.quote-box {
  background: var(--bg-primary);
  border: var(--border-thin);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  position: relative;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
  border-left: 4px solid var(--flame-blue-accent);
}

.quote-icon {
  font-size: 40px;
  color: var(--flame-blue-accent);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.quote-text {
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.quote-author {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* --- Advantages Section (Tabs & Panels) --- */
.advantages-tabs-container {
  overflow-x: auto;
  margin-bottom: 40px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Sleek custom scrollbars for horizontal tab containers */
.advantages-tabs-container,
.products-tabs-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 168, 224, 0.3) rgba(255, 255, 255, 0.02);
}

.advantages-tabs-container::-webkit-scrollbar,
.products-tabs-container::-webkit-scrollbar {
  height: 5px;
}
.advantages-tabs-container::-webkit-scrollbar-track,
.products-tabs-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}
.advantages-tabs-container::-webkit-scrollbar-thumb,
.products-tabs-container::-webkit-scrollbar-thumb {
  background: rgba(110, 168, 224, 0.25);
  border-radius: 10px;
  transition: background 0.3s;
}
.advantages-tabs-container::-webkit-scrollbar-thumb:hover,
.products-tabs-container::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 168, 224, 0.55);
}

.advantages-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: max-content;
  width: 100%;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-thin);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  min-width: 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tab-btn:hover {
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(110, 168, 224, 0.15) !important;
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.05);
  border-color: var(--flame-blue-accent);
  color: var(--flame-blue-accent);
  box-shadow: 0 8px 24px -10px var(--flame-blue-glow);
}

.tab-btn.active .material-symbols-outlined {
  color: var(--flame-blue-accent);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.tab-btn .material-symbols-outlined {
  font-size: 26px;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

/* Panel Layout styling */
.advantages-panels {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.advantage-panel {
  display: none;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Background image layer — scales on hover */
.advantage-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  z-index: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.advantage-panel:hover .advantage-panel-bg {
  transform: scale(1.07);
}

/* Dark overlay sits above bg, below content */
.advantage-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 22, 0.75);
  border-radius: inherit;
  z-index: 1;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advantage-panel.active {
  display: block;
  animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.advantage-panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.advantage-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.advantage-panel-icon {
  font-size: 28px;
  color: var(--flame-blue-accent);
  background: var(--flame-blue-glow);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage-panel-icon.icon-blue {
  color: var(--flame-blue-accent);
  background: var(--flame-blue-glow);
  border-color: rgba(110, 168, 224, 0.18);
}
.advantage-panel-icon.icon-red {
  color: var(--flame-red-accent);
  background: var(--flame-red-glow);
  border-color: rgba(224, 114, 82, 0.18);
}

/* Advantage panel content icons — match tab gradient colours */
#tab-1 .advantage-panel-icon { color: hsl(210,55%,64%); background: hsla(210,55%,64%,0.12); border-color: hsla(210,55%,64%,0.2); }
#tab-2 .advantage-panel-icon { color: hsl(195,50%,62%); background: hsla(195,50%,62%,0.12); border-color: hsla(195,50%,62%,0.2); }
#tab-3 .advantage-panel-icon { color: hsl(175,45%,58%); background: hsla(175,45%,58%,0.12); border-color: hsla(175,45%,58%,0.2); }
#tab-4 .advantage-panel-icon { color: hsl(35,52%,62%);  background: hsla(35,52%,62%,0.12);  border-color: hsla(35,52%,62%,0.2);  }
#tab-5 .advantage-panel-icon { color: hsl(22,54%,60%);  background: hsla(22,54%,60%,0.12);  border-color: hsla(22,54%,60%,0.2);  }
#tab-6 .advantage-panel-icon { color: hsl(18,55%,62%);  background: hsla(18,55%,62%,0.12);  border-color: hsla(18,55%,62%,0.2);  }

/* Icon containers — white background in light mode so icons stand out against light panel overlay */
body.light #tab-1 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(210,55%,64%,0.50); }
body.light #tab-2 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(195,50%,62%,0.50); }
body.light #tab-3 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(175,45%,58%,0.50); }
body.light #tab-4 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(35,52%,62%,0.50);  }
body.light #tab-5 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(22,54%,60%,0.50);  }
body.light #tab-6 .advantage-panel-icon { background: rgba(255,255,255,0.80); border-color: hsla(18,55%,62%,0.50);  }

.advantage-title-group {
  display: flex;
  flex-direction: column;
}

.advantage-panel-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.advantage-panel-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.advantage-visual-wrapper {
  display: none;
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 135px;
  height: 135px;
  border-radius: var(--border-radius-md);
  border: var(--border-thin);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-primary);
  opacity: 0.8;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.advantage-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.1);
  transition: var(--transition-smooth);
}

.advantage-panel:hover .advantage-visual-wrapper {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
}

.advantage-panel:hover .advantage-panel-img {
  filter: brightness(1) contrast(1.1);
}

/* Responsive adjustment for active panel */
@media (max-width: 768px) {
  .advantage-panel.active {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
  }
  
  .advantage-panel-content {
    padding-right: 0 !important;
    text-align: center;
    align-items: center;
  }
  
  .advantage-panel-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .advantage-visual-wrapper {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 24px auto 0 auto;
    width: 135px;
    height: 135px;
    opacity: 1;
  }
}

/* --- Product Categories Section (6 Items with Images) --- */
.products-section {
  background-color: var(--bg-secondary);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}

/* Swipe Hint Indicator Styling */
.scroll-hint-wrapper {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: -15px;
  margin-bottom: 15px;
  opacity: 0.85;
}

.scroll-hint-icon {
  font-size: 16px;
  animation: swipeHandAnimation 2s infinite ease-in-out;
}

@keyframes swipeHandAnimation {
  0% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(-4px); }
}

@media (max-width: 1024px) {
  .scroll-hint-wrapper {
    display: flex;
  }
}

/* Tabs layout for products */
.products-tabs-container {
  overflow-x: auto;
  margin-bottom: 40px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.products-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: max-content;
  width: 100%;
}

.product-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-thin);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  min-width: 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.product-tab-btn:hover {
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(110, 168, 224, 0.15) !important;
}

/* Per-tab blue→red gradient colours (advantages + products, 6 tabs each) */
.advantages-tabs .tab-btn:nth-child(1),
.products-tabs .product-tab-btn:nth-child(1) {
  color: hsl(210, 55%, 64%);
}
.advantages-tabs .tab-btn:nth-child(1) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(1) .material-symbols-outlined {
  color: hsl(210, 55%, 64%);
}

.advantages-tabs .tab-btn:nth-child(2),
.products-tabs .product-tab-btn:nth-child(2) {
  color: hsl(195, 50%, 62%);
}
.advantages-tabs .tab-btn:nth-child(2) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(2) .material-symbols-outlined {
  color: hsl(195, 50%, 62%);
}

.advantages-tabs .tab-btn:nth-child(3),
.products-tabs .product-tab-btn:nth-child(3) {
  color: hsl(175, 45%, 58%);
}
.advantages-tabs .tab-btn:nth-child(3) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(3) .material-symbols-outlined {
  color: hsl(175, 45%, 58%);
}

.advantages-tabs .tab-btn:nth-child(4),
.products-tabs .product-tab-btn:nth-child(4) {
  color: hsl(35, 52%, 62%);
}
.advantages-tabs .tab-btn:nth-child(4) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(4) .material-symbols-outlined {
  color: hsl(35, 52%, 62%);
}

.advantages-tabs .tab-btn:nth-child(5),
.products-tabs .product-tab-btn:nth-child(5) {
  color: hsl(22, 54%, 60%);
}
.advantages-tabs .tab-btn:nth-child(5) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(5) .material-symbols-outlined {
  color: hsl(22, 54%, 60%);
}

.advantages-tabs .tab-btn:nth-child(6),
.products-tabs .product-tab-btn:nth-child(6) {
  color: hsl(18, 55%, 62%);
}
.advantages-tabs .tab-btn:nth-child(6) .material-symbols-outlined,
.products-tabs .product-tab-btn:nth-child(6) .material-symbols-outlined {
  color: hsl(18, 55%, 62%);
}

.products-tabs .product-tab-btn:nth-child(7) {
  color: hsl(255, 35%, 64%);
}
.products-tabs .product-tab-btn:nth-child(7) .material-symbols-outlined {
  color: hsl(255, 35%, 64%);
}

/* Glowing inverse gradient for active buttons (both standard and product tabs) */
.tab-btn.active,
.product-tab-btn.active {
  background: var(--gradient-blue) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px var(--flame-blue-glow) !important;
}

.tab-btn.active .material-symbols-outlined,
.product-tab-btn.active .material-symbols-outlined {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Tab Buttons Hover Gradient (Left-Blue to Right-Red) */
.tab-btn::before,
.product-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover::before,
.product-tab-btn:hover::before {
  opacity: 1;
}

.tab-btn:hover .material-symbols-outlined,
.product-tab-btn:hover .material-symbols-outlined {
  color: #ffffff !important;
  text-shadow: none !important;
}

.product-tab-btn .material-symbols-outlined {
  font-size: 26px;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

/* Products Panels */
.products-panels {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.product-panel {
  display: none;
  background: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
}

.product-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-panel-img-box {
  width: 100%;
  aspect-ratio: 1.25;
  overflow: hidden;
  background-color: #0c1221;
  border-right: var(--border-thin);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  position: relative;
}

.product-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.product-panel:hover .product-panel-img {
  transform: scale(1.02);
}

.product-panel-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.product-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.product-panel-icon {
  font-size: 32px;
  color: var(--flame-blue-accent);
}

.product-panel-icon.icon-blue { color: var(--flame-blue-accent); }
.product-panel-icon.icon-red { color: var(--flame-red-accent); }

/* Product panel content icons — match tab gradient colours */
#prod-1 .product-panel-icon { color: hsl(210,55%,64%); }
#prod-2 .product-panel-icon { color: hsl(195,50%,62%); }
#prod-3 .product-panel-icon { color: hsl(175,45%,58%); }
#prod-4 .product-panel-icon { color: hsl(35,52%,62%);  }
#prod-5 .product-panel-icon { color: hsl(22,54%,60%);  }
#prod-6 .product-panel-icon { color: hsl(18,55%,62%);  }
#prod-7 .product-panel-icon { color: hsl(255,35%,64%); }

.product-panel-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.product-panel-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-panel-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}


.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
  border: var(--border-thin);
}

/* Gas Regulator specs table layout */
.tech-spec-container {
  margin-top: 20px;
  border: var(--border-thin);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.tech-spec-title {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--flame-blue-accent);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: var(--transition-fast);
}

.tech-spec-title:hover {
  background: rgba(56, 189, 248, 0.08);
}

.spec-arrow {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-spec-title.active .spec-arrow {
  transform: rotate(180deg);
}

.tech-spec-table {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-spec-table.open {
  max-height: 500px;
}

.tech-spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tech-spec-table th, 
.tech-spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-spec-table th {
  color: var(--text-secondary);
  font-weight: 600;
  width: 38%;
  background: rgba(255, 255, 255, 0.01);
}

.tech-spec-table td {
  color: var(--text-primary);
  word-break: break-word;
}

.tech-spec-table tr:last-child th,
.tech-spec-table tr:last-child td {
  border-bottom: none;
}

/* --- Global Section (Revised: Centered Map visual, region grids removed) --- */
.global-section {
  background-color: var(--bg-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.global-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Main description row above the map */
.global-desc-column {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.global-main-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Programmatic SVG world map container */
.map-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  pointer-events: auto;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(110, 168, 224, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(110, 168, 224, 0.12);
  background: var(--map-bg);
  aspect-ratio: 196 / 80;
  transition: var(--transition-smooth);
}

.world-map-svg-wrap {
  width: 100%;
  height: 100%;
}

/* --- Contact Us Section --- */
.contact-section {
  border-top: var(--border-thin);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}


.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-col-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-col-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-detail-icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--flame-blue-accent);
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: var(--border-thin);
  font-size: 22px;
}

.detail-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value a:hover {
  color: var(--flame-blue-accent);
  text-decoration: underline;
}

/* Form Styles */
.contact-form-col {
  background: var(--bg-secondary);
  border: var(--border-thin);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  background-color: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  border-color: var(--flame-blue-accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
  background-color: var(--bg-secondary);
}

.modern-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.form-submit-btn {
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--flame-blue-glow);
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 168, 224, 0.35);
}

/* Button Hover Gradient (Left-Blue to Right-Red) */
.header-cta-btn::before,
.btn-primary::before,
.form-submit-btn::before,
.cookie-btn--accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta-btn:hover::before,
.btn-primary:hover::before,
.form-submit-btn:hover::before,
.cookie-btn--accept:hover::before {
  opacity: 1;
}

.submit-icon {
  font-size: 16px;
}

.form-response {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-response.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-response.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Certifications Section --- */
.certs-section {
  background-color: var(--bg-primary);
  border-top: var(--border-thin);
  padding: 36px 0;
}

.certs-section .section-header {
  margin-bottom: 20px;
}

.certs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  flex-wrap: wrap;
}

.cert-card {
  background: var(--bg-secondary);
  border: var(--border-thin);
  border-radius: var(--border-radius-lg);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.12);
}

.cert-img-box {
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 3px 8px rgba(0,0,0,0.12);
  transition: var(--transition-smooth);
}

.cert-card:hover .cert-img-box {
  transform: scale(1.05);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 5px 15px rgba(56, 189, 248, 0.2);
}

.cert-page-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .certs-container {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .certs-container {
    gap: 16px;
  }
  
  .cert-card {
    width: 110px;
    height: 110px;
    border-radius: var(--border-radius-md);
  }
  
  .cert-img-box {
    width: 64px;
    height: 64px;
    padding: 8px;
  }
}

/* --- Footer Section --- */
.site-footer {
  background-color: var(--bg-primary);
  border-top: var(--border-thin);
  padding: 60px 0 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
}

.footer-copy p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.taiwantrade-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--flame-red-accent);
  background: var(--flame-red-glow);
  border: 1px solid rgba(224, 114, 82, 0.18);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  /* Site Header & Navigation Tablet Adaptation */
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .site-header {
    height: 70px;
  }
  
  .mobile-nav-menu {
    top: 70px;
  }
  
  .hero-section {
    padding-top: 130px;
  }

  .hero-title {
    font-size: 40px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-badge, .hero-desc, .hero-certs {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-certs {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 20px;
  }

  .hero-image-wrapper {
    aspect-ratio: 1.6;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual-col {
    justify-content: center;
  }
  
  .global-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: span 2;
    align-items: flex-start;
    text-align: left;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
  }

  .footer-brand-info {
    grid-column: span 2;
  }

  /* Expand scrollable tabs to screen edges on touch devices */
  .advantages-tabs-container,
  .products-tabs-container {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Product Panel Tablet Stacking to prevent specs cramping */
  .product-panel.active {
    grid-template-columns: 1fr;
  }
  .product-panel-img-box {
    border-right: none;
    border-bottom: var(--border-thin);
    aspect-ratio: 1.5;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }
  .product-panel-content {
    padding: 32px 24px;
  }

  /* Hide sticky header CTA on tablets & mobile to prevent clutter */
  .header-cta-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 11px;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .certs-container {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-copy {
    grid-column: span 1;
  }

  /* Shrink header elements on mobile viewport to prevent overlapping */
  .header-container {
    padding: 0 16px;
  }
  .header-actions {
    gap: 10px;
  }
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .logo-image-container {
    width: 36px;
    height: 36px;
  }
  .logo-brand {
    font-size: 18px;
  }

  /* Technical specifications table mobile stacking */
  .tech-spec-table table,
  .tech-spec-table tbody,
  .tech-spec-table tr {
    display: block;
    width: 100% !important;
  }
  .tech-spec-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .tech-spec-table tr:last-child {
    border-bottom: none;
  }
  .tech-spec-table th,
  .tech-spec-table td {
    display: block;
    width: 100% !important;
    padding: 0;
    border: none;
    background: transparent;
  }
  .tech-spec-table th {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .tech-spec-table td {
    font-size: 13px;
    color: var(--text-primary);
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 21px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .advantages-tabs .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .product-panel-img-box {
    aspect-ratio: 2;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 16px 4px;
  }

  /* Hide subtext on very small mobile screens to prevent wrapping */
  .logo-sub {
    display: none !important;
  }
  .logo-brand {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .logo-image-container {
    width: 32px;
    height: 32px;
  }
  .lang-btn {
    padding: 6px 8px;
  }
  .header-container {
    padding: 0 12px;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  position: relative;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--flame-blue-accent);
}

.faq-question[aria-expanded="true"] {
  background: -webkit-linear-gradient(90deg, var(--flame-blue-accent), var(--flame-red-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-icon {
  font-size: 22px;
  flex-shrink: 0;
  color: var(--flame-blue-accent);
  transition: transform 0.3s ease, color 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--flame-red-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 900px;
  padding-bottom: 20px;
}

.faq-answer p {
  padding: 0 8px 8px;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
  margin: 0;
}

/* Contact section - single centered column */
.contact-single {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-single .contact-col-desc {
  text-align: center;
  margin-bottom: 32px;
}

.contact-details-centered {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

/* Contact section - collapsible Google Form */
.contact-form-iframe-wrap {
  background: var(--bg-secondary);
  border: var(--border-thin);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-iframe-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

.iframe-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: var(--border-thin);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.iframe-header .material-symbols-outlined {
  font-size: 18px;
  color: var(--flame-blue-accent);
}

.iframe-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--flame-blue-accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.iframe-open-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.iframe-open-link .material-symbols-outlined {
  font-size: 15px;
  color: inherit;
}

/* Form toggle button */
.contact-form-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--flame-blue-accent);
  border: 1px solid var(--flame-blue-accent);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-form-toggle-btn:hover {
  background: rgba(110, 168, 224, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(110, 168, 224, 0.2);
}

.contact-form-toggle-btn.active {
  background: rgba(110, 168, 224, 0.15);
}

.form-toggle-chevron {
  transition: transform 0.3s ease;
}

.contact-form-toggle-btn.active .form-toggle-chevron {
  transform: rotate(180deg);
}

/* Accordion */
.contact-form-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease;
  margin-top: 0;
}

.contact-form-accordion.open {
  max-height: 840px;
  margin-top: 40px;
}

.contact-form-accordion-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 8px;
}

.contact-mailto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-blue);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-mailto-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 168, 224, 0.35);
}

.contact-mailto-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-mailto-btn:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 18px 4px;
  }
  .faq-section {
    padding: 70px 0;
  }
}

/* ==========================================================================
   Light Mode Theme (body.light)
   ========================================================================== */

body.light {
  --bg-primary: #f0f4f8;
  --bg-secondary: rgba(255, 255, 255, 0.85);
  --bg-tertiary: #e2e8f0;
  --bg-glass: rgba(240, 244, 248, 0.92);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-thin: 1px solid rgba(0, 0, 0, 0.08);
  --border-thick: 2px solid rgba(0, 0, 0, 0.12);
  --flame-blue-glow: rgba(59, 130, 246, 0.08);
  --flame-red-glow: rgba(200, 90, 60, 0.08);
  --flame-blend-glow: rgba(120, 110, 180, 0.06);
  --gradient-card-border: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 100%);
  --gradient-card-border-hover: linear-gradient(180deg, rgba(59,130,246,0.25) 0%, rgba(200,90,60,0.2) 100%);

  /* World Map Theme Variables - Light Mode */
  --map-bg: #ffffff;
  --map-dot: #1e40af;
  --map-arc: #3b82f6;
  --map-label-bg: #ffffff;
  --map-label-fg: #1e3a8a;
  --map-tw-bg: #ea580c;

  background-color: #f0f4f8;
  background-image:
    linear-gradient(135deg, #e8f0f7 0%, #f4f7fa 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.012) 0px, rgba(0,0,0,0.012) 1px, transparent 1px, transparent 3px);
  color: var(--text-primary);
}

body.light .site-header.scrolled {
  background-color: rgba(240, 244, 248, 0.96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
}

body.light .theme-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light .theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light .lang-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light .lang-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light .mobile-nav-menu {
  background-color: rgba(240, 244, 248, 0.97);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

body.light .mobile-nav-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Mobile toggle bars */
body.light .mobile-nav-toggle .bar {
  background-color: var(--text-primary);
}

/* Hero: lighter overlay so text remains legible on light bg */
body.light .hero-section {
  background: linear-gradient(180deg, rgba(220,232,245,0.84) 0%, rgba(220,232,245,0.82) 50%, rgba(220,232,245,0.90) 100%), url('images/hero_banner.jpg') no-repeat center center;
  background-size: cover;
}

body.light .hero-desc {
  color: #1e293b;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.65);
}

/* Hero gradient text: use dark start color instead of near-white */
body.light .text-gradient-blue {
  background: linear-gradient(135deg, #1e293b 20%, var(--flame-blue-base) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .hero-badge {
  background: rgba(0, 0, 0, 0.05);
}

/* Glow spheres: tone them down in light mode */
body.light .glow-sphere {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

/* Advantage panel overlay: lighter for light mode */
body.light .advantage-panel::before {
  background: rgba(220, 232, 245, 0.72);
}

/* Ghost button: light mode override */
body.light .btn-secondary {
  border-color: rgba(31, 58, 94, 0.4);
  color: var(--flame-blue-dark);
}
body.light .btn-secondary:hover {
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--flame-blue-accent) 0%, var(--flame-red-accent) 100%) border-box;
  border-color: transparent;
  color: var(--flame-blue-dark);
}

/* Product panel tab buttons */
body.light .product-tab-btn {
  background: rgba(0, 0, 0, 0.03);
}

/* Tech spec table rows */
body.light .tech-spec-table tr {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* FAQ dividers */
body.light .faq-item,
body.light .faq-item:first-child {
  border-color: rgba(0, 0, 0, 0.08);
}

/* Global map container overrides in light mode */
body.light .map-container {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 0 40px rgba(59, 130, 246, 0.04);
}

/* Quote box in About section */
body.light .quote-box {
  box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

/* About image overlay gradient: keep subtle for light mode */
body.light .about-img-overlay {
  background: linear-gradient(180deg, rgba(220,232,245,0) 50%, rgba(220,232,245,0.5) 100%);
}

/* Image gradient overlay in hero card */
body.light .image-gradient-overlay {
  background: linear-gradient(180deg, rgba(220,232,245,0) 60%, rgba(220,232,245,0.6) 100%);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 2rem);
  max-width: 560px;
  background: var(--bg-glass);
  border: var(--border-thin);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: cookie-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
}

.cookie-btn--accept {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--flame-blue-glow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cookie-btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 168, 224, 0.4);
}

.cookie-btn--decline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: var(--border-thin);
}

.cookie-btn--decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

body.light .cookie-banner {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* --- FAQ Packing Images --- */
.faq-images {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding: 0 8px;
}

.faq-img {
  width: calc(50% - 6px);
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light .faq-img {
  border-color: rgba(0, 0, 0, 0.1);
}

