/* =========================================================
   Mali Nail & Spa — Stylesheet
   ========================================================= */

:root{
  --pink-50:#fdf1f4;
  --pink-100:#f9dde6;
  --pink-300:#f0b9cc;
  --pink-500:#e8a3bb;
  --pink-600:#d98aa8;
  --pink-700:#c26e8d;
  --gold-400:#d4b483;
  --gold-500:#b8935f;
  --gold-600:#9c7a4a;
  --cream:#fdf8f5;
  --cream-deep:#f7ece6;
  --ink:#2d2a26;
  --ink-soft:#4a453e;
  --muted:#8a8178;
  --line:#ece1d9;
  --white:#ffffff;
  --shadow-sm:0 4px 14px rgba(184,147,95,.10);
  --shadow-md:0 14px 34px rgba(184,147,95,.16);
  --radius-lg:22px;
  --radius-md:14px;
  --font-head:'Taviraj', serif;
  --font-body:'Prompt', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:78px; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  /* หมายเหตุ: ไม่ตั้ง overflow-x:hidden ที่ body — จะทำให้เบราว์เซอร์บังคับ overflow-y:auto
     ให้ body กลายเป็นกล่องเลื่อนของตัวเอง แยกจาก scroll ของหน้าเว็บจริง (บั๊กที่เจอและแก้แล้ว) */
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--font-head); color:var(--ink); margin:0 0 .5em; line-height:1.25; font-weight:600; }
p{ margin:0 0 1em; color:var(--ink-soft); }
ul{ margin:0; padding:0; list-style:none; }
.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 20px; }

.section{ padding:76px 0; }
@media (max-width:720px){ .section{ padding:56px 0; } }

.kicker{
  display:block; font-family:var(--font-body); font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; font-size:.78rem; color:var(--gold-600); margin-bottom:10px;
}
.kicker.center{ text-align:center; }
h2.center{ text-align:center; }
.section-desc{ max-width:620px; color:var(--muted); font-size:.98rem; }
.section-desc.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:50px; font-weight:600; font-size:.95rem;
  border:2px solid transparent; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-primary{ background:linear-gradient(135deg,var(--pink-500),var(--pink-700)); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:var(--gold-500); color:var(--gold-600); }
.btn-outline:hover{ background:var(--gold-500); color:#fff; transform:translateY(-2px); }
.btn-line{ background:#06C755; color:#fff; box-shadow:var(--shadow-sm); }
.btn-line:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); filter:brightness(1.04); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(253,248,245,.97);
  border-bottom:1px solid transparent;
  transition:box-shadow .25s ease, border-color .25s ease, background .25s ease;
  /* หมายเหตุ: จงใจไม่ใช้ backdrop-filter ที่นี่ — มันทำให้ส่วนนี้กลายเป็น containing block
     ของเมนูมือถือที่เป็น position:fixed ข้างใน ทำให้เมนูสูง 0px บนมือถือ (บั๊กที่เจอและแก้แล้ว) */
}
.site-header.scrolled{ background:rgba(253,248,245,.97); border-color:var(--line); box-shadow:0 2px 14px rgba(0,0,0,.05); }
.nav-wrap{
  max-width:1180px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-size:1.15rem; font-weight:600; color:var(--ink); }
.brand img{ width:42px; height:42px; border-radius:50%; object-fit:cover; box-shadow:var(--shadow-sm); }
.brand em{ font-style:normal; color:var(--pink-600); }

.main-nav{ display:flex; gap:30px; }
.main-nav a{ font-size:.92rem; font-weight:500; color:var(--ink-soft); position:relative; padding:6px 0; }
.main-nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--pink-600);
  transform:scaleX(0); transform-origin:left; transition:transform .2s ease;
}
.main-nav a:hover::after,.main-nav a:focus::after{ transform:scaleX(1); }
.main-nav a:hover{ color:var(--pink-700); }

.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-call{ padding:10px 18px; font-size:.85rem; }
.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; border:none; background:none; cursor:pointer; padding:0;
}
.hamburger span{ display:block; width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.25s; margin:0 auto; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .main-nav{
    position:fixed; top:66px; left:0; right:0; bottom:0; background:var(--cream);
    flex-direction:column; align-items:center; justify-content:center; gap:26px;
    transform:translateX(100%); transition:transform .3s ease; z-index:99;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav a{ font-size:1.2rem; }
  .nav-call{ display:none; }
  .hamburger{ display:flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center; overflow:hidden;
  padding-top:80px;
}
.hero-bg{
  position:absolute; inset:0; background-size:cover; background-position:center 30%;
  transform:scale(1.08); animation:heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom{ from{ transform:scale(1.08);} to{ transform:scale(1);} }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(45,32,35,.55) 0%, rgba(45,32,35,.6) 45%, rgba(45,26,30,.82) 100%);
}
.hero-content{ position:relative; z-index:2; max-width:760px; margin:0 auto; padding:60px 24px; text-align:center; color:#fff; }
.hero .eyebrow{ letter-spacing:.18em; text-transform:uppercase; font-size:.8rem; font-weight:600; color:var(--pink-300); margin-bottom:14px; }
.hero h1{ font-size:clamp(2.4rem,6vw,4rem); color:#fff; margin-bottom:18px; }
.hero h1 span{ color:var(--pink-300); }
.hero-desc{ font-size:1.05rem; color:#f1e6e9; max-width:520px; margin:0 auto 30px; }
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:26px; }
.hero-meta{ display:flex; gap:26px; justify-content:center; flex-wrap:wrap; font-size:.88rem; color:#f1e6e9; }

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:2;
  width:28px; height:44px; border:2px solid rgba(255,255,255,.6); border-radius:20px;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; background:#fff; border-radius:3px; animation:scrollDown 1.6s ease infinite;
}
@keyframes scrollDown{ 0%{ opacity:1; top:8px;} 70%{ opacity:0; top:22px;} 100%{ opacity:0; top:8px;} }

@media (max-width:600px){ .br-desktop{ display:none; } }

/* =========================================================
   About
   ========================================================= */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-images{ position:relative; }
.about-images .img-main{ border-radius:var(--radius-lg); box-shadow:var(--shadow-md); width:100%; aspect-ratio:4/5; object-fit:cover; }
.about-images .img-sub{
  position:absolute; width:52%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-md);
  border:6px solid var(--cream); box-shadow:var(--shadow-md); right:-8%; bottom:-8%;
}
.about-text .about-points{ margin:22px 0 28px; display:flex; flex-direction:column; gap:12px; }
.about-text .about-points li{ padding-left:26px; position:relative; color:var(--ink-soft); font-size:.95rem; }
.about-text .about-points li::before{ content:'✓'; position:absolute; left:0; top:0; color:var(--pink-600); font-weight:700; }

@media (max-width:900px){
  .about-grid{ grid-template-columns:1fr; gap:70px 0; }
  .about-images{ margin-bottom:20px; }
}

/* =========================================================
   Services
   ========================================================= */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin:44px 0 40px; }
.service-card{
  background:#fff; border-radius:var(--radius-lg); padding:34px 28px; box-shadow:var(--shadow-sm);
  border:1px solid var(--line); transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.service-icon{ font-size:2.1rem; margin-bottom:14px; }
.service-card h3{ font-size:1.15rem; margin-bottom:16px; }
.service-card ul li{ position:relative; padding-left:20px; font-size:.9rem; color:var(--ink-soft); margin-bottom:9px; }
.service-card ul li::before{ content:'•'; position:absolute; left:0; color:var(--pink-600); }
.service-note{ font-size:.92rem; color:var(--ink-soft); }

@media (max-width:900px){ .service-grid{ grid-template-columns:1fr; } }

.cta-banner{
  background:linear-gradient(120deg,var(--pink-50),var(--cream-deep));
  border:1px solid var(--pink-100); border-radius:var(--radius-lg); padding:30px 36px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.cta-banner p{ font-weight:600; font-size:1.05rem; color:var(--ink); margin:0; }
.cta-banner-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:40px;
}
.gallery-grid img{
  width:100%; height:100%; aspect-ratio:3/4; object-fit:cover; border-radius:var(--radius-md);
  cursor:zoom-in; transition:transform .3s ease, box-shadow .3s ease;
  box-shadow:var(--shadow-sm);
}
.gallery-grid img:hover{ transform:translateY(-5px) scale(1.02); box-shadow:var(--shadow-md); }

@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); gap:10px; } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); gap:8px; } }

.lightbox{
  position:fixed; inset:0; background:rgba(20,14,16,.92); z-index:1000;
  display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:100%; max-height:88vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:none; font-size:1.2rem; cursor:pointer;
}
.lightbox-close:hover{ background:rgba(255,255,255,.22); }

/* =========================================================
   Features
   ========================================================= */
.features{ background:var(--cream-deep); }
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.feature-card{
  background:#fff; border-radius:var(--radius-md); padding:28px 24px; text-align:center;
  box-shadow:var(--shadow-sm); border:1px solid var(--line); transition:transform .2s ease;
}
.feature-card:hover{ transform:translateY(-5px); }
.feature-icon{ font-size:1.9rem; margin-bottom:10px; }
.feature-card h3{ font-size:1rem; margin-bottom:8px; }
.feature-card p{ font-size:.86rem; margin:0; }

@media (max-width:900px){ .feature-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

/* =========================================================
   Location
   ========================================================= */
.location-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:50px; align-items:stretch; }
.info-block{ display:flex; gap:14px; margin-bottom:20px; align-items:flex-start; }
.info-icon{ font-size:1.3rem; }
.info-block strong{ display:block; margin-bottom:2px; font-size:.95rem; }
.info-block p{ margin:0; font-size:.92rem; color:var(--muted); }
.location-map{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); min-height:320px; }
.location-map iframe{ width:100%; height:100%; min-height:320px; }

@media (max-width:900px){ .location-grid{ grid-template-columns:1fr; } }

/* =========================================================
   Contact
   ========================================================= */
.contact{ background:var(--cream-deep); }
.contact-info-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
  max-width:680px; margin:44px auto 0; align-items:stretch;
}
.info-card{ background:#fff; border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-sm); border:1px solid var(--line); }
.info-card h3{ font-size:1.05rem; margin-bottom:16px; }
.contact-link{ display:flex; align-items:center; gap:8px; font-size:.95rem; padding:10px 0; border-bottom:1px solid var(--line); color:var(--ink-soft); }
.contact-link:last-child{ border-bottom:none; }
.contact-link:hover{ color:var(--pink-700); }
.qr-card{ background:#fff; border-radius:var(--radius-lg); padding:26px; text-align:center; box-shadow:var(--shadow-sm); border:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; align-items:center; }
.qr-card img{ width:150px; height:150px; margin:0 auto 12px; border-radius:10px; }
.qr-card p{ margin:0; font-size:.88rem; color:var(--muted); }

@media (max-width:640px){ .contact-info-grid{ grid-template-columns:1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:#2a201d; color:#d8cfc8; padding:56px 0 20px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:30px; margin-bottom:30px; }
.footer-brand{ display:flex; gap:12px; align-items:center; }
.footer-brand img{ width:44px; height:44px; border-radius:50%; }
.footer-brand p{ margin:0; font-size:.88rem; color:#bfb3aa; }
.footer-links, .footer-social{ display:flex; flex-direction:column; gap:10px; font-size:.9rem; }
.footer-links a:hover, .footer-social a:hover{ color:#fff; }
.copyright{ text-align:center; font-size:.78rem; color:#8a7d73; border-top:1px solid #3a2f2b; padding-top:18px; margin:0; }

@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; text-align:center; } .footer-brand{ justify-content:center; } }

/* =========================================================
   Floating actions
   ========================================================= */
.floating-actions{ position:fixed; right:20px; bottom:20px; display:flex; flex-direction:column; gap:12px; z-index:80; }
.fab{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; color:#fff; box-shadow:0 8px 22px rgba(0,0,0,.22); transition:transform .2s ease;
}
.fab:hover{ transform:scale(1.08); }
.fab-call{ background:linear-gradient(135deg,var(--pink-500),var(--pink-700)); }
.fab-line{ background:#06C755; }

@media (min-width:861px){ .floating-actions{ display:none; } }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .hero-bg{ animation:none; }
}
