/* =========================================================
   324 Hairdressing Salon — main stylesheet
   Fonts: Prompt (headings) + Sarabun (body) — both support Thai + Latin
   ========================================================= */

:root {
  --charcoal: #17141a;
  --charcoal-2: #221e26;
  --charcoal-3: #2c2731;
  --cream: #faf6f1;
  --cream-2: #f2ebe2;
  --wine: #8a2a46;
  --wine-dark: #641d33;
  --wine-light: #b95672;
  --gold: #c8a45c;
  --gold-light: #e4cf9c;
  --text-dark: #241f22;
  --text-muted: #7a7178;
  --text-on-dark: #f4ece6;
  --text-on-dark-muted: #bcaeb6;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 25px 60px -30px rgba(20, 12, 18, 0.45);
  --shadow-tight: 0 10px 24px -14px rgba(20, 12, 18, 0.35);
  --font-head: 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.25; }
p { line-height: 1.85; margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- bilingual toggle ----------
   Only the HIDE direction is forced (with !important so it always wins).
   The visible language is never given a forced display value, so each
   element keeps whatever display its own component CSS defines
   (inline for <strong>/<span>, block for menu links, flex items, etc). */
body.lang-th [data-lang="en"] { display: none !important; }
body.lang-en [data-lang="th"] { display: none !important; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: var(--shadow-tight); }
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--text-on-dark); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: rgba(36,31,34,.25); color: var(--text-dark); }
.btn-outline-dark:hover { background: rgba(36,31,34,.06); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- section labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.section-sub { max-width: 620px; color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

.section-pad { padding: 108px 0; }
@media (max-width: 780px) { .section-pad { padding: 72px 0; } }

/* =========================================================
   Top announcement bar
   ========================================================= */
.topbar {
  background: var(--charcoal);
  color: var(--text-on-dark-muted);
  font-size: 13.5px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; gap: 16px; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-links a:hover { color: var(--gold-light); }
.topbar svg { width: 14px; height: 14px; }
.lang-switch { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: var(--text-on-dark-muted);
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
}
.lang-switch button.active { background: var(--gold); color: var(--charcoal); }

/* =========================================================
   Nav
   ========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(23, 20, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: var(--gold-light); font-size: 15px;
  box-shadow: var(--shadow-tight);
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.brand-text span { display: block; font-size: 11.5px; color: var(--text-on-dark-muted); letter-spacing: .05em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-on-dark-muted); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-menu {
  display: none; position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: var(--charcoal); padding: 30px 24px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: #fff; font-size: 20px; font-family: var(--font-head); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 26px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-text-label { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: radial-gradient(ellipse at 20% -10%, #3a2230 0%, var(--charcoal) 55%), var(--charcoal);
  color: var(--text-on-dark);
  padding: 88px 0 120px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200,164,92,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(200,164,92,.14); border: 1px solid rgba(200,164,92,.35); color: var(--gold-light); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 26px; }
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc { font-size: 18px; color: var(--text-on-dark-muted); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark-muted); font-size: 14.5px; }
.hero-meta-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.hero-meta-item strong { color: #fff; display: block; font-size: 15px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo-main {
  width: min(380px, 100%); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 6px solid rgba(255,255,255,.06);
  transform: rotate(2deg);
}
.hero-photo-main img { aspect-ratio: 4/5; object-fit: cover; }
.hero-photo-side {
  position: absolute; width: 42%; right: -6%; bottom: -8%;
  border-radius: var(--radius-md); overflow: hidden; border: 6px solid var(--charcoal);
  box-shadow: var(--shadow-soft); transform: rotate(-6deg);
}
.hero-photo-side img { aspect-ratio: 3/4; object-fit: cover; }
.hero-badge {
  position: absolute; top: -6%; left: -8%; background: #fff; color: var(--charcoal);
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 12px; max-width: 200px;
}
.hero-badge .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.hero-badge .icon svg { width: 20px; height: 20px; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 14px; }
.hero-badge span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 50px; }
  .hero-badge { left: 4%; }
  .hero-photo-side { right: 2%; }
}

/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.about-photos { position: relative; }
.about-photo-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-photo-main img { aspect-ratio: 4/5; object-fit: cover; }
.about-strip { display: flex; gap: 14px; margin-top: 18px; }
.about-strip a { flex: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-tight); position: relative; }
.about-strip img { aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.about-strip a:hover img { transform: scale(1.08); }
.about-copy p { color: var(--text-muted); font-size: 16.5px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 36px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); color: var(--wine); display: flex; align-items: center; justify-content: center; flex: none; }
.about-point .icon svg { width: 22px; height: 22px; }
.about-point strong { display: block; font-family: var(--font-head); font-size: 15.5px; margin-bottom: 3px; }
.about-point span { font-size: 13.5px; color: var(--text-muted); }

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

/* =========================================================
   Services
   ========================================================= */
.services-section { background: var(--charcoal); color: var(--text-on-dark); }
.services-section .eyebrow { color: var(--gold-light); }
.services-section .section-sub { color: var(--text-on-dark-muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
  background: var(--charcoal-2); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); transition: transform .35s ease, border-color .35s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(200,164,92,.4); }
.service-photo { aspect-ratio: 4/5; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-body { padding: 24px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.service-num { font-family: var(--font-head); color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.service-body h3 { font-size: 19px; margin-bottom: 12px; }
.service-body ul { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.service-body li { font-size: 13.8px; color: var(--text-on-dark-muted); display: flex; gap: 8px; align-items: flex-start; }
.service-body li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }

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

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  columns: 4 260px; column-gap: 18px;
}
.gallery-grid figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-tight); position: relative; cursor: zoom-in; }
.gallery-grid img { width: 100%; display: block; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,18,.55), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-zoom {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--charcoal); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px); transition: all .3s ease;
}
.gallery-grid figure:hover .gallery-zoom { opacity: 1; transform: translateY(0); }
.gallery-zoom svg { width: 16px; height: 16px; }
.gallery-more { text-align: center; margin-top: 44px; }

@media (max-width: 780px) { .gallery-grid { columns: 2 160px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,8,10,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 92vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 26px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; display: flex; align-items: center; justify-content: center; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; display: flex; align-items: center; justify-content: center; }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* =========================================================
   Social / follow
   ========================================================= */
.follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.follow-card {
  background: #fff; border-radius: var(--radius-md); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-tight); border: 1px solid rgba(36,31,34,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.follow-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.follow-card .icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  background: var(--cream-2); color: var(--wine);
}
.follow-card .icon svg { width: 26px; height: 26px; }
.follow-card strong { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 4px; }
.follow-card span { font-size: 13px; color: var(--text-muted); }

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

/* =========================================================
   Contact
   ========================================================= */
.contact-section { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-soft); }
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(36,31,34,.08); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 46px; height: 46px; border-radius: 13px; background: var(--cream-2); color: var(--wine); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row .icon svg { width: 22px; height: 22px; }
.contact-row strong { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.contact-row span, .contact-row a { color: var(--text-muted); font-size: 14.5px; }
.contact-row a:hover { color: var(--wine); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.form-grid { display: grid; gap: 16px; margin-top: 22px; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(36,31,34,.15);
  font-family: var(--font-body); font-size: 15px; background: var(--cream);
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.form-msg { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.form-msg.ok { background: #e6f4ea; color: #205c34; }
.form-msg.err { background: #fbe7e9; color: #8a2a33; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 28px; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--charcoal); color: var(--text-on-dark-muted); padding: 60px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14.5px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .25s; }
.footer-social a:hover { background: var(--wine); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--gold-light); }

@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

/* =========================================================
   Floating action buttons
   ========================================================= */
.fab-stack { position: fixed; right: 20px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); color: #fff; transition: transform .25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab-line { background: #06C755; }
.fab-call { background: var(--wine); }
.fab-top {
  width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-tight);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top svg { width: 18px; height: 18px; }

/* =========================================================
   Misc utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
::selection { background: var(--wine); color: #fff; }
