@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");


:root {
  --navy:#2f2357; --blue:#0b8f87; --teal:#ef6f61; --pale:#f3f0fb;
  --pale2:#fff8f3; --white:#fff; --text:#302d3f; --muted:#6f6a7a;
  --border:#ded8ea; --shadow:0 18px 46px rgba(47,35,87,.13);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"Poppins","Noto Sans Thai",Arial,sans-serif;
  color:var(--text);background:var(--white);line-height:1.72
}
html[lang="th"] body{font-family:"Noto Sans Thai","Poppins",Arial,sans-serif;line-height:1.78}
img{display:block;max-width:100%}
a{color:var(--blue)}
button,input,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 42px));margin:auto}
.site-header{
  position:sticky;top:0;z-index:30;background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--border);backdrop-filter:blur(12px)
}
.header-inner{
  min-height:94px;display:flex;align-items:center;justify-content:space-between;
  gap:26px
}
.brand{display:inline-flex;align-items:center;text-decoration:none}
.brand img{width:220px;height:76px;object-fit:contain;object-position:left center}
.header-actions{display:flex;align-items:center;gap:18px}
nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
nav a{color:var(--navy);text-decoration:none;font-weight:800;font-size:.94rem}
nav a:hover,nav a[aria-current="page"]{color:var(--blue)}
.language-toggle{
  min-width:90px;padding:9px 15px;border:1px solid var(--blue);
  border-radius:999px;background:var(--white);color:var(--navy);
  font-weight:800;cursor:pointer
}
.language-toggle:hover,.language-toggle:focus-visible{background:var(--pale)}
.hero{
  padding:76px 0;
  background:radial-gradient(circle at 85% 15%,rgba(77,153,153,.18),transparent 32%),
             linear-gradient(135deg,var(--pale2),#e9e3fa)
}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:center}
.hero-photo,.page-photo{
  position:relative;overflow:hidden;border-radius:24px;
  box-shadow:var(--shadow);background:var(--pale)
}
.hero-photo img{width:100%;min-height:520px;object-fit:cover}
.photo-badge{
  position:absolute;left:22px;bottom:22px;max-width:330px;padding:15px 18px;
  border-radius:14px;background:rgba(255,255,255,.94);color:var(--navy);
  font-weight:900;box-shadow:var(--shadow)
}
.page-hero{padding:68px 0;background:linear-gradient(135deg,var(--pale2),#eee8fb)}
.page-hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center}
.page-photo img{width:100%;height:360px;object-fit:cover}
.eyebrow{
  margin:0 0 12px;color:var(--blue);font-size:.84rem;font-weight:900;
  letter-spacing:.11em;text-transform:uppercase
}
h1,h2,h3,h4{color:var(--navy);margin-top:0}
h1{
  max-width:900px;margin-bottom:0;font-size:clamp(2.25rem,5.4vw,4.65rem);
  line-height:1.17;letter-spacing:-.018em
}
h2{margin-bottom:20px;font-size:clamp(1.75rem,3.4vw,2.75rem);line-height:1.28}
h3{margin-bottom:12px;font-size:1.24rem;line-height:1.38}
html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3,html[lang="th"] h4{
  letter-spacing:0;line-height:1.42
}
.lead,.page-intro{max-width:820px;margin:24px 0 0;color:var(--muted);font-size:1.15rem}
.button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.button{
  display:inline-block;padding:13px 21px;border:1px solid transparent;
  border-radius:10px;font-weight:900;text-decoration:none;cursor:pointer
}
.button.primary{background:var(--navy);color:var(--white)}
.button.secondary{background:var(--white);color:var(--navy);border-color:var(--border)}
.button.light{background:var(--pale);color:var(--navy)}
.section{padding:82px 0}
.section.muted{background:var(--pale)}
.section.dark{background:var(--navy);color:#e7f1f5}
.section.dark h2,.section.dark h3{color:var(--white)}
.section.dark .eyebrow{color:#9ed6dc}
.section.compact{padding:55px 0}
.section-heading{max-width:850px;margin-bottom:34px}
.section-heading p:last-child{color:var(--muted)}
.card-grid,.service-grid,.staff-grid,.contact-grid,.feature-grid,.stat-grid,.footer-grid{
  display:grid;gap:22px
}
.card-grid,.contact-grid,.stat-grid{grid-template-columns:repeat(3,1fr)}
.service-grid,.staff-grid{grid-template-columns:repeat(3,1fr)}
.card,.service-card,.staff-card,.contact-card,.feature-panel,.info-panel,.notice,.form-card{
  border:1px solid var(--border);border-radius:var(--radius);
  background:var(--white);box-shadow:var(--shadow)
}
.card,.service-card,.staff-card,.contact-card,.feature-panel,.info-panel{padding:27px}
.card p,.service-card p,.staff-card p,.contact-card p,.feature-panel p,.info-panel p{
  color:var(--muted)
}
.service-card{display:flex;flex-direction:column}
.service-icon{display:grid;place-items:center;background:var(--pale);color:var(--blue);font-weight:900}
.service-icon{
  width:52px;height:52px;margin-bottom:18px;border-radius:14px;font-size:1.45rem
}
.staff-role{margin:-5px 0 11px!important;color:var(--blue)!important;font-weight:900}
.staff-status{
  display:inline-block;margin-top:10px;padding:5px 9px;border-radius:999px;
  background:var(--pale);color:var(--muted);font-size:.78rem;font-weight:800
}
.feature-grid{grid-template-columns:repeat(2,1fr)}
.feature-panel{
  display:flex;min-height:330px;flex-direction:column;
  background:linear-gradient(150deg,var(--white),var(--pale2))
}
.feature-panel .button{align-self:flex-start;margin-top:auto}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:46px;align-items:start}
.media-block{display:grid;grid-template-columns:.9fr 1.1fr;gap:38px;align-items:center}
.media-block.reverse{grid-template-columns:1.1fr .9fr}
.media-block img{
  width:100%;height:420px;object-fit:cover;border-radius:22px;box-shadow:var(--shadow)
}
.notice{padding:24px;background:#fff8e8;border-color:#ead7a6;box-shadow:none}
.notice strong{color:var(--navy)}
.check-list,.service-list{margin:18px 0 0;padding-left:21px}
.check-list{list-style:none;padding-left:0}
.check-list li{position:relative;padding-left:29px;margin-bottom:11px}
.check-list li:before{content:"✓";position:absolute;left:0;color:var(--teal);font-weight:900}
.service-list li{margin-bottom:8px}
.emergency-band{padding:22px 0;background:#a23b49;color:var(--white)}
.emergency-band .container{
  display:flex;justify-content:space-between;gap:24px;align-items:center
}
.emergency-band strong{font-size:1.05rem}
.emergency-band a{color:var(--white);font-weight:900}
.contact-grid{margin-top:28px}
.form-card{padding:30px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}
.form-group{display:grid;gap:7px}
.form-group.full{grid-column:1/-1}
label{color:var(--navy);font-weight:800}
input,textarea{
  width:100%;padding:12px 13px;border:1px solid var(--border);
  border-radius:9px;background:var(--white);color:var(--text)
}
textarea{min-height:150px;resize:vertical}
.map-placeholder{
  min-height:330px;display:grid;place-items:center;padding:34px;
  border:1px dashed var(--blue);border-radius:var(--radius);
  background:var(--pale);text-align:center;color:var(--muted)
}
.small-note,.form-note,.disclaimer{color:var(--muted);font-size:.9rem}
.disclaimer{margin-top:35px;padding-top:20px;border-top:1px solid var(--border)}
footer{background:#241b45;color:#dce9ef}
.footer-main{padding:58px 0 42px}
.footer-grid{grid-template-columns:1.2fr 1fr .8fr .9fr}
.footer-logo{
  width:205px;margin-bottom:18px;opacity:1
}
footer h3{color:var(--white);font-size:1.05rem}
footer p{margin:0 0 9px}
footer a{color:#dce9ef;text-decoration:none}
footer a:hover{text-decoration:underline}
.footer-links{display:grid;gap:8px}
.footer-bottom{
  padding:20px 0;border-top:1px solid rgba(255,255,255,.13);
  color:#afc6d1;font-size:.88rem
}
.footer-bottom-inner{display:flex;justify-content:space-between;gap:20px}
.draft-banner{padding:15px 0;background:#fff6d9;color:#5c4812;border-bottom:1px solid #ead7a6}
.draft-banner p{margin:0;font-weight:800}


@media(max-width:1000px){
  .header-inner,.header-actions{align-items:flex-start;flex-direction:column}
  .header-inner{padding:15px 0}
  .header-actions,nav{width:100%}
  .hero-grid,.page-hero-grid,.split,.media-block,.media-block.reverse,.footer-grid{
    grid-template-columns:1fr
  }
  .card-grid,.service-grid,.staff-grid,.contact-grid,.stat-grid{
    grid-template-columns:repeat(2,1fr)
  }
  .hero-photo img{min-height:420px}
}
@media(max-width:680px){
  .container{width:min(100% - 28px,1180px)}
  .hero,.page-hero,.section{padding:56px 0}
  .brand img{width:190px;height:68px}
  .card-grid,.service-grid,.staff-grid,.contact-grid,.feature-grid,.stat-grid,.form-grid{
    grid-template-columns:1fr
  }
  .hero-photo img,.media-block img{min-height:0;height:330px}
  .emergency-band .container,.footer-bottom-inner{
    align-items:flex-start;flex-direction:column
  }
}


/* Responsive system */
html{overflow-x:hidden}
body{overflow-x:hidden}
img{height:auto}
p,li,a,h1,h2,h3,h4{overflow-wrap:anywhere}
.container{width:min(1180px,calc(100% - 48px))}

.header-inner{
  min-height:118px;
  gap:28px;
}
.brand{
  flex:0 1 auto;
  min-width:0;
}
.brand img{
  width:clamp(285px,24vw,360px);
  height:auto;
  max-height:108px;
}
.header-actions{
  min-width:0;
}
nav{
  justify-content:flex-end;
  row-gap:10px;
}
nav a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
}
.language-toggle{
  min-height:44px;
  flex:0 0 auto;
}
.mobile-nav-toggle{
  display:none;
  width:48px;
  height:48px;
  padding:11px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--white);
  cursor:pointer;
  flex:0 0 auto;
}
.mobile-nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  margin:5px 0;
  border-radius:99px;
  background:var(--navy);
  transition:transform .2s ease,opacity .2s ease;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.hero-grid,.page-hero-grid,.split,.media-block,.media-block.reverse{
  min-width:0;
}
.hero-grid>*,.page-hero-grid>*,.split>*,.media-block>*{
  min-width:0;
}
.hero-photo img{
  aspect-ratio:4/3;
  min-height:0;
}
.page-photo img{
  aspect-ratio:4/3;
  height:auto;
}
.card,.service-card,.staff-card,.contact-card,.feature-panel,.info-panel,.notice,.form-card{
  min-width:0;
}
input,textarea,button{
  max-width:100%;
}
.footer-logo{
  width:clamp(275px,25vw,340px);
  max-width:100%;
  height:auto;
}

@media(max-width:1040px){
  .site-header{position:sticky}
  .header-inner{
    min-height:96px;
    padding:10px 0;
    flex-direction:row;
    align-items:center;
    gap:16px;
  }
  .brand{
    margin-right:auto;
    max-width:calc(100% - 64px);
  }
  .brand img{
    width:clamp(245px,43vw,320px);
    max-height:82px;
  }
  .mobile-nav-toggle{
    display:block;
    position:relative;
    z-index:42;
  }
  .header-actions{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:grid;
    width:100%;
    gap:14px;
    padding:0 max(24px,calc((100vw - 1180px)/2));
    background:var(--white);
    border-bottom:1px solid var(--border);
    box-shadow:0 18px 35px rgba(47,35,87,.12);
    max-height:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:max-height .28s ease,opacity .2s ease,transform .2s ease,visibility .2s;
  }
  .header-actions.is-open{
    max-height:80vh;
    padding-top:18px;
    padding-bottom:22px;
    overflow-y:auto;
    opacity:1;
    visibility:visible;
    transform:none;
  }
  .header-actions nav{
    width:100%;
    display:grid;
    gap:4px;
  }
  .header-actions nav a{
    width:100%;
    min-height:48px;
    padding:10px 4px;
    border-bottom:1px solid var(--border);
    font-size:1rem;
  }
  .language-toggle{
    width:100%;
    min-height:48px;
  }
  body.menu-open{overflow:hidden}

  .hero-grid,.page-hero-grid,.split,.media-block,.media-block.reverse{
    grid-template-columns:1fr;
    gap:34px;
  }
  .hero-grid .hero-photo,.page-hero-grid .page-photo{
    max-width:760px;
    width:100%;
  }
  .hero-photo img{
    aspect-ratio:16/10;
  }
  .page-photo img,.media-block img{
    aspect-ratio:16/10;
    height:auto;
  }
  .card-grid,.service-grid,.staff-grid,.contact-grid,.stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .container{
    width:min(100% - 30px,1180px);
  }
  .header-inner{
    min-height:86px;
    padding:8px 0;
  }
  .brand{
    max-width:calc(100% - 58px);
  }
  .brand img{
    width:min(255px,100%);
    max-height:74px;
  }
  .mobile-nav-toggle{
    width:46px;
    height:46px;
  }
  .header-actions{
    padding-left:15px;
    padding-right:15px;
  }
  .hero{
    padding:46px 0 52px;
  }
  .page-hero{
    padding:44px 0;
  }
  .section{
    padding:54px 0;
  }
  .section.compact{
    padding:40px 0;
  }
  h1{
    font-size:clamp(2rem,10vw,3rem);
    line-height:1.19;
  }
  h2{
    font-size:clamp(1.6rem,7.6vw,2.25rem);
  }
  .lead,.page-intro{
    margin-top:18px;
    font-size:1.04rem;
  }
  .hero-grid,.page-hero-grid,.split,.media-block,.media-block.reverse{
    gap:26px;
  }
  .hero-photo,.page-photo,.media-block img{
    border-radius:18px;
  }
  .hero-photo img,.page-photo img,.media-block img{
    aspect-ratio:4/3;
    height:auto;
  }
  .photo-badge{
    left:12px;
    right:12px;
    bottom:12px;
    max-width:none;
    padding:12px 14px;
    font-size:.9rem;
  }
  .card-grid,.service-grid,.staff-grid,.contact-grid,.feature-grid,.stat-grid,.form-grid,.footer-grid{
    grid-template-columns:1fr;
  }
  .card,.service-card,.staff-card,.contact-card,.feature-panel,.info-panel{
    padding:22px;
  }
  .feature-panel{
    min-height:0;
  }
  .button-row{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
  }
  .button-row .button{
    width:100%;
    text-align:center;
  }
  .form-card{
    padding:22px;
  }
  .form-group.full{
    grid-column:auto;
  }
  input,textarea{
    font-size:16px;
  }
  .emergency-band{
    padding:18px 0;
  }
  .emergency-band .container{
    display:grid;
    gap:12px;
  }
  .emergency-band a{
    display:inline-flex;
    min-height:44px;
    align-items:center;
  }
  .footer-main{
    padding:46px 0 34px;
  }
  .footer-grid{
    gap:32px;
  }
  .footer-logo{
    width:min(310px,100%);
    margin-bottom:18px;
  }
  .footer-bottom-inner{
    display:grid;
    gap:8px;
  }
}

@media(max-width:390px){
  .container{
    width:calc(100% - 24px);
  }
  .brand img{
    width:min(218px,100%);
  }
  .mobile-nav-toggle{
    width:44px;
    height:44px;
    padding:10px;
  }
  h1{
    font-size:1.9rem;
  }
  h2{
    font-size:1.55rem;
  }
  .card,.service-card,.staff-card,.contact-card,.feature-panel,.info-panel,.form-card{
    padding:19px;
  }
}
