/* =============================================================
   D-OP PROTECTION — ประสบการณ์บนมือถือ (หรูหรา · อ่านง่าย · แตะสะดวก)
   โหลดต่อจาก style.css และ pages.css
   ============================================================= */

/* แถบปุ่มติดต่อด่วนด้านล่าง + เมนูเต็มจอ ซ่อนบนเดสก์ท็อป */
.mbar{display:none}
.mnav-head,.mnav-cta,.mnav-foot{display:none}

@media (max-width:960px){

  /* ---------------- HEADER ---------------- */
  .site-header{
    background:linear-gradient(180deg,rgba(28,27,26,.96),rgba(18,17,16,.94));
    border-bottom:1px solid rgba(201,150,44,.55);
    box-shadow:0 6px 24px rgba(0,0,0,.35);
  }
  .site-header.small{background:linear-gradient(180deg,rgba(20,19,18,.98),rgba(12,11,10,.97))}
  .header-inner{height:72px;padding:0 18px;gap:12px}
  .site-header.small .header-inner{height:62px}
  .brand img{height:52px}
  .site-header.small .brand img{height:46px}
  .icon-btn{color:#EFE6CE}
  .icon-btn:hover{background:rgba(201,150,44,.2);color:var(--gold-200)}
  .burger span{background:#F0E4C4}

  /* ---------------- เมนูเต็มจอ ---------------- */
  .mobile-nav{
    top:0;left:0;right:0;height:100dvh;padding:0;overflow-y:auto;
    background:
      radial-gradient(120% 60% at 80% 0%, rgba(201,150,44,.22), rgba(0,0,0,0) 60%),
      linear-gradient(170deg,#171614 0%,#0D0C0B 55%,#121110 100%);
    backdrop-filter:none;box-shadow:none;
    display:flex;flex-direction:column;
    transform:translateY(-100%);
  }
  .mobile-nav.open{transform:none}
  .mnav-head{
    display:flex;align-items:center;justify-content:center;
    height:118px;border-bottom:1px solid rgba(201,150,44,.28);
  }
  .mnav-head img{height:66px;width:auto}
  .mnav-links{display:block;padding:8px 26px 4px;flex:1}
  .mnav-links a{
    position:relative;display:flex;align-items:center;justify-content:space-between;
    padding:17px 4px;font-family:"Kanit","Prompt",sans-serif;font-weight:400;font-size:18.5px;color:#EDEAE2;
    border-bottom:1px solid rgba(255,255,255,.08);
    opacity:0;transform:translateY(14px);
    transition:color .25s var(--ease),padding-left .3s var(--ease);
  }
  .mobile-nav.open .mnav-links a{animation:mnavIn .5s var(--ease) forwards}
  .mobile-nav.open .mnav-links a:nth-child(1){animation-delay:.05s}
  .mobile-nav.open .mnav-links a:nth-child(2){animation-delay:.10s}
  .mobile-nav.open .mnav-links a:nth-child(3){animation-delay:.15s}
  .mobile-nav.open .mnav-links a:nth-child(4){animation-delay:.20s}
  .mobile-nav.open .mnav-links a:nth-child(5){animation-delay:.25s}
  .mobile-nav.open .mnav-links a:nth-child(6){animation-delay:.30s}
  .mobile-nav.open .mnav-links a:nth-child(7){animation-delay:.35s}
  @keyframes mnavIn{to{opacity:1;transform:none}}
  .mnav-links a::after{
    content:"›";font-size:24px;line-height:1;color:var(--gold-500);opacity:.75;
    transition:transform .3s var(--ease);
  }
  .mnav-links a:hover,.mnav-links a:active{color:var(--gold-200);padding-left:10px}
  .mnav-links a:hover::after{transform:translateX(4px)}
  .mnav-links a.is-active{
    color:transparent;font-weight:500;
    background:var(--gold-text);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  }

  .mnav-cta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 26px 8px}
  .mcta{
    display:flex;align-items:center;justify-content:center;gap:9px;
    padding:14px 10px;border-radius:12px;font-size:15px;font-weight:500;
  }
  .mcta.call{background:var(--gold-btn);color:#33230A;box-shadow:0 8px 22px rgba(198,146,20,.45)}
  .mcta.line{background:rgba(255,255,255,.07);color:#EDE7D6;border:1px solid rgba(201,150,44,.45)}
  .mnav-foot{
    display:block;padding:16px 26px 30px;font-size:12.5px;line-height:1.9;color:#8B8880;text-align:center;
  }

  /* ---------------- HERO ---------------- */
  .hero{padding:96px 0 44px;text-align:center}
  .hero-grid{gap:0}
  .usa-badge{
    position:static;display:inline-flex;flex-direction:column;align-items:center;gap:2px;
    margin:0 auto 20px;padding:12px 22px;border-radius:14px;
    background:rgba(255,255,255,.28);border:1px solid rgba(201,150,44,.5);
    box-shadow:0 8px 22px rgba(0,0,0,.14);
  }
  .usa-badge .u1{font-size:10px;letter-spacing:2.4px}
  .usa-badge .u2{font-size:30px;margin:2px 0 3px}
  .usa-badge .u3{font-size:9.5px;letter-spacing:2px}
  .flag{width:40px;height:23px}
  .eyebrow{font-size:11px;letter-spacing:3.2px;margin-bottom:12px}
  .hero h1{font-size:clamp(26px,7.4vw,36px);line-height:1.36}
  .hero .lead{font-size:15.5px;line-height:1.9;margin:16px auto 0;max-width:520px}
  .btn{width:auto;font-size:16px;padding:14px 14px 14px 30px;margin-top:26px}
  .hero-visual{margin:22px -5vw 0;padding-bottom:20%}

  /* ---------------- หัวข้อกลาง ---------------- */
  .head{justify-content:flex-start;gap:14px}
  .head .bar{width:5px;min-height:64px}
  .head h2{font-size:clamp(22px,5.6vw,28px)}
  .head .sub{letter-spacing:3.6px;font-size:12px}

  /* ---------------- การ์ดจุดเด่น ---------------- */
  .why{padding:52px 0}
  .features{grid-template-columns:repeat(2,1fr);gap:14px}
  .feature{
    padding:22px 12px 20px;border-radius:16px;
    background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.22));
    border:1px solid rgba(201,150,44,.4);
    box-shadow:0 10px 24px rgba(0,0,0,.14);
  }
  .feature img{width:62px;margin-bottom:10px}
  .feature h3{font-size:16px}
  .feature p{font-size:12.5px;line-height:1.6}

  /* ---------------- โรงงาน / คอลลาจ ---------------- */
  .manu{padding:52px 0}
  .manu .body{font-size:15px;margin-top:20px}
  .pillars{grid-template-columns:repeat(2,1fr);gap:16px 0;margin:24px 0 6px}
  .pillar{
    padding:16px 8px;border-radius:14px;
    background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.18));
    border:1px solid rgba(201,150,44,.34);
  }
  .pillar+.pillar::before{display:none}
  .pillar img{width:54px}
  .pillar span{font-size:12px}
  .collage{grid-template-columns:1fr;gap:12px}
  .collage-col{grid-template-rows:none;grid-template-columns:repeat(3,1fr);gap:12px}
  .shot{border-radius:12px}

  /* ---------------- บล็อกภาพ + ข้อความ ---------------- */
  .sec{padding:52px 0}
  .sec-head{margin-bottom:34px}
  .sec-head h2{font-size:clamp(21px,5.4vw,27px)}
  .sec-head p{font-size:14.5px;line-height:1.85}
  .plant2 .split,.split{gap:26px}
  .plant2 .txt h2,.split .txt h2{font-size:clamp(21px,5.4vw,27px)}
  .plant-pic figcaption{font-size:12px;padding:28px 16px 12px}

  /* ---------------- การ์ด / สถิติ / รีวิว ---------------- */
  .card{padding:26px 22px;border-radius:16px}
  .card h3{font-size:17.5px}
  .stats{grid-template-columns:repeat(2,1fr);gap:14px}
  .stat{padding:22px 10px;border-radius:16px}
  .stat b{font-size:clamp(26px,7vw,34px)}
  .stat span{font-size:12.5px}
  .steps{grid-template-columns:1fr;gap:14px}
  .gallery{grid-template-columns:1fr;gap:14px}
  .gitem,.gitem.wide{grid-column:span 1;aspect-ratio:16/10;border-radius:14px}
  .gitem figcaption{transform:none;font-size:12.5px}
  .review{padding:24px 22px;border-radius:16px}

  /* ---------------- แบนเนอร์ ---------------- */
  .banner{min-height:0;text-align:left}
  .banner-veil{
    background:linear-gradient(180deg,rgba(8,8,7,.55) 0%,rgba(9,9,8,.9) 55%,rgba(9,9,8,.97) 100%),
               linear-gradient(95deg,rgba(8,8,7,.8) 0%,rgba(10,10,9,.5) 60%,transparent 100%);
  }
  .banner-bg{background-position:center 30%}
  .banner-text{padding:220px 0 44px;max-width:none}
  .banner-text h2{font-size:clamp(28px,8vw,38px)}
  .banner-text .b-sub{letter-spacing:3.4px;font-size:11px}
  .banner-text .b-line{font-size:16px;margin-top:16px}
  .page-hero{min-height:0;padding:110px 0 44px;text-align:left}
  .page-hero .ph-desc{font-size:14.5px}

  /* ---------------- ติดต่อ / ฟุตเตอร์ ---------------- */
  .cinfo.cinfo-2{grid-template-columns:1fr}
  .crow{border-radius:14px;padding:18px}
  .crow:hover{transform:none}
  .site-footer{padding:44px 0 96px}
  .foot-grid{grid-template-columns:1fr;gap:26px}
  .foot-brand img{height:60px}
  .foot-col h4{margin-bottom:10px}
  .foot-bottom{flex-direction:column;gap:8px;text-align:left;margin-top:28px}

  /* ---------------- แถบปุ่มติดต่อด้านล่าง ---------------- */
  .mbar{
    display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:1px;
    position:fixed;left:0;right:0;bottom:0;z-index:85;
    background:linear-gradient(180deg,rgba(28,27,25,.97),rgba(14,13,12,.99));
    border-top:1px solid rgba(201,150,44,.5);
    box-shadow:0 -8px 26px rgba(0,0,0,.35);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mbar-item{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    padding:11px 4px 10px;font-size:11.5px;color:#E7E1D2;letter-spacing:.4px;
    transition:background .25s,color .25s;
  }
  .mbar-item svg{opacity:.9}
  .mbar-item:active{background:rgba(201,150,44,.18)}
  .mbar-item.primary{
    background:var(--gold-btn);color:#33230A;font-weight:500;
  }
  .to-top{bottom:82px;right:16px;width:44px;height:44px}
}

@media (max-width:620px){
  .wrap{padding:0 18px}
  .header-inner{padding:0 16px}
  .hero{padding:88px 0 38px}
  .hero-visual{margin:18px -6vw 0}
  .features{gap:12px}
  .feature{padding:20px 10px 18px}
  .feature img{width:56px}
  .feature h3{font-size:15px}
  .feature p{font-size:12px}
  .pillars{gap:12px 0}
  .banner-text{padding:190px 0 40px}
  .mnav-head{height:94px}
  .mnav-head img{height:54px}
  .mnav-links a{font-size:17.5px;padding:15px 4px}
}

/* หน้าจอเล็กมาก */
@media (max-width:380px){
  .hero h1{font-size:24px}
  .usa-badge .u2{font-size:26px}
  .mbar-item{font-size:10.5px}
}

/* ---------------- วิดีโอบนจอเล็ก ---------------- */
@media (max-width:960px){
  .vgrid{grid-template-columns:repeat(2,1fr);gap:16px}
  .vcard{border-radius:14px}
  .vbody{padding:17px 18px 20px}
  .vbody h3{font-size:16.5px}
  .vbody p{font-size:13px;line-height:1.75}
  .vplay{width:56px;height:56px}
  .vplay svg{width:22px;height:22px}
  .vplay.big{width:68px;height:68px}
  .vplay.big svg{width:27px;height:27px}
  .vstage{border-radius:14px}
  .vstage figcaption{padding:44px 20px 20px}
  .vstage figcaption>span:last-child{font-size:13.5px;line-height:1.75}
  .vfilter{gap:8px;margin-bottom:26px}
  .vchip-btn{padding:9px 17px;font-size:13.5px}
  .vchip-btn:hover{transform:none}
  .is-empty .vsoon{font-size:12px;padding:9px 16px;letter-spacing:.8px}
  /* บนจอเล็ก กรอบวิดีโอแนะนำเตี้ยลง ป้ายกลางจอจะทับข้อความใต้ภาพ จึงย้ายไปมุมขวาบน */
  .vstage.is-empty .vsoon{left:auto;right:12px;top:12px;transform:none}
  .vlb{padding:62px 14px}
  .vlb-cap{font-size:13.5px}
  .vlb-cap b{font-size:16px}
}
@media (max-width:620px){
  .vgrid{grid-template-columns:1fr;gap:18px}
  .vfilter{gap:8px}
  .vchip-btn{padding:9px 15px;font-size:13px}
  .vstage figcaption{padding:38px 16px 16px}
  .vstage figcaption>span:last-child{display:none}
}
