/* ===== THEME LIGHT (30 ส.ค. 2026) — ชั้นธีมสว่างซ้อนบน style-luxury + corporate =====
   โหลดหลังสุดเสมอ · เปลี่ยนสีผ่านตัวแปรก่อน แล้วค่อยตามเก็บจุดที่ฝังสีมืดไว้ตรงๆ
   ถ้าจะกลับธีมมืด: เอา <link> ไฟล์นี้ออกจาก base.html แล้วสลับ hero กลับ (backup อยู่ /root/backups/portfolio-templates-*-prelight) */
:root {
    --bg: #ebe7df;
    --bg-card: #f4f1eb;
    --bg-card-hover: #f8f6f1;
    --bg-alt: #e4dfd6;
    --text: #1e1f24;
    --text-muted: #6a665f;
    --gold: #b08a2e;
    --gold-light: #8f6f22;
    --gold-glow: rgba(176, 138, 46, 0.08);
    --gold-border: rgba(176, 138, 46, 0.28);
    --accent2: #b08a2e;
    --border: rgba(21, 22, 27, 0.08);
    --border-gold: rgba(176, 138, 46, 0.22);
    --accent-gold: #b08a2e;
    --sh-soft: 0 24px 60px rgba(21, 22, 27, 0.10), 0 2px 6px rgba(21, 22, 27, 0.05);
    --sh-strong: 0 30px 80px rgba(21, 22, 27, 0.16), 0 2px 6px rgba(21, 22, 27, 0.06);
}
html { color-scheme: light; }
body { background: var(--bg); color: var(--text); }
.film-grain { display: none; }

/* --- navbar --- */
.navbar.scrolled { background: rgba(235, 231, 223, 0.94); border-bottom: 1px solid var(--border); }

.services-dropdown, .nav-dropdown, .dropdown-menu { background: rgba(244,241,235,0.98) !important; backdrop-filter: none; box-shadow: var(--sh-soft); }
@media (max-width: 900px) { .nav-links { background: var(--bg) !important; } }

/* --- ปุ่ม: ปุ่มหลักสีเข้ม ทองไว้ตอน hover --- */
.btn-primary { background: var(--text); color: #fff; border-color: var(--text); box-shadow: none; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 10px 30px rgba(176,138,46,0.25); }
.btn-outline { color: var(--text); border-color: rgba(21,22,27,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.filter-btn:hover, .filter-btn.active { color: #fff; }

/* --- เงาและกรอบที่ฝังสีดำไว้ --- */
.service-card:hover, .why-card:hover, .portfolio-card:hover, .featured-card:hover, .price-card:hover { box-shadow: var(--sh-soft); }
.card-preview img, .hero-visual img, .hv-main, .hv-thumb { box-shadow: var(--sh-soft); }
.hero-visual-stack:hover .hv-main { box-shadow: var(--sh-strong), 0 0 0 1px var(--gold-border); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(21,22,27,0.35); }
.lightbox { background: rgba(21,22,27,0.92); }
.stat-item { background: linear-gradient(180deg, rgba(176,138,46,0.06), rgba(176,138,46,0.015) 55%, transparent); box-shadow: none; }
.stats-glow, .stats::before { opacity: 0.6; }
.flagship-lead > p, .fs-item p, .card-more-inner p, .form-status { color: var(--text-muted); }
.form-status.ok { color: #2f7a3e; } .form-status.err { color: #b3443a; }
.erp-flag, .flagship { background: var(--bg-card); }
.gradient-1 { background: linear-gradient(180deg, #ecebf5, #dcd9ee); }
.gradient-2 { background: linear-gradient(180deg, #e6edf4, #d4e1ee); }
.gradient-3 { background: linear-gradient(180deg, #e8f0e8, #d6e6d6); }
.gradient-4 { background: linear-gradient(180deg, #f3e8e8, #ead6d6); }
.gradient-5 { background: linear-gradient(180deg, #ebebf3, #dadaea); }
.gradient-6 { background: linear-gradient(180deg, #f2efe4, #e8e2cc); }
.gradient-7 { background: linear-gradient(180deg, #e6f0f0, #d3e5e5); }
.gradient-8 { background: linear-gradient(180deg, #f0e8f0, #e4d6e4); }
.gradient-9 { background: linear-gradient(180deg, #e9edf1, #d8e0e8); }
.gradient-10 { background: linear-gradient(180deg, #f1ede3, #e6dcc8); }
.yt-play svg { fill: #fff; }
.sect-divider svg { color: var(--gold); }

/* ===== HERO "หนึ่งวันของบริษัท" (แบบ HL) ===== */
.hero-day { min-height: auto; padding: 104px 0 56px; align-items: center; }
.hero-day::before, .hero-day::after { opacity: 0.5; }
.hero-day .hero-beam { background: radial-gradient(ellipse at 75% 20%, rgba(176,138,46,0.16), transparent 60%); opacity: 1; }
.hero-day .hero-vignette { display: none; }
.hero-day .hero-content { grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; text-align: left; }
.hero-day .hero-content > * { min-width: 0; }
.hero-day .hero-text { max-width: none; margin: 0; }
.hero-day .hero-text h1 { font-size: clamp(1.8rem, 2.9vw, 2.45rem); line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.3px; }
.hero-day .hero-text h1 .gradient { background: none; -webkit-text-fill-color: var(--gold); color: var(--gold); }
.hero-day .hero-text p.hero-desc { font-size: 0.98rem; margin: 0 0 18px; max-width: 30rem; color: var(--text-muted); }
.hero-day .hero-buttons { justify-content: flex-start; }

.day { list-style: none; margin: 0 0 18px; padding: 0; }
.day li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border);
          color: var(--text-muted); opacity: 0.38; cursor: pointer; transition: opacity 0.6s var(--ease-premium), color 0.6s; }
.day li.seen { opacity: 0.65; }
.day li.now { opacity: 1; color: var(--text); }
.day li time { font-family: 'Marcellus', 'DM Sans', serif; font-size: 0.95rem; color: rgba(176,138,46,0.6); letter-spacing: 0.5px; }
.day li.now time { color: var(--gold); }
.day li .who { display: inline-block; font-size: 0.66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-light);
               border: 1px solid var(--gold-border); background: rgba(176,138,46,0.06); padding: 1px 7px; margin-right: 6px; vertical-align: 1px; border-radius: 2px; }
.day li .txt { font-size: 0.9rem; line-height: 1.5; }
.day li.now .txt::after { content: ''; display: inline-block; width: 2px; height: 0.9em; background: var(--gold); margin-left: 4px; vertical-align: -2px; animation: dayBlink 1s steps(2) infinite; }
@keyframes dayBlink { 50% { opacity: 0; } }
.day-foot { font-size: 0.78rem; color: var(--text-muted); margin: -6px 0 22px; }
.day-foot b { color: var(--gold-light); font-weight: 500; }

.day-shot { position: relative; border: 1px solid rgba(21,22,27,0.12); background: var(--bg-card); border-radius: 6px; overflow: hidden; box-shadow: var(--sh-strong); }
.day-shot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2; background: linear-gradient(to right, var(--gold), rgba(176,138,46,0.25) 60%, transparent); }
.day-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #ede9e2; border-bottom: 1px solid rgba(21,22,27,0.08); }
.day-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(21,22,27,0.12); }
.day-bar span { margin-left: 8px; font-size: 0.72rem; letter-spacing: 1.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-bar span b { color: var(--gold); font-weight: 500; }
.day-bar .live { margin-left: auto; font-size: 0.68rem; letter-spacing: 1.2px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex: none; }
.day-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2f8f4e; box-shadow: 0 0 0 0 rgba(47,143,78,0.5); animation: dayPulse 2s infinite; }
@keyframes dayPulse { 70% { box-shadow: 0 0 0 7px rgba(47,143,78,0); } 100% { box-shadow: 0 0 0 0 rgba(47,143,78,0); } }
.day-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ece9e2; }
.day-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.015);
                 transition: opacity 0.8s var(--ease-premium), transform 6s linear; }
.day-stage img.on { opacity: 1; transform: scale(1); }
.day-toast { position: absolute; right: 18px; top: 18px; z-index: 3; width: 300px; max-width: calc(100% - 36px); background: rgba(248,246,241,0.97);
             border: 1px solid rgba(176,138,46,0.35); border-left: 3px solid var(--gold); padding: 12px 14px; box-shadow: 0 16px 40px rgba(21,22,27,0.18);
             transform: translateX(24px); opacity: 0; transition: transform 0.55s var(--ease-emphasized), opacity 0.4s; }
.day-toast.show { transform: none; opacity: 1; }
.day-toast small { display: block; font-size: 0.66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.day-toast p { font-size: 0.86rem; color: var(--text); line-height: 1.5; margin: 0; }
.day-toast p b { font-weight: 600; color: #000; }
.day-foot-cap { padding: 9px 16px; font-size: 0.72rem; color: #8a8680; border-top: 1px solid rgba(21,22,27,0.08); background: #ede9e2; }
.js-cine .hero-day .day-shot { animation: heroVisualIn 0.9s var(--ease-emphasized) 0.6s both; }

@media (max-width: 900px) {
    .hero-day { padding: 96px 0 48px; }
    .hero-day .hero-content { grid-template-columns: 1fr; gap: 22px; }
    .hero-day .hero-text h1 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
    .day { border-top: 1px solid var(--border); }
    .day li:not(.now) { display: none; }
    .day-foot { display: none; }
    .day-bar .live { display: none; }
    .day-stage { aspect-ratio: 4 / 3; }
    .day-toast { width: 240px; }
}
@media (prefers-reduced-motion: reduce) { .day-stage img, .day-toast { transition: none; } .day li.now .txt::after { animation: none; } }
.pricing-card .price-prefix { font-size: 0.85rem; color: var(--text-muted); margin-right: 6px; vertical-align: 12px; }
