/* ============================================
   BiWin International - Main Stylesheet
   Smart Bathroom Products Website
   ============================================ */

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #ff7a00;
  --accent-dark: #e66a00;
  --gold: #c9a96e;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0a2540;
  --text: #1a1a2e;
  --text-light: #5a6a7a;
  --text-muted: #8a9aab;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(10,37,64,0.06);
  --shadow-md: 0 4px 20px rgba(10,37,64,0.1);
  --shadow-lg: 0 12px 40px rgba(10,37,64,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-h: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Devanagari', 'Noto Sans Arabic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(107,107,107,0.82) 0%, rgba(82,82,82,0.82) 50%, rgba(94,94,94,0.82) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.header.header-hidden { transform: translateY(-100%); }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 2.1rem; color: #fff; letter-spacing: -0.5px; }
.logo img { height: 80px; width: auto; }
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-weight: 500; font-size: 1.43rem; color: rgba(255,255,255,0.9); position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px; }

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

.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  background: rgba(255,255,255,0.1); cursor: pointer; font-size: 1.28rem; font-weight: 600;
  color: #fff; transition: var(--transition);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,0.15); }
.lang-btn .flag { font-size: 1.65rem; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
  max-height: 360px; overflow-y: auto;
}
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 0.88rem;
  color: var(--text); transition: var(--transition);
}
.lang-dropdown a:hover { background: var(--bg-alt); color: var(--accent); }
.lang-dropdown a.active { background: var(--accent); color: #fff; }

.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; background: rgba(255,255,255,0.1); transition: var(--transition); }
.hamburger:hover { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.hamburger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #7fa8f8 0%, #4d84f0 35%, #6fa3f6 70%, #8fb6f8 100%);
  overflow: hidden; padding-top: var(--header-h);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 80% 20%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(500px circle at 15% 80%, rgba(160,220,255,0.35), transparent 60%),
    radial-gradient(400px circle at 50% 50%, rgba(255,255,255,0.18), transparent 65%);
  background-size: cover;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.12)"/><circle cx="20" cy="80" r="40" fill="rgba(120,190,255,0.10)"/></svg>');
  background-size: cover;
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.15; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content h1 .accent { color: #ffffff; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.92); margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ GLASS FRAME VISUAL (real photo in Apple-style glass frame) ============ */
.hero-visual { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.glass-frame { position: relative; width: 100%; max-width: 560px; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.glass-frame img {
  width: 100%; height: 540px; object-fit: cover; border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 24px 60px rgba(0,20,90,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  display: block;
}
.glass-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 36px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 30%);
}

.glass-frame-chip {
  position: absolute; z-index: 3;
  background: linear-gradient(145deg, rgba(255,255,255,0.32), rgba(255,255,255,0.12));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; color: #fff; font-weight: 700; font-size: 1rem;
}
.glass-frame-chip span { font-weight: 700; }
.glass-frame-chip.chip-a { top: 30px; right: -12px; animation: glassFloat 6s ease-in-out infinite 0.3s; }
.glass-frame-chip.chip-b { bottom: 90px; left: -16px; animation: glassFloat 7s ease-in-out infinite 0.9s; }
.glass-frame-chip.chip-c { bottom: 16px; right: 24px; animation: glassFloat 6.5s ease-in-out infinite 1.4s; }

@keyframes glassFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat h3 { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.hero-stat p { font-size: 0.9rem; color: rgba(255,255,255,0.95); margin: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,0,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost { background: var(--bg-alt); color: var(--primary); }
.btn-ghost:hover { background: var(--border); }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); color: #fff; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .tag { display: inline-block; padding: 6px 16px; background: #ff7a00; color: #fff; border-radius: 50px; font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ============ PRODUCT GRID ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img { position: relative; height: 220px; overflow: hidden; background: var(--bg-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; border-radius: 50px; }
.product-card-body { padding: 22px; }
.product-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.product-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.product-card-link:hover { gap: 10px; }

/* ============ FEATURES ============ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.feature-card { text-align: center; padding: 36px 28px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-img .badge-float { position: absolute; bottom: -20px; right: -20px; background: var(--accent); color: #fff; padding: 20px 28px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg); }
.about-img .badge-float h4 { font-size: 2rem; font-weight: 800; }
.about-img .badge-float p { font-size: 0.82rem; opacity: 0.9; }
.about-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; }
.about-list { margin: 24px 0; }
.about-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--text); font-weight: 500; }
.about-list li::before { content: '✓'; color: var(--accent); font-weight: 800; font-size: 1.1rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.testimonial-card { background: #fff; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative; }
.testimonial-card .quote-icon { font-size: 3rem; color: var(--accent); opacity: 0.2; position: absolute; top: 16px; right: 24px; font-family: Georgia, serif; line-height: 1; }
.testimonial-card p { color: var(--text-light); font-style: italic; margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.testimonial-author h4 { font-size: 1rem; font-weight: 700; }
.testimonial-author p { font-size: 0.82rem; color: var(--text-muted); margin: 0; font-style: normal; }
.stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img { height: 200px; overflow: hidden; background: var(--bg-alt); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 24px; }
.news-card-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.news-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-card-body p { color: var(--text-light); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.contact-info > p { color: var(--text-light); margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(255,122,0,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.contact-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.contact-form { background: #fff; padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; transition: var(--transition); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ PRODUCT DETAIL ============ */
.product-detail-hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.product-main-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); margin-bottom: 16px; aspect-ratio: 4/3; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; border: 2px solid transparent; transition: var(--transition); background: var(--bg-alt); }
.product-thumb.active { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.product-sku { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.product-desc { color: var(--text-light); margin-bottom: 28px; line-height: 1.8; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table th { background: var(--bg-alt); font-weight: 600; width: 40%; color: var(--text); }
.spec-table td { color: var(--text-light); }
.core-parts { margin-top: 40px; }
.core-parts h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.part-item { text-align: center; padding: 16px; background: var(--bg-alt); border-radius: 12px; }
.part-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.part-item h4 { font-size: 0.85rem; font-weight: 600; }
.inspection-section { margin-top: 40px; padding: 28px; background: var(--bg-alt); border-radius: var(--radius-lg); }
.inspection-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.inspection-list li { padding: 8px 0; display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.92rem; }
.inspection-list li::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, #7fa8f8 0%, #4d84f0 35%, #6fa3f6 70%, #8fb6f8 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 80% 20%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(500px circle at 15% 80%, rgba(160,220,255,0.32), transparent 60%);
  pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ FOOTER ============ */
.footer { background: linear-gradient(135deg, #6b6b6b 0%, #525252 50%, #5e5e5e 100%); color: rgba(255,255,255,0.9); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { margin: 16px 0; font-size: 0.9rem; line-height: 1.7; }
.footer-brand .logo { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }

/* ===== SOCIAL ICONS (below Contact) =====
   To HIDE all social icons: add class "hide-social" to the <body> tag in any page.
   To REMOVE permanently: delete the .footer-social block in js/components.js. */
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255,122,0,0.4); }
body.hide-social .footer-social { display: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding-top: calc(var(--header-h) + 60px); padding-bottom: 60px;
  background: linear-gradient(135deg, #7fa8f8 0%, #4d84f0 35%, #6fa3f6 70%, #8fb6f8 100%);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 80% 20%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(500px circle at 15% 80%, rgba(160,220,255,0.32), transparent 60%);
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 12px; color: #fff; }
.page-header p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-question { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; transition: var(--transition); }
.faq-question:hover { color: var(--accent); }
.faq-question .icon { transition: transform 0.3s; font-size: 1.2rem; color: var(--accent); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ============ NEWS DETAIL ============ */
.article-container { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.article-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.article-featured { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; aspect-ratio: 16/9; object-fit: cover; }
.article-content p { margin-bottom: 20px; line-height: 1.8; color: var(--text); }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; }
.article-content ul { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; color: var(--text-light); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; padding: 24px;
  transform: translateX(100%); transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); font-weight: 500; font-size: 1.05rem; }
.mobile-menu a:hover { color: var(--accent); }

/* ============ RTL ============ */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .hero .container { direction: rtl; }
[dir="rtl"] .about-list li { flex-direction: row-reverse; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .product-card-link { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .glass-frame { min-height: 460px; }
  .glass-frame img { height: 460px; }
  .glass-frame-chip.chip-a { top: 24px; right: -6px; }
  .glass-frame-chip.chip-b { bottom: 60px; left: -10px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .logo img { height: 56px; }
  .footer-brand .logo img { height: 50px; }
  .section { padding: 60px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .hero-stat h3 { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-img .badge-float { right: 10px; bottom: -15px; padding: 14px 18px; }
  .product-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
  .product-grid { grid-template-columns: 1fr; }
  .lang-btn span:not(.flag) { display: none; }
  .lang-btn .flag { font-size: 1.85rem; display: inline-block; }
  .lang-btn { padding: 8px 12px; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
  .logo img { height: 44px; }
  .footer-brand .logo img { height: 40px; }
  .hero-visual { max-width: 340px; }
  .glass-frame { min-height: 380px; }
  .glass-frame img { height: 380px; }
  .glass-frame-chip { padding: 10px 14px; font-size: 0.85rem; }
  .glass-frame-chip.chip-a { top: 20px; right: -4px; }
  .glass-frame-chip.chip-b { bottom: 40px; left: -8px; }
  .glass-frame-chip.chip-c { bottom: 10px; right: 12px; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(255,122,0,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s ease;
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,122,0,0.55); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Header hover zone - invisible area at top to reveal header on mouse proximity */
.header-hover-zone {
  position: fixed; top: 0; left: 0; right: 0; height: 20px; z-index: 999;
  pointer-events: none;
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.hide { display: none !important; }
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ LOADING ============ */
.page-loader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ENQUIRY POPUP MODAL ============ */
.enquiry-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.enquiry-modal.open { display: flex; }
.enquiry-modal-overlay { position: absolute; inset: 0; background: rgba(10,15,25,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.enquiry-modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  animation: enquiryPop 0.25s ease;
}
@keyframes enquiryPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.enquiry-modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: #f1f3f5; color: #333; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.enquiry-modal-close:hover { background: #e2e6ea; }
.enquiry-modal-box h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.enquiry-modal-sub { color: #6b7280; font-size: 0.9rem; margin: 0 0 20px; }
.enquiry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Email shown as clickable link */
[data-i18n="contact.email"] { cursor: pointer; text-decoration: underline dotted rgba(255,122,0,0.6); transition: color 0.2s; }
[data-i18n="contact.email"]:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 560px) {
  .enquiry-modal-box { padding: 22px 18px; }
  .enquiry-modal-box .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Image fade-in animation for smooth loading experience */
.img-fade {
  opacity: 0;
  animation: imgFadeIn 0.6s ease-out forwards;
}
@keyframes imgFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
/* Stagger animation for gallery/scenario grids */
.scenario-card:nth-child(1) .img-fade { animation-delay: 0.05s; }
.scenario-card:nth-child(2) .img-fade { animation-delay: 0.1s; }
.scenario-card:nth-child(3) .img-fade { animation-delay: 0.15s; }
.scenario-card:nth-child(4) .img-fade { animation-delay: 0.2s; }
.scenario-card:nth-child(5) .img-fade { animation-delay: 0.25s; }
.scenario-card:nth-child(6) .img-fade { animation-delay: 0.3s; }
.scenario-card:nth-child(7) .img-fade { animation-delay: 0.35s; }
.scenario-card:nth-child(8) .img-fade { animation-delay: 0.4s; }
.scenario-card:nth-child(9) .img-fade { animation-delay: 0.45s; }
