@charset "UTF-8";
/* ==========================================================================
   Gio Maxx — หน้าบ้านชุดใหม่ (ต.ค. 2569)
   เขียนเองทั้งหมด ไม่พึ่ง framework · คู่กับ js/giomaxx.js · ส่วนประกอบ PHP อยู่ที่ Component/gx.php
   โทน : เทาเข้มเกือบดำ (หัว/ฮีโร่/ท้าย) ให้เข้ากับงานแสงไฟ + ส้มแบรนด์ #E95611 + เนื้อหาพื้นสว่าง
   โครงไฟล์:
     1 Tokens        7 Hero slider      13 Steps          19 Lightbox
     2 Base          8 Page hero        14 Video          20 Footer
     3 Typography    9 Section heading  15 CTA band       21 Hotline ลอย
     4 Layout       10 Stats            16 Contact        22 Reveal
     5 Buttons      11 About split      17 Detail page    23 Responsive
     6 Header/nav   12 Service / Work   18 Editor content
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    --brand:      #E95611;
    --brand-600:  #CF4A0D;
    --brand-700:  #A93C0A;
    --brand-100:  #FBDCCB;
    --brand-50:   #FDF1EA;
    --brand-glow: rgba(233, 86, 17, .35);

    --ink:     #1F2124;
    --ink-2:   #3D4349;
    --muted:   #646B72;
    --muted-2: #959CA3;
    --line:    #E7E9EC;
    --line-2:  #F1F2F4;
    --surface: #F6F6F7;
    --white:   #FFFFFF;

    --dark:      #121314;
    --dark-2:    #1A1B1D;
    --dark-3:    #26282B;
    --dark-line: rgba(255, 255, 255, .10);
    --on-dark:   rgba(255, 255, 255, .92);
    --on-dark-2: rgba(255, 255, 255, .66);

    --success: #2E9E5B;
    --danger:  #D64545;

    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;
    --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(20, 20, 22, .06), 0 1px 3px rgba(20, 20, 22, .05);
    --sh-2: 0 4px 12px rgba(20, 20, 22, .08), 0 10px 24px rgba(20, 20, 22, .06);
    --sh-3: 0 18px 48px rgba(20, 20, 22, .18);

    --container: 1240px;
    --header-h: 76px;
    --font: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video, iframe { max-width: 100%; vertical-align: middle; }
img { height: auto; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.3; color: inherit; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.text-brand { color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--muted); }


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--muted { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-2); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px;
    border: 1.5px solid transparent; border-radius: var(--r-pill);
    font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    background: var(--brand); color: #fff;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-glow); }
.btn:active { transform: translateY(0); }
.btn .bi { font-size: 1.05em; }
.btn--lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--dark); color: #fff; box-shadow: none; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn--dark { background: var(--dark-3); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: none; }
.btn--line { background: #06C755; color: #fff; }
.btn--line:hover { background: #05A847; box-shadow: 0 10px 24px rgba(6, 199, 85, .3); }
.btn--facebook { background: #1877F2; color: #fff; }
.btn--facebook:hover { background: #0F63D1; box-shadow: 0 10px 24px rgba(24, 119, 242, .3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .bi { transition: transform .2s var(--ease); }
.link-arrow:hover .bi { transform: translateX(4px); }


/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */
.topbar { background: #000; color: var(--on-dark-2); font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark-2); }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar__info .bi { color: var(--brand); margin-right: 6px; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 15px; }
.topbar__social a:hover { background: var(--dark-3); }

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(18, 19, 20, .94);
    -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--dark-line);
    transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
    position: relative;
    padding: 10px 14px; border-radius: var(--r-sm);
    color: var(--on-dark); font-weight: 500; font-size: .98rem; letter-spacing: .02em;
}
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.header-cta { margin-left: 12px; }
.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--dark-line); border-radius: var(--r-sm);
    background: transparent; color: #fff; font-size: 24px;
    align-items: center; justify-content: center;
}


/* ==========================================================================
   7. HERO SLIDER (หน้าแรก)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    min-height: min(86vh, 820px);
    background: var(--dark); color: #fff;
    display: flex; align-items: flex-end;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.2s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 10, 11, .88) 0%, rgba(10, 10, 11, .55) 45%, rgba(10, 10, 11, .1) 75%),
        linear-gradient(0deg, rgba(10, 10, 11, .75) 0%, rgba(10, 10, 11, 0) 40%);
}
.hero__content { position: relative; z-index: 2; padding: 120px 0 120px; max-width: 820px; }
.hero__title { font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; font-weight: 700; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .8); margin-bottom: 32px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__nav { position: absolute; z-index: 3; left: calc(max(0px, (100% - var(--container)) / 2) + 24px); bottom: 36px; display: flex; align-items: center; gap: 10px; }
.hero__dots { display: flex; gap: 8px; margin-right: 8px; }
.hero__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .2s ease, width .3s var(--ease); }
.hero__dot.is-active { width: 44px; background: var(--brand); }
.hero__arrow {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .25); color: #fff; font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
.hero__arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero__glow {
    position: absolute; z-index: 1; width: 520px; height: 520px; right: -120px; top: -160px; pointer-events: none;
    background: radial-gradient(circle, rgba(233, 86, 17, .35) 0%, rgba(233, 86, 17, 0) 70%);
    filter: blur(10px);
}


/* ==========================================================================
   8. PAGE HERO (หัวหน้าเพจอื่น)
   ========================================================================== */
.page-hero {
    position: relative; color: #fff; background: var(--dark);
    background-image: linear-gradient(90deg, rgba(10, 10, 11, .9) 0%, rgba(10, 10, 11, .6) 60%, rgba(10, 10, 11, .35) 100%), var(--hero-img);
    background-size: cover; background-position: center;
}
.page-hero__inner { padding: 72px 24px 64px; }
.page-hero__title { margin: 10px 0 0; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.page-hero__lead { margin: 12px 0 0; color: var(--on-dark-2); max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: #fff; }
.crumbs .bi { font-size: .7rem; opacity: .7; }
.crumbs [aria-current] { color: #fff; }


/* ==========================================================================
   9. SECTION HEADING
   ========================================================================== */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head__title { margin: 0; max-width: 720px; }
.sec-head__text { margin: 12px 0 0; color: var(--muted); max-width: 640px; }
.section--dark .sec-head__text { color: var(--on-dark-2); }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--center .sec-head__title, .sec-head--center .sec-head__text { margin-left: auto; margin-right: auto; }


/* ==========================================================================
   10. STATS
   ========================================================================== */
.stats { background: var(--dark-2); color: #fff; border-top: 1px solid var(--dark-line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--dark-line); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 700; line-height: 1.1; color: #fff; }
.stat__num small { font-size: .55em; color: var(--brand); margin-left: 2px; }
.stat__label { display: block; margin-top: 6px; color: var(--on-dark-2); font-size: .94rem; }


/* ==========================================================================
   11. ABOUT SPLIT
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.split__media img:nth-child(2) { margin-top: 56px; }
.split__badge {
    position: absolute; left: -18px; bottom: 28px;
    background: var(--brand); color: #fff; border-radius: var(--r); padding: 16px 20px; box-shadow: var(--sh-3);
    line-height: 1.2;
}
.split__badge b { display: block; font-size: 2rem; }
.split__badge span { font-size: .85rem; opacity: .9; }
.checklist { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .bi { color: var(--brand); font-size: 1.2rem; line-height: 1.5; }


/* ==========================================================================
   12. SERVICE CARD / WORK CARD / FILTER
   ========================================================================== */
.service-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    color: var(--ink); height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; color: var(--ink); }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card__num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.service-card__title { font-size: 1.18rem; font-weight: 600; line-height: 1.45; margin: 0; }
.service-card__desc { color: var(--muted); font-size: .96rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; color: var(--brand); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-card {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--r); background: var(--dark-3); color: #fff;
    aspect-ratio: 4 / 3; isolation: isolate;
}
.work-card__media, .work-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card__media img { object-fit: cover; transition: transform .7s var(--ease), filter .4s ease; }
.work-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .35) 45%, rgba(8, 8, 9, 0) 70%);
    transition: background .3s ease;
}
.work-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.work-card__cat { align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: var(--r-pill); }
.work-card__title { font-size: 1.04rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-card__desc {
    font-size: .88rem; color: rgba(255, 255, 255, .72); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    max-height: 0; opacity: 0; transition: max-height .35s var(--ease), opacity .3s ease;
}
.work-card:hover { color: #fff; }
.work-card:hover .work-card__media img { transform: scale(1.07); }
.work-card:hover .work-card__desc, .work-card:focus-visible .work-card__desc { max-height: 3.2em; opacity: 1; }
.work-card--tall { grid-row: span 2; aspect-ratio: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 6px 16px;
    border: 1px solid var(--line); border-radius: var(--r-pill);
    background: #fff; color: var(--ink-2); font-size: .94rem; font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__count { font-size: .78rem; opacity: .7; }
.work-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; color: var(--muted); font-size: .92rem; }
.work-prev { margin: -12px 0 20px; color: var(--muted); font-size: .94rem; }
.work-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.spinner { width: 22px; height: 22px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ==========================================================================
   13. STEPS (ทำไมต้องเรา / ขั้นตอน)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
    position: relative; padding: 30px 26px 28px;
    background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg);
    transition: border-color .25s ease, transform .25s var(--ease);
}
.step:hover { border-color: rgba(233, 86, 17, .6); transform: translateY(-3px); }
.step__icon {
    width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(233, 86, 17, .14); color: var(--brand); font-size: 26px;
}
.step__num { position: absolute; right: 24px; top: 22px; font-size: 2.6rem; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .06); }
.step__title { color: #fff; font-size: 1.12rem; margin-bottom: 10px; }
.step__text { color: var(--on-dark-2); font-size: .95rem; margin: 0; }


/* ==========================================================================
   14. VIDEO
   ========================================================================== */
.video-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--sh-2); }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s ease, transform .6s var(--ease); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 76px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff; font-size: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(233, 86, 17, .25);
    transition: transform .25s var(--ease);
}
.video-card:hover img { opacity: 1; transform: scale(1.03); }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.video-card__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); pointer-events: none; }


/* ==========================================================================
   15. CTA BAND
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.cta-band::before {
    content: ""; position: absolute; right: -120px; top: -180px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 24px; }
.cta-band__title { margin: 0 0 6px; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
.cta-band__text { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }


/* ==========================================================================
   16. CONTACT
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.info-item__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); font-size: 20px; }
.info-item__label { display: block; font-size: .82rem; color: var(--muted); }
.info-item__value { display: block; font-weight: 500; color: var(--ink); word-break: break-word; }
.info-item__value a { color: var(--ink); }
.info-item__value a:hover { color: var(--brand); }
.line-box { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #06C755; color: #fff; }
.line-box img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.line-box a { color: #fff; font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-1); }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--brand); }
.input {
    display: block; width: 100%; min-height: 48px; padding: 10px 14px;
    border: 1px solid #D6DADF; border-radius: 0; background: #fff; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 150px; resize: vertical; }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input::placeholder { color: var(--muted-2); }
.form-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: .96rem; border: 1px solid transparent; }
.alert--success { background: #EAF7EF; border-color: #CDEBD8; color: #1F6E40; }
.alert--error { background: #FDEDED; border-color: #F5C9C9; color: #9E2F2F; }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fb-box { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #1877F2; color: #fff; line-height: 1.5; }
.fb-box:hover { color: #fff; background: #0F63D1; }
.fb-box__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #1877F2; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.fb-box > .bi { margin-left: auto; }
.map-frame { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--r-lg); background: var(--surface); }


/* ==========================================================================
   17. DETAIL PAGE (ผลงาน / บริการ)
   ========================================================================== */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.gallery__main {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: var(--r-lg); overflow: hidden; background: var(--dark); aspect-ratio: 16 / 10;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; opacity: .7; transition: opacity .2s ease, border-color .2s ease; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--brand); opacity: 1; }
.detail__title { margin: 32px 0 8px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.detail__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 24px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail__meta:empty { display: none; }
.detail__meta .bi { color: var(--brand); margin-right: 4px; }
.aside-card { background: var(--surface); border-radius: var(--r-lg); padding: 26px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.aside-card p { color: var(--muted); font-size: .95rem; }
.aside-card--dark { background: var(--dark); color: #fff; }
.aside-card--dark p { color: var(--on-dark-2); }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.cat-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-links a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .95rem; }
.cat-links a:hover { background: #fff; color: var(--brand); }
.cat-links span { color: var(--muted-2); font-size: .85rem; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-2); }
.share a:hover { background: var(--brand); color: #fff; }
.not-found { text-align: center; padding: 120px 24px; }
.not-found__code { font-size: 5rem; font-weight: 700; color: var(--brand); line-height: 1; }


/* ==========================================================================
   18. EDITOR CONTENT (เนื้อหาที่แอดมินเขียนใน Froala)
   ========================================================================== */
.content { font-size: 1.04rem; line-height: 1.85; color: var(--ink-2); overflow-wrap: anywhere; }
.content h1, .content h2, .content h3, .content h4 { color: var(--ink); margin-top: 1.4em; }
.content img { border-radius: var(--r); margin: 8px 0; }
.content a { text-decoration: underline; text-underline-offset: 3px; }
.content ul, .content ol { padding-left: 1.3em; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; }
.content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.content > :first-child { margin-top: 0; }


/* ==========================================================================
   19. LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    background: rgba(8, 8, 9, .94);
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.lightbox__btn {
    position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.lightbox__btn:hover { background: var(--brand); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--on-dark-2); font-size: .92rem; padding: 0 80px; }
body.no-scroll { overflow: hidden; }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-grid button { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--surface); cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo-grid button:hover img { transform: scale(1.06); }


/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--on-dark-2); font-size: .95rem; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding: 72px 24px 48px; }
.footer__logo { height: 42px; width: auto; margin-bottom: 18px; }
.footer__about { margin-bottom: 18px; line-height: 1.75; }
.footer__title { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links .bi { font-size: .7rem; color: var(--brand); }
.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact .bi { color: var(--brand); font-size: 1.05rem; line-height: 1.6; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dark-3); color: #fff; font-size: 17px; transition: background .2s ease; }
.social a:hover { background: var(--brand); color: #fff; }
.footer__qr { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; background: #fff; border-radius: var(--r); color: var(--ink); font-size: .85rem; }
.footer__qr img { width: 120px; height: 120px; }
.footer__qr:hover { color: var(--ink); }
.site-footer .footer__qr, .site-footer .footer__qr:hover { color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--dark-line); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 260px 20px 24px; font-size: .85rem; }


/* ==========================================================================
   21. HOTLINE ลอย
   ========================================================================== */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-chat {
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; box-shadow: var(--sh-3);
    transition: transform .2s var(--ease);
}
.float-chat:hover { color: #fff; transform: translateY(-2px) scale(1.05); }
.float-chat--line { background: #06C755; }
.float-chat--facebook { background: #1877F2; }
.float-contact .float-chat { margin-right: 4px; }
.float-call {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 20px 8px 8px; border-radius: var(--r-pill);
    background: var(--dark); color: #fff; box-shadow: var(--sh-3);
    border: 1px solid var(--dark-line);
    transition: transform .2s var(--ease), background .2s ease;
}
.float-call:hover { color: #fff; background: #000; transform: translateY(-2px); }
.float-call__icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); font-size: 20px; animation: ring 2.4s ease-in-out infinite; }
.float-call__text { line-height: 1.2; }
.float-call__text small { display: block; font-size: .7rem; letter-spacing: .14em; color: var(--brand); font-weight: 700; }
.float-call__text b { font-size: 1.02rem; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 86, 17, .55); } 60% { box-shadow: 0 0 0 12px rgba(233, 86, 17, 0); } }


/* ==========================================================================
   22. REVEAL (js ใส่ .is-in เมื่อเลื่อนมาถึง)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   23. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .work-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .detail { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 20px 32px; background: var(--dark); overflow-y: auto;
        opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
        transition: opacity .25s ease, transform .3s var(--ease), visibility .3s;
    }
    .nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
    /* backdrop-filter ทำให้ .nav (position:fixed) ถูกขังอยู่ในกรอบหัวเว็บ — มือถือใช้พื้นทึบแทน */
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--dark); }
    .nav__link { padding: 16px 6px; font-size: 1.1rem; border-bottom: 1px solid var(--dark-line); border-radius: 0; }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--brand); }
    .header-cta { margin: 20px 0 0; }
    .brand img { height: 34px; }
    .section { padding: 72px 0; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split__media { order: -1; }
    .grid--3, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
    .contact-layout { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; }
    .aside-sticky { position: static; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .sec-head--center { align-items: center; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    .topbar__info span:not(:first-child) { display: none; }
    .section { padding: 56px 0; }
    .hero { min-height: 78vh; }
    .hero__content { padding: 96px 0 120px; }
    .hero__nav { left: 16px; right: 16px; bottom: 24px; justify-content: space-between; }
    .hero__arrow { display: none; }
    .hero__actions .btn { flex: 1 1 100%; }
    .grid--2, .grid--3, .grid--4, .work-grid, .work-grid--4, .steps, .form-grid { grid-template-columns: 1fr; }
    .work-card__desc { max-height: 3.2em; opacity: 1; }
    .footer__grid { grid-template-columns: 1fr; padding: 56px 16px 32px; gap: 32px; }
    .footer__bottom-inner { padding: 18px 16px 90px; }
    .form-card { padding: 22px 18px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-hero__inner { padding: 52px 16px 44px; }
    .split__media img:nth-child(2) { margin-top: 32px; }
    .split__badge { left: 8px; }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; }
    .float-contact { right: 14px; bottom: 14px; }
    .float-chat { width: 48px; height: 48px; font-size: 22px; }
    .float-call { padding: 6px; }
    .float-call__text { display: none; }
    .lightbox__img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 60px; transform: none; }
    .lightbox__cap { bottom: 120px; padding: 0 16px; }
    .fb-box { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #1877F2; color: #fff; line-height: 1.5; }
.fb-box:hover { color: #fff; background: #0F63D1; }
.fb-box__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #1877F2; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.fb-box > .bi { margin-left: auto; }
.map-frame { height: 320px; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
}
