/* ===========================
   AKK Premium – Global Style (Cream Premium)
   =========================== */
   :root{
    --brand:#007d6e;
    --brand-2:#009e8c;
    --text:#222;
    --bg:#fdf8f3;         /* ครีมพรีเมียม */
    --muted:#f6f7f8;
    --radius:14px;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --ring:0 0 0 4px rgba(0,125,110,.12);
    --maxw:1080px;
    --font:'Kanit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
  
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.68}
  
  /* Links */
  a{color:var(--brand);text-decoration:none}
  a:hover{text-decoration:underline}
  
  /* ===========================
     Header (ทุกหน้า)
     =========================== */
  header{
    position:sticky; top:0; z-index:99;
    background:linear-gradient(180deg,#fff,rgba(255,255,255,.92));
    backdrop-filter:saturate(1.2) blur(2px);
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  .header-inner{
    max-width:var(--maxw); margin:auto;
    display:flex; align-items:center; gap:16px;
    padding:12px 18px;
  }
  .header-inner img.logo{
    width:70px; height:auto; border-radius:10px; object-fit:contain; margin-right:10px;
  }
  .header-inner h1{font-size:20px;margin:0;color:var(--brand);letter-spacing:.2px}
  .header-nav{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap}
  .header-nav a{color:#333;font-weight:700}
  .header-nav a:hover{color:var(--brand-2)}
  
  /* ===========================
     Hero (เต็มจอ ไม่มี overlay)
     =========================== */
  .hero{
    position:relative; min-height:80vh;
    display:flex; align-items:center; justify-content:center; text-align:center;
    background:url('assets/banner.jpg') center/cover no-repeat;
    color:#fff;
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  .hero-content{
    max-width:860px; margin:0 auto; padding:60px 18px;
    text-shadow:0 2px 24px rgba(0,0,0,.35);
  }
  .hero-title{font-size:42px;margin:0 0 10px;font-weight:900;letter-spacing:.3px}
  .hero-sub{font-size:18px;opacity:.98;margin:0 0 18px}
  .cta{
    display:inline-block; background:#fff; color:var(--brand);
    padding:12px 22px; border-radius:999px; font-weight:900; box-shadow:var(--shadow)
  }
  .cta:hover{transform:translateY(-1px);box-shadow:0 12px 34px rgba(0,0,0,.12)}
  
  /* ===========================
     Layout & Section Titles
     =========================== */
  .page{max-width:var(--maxw);margin:0 auto;padding:28px 18px}
  h2.section-title{font-size:24px;margin:14px 0;color:#111}
  .section-sub{margin-top:-6px;color:#555;font-size:14px}
  
  /* ===========================
     Product Cards (แนวตั้ง + เงาสตูดิโอ)
     =========================== */
  .products{display:grid;gap:22px;margin:22px 0 10px}
  .card{
    background:#fff; border-radius:var(--radius);
    box-shadow:var(--shadow); padding:14px; overflow:hidden;
    border:1px solid rgba(0,0,0,.06)
  }
  .card figure{margin:0;position:relative;isolation:isolate;background:#fff}
  .card img{width:100%;height:auto;display:block;border-radius:10px}
  /* เงาพื้นแบบสตูดิโอ */
  .card figure::after{
    content:''; position:absolute; left:10%; right:10%; bottom:6px; height:18px;
    background:radial-gradient(ellipse at center,rgba(0,0,0,.22),transparent 60%);
    filter:blur(8px); opacity:.36; z-index:-1;
  }
  .card h3{margin:12px 6px 4px;font-size:18px;color:#111}
  .card p{margin:0 6px 12px;color:#555}
  
  /* ===========================
     Forms (Contact / Landing)
     =========================== */
  .form-wrap{
    background:#fff; border:1px solid rgba(0,0,0,.06);
    border-radius:var(--radius); box-shadow:var(--shadow); padding:22px; margin-top:10px
  }
  .form-grid{display:grid;gap:12px}
  .input,.textarea,button{font-family:var(--font)}
  .input,.textarea{
    width:100%; padding:12px 12px; border:1px solid #ddd;
    border-radius:10px; outline:none; background:#fff;
  }
  .input:focus,.textarea:focus{border-color:var(--brand);box-shadow:var(--ring)}
  button.btn{
    background:var(--brand); color:#fff; border:none; padding:12px 18px;
    border-radius:999px; font-weight:900; cursor:pointer
  }
  button.btn:hover{background:var(--brand-2)}
  .note{font-size:13px;color:#666;margin-top:6px}
  
  /* ===========================
     Popup + Loading
     =========================== */
  #thankYou{
    display:none; position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
    align-items:center; justify-content:center; opacity:0; transition:opacity .35s ease
  }
  #thankYou.show{display:flex;opacity:1}
  .popup{
    background:#fff; border-radius:16px; padding:28px;
    max-width:380px; margin:0 16px; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.2)
  }
  .popup h3{margin:0 0 6px;color:var(--brand)}
  
  #loading{
    display:none; position:fixed; inset:0; z-index:9998;
    background:rgba(255,255,255,.7); align-items:center; justify-content:center
  }
  .spinner{
    width:60px; height:60px; border-radius:50%;
    border:6px solid #e6e6e6; border-top-color:var(--brand);
    animation:spin 1s linear infinite
  }
  @keyframes spin{to{transform:rotate(360deg)}}
  
  /* ===========================
     Floating Contact (Desktop) + Bottom Bar (Mobile)
     =========================== */
  @media (min-width:769px){
    .floating{
      position:fixed; right:18px; bottom:18px;
      display:flex; flex-direction:column; gap:12px; z-index:2000
    }
    .fab{
      width:56px; height:56px; border-radius:50%;
      display:flex; align-items:center; justify-content:center;
      background:#fff; box-shadow:var(--shadow);
      border:1px solid rgba(0,0,0,.06); transition:transform .2s ease
    }
    .fab:hover{transform:translateY(-2px)}
    .fab img{width:28px;height:28px}
  }
  @media (max-width:768px){
    .bottom-bar{
      position:fixed; left:0; right:0; bottom:0;
      background:var(--brand); display:flex; z-index:2000
    }
    .bottom-bar a{
      flex:1; padding:10px 2px; text-align:center; color:#fff; text-decoration:none;
      font-weight:800; display:flex; gap:6px; justify-content:center; align-items:center
    }
    .bottom-bar img{width:22px;height:22px}
  }
  
  /* ===========================
     Footer
     =========================== */
  footer{
    text-align:center; padding:22px;
    background:linear-gradient(180deg,rgba(255,255,255,.9),#fff);
    border-top:1px solid rgba(0,0,0,.06); color:#333
  }
  
  /* ===========================
     Page-specific helpers (ถ้ามี)
     =========================== */
  .banner .btn{background:#fff;color:var(--brand);padding:10px 20px;border-radius:8px;font-weight:800;display:inline-block;margin-top:10px}
  .product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:30px}
  .product-card{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:12px;text-align:center;padding:15px;box-shadow:var(--shadow)}
  .product-card img{width:100%;border-radius:10px}
  .product-card h4{margin:12px 0 6px;color:var(--brand)}
  
  /* ===========================
     Dark Mode
     =========================== */
  @media (prefers-color-scheme:dark){
    body{background:#0f1213;color:#dfe3e6}
    header{background:#0f1213;border-color:#1f2427}
    .hero{border-color:#1f2427}
    .card,.form-wrap,.popup{background:#0f1213;border-color:#1f2427;box-shadow:0 10px 30px rgba(0,0,0,.6)}
    .hero-title,.hero-sub{text-shadow:0 2px 24px rgba(0,0,0,.55)}
    .header-nav a{color:#dfe3e6}
    .section-sub{color:#9aa3ab}
    .input,.textarea{background:#0f1213;color:#dfe3e6;border-color:#2a3136}
    .note{color:#9aa3ab}
    .bottom-bar{background:#067a6d}
  }
  