/* =========================
   Theme Variables (Warm / Foundation)
มือถือ →  480w 480 × 415 px	logo 96px
Tablet →  768w 768 × 664 px	logo 128px
Laptop →  1200w 1200 × 1037 px	logo 160px	
จอใหญ่ / Retina →  1600w 1600 × 1383 px	logo 320px
========================= */
:root{
  /* ===== Base ===== */
  --bg: #FBB458;                 /* ส้ม FBB457 เหลือง FFF056 */
  --bg2:#FBB458;                 /* fcf0da ครีมอ่อน */
  --bg-white: rgba(255,255,255,.96);  
  --bg-white-2: rgba(255,255,255,.78);  
  /* ===== font ===== */  
  --font: 'GoogleSans', system-ui, -apple-system, 'Noto Sans Thai', sans-serif; 
  
  /* ===== text ===== */  
  --text:#3B362C;  
  --textquote: #F4B63B;
  --textwhite: rgba(255,255,255,.95);
  
  /* ===== Typography scale ===== */
    /* ===== Typography scale (balanced) ===== */
  --fs-h1: clamp(30px, 2.4vw + 10px, 48px);
  --fs-h2: clamp(22px, 1.6vw + 10px, 34px);
  --fs-h3: clamp(18px, 1.0vw + 10px, 26px);
  --fs-h4: clamp(15px, 0.6vw + 10px, 20px);

  --fs-section-title: clamp(22px, 1.8vw + 10px, 36px);
 
  --fs-body: clamp(14px, 0.3vw + 12px, 17px);
  
  /* ===== Surfaces ===== */  
  --glass: rgba(255,246,214,.78);
  --glass: color-mix(in srgb, var(--bg) 78%, transparent);

  /* ===== Accent ===== */
  --y-1:#F4B63B;                 /* primary / CTA */
  --y-2:#FFE8A6;                 /* soft highlight */
  --y-3:#C8871A;                 /* deep warm */


  /* ===== UI ===== */
  --border: rgba(42,36,27,.16); 	/* light gray */
  --border2: rgba(42,36,27,.10);  	/* lighter gray */
  --shadow: 0 18px 44px rgba(42,36,27,.16);
  --shadow2: 0 10px 22px rgba(42,36,27,.12);
  --radius: 22px;
  --max: 1280px;/*1120px;*/

 /* ===== RESPONSIVE ===== */
  --h2mb: 20px;
  --h2mt: 56px;
  /* Desktop header height (2 rows) */
  --navH:76px; /* 128px;*/
  
  /* ===== UNDERLINE ===== */
  --bg-line: rgba(244,182,59,.9);
  --bg-line-white: rgba(255,255,255,.92);
  --radius-line: 99px;
  --mt-top-line: 12px;
  --mt-bottom-line: 46px;
}
/* =========================
   GoogleSans Font (Local)
========================= */
@font-face{
  font-family: 'GoogleSans';
  src: url('../fonts/GoogleSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'GoogleSans';
  src: url('../fonts/GoogleSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'GoogleSans';
  src: url('../fonts/GoogleSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'GoogleSans';
  src: url('../fonts/GoogleSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'GoogleSans';
  src: url('../fonts/GoogleSans-SemiBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/*@font-face{
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Prompt';
  src: url('../fonts/Prompt-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Prompt';
  src: url('../fonts/Prompt-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Kanit';
  src: url('../fonts/Kanit-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Kanit';
  src: url('../fonts/Kanit-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
*/
*{ box-sizing:border-box; }
html{ 
	scroll-behavior:smooth; 
	scroll-padding-top: calc(var(--navH) + 16px); 
}
body{
   
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  
}
h1,h2,h3{
  font-family: var(--font);
  line-height: 1.15;
  letter-spacing: -0.01em;
} 
p{
  letter-spacing: .005em;
}

body{
  margin:0;
 /* font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Thai", sans-serif;*/
  color:var(--text);
  background:
    radial-gradient(1100px 720px at 15% 12%, rgba(255,255,255,.40), transparent 58%),
    radial-gradient(900px 520px at 85% 18%, rgba(42,157,143,.12), transparent 55%),
    radial-gradient(980px 740px at 50% 100%, rgba(244,182,59,.18), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  overflow-x:hidden;
}

body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a{ color:inherit; text-decoration:none; }

.wrap{ 
	width:min(var(--max), calc(100% - 32px)); 
	margin:0 auto; 
}

/* Helpers */
.desktop-only{ display:inline-flex; }
.mobile-only{ display:none; }

h1, .h1{
  margin: 18px 0 14px;
  font-size: var(--fs-h1);   
  letter-spacing: -0.02em;
  color: var(--text);
}
 
h2, .h2{
  margin:0;
  font-size: var(--fs-h2);  
  letter-spacing: -0.02em;  
  color: var(--text);  
}
h3, .h3{
  margin:0;
  font-size: var(--fs-h3); 
} 
h4, .h4{
  margin:0;
  font-size: var(--fs-h4);
} 
h1, .h1{ line-height: 1.15; }
h2, .h2{ line-height: 1.2; }
h3, .h3{ line-height: 1.25; }
h4, .h4{ line-height: 1.3; }
.section-title {
  text-shadow: 0 1px 0 rgba(255,255,255,.6);  
  margin: var(--h2mt) 0 var(--h2mb) 0;    
  font-size: var(--fs-section-title);
  font-weight: 700;
  /*
   font-size: var(--fs-h1);
  text-transform:uppercase;
  letter-spacing: .08em;
  font-weight: 900;*/
}
 /*
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border2);
  background: rgba(255,255,255,.72);
  color:var(--text);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  box-shadow: var(--shadow2);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.90);
  border-color: var(--border);
}
.btn.primary{
  background: linear-gradient(135deg, var(--y-1), var(--y-2));
  color:#231E17;
  border-color: rgba(200,135,26,.30);
  box-shadow: 0 18px 36px rgba(200,135,26,.22);
}
*/
/* =========================
   Header
========================= */
.header.header-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;

  /* สีส้มแบบภาพ */
  background: #FBB458;
  border-bottom: 1px solid rgba(42,36,27,.10);
  backdrop-filter: none;
}

.header-line{
  height: var(--navH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
  
.brand{
  display: inline-flex;
  align-items: center;
}

/* logo image */
.brand img{
   display: block;
  height: 56px;      /* desktop */
  width: auto; 
}

 


/*
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(255,255,255,.75);
  flex: 0 0 auto;
}

.brand-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name{
  
  font-size: clamp(15px, 1.2vw, 16px);
  letter-spacing: .02em;
  color: rgba(35,30,23,.92);
}
.brand-title{
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 17px);
}
 
.brand-subtitle{ 
  font-size: clamp(15px, 1.3vw, 16px);
}
*/
/* Center menu with | separators */
.menu-bar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;                  
  flex: 0; 
  min-width: unset;     /* กันบังคับความกว้าง */
  margin-left: auto;    /* ดันไปชิดขวา */
  justify-content: flex-end;
}

.menu-bar a{
  position: relative;   
 /* padding: 10px 14px;*/
  border-radius: 999px;
  transition: background .15s ease, opacity .15s ease;
  opacity: .95;
  white-space: nowrap;
  
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1;
  letter-spacing: 0.1px;

}

/* ตัวคั่น | */
.menu-bar a + a{
  padding-left: 22px;
  margin-left: 10px;
}
.menu-bar a + a::before{
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(35,30,23,.55);
}

.menu-bar a:hover{
  background: rgba(255,255,255,.28);
  opacity: 1;
}

.menu-bar a.active{
  background: rgba(255,255,255,.35);
  opacity: 1;
  outline: 1px solid rgba(255,255,255,.35);
}

/* Right donate button */
.header-actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: unset;
}

.donate-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;

  background: var(--bg-white);
  color: var(--bg);
  border: 1px solid rgba(42,36,27,.10);
  box-shadow: 0 10px 22px rgba(42,36,27,.12);
  font-size: clamp(12px, 1.2vw, 13px); 
  font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}

.donate-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}
/* ===== Mobile Drawer ===== */
.mobile-panel{
  position: fixed;
  top: var(--navH);
  left: auto;
  right: 18px;
  z-index: 60;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease;
}

.mobile-panel.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-panel-inner{
  border-radius: 18px;
  border: 1px solid var(--border2);
  background: var(--bg-white);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 14px;
}

.mobile-nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.mobile-nav a{
  text-align:center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--bg-white-2);/*var(--bg-white)*/
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--text);
}

.mobile-divider{
  height:1px;
  /*background: linear-gradient(90deg, transparent, rgba(200,135,26,.35), transparent);*/
  background: linear-gradient(90deg, transparent, var(--bg), transparent);
  margin: 12px 0;
}

.mobile-extras{
  display:flex;
  gap: 10px;
}

.mobile-chip{
  flex:1;
  height: 42px;
  border-radius: 999px;
  border:1px solid var(--border2);
  background: var(--bg-white-2);
  color: var(--text);
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing:.14em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width: 720px){
  :root{ --navH: 64px; }

  .desktop-only{ display:none !important; }
  .mobile-only{ display:inline-flex !important; }

  .brand{ min-width: unset; }
  .brand-name{ font-size: 15px; }

  .hamburger{
    display:inline-flex;
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(42,36,27,.10);
    background: rgba(255,255,255,.55);
    box-shadow: 0 10px 22px rgba(42,36,27,.12);
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .hamburger span{
    display:block;
    width:18px; height:2px;
    background: rgba(35,30,23,.92);
    border-radius:2px;
  }
 
  .mobile-panel{ top: var(--navH); }
}

/* =========================
   Main / Sections
========================= */
main{ padding-top: var(--navH); }

section{
  scroll-margin-top: calc(var(--navH) + 16px); /* คลิกเมนูแล้วลงมาพอดี */
 /* min-height: 100vh;*/
  /*display:flex;
  align-items:center;*/
  /*padding: 64px 0;*/
  /*padding: clamp(32px, 8vw, 64px) 0;*/
  /*padding: calc(clamp(32px, 8vw, 64px) * 1.05) 0;*/
  padding: clamp(16px, 4vw, 32px) 0;
}


 /* =========================
  Youtube
========================= */ 
.video-wrapper{
  position: relative;
  width: 100%;
  max-width: 960px;      
  margin: 0 auto;
  aspect-ratio: 16 / 9;  
}

.video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0; 
}
 
 /* =========================
   Footer
========================= */
  
/* =========================
   Footer
========================= */
.site-footer{
  background: var(--bg);
  padding: clamp(14px, 2.2vw, 18px) 0;
  color: var(--textwhite);
}

/* ✅ ตัวที่ต้องจัด layout จริง ๆ คือ footer-line */
.footer-line{
  display: grid;
  grid-template-columns: auto 1fr auto; /* ซ้าย / กลาง / ขวา */
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

/* left */
.footer-brand{
  justify-self: start;
  display:flex;
  align-items:center;
}

.footer-badge{
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--textwhite);
}

/* center */
.footer-copy{
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
}

/* right icons */
.footer-social{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;

  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;

  transition: transform .15s ease, background .15s ease;
}

.footer-icon:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.26);
}

.footer-icon svg{
  width: 22px;
  height: 22px;
}

/* ✅ responsive: จอเล็กให้เรียงลงมา */
@media (max-width: 640px){
  .footer-line{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-social{ justify-self: center; }
}


/* =========================
   Scroll to Top Button
========================= */
.scroll-top{
  position: fixed;
  right: clamp(16px, 3vw, 24px);
  bottom: clamp(20px, 4vw, 32px);
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  background: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: var(--y-3);
  border: 1px solid rgba(255,255,255,.45);

  box-shadow:
    0 10px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.6);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  touch-action: manipulation;

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

/* show */
.scroll-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* hover */
.scroll-top:hover{
  background: rgba(255,255,255,.32);
  box-shadow:
    0 16px 36px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.75);
  transform: translateY(-4px) scale(1.04);
}

/* active */
.scroll-top:active{
  transform: translateY(-1px) scale(.97);
}

/* icon */
.scroll-top svg{
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}
.scroll-top.above-footer{
  bottom: clamp(88px, 10vw, 120px);
}
/* =========================
   YouTube Popup
========================= */
.youtube-trigger{
  cursor: pointer;
}
 
.yt-modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.yt-modal.open{
  display: block;
}

.yt-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}

.yt-content{
  position: relative;
  max-width: 960px;
  width: calc(100% - 32px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}

.yt-frame-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

.yt-frame-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* close button */
.yt-close{
  position:absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}


/* =========================
   Responsive
========================= */
 

