@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Kanit:wght@500;600;700;800&display=swap');

:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --blue-light: #1976d2;
  --blue-pale: #e3f2fd;
  --orange: #e65100;
  --orange-light: #ff6d00;
  --orange-pale: #fff3e0;
  --gray-dark: #263238;
  --gray-mid: #546e7a;
  --gray-light: #eceff1;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text: #1a2332;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #dee2e6;
  --green: #2e7d32;
  --shadow: 0 4px 20px rgba(21,101,192,0.10);
  --shadow-lg: 0 10px 40px rgba(21,101,192,0.18);
  --r: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Sarabun', sans-serif; background: var(--off-white); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ===== TOPBAR ===== */
.topbar { background: var(--blue-dark); padding: 7px 20px; text-align: center; font-size: 13px; color: #b0c8e8; }
.topbar a { color: #ffcc02; font-weight: 600; }
.topbar span { margin: 0 10px; opacity: 0.4; }

/* ===== HEADER ===== */
header { background: var(--white); border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.logo-text strong { font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 700; color: var(--blue-dark); display: block; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--text-light); }
nav { display: flex; align-items: center; gap: 3px; }
nav a { color: var(--text-mid); font-size: 13px; font-weight: 500; padding: 7px 11px; border-radius: 7px; transition: all .2s; white-space: nowrap; }
nav a:hover, nav a.active { background: var(--blue-pale); color: var(--blue); }
.nav-cta { background: var(--orange) !important; color: white !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--orange-light) !important; }
.menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--blue-dark); }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1565c0 100%); padding: 68px 20px 76px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,204,2,0.15); border: 1px solid rgba(255,204,2,0.4); color: #ffcc02; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: 'Kanit', sans-serif; font-size: clamp(22px, 4.5vw, 46px); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 14px; }
.hero h1 .acc { color: #ffcc02; }
.hero-sub { color: #b0cfe8; font-size: clamp(14px, 2vw, 17px); max-width: 580px; margin: 0 auto 24px; }
.hero-features { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-feat { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 7px 14px; border-radius: 50px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-call { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: white; font-family: 'Kanit', sans-serif; font-weight: 700; padding: 14px 28px; border-radius: 50px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; box-shadow: 0 4px 18px rgba(230,81,0,.4); }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(230,81,0,.5); }
.btn-line { background: #06C755; color: white; font-family: 'Kanit', sans-serif; font-weight: 700; padding: 14px 24px; border-radius: 50px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.btn-line:hover { opacity: .88; transform: translateY(-2px); }
.btn-fb { background: #1877f2; color: white; font-weight: 700; padding: 14px 22px; border-radius: 50px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.btn-fb:hover { opacity: .88; transform: translateY(-2px); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.sec-hdr { text-align: center; margin-bottom: 40px; }
.sec-tag { display: inline-block; background: var(--blue-pale); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 10px; }
.sec-hdr h2 { font-family: 'Kanit', sans-serif; font-size: clamp(20px, 3.5vw, 32px); font-weight: 700; color: var(--gray-dark); margin-bottom: 10px; }
.sec-hdr p { color: var(--text-light); font-size: 15px; max-width: 540px; margin: 0 auto; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

/* ===== SERVICE CARDS ===== */
.srv-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); transition: all .22s; }
.srv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.srv-card-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.srv-card h3 { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 700; color: var(--gray-dark); margin-bottom: 8px; }
.srv-card p { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 10px; }
.srv-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.srv-card li { font-size: 13px; color: var(--text-mid); display: flex; align-items: flex-start; gap: 6px; }
.srv-card li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 16px 20px; font-family: 'Sarabun', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-dark); display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .2s; }
.faq-q:hover { background: var(--off-white); }
.faq-arrow { color: var(--blue); font-size: 17px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 20px; font-size: 14px; color: var(--text-mid); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 500px; padding: 4px 20px 16px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-item { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: white; padding: 24px 12px 10px; font-size: 13px; font-weight: 600; transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 36px; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 40px; cursor: pointer; background: rgba(255,255,255,.1); border: none; padding: 10px 16px; border-radius: 8px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ===== REVIEWS ===== */
.review-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 22px; box-shadow: var(--shadow); }
.review-stars { color: #f59e0b; font-size: 17px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--text-mid); line-height: 1.8; font-style: italic; margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.r-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-family: 'Kanit', sans-serif; flex-shrink: 0; }
.r-name { font-weight: 700; font-size: 13px; color: var(--gray-dark); }
.r-meta { font-size: 12px; color: var(--text-light); }

/* ===== WHY US ===== */
.why-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.why-icon { font-size: 28px; flex-shrink: 0; }
.why-body h3 { font-family: 'Kanit', sans-serif; font-size: 16px; font-weight: 700; color: var(--gray-dark); margin-bottom: 5px; }
.why-body p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== AREA LINKS ===== */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.area-link { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 10px 14px; color: var(--gray-dark); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: all .2s; box-shadow: var(--shadow); }
.area-link:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.area-link::before { content: '📍'; font-size: 13px; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); padding: 42px 28px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Kanit', sans-serif; font-size: 24px; font-weight: 800; color: white; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 5px; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== PAGE HERO (inner) ===== */
.page-hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); padding: 44px 20px 48px; text-align: center; }
.page-hero h1 { font-family: 'Kanit', sans-serif; font-size: clamp(22px, 4vw, 40px); font-weight: 800; color: white; margin-bottom: 10px; }
.page-hero p { color: #b0cfe8; font-size: 15px; max-width: 540px; margin: 0 auto 20px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--blue); }

/* ===== CONTACT FORM ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--gray-dark); }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-family: 'Sarabun', sans-serif; font-size: 14px; color: var(--text); transition: border-color .2s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: white; border: none; padding: 14px 32px; border-radius: 50px; font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; transition: all .25s; margin-top: 8px; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,.4); }

/* ===== FLOAT BUTTONS ===== */
.float-btns { position: fixed; bottom: 22px; right: 22px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: all .2s; color: white; }
.float-btn:hover { transform: scale(1.1); }
.float-call-btn { background: var(--orange); animation: pulse-btn 2.5s ease-in-out infinite; }
.float-line-btn { background: #06C755; }
@keyframes pulse-btn { 0%,100%{box-shadow:0 4px 16px rgba(230,81,0,.4)}50%{box-shadow:0 6px 24px rgba(230,81,0,.65)} }

/* ===== SCROLL TOP ===== */
.scroll-top { position: fixed; bottom: 22px; left: 22px; z-index: 998; background: var(--blue); color: white; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); border: none; transition: all .2s; }
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--blue-dark); }

/* ===== FOOTER ===== */
footer { background: var(--gray-dark); padding: 44px 20px 20px; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin-bottom: 24px; }
.footer-brand p { font-size: 13px; color: #607d8b; line-height: 1.7; margin-top: 8px; }
.footer-col h4 { color: #90caf9; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 11px; }
.footer-col a { display: block; color: #78909c; font-size: 13px; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #90caf9; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; text-align: center; font-size: 12px; color: #546e7a; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: var(--blue-pale); border: 2px solid rgba(21,101,192,.2); border-radius: var(--r); padding: 18px 22px; margin-bottom: 20px; }
.highlight-box p { font-size: 15px; color: var(--blue-dark); }

/* ===== NEARBY ===== */
.nearby-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.nearby-link { background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; color: var(--gray-dark); font-size: 13px; font-weight: 600; transition: all .2s; }
.nearby-link:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }

/* ===== VOICE SEARCH SECTION ===== */
.voice-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 18px 22px; box-shadow: var(--shadow); }
.voice-card h3 { font-size: 15px; font-weight: 600; color: var(--blue-dark); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.voice-card p { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* ===== 404 ===== */
.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.err-num { font-family: 'Kanit', sans-serif; font-size: 90px; font-weight: 800; color: var(--blue); line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.12); border-top: 2px solid var(--blue); z-index: 300; }
  .menu-btn { display: block; }
  .header-inner { position: relative; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-band { flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .float-btns { bottom: 14px; right: 14px; }
  .float-btn { width: 48px; height: 48px; font-size: 21px; }
}

/* Fade in */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
