/* ---------------------------------------------------------------------------
   Casa Andrela — brand layer.

   Register: refined, editorial, unhurried. This is the "custom" tier concept —
   the one that shows the studio can art-direct rather than assemble. It carries
   the most bespoke structure of the four: an overlapping booking bar, rooms laid
   out as full-width editorial rows instead of a card grid, and a pull-quote
   section that breaks the page rhythm on purpose.

   Commercially it is also the most valuable shape to be able to show. A
   guesthouse taking direct bookings keeps the 15-18% an OTA takes, and that
   argument is the entire reason this kind of site gets commissioned.
   --------------------------------------------------------------------------- */

:root {
  --bg:          #fbf8f3;
  --bg-alt:      #f1e9db;
  --surface:     #ffffff;
  --ink:         #17273a;
  --ink-soft:    #405467;
  --ink-mute:    #7d8a97;
  --line:        #e1d8c8;
  --accent:      #1d5064;
  --accent-ink:  #fbf8f3;
  --accent-soft: #e2ebed;
  --focus:       #1d5064;

  --ochre:       #bf8a3d;
  --deep:        #12293a;

  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-body:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --display-weight: 500;
  --display-tracking: -0.005em;
  --display-leading: 1.02;

  --btn-radius: 2px;
  --card-radius: 2px;
  --input-radius: 2px;

  --header-h: 84px;
  --container: 1260px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

/* Cormorant runs small and light; it needs a size bump to hold a page. */
h1, h2 { font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-weight: 500; }

.eyebrow {
  color: var(--ochre);
  font-weight: 400;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
}

.lede { font-weight: 300; }

.btn {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  --btn-py: 1.15em;
  --btn-px: 2.1em;
}

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

.site-header { --header-bg: #fbf8f3; --header-line: var(--line); }

.brandmark {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  --hero-size: clamp(3rem, 8vw, 6.2rem);
  --hero-py: 0;
  min-height: clamp(30rem, 48vw, 42rem);   /* vw, never vh — see capture.mjs */
  display: grid;
  align-items: center;
  text-align: center;
  isolation: isolate;
}

.hero__art { position: absolute; inset: 0; z-index: 0; }
.hero__art svg { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(18 41 58 / 0.34) 0%, rgb(18 41 58 / 0.62) 46%, rgb(18 41 58 / 0.5) 100%);
}

.hero__inner { color: #fbf8f3; padding-block: var(--s-3xl) var(--s-2xl); }
.hero h1 { color: #fff; margin-inline: auto; max-width: 14ch; }
.hero .lede { color: #dfe6e6; margin-inline: auto; max-width: 44ch; }
.hero .eyebrow { color: #e0b978; }

/* --- Booking bar ---------------------------------------------------------- */
/* Overlaps the hero so the first thing below the photograph is the one action
   that makes the owner money: a direct booking, not an OTA click-through. */

.booking-bar {
  position: relative;
  z-index: 5;
  margin-block-start: calc(var(--s-2xl) * -1);
  padding: var(--s-m) clamp(1.2rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: var(--s-s);
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  align-items: end;
}

.booking-bar .field > label {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.booking-bar .field > input,
.booking-bar .field > select {
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  padding-inline: 0;
  padding-block: 0.5em;
  font-size: var(--step-0);
}

.booking-bar .field > input:focus,
.booking-bar .field > select:focus { box-shadow: none; border-block-end-color: var(--accent); }

.booking-bar .btn { align-self: end; }

.booking-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.booking-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* --- Rooms as editorial rows ---------------------------------------------- */

.room {
  display: grid;
  gap: var(--s-xl);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  padding-block: var(--s-xl);
  border-block-end: 1px solid var(--line);
}

.room:last-of-type { border-block-end: 0; }

.room:nth-of-type(even) > .room__art { order: -1; }

@media (max-width: 840px) {
  .room:nth-of-type(even) > .room__art { order: 0; }
}

.room h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }

.room__rate {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: var(--step-2);
}

.room__rate small {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.room__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-m);
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.room__specs li { display: flex; align-items: center; gap: 0.5em; }
.room__specs li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ochre); }

/* --- Pull quote ----------------------------------------------------------- */

.pullquote {
  background: var(--deep);
  color: #eee6d8;
  text-align: center;
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 300;
  line-height: 1.28;
  font-style: italic;
  max-width: 24ch;
  margin-inline: auto;
  color: #fff;
}

.pullquote figcaption {
  margin-block-start: var(--s-m);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9a684;
}

/* --- Amenities ------------------------------------------------------------ */

.amenities {
  display: grid;
  gap: var(--s-s) var(--s-l);
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  list-style: none;
  padding: 0;
}

.amenities li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  padding-block: var(--s-2xs);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.amenities svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-block-start: 0.2em; }

/* --- Nearby --------------------------------------------------------------- */

.nearby { list-style: none; padding: 0; display: grid; }

.nearby li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-s);
  padding-block: var(--s-xs);
  border-block-end: 1px solid var(--line);
}

.nearby b { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; }

.nearby span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }

/* --- Enquiry -------------------------------------------------------------- */

.enquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 3rem);
}

/* --- Gallery -------------------------------------------------------------- */

.scroller { --scroller-item: clamp(260px, 46vw, 420px); }

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

.site-footer { --footer-bg: var(--deep); --footer-ink: #e6ded0; }
.site-footer h3 { font-family: var(--font-body); letter-spacing: 0.2em; }
