/* ============================================================
   DIVA Skin Clinic Poipet — Global Stylesheet
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Tokens ── */
:root {
  --ink:        #1C1208;
  --gold:       #C8A96E;
  --gold-light: #DFC28F;
  --cream:      #F4F4F2;
  --warm-white: #FFFFFF;
  --border:     #E9E9E6;
  --text-muted: #7A6E60;
  --text-light: #A09585;
  --wa-green:   #25D366;
  --tg-blue:    #229ED9;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    10px;
  --radius-sm: 6px;
  --container: 900px;
  --gap:       24px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }
h4 { font-size: 1rem; }
p  { line-height: 1.7; }

.label {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8A6A38;
  font-family: var(--font-body);
  font-weight: 600;
}
.section-dark .label,
.page-hero .label { color: var(--gold-light); }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Split (2-column) layouts — replaces non-responsive inline grids ── */
.split, .split-center, .split-48, .split-tight, .split-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split        { gap: 40px; align-items: start; }
.split-center { gap: 40px; align-items: center; }
.split-48     { gap: 48px; align-items: start; }
.split-tight  { gap: 12px; max-width: 500px; margin: 0 auto 28px; }
.split-sm     { gap: 16px; margin: 24px 0; }

@media (max-width: 720px) {
  .split, .split-center, .split-48 { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .split-tight { grid-template-columns: 1fr; gap: 8px; }
  .split-sm    { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Photo treatment card — white card, clear frame, black text, accent badge ── */
.treat-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(28,18,8,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.treat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(28,18,8,.16);
  border-color: var(--gold);
}
.treat-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.treat-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.treat-card:hover .treat-card-media img { transform: scale(1.08); }
.treat-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 13px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(200,169,110,.45);
  transition: transform .3s ease;
}
.treat-card:hover .treat-card-badge { transform: scale(1.08); }
.treat-card-body { padding: 18px; }
.treat-card-body .label { display: block; margin-bottom: 6px; }
.treat-card-body h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.treat-card-body h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 28px; height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}
.treat-card:hover .treat-card-body h3::after { width: 100%; }
.treat-card-body p { color: var(--text-muted); font-size: .82rem; line-height: 1.55; }

/* ── Card ── */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(28,18,8,.05), 0 6px 18px rgba(28,18,8,.04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(28,18,8,.12); transform: translateY(-3px); border-color: var(--gold); }

/* ── Price / promo box (dark, used on service pages) ── */
.price-box {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(28,18,8,.18);
  position: relative;
  overflow: hidden;
}
.price-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(200,169,110,.14) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Blog card ── */
.blog-card { padding: 0; overflow: hidden; }
.blog-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--cream);
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: .85rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  z-index: 1;
}
.btn:hover::before { left: 130%; }
.btn:hover { opacity: .95; transform: translateY(-2px); }
.btn-wa  { background: var(--wa-green); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.32); }
.btn-wa:hover  { box-shadow: 0 10px 24px rgba(37,211,102,.42); }
.btn-tg  { background: var(--tg-blue);  color: #fff; box-shadow: 0 6px 18px rgba(34,158,217,.32); }
.btn-tg:hover  { box-shadow: 0 10px 24px rgba(34,158,217,.42); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(200,169,110,.35); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(200,169,110,.45); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(200,169,110,.08); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(28,18,8,.28); }
.btn-sm { padding: 8px 16px; font-size: .78rem; }

/* ── Top bar ── */
.topbar {
  background: var(--ink);
  color: #9CA3AF;
  font-size: .72rem;
  text-align: center;
  padding: 8px 20px;
  letter-spacing: .05em;
}
.topbar a { color: var(--gold); text-decoration: none; }

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(28,18,8,.18);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.nav-logo-text span { display: block; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-body); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .nav-wa {
  background: var(--wa-green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  margin-left: 6px;
}
.nav-links .nav-wa:hover { opacity: .88; color: #fff; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-wa { text-align: center; margin-left: 0; margin-top: 8px; }
}

/* ── Page hero ── */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 30%, rgba(200,169,110,.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { margin-bottom: 12px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: #9CA3AF; max-width: 520px; }

/* ── Filter tabs ── */
.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .filter-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-wrap::-webkit-scrollbar { display: none; }
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .72rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--ink);
}

/* ── Price table ── */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover .price-name { color: var(--gold); }
.price-name { font-size: .9rem; flex: 1; }
.price-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Video cards ── */
.video-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.tiktok-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.video-card {
  flex: 0 0 auto;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.video-thumb {
  width: 160px;
  height: 285px;
  position: relative;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(28,18,8,.18);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .72;
  transition: opacity .25s;
}
.video-card:hover .video-thumb img { opacity: .85; }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 44px; height: 44px;
  background: rgba(200,169,110,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.video-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(28,18,8,.92));
  padding: 28px 10px 10px;
  color: #fff;
  font-size: .7rem;
  line-height: 1.35;
  font-weight: 500;
}

/* ── Video modal (inline player, no redirect to YouTube) ── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,8,4,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  width: 100%;
  max-width: 860px;
  position: relative;
}
.video-modal.video-modal-tall .video-modal-inner { max-width: 380px; }
.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.video-modal.video-modal-tall .video-modal-frame { aspect-ratio: 9/16; }
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -42px; right: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(255,255,255,.25); }

/* ── Testimonials ── */
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stars { color: #E8B04B; font-size: .8rem; letter-spacing: 2px; }

/* ── Section divider ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
  animation: draw-line .8s ease forwards;
  transform-origin: left;
}
@keyframes draw-line {
  from { width: 0; }
  to   { width: 40px; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sticky contact ── */
.sticky-contact {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.sticky-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  transition: transform .18s;
  position: relative;
}
.sticky-btn:hover { transform: scale(1.1); }
.sticky-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .55;
  animation: pulse-ring 2.2s ease-out infinite;
}
.sticky-wa { background: var(--wa-green); color: var(--wa-green); }
.sticky-tg { background: var(--tg-blue); color: var(--tg-blue); }

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: #9CA3AF;
  padding: 48px 0 32px;
  font-size: .82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}
.footer h4 { color: var(--gold); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); font-weight: 500; }
.footer a { color: #9CA3AF; text-decoration: none; display: block; margin-bottom: 8px; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: .72rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Utilities ── */
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.gold { color: var(--gold); }

/* ── Chip tags ── */
.chip {
  display: inline-block;
  background: rgba(200,169,110,.12);
  border: 1px solid rgba(200,169,110,.3);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  letter-spacing: .05em;
}

/* ── CTA section ── */
.cta-section {
  background: var(--cream);
  padding: 64px 0;
  text-align: center;
}
.cta-section .container {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 14px 40px rgba(28,18,8,.08);
  border: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Referrer fix for ibb.co images ── */
img[src*="ibb.co"] { /* handled via referrerpolicy attr */ }
