/* Kitchen kit on Giulietta & Giulio: bridges the kit's variables to the site's palette and styles the
   places where the components sit. The kit assumes dark pages; here it lives in the ink panels, the
   header and the hero, so every host is dark. Loaded after the kit stylesheets and styles.css. */
:root {
  --accent: var(--gold);
  --radius: var(--radius-m);
  --muted-color: rgba(251, 248, 242, 0.72);
  --glass-border: rgba(251, 248, 242, 0.18);
  --font-main: var(--font-body);
}

/* ---------- magnet: primary buttons lean toward the cursor, a light follows it ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--lean-x, 0px), var(--lean-y, 0px), 0);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background var(--duration-fast),
    color var(--duration-fast), border-color var(--duration-fast);
}
.btn-primary:active { transform: translate3d(var(--lean-x, 0px), var(--lean-y, 0px), 0) scale(0.98); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(251, 248, 242, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.btn-primary:hover::after, .btn-primary[data-near="true"]::after { opacity: 1; }
/* The hero consult button is centred with left/right auto margins; keep its lean but not the scale. */
.sticky-cta .btn-primary { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-primary::after { transition: none; }
}

/* ---------- tactile: the language toggles sit on a firm edge, the active one held down ---------- */
.lang-switch .pre-tactile.pre-tactile {
  --tactile-face: rgba(18, 43, 54, 0.78);
  --tactile-face-hover: rgba(18, 43, 54, 0.92);
  --tactile-edge: rgba(6, 18, 26, 0.95);
  --tactile-rim: rgba(251, 248, 242, 0.22);
  --tactile-text: var(--ivory);
  --tactile-highlight: rgba(251, 248, 242, 0.16);
  --tactile-ring: var(--gold);
  opacity: 1;
  margin-bottom: 3px;
}
.lang-switch .pre-tactile.pre-tactile[aria-pressed="true"] {
  --tactile-face: var(--gold);
  --tactile-face-hover: var(--lagoon-bright);
  --tactile-edge: #8a5f14;
  --tactile-text: var(--ink);
  --tactile-highlight: rgba(255, 255, 255, 0.45);
  --tactile-ring: var(--ivory);
  border-color: transparent;
}
.lang-switch { gap: 0.3rem; }

/* ---------- foil: the direct-booking badge ---------- */
.direct-badge-row { margin: -0.4rem 0 1.4rem; }
.direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 154, 43, 0.55);
  background: rgba(13, 30, 38, 0.65);
  color: var(--ivory);
  font: 500 0.78rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.direct-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.25);
}
.direct-badge .pre-foil__layer { opacity: 0.55; mix-blend-mode: screen; }

/* ---------- scroll fade: the comparison table slides on small screens ---------- */
.compare-wrap { padding-bottom: 0.2rem; }

/* ---------- signature: the family's sign-off ---------- */
.family-sign { margin-top: 2.2rem; max-width: 18rem; }
.family-signature { color: var(--lagoon); width: min(240px, 60vw); }
.family-sign-name {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- logo trace: the gulf scene loading ---------- */
.scene-loader {
  position: fixed;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vh, 1.6rem);
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 248, 242, 0.18);
  background: rgba(10, 16, 32, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  font: 500 0.68rem var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.scene-loader[hidden] { display: none; }
.scene-loader.is-done { opacity: 0; }
.scene-loader-text { color: rgba(251, 248, 242, 0.8); }
@media (max-width: 760px) {
  .scene-loader { bottom: 4.2rem; right: 0.9rem; }
  .scene-loader-text { display: none; }
}

/* ---------- receipt: the booking-request summary ---------- */
.form-receipt { margin: 0.4rem 0 1.2rem; }
.form-receipt .pre-rp { --rp-paper: var(--paper); --rp-ink: var(--ink); --radius: 12px; }
.form-receipt .pre-rp__brand { font-family: var(--font-display); letter-spacing: 0.06em; }
.form-receipt .pre-rp__note { font-weight: 600; }

/* ---------- hold to confirm: withdrawing the request ---------- */
.form-ready-reset.pre-hold {
  --hold-tint: #f2b8a0;
  --hold-text: #f2b8a0;
  --hold-border: rgba(242, 184, 160, 0.45);
  --hold-surface: rgba(242, 184, 160, 0.08);
  --hold-surface-hover: rgba(242, 184, 160, 0.14);
  --radius: 999px;
  min-height: 46px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-ready-hint { font-size: 0.78rem; color: rgba(251, 248, 242, 0.6); margin: 0.6rem 0 0; }

/* ---------- dynamic button: the send buttons morph once the request is open ---------- */
.form-actions .pre-dyn[data-tone="success"] { background: #2f7d5b; border-color: transparent; }

/* ---------- feedback section (#avis) ---------- */
.feedback-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 900px) { .feedback-grid { grid-template-columns: 1fr; } }
.feedback-form { margin: 0; }
.feedback-form .field p { margin: 0 0 0.35rem; }
.feedback-form .field-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.72);
}
.feedback-form .pre-dropzone {
  max-width: none;
  min-height: 13rem;
  --dz-surface: rgba(13, 30, 38, 0.72);
  --dz-raised: rgba(18, 43, 54, 0.9);
  --dz-hover: rgba(30, 60, 74, 0.95);
  --dz-line: var(--line-light);
  --radius: 10px;
}
.feedback-form .form-actions { align-items: center; }
.feedback-status { font-size: 0.85rem; color: rgba(251, 248, 242, 0.72); margin: 0; }
.feedback-status[data-tone="error"] { color: #f2b8a0; }
.feedback-status[data-tone="success"] { color: var(--lagoon-bright); }
.feedback-form.is-closed .pre-dropzone, .feedback-form.is-closed #feedback-drop { display: none; }
.feedback-form.is-closed .field, .feedback-form.is-closed .form-actions .btn { opacity: 0.5; }
