/* Rockport Tickets — Bunkhouse-inspired (Edmund + Inter)
   Headline + buttons: Edmund (Tobias Saul, dafont free) — tall bold rounded caps.
   Body: Inter (Söhne substitute).
   Muted teal #527F84 ties to REC without copying the bright #2EA5A4. */

/* Self-hosted Edmund font (free for personal use, by Tobias Saul) */
@font-face {
  font-family: 'Edmund';
  src: url('/fonts/Edmund-Free.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Buttershine Serif — high-contrast didone display serif, dafont free-for-personal-use,
   by Letterflow. Scarlett-chosen display font for hero + section headings (2026-05-26). */
@font-face {
  font-family: 'Buttershine Serif';
  src: url('/fonts/Buttershine-Serif.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Casa Costera palette — LOCKED to the 7 colors from the brand PDF.
     Do not introduce any other colors (no baby blue, no off-palette tints). */
  --terracotta: #A8453A;   /* primary swatch (reference) */
  --brick:      #1F3D47;   /* deep teal-navy — buttons + step circles */
  --brick-dark: #0E2A33;   /* darker teal — hover */
  --oxblood:    #6B1F1A;   /* deep accent */
  --teal:       #527F84;   /* muted coastal — REC tie-in */
  --teal-dark:  #3A5F64;
  --teal-navy:  #1F3D47;   /* dark navy-teal for hero — deeper than muted */
  --sage:       #8B9456;
  --ochre:      #C99518;
  --ochre-dark: #A37811;
  --paper:      #F4ECDE;   /* cream paper bg */
  --paper-warm: #EDE6D1;   /* lighter tan — softer feel, matches old-brand reference */
  --ink:        #1A1611;   /* charcoal */
  --ink-soft:   #4A3F2F;
  --muted:      #8A7B66;
  --line:       #DDD2BC;
  --shadow:     0 2px 8px rgba(26, 22, 17, 0.06);
  --shadow-lg:  0 12px 32px rgba(26, 22, 17, 0.10);
  --radius:     6px;
}

* { box-sizing: border-box; }
html {
  /* Reserve space for scrollbar so the layout never shifts when it appears/disappears
     — this is the standard fix for "content drifts right when scrollbar toggles" */
  scrollbar-gutter: stable;
}
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* belt-and-suspenders: never let any rogue element force horizontal scroll */
}
/* Sticky-footer pattern: body is a flex column, main grows to fill, footer
   sits at the bottom of the viewport even on short pages. */
body { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
/* Logged-in / inside pages get breathing room around content. Landing page
   manages its own padding (full-width hero, full-width sections) — reset there.
   We center via .page wrapper (used in dashboard, analytics, events list, etc.)
   AND fall back to padding on main so older / un-wrapped pages still center. */
main {
  display: block;
  width: 100%;
  flex: 1 0 auto;       /* fill remaining vertical space so footer hugs bottom */
}
.footer { flex-shrink: 0; }
.page {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 56px;
  box-sizing: border-box;
}
body.landing main { padding: 0; }
body.landing .page { max-width: none; padding: 0; }
@media (max-width: 1100px) {
  .page { padding: 28px 36px; }
}
@media (max-width: 700px) {
  .page { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .page { padding: 16px 14px; }
}

/* Hierarchy:
   - Italiana mixed-case = display moments (hero h1, section h2, brand mark)
   - Inter SemiBold uppercase = small headings, eyebrows, bullet titles (Bunkhouse "SUSTAINABILITY")
   - Inter = body
   - Inter on buttons (not Italiana — too delicate for CTAs) */
h1, h2 {
  font-family: 'Buttershine Serif', Georgia, serif;
  color: var(--ink);
  margin: 0 0 14px 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 44px; line-height: 1.1; }
/* Sub-headings use Inter for readability */
h3, h4 {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  margin: 0 0 12px 0;
  font-weight: 600;
  text-transform: uppercase;
}
h3 { font-size: 13px; letter-spacing: 0.18em; }
h4 { font-size: 12px; letter-spacing: 0.18em; }

a { color: var(--terracotta); text-decoration: none; font-weight: 500; }
a:hover { color: var(--oxblood); text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 32px 24px; }
.container-medium { max-width: 920px; margin: 0 auto; padding: 32px 24px; }

/* Top nav (logged-in) — dark teal banner with white text and terracotta accent strip.
   Wraps gracefully so it never forces horizontal overflow at narrow widths. */
.topnav {
  background: #173542; color: #ffffff;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 18px;
  border-bottom: 2px solid var(--terracotta);
}
.topnav .brand {
  color: #ffffff; font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 400; font-size: 26px; text-decoration: none;
  letter-spacing: 0.01em; text-transform: none;
  white-space: nowrap;
}
.topnav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.topnav-links a {
  color: rgba(255, 255, 255, 0.88); font-weight: 500; font-size: 13px;
  padding: 6px 0; letter-spacing: 0.3px;
  white-space: nowrap;
}
.topnav-links a:hover { color: #ffffff; text-decoration: none; }
.topnav-links a.btn-primary {
  background: #C25A3F; color: #ffffff;
  padding: 8px 16px; border-radius: 0; font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Inter', -apple-system, sans-serif;
  white-space: nowrap;
}
.topnav-links a.btn-primary:hover { background: #A8493B; color: #ffffff; }
.topnav .link {
  background: none; border: 0; color: rgba(255, 255, 255, 0.88);
  font: inherit; cursor: pointer; padding: 6px 0;
  white-space: nowrap;
}
.topnav .link:hover { color: #ffffff; }
@media (max-width: 700px) {
  .topnav { padding: 12px 18px; gap: 10px 14px; }
  .topnav .brand { font-size: 22px; }
  .topnav-links { gap: 8px 14px; }
  .topnav-links a { font-size: 12px; }
}
@media (max-width: 420px) {
  .topnav-links a.btn-primary { padding: 7px 12px; font-size: 11px; letter-spacing: 0.1em; }
}

/* Buttons — Edmund tall bold rounded caps; muted-glow hover */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 0;
  font-weight: 600; font-size: 13px; cursor: pointer; border: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.25s ease;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Inter', -apple-system, sans-serif;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #C25A3F; color: #ffffff; }
.btn-primary:hover {
  background: #A8493B; color: #ffffff; text-decoration: none;
  box-shadow: 0 6px 24px rgba(194, 90, 63, 0.30);  /* terracotta glow */
}
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover {
  background: var(--ink); color: var(--paper); text-decoration: none;
  box-shadow: 0 6px 24px rgba(26, 22, 17, 0.22);
}
.btn-teal { background: var(--teal); color: var(--paper); }
.btn-teal:hover {
  background: var(--teal-dark); color: var(--paper); text-decoration: none;
  box-shadow: 0 6px 24px rgba(82, 127, 132, 0.30);   /* muted teal glow */
}
.btn-danger { background: transparent; color: var(--oxblood); border: 1px solid var(--oxblood); }
.btn-danger:hover {
  background: var(--oxblood); color: var(--paper); text-decoration: none;
  box-shadow: 0 6px 24px rgba(107, 31, 26, 0.25);
}
.btn-large { padding: 13px 30px; font-size: 15px; }

/* Compact buttons that adapt to mobile (used for action buttons next to page titles
   like "Download CSV" on /analytics). Default = full label; mobile = icon + short. */
.btn-compact .short-label { display: none; }
.btn-compact .full-label { display: inline; }
@media (max-width: 700px) {
  .btn-compact {
    padding: 8px 14px; font-size: 11px;
    letter-spacing: 0.10em;
  }
  .btn-compact .full-label { display: none; }
  .btn-compact .short-label { display: inline; }
}

/* Hero CTA — slightly stronger glow because it sits against the dark photo */
.hero .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(31, 61, 71, 0.60);
}

/* Forms */
form .field { margin-bottom: 16px; }
form label {
  display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px;
}
form input[type=text], form input[type=email], form input[type=password],
form input[type=number], form input[type=datetime-local], form input[type=url],
form textarea, form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: white;
  color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus {
  outline: 0; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(168, 69, 58, 0.12);
}
form textarea { min-height: 120px; resize: vertical; }
form .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Password field with eye-icon toggle (every login/signup gets this) */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 18px;
  color: var(--muted); padding: 6px 8px; line-height: 1;
}
.password-toggle:hover { color: var(--ink); }

/* Remember me + Forgot password link */
.remember-me {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft);
  margin: 0 0 12px 0; cursor: pointer;
}
.remember-me input { margin: 0; width: auto; }
.forgot-link {
  display: block; text-align: right;
  font-size: 13px; margin: -4px 0 16px 0;
}

/* Cards */
.card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

/* Stat grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
/* Dashboard 2-column layout (Your events / Recent sales). Stacks under 900px
   so Recent sales never gets cropped off the right edge on tablets/phones. */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);  /* minmax(0, ...) lets cols shrink below content min-width so .table-scroll can take over instead of overflowing the page */
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.stat {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; border-top: 3px solid var(--terracotta);
}
.stat:nth-child(2) { border-top-color: var(--teal); }
.stat:nth-child(3) { border-top-color: var(--ochre); }
.stat:nth-child(4) { border-top-color: var(--sage); }
.stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); font-weight: 600;
}
.stat-value {
  font-size: 32px; font-weight: 600; color: var(--ink);
  margin-top: 8px; font-family: 'Inter', sans-serif; line-height: 1.0;
  letter-spacing: -0.01em;
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: 'Inter', sans-serif; }

/* Table — wrapped in .table-scroll (added automatically by footer.ejs) so wide
   tables get a horizontal scrollbar inside their container instead of pushing
   the whole page wider than the viewport. */
.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px 0;
  border-radius: var(--radius);
}
.table-scroll table.data { margin: 0; width: 100%; table-layout: auto; }
/* Desktop / tablet: normal table behavior. Cells wrap naturally if needed. */
.table-scroll table.data td,
.table-scroll table.data th { white-space: normal; }
.table-scroll table.data .badge { white-space: nowrap; }

/* MOBILE / NARROW (<=1000px): collapse table into stacked LABEL → VALUE cards per row.
   1000px breakpoint covers wide tables (7 cols, like /admin/customers and /admin/hosts)
   so they switch to card layout BEFORE column squeeze crops the right-edge column.
   This is the Eventbrite/Stripe/Substack pattern — much more readable on phones
   than a squeezed multi-column table. Each <td> shows its column header inline
   via the data-label attribute (set in the templates). */
@media (max-width: 1000px) {
  .table-scroll table.data { border: 0; background: transparent; }
  .table-scroll table.data thead { display: none; }   /* header row hidden — labels live on each cell */
  .table-scroll table.data tbody { display: block; }
  .table-scroll table.data tr {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(26, 22, 17, 0.04);
  }
  .table-scroll table.data tr:hover { background: white; }   /* disable desktop row-hover on mobile */
  .table-scroll table.data td {
    display: block;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
  }
  .table-scroll table.data tr td:last-child { border-bottom: 0; }
  .table-scroll table.data td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  /* Cells without a label: don't render the empty pseudo */
  .table-scroll table.data td:not([data-label])::before { content: ''; display: none; }
  /* Tag bubbles inside a stacked cell: allow them to wrap to multiple lines naturally */
  .table-scroll table.data td .tag,
  .table-scroll table.data td .tag-event,
  .table-scroll table.data td .tag-venue,
  .table-scroll table.data td .tag-more { max-width: 100%; }
}

/* Pill / tag (used for venue + event chips in customer tables) */
.tag, .tag-event, .tag-venue, .tag-more {
  text-align: center;          /* center text inside the bubble, even when it wraps to multiple lines */
  vertical-align: middle;
  line-height: 1.25;
}
table.data {
  width: 100%; border-collapse: collapse; background: white;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table.data th, table.data td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.data th {
  background: var(--paper-warm); font-weight: 600; color: var(--ink);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover { background: var(--paper); }

/* Badges */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}
.badge-confirmed { background: rgba(139, 148, 86, 0.18); color: #4A5025; }
.badge-refunded  { background: rgba(107, 31, 26, 0.15); color: var(--oxblood); }
.badge-pending   { background: rgba(201, 149, 24, 0.18); color: var(--ochre-dark); }
.badge-published { background: rgba(82, 127, 132, 0.18); color: var(--teal-dark); }
.badge-draft     { background: rgba(122, 98, 72, 0.15); color: var(--muted); }

/* Footer */
.footer {
  margin-top: 80px; padding: 28px; text-align: center;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--line);
  letter-spacing: 0.5px;
}
.footer a { color: var(--terracotta); }
.footer-links { margin-top: 6px; }
.footer-links a { margin: 0 4px; }

/* ===== Event Planning (admin only) ===== */
.ep-tabs { display:flex; gap:4px; margin: 14px 0 28px; border-bottom: 1px solid var(--line); }
.ep-tab { padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: 14px; }
.ep-tab.is-active { border-bottom-color: var(--terracotta); color: var(--terracotta); }
.ep-tab:hover { color: var(--terracotta); }

.ep-stat-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.ep-stat { display:flex; flex-direction:column; padding: 20px 22px; background:#FAF7F1;
  border:1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  border-top: 3px solid var(--terracotta); }
.ep-stat:nth-child(2) { border-top-color: var(--teal); }
.ep-stat:nth-child(3) { border-top-color: var(--teal-navy); }
.ep-stat:nth-child(4) { border-top-color: var(--gold, #b8860b); }
.ep-stat:hover { background:#F4EFE3; }
.ep-stat-n { font-family: 'Buttershine Serif', Georgia, serif; font-size: 36px; line-height: 1; }
.ep-stat-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.ep-empty { padding: 36px; text-align: center; color: var(--muted); background:#FAF7F1; border-radius: var(--radius); }

.ep-toolbar { display:flex; gap: 14px; align-items: center; margin: 18px 0 22px; }
.ep-search { display:flex; gap: 8px; flex: 1; }
.ep-search input[type=text] { flex: 1; }
.ep-clear { color: var(--muted); font-size: 13px; text-decoration: none; align-self: center; }

.ep-event-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.ep-event-card { display:block; padding: 16px 18px; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.1s; }
.ep-event-card:hover { border-color: var(--terracotta); }
.ep-event-card.is-selected { border-color: var(--terracotta); background: rgba(168,69,58,0.06);
  box-shadow: inset 4px 0 0 var(--terracotta); }
.ep-event-title { font-family: 'Buttershine Serif', Georgia, serif; font-size: 20px; }
.ep-event-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }

.ep-actions-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.ep-action { display:block; padding: 20px; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.ep-action:hover { border-color: var(--terracotta); background:#FAF7F1; }
.ep-action-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.ep-action-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

.ep-directory td { vertical-align: top; }
.ep-directory .muted { color: var(--muted); font-size: 12px; }
.ep-form .ep-row-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ep-form .field .muted { color: var(--muted); font-weight: normal; font-size: 12px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { background:#b53a2c; color:#fff; }
.btn-danger:hover { background:#8c2a1f; }

.ep-images-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.ep-img-tile { position:relative; aspect-ratio: 1; background:#FAF7F1; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.ep-img-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.ep-img-del { position:absolute; top:6px; right:6px; margin:0; }
.ep-img-del button { width:26px; height:26px; border-radius:50%; border:0; background:rgba(0,0,0,0.55); color:#fff; font-size:16px; line-height:1; cursor:pointer; }
.ep-img-del button:hover { background:#b53a2c; }
.ep-img-upload { aspect-ratio: 1; }
.ep-img-upload-label { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; background:#FAF7F1; border:2px dashed var(--line); border-radius: var(--radius); cursor:pointer; text-align:center; padding:12px; }
.ep-img-upload-label:hover { border-color: var(--terracotta); background:#F4EFE3; }
.ep-img-upload-label input { display:none; }

.ep-pr-img-pick { display:grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap:10px; margin-top:10px; }
.ep-pr-img-tile { position:relative; cursor:pointer; border-radius: var(--radius); overflow:hidden; aspect-ratio: 1; border:2px solid transparent; display:block; }
.ep-pr-img-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.ep-pr-img-tile input { position:absolute; top:8px; left:8px; width:20px; height:20px; cursor:pointer; z-index:2; accent-color: var(--terracotta); }
.ep-pr-img-tile:has(input:checked) { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181, 58, 44, 0.15); }

/* Legal pages (Terms, Privacy) - long-form readable content */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  line-height: 1.7;
}
.legal-page h1 { margin-top: 0; }
.legal-page h2 { margin-top: 36px; }
.legal-page h3 { margin-top: 22px; font-size: 18px; }
.legal-page .legal-last-updated { color: var(--muted); margin-top: -4px; margin-bottom: 28px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(107, 31, 26, 0.10); color: var(--oxblood); }
.alert-info  { background: rgba(82, 127, 132, 0.12); color: var(--teal-dark); }
.alert-success { background: rgba(139, 148, 86, 0.15); color: #4A5025; }

/* ===== Landing page ===== */
.landing { padding: 0; background: #ffffff; }

/* Top bar with the Rockport Tickets logo — constrained to same 1100px column as sections,
   so the logo aligns with where the content centers (not the page's far-left edge) */
.landing-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.landing-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-logo {
  color: var(--teal);
  font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  text-transform: none;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
}
.landing-logo:hover { color: var(--teal-dark); text-decoration: none; }

/* Sign-in pill — sits top-right of the landing topbar.
   Desktop: outlined teal pill with icon + text.
   Mobile (<=560px): collapses to icon-only circle so it never crowds the logo. */
.landing-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 14px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.landing-login:hover {
  background: var(--teal);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(82, 127, 132, 0.30);
}
.landing-login:active { transform: translateY(1px); }
.landing-login:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.landing-login-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.landing-login-text { display: inline; }

@media (max-width: 560px) {
  .landing-topbar-inner { padding: 16px 18px; gap: 12px; }
  .landing-logo { font-size: 26px; }
  .landing-login {
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }
  .landing-login-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
  }
  .landing-login-icon { width: 20px; height: 20px; }
}

/* Hero — full-bleed photo with dark overlay, Bunkhouse San Cristóbal style */
.hero {
  /* Navy-teal gradient banner (no photo) — matches Scarlett's old-brand reference. */
  background: linear-gradient(180deg, #173542 0%, #23545E 55%, #2E6A75 100%);
  color: var(--paper);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero > * { position: relative; }
.hero h1 {
  margin: 0 auto 22px; max-width: 820px;
  font-family: 'Buttershine Serif', Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  font-size: 56px;
}
.hero h1 .line-1 {
  display: inline;
  color: #ffffff;
  font-size: inherit;
}
.hero h1 .accent {
  /* legacy class — kept for any older markup, identical to line-2 */
  color: #E5DFCC;
}
.hero .sub {
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px; margin: 0 auto 32px; line-height: 1.55;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}
/* Hero CTA — vermillion with a thin white border (Bunkhouse "BOOK NOW" treatment) */
.hero .btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.85);
}

/* Default sections (How It Works, Ready to Sell) — pure white */
.section { padding: 90px 24px; max-width: 1100px; margin: 0 auto; background: #ffffff; }
.section h2 {
  font-size: 48px; text-align: center; margin-bottom: 18px;
  color: var(--teal); font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 400; letter-spacing: 0; text-transform: none;
  position: relative;
}
/* Fine editorial divider under every section h2 */
.section h2::after {
  content: '';
  display: block;
  width: 60px; height: 1px;
  background: var(--ochre);
  margin: 22px auto 0;
}
.section h2 .accent {
  font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 400; color: var(--teal); text-transform: none;
}
.section .section-sub {
  text-align: center; max-width: 600px; margin: 0 auto 64px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px; color: var(--ink-soft);
  line-height: 1.6;
}

/* "Why us" — Muted Tan #E5DFCC from San Cristóbal palette (page bg stays white) */
.section.alt-bg {
  background: #E5DFCC;
  max-width: none;
}
.section.alt-bg > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #C25A3F; color: #ffffff;
  border: none;
  font-weight: 700; font-size: 22px; margin-bottom: 26px;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1;
}
.step h3 {
  margin-bottom: 14px; color: var(--ink); font-size: 19px;
  font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 700;
  text-transform: none; letter-spacing: 0;
}
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ===== Why us - 2-column with card slider ===== */
.why-us-section { padding: 90px 24px; }
.why-us-section.section.alt-bg > * { max-width: 1100px; }
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;       /* left group (heading + text) vertically centered against the slider card */
}
/* Specificity bumped to override .section h2 + .section h2 .accent rules */
.section .why-us-heading,
.why-us-heading {
  font-family: 'Buttershine Serif', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);          /* solid black/ink - NOT teal */
  text-align: center;         /* centered within the LEFT column */
  margin: 0 0 36px 0;
  letter-spacing: 0;
  line-height: 1.1;
}
.section .why-us-heading::after,
.why-us-heading::after { content: none; display: none; }   /* kill the global underline divider */
.section .why-us-heading .accent,
.why-us-heading .accent { color: var(--ink); }              /* keep 'us' the same black, no teal accent */
.why-block { margin-bottom: 28px; }
.why-block:last-child { margin-bottom: 0; }
.why-block h3 {
  font-family: 'Buttershine Serif', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 8px 0;
}
.why-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* The slider card (image + dots + caption) */
.preview-slider { width: 100%; }
.preview-card {
  width: 100%;
  filter:
    drop-shadow(0 1px 2px rgba(26, 22, 17, 0.05))
    drop-shadow(0 8px 16px rgba(26, 22, 17, 0.10));
  line-height: 0;
}
.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 0;
  transition: opacity 0.25s ease;
}
.preview-dots {
  display: flex; justify-content: center; gap: 8px;
  margin: 18px 0 8px;
}
.preview-dot {
  width: 9px; height: 9px; padding: 0; border: 0;
  border-radius: 50%;
  background: rgba(26, 22, 17, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.preview-dot:hover { background: rgba(26, 22, 17, 0.35); }
.preview-dot.is-active {
  background: var(--terracotta);
  transform: scale(1.15);
}
.preview-dot:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.preview-caption {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}

/* Mobile: stack columns. Order in DOM is already Why us heading -> text -> card,
   so the natural document flow gives the right stacking. */
@media (max-width: 800px) {
  .why-us-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-us-heading { font-size: 36px; margin-bottom: 24px; }
  .why-us-section { padding: 60px 20px; }
}

@media (max-width: 700px) {
  h1 { font-size: 38px; }
  .hero { padding: 80px 24px 90px; }
  .hero h1 { font-size: 46px; }
  .hero .sub { font-size: 18px; }
  .section { padding: 60px 24px; }
  .section h2 { font-size: 32px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  form .row { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 24px 16px; }
}
