/* ==========================================================================
   QID HOUSE — ศูนย์รับสร้างบ้านคิดเฮาส์
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root{
  --ivory:#FBF8F3;      --bone:#F3EDE5;      --cream:#EFDFCB;
  --cashmere:#DFC9B2;   --greige:#C6B8A4;    --taupe:#BBA691;
  --clay:#886C5D;       --rust:#922E28;      --rust-deep:#7A231E;

  --gold:#BFA35F;       --gold-deep:#9C8340; --gold-soft:#E8D9B0;
  --gold-grad:linear-gradient(135deg,#A88448 0%,#D9BE7C 38%,#F0D89C 52%,#C0A860 72%,#A88448 100%);

  --ink:#2C241E;        --ink-2:#5C4E44;     --ink-3:#8A7C71;
  --line:rgba(44,36,30,.13);
  --line-soft:rgba(44,36,30,.07);

  --shadow-sm:0 1px 2px rgba(44,36,30,.05),0 4px 14px -6px rgba(44,36,30,.14);
  --shadow-md:0 2px 6px rgba(44,36,30,.06),0 18px 40px -18px rgba(44,36,30,.26);
  --shadow-lg:0 4px 10px rgba(44,36,30,.07),0 36px 70px -28px rgba(44,36,30,.34);

  --font-display:'Cormorant Garamond','Noto Serif Thai',Georgia,serif;
  --font-body:'Noto Sans Thai','Sarabun',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  --wrap:1240px;
  --pad:clamp(1.15rem,4vw,2.5rem);
  --sect:clamp(4.5rem,9vw,8rem);
  --r:4px;
  --header-h:84px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}
body{
  margin:0;background:var(--ivory);color:var(--ink);
  font-family:var(--font-body);font-size:16.5px;line-height:1.8;
  font-weight:400;letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;font-weight:600;line-height:1.28;letter-spacing:-.01em}
p{margin:0}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:2px}

/* --- 3. Layout primitives ------------------------------------------------ */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}
.wrap-wide{max-width:1480px}
.section{padding-block:var(--sect)}
.section--bone{background:var(--bone)}
.section--ink{background:#241D18;color:#F1E9DE}
.stack>*+*{margin-top:1.1rem}
.grid{display:grid;gap:clamp(1.1rem,2.4vw,1.9rem)}
@media(min-width:640px){.g-2{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){
  .g-3{grid-template-columns:repeat(3,1fr)}
  .g-4{grid-template-columns:repeat(4,1fr)}
}
@media(min-width:640px) and (max-width:899px){.g-4{grid-template-columns:repeat(2,1fr)}}

/* --- 4. Typography ------------------------------------------------------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.7rem;
  font-size:.72rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold-deep);margin-bottom:1rem;
}
.eyebrow::before{content:"";width:34px;height:1px;background:var(--gold);flex:none}
.eyebrow--center{justify-content:center}
.eyebrow--center::after{content:"";width:34px;height:1px;background:var(--gold);flex:none}
.section--ink .eyebrow{color:var(--gold-soft)}
.section--ink .eyebrow::before,.section--ink .eyebrow::after{background:var(--gold)}

.h-display{font-family:var(--font-display);font-size:clamp(1.95rem,6.4vw,4.6rem);font-weight:600;line-height:1.16;letter-spacing:-.02em;overflow-wrap:break-word}
.h1{font-size:clamp(1.65rem,4.4vw,3.05rem);line-height:1.24;overflow-wrap:break-word}
.h2{font-size:clamp(1.45rem,3.3vw,2.5rem);line-height:1.28;overflow-wrap:break-word}
.h3{font-size:clamp(1.2rem,2vw,1.45rem)}
.h4{font-size:1.03rem;line-height:1.55}
.lead{font-size:clamp(1rem,1.4vw,1.12rem);color:var(--ink-2);line-height:1.95}
.muted{color:var(--ink-3)}
.section--ink .lead,.section--ink .muted{color:#C4B6A7}
.center{text-align:center}
.measure{max-width:64ch}
.measure-narrow{max-width:52ch}
.center .measure,.center .measure-narrow{margin-inline:auto}

.section-head{margin-bottom:clamp(2.4rem,4.5vw,3.6rem)}
.gold-text{
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:var(--gold-deep);
}

/* --- 5. Buttons ---------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.92rem 1.9rem;border-radius:var(--r);
  font-size:.94rem;font-weight:600;letter-spacing:.02em;
  border:1px solid transparent;transition:.28s cubic-bezier(.4,0,.2,1);
  white-space:nowrap;
}
.btn svg{width:1.05em;height:1.05em;flex:none}
.btn-gold{background:var(--gold-grad);color:#2A2011;box-shadow:var(--shadow-sm)}
.btn-gold:hover{filter:brightness(1.07);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-ink{background:var(--ink);color:#F6F0E7}
.btn-ink:hover{background:#3E332B;transform:translateY(-2px)}
.btn-line{background:#06C755;color:#fff}
.btn-line:hover{filter:brightness(1.08);transform:translateY(-2px)}
.btn-outline{border-color:var(--line);color:var(--ink);background:rgba(255,255,255,.6)}
.btn-outline:hover{border-color:var(--gold);color:var(--gold-deep);background:#fff}
.btn-ghost-light{border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost-light:hover{background:#fff;color:var(--ink);border-color:#fff}
.btn-sm{padding:.62rem 1.15rem;font-size:.85rem}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem}
.btn-row--center{justify-content:center}

.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;
  color:var(--gold-deep);border-bottom:1px solid transparent;transition:.25s;
}
.link-arrow::after{content:"→";transition:transform .25s}
.link-arrow:hover{border-color:var(--gold)}
.link-arrow:hover::after{transform:translateX(4px)}

/* --- 6. Header ----------------------------------------------------------- */
.site-header{
  position:fixed;inset:0 0 auto;z-index:120;
  transition:background .35s,box-shadow .35s,backdrop-filter .35s;
}
.site-header::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(24,19,15,.62),rgba(24,19,15,0));
  transition:opacity .35s;
}
.site-header.is-solid{background:rgba(251,248,243,.94);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line),0 10px 30px -22px rgba(44,36,30,.6)}
.site-header.is-solid::after{opacity:0}
.header-inner{display:flex;align-items:center;gap:1.4rem;height:var(--header-h);transition:height .35s}
.site-header.is-solid .header-inner{height:72px}

.brand{display:flex;align-items:center;flex:none;margin-right:auto}
.brand img{height:46px;width:auto;transition:height .35s,filter .35s}
.site-header:not(.is-solid) .brand img{filter:brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.35))}
.site-header.is-solid .brand img{height:40px}

.nav{display:none;align-items:center;gap:.15rem}
@media(min-width:1060px){.nav{display:flex}}
.nav a{
  position:relative;padding:.55rem .82rem;font-size:.92rem;font-weight:500;
  color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);transition:color .25s;
}
.site-header.is-solid .nav a{color:var(--ink-2);text-shadow:none}
.nav a::after{
  content:"";position:absolute;left:.82rem;right:.82rem;bottom:.28rem;height:1px;
  background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .3s;
}
.nav a:hover::after,.nav a[aria-current="page"]::after{transform:scaleX(1)}
.nav a[aria-current="page"]{color:var(--gold-soft)}
.site-header.is-solid .nav a[aria-current="page"]{color:var(--gold-deep)}

.header-cta{display:none;align-items:center;gap:.7rem;flex:none}
@media(min-width:1060px){.header-cta{display:flex}}
.header-tel{
  display:flex;align-items:center;gap:.45rem;font-weight:600;font-size:.95rem;
  color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);
}
.site-header.is-solid .header-tel{color:var(--ink);text-shadow:none}
.header-tel svg{width:1rem;height:1rem;color:var(--gold-soft)}
.site-header.is-solid .header-tel svg{color:var(--gold-deep)}

.burger{
  display:grid;place-items:center;width:46px;height:46px;margin-left:auto;flex:none;
  border:1px solid rgba(255,255,255,.4);border-radius:var(--r);
}
.site-header.is-solid .burger{border-color:var(--line)}
@media(min-width:1060px){.burger{display:none}}
.burger span{display:block;width:19px;height:1.5px;background:#fff;transition:.3s}
.burger span+span{margin-top:5px}
.site-header.is-solid .burger span{background:var(--ink)}
body.nav-open .burger span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
body.nav-open .burger span:nth-child(2){opacity:0}
body.nav-open .burger span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* mobile drawer */
.drawer{
  position:fixed;inset:0;z-index:110;background:var(--ivory);
  padding:calc(var(--header-h) + 1.6rem) var(--pad) 2.4rem;
  overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-12px);
  transition:.35s cubic-bezier(.4,0,.2,1);
}
body.nav-open .drawer{opacity:1;visibility:visible;transform:none}
body.nav-open{overflow:hidden}
.drawer a.drawer-link{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.05rem .2rem;font-size:1.12rem;font-weight:500;
  border-bottom:1px solid var(--line-soft);
}
.drawer a.drawer-link::after{content:"→";color:var(--gold);font-size:.9em}
.drawer a[aria-current="page"]{color:var(--gold-deep)}
.drawer-foot{margin-top:2rem;display:grid;gap:.7rem}

/* --- 7. Hero ------------------------------------------------------------- */
.hero{position:relative;display:flex;align-items:flex-end;isolation:isolate;color:#fff;overflow:hidden}
.hero--full{min-height:100svh;padding-block:calc(var(--header-h) + 3rem) clamp(3rem,7vw,5.5rem)}
.hero--page{min-height:clamp(400px,58vh,560px);padding-block:calc(var(--header-h) + 3.5rem) clamp(2.5rem,5vw,4rem)}
.hero-bg{position:absolute;inset:0;z-index:-2}
.hero-bg img{width:100%;height:100%;object-fit:cover;animation:heroZoom 22s ease-out forwards}
@keyframes heroZoom{from{transform:scale(1.09)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.hero-bg img{animation:none}}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(20,15,11,.5) 0%,rgba(20,15,11,.18) 34%,rgba(20,15,11,.66) 76%,rgba(20,15,11,.86) 100%);
}
.hero-inner{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad);position:relative}
.hero .eyebrow{color:var(--gold-soft)}
.hero .eyebrow::before,.hero .eyebrow::after{background:var(--gold-soft)}
.hero h1{max-width:19ch;text-shadow:0 2px 26px rgba(0,0,0,.4)}
.hero p{max-width:56ch;color:#E6DBCC;margin-top:1.3rem;font-size:clamp(1rem,1.35vw,1.1rem);line-height:1.9}
.hero .btn-row{margin-top:2.1rem}
.hero-scroll{
  position:absolute;left:50%;bottom:1.6rem;translate:-50% 0;
  font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.65);
  display:none;
}
@media(min-width:900px){.hero-scroll{display:block}}
.hero-scroll::after{content:"";display:block;width:1px;height:34px;margin:.6rem auto 0;background:linear-gradient(rgba(255,255,255,.7),transparent);animation:scrollLine 2.2s ease-in-out infinite}
@keyframes scrollLine{0%,100%{opacity:.25;transform:scaleY(.5)}50%{opacity:1;transform:scaleY(1)}}

/* trust strip under hero */
.trust-strip{background:#241D18;color:#E7DCCC}
.trust-strip .wrap{
  display:grid;gap:1px;background:rgba(255,255,255,.1);
  grid-template-columns:repeat(2,1fr);padding-inline:0;
}
@media(min-width:900px){.trust-strip .wrap{grid-template-columns:repeat(4,1fr)}}
.trust-item{background:#241D18;padding:1.6rem 1.3rem;text-align:center}
.trust-item b{
  display:block;font-family:var(--font-display);font-size:clamp(1.8rem,3.2vw,2.4rem);
  font-weight:600;line-height:1;margin-bottom:.4rem;
}
.trust-item span{font-size:.83rem;color:#B5A794;letter-spacing:.02em}

/* --- 8. Cards ------------------------------------------------------------ */
.card{
  background:#fff;border:1px solid var(--line-soft);border-radius:var(--r);
  overflow:hidden;transition:.35s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);border-color:var(--line)}
.card-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--bone)}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.4,0,.2,1)}
.card:hover .card-media img{transform:scale(1.06)}
.card-body{padding:1.5rem 1.5rem 1.7rem;flex:1;display:flex;flex-direction:column;gap:.6rem}
.card-body h3{font-size:1.14rem}
.card-body p{font-size:.93rem;color:var(--ink-2);line-height:1.85}
.card-tag{
  position:absolute;top:.85rem;left:.85rem;z-index:2;
  padding:.3rem .72rem;border-radius:2px;
  background:rgba(36,29,24,.82);backdrop-filter:blur(6px);
  color:#EFE3D0;font-size:.72rem;font-weight:600;letter-spacing:.06em;
}

/* การ์ดแบบบ้าน: ครอปน้อยที่สุดเพื่อให้เห็นรายละเอียดห้องในภาพ */
.card--plan .card-media{aspect-ratio:5/4}
.card--plan .card-body{padding:1.15rem 1.3rem 1.35rem;gap:.35rem}
.card--plan h3{font-size:1.05rem}

/* รายการติ๊กถูก (ใช้ในหน้าที่ไม่ใช่ตารางราคา) */
.check-grid{display:grid;gap:.9rem}
@media(min-width:700px){.check-grid{grid-template-columns:repeat(2,1fr)}}
.check-grid li{
  display:flex;gap:.85rem;align-items:flex-start;
  background:#fff;border:1px solid var(--line-soft);border-radius:var(--r);
  padding:1.05rem 1.2rem;font-size:.95rem;line-height:1.7;transition:.28s;
}
.check-grid li:hover{border-color:var(--gold);transform:translateY(-2px)}
.check-grid svg{width:1.15rem;height:1.15rem;flex:none;margin-top:.28rem;color:var(--gold-deep)}

/* numbered feature list */
.feature{
  position:relative;padding:1.7rem 1.5rem 1.7rem 1.6rem;
  background:#fff;border:1px solid var(--line-soft);border-radius:var(--r);
  transition:.32s;height:100%;
}
.feature::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--gold-grad);transform:scaleY(0);transform-origin:top;transition:transform .35s;
}
.feature:hover{transform:translateY(-4px);box-shadow:var(--shadow-sm)}
.feature:hover::before{transform:scaleY(1)}
.feature .fnum{
  font-family:var(--font-display);font-size:1.05rem;font-weight:600;
  color:var(--gold-deep);letter-spacing:.06em;display:block;margin-bottom:.5rem;
}
.feature h3{font-size:1.03rem;margin-bottom:.4rem;line-height:1.5}
.feature p{font-size:.9rem;color:var(--ink-2);line-height:1.8}

/* icon tile */
.tile{text-align:center;padding:2rem 1.4rem}
.tile-icon{
  width:60px;height:60px;margin:0 auto 1.15rem;display:grid;place-items:center;
  border:1px solid var(--gold);border-radius:50%;color:var(--gold-deep);
  background:linear-gradient(160deg,#fff,var(--bone));
}
.tile-icon svg{width:26px;height:26px}
.tile h3{font-size:1.06rem;margin-bottom:.5rem}
.tile p{font-size:.92rem;color:var(--ink-2)}

/* --- 9. Service split ---------------------------------------------------- */
.split{display:grid;gap:clamp(1.8rem,4vw,4rem);align-items:center}
@media(min-width:920px){
  .split{grid-template-columns:1fr 1fr}
  .split--reverse .split-media{order:2}
}
.split-media{position:relative}
.split-media img{width:100%;aspect-ratio:4/3.2;object-fit:cover;border-radius:var(--r);box-shadow:var(--shadow-md)}
.split-media::after{
  content:"";position:absolute;inset:auto -14px -14px auto;width:56%;height:56%;
  border:1px solid var(--gold);border-radius:var(--r);z-index:-1;
}
.split-num{
  font-family:var(--font-display);font-size:clamp(3rem,6vw,4.6rem);font-weight:600;
  line-height:1;color:var(--cashmere);display:block;margin-bottom:.4rem;
}

/* --- 10. Pricing --------------------------------------------------------- */
.price-grid{display:grid;gap:1.4rem}
@media(min-width:960px){.price-grid{grid-template-columns:repeat(3,1fr);align-items:stretch}}
.price{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:2.3rem 1.9rem 2.1rem;display:flex;flex-direction:column;transition:.35s;
}
.price:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.price--featured{
  border-color:var(--gold);box-shadow:var(--shadow-md);
  background:linear-gradient(175deg,#fff 0%,#FDFAF4 100%);
}
@media(min-width:960px){.price--featured{transform:scale(1.035)}.price--featured:hover{transform:scale(1.035) translateY(-5px)}}
.price-badge{
  position:absolute;top:-11px;left:50%;translate:-50% 0;
  padding:.28rem 1rem;border-radius:99px;background:var(--gold-grad);
  color:#2A2011;font-size:.72rem;font-weight:700;letter-spacing:.1em;white-space:nowrap;
}
.price-name{font-family:var(--font-display);font-size:1.75rem;font-weight:600;letter-spacing:-.01em}
.price-sub{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);font-weight:600;margin-top:.3rem}
.price-amt{display:flex;align-items:baseline;gap:.35rem;margin:1.4rem 0 .3rem;flex-wrap:wrap}
.price-amt .n{font-family:var(--font-display);font-size:clamp(2.4rem,4.4vw,3.1rem);font-weight:600;line-height:1;color:var(--ink)}
.price-amt .u{font-size:.88rem;color:var(--ink-3)}
.price-note{font-size:.82rem;color:var(--ink-3);margin-bottom:1.5rem}
.price hr{border:0;border-top:1px solid var(--line-soft);margin:0 0 1.4rem}
.price-list{display:grid;gap:.8rem;margin-bottom:1.9rem;flex:1}
.price-list li{display:flex;gap:.7rem;font-size:.92rem;line-height:1.72;color:var(--ink-2)}
.price-list svg{width:1.05rem;height:1.05rem;flex:none;margin-top:.32rem;color:var(--gold-deep)}

/* --- 11. Filters / tabs -------------------------------------------------- */
.filters{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:center;margin-bottom:2.6rem}
.filter{
  padding:.56rem 1.25rem;border:1px solid var(--line);border-radius:99px;
  font-size:.87rem;font-weight:500;color:var(--ink-2);background:#fff;transition:.25s;
}
.filter:hover{border-color:var(--gold);color:var(--gold-deep)}
.filter.is-active{background:var(--ink);border-color:var(--ink);color:#F6F0E7}

/* --- 12. Gallery / project ----------------------------------------------- */
.project{margin-bottom:clamp(3rem,6vw,5rem)}
.project-head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:.8rem;padding-bottom:1rem;margin-bottom:1.4rem;border-bottom:1px solid var(--line);
}
.project-head h3{font-size:clamp(1.3rem,2.3vw,1.7rem)}
.project-meta{display:flex;flex-wrap:wrap;gap:.5rem .9rem;font-size:.86rem;color:var(--ink-3)}
.project-meta span{display:inline-flex;align-items:center;gap:.4rem}
.project-meta svg{width:.95rem;height:.95rem;color:var(--gold-deep)}

.gal{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
@media(min-width:700px){.gal{grid-template-columns:repeat(3,1fr);gap:.75rem}}
@media(min-width:1100px){.gal{grid-template-columns:repeat(4,1fr)}}
.gal-item{
  position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:2px;
  background:var(--bone);cursor:zoom-in;
}
.gal-item:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
@media(max-width:699px){.gal-item:first-child{grid-row:span 1;aspect-ratio:4/3}}
.gal-item img{width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.4,0,.2,1)}
.gal-item::after{
  content:"";position:absolute;inset:0;background:rgba(36,29,24,0);transition:.35s;
}
.gal-item:hover img{transform:scale(1.05)}
.gal-item:hover::after{background:rgba(36,29,24,.18)}

/* --- 13. Lightbox -------------------------------------------------------- */
.lb{
  position:fixed;inset:0;z-index:200;background:rgba(18,14,11,.95);
  display:grid;place-items:center;padding:clamp(1rem,4vw,3rem);
  opacity:0;visibility:hidden;transition:opacity .3s;
}
.lb.is-open{opacity:1;visibility:visible}
.lb img{max-width:100%;max-height:82vh;object-fit:contain;border-radius:2px}
.lb-cap{
  position:absolute;left:0;right:0;bottom:clamp(1rem,3vw,2rem);text-align:center;
  color:#CDBFAC;font-size:.85rem;letter-spacing:.04em;
}
.lb-btn{
  position:absolute;display:grid;place-items:center;width:52px;height:52px;
  border:1px solid rgba(255,255,255,.24);border-radius:50%;color:#fff;transition:.25s;
}
.lb-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.5)}
.lb-btn svg{width:20px;height:20px}
.lb-close{top:clamp(1rem,3vw,2rem);right:clamp(1rem,3vw,2rem)}
.lb-prev{left:clamp(.6rem,2.5vw,2rem);top:50%;translate:0 -50%}
.lb-next{right:clamp(.6rem,2.5vw,2rem);top:50%;translate:0 -50%}

/* --- 14. CTA band -------------------------------------------------------- */
.cta-band{position:relative;isolation:isolate;color:#fff;text-align:center;padding-block:clamp(4rem,8vw,6.5rem);overflow:hidden}
.cta-band>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.cta-band::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(28,21,17,.82),rgba(28,21,17,.9))}
.cta-band h2{max-width:22ch;margin-inline:auto}
.cta-band p{color:#D6C9B7;max-width:56ch;margin:1.1rem auto 0}
.cta-band .btn-row{margin-top:2rem}

/* --- 15. Service areas --------------------------------------------------- */
.area-list{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.area-list li{
  padding:.55rem 1.15rem;border:1px solid var(--line);border-radius:99px;
  background:#fff;font-size:.9rem;color:var(--ink-2);transition:.25s;
}
.area-list li:hover{border-color:var(--gold);color:var(--gold-deep)}
.section--ink .area-list li{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.16);color:#DCCFBE}

/* --- 16. Process steps --------------------------------------------------- */
.steps{counter-reset:s;display:grid;gap:0}
@media(min-width:900px){.steps{grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}}
.step{position:relative;background:var(--ivory);padding:2rem 1.6rem}
.section--bone .step{background:var(--bone)}
.step::before{
  counter-increment:s;content:"0" counter(s);
  font-family:var(--font-display);font-size:2.2rem;font-weight:600;
  color:var(--cashmere);display:block;line-height:1;margin-bottom:.7rem;
}
.step h3{font-size:1.06rem;margin-bottom:.45rem}
.step p{font-size:.9rem;color:var(--ink-2);line-height:1.8}

/* --- 17. Contact --------------------------------------------------------- */
.contact-grid{display:grid;gap:clamp(1.6rem,3.5vw,3rem)}
@media(min-width:920px){.contact-grid{grid-template-columns:1fr 1.05fr}}
.info-list{display:grid;gap:1.5rem}
.info{display:flex;gap:1.1rem;align-items:flex-start}
.info-ic{
  width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--gold);color:var(--gold-deep);background:#fff;
}
.info-ic svg{width:19px;height:19px}
.info dt{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);margin-bottom:.22rem}
.info dd{margin:0;font-size:1.02rem;font-weight:500;line-height:1.6;word-break:break-word}
.info dd a:hover{color:var(--gold-deep)}

.form{background:#fff;border:1px solid var(--line-soft);border-radius:var(--r);padding:clamp(1.5rem,3vw,2.4rem);box-shadow:var(--shadow-sm)}
.field{margin-bottom:1.15rem}
.field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.45rem}
.field label .req{color:var(--rust)}
.field input,.field select,.field textarea{
  width:100%;padding:.82rem 1rem;font:inherit;font-size:.95rem;color:var(--ink);
  background:var(--ivory);border:1px solid var(--line);border-radius:var(--r);
  transition:.22s;
}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:0;border-color:var(--gold);background:#fff;box-shadow:0 0 0 3px rgba(191,163,95,.15);
}
.form-note{font-size:.8rem;color:var(--ink-3);margin-top:.9rem;line-height:1.7}

.map-embed{border-radius:var(--r);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);background:var(--bone)}
.map-embed iframe{display:block;width:100%;height:clamp(300px,45vw,440px);border:0}

/* --- 18. Footer ---------------------------------------------------------- */
.site-footer{background:#221B16;color:#BCAE9C;padding-block:clamp(3.2rem,6vw,4.6rem) 0;font-size:.92rem}
.footer-grid{display:grid;gap:2.4rem}
@media(min-width:760px){.footer-grid{grid-template-columns:1.5fr 1fr 1fr}}
@media(min-width:1060px){.footer-grid{grid-template-columns:1.7fr 1fr 1fr 1.25fr}}
.footer-logo{height:52px;width:auto;filter:brightness(0) invert(1);opacity:.94;margin-bottom:1.1rem}
.site-footer h4{color:#F0E7DA;font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;margin-bottom:1.1rem;font-weight:600}
.site-footer a:hover{color:var(--gold-soft)}
.footer-links{display:grid;gap:.62rem}
.footer-badge{display:flex;align-items:center;gap:.9rem;margin-top:1.5rem;padding-top:1.4rem;border-top:1px solid rgba(255,255,255,.1)}
.footer-badge img{width:52px;height:auto;background:#fff;border-radius:4px;padding:5px}
.footer-badge span{font-size:.8rem;line-height:1.6;color:#A2947F}
.socials{display:flex;gap:.6rem;margin-top:1.2rem}
.socials a{
  width:40px;height:40px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(255,255,255,.18);color:#DCCFBE;transition:.25s;
}
.socials a:hover{background:var(--gold);border-color:var(--gold);color:#2A2011}
.socials svg{width:17px;height:17px}
.footer-bottom{
  margin-top:3rem;padding-block:1.5rem;border-top:1px solid rgba(255,255,255,.1);
  display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;
  font-size:.82rem;color:#8E8171;
}

/* --- 19. Floating contact ------------------------------------------------ */
.floaty{
  position:fixed;right:clamp(.9rem,2.4vw,1.6rem);bottom:clamp(.9rem,2.4vw,1.6rem);
  z-index:100;display:grid;gap:.6rem;
}
.floaty a{
  width:52px;height:52px;display:grid;place-items:center;border-radius:50%;
  color:#fff;box-shadow:var(--shadow-md);transition:.28s;
}
.floaty a:hover{transform:translateY(-3px) scale(1.05)}
.floaty svg{width:24px;height:24px}
.f-line{background:#06C755}
.f-tel{background:var(--ink)}
@media(max-width:600px){.floaty a{width:48px;height:48px}.floaty svg{width:21px;height:21px}}

/* --- 20. Reveal on scroll ------------------------------------------------ */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s cubic-bezier(.4,0,.2,1),transform .8s cubic-bezier(.4,0,.2,1)}
.reveal.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* --- 21. Misc ------------------------------------------------------------ */
.rule{width:52px;height:1px;background:var(--gold);margin:1.3rem 0}
.center .rule{margin-inline:auto}
.badge-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.3rem}
.badge{
  display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .85rem;
  border:1px solid var(--line);border-radius:99px;background:#fff;
  font-size:.8rem;color:var(--ink-2);
}
.badge svg{width:.9rem;height:.9rem;color:var(--gold-deep)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.breadcrumb{font-size:.82rem;color:rgba(255,255,255,.72);margin-bottom:1rem;display:flex;gap:.5rem;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--gold-soft)}
.breadcrumb span{opacity:.55}

/* ============================================================
   ส่วนที่เพิ่มสำหรับระบบหลังบ้าน — แบนเนอร์สไลด์ / FAQ / สเปกแบบบ้าน / โปรโมชั่น
   ============================================================ */

/* ---- แบนเนอร์สไลด์หน้าแรก ---- */
.hero--slider{display:grid;padding-block:0;min-height:100svh;align-items:stretch}
.hero--slider .slide{grid-area:1/1;position:relative;display:flex;align-items:center;
  min-height:100svh;padding-block:calc(var(--header-h) + 3rem) clamp(3rem,7vw,5.5rem);
  opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.hero--slider .slide.is-active{opacity:1;visibility:visible}
.hero--slider .slide .hero-bg img{animation:none;transform:scale(1.06);transition:transform 7s ease-out}
.hero--slider .slide.is-active .hero-bg img{transform:scale(1)}
.hero--slider .slide:not(.is-active) .hero-inner>*{transform:translateY(14px)}
.hero--slider .hero-inner>*{transition:transform .8s cubic-bezier(.2,.8,.3,1)}
.hero .h-display{max-width:19ch;text-shadow:0 2px 26px rgba(0,0,0,.4)}
.hero--slider .h-display{margin:0}

.hero-dots{position:absolute;left:50%;bottom:clamp(4.5rem,8vw,6rem);transform:translateX(-50%);
  display:flex;gap:.55rem;z-index:3}
.hero-dot{width:34px;height:3px;border:none;padding:0;border-radius:99px;cursor:pointer;
  background:rgba(255,255,255,.34);transition:.3s}
.hero-dot:hover{background:rgba(255,255,255,.6)}
.hero-dot.is-active{background:var(--gold);width:52px}

.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;
  border-radius:50%;border:1px solid rgba(255,255,255,.32);background:rgba(28,22,17,.25);
  backdrop-filter:blur(6px);color:#fff;display:grid;place-items:center;cursor:pointer;transition:.2s}
.hero-arrow svg{width:20px;height:20px}
.hero-arrow:hover{background:var(--gold);border-color:var(--gold);color:#241C13}
.hero-arrow--prev{left:clamp(.7rem,3vw,2.2rem)}
.hero-arrow--next{right:clamp(.7rem,3vw,2.2rem)}
@media(max-width:760px){.hero-arrow{display:none}}
@media(prefers-reduced-motion:reduce){
  .hero--slider .slide,.hero--slider .slide .hero-bg img,.hero--slider .hero-inner>*{transition:none}
}

/* ---- คำถามที่พบบ่อย ---- */
.faq-list{max-width:860px;margin-inline:auto;display:flex;flex-direction:column;gap:.7rem}
.faq{background:#fff;border:1px solid var(--line);border-radius:var(--radius,14px);overflow:hidden;
  transition:border-color .2s,box-shadow .2s}
.faq[open]{border-color:var(--gold-soft);box-shadow:0 10px 34px rgba(44,36,30,.07)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:1rem;
  padding:1.05rem 1.3rem;font-weight:600;color:var(--ink);font-size:1rem;line-height:1.5}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--gold-deep)}
.faq summary span{flex:1}
.faq-chev{width:20px;height:20px;flex:none;color:var(--gold-deep);transition:transform .25s}
.faq[open] .faq-chev{transform:rotate(180deg)}
.faq-a{padding:0 1.3rem 1.2rem}
.faq-a p{margin:0;color:var(--ink-2);line-height:1.85}

/* ---- สเปกแบบบ้าน ---- */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem;margin-top:1.6rem}
.spec{display:flex;align-items:center;gap:.7rem;background:var(--bone);border-radius:12px;padding:.75rem .9rem}
.spec-ic{width:34px;height:34px;flex:none;border-radius:9px;background:#fff;color:var(--gold-deep);
  display:grid;place-items:center}
.spec-ic svg{width:18px;height:18px}
.spec dl{margin:0}
.spec dt{font-size:.76rem;color:var(--ink-3);letter-spacing:.02em}
.spec dd{margin:0;font-weight:600;font-size:.94rem;color:var(--ink)}

/* ---- การ์ดโปรโมชั่น ---- */
.card--promo .promo-badge{display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;
  background:var(--gold-soft);color:#6B5714;border-radius:99px;padding:.2rem .7rem;
  font-size:.78rem;font-weight:600;margin-bottom:.5rem}
.card--promo .promo-badge svg{width:15px;height:15px}
.card--promo .muted svg{width:14px;height:14px;vertical-align:-2px}

/* ---- ข้อมูลจำเพาะบนการ์ดแบบบ้าน ---- */
.card--plan .project-meta{font-size:.79rem;gap:.55rem .9rem}
.card--plan .project-meta svg{width:14px;height:14px}
