/* ============================================================
   RENÉ CLINIC — Design System
   Editorial luxury · wine + cream · serif display
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --white:        #FFFFFF;   /* pure white sections */
  --paper:        #FBF7F3;   /* lightest warm surface */
  --cream:        #F0E6DE;   /* logo background */
  --cream-deep:   #E8DAD0;   /* warm panel */
  --clay:         #C9A98F;   /* taupe accent */
  --clay-soft:    #DCC6B4;
  --gold:         #B08D57;   /* refined metallic accent */
  --wine:         #8A2B2B;   /* brand primary */
  --wine-deep:    #6E2020;
  --wine-soft:    #A84545;
  --ink:          #3A2A26;   /* text */
  --ink-soft:     #6E5A53;
  --espresso:     #241917;   /* deep footer tone */
  --line:         rgba(58, 42, 38, 0.14);
  --line-soft:    rgba(58, 42, 38, 0.08);
  --on-wine:      #F4E9E1;

  /* Type */
  --brand:   'Cormorant Garamond', serif;            /* logo wordmark only */
  --display: 'Noto Sans Thai', 'Cormorant Garamond', sans-serif;
  --serif-th: 'Noto Sans Thai', sans-serif;
  --body:    'Noto Sans Thai', system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 152px);
  --radius: 4px;
  --radius-img: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- Type scale ---------- */
.kicker {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: ""; width: 34px; height: 1px; background: var(--clay);
}
.kicker.center { justify-content: center; }
.kicker.center::after {
  content: ""; width: 34px; height: 1px; background: var(--clay);
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.serif-th { font-family: var(--serif-th); }

.h-hero { font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; }
.h1 { font-size: clamp(38px, 6.5vw, 80px); }
.h2 { font-size: clamp(30px, 4.6vw, 54px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); }

.lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-soft); font-weight: 300; line-height: 1.75; }
.muted { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }
em.it { font-family: var(--serif-th); font-style: normal; color: var(--wine); font-weight: 600; }

/* eyebrow numbering */
.idx { font-family: var(--display); font-style: italic; color: var(--clay); font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px;
  transition: all 0.4s var(--ease);
  position: relative; white-space: nowrap;
}
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary { background: var(--wine); color: var(--on-wine); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }
.btn-light { background: var(--cream); color: var(--wine); }
.btn-light:hover { background: #fff; }
.btn-ghost-wine { border: 1px solid rgba(244,233,225,0.4); color: var(--on-wine); }
.btn-ghost-wine:hover { background: rgba(244,233,225,0.12); }

.link-underline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 0.08em; color: var(--wine); font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid var(--clay);
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.link-underline:hover { gap: 16px; border-color: var(--wine); }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 19px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled {
  background: #fff;
  box-shadow: 0 6px 24px -16px rgba(58,42,38,0.4), 0 1px 0 var(--line-soft);
  padding-block: 13px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .mark {
  font-family: var(--brand); font-weight: 600; font-size: 27px;
  color: var(--wine); letter-spacing: 0.02em; line-height: 1;
}
.brand .mark sup { font-size: 0.5em; vertical-align: super; }
.brand .sub {
  font-family: var(--body); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
/* dot separators between menu items (luxe) — centered on the boundary between links */
.nav-links a:not(.nav-cta) { position: relative; letter-spacing: 0.05em; }
.nav-links a:not(.nav-cta):not(:first-child)::before {
  content: "·";
  position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
  color: var(--clay); font-weight: 700; font-size: 15px; pointer-events: none;
}
.nav-links a {
  font-size: 14px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink);
  position: relative; padding: 10px 20px; transition: color 0.3s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 4px; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--wine); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }

/* centered-logo nav layout */
.nav--center .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav--center .nav-side { display: flex; align-items: center; gap: 36px; }
.nav--center .nav-left { justify-self: start; }
.nav--center .nav-right { justify-self: end; }
.brand--logo { justify-self: center; display: block; }
.brand--logo img { height: 64px; width: auto; display: block; transition: height 0.4s var(--ease); }
.nav.scrolled .brand--logo img { height: 52px; }
@media (max-width: 900px) {
  .nav--center .nav-inner { grid-template-columns: 1fr auto 1fr; }
  .nav--center .nav-side { display: none; }
  .nav--center .nav-toggle { display: flex; grid-column: 1; justify-self: start; }
  .nav--center .brand--logo { grid-column: 2; }
}

/* nav sitting over a dark hero image (homepage): white until scrolled */
.nav--over:not(.scrolled) .nav-links a { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.nav--over:not(.scrolled) .nav-links a::after { background: #fff; }
.nav--over:not(.scrolled) .nav-links a:hover { color: rgba(255,255,255,0.78); }
.nav--over:not(.scrolled) .brand .mark { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.nav--over:not(.scrolled) .brand .sub { color: rgba(255,255,255,0.85); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.nav--over:not(.scrolled) .nav-toggle span { background: #fff; }
.nav--over:not(.scrolled) .nav-links a.nav-cta { color: #fff; text-shadow: none; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 300; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-family: var(--display); font-size: 36px; color: var(--wine); padding: 10px; }
.drawer .close { position: absolute; top: 26px; right: 26px; font-size: 30px; color: var(--ink); line-height: 1; }

/* ---------- Footer (light) ---------- */
.footer { background: var(--cream); color: var(--ink); padding-block: clamp(60px, 8vw, 96px) 40px; }
.footer a { color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer .mark { font-family: var(--brand); font-size: 46px; font-weight: 600; color: var(--wine); line-height: 1; }
.footer .mark sup { font-size: 0.45em; vertical-align: super; color: var(--clay); }
.footer .tagline { color: var(--ink-soft); max-width: 34ch; margin-top: 18px; font-weight: 300; }
.footer h4 { font-family: var(--body); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine); margin-bottom: 20px; font-weight: 500; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { opacity: 0.78; transition: opacity 0.3s; font-weight: 300; }
.footer ul a:hover { opacity: 1; color: var(--wine); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 12px; }

/* ---------- Floating contact widget ---------- */
.cw { position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px); z-index: 400; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cw-item {
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(12px) scale(0.92);
  transition: all 0.4s var(--ease); pointer-events: none;
}
.cw.open .cw-item { opacity: 1; transform: none; pointer-events: auto; }
.cw.open .cw-item:nth-child(1) { transition-delay: 0.06s; }
.cw.open .cw-item:nth-child(2) { transition-delay: 0.12s; }
.cw-label {
  background: var(--ink); color: var(--on-wine); font-size: 13px; letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-weight: 300;
  box-shadow: 0 8px 24px rgba(58,42,38,0.22);
}
.cw-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 10px 30px rgba(58,42,38,0.28);
  transition: transform 0.35s var(--ease);
}
.cw-btn:hover { transform: translateY(-3px) scale(1.05); }
.cw-btn.line { background: #06C755; }
.cw-btn.fb { background: #1877F2; }
.cw-toggle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: var(--on-wine);
  display: grid; place-items: center; box-shadow: 0 12px 34px rgba(110,32,32,0.4);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.cw-toggle:hover { background: var(--wine-deep); }
.cw.open .cw-toggle { transform: rotate(135deg); }
.cw-toggle svg { transition: transform 0.4s var(--ease); }

/* ---------- Image slots ---------- */
image-slot {
  --is-empty-bg: var(--cream-deep);
  background: var(--cream-deep);
  border: 1px solid var(--line-soft);
}

/* generic placeholder visual (non image-slot) */
.ph {
  background: var(--cream-deep);
  display: grid; place-items: center;
  color: var(--clay); position: relative; overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(201,169,143,0.08) 18px, rgba(201,169,143,0.08) 19px);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Hairline divider ---------- */
.rule { height: 1px; background: var(--line); border: 0; }
.rule-clay { height: 1px; background: var(--clay); border: 0; }

/* ---------- Page hero (interior masthead) — centered editorial ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-top: clamp(132px, 15vw, 188px);
  padding-bottom: clamp(52px, 6.5vw, 88px);
  background: linear-gradient(180deg, #f8f1ea 0%, var(--cream) 58%, #ead9c8 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='104'%3E%3Cpath d='M52 20 C54 40 64 50 84 52 C64 54 54 64 52 84 C50 64 40 54 20 52 C40 50 50 40 52 20 Z' fill='%238A2B2B'/%3E%3C/svg%3E");
  background-size: 104px 104px; opacity: 0.04;
}
.page-hero::after {
  content: "René"; position: absolute; left: 50%; bottom: -0.3em; transform: translateX(-50%);
  font-family: var(--brand); font-style: italic; font-weight: 600;
  font-size: clamp(180px, 30vw, 440px); line-height: 1; color: var(--wine);
  opacity: 0.05; pointer-events: none; z-index: 0; white-space: nowrap;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .crumb {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  white-space: nowrap;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 20px;
}
.page-hero .crumb a { color: var(--wine); }
.page-hero .crumb a:hover { opacity: 0.68; }
.page-hero .kicker { margin-bottom: 20px; }
.page-hero h1 { margin-inline: auto; max-width: 20ch; }
.page-hero .lead { margin-inline: auto; }
.page-hero .svc-nav { justify-content: center; }
.page-hero .chips { justify-content: center; }
.page-hero .rev-rating { justify-content: center; }
.page-hero .crumb a:hover { color: var(--wine); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pillar { padding: 8px clamp(20px,2.4vw,36px); border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .idx { display: block; margin-bottom: 18px; font-size: 22px; }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Service cards (overview) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-card { position: relative; background: #FDFBF9; border: 1px solid var(--line-soft); border-radius: var(--radius-img); overflow: hidden; display: flex; flex-direction: column; min-height: 520px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(58,42,38,0.16); }
.svc-card .svc-media { height: 320px; }
.svc-card .svc-body { padding: 34px clamp(26px,3vw,40px) 38px; display: flex; flex-direction: column; flex: 1; }
.svc-card .svc-body h3 { font-size: 36px; margin-bottom: 12px; }
.svc-card .svc-body p { color: var(--ink-soft); margin-bottom: 24px; flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wine); color: var(--on-wine); text-align: center; }
.cta-band .h2 { color: var(--on-wine); max-width: 18ch; margin: 0 auto 14px; }
.cta-band p { color: rgba(244,233,225,0.78); max-width: 46ch; margin: 0 auto 36px; }
.cta-band .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.maxch { max-width: 56ch; }
.flex { display: flex; } .gap-16 { gap: 16px; } .wrapf { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION BACKGROUND RHYTHM
   ============================================================ */
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-wine  { background: var(--wine); color: var(--on-wine); }

/* a hairline at the top edge to define white/paper boundaries */
.edge-top { border-top: 1px solid var(--line-soft); }

/* ============================================================
   EDITORIAL IMAGERY
   ============================================================ */
.eimg { position: relative; overflow: hidden; border-radius: var(--radius-img); background: var(--cream-deep); }
.eimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.eimg.zoom:hover img { transform: scale(1.05); }
/* warm editorial wash so stock images sit in the brand world */
.eimg.warm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(138,43,43,0.04), rgba(58,42,38,0.12));
  mix-blend-mode: multiply;
}
.eimg .cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.eimg .seal {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-style: italic; font-size: 13px; line-height: 1.1;
  backdrop-filter: blur(2px);
}

/* framed image: thin inner keyline for a couture feel */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.28); border-radius: calc(var(--radius-img) - 8px);
}

/* ============================================================
   FAINT LINE TEXTURE (subtle pinstripe — only on select panels)
   ============================================================ */
.bg-cream, .cta-band { position: relative; }
.bg-cream > *, .cta-band > * { position: relative; z-index: 1; }
.bg-cream::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--pat);
}
.bg-cream { --pat: repeating-linear-gradient(90deg, transparent 0 10px, rgba(138,43,43,0.04) 10px 11px); }
.cta-band { --pat: repeating-linear-gradient(90deg, transparent 0 10px, rgba(240,230,222,0.06) 10px 11px); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-style: italic; font-size: clamp(22px,3vw,34px); color: var(--clay); display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--wine); font-style: normal; font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   QUIET CAPTION / OVERLINE
   ============================================================ */
.overline { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.signature { font-family: var(--display); font-style: italic; color: var(--wine); }

/* gold rule */
.rule-gold { height: 1px; background: var(--gold); border: 0; opacity: 0.7; }

/* ============================================================
   LUXURY POLISH LAYER
   ============================================================ */
/* slim metallic line across the very top of the page */
body { border-top: 2px solid var(--gold); }

/* kicker: gold hairlines + small lead diamond */
.kicker::before, .kicker.center::after { background: var(--gold); }
.kicker { gap: 16px; }

/* editorial images get a soft, expensive shadow + warmer keyline */
.eimg { box-shadow: 0 30px 70px -34px rgba(58,42,38,0.45); }
.svc-card, .promo { box-shadow: 0 30px 70px -38px rgba(58,42,38,0.4); }

/* circular seal in gold */
.eimg .seal { border-color: rgba(240,230,222,0.85); box-shadow: inset 0 0 0 1px rgba(176,141,87,0.5); width: 72px; height: 72px; letter-spacing: 0.04em; }

/* refined primary button with subtle depth */
.btn-primary { box-shadow: 0 14px 30px -14px rgba(110,32,32,0.7); }
.btn { letter-spacing: 0.14em; }

/* scrolled nav: hairline goes faint gold */
.nav.scrolled { box-shadow: 0 1px 0 rgba(176,141,87,0.28); }

/* monogram dignity: tiny gold tracking line under brand on hover */
.brand .mark { transition: color 0.3s; }

/* decorative section ornament (use: <span class="ornament">✦</span>) */
.ornament { display: inline-block; color: var(--gold); font-size: 13px; opacity: 0.9; }

/* drop a touch more air between major sections */
:root { --section-y: clamp(80px, 12vw, 168px); }

/* italic display accents glow slightly warmer */
em.it, .signature { color: var(--wine); }

/* marquee stars in gold */
.marquee-track span::after { color: var(--gold); }

/* refined link underline in gold */
.link-underline { border-color: var(--gold); }
.link-underline:hover { border-color: var(--wine); }

/* page-hero gets a hairline gold base */
.page-hero { border-bottom: 1px solid var(--clay); }

/* ============================================================
   CAROUSEL / SLIDER
   ============================================================ */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: none;
  scroll-behavior: smooth; padding: 6px 2px 16px; margin: 0 -2px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.cbtn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: transparent; color: var(--ink);
  transition: all 0.35s var(--ease); font-size: 18px;
}
.cbtn:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.cbtn:disabled { opacity: 0.28; cursor: default; }
.carousel-track .promo { width: clamp(280px, calc((100% - 44px) / 3), 440px); min-height: 430px; }
.carousel-track .acard { width: clamp(260px, calc((100% - 44px) / 3), 400px); }

/* ============================================================
   PAGE-SPECIFIC — HOME
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-stats { display: flex; align-items: center; gap: 30px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats .hs-n { display: block; font-family: var(--display); font-size: 26px; color: var(--wine); font-weight: 600; }
.hero-stats .hs-l { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.hero-stats .hs-div { width: 1px; height: 38px; background: var(--line); }
.hero-media { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4/5; }
.hero-tag { position: absolute; left: -22px; bottom: 36px; background: var(--paper); padding: 18px 26px; border-radius: 4px; box-shadow: 0 20px 50px rgba(58,42,38,0.14); text-align: center; }
.hero-tag span { display: block; font-size: 22px; color: var(--wine); }
.hero-tag small { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; white-space: nowrap; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.about-points .ap { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.about-points .ap-mark { color: var(--clay); font-size: 13px; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.hero-banner { padding-top: 90px; background: linear-gradient(180deg, #efe7da 0%, #e8ddcb 100%); }
.hero-banner img { width: 100%; height: auto; display: block; }
.herocta { padding-block: clamp(34px,5vw,52px); border-top: 1px solid var(--line); }
.herocta-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(28px,5vw,64px); flex-wrap: wrap; }
.herocta-line { font-size: clamp(24px,3.2vw,40px); line-height: 1.18; color: var(--ink); margin-top: 12px; }
.herocta-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.promo-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 22px; }
.promo { position: relative; min-height: 440px; display: flex; align-items: flex-end; border-radius: var(--radius-img); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.promo:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(58,42,38,0.2); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.promo:hover img { transform: scale(1.05); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(36,25,23,0) 30%, rgba(36,25,23,0.82) 100%); }
.promo-body { position: relative; z-index: 2; padding: 30px clamp(22px,2.4vw,34px); color: #fff; }
.promo-body h3 { color: #fff; font-size: 24px; margin: 10px 0 6px; }
.promo--feature .promo-body h3 { font-size: 30px; }
.promo-body p { color: rgba(255,255,255,0.82); font-size: 14px; font-weight: 300; max-width: 36ch; }
.promo-flag { display: inline-block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); border: 1px solid rgba(255,255,255,0.5); padding: 5px 12px; border-radius: 999px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,3vw,40px); }
.acard { display: flex; flex-direction: column; height: 100%; }
.acard-body { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.acard-meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); font-weight: 500; }
.acard-body h3 { font-size: 22px; line-height: 1.3; margin: 12px 0 10px; }
.acard-body h3 a { transition: color 0.3s; }
.acard-body h3 a:hover { color: var(--wine); }
.acard-body p { font-size: 14.5px; color: var(--ink-soft); }
/* push the trailing "อ่านต่อ" link to the bottom so it aligns across cards */
.acard-body .link-underline { margin-top: auto; align-self: flex-start; padding-top: 18px; }

.rev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 50px; flex-wrap: wrap; }
.rev-rating { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); margin-top: 18px; }
.rev-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.rev-rating strong { color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 600; }
.teaser-grid .eimg { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.teaser-grid .eimg:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(58,42,38,0.18); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo--feature { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero-stats { flex-wrap: wrap; gap: 18px; }
}

/* ============================================================
   PAGE-SPECIFIC — SERVICES
   ============================================================ */
.svc-nav { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.svc-nav a { display: inline-flex; align-items: center; gap: 12px; padding: 13px 26px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: all 0.35s var(--ease); }
.svc-nav a:hover { border-color: var(--wine); color: var(--wine); }
.svc-nav a .idx { font-size: 16px; }

.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grp { background: var(--paper); padding: 38px clamp(26px,2.6vw,38px) 42px; }
.grp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.grp-top .idx { font-size: 30px; }
.grp-hl { font-size: 12px; letter-spacing: 0.06em; color: var(--wine); background: var(--cream); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
.grp h3 { margin-bottom: 10px; }
.grp p { font-size: 14.5px; margin-bottom: 22px; }
.ticks { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-soft); }
.ticks li { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,3vw,40px); }
.adv { padding-top: 24px; border-top: 2px solid var(--wine); }
.adv-no { font-size: 22px; display: block; margin-bottom: 14px; }
.adv h4 { font-size: 20px; margin-bottom: 8px; }
.adv p { font-size: 14.5px; color: var(--ink-soft); }

.trust { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px,6vw,80px); background: var(--paper); padding: clamp(36px,5vw,64px); border-radius: var(--radius); }
.trust-list { display: flex; flex-direction: column; }
.trust-list .ti { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.trust-list .ti:first-child { padding-top: 0; }
.trust-list .ti:last-child { border-bottom: 0; padding-bottom: 0; }
.ti-no { font-family: var(--display); font-style: italic; font-size: 28px; color: var(--clay); flex-shrink: 0; line-height: 1; }
.ti h4 { font-size: 20px; margin-bottom: 6px; }
.ti p { font-size: 14.5px; color: var(--ink-soft); }

.note { display: flex; align-items: flex-start; gap: 18px; margin-top: 40px; padding: 26px 30px; background: var(--paper); border-left: 2px solid var(--wine); border-radius: var(--radius); }
.note-mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--wine); color: var(--on-wine); display: grid; place-items: center; font-family: var(--display); font-size: 16px; }
.note p { font-size: 14.5px; color: var(--ink-soft); }
.note strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .group-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .svc-head.grid-2 > div.svc-media-order { order: 0 !important; }
}
@media (max-width: 540px) {
  .adv-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE-SPECIFIC — REVIEWS
   ============================================================ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--cream); border-radius: var(--radius-img); padding: 36px clamp(26px,2.6vw,38px) 32px; display: flex; flex-direction: column; box-shadow: 0 24px 60px -38px rgba(58,42,38,0.4); }
.q-stars { color: var(--gold); letter-spacing: 3px; font-size: 16px; margin-bottom: 18px; }
.quote blockquote { font-family: var(--display); font-size: 22px; line-height: 1.45; color: var(--ink); font-style: italic; flex: 1; }
.quote figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.quote figcaption span { color: var(--wine); font-weight: 500; }
.masonry { column-count: 4; column-gap: 18px; }
.masonry .eimg { width: 100%; margin-bottom: 18px; break-inside: avoid; }
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
}
@media (max-width: 540px) {
  .masonry { column-count: 1; }
}

/* ============================================================
   PAGE-SPECIFIC — CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,88px); align-items: start; }
.info-list { margin-top: 36px; display: flex; flex-direction: column; gap: 8px; }
.info { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info:last-child { border-bottom: 0; }
.info-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--wine); font-size: 20px; }
.info h3 { font-size: 19px; margin-bottom: 5px; }
.info p { font-size: 15.5px; color: var(--ink); line-height: 1.6; }
.info a:hover { color: var(--wine); }
.chan { display: flex; flex-direction: column; gap: 4px; }

.book-card { background: var(--cream); border-radius: var(--radius-img); padding: clamp(28px,3.4vw,44px); box-shadow: 0 30px 70px -40px rgba(58,42,38,0.45); }
.bform { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.bform label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 500; }
.bform input, .bform select, .bform textarea {
  font-family: var(--body); font-size: 15.5px; font-weight: 300; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color 0.3s;
}
.bform input:focus, .bform select:focus, .bform textarea:focus { outline: none; border-color: var(--wine); }
.bform input::placeholder, .bform textarea::placeholder { color: var(--clay); }
.form-note { background: var(--paper); border-left: 2px solid var(--wine); padding: 14px 18px; border-radius: var(--radius); font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.bform .err { color: var(--wine); font-size: 12.5px; font-weight: 400; }

.map-wrap { position: relative; height: clamp(360px, 46vw, 560px); background: var(--cream-deep); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) sepia(0.12); }
.map-card { position: absolute; left: clamp(20px,4vw,64px); bottom: clamp(20px,4vw,48px); background: var(--paper); padding: 26px 30px; border-radius: var(--radius-img); box-shadow: 0 28px 64px -28px rgba(58,42,38,0.4); max-width: 320px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* hide elements with x-cloak until Alpine ready / toast */
[x-cloak] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 500;
  background: var(--ink); color: var(--on-wine); padding: 14px 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 40px rgba(58,42,38,0.3); font-size: 14.5px; }
.toast .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ============================================================
   LIST PAGES — articles & promotions index (RENE)
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,3vw,40px); }
.promo-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promo-list-grid .promo { width: 100%; min-height: 380px; }

/* category / filter chips */
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink);
  transition: all 0.3s var(--ease); background: #fff;
}
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.is-active { background: var(--wine); color: var(--on-wine); border-color: var(--wine); }
.chip .n { font-size: 12px; opacity: 0.7; }

/* empty state */
.empty-note { text-align: center; color: var(--ink-soft); padding: clamp(40px,8vw,90px) 0; }

/* ============================================================
   RENE PAGINATION
   ============================================================ */
.rene-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(44px,6vw,72px); flex-wrap: wrap; }
.rene-pager a, .rene-pager span {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1px solid var(--line); color: var(--ink);
  transition: all 0.3s var(--ease); font-variant-numeric: tabular-nums;
}
.rene-pager a:hover { border-color: var(--wine); color: var(--wine); }
.rene-pager .is-current { background: var(--wine); color: var(--on-wine); border-color: var(--wine); }
.rene-pager .is-disabled { opacity: 0.35; pointer-events: none; }
.rene-pager .dots { border: 0; min-width: 24px; }

/* ============================================================
   ARTICLE / PROMOTION — detail (show) pages
   ============================================================ */
.post-hero { padding-top: clamp(100px, 10vw, 124px); padding-bottom: clamp(22px,3vw,38px); background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.post-meta { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); font-weight: 500; }
.post-title { font-size: clamp(30px,4.6vw,52px); margin: 16px 0 14px; line-height: 1.14; }
.post-sub { color: var(--ink-soft); font-size: clamp(16px,1.7vw,19px); max-width: 60ch; }
.post-cover { width: 100%; aspect-ratio: 16/8; margin-top: clamp(28px,4vw,48px); }
.post-body { max-width: 760px; margin-inline: auto; }

/* prose: styles Summernote/rich HTML output in the brand world */
.prose-rene { color: var(--ink); font-size: 17px; line-height: 1.85; font-weight: 300; }
.prose-rene > * + * { margin-top: 1.1em; }
.prose-rene h1, .prose-rene h2, .prose-rene h3, .prose-rene h4 { font-family: var(--display); color: var(--ink); line-height: 1.25; margin-top: 1.6em; }
.prose-rene h2 { font-size: clamp(24px,3vw,34px); }
.prose-rene h3 { font-size: clamp(20px,2.4vw,26px); }
.prose-rene p { color: var(--ink); }
.prose-rene a { color: var(--wine); border-bottom: 1px solid var(--gold); }
.prose-rene a:hover { border-color: var(--wine); }
.prose-rene strong { font-weight: 600; color: var(--ink); }
.prose-rene em { font-style: italic; }
.prose-rene ul, .prose-rene ol { padding-left: 1.4em; }
.prose-rene li { margin-top: 0.5em; }
.prose-rene ul li::marker { color: var(--clay); }
.prose-rene img { width: 100%; border-radius: var(--radius-img); margin-block: 1.4em; box-shadow: 0 30px 70px -34px rgba(58,42,38,0.45); }
.prose-rene blockquote { border-left: 2px solid var(--wine); padding: 4px 0 4px 22px; font-family: var(--display); font-style: italic; font-size: 1.15em; color: var(--ink-soft); }
.prose-rene hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .promo-list-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid, .promo-list-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESULTS — gallery posts, before/after slider, video
   ============================================================ */
.result-card { display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius-img); overflow: hidden; height: 100%; box-shadow: 0 30px 70px -38px rgba(58,42,38,0.4); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.result-card:hover { transform: translateY(-6px); box-shadow: 0 34px 76px -36px rgba(58,42,38,0.5); }
.result-card .rc-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.result-card .rc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.result-card:hover .rc-media img { transform: scale(1.05); }
.result-card .rc-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.08em; color: #fff; background: rgba(36,25,23,0.6); backdrop-filter: blur(3px); padding: 6px 12px; border-radius: 999px; }
.result-card .rc-badge.is-video { right: 14px; left: auto; }
.result-card .rc-body { padding: 22px clamp(20px,2.4vw,28px) 26px; display: flex; flex-direction: column; flex: 1; }
.result-card .rc-treat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); font-weight: 500; }
.result-card .rc-title { font-family: var(--serif-th); font-size: 19px; line-height: 1.3; margin: 10px 0 8px; color: var(--ink); }
.result-card .rc-sum { font-size: 14px; color: var(--ink-soft); }
.result-card .rc-cta { margin-top: auto; align-self: flex-start; padding-top: 16px; }

/* before/after comparison slider */
.ba-slider { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-img); user-select: none; touch-action: pan-y; background: var(--cream-deep); box-shadow: 0 30px 70px -34px rgba(58,42,38,0.45); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; z-index: 2; }
.ba-before-wrap img { width: 100vw; max-width: none; }            /* keep before img sized to full slider */
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 3; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(58,42,38,0.18); }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--wine); display: grid; place-items: center; font-size: 16px; letter-spacing: 2px; box-shadow: 0 8px 24px rgba(58,42,38,0.3); cursor: ew-resize; }
.ba-label { position: absolute; bottom: 16px; z-index: 4; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; background: rgba(36,25,23,0.55); padding: 6px 14px; border-radius: 999px; pointer-events: none; }
.ba-label.before { left: 16px; }
.ba-label.after  { right: 16px; }

.ba-single { width: 100%; max-width: 620px; margin-inline: auto; border-radius: var(--radius-img); overflow: hidden; }
.ba-single img { width: 100%; height: auto; object-fit: contain; display: block; }

/* responsive video embed */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-img); overflow: hidden; background: #000; box-shadow: 0 30px 70px -34px rgba(58,42,38,0.45); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Nav luxe polish ---------- */
.nav { box-shadow: 0 1px 0 rgba(176,141,87,0.18); }
.nav-links a:not(.nav-cta):hover::before { color: var(--clay); }

/* ============================================================
   LUXE QUICK WINS — site-wide polish
   ============================================================ */

/* 1) refined text selection */
::selection      { background: var(--wine); color: var(--on-wine); }
::-moz-selection { background: var(--wine); color: var(--on-wine); }

/* 2) elegant scrollbar */
html { scrollbar-color: var(--clay) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clay), var(--clay-soft));
  border-radius: 99px; border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* 3) gold-foil wordmark in the footer */
.footer .mark {
  background: linear-gradient(135deg, #C9A05A 0%, #E7CB8A 28%, #B0883F 52%, #EAD09A 76%, #9E7530 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.footer .mark sup { -webkit-text-fill-color: var(--clay); color: var(--clay); }

/* 4) gold sheen sweep across primary buttons on hover */
.btn-primary { overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(231,203,138,0.40), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease);
}
.btn-primary:hover::after { left: 135%; }
.btn-primary > * { position: relative; z-index: 1; }

/* 5) refined keyboard focus ring (gold) */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}

html { scrollbar-gutter: stable; }

/* nav CTA: no shadow */
.nav-cta { box-shadow: none !important; }
