/* ============================================================
   SPA BY SAHRAI — design tokens
   Palette: warm stone + deep brick + aged brass (Christophe Pillet
   arches, zellige, stone — read from hotelsahrai.com's own material world)
   Type: Fraunces (display, editorial serif) + Karla (body/utility)
   Signature: the arch — Pillet's architectural motif, reused as a
   section divider, card frame and calendar-slot shape.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;1,9..144,450&family=Karla:wght@400;500;600&display=swap');

:root {
  --ink: #221b14;
  --stone: #f2ede1;
  --stone-deep: #e7dfce;
  --brick: #8b3a21;
  --brick-deep: #6e2e1a;
  --brass: #ad8a4c;
  --muted: #6f6656;
  --line: #d9cfb8;
  --max: 1180px;
  --radius-arch: 999px 999px 6px 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 450;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; font-style: italic; font-weight: 450; }

.eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink); }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
a { color: inherit; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 900px) { .wrap { padding: 0 2.5rem; } }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242,237,225,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.site-nav .logo {
  font-family: 'Fraunces', serif; font-size: 1.1rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.site-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.site-nav a.navlink {
  text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--ink); position: relative; padding-bottom: 2px;
}
.site-nav a.navlink:hover { color: var(--brick); }
.site-nav .cta {
  background: var(--brick); color: var(--stone); text-decoration: none;
  padding: 0.6rem 1.3rem; font-size: 0.82rem; letter-spacing: 0.04em;
  border-radius: var(--radius-arch);
}
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-nav ul.navlinks { display: none; }
}

/* ---------- arch divider (signature element) ---------- */
.arch-divider {
  display: flex; justify-content: center; margin: 3.5rem 0;
}
.arch-divider svg { width: 84px; height: 42px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(34,27,20,0.15), rgba(34,27,20,0.55)), var(--ink);
  background-size: cover; background-position: center;
  color: var(--stone);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 50% 100%, 0 calc(100% - 48px));
}
.hero-inner { padding: 0 0 5rem; max-width: 720px; }
.hero .eyebrow { color: var(--stone); opacity: 0.85; }
.hero h1 { color: var(--stone); margin-top: 0.4rem; }
.hero p.lede { color: rgba(242,237,225,0.85); margin-top: 1rem; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 0.85rem 1.8rem; font-size: 0.86rem; letter-spacing: 0.04em;
  border-radius: var(--radius-arch); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brick); color: var(--stone); }
.btn-primary:hover { background: var(--brick-deep); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(242,237,225,0.12); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- reassurance strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul {
  list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap;
  gap: 0.5rem 2.5rem; justify-content: center; font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- editorial section ---------- */
.section { padding: 5rem 0; }
.split {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr; 
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split .frame {
  aspect-ratio: 4/5; background: var(--stone-deep);
  border-radius: 220px 220px 8px 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; text-align: center;
  overflow: hidden;
}
.split .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- link cards grid ---------- */
.card-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--stone-deep); border-radius: 160px 160px 10px 10px;
  padding: 2.4rem 1.6rem 2rem; text-align: center; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(34,27,20,0.35); }
.card .card-eyebrow { color: var(--brass); }
.card h3 { margin: 0.6rem 0 0.5rem; font-style: normal; }
.card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- treatment list (menu pages) ---------- */
.menu-header {
  padding: 6rem 0 3rem; text-align: center; border-bottom: 1px solid var(--line);
}
.category-block { margin: 3.2rem 0; }
.category-title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.category-title h3 { font-style: normal; color: var(--brick); }
.category-title .rule { flex: 1; height: 1px; background: var(--line); }

.treatment-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1.5rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.treatment-row .names { display: flex; flex-direction: column; gap: 0.15rem; }
.treatment-row .fr { font-family: 'Fraunces', serif; font-size: 1.12rem; }
.treatment-row .en { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.treatment-row .meta { text-align: right; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.treatment-row .price { font-family: 'Fraunces', serif; color: var(--brick); font-size: 1.05rem; display: block; }
.treatment-row .book-link { font-size: 0.76rem; letter-spacing: 0.04em; text-decoration: none; color: var(--brick); border-bottom: 1px solid var(--brick); }

/* ---------- pool cards ---------- */
.pool-card {
  border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem;
  background: var(--stone-deep); display: flex; flex-direction: column; gap: 0.8rem;
}
.pool-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pool-grid { grid-template-columns: 1fr 1fr; } }
.pool-card .price { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--brick); }
.pool-card .tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* ---------- reservation ---------- */
.res-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .res-layout { grid-template-columns: 1.3fr 1fr; align-items: flex-start; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 0.4rem; }
.field select, .field input {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: 'Karla', sans-serif; font-size: 0.95rem; color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.slot-btn {
  padding: 0.7rem 0.4rem; text-align: center; font-size: 0.85rem;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: var(--radius-arch);
}
.slot-btn[aria-pressed="true"] { background: var(--brick); color: var(--stone); border-color: var(--brick); }
.slot-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; background: var(--stone-deep); }
.slot-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.summary-card {
  background: var(--ink); color: var(--stone); border-radius: 24px; padding: 2rem;
  position: sticky; top: 6rem;
}
.summary-card .eyebrow { color: var(--brass); }
.summary-card .row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(242,237,225,0.15); font-size: 0.9rem; }
.summary-card .total { font-family: 'Fraunces', serif; font-size: 1.6rem; margin-top: 1rem; }
.state-msg { font-size: 0.85rem; color: var(--muted); padding: 1rem 0; }
.state-msg.error { color: var(--brick); }

/* ---------- footer ---------- */
footer.site-footer { background: var(--ink); color: var(--stone); padding: 4rem 0 2.5rem; margin-top: 5rem; }
footer.site-footer .cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { footer.site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.9rem; }
footer.site-footer a { color: var(--stone); text-decoration: none; opacity: 0.85; }
footer.site-footer a:hover { opacity: 1; }
footer.site-footer .bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(242,237,225,0.15); font-size: 0.78rem; opacity: 0.7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
