/*
Theme Name: Loggia
Theme URI: https://wp.moderneast.com.tw/loggia/
Author: 前衛東方科技工程
Author URI: https://moderneast.com.tw
Description: Loggia 台灣官網佈景主題（POC，首頁）。移植自靜態站 loggia-tw，骨架在主題、內容在「首頁」頁面（Gutenberg 區塊），員工可直接在後台編輯文字與圖片。
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: loggia
*/

/* ============================================
   LOGGIA TAIWAN -- loggia.tw
   Official Brand Website -- Premium Minimalist
   v3.0 -- Unified Design System (移植自 loggia-tw/assets/css/style.css)
   ============================================ */

:root {
  --loggia-navy: #2B2D42;
  --loggia-dark: #1B1B2F;
  --loggia-charcoal: #3A3A4A;
  --loggia-grey: #7A7A8A;
  --loggia-silver: #B0B0BA;
  --loggia-light: #F6F5F3;
  --loggia-warm: #F0EEEA;
  --loggia-white: #FFFFFF;
  --accent: #8C7B5E;
  --accent-light: #A89474;
  --text: #1B1B2F;
  --text-light: #7A7A8A;
  --text-mute: #B0B0BA;
  --border: #E8E6E2;
  --font-display: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans TC', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--loggia-white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 400; font-family: var(--font-display); line-height: 1.15; }

.label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute);
}
.label-gold, .label-accent { color: var(--accent); }
.sub, .subtitle { font-size: 1rem; line-height: 1.85; color: var(--text-light); max-width: 520px; }
.center, .text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 24px; } .mb-xl { margin-bottom: 40px; } .mb-2xl { margin-bottom: 64px; }

/* Container */
.wrap, .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-sm, .container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--loggia-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 32px; filter: brightness(1.6) contrast(1.1); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 7px 18px !important;
  color: rgba(255,255,255,0.8) !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.5) !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: #fff; }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,47,0.25) 0%, rgba(27,27,47,0.1) 40%, rgba(27,27,47,0.55) 75%, rgba(27,27,47,0.9) 100%);
}
.hero-body, .hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff; padding: 0 24px; max-width: 700px;
}
.hero-body .label, .hero-content .label { color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.hero-body h1, .hero-content h1 { margin-bottom: 20px; }
.hero-body .sub, .hero-content .subtitle { color: rgba(255,255,255,0.6); margin: 0 auto 36px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.hero-scroll-bar { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 34px; border: 1px solid;
  transition: all 0.3s var(--ease); cursor: pointer;
  background: transparent; font-family: var(--font-body);
}
.btn-dark { border-color: var(--text); color: var(--text); background: transparent; }
.btn-dark:hover { background: var(--text); color: #fff; }
.btn-light, .btn-white { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-light:hover, .btn-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-fill { background: var(--text); color: #fff; border-color: var(--text); }
.btn-fill:hover { background: var(--loggia-charcoal); }
.btn-accent { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-accent:hover { background: var(--accent); color: #fff; }
.btn-gold { border-color: var(--accent); color: var(--accent); }
.btn-gold:hover { background: var(--accent); color: #fff; }

/* ========== SECTIONS ========== */
.sec, .section { padding: 120px 0; }
.sec-dark, .section-dark { background: var(--loggia-dark); color: #fff; }
.sec-dark .sub, .section-dark .subtitle { color: var(--loggia-silver); }
.sec-dark .label, .section-dark .label { color: var(--loggia-silver); }
.sec-warm, .section-warm { background: var(--loggia-light); }

/* Stats */
.stats { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; }
.stat-n, .stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1; margin-bottom: 6px; }
.stat-l, .stat-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mute); }
.sec-dark .stat-l, .section-dark .stat-label { color: var(--loggia-silver); }
.section-dark .stat-number { color: #fff; }

/* ========== SPLIT ========== */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split-img, .split-image { overflow: hidden; }
.split-img img, .split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.split-img:hover img, .split-image:hover img { transform: scale(1.03); }
.split-txt, .split-content { display: flex; flex-direction: column; justify-content: center; padding: 80px 64px; }
.split-txt .label, .split-content .label { margin-bottom: 14px; }
.split-txt h2, .split-content h2 { margin-bottom: 20px; }
.split-txt .sub, .split-content .subtitle { margin-bottom: 32px; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ========== PRODUCT GRID ========== */
.pgrid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pcard, .product-card { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.pcard img, .product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pcard:hover img, .product-card:hover img { transform: scale(1.05); }
.pcard-ov, .product-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(27,27,47,0.85) 0%, rgba(27,27,47,0.1) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.pcard-name, .product-card-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 300; color: #fff; }
.pcard-sub, .product-card-sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 3px; }

/* ========== CATEGORY GRID ========== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.category-card { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.category-card:hover img { transform: scale(1.05); }
.category-card-overlay { position: absolute; inset: 0; background: rgba(27,27,47,0.35); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: background 0.3s; }
.category-card:hover .category-card-overlay { background: rgba(27,27,47,0.25); }
.category-card-name { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 300; color: #fff; }
.category-card-count { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ========== PACKAGING ROW ========== */
.pkg-row { display: flex; justify-content: center; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.pkg-item { text-align: center; }
.pkg-item img { height: 160px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.pkg-item span { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.08em; }

/* ========== HSCROLL ========== */
.hscroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 24px; }
.hscroll-wrap::-webkit-scrollbar { display: none; }
.hscroll { display: flex; gap: 2px; width: max-content; }
.hscroll-item { position: relative; width: 340px; height: 450px; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.hscroll-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hscroll-item:hover img { transform: scale(1.04); }
.hscroll-item-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
  background: linear-gradient(0deg, rgba(27,27,47,0.85), transparent); color: #fff;
}
.hscroll-item-body h3 { font-size: 1.2rem; }
.hscroll-item-body span { font-size: 0.68rem; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; }

/* ========== DOWNLOAD ========== */
.dl-section { margin-bottom: 48px; }
.dl-section h3 { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dl-item { border: 1px solid var(--border); padding: 20px; display: flex; align-items: center; gap: 14px; transition: border-color 0.2s; }
.dl-item:hover { border-color: var(--text); }
.dl-item-icon { color: var(--text-mute); flex-shrink: 0; }
.dl-item-name { font-size: 0.88rem; font-weight: 500; }
.dl-item-meta { font-size: 0.7rem; color: var(--text-mute); margin-top: 2px; }

/* ========== COURSE CARDS ========== */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { border: 1px solid var(--border); padding: 40px; transition: border-color 0.2s; }
.course-card:hover { border-color: var(--text); }
.course-card .label { margin-bottom: 14px; }
.course-card h3 { margin-bottom: 14px; }
.course-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-item { margin-bottom: 36px; }
.contact-item-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.contact-item-value { font-size: 1rem; line-height: 1.8; }
.contact-item-value a { border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
.contact-item-value a:hover { border-color: var(--text); }

/* ========== DOWNLOAD GRID (alt) ========== */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.download-card { border: 1px solid var(--border); padding: 24px; text-align: center; transition: border-color 0.2s; }
.download-card:hover { border-color: var(--text); }
.download-card-icon { font-size: 1.6rem; margin-bottom: 14px; color: var(--text-mute); }
.download-card-title { font-size: 0.85rem; font-weight: 500; }
.download-card-sub { font-size: 0.72rem; color: var(--text-mute); }

/* ========== FOOTER ========== */
.footer { background: var(--loggia-dark); color: #fff; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo, .footer-brand-logo { height: 56px; margin-bottom: 20px; }
.footer-desc, .footer-brand-desc { font-size: 0.82rem; color: var(--loggia-silver); line-height: 1.7; }
.footer-col h4 { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--loggia-silver); margin-bottom: 20px; font-family: var(--font-body); }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 8px; }

/* ========== PRODUCT PAGE (dark theme) — phase-2 保留樣式 ========== */
.page-product { background: var(--loggia-dark); color: rgba(255,255,255,0.55); }
.page-product .nav { background: var(--loggia-dark); }

.p-hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.p-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.p-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,27,47,0.9) 0%, rgba(27,27,47,0.65) 50%, rgba(27,27,47,0.85) 100%); }
.p-hero-body { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 32px; width: 100%; }
.p-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); color: #fff; font-weight: 300; letter-spacing: 0.03em; margin-bottom: 8px; }
.p-hero .p-cn { font-size: 1rem; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; margin-bottom: 14px; }
.p-hero .p-tag { font-family: var(--font-display); font-size: 1.2rem; color: rgba(255,255,255,0.45); font-style: italic; font-weight: 300; }
.p-hero-img { position: absolute; right: 80px; bottom: -10px; width: 280px; z-index: 2; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5)); }

/* Breadcrumb */
.breadcrumb { padding: 100px 32px 0; max-width: 1100px; margin: 0 auto; }
.breadcrumb a, .breadcrumb span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.breadcrumb a:hover { color: rgba(255,255,255,0.6); }
.breadcrumb .sep { margin: 0 8px; }

/* Product Sections */
.p-sec { padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.p-sec .p-wrap { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.p-sec .s-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.p-sec h2 { color: #fff; margin-bottom: 28px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.p-sec p { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 2; margin-bottom: 20px; }

/* Product Table */
.p-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.p-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.p-table td { padding: 14px 0; font-size: 0.85rem; vertical-align: top; }
.p-table td:first-child { color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; width: 150px; font-weight: 500; }
.p-table td:last-child { color: rgba(255,255,255,0.55); }

.p-badge { display: inline-block; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 5px 14px; margin-top: 14px; }

/* Product Video */
.p-video { padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.p-video .p-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.p-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.p-video h2 { color: #fff; margin-bottom: 28px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.p-video .s-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }

/* Product Gallery */
.p-gallery { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.p-gallery .p-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.p-gallery .s-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.p-gallery h2 { color: #fff; margin-bottom: 32px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.p-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.p-gallery-grid img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s var(--ease); cursor: pointer; }
.p-gallery-grid img:hover { transform: scale(1.03); }

/* Product System Diagram */
.p-system { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.p-system-step { text-align: center; padding: 16px 20px; border: 1px solid rgba(255,255,255,0.1); flex: 1; min-width: 120px; }
.p-system-step .step-name { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.p-system-step .step-product { font-size: 0.68rem; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; }
.p-system-arrow { color: rgba(255,255,255,0.2); font-size: 1.2rem; }

/* Product CTA */
.p-cta { padding: 100px 0; text-align: center; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); }
.p-cta h2 { color: #fff; margin-bottom: 12px; font-family: var(--font-display); font-weight: 300; }
.p-cta p { color: rgba(255,255,255,0.4); margin: 0 auto 28px; max-width: 460px; font-size: 0.92rem; }
.p-cta .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.p-cta .btn-w { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 30px; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); transition: all 0.3s; text-decoration: none; }
.p-cta .btn-w:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: #fff; }

/* Product Footer (compact) */
.p-foot { background: #111125; color: rgba(255,255,255,0.4); padding: 60px 0 24px; border-top: 1px solid rgba(255,255,255,0.04); }
.p-foot .p-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.p-foot img { height: 40px; }
.p-foot span { font-size: 0.7rem; }
.p-foot a { color: rgba(255,255,255,0.4); font-size: 0.7rem; margin-left: 20px; transition: color 0.2s; text-decoration: none; }
.p-foot a:hover { color: #fff; }

/* ========== INDEX-SPECIFIC ========== */
.fullimg { width: 100%; height: 70vh; object-fit: cover; display: block; }
.editorial { max-width: 680px; margin: 0 auto; padding: 80px 24px; }
.editorial h2 { margin-bottom: 20px; }
.editorial .sub { margin-bottom: 28px; max-width: 100%; }
.editorial .label { margin-bottom: 16px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.duo img { width: 100%; height: 400px; object-fit: cover; }

.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.trio img { width: 100%; height: 360px; object-fit: cover; }

.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.quad-item { position: relative; aspect-ratio: 1; overflow: hidden; }
.quad-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.quad-item:hover img { transform: scale(1.04); }
.quad-item span { position: absolute; bottom: 16px; left: 16px; font-size: 0.82rem; color: #fff; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.video-wrap { position: relative; cursor: pointer; aspect-ratio: 16/9; overflow: hidden; max-width: 900px; margin: 0 auto; }
.video-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,27,47,0.25); }
.video-wrap:hover .video-play { background: rgba(27,27,47,0.1); }
.video-play svg { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.video-wrap.playing .video-play, .video-wrap.playing img { display: none; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.divider { width: 40px; height: 1px; background: var(--accent); margin: 0 auto 24px; }

/* ========== FADE ========== */
.fi, .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fi.visible, .fade-in.visible { opacity: 1; transform: translateY(0); }
.fi-d1, .fade-in-d1 { transition-delay: 0.1s; }
.fi-d2, .fade-in-d2 { transition-delay: 0.2s; }
.fi-d3, .fade-in-d3 { transition-delay: 0.3s; }
.fi-d4, .fade-in-d4 { transition-delay: 0.4s; }

/* Admin-bar offset so fixed nav doesn't overlap WP toolbar */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .pgrid, .product-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-txt, .split-content { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 40px; }
  .dl-list { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .p-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sec, .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(27,27,47,0.97);
    justify-content: center; align-items: center;
    gap: 28px; z-index: 999;
  }
  .nav-links.open a { font-size: 1rem; color: #fff; }
  .nav-hamburger { display: flex; }
  .pgrid, .product-grid, .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 8px; }
  .stats { flex-direction: column; gap: 28px; }
  .pkg-row { gap: 24px; }
  .pkg-item img { height: 110px; }
  .hscroll-item { width: 280px; height: 370px; }
  .dl-list { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .fullimg { height: 50vh; }
  .duo { grid-template-columns: 1fr; }
  .duo img { height: 280px; }
  .trio { grid-template-columns: 1fr; }
  .trio img { height: 260px; }
  .quad { grid-template-columns: repeat(2, 1fr); }
  .editorial { padding: 60px 20px; }
  .p-hero-img { position: static; width: 180px; margin: 28px auto 0; display: block; }
  .p-sec, .p-video { padding: 70px 0; }
  .p-gallery-grid { grid-template-columns: 1fr; }
  .p-gallery-grid img { height: 220px; }
  .p-system { flex-direction: column; }
  .p-system-arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fi, .fade-in { opacity: 1; transform: none; }
}
