/* ============================================================
   La Plantera — Landing page stylesheet
   Design tokens come from the La Plantera design system (tokens/).
   Component rules below (.lp-btn, .lp-tag, .lp-quote) reproduce the
   design-system React components 1:1 in plain CSS.
   ============================================================ */
@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/base.css");

html { scroll-behavior: smooth; }
a { color: var(--olive-dark); text-decoration: none; }
a:hover { color: var(--olive); }

/* ---------- Layout shell ---------- */
.sheet { width: 100%; background: var(--cream); }
.wrap { max-width: 1180px; margin: 0 auto; }
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 96px) clamp(16px, 5vw, 32px) 0;
}
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split--top { align-items: flex-start; gap: 48px; }
.col { flex: 1 1 420px; min-width: 280px; }
.col--media { flex: 1 1 380px; min-width: 280px; }

/* ---------- Type ---------- */
.h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(30px, 6vw, 44px); line-height: 1.15;
  color: var(--ink); letter-spacing: -0.02em; margin: 14px 0 0;
}
.h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 4vw, 32px); color: var(--ink); margin: 12px 0 20px;
}
.body {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.75;
  color: var(--ink-soft); margin: 0 0 18px; max-width: 480px;
}
.body--narrow { max-width: 460px; }
.body--wide { max-width: 560px; }
.body:last-child { margin-bottom: 0; }
.italic {
  font-family: var(--font-serif); font-style: italic; font-size: 19px;
  color: var(--olive-dark); margin: 0 0 18px; max-width: 480px;
}
.lead-meta {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--ink-muted); margin: 0 0 40px; max-width: 520px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 240, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-sans); font-weight: 800; font-size: 17px;
  letter-spacing: 0.02em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-sans); font-weight: 400; font-size: 7.5px;
  letter-spacing: 0.36em; color: var(--ink-muted); white-space: nowrap;
}
.header__panel { display: contents; }
.nav-toggle { display: none; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; row-gap: 8px; }
.nav a {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
}
.nav a:hover { color: var(--olive); }
.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button {
  padding: 6px 12px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--ink-muted);
}
.lang button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { background: #F8F8EB; border-bottom: 1px solid var(--line); }
.hero__copy {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 10vw, 96px) clamp(16px, 5vw, 32px) 0;
}
.hero__cta { margin-top: 30px; display: flex; justify-content: center; }
.hero__media { max-width: 1180px; margin: 48px auto 0; padding: 0 32px 72px; }

/* ---------- Media slots (baked crop from the design) ---------- */
.slot { position: relative; overflow: hidden; background: var(--olive-tint); width: 100%; }
.slot img {
  position: absolute; left: var(--crop-x, 50%); top: var(--crop-y, 50%);
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  max-width: none; transform: translate(-50%, -50%) scale(var(--crop-scale, 1));
  transition: transform var(--dur-slow) var(--ease-standard);
}
.slot--hero { height: clamp(240px, 44vw, 480px); }
.slot--tall { height: clamp(280px, 44vw, 520px); }
.slot--mid { height: clamp(240px, 38vw, 420px); }
.slot--short { height: clamp(220px, 32vw, 280px); }
.slot--wide { height: clamp(260px, 40vw, 460px); }
.slot--tile { height: 220px; }
.slot--blog { height: clamp(160px, 22vw, 220px); margin-bottom: 16px; }

/* ---------- Design system: Button ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-none);
  cursor: pointer; line-height: 1;
  padding: 13px 26px; font-size: 12px; letter-spacing: 0.2em;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.lp-btn--sm { padding: 8px 16px; font-size: 11px; letter-spacing: 0.18em; }
.lp-btn--lg { padding: 17px 38px; font-size: 13px; letter-spacing: 0.22em; }
.lp-btn--primary { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.lp-btn--primary:hover { background: var(--olive-dark); }
.lp-btn--secondary { background: transparent; color: var(--olive-dark); border-color: var(--olive); }
.lp-btn--secondary:hover { background: var(--olive); color: var(--cream); }
.lp-btn--editorial {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  font-family: var(--font-serif); font-style: italic; font-size: 18px;
  color: var(--olive-dark); border-bottom: 1px solid var(--olive);
  line-height: 1.3; text-transform: none; letter-spacing: 0;
}

/* ---------- Design system: Tag ---------- */
.lp-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; color: var(--olive);
}
.lp-tag svg { flex-shrink: 0; }

/* ---------- Design system: QuoteBox ---------- */
.lp-quote {
  background: var(--cream-soft); border-left: 2px solid var(--olive);
  padding: var(--space-5) var(--space-6); margin: 0; max-width: 460px;
}
.lp-quote blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: 21px; line-height: 1.5; color: var(--olive-dark);
}

/* ---------- Tiles / blog ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.tile { flex: 1 1 260px; min-width: 220px; }
.posts { display: flex; flex-wrap: wrap; gap: 28px; }
.post { flex: 1 1 300px; min-width: 240px; }
.post__meta {
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--olive); font-weight: 600;
}
.post__title {
  font-family: var(--font-serif); font-weight: 500; font-size: 21px;
  color: var(--ink); margin: 8px 0;
}
.post__excerpt {
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6;
  color: var(--ink-muted); margin: 0 0 12px;
}

/* ---------- Closing band ---------- */
.closing {
  background: var(--olive-tint); margin-top: clamp(48px, 10vw, 96px);
  padding: clamp(48px, 10vw, 80px) clamp(16px, 5vw, 32px); text-align: center;
}
.closing__mark {
  font-family: var(--font-serif); font-style: italic; font-size: 32px;
  color: var(--olive-dark); margin-bottom: 16px;
}
.closing p {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.7;
  color: var(--ink-soft); margin: 0 0 4px;
}
.closing p.closing__address { margin-bottom: 24px; }
.closing__italic {
  font-family: var(--font-serif); font-style: italic; font-size: 19px;
  color: var(--olive-dark); margin: 0;
}

/* ---------- Footer ---------- */
.footer { background: var(--olive-dark); color: var(--cream); }
.footer__inner {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(32px, 8vw, 56px) clamp(16px, 5vw, 32px) 40px;
  display: flex; flex-wrap: wrap; gap: 40px;
}
.footer__brand { flex: 1 1 220px; min-width: 200px; }
.footer__mark { font-family: var(--font-serif); font-style: italic; font-size: 26px; margin-bottom: 14px; }
.footer__tagline {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.6;
  color: var(--text-on-dark-muted); margin: 0; max-width: 280px;
}
.footer__col { flex: 1 1 160px; min-width: 140px; }
.footer__col--visit { min-width: 160px; }
.footer__head {
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.footer__item {
  font-family: var(--font-sans); font-size: 13px;
  color: var(--text-on-dark-muted); margin-bottom: 10px;
}
.footer__legal {
  border-top: 1px solid rgba(245, 240, 225, 0.16); padding: 18px 32px;
  text-align: center; font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.1em; color: var(--text-on-dark-muted);
}

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(26, 26, 26, 0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal__panel {
  background: var(--cream-soft); width: 100%; max-width: 440px;
  padding: clamp(24px, 6vw, 40px); position: relative;
  max-height: 88vh; overflow-y: auto;
}
.modal__panel--booking { max-width: 480px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; background: none; border: 0;
  font-size: 20px; color: var(--ink-muted); cursor: pointer; line-height: 1;
}
.modal__title {
  font-family: var(--font-serif); font-weight: 500; font-size: 24px;
  color: var(--ink); margin: 0 0 20px;
}
.modal__title--tight { margin-bottom: 10px; }
.modal__body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
.modal__sub {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.55;
  color: var(--ink-muted); margin: 0 0 22px;
}
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea {
  border: 1px solid var(--line); background: var(--cream); padding: 11px 12px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--ink); outline: none;
}
.form textarea { resize: vertical; }
.form .lp-btn { margin-top: 6px; align-self: flex-start; }
.form .lp-btn:disabled { background: var(--olive-light); border-color: var(--olive-light); cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--status-danger); }
.field__error {
  font-family: var(--font-sans); font-size: 12px; line-height: 1.45;
  color: var(--status-danger); margin: 0;
}
.field__error[hidden] { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__alert {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.55;
  color: var(--status-danger); margin: 0;
  border-left: 2px solid var(--status-danger); padding: 2px 0 2px 12px;
}
.form__alert[hidden] { display: none; }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 20px; }
.day {
  padding: 8px 0; border: 1px solid var(--line); background: var(--cream);
  color: var(--ink); cursor: pointer; font-family: var(--font-sans); text-align: center;
}
.day[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--cream); }
.day__wd { display: block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.day__num { display: block; font-family: var(--font-serif); font-size: 16px; }
.times { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.time {
  padding: 9px 16px; border: 1px solid var(--line); background: var(--cream);
  color: var(--ink); cursor: pointer; font-family: var(--font-sans); font-size: 13px;
}
.time[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--cream); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) clamp(16px, 5vw, 32px) clamp(48px, 8vw, 80px);
}
.legal__back {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--olive);
}
.legal h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 5vw, 40px);
  color: var(--ink); margin: 18px 0 8px; letter-spacing: -0.02em;
}
.legal__meta {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700; color: var(--olive-dark);
  margin: 40px 0 14px;
}
.legal p, .legal li {
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.75;
  color: var(--ink-soft); margin: 0 0 14px; max-width: none;
}
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--olive-dark); border-bottom: 1px solid var(--olive); }
.legal table {
  width: 100%; border-collapse: collapse; margin: 0 0 18px;
  font-family: var(--font-sans); font-size: 13.5px;
}
.legal th, .legal td {
  border: 1px solid var(--line); padding: 10px 12px;
  text-align: left; vertical-align: top; color: var(--ink-soft);
}
.legal th { background: var(--olive-tint); color: var(--ink); font-weight: 600; }
.legal__pending {
  background: var(--cream-soft); border-left: 2px solid var(--gold);
  padding: 14px 18px; margin: 0 0 28px;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
}

/* ---------- Consent ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--olive); }
.consent label {
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--ink-muted);
}
.consent a { color: var(--olive-dark); border-bottom: 1px solid var(--olive); }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1080px) {
  .split { gap: 40px; }
  .hero__media { padding: 0 clamp(16px, 5vw, 32px) 56px; margin-top: 40px; }
}

/* ---------- Responsive: collapsed header ---------- */
@media (max-width: 900px) {
  .header__inner { flex-wrap: nowrap; padding: 14px clamp(16px, 5vw, 32px); }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 7px; letter-spacing: 0.3em; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; flex-shrink: 0;
    background: transparent; border: 1px solid var(--line);
    color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor;
  }
  .nav-toggle__bars { position: relative; transition: background var(--dur-fast); }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ''; position: absolute; left: 0;
    transition: transform var(--dur-base) var(--ease-standard);
  }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .header__panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 4px clamp(16px, 5vw, 32px) 24px;
    box-shadow: var(--shadow-md);
  }
  .header.is-open .header__panel { display: block; }
  .header__panel .nav { flex-direction: column; gap: 0; }
  .header__panel .nav a {
    padding: 15px 0; font-size: 13px; border-bottom: 1px solid var(--line);
  }
  .header__panel .header__actions {
    justify-content: space-between; margin-top: 20px; gap: 12px;
  }
}

/* ---------- Responsive: phone and tablet imagery ---------- */
@media (max-width: 900px) {
  .slot img {
    position: static; transform: none;
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    max-width: 100%; object-fit: cover; object-position: 50% 40%;
  }
  .slot--hero { height: clamp(300px, 72vw, 420px); }
  .slot--tall { height: clamp(300px, 76vw, 420px); }
  .slot--mid, .slot--wide { height: clamp(260px, 64vw, 380px); }
  .slot--short { height: clamp(220px, 56vw, 320px); }
  .slot--tile { height: clamp(200px, 52vw, 260px); }
}

/* ---------- Responsive: phone ---------- */
@media (max-width: 760px) {
  .hero__cta .lp-btn--lg { padding: 15px 24px; font-size: 12px; letter-spacing: 0.16em; }
  .split { gap: 32px; }
  .lp-quote { padding: var(--space-4) var(--space-5); }
  .lp-quote blockquote { font-size: 19px; }
  .closing__mark { font-size: 27px; }
  .footer__inner { gap: 28px; }
  .footer__legal { padding: 18px clamp(16px, 5vw, 32px); }
  .calendar { gap: 4px; }
  .day { padding: 7px 0; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal__panel { max-height: 92vh; }
}
