/* =========================================================
   Horizena — site agence
   Palette tokens are set on <html data-palette="..."> below
   ========================================================= */

:root,
html[data-palette="sable"] {
  --bg:        #F4EFE7;
  --bg-soft:   #EDE6DA;
  --paper:    #FBF7F0;
  --ink:       #161513;
  --ink-soft:  #4A453E;
  --muted:     #8A8276;
  --line:      rgba(22,21,19,.08);
  --gold:      #B89968;
  --gold-deep: #97784A;
  --card-shadow: 0 30px 60px -28px rgba(60,42,18,.35), 0 8px 22px -10px rgba(60,42,18,.18);
}

html[data-palette="blanc"] {
  --bg:        #FAFAF8;
  --bg-soft:   #F2F1ED;
  --paper:    #FFFFFF;
  --ink:       #111111;
  --ink-soft:  #3D3D3B;
  --muted:     #8A8A86;
  --line:      rgba(0,0,0,.08);
  --gold:      #B89968;
  --gold-deep: #97784A;
  --card-shadow: 0 30px 60px -28px rgba(0,0,0,.25), 0 8px 22px -10px rgba(0,0,0,.12);
}

html[data-palette="sombre"] {
  --bg:        #1A1714;
  --bg-soft:   #221E1A;
  --paper:    #2A2520;
  --ink:       #F1ECE2;
  --ink-soft:  #C5BEB2;
  --muted:     #877F71;
  --line:      rgba(241,236,226,.10);
  --gold:      #D4B17C;
  --gold-deep: #B8985A;
  --card-shadow: 0 30px 60px -28px rgba(0,0,0,.6), 0 8px 22px -10px rgba(0,0,0,.4);
}

html[data-palette="sauge"] {
  --bg:        #EEF0E8;
  --bg-soft:   #E3E7D9;
  --paper:    #F6F7F0;
  --ink:       #1B221A;
  --ink-soft:  #3E4839;
  --muted:     #7A8273;
  --line:      rgba(27,34,26,.08);
  --gold:      #8FA67A;     /* in sage palette, "gold" tokens are sage-accent */
  --gold-deep: #6E8459;
  --card-shadow: 0 30px 60px -28px rgba(40,55,30,.32), 0 8px 22px -10px rgba(40,55,30,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

.serif-italic {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -.005em;
}

/* ───────────────────────── Page shell ───────────────────────── */

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ───────────────────────── Nav ───────────────────────── */

.nav {
  position: relative;
  z-index: 20;
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  height: 24px;
  width: auto;
  display: block;
  transition: filter .3s ease;
}
html[data-palette="sombre"] .logo img {
  /* logo is black-on-transparent — invert for dark palette */
  filter: invert(1) brightness(1.05);
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 2px;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: left .35s ease, right .35s ease;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { left: 0; right: 0; background: var(--gold); }

.cta-pill {
  appearance: none;
  border: 0;
  cursor: default;
  background: var(--ink);
  color: var(--bg);
  font: 500 13.5px/1 'Manrope', sans-serif;
  letter-spacing: 0.02em;
  padding: 16px 24px 16px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform .25s ease, background .25s ease;
}
.cta-pill:hover { background: var(--gold-deep); transform: translateY(-1px); }
.cta-pill .arrow {
  width: 16px; height: 16px;
  display: inline-block;
  position: relative;
  transition: transform .35s ease;
}
.cta-pill:hover .arrow { transform: translate(2px,-2px); }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.headline {
  font-size: clamp(56px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.headline .serif-italic {
  font-size: 1.08em;
  letter-spacing: -0.015em;
}

.hero-sep {
  width: 92px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 28px;
  opacity: .85;
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn-primary {
  appearance: none;
  border: 0;
  cursor: default;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font: 500 14px/1 'Manrope', sans-serif;
  letter-spacing: 0.01em;
  padding: 18px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-primary .arrow-bubble {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}
.btn-primary:hover .arrow-bubble { transform: rotate(-45deg); }

.btn-text {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 14px/1 'Manrope', sans-serif;
  letter-spacing: 0.01em;
  cursor: default;
  padding: 6px 0 8px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  transition: color .25s ease, border-color .25s ease;
  display: inline-block;
}
.btn-text:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* vertical side labels */
.side-label {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.side-label .bullet {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.side-label.left  { left: 18px;  top: 52%; transform: rotate(180deg) translateY(50%); }
.side-label.right { right: 18px; top: 52%; transform: rotate(180deg) translateY(50%); }

/* ───────────────────────── Cards stack ───────────────────────── */

.cards-wrap {
  position: relative;
  min-height: 700px;
  perspective: 1400px;
}

/* Decorative SVG arc behind cards */
.arc {
  position: absolute;
  inset: -20px -40px -40px -120px;
  pointer-events: none;
  z-index: 0;
  opacity: .65;
}

.card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--card-shadow);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 40px 80px -28px rgba(60,42,18,.45), 0 12px 30px -10px rgba(60,42,18,.25);
}
a.card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
button.card {
  display: block; text-align: left; appearance: none;
  border: 0; padding: 0; color: inherit; font: inherit;
  cursor: pointer; background: var(--paper);
}
button.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Logo overlay (e.g. partner brand on placeholder card) */
.card-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  max-width: 220px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 22px rgba(60,40,20,.18));
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.card:hover .card-logo { transform: translate(-50%, -50%) scale(1.04); }
/* When a logo is present, hide the placeholder's decorative silhouette */
.card-img-wrap:has(.card-logo) .placeholder-bottle::before,
.card-img-wrap:has(.card-logo) .placeholder-bottle::after { display: none; }

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-img,
.card-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-img,
.card:hover .card-placeholder { transform: scale(1.04); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,12,0) 0%, rgba(20,17,12,0) 38%, rgba(20,17,12,.45) 78%, rgba(20,17,12,.7) 100%);
  pointer-events: none;
}

.card-title {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 60px;
  color: #FBF7F0;
  z-index: 2;
}
.card-title--right {
  left: auto;
  right: 28px;
  bottom: 28px;
  text-align: right;
  max-width: 60%;
}
.card-title h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #FBF7F0;
}
.card-title p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(251,247,240,.82);
}

.card-arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(251,247,240,.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FBF7F0;
  background: rgba(20,17,12,.0);
  z-index: 3;
  transition: background .3s ease, transform .35s ease;
}
.card:hover .card-arrow { background: rgba(251,247,240,.18); transform: rotate(-12deg); }

/* placeholder textures — distinct per card */
.placeholder-stone {
  position: relative;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(80% 70% at 80% 30%, rgba(174,144,98,.18), transparent 60%),
    radial-gradient(100% 100% at 60% 80%, rgba(120,95,60,.22), transparent 60%),
    linear-gradient(140deg, #E7DBC9 0%, #D5C4A8 45%, #C2AC88 100%);
}
.placeholder-stone::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(35deg,  rgba(70,50,30,.04) 0 2px, transparent 2px 14px);
  mix-blend-mode: overlay;
}

/* interior — warmer, sofa-curve hint */
.placeholder-interior {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 25%, rgba(255,248,236,.7), transparent 55%),
    radial-gradient(60% 50% at 78% 78%, rgba(160,128,86,.35), transparent 65%),
    linear-gradient(135deg, #E8D9C0 0%, #D7BF9C 55%, #B8966B 100%);
}
.placeholder-interior::before {
  content: "";
  position: absolute;
  left: 8%; right: 4%; bottom: 8%;
  height: 38%;
  border-radius: 50% 50% 18px 18px / 60% 60% 18px 18px;
  background:
    radial-gradient(80% 100% at 40% 30%, rgba(255,255,255,.45), transparent 60%),
    linear-gradient(180deg, #D8C3A1, #B89770);
  box-shadow: 0 14px 30px -10px rgba(70,50,28,.35);
}
.placeholder-interior::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px);
  mix-blend-mode: overlay;
}

/* boutique — bottle silhouette on marble */
.placeholder-bottle {
  position: relative;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(140,110,72,.28), transparent 70%),
    linear-gradient(160deg, #EFE3CD 0%, #D9C4A1 100%);
}
.placeholder-bottle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 70px;
  height: 130px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 30%, rgba(140,108,68,.22) 100%);
  border-radius: 8px 8px 14px 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.4),
    0 18px 30px -12px rgba(60,40,20,.35);
}
.placeholder-bottle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(14% + 130px - 4px);
  width: 28px; height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #BFA078, #8A6F4A);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.placeholder-label {
  position: absolute;
  left: 12px; top: 12px;
  font: 500 10px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(40,32,20,.5);
  background: rgba(255,255,255,.55);
  padding: 6px 8px;
  border-radius: 4px;
  z-index: 3;
}

/* dried flowers placeholder — soft golden silhouette */
.flowers {
  position: absolute;
  top: -10px; right: -40px;
  width: 240px; height: 280px;
  pointer-events: none;
  opacity: .9;
  z-index: 1;
}

/* marble fragments */
.marble-frag {
  position: absolute;
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(130deg, #E0D2BC, #BFA98A);
  border-radius: 18px;
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.marble-frag::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px);
  mix-blend-mode: overlay;
  border-radius: inherit;
}

/* ───────────────────────── Stats ───────────────────────── */

.stats {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 36px 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
}
.stat + .stat { border-left: 1px solid var(--line); }

.stat-ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-num {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ───────────────────────── Scroll reveal ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ───────────────────────── Booking overlay ─────────────────────────
   Full-screen booking experience — image left, calendar+form right
   ──────────────────────────────────────────────────────────────── */

.book-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(15,12,8,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.book-overlay.open { opacity: 1; pointer-events: auto; }

.book-shell {
  width: 100%;
  height: 100%;
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  position: relative;
  transform: translateY(16px);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.book-overlay.open .book-shell { transform: translateY(0); }

.book-close {
  appearance: none;
  border: 0;
  position: absolute;
  top: 22px; right: 28px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease;
}
.book-close:hover { background: var(--bg-soft); color: var(--gold-deep); }

/* ─── Left side ─── */
.book-left {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.book-left-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.book-left-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,12,.05) 0%, rgba(20,17,12,.2) 65%, rgba(20,17,12,.55) 100%),
    linear-gradient(90deg, rgba(20,17,12,.18) 0%, rgba(20,17,12,0) 60%);
  z-index: 1;
  pointer-events: none;
}
.book-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 44px 44px;
  color: #FBF7F0;
}
.book-left-content .logo img {
  height: 22px;
  filter: invert(1) brightness(1.05);
}
.book-left-body {
  margin-top: auto;
}
.book-left-body h2 {
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #FBF7F0;
  text-wrap: balance;
}
.book-left-body h2 .serif-italic {
  color: var(--gold);
  font-size: 1em;
}
.book-left-body > p {
  margin: 0 0 36px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(251,247,240,.88);
  max-width: 460px;
}
.book-left-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.book-left-items li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.book-left-ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(251,247,240,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FBF7F0;
  flex-shrink: 0;
}
.book-left-items h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #FBF7F0;
  letter-spacing: -0.005em;
}
.book-left-items li p {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(251,247,240,.72);
}

/* ─── Right side ─── */
.book-right {
  overflow-y: auto;
  background: var(--paper);
  padding: 56px clamp(40px, 5vw, 80px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.book-right::-webkit-scrollbar { width: 8px; }
.book-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 4px; }

.book-form { max-width: 540px; }

.book-step + .book-step { margin-top: 36px; }

.book-step-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--ink);
}
.book-step-title .num {
  color: var(--ink);
  font-weight: 500;
}

.book-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.book-month {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.book-month-nav { display: flex; gap: 4px; }
.book-nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.book-nav-btn:hover:not(:disabled) { background: var(--bg-soft); color: var(--gold-deep); }
.book-nav-btn:disabled { opacity: .25; pointer-events: none; }

.book-cal { }
.book-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.book-dow span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--muted);
  padding: 6px 0;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.book-day {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1 'Manrope', sans-serif;
  height: 44px;
  border-radius: 50%;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.book-day:hover:not(:disabled) {
  background: var(--bg-soft);
  color: var(--gold-deep);
}
.book-day.out { color: rgba(0,0,0,0); pointer-events: none; }
.book-day.past, .book-day.dis { color: rgba(22,21,19,.28); pointer-events: none; }
.book-day.today { color: var(--gold-deep); font-weight: 600; }
.book-day.sel {
  background: var(--gold);
  color: #FBF7F0;
  font-weight: 600;
}
.book-day.sel:hover { background: var(--gold-deep); color: #FBF7F0; }

/* dark palette tweaks */
html[data-palette="sombre"] .book-day.out { color: transparent; }
html[data-palette="sombre"] .book-day.past, html[data-palette="sombre"] .book-day.dis { color: rgba(241,236,226,.25); }

/* ─── Slots ─── */
.book-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.book-slot {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 500 14px/1 'Manrope', sans-serif;
  padding: 14px 10px;
  border-radius: 10px;
  cursor: default;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.book-slot:hover:not(:disabled) { border-color: var(--gold); }
.book-slot.sel {
  background: var(--gold);
  border-color: var(--gold);
  color: #FBF7F0;
}
.book-slot:disabled { opacity: .35; pointer-events: none; }

.book-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ─── Form inputs ─── */
.book-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.book-input {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 400 14.5px/1.4 'Manrope', sans-serif;
  padding: 14px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.book-input::placeholder { color: var(--muted); }
.book-input:focus {
  border-color: var(--gold);
  background: var(--bg-soft);
  box-shadow: 0 0 0 4px rgba(184,153,104,.12);
}
.book-full { display: block; }

.book-confirm {
  appearance: none;
  border: 0;
  margin-top: 20px;
  background: var(--ink);
  color: var(--bg);
  font: 500 14.5px/1 'Manrope', sans-serif;
  letter-spacing: 0.005em;
  padding: 18px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: default;
  width: 100%;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
}
.book-confirm:hover:not(:disabled) {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.book-confirm:disabled { opacity: .35; pointer-events: none; }
.book-confirm .arrow-bubble {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}
.book-confirm:hover .arrow-bubble { transform: rotate(-45deg); }

.book-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ─── Confirmed view ─── */
.book-confirmed {
  max-width: 460px;
  margin: 60px auto 0;
  text-align: center;
}
.book-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.book-check svg { width: 26px; height: 26px; }
.book-confirmed h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.book-confirmed-sub {
  margin: 0 0 30px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.book-summary {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 22px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.book-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.book-summary-lbl {
  color: var(--muted);
  letter-spacing: 0.005em;
}
.book-summary-val {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 980px) {
  .book-shell { grid-template-columns: 1fr; overflow-y: auto; }
  .book-left { min-height: 240px; }
  .book-right { padding: 32px 24px; }
  .book-row-2 { grid-template-columns: 1fr; }
  .book-slots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .shell { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .cards-wrap { min-height: 520px; margin-top: 12px; }
  .side-label { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 24px 0; }
  .stat { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 6px; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat-ico { width: 44px; height: 44px; }
  .stat-num { font-size: 26px; }
  .stat-lbl { font-size: 11.5px; line-height: 1.3; }
  .nav { gap: 16px; padding: 20px 0 8px; }
  .nav-links { gap: 26px; }
}

/* Tablet / small: wrap nav links onto their own row */
@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 14px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .cards-wrap { min-height: 440px; }
}

/* Phones */
@media (max-width: 460px) {
  .shell { padding: 0 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .cta-pill { padding: 10px 16px; font-size: 13px; }
  .cta-pill .arrow { display: none; }
  .cards-wrap { min-height: 380px; }
  .proj-modal-card figcaption h3 { font-size: 22px; }
  .stats { gap: 4px; }
  .stat { padding: 0 3px; }
  .stat-ico { width: 38px; height: 38px; }
  .stat-num { font-size: 22px; }
  .stat-lbl { font-size: 10.5px; }
}

/* ─── Project preview modal ─────────────────────────────────────── */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 2.5vw;
  background: rgba(20, 17, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pmFade 0.28s ease;
}
@keyframes pmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.proj-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(251, 247, 240, 0.28);
  background: rgba(251, 247, 240, 0.12);
  color: #FBF7F0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.proj-modal-close:hover {
  background: rgba(251, 247, 240, 0.22);
  transform: rotate(90deg);
}
.proj-modal-card {
  margin: 0;
  max-width: min(1440px, 100%);
  width: 100%;
  background: var(--paper, #FBF7F0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 110px -30px rgba(20, 17, 12, 0.55);
  animation: pmRise 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes pmRise {
  from { transform: translateY(14px) scale(0.985); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.proj-modal-img-wrap {
  position: relative;
  width: 100%;
  /* Crop the top of the source image (browser chrome) by using an
     aspect-ratio shorter than the source and object-position: bottom. */
  aspect-ratio: 1448 / 1041;
  overflow: hidden;
  background: var(--paper, #FBF7F0);
}
.proj-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.proj-modal-card figcaption {
  padding: 22px 30px 26px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line, rgba(40, 32, 20, 0.08));
}
.proj-modal-card figcaption h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink, #28201A);
  font-weight: 500;
}
.proj-modal-card figcaption p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #7A6D5B);
}
@media (max-width: 720px) {
  .proj-modal { padding: 4vh 4vw; }
  .proj-modal-card figcaption { padding: 18px 20px 22px; flex-direction: column; gap: 4px; }
  .proj-modal-card figcaption h3 { font-size: 24px; }
}

/* Tall full-page screenshot: scroll the page inside a fixed-height frame */
.proj-modal-card--tall {
  max-width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.proj-modal-card--tall .proj-modal-img-wrap {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.proj-modal-card--tall .proj-modal-img {
  height: auto;
  object-fit: unset;
}
