/* =========================================================================
   STAY E14 — STYLES
   ========================================================================= */

:root {
  --ink: #1c2027;
  --paper: #faf9f5;
  --mist: #e7e3dc;
  --stone: #b9b2a6;
  --timber: #a97c50;
  --timber-dark: #7c5836;
  --wharf: #14314f;
  --wharf-light: #2c4e70;
  --max-width: 1400px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  line-height: 1.1;
  font-weight: 500;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--wharf); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wharf); outline-offset: 3px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ---------- Eyebrow / signature label ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--timber-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--timber-dark);
}
.eyebrow.on-dark { color: var(--timber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--wharf); color: var(--paper); }
.btn-primary:hover { background: var(--wharf-light); }
.btn-secondary { border-color: rgba(28,32,39,0.2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(250,249,245,0.4); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header / nav ---------- */
/* Default: solid/light background with dark text — used on every inner
   page, where there's no dark hero image behind the header. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 0;
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,32,39,0.08);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.brand em { color: var(--wharf); font-style: normal; font-weight: 700; }
.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { opacity: 0.7; }
.nav-cta { display: none; }
.nav-toggle {
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Transparent hero variant — homepage only. Floats light-text over the
   dark hero photo until the page is scrolled, then matches every other
   page's solid/dark-text header. */
.site-header--transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--transparent .brand,
.site-header--transparent .nav-links,
.site-header--transparent .nav-toggle {
  color: var(--paper);
}
.site-header--transparent.is-scrolled {
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,32,39,0.08);
}
.site-header--transparent.is-scrolled .brand,
.site-header--transparent.is-scrolled .nav-links,
.site-header--transparent.is-scrolled .nav-toggle {
  color: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 60;
  padding: 32px;
  display: none;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu-top .brand { color: var(--paper); }
.mobile-menu-links {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Fraunces', serif;
  font-size: 28px;
}
.mobile-menu .btn { margin-top: auto; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,32,39,0.85), rgba(28,32,39,0.15) 55%, rgba(28,32,39,0.35));
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  max-width: 720px;
  margin-top: 20px;
}
.hero p.lead {
  color: rgba(250,249,245,0.85);
  max-width: 540px;
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 160px 0 64px;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 640px; }
.page-hero p { margin-top: 24px; max-width: 560px; opacity: 0.7; line-height: 1.6; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section.tone-mist { background: var(--mist); }
.section.tone-ink { background: var(--ink); color: var(--paper); }
.section.tone-ink .eyebrow { color: var(--timber); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { margin-top: 16px; opacity: 0.7; line-height: 1.6; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card svg, .feature-card .icon { color: var(--timber-dark); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; }

.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 12px 20px;
  border: 1px solid rgba(28,32,39,0.15);
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ---------- Images / placeholders ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo-frame { overflow: hidden; background: var(--mist); }
.h-sm { height: 190px; }
.h-md { height: 260px; }
.h-lg { height: 340px; }
.h-xl { height: 420px; }

/* ---------- Highlight list ---------- */
.highlight-item {
  border-left: 2px solid var(--timber);
  padding-left: 20px;
  margin-bottom: 24px;
}
.highlight-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.highlight-item p { font-size: 0.9rem; opacity: 0.7; }

/* ---------- Amenity list ---------- */
.amenity-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .amenity-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .amenity-list { grid-template-columns: repeat(3, 1fr); } }
.amenity-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.amenity-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--timber-dark);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.9rem; }
table.compare th, table.compare td { padding: 16px; text-align: center; border-bottom: 1px solid rgba(28,32,39,0.1); }
table.compare th:first-child, table.compare td:first-child { text-align: left; padding-left: 0; }
table.compare thead th { font-weight: 400; opacity: 0.6; }
table.compare thead th.highlight { font-family: 'Fraunces', serif; font-size: 1rem; opacity: 1; }
table.compare td.highlight { background: rgba(20,49,79,0.05); }
.check { color: var(--wharf); font-weight: 600; }
.dash { opacity: 0.3; }
.note-text { font-size: 0.8rem; opacity: 0.6; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid rgba(28,32,39,0.1); }
.faq-item { border-bottom: 1px solid rgba(28,32,39,0.1); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
}
.faq-question .plus { transition: transform 0.3s var(--ease); flex-shrink: 0; font-size: 1.3rem; }
.faq-item.is-open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}
.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: 24px; }

/* ---------- Testimonials ---------- */
.testimonial-slider { max-width: 680px; position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; }
.testimonial-slide blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  margin: 24px 0;
}
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.85rem; opacity: 0.6; }
.testimonial-controls { display: flex; gap: 8px; }
.testimonial-controls button {
  width: 40px; height: 40px;
  border: 1px solid rgba(28,32,39,0.2);
  display: flex; align-items: center; justify-content: center;
}
.testimonial-controls button:hover { background: var(--ink); color: var(--paper); }
.placeholder-flag { margin-top: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 24px 32px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid rgba(28,32,39,0.25);
  background: transparent;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wharf); }
.form-note { display: none; font-size: 0.85rem; margin-top: 16px; opacity: 0.7; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.gallery-filter-btn {
  padding: 8px 18px;
  border: 1px solid rgba(28,32,39,0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { cursor: pointer; overflow: hidden; height: 280px; background: var(--mist); }
.gallery-item img { transition: transform 0.4s var(--ease); width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(28,32,39,0.97);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-caption { color: rgba(250,249,245,0.7); text-align: center; margin-top: 16px; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--paper);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) {
  .lightbox-prev { left: 40px; }
  .lightbox-next { right: 40px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,249,245,0.8); }
.footer-top { padding-top: 64px; padding-bottom: 64px; display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--paper); margin-bottom: 12px; }
.footer-desc { max-width: 340px; font-size: 0.9rem; line-height: 1.6; }
.footer-heading { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--paper); }
.footer-contact li { margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(250,249,245,0.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: rgba(250,249,245,0.5);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--wharf);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: background-color 0.3s var(--ease);
}
.whatsapp-float:hover { background: var(--wharf-light); }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }
.center-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .center-split { flex-direction: row; align-items: center; }
}
