/* ==========================================================
   CHALET D — PUBLIC HOLDING PAGE
   Matches the private portal's login / request-access styling.
========================================================== */

:root {
  --font: "Gotham", "Montserrat", Arial, sans-serif;
  --accent: #8C1917;
  --accent-dark: #6F1418;
  --text: #242321;
  --muted: #4f5660;
  --field-border: #d7dbe1;
  --cursor-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='4.2' fill='%238C1917'/%3E%3C/svg%3E") 9 9, auto;
  --cursor-dot-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.2' fill='%238C1917'/%3E%3C/svg%3E") 12 12, auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #2a2522;
  cursor: var(--cursor-dot);
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea,
label {
  cursor: var(--cursor-dot);
}

a:hover,
button:hover,
select:hover,
label:hover {
  cursor: var(--cursor-dot-hover);
}

[hidden] {
  display: none !important;
}

/* ---------- Page + background ---------- */

.holding-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 20px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  isolation: isolate;
}

/* Background photo on its own fixed layer so it always fills the screen,
   however long the form is (works on iPhone too). */
.holding-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("/images/reception_detail.webp");
  background-size: cover;
  background-position: center;
}

/* ---------- Frosted card ---------- */

.holding-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 56px 56px 48px;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.18);

  text-align: center;
}

.holding-logo {
  width: 155px;
  height: auto;
  display: block;
  margin: 0 auto 34px;
}

.view {
  animation: fade-in 0.45s ease both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Welcome screen: title, then "By invitation only" beneath it. */
/* Welcome screen spacing: title → eyebrow 24px, eyebrow → buttons 48px.
   Line-height 1 removes hidden space so the gaps are exactly as set. */
.welcome-title {
  margin: 0 0 24px;
  line-height: 1;
}

.welcome-eyebrow {
  margin: 0 0 48px;
  line-height: 1;
}

.intro {
  max-width: 400px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.actions {
  max-width: 390px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;

  border-radius: 14px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(140, 25, 23, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(140, 25, 23, 0.18);
}

.btn-primary:disabled {
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
}

.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.link-button {
  display: block;
  margin: 6px auto 0;
  padding: 6px 10px;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 15px;
}

.link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------- Form ---------- */

.request-form {
  max-width: 390px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 0 18px;

  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: #ffffff;

  color: var(--text);
  font-family: var(--font);
  font-size: 15px;

  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.request-form input,
.request-form select {
  height: 52px;
}

.request-form textarea {
  min-height: 120px;
  padding-top: 15px;
  padding-bottom: 15px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(140, 25, 23, 0.10);
}

.request-form .invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(140, 25, 23, 0.10);
}

.request-form .btn {
  margin-top: 8px;
}

.phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;

  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: #ffffff;

  font-size: 14px;
  line-height: 1.4;
}

.checkbox.invalid {
  border-color: var(--accent);
}

.request-form .checkbox input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
}

.form-error {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Honeypot — kept off-screen rather than display:none so bots still see it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Language switch (EN · FR) ---------- */

.language-toggle {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.language-toggle button {
  padding: 6px 7px;
  border: none;
  background: transparent;
  color: #8a8780;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}

.language-toggle button + button::before {
  content: "·";
  margin-right: 13px;
  color: #8a8780;
}

.language-toggle button:hover {
  color: var(--text);
}

.language-toggle button.is-active {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Success ---------- */

.success-icon {
  width: 84px;
  height: 84px;
  margin: 8px auto 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.divider {
  width: 80px;
  height: 1px;
  margin: 0 auto 30px;
  background: rgba(36, 35, 33, 0.15);
}

/* ---------- Footer ---------- */

.holding-footer {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  /* Centre the card on phones. The extra top padding balances the
     footer line below, so the card itself (not card + footer) sits
     in the middle of the screen. Taller screens (the form) just scroll. */
  .holding-page {
    padding: 64px 16px 22px;
    justify-content: center;
  }

  .holding-card {
    padding: 38px 24px 34px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .language-toggle {
    top: 14px;
    right: 14px;
  }

  .holding-logo {
    width: 135px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: 26px;
  }

  .intro {
    font-size: 14px;
  }

  .phone-row {
    grid-template-columns: 105px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  .btn { transition: none; }
}
