/* ============================================================
   Better Booking — "Premium Varm" theme
   Edit the variables below to retheme the whole site.
   ============================================================ */

:root {
  /* Palette */
  --bg:          #faf4ec;
  --cream-card:  #f3ebe0;
  --cream-hover: #f7f0e7;
  --cream-icon:  #e9dccd;
  --panel:       #fffdf9;

  --plum:        #5b3758;
  --plum-dark:   #3d2540;
  --coral:       #f26a4b;
  --green:       #2eae7d;

  --ink:         #2c1d29;   /* headings */
  --text:        #5f5159;   /* body */
  --text-soft:   #6b5d66;
  --text-muted:  #8a7a84;

  /* Type */
  --serif:  'Newsreader', Georgia, serif;
  --sans:   'Plus Jakarta Sans', system-ui, sans-serif;
  --display:'Sora', var(--sans);

  /* Layout */
  --maxw: 1280px;
  --pad: 80px;
  --radius: 20px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Decorative background ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
}
.glow--plum {
  top: -180px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(91,55,88,.10), transparent 70%);
}
.glow--coral {
  top: 280px; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242,106,75,.10), transparent 70%);
}
.watermark {
  position: absolute;
  opacity: .05;
}
.watermark--1 { top: 120px;  right: -260px; width: 880px; transform: rotate(-8deg); }
.watermark--2 { top: 1640px; left: -320px;  width: 820px; opacity: .045; transform: rotate(6deg); }
.watermark--3 { top: 2360px; right: -220px; width: 640px; transform: rotate(-4deg); }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--plum); }
.display--md { font-size: 42px; line-height: 1.08; }
.display--sm { font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
.display--light { color: #fff; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--coral);
  margin-bottom: 12px;
}
.eyebrow--light { color: #f0a78f; }

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text);
  max-width: 480px;
}

.section-head { max-width: 580px; margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 32px;
  cursor: pointer;
  border: 0;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
}
.btn--sm { font-size: 15px; padding: 11px 24px; border-radius: 30px; }
.btn--block { width: 100%; padding: 15px; }

.btn .icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--sm .icon { width: 16px; height: 16px; }

.btn--plum {
  background: var(--plum); color: #fff;
  box-shadow: 0 12px 26px rgba(91,55,88,.26);
}
.btn--plum:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 36px -10px rgba(91,55,88,.45);
}
.btn--coral {
  background: var(--coral); color: #fff;
  box-shadow: 0 12px 26px -8px rgba(242,106,75,.4);
}
.btn--coral:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 36px -10px rgba(242,106,75,.55);
}
.btn--ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn--ghost:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255,255,255,.18);
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  border-bottom: 1px solid rgba(91,55,88,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.nav__links a:hover { color: var(--plum); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  padding-block: 80px 96px;
}
.hero__copy .display { font-size: 58px; margin-bottom: 22px; }
.hero__copy .lead { margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.hero__badges {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: #7a6c74;
}
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot--green { background: var(--green); }
.dot--plum  { background: var(--plum); }
.dot--coral { background: var(--coral); }

/* Tilting device */
.hero__device {
  position: relative;
  perspective: 1400px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.device__frame {
  background: var(--ink);
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(44,29,41,.4);
  transform: rotateY(-7deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  will-change: transform;
}
.device__screen { background: #fffdf9; border-radius: 18px; overflow: hidden; }

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px -8px rgba(44,29,41,.22);
}
.float-card--occupancy {
  bottom: -22px; left: -26px;
  padding: 13px 17px;
  display: flex; align-items: center; gap: 11px;
}
.float-card__icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #eafaf3;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.float-card__title { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.float-card__sub { font-size: 11px; color: var(--text-muted); }
.float-card--fee {
  top: 36px; right: -22px;
  background: var(--coral); color: #fff;
  padding: 12px 15px;
  box-shadow: 0 16px 32px -10px rgba(242,106,75,.5);
  transform: rotate(4deg);
}
.float-card--fee .float-card__sub { color: #fff; opacity: .9; }
.float-card__big { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; }

/* ---------- Features ---------- */
.features { padding-block: 40px 110px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--cream-card);
  border: 1px solid rgba(91,55,88,.1);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 22px -16px rgba(44,29,41,.25);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 50px -20px rgba(91,55,88,.42);
  border-color: rgba(242,106,75,.55);
  background: var(--cream-hover);
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--cream-icon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg {
  width: 27px; height: 27px;
  fill: none; stroke: var(--plum); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 9px;
  color: var(--ink);
}
.feature-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-soft); }

/* ---------- Quote ---------- */
.quote { padding-block: 24px 100px; text-align: center; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  color: var(--plum);
  margin: 0 auto;
  max-width: 780px;
}
.quote cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 18px;
  font-weight: 600;
}

/* ---------- Occupancy highlight ---------- */
.occupancy {
  position: relative;
  margin-bottom: 116px;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}
.occupancy::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 760px; height: 520px;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(216,120,110,.55) 0%, rgba(216,120,110,0) 100%);
}
.occupancy__copy, .occupancy__panel { position: relative; }
.occupancy__text { font-size: 16px; line-height: 1.6; color: #e0d3de; max-width: 420px; margin-top: 18px; }
.occupancy .display--sm { margin-top: 0; }

.occupancy__panel {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.occupancy__panel-title { font-size: 13px; color: #c9b8c6; margin-bottom: 16px; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar__label { display: flex; justify-content: space-between; font-size: 13px; color: #e0d3de; margin-bottom: 6px; }
.bar__track { height: 9px; border-radius: 6px; background: rgba(255,255,255,.12); }
.bar__fill { height: 100%; border-radius: 6px; }
.occupancy__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #c9b8c6;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 11px 13px;
}

/* ---------- Pricing ---------- */
.pricing { padding-bottom: 120px; text-align: center; }
.pricing__intro { font-size: 17px; color: var(--text-soft); margin: 12px auto 40px; max-width: 440px; }
.price-card {
  max-width: 440px;
  margin-inline: auto;
  background: var(--panel);
  border: 1.5px solid rgba(91,55,88,.14);
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 30px 60px -24px rgba(91,55,88,.28);
}
.price-card__tag {
  font-size: 13px; font-weight: 600;
  color: var(--coral);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.price-card__amount { font-family: var(--serif); font-weight: 500; font-size: 58px; color: var(--ink); line-height: 1; }
.price-card__period { font-size: 14px; color: var(--text-muted); margin: 6px 0 24px; }
.price-card__list {
  border-top: 1.5px dashed rgba(91,55,88,.2);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  margin-bottom: 28px;
}
.price-card__list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: #3d3340; }
.check { color: var(--green); font-weight: 700; }

/* ---------- Demo / contact form ---------- */
.demo { padding-bottom: 120px; scroll-margin-top: 90px; }
.demo__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.85fr; /* copy · form (center) · price */
  gap: 40px;
  align-items: center;
}
.demo__copy .display { margin-bottom: 16px; }
.demo__text { font-size: 15px; line-height: 1.6; color: var(--text-soft); max-width: 340px; }
.demo__text + .demo__text { margin-top: 16px; }

/* price / subscription column */
.demo__pricing { scroll-margin-top: 90px; }
.demo__pricing .eyebrow { margin-bottom: 10px; }
.demo__pricing-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 20px;
}
.demo__pricing .price-card__list { margin-bottom: 0; }
.demo__pricing-rule {
  border: 0;
  border-top: 1.5px dashed rgba(91,55,88,.2);
  margin: 24px 0;
}
.demo__pricing-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.demo-form {
  background: var(--panel);
  border: 1.5px solid rgba(91,55,88,.14);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 30px 60px -24px rgba(91,55,88,.28);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-field { display: flex; flex-direction: column; gap: 7px; }
.demo-field > label { font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-field__hint { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.demo-form input,
.demo-form select,
.demo-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #faf6f0;
  border: 1.5px solid rgba(91,55,88,.16);
  border-radius: 14px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-form textarea { resize: vertical; min-height: 110px; }
.demo-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b3758' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* time picker: clock icon instead of the chevron */
.demo-form #demo-tid {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b3758' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7.5V12l3 1.6'/></svg>");
  background-position: right 13px center;
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(91,55,88,.12);
}
.demo-form .btn { margin-top: 4px; }

/* honeypot — visually hidden, kept in the a11y/layout flow for bots */
.demo-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.demo-form__status {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 12px;
}
.demo-form__status.is-ok    { color: #1f7a57; background: rgba(46,174,125,.12); }
.demo-form__status.is-error { color: #b23b36; background: rgba(217,83,79,.12); }

/* Popup datepicker */
.datepicker { position: relative; }
.datepicker__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  font-family: var(--sans); font-size: 15px; color: var(--ink); text-align: left;
  background: #faf6f0; border: 1.5px solid rgba(91,55,88,.16);
  border-radius: 14px; padding: 13px 15px; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.datepicker__trigger svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: #5b3758; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.datepicker__trigger:focus-visible { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(91,55,88,.12); }
.datepicker__value { color: var(--text-muted); }
.datepicker__value.is-filled { color: var(--ink); }
.datepicker.is-invalid .datepicker__trigger { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.12); }

.datepicker__pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  width: 300px; max-width: calc(100vw - 44px);
  background: #fff; border: 1.5px solid rgba(91,55,88,.14);
  border-radius: 18px; padding: 16px;
  box-shadow: 0 24px 50px -18px rgba(44,29,41,.35);
}
.datepicker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.datepicker__month { font-weight: 600; font-size: 15px; color: var(--ink); text-transform: capitalize; }
.datepicker__nav {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; background: #f3ebe0; border-radius: 9px; cursor: pointer; color: var(--plum);
  transition: background .2s ease;
}
.datepicker__nav:hover:not(:disabled) { background: #e9dccd; }
.datepicker__nav:disabled { opacity: .35; cursor: not-allowed; }
.datepicker__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.datepicker__weekdays, .datepicker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.datepicker__weekdays { margin-bottom: 6px; }
.datepicker__weekdays span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
.dp-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 9px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
}
.dp-cell--empty { background: transparent; }
.dp-cell--off { color: rgba(51,37,47,.22); cursor: default; }
.dp-cell--on { cursor: pointer; font-weight: 600; transition: background .15s ease, color .15s ease; }
.dp-cell--on:hover { background: #f3ebe0; }
.dp-cell--sel, .dp-cell--sel:hover { background: var(--plum); color: #fff; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--plum);
  padding: 88px var(--pad) 48px;
  overflow: hidden;
}
.footer__glow {
  position: absolute;
  bottom: -212px; left: -640px;
  width: 1280px; height: 425px;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(216,120,110,.55) 0%, rgba(216,120,110,0) 100%);
}
.footer .container { position: relative; padding-inline: 0; }
.footer__cta { text-align: center; max-width: 620px; margin: 0 auto 56px; scroll-margin-top: 110px; }
.footer__cta p { font-size: 17px; color: #e0d3de; margin: 16px 0 28px; }
.footer__cta .hl { color: var(--coral); }
.footer__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: #c9b8c6;
}
.footer__logo { height: 30px; width: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  :root { --pad: 40px; }
  .hero { grid-template-columns: 1fr; gap: 64px; padding-block: 56px 72px; }
  .hero__copy .display { font-size: 46px; }
  .hero__device { max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .occupancy { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .demo__inner { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .demo__copy { text-align: center; }
  .demo__text { margin-inline: auto; }
  .demo-form { width: 100%; max-width: 520px; }
  .demo__pricing { text-align: center; max-width: 440px; width: 100%; }
  .nav__links { display: none; }
}

@media (max-width: 600px) {
  :root { --pad: 22px; }
  .hero__copy .display { font-size: 36px; }
  .display--md, .display--sm { font-size: 30px; }
  .quote p { font-size: 23px; }
  .feature-grid { grid-template-columns: 1fr; }
  .demo-field__row { grid-template-columns: 1fr; }
  .price-card, .footer { padding-left: 22px; padding-right: 22px; }
  .price-card { padding: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .float-card--occupancy { left: 0; }
  .float-card--fee { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn, .feature-card, .device__frame { transition: none; }
  .hero__device { animation: none; }
}
