/* =========================================================================
   Bill Rentalls — design system
   Editorial, slow, warm. Serif headlines, generous whitespace, soft palette.
   ========================================================================= */

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

:root {
  --c-bg:        #f6f1e8;
  --c-bg-warm:   #ede5d4;
  --c-paper:     #fbf8f1;
  --c-ink:       #1d1b18;
  --c-ink-soft:  #423c34;
  --c-muted:     #7a7064;
  --c-line:      rgba(29, 27, 24, 0.12);
  --c-line-soft: rgba(29, 27, 24, 0.06);
  --c-accent:    #8a4f31;     /* warm cognac */
  --c-accent-2:  #4f5b3a;     /* deep olive */
  --c-cream:     #f1ead9;

  --serif:  "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max:        1240px;
  --max-narrow:  860px;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;

  --t-fast: 200ms cubic-bezier(.4,0,.2,1);
  --t-med:  420ms cubic-bezier(.22,.61,.36,1);
  --t-slow: 800ms cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-ink); }

::selection { background: var(--c-accent); color: var(--c-paper); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.08; font-weight: 300; }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.25; font-weight: 500; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; font-family: var(--sans); letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-muted);
  display: inline-block;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--c-ink-soft);
  font-style: italic;
}

/* ---------- Layout primitives ---------- */

main { display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: var(--max-narrow); }

section.block {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--c-line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
}

.site-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.site-logo__mark {
  font-style: italic;
  color: var(--c-accent);
}
.site-logo:hover { color: var(--c-accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--c-ink); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--c-accent);
}

.site-nav a.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1.25rem;
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast);
}
.site-nav__cta__arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--t-fast);
}
.site-nav a.site-nav__cta:hover {
  background: var(--c-accent);
  color: var(--c-paper);
}
.site-nav a.site-nav__cta:hover .site-nav__cta__arrow {
  transform: translateX(3px);
}
/* Active-link underline rule should not apply to the CTA pill */
.site-nav a.site-nav__cta.is-active::after { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 44px;
  padding: 0 0.85rem;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.lang-switch:hover { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }

/* Mobile nav: hide secondary links, keep CTA + lang */
@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav { gap: 0.7rem; }
  .site-header__inner { padding: 0.85rem 1.1rem; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn--primary:hover { background: var(--c-accent); color: var(--c-paper); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }

.btn--cream {
  background: var(--c-paper);
  color: var(--c-ink);
}
.btn--cream:hover { background: var(--c-ink); color: var(--c-paper); }

.btn-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(4px); }

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

.site-footer {
  background: var(--c-ink);
  color: #cdc6b7;
  padding: 5rem 0 3rem;
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h4 {
  color: #f1ead9;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer__brand h2 {
  color: #f1ead9;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
}
.site-footer__brand p {
  color: #b3aa98;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.55;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a {
  color: #cdc6b7;
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--c-paper); }
.site-footer__rights {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #8e8676;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Forms (booking) ---------- */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field--full { grid-column: 1 / -1; }
.form__field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form input,
.form select,
.form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(29, 27, 24, 0.06);
}
.form__submit { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.form__fineprint { font-size: 0.85rem; color: var(--c-muted); }
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 14, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
  animation: fadeIn var(--t-med);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Common figure caption / meta ---------- */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.meta-row li { display: inline-flex; align-items: center; gap: 0.5rem; }
.meta-row li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
}
