/* ==========================================================================
   REGARDO — Base: reset, typography, layout primitives, utilities
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  /* Horizontal-overflow guard lives on the root, not on <body>. Setting
     overflow-x on <body> alone forces the paired overflow-y to a used value
     of "auto" per the CSS Overflow spec, which turns <body> into its own
     scroll container and silently breaks native #hash anchor scrolling and
     the scroll-padding-top above (see the venue page section tabs). */
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-normal);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }

img, svg, video, canvas { display: block; max-width: 100%; }

/* Base size for every icon from the Regardo set. Component rules override it. */
.ic { width: 1.15em; height: 1.15em; flex: none; }
img { height: auto; border-style: none; }

a { color: inherit; text-decoration: none; }
a:not([class]) {
  color: var(--ev-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:not([class]):hover { color: var(--ev-800); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-6) 0;
}

::selection { background: var(--ev-200); color: var(--ev-950); }

/* Focus: never removed, only refined. Visible for keyboard, quiet for mouse. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ev-600);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute; left: var(--s-4); top: -60px;
  background: var(--brand); color: var(--brand-on);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  z-index: var(--z-toast);
  font-weight: var(--w-semibold);
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY CLASSES — every text element in the product uses one of these.
   -------------------------------------------------------------------------- */
.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  color: var(--text);
}
.display-xl { font-size: var(--t-display-xl); }
.display-l  { font-size: var(--t-display-l); }
.display-m  { font-size: var(--t-display-m); }

.h1, .h2, .h3, .h4 {
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--text);
}
.h1 { font-size: var(--t-h1); font-weight: var(--w-bold); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.h4 { font-size: var(--t-h4); }

.lede {
  font-size: var(--t-body-l);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}
.body   { font-size: var(--t-body); }
.body-s { font-size: var(--t-body-s); }
.meta {
  font-size: var(--t-meta);
  color: var(--text-muted);
  line-height: 1.45;
}
.caption { font-size: var(--t-caption); color: var(--text-muted); }

.eyebrow {
  font-size: var(--t-micro);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}
.eyebrow--accent { color: var(--clay-600); }
.eyebrow--brand  { color: var(--ev-600); }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.mono { font-family: var(--font-mono); font-size: .9em; letter-spacing: 0; }

.t-secondary { color: var(--text-secondary); }
.t-muted     { color: var(--text-muted); }
.t-brand     { color: var(--ev-700); }
.t-accent    { color: var(--clay-600); }
.t-ok        { color: var(--ok-fg); }
.t-warn      { color: var(--warn-fg); }
.t-err       { color: var(--err-fg); }

.clamp-1, .clamp-2, .clamp-3 {
  display: -webkit-box; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* Long editorial prose (About, Terms, Blog, venue description) */
.prose { max-width: var(--container-read); color: var(--text-secondary); font-size: var(--t-body-l); line-height: var(--lh-relaxed); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--t-h2); color: var(--text); margin-top: var(--s-10); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
.prose h3 { font-size: var(--t-h3); color: var(--text); margin-top: var(--s-8); font-weight: var(--w-semibold); }
.prose ul { padding-left: var(--s-5); list-style: disc; }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--text); font-weight: var(--w-semibold); }

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--read { max-width: calc(var(--container-read) + var(--gutter) * 2); }
.container--flush { padding-inline: 0; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--sunken { background: var(--surface-sunken); }
.section--surface { background: var(--surface); }

.stack > * + * { margin-top: var(--flow, var(--s-4)); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-6 > * + * { margin-top: var(--s-6); }
.stack-8 > * + * { margin-top: var(--s-8); }

.row { display: flex; align-items: center; gap: var(--s-3); }
.row--tight { gap: var(--s-2); }
.row--loose { gap: var(--s-5); }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.row--baseline { align-items: baseline; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1 1 auto; min-width: 0; }
.min0 { min-width: 0; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(var(--col, 280px), 1fr)); }

/* Section header used across all three experiences, with a role-aware feel */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); margin-bottom: var(--s-10);
}
.section-head__title { display: block; }
.section-head__link {
  font-size: var(--t-body-s); font-weight: var(--w-semibold);
  color: var(--ev-700); white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-fast) var(--ease-out), gap var(--d-fast) var(--ease-out);
}
.section-head__link:hover { border-bottom-color: var(--ev-400); gap: var(--s-3); }
.section-head__link svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   SCROLLBARS — quiet, not invisible
   -------------------------------------------------------------------------- */
.scroll-y { overflow-y: auto; overscroll-behavior: contain; }
.scroll-x {
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--n-300); border-radius: var(--r-full);
  border: 3px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--n-400); background-clip: content-box; border: 3px solid transparent; }

/* Horizontal rail used for card carousels on mobile + tablet */
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: var(--rail-col, 280px);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-bottom: var(--s-2);
}
.rail > * { scroll-snap-align: start; }

/* Arrow controls that drive a .rail, parked in the section header */
.carousel-nav { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.carousel-nav__btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.carousel-nav__btn svg { width: 18px; height: 18px; }
.carousel-nav__btn:hover:not([disabled]) { background: var(--ev-700); border-color: var(--ev-700); color: #fff; }
.carousel-nav__btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 767.98px) { .carousel-nav { display: none; } }

/* --------------------------------------------------------------------------
   UTILITIES — a deliberately small set. No utility soup.
   -------------------------------------------------------------------------- */
.hide { display: none !important; }
@media (max-width: 1023.98px) { .hide-below-lg { display: none !important; } }
@media (min-width: 1024px)    { .hide-from-lg  { display: none !important; } }
@media (max-width: 767.98px)  { .hide-below-md { display: none !important; } }
@media (min-width: 768px)     { .hide-from-md  { display: none !important; } }
@media (max-width: 575.98px)  { .hide-below-sm { display: none !important; } }
@media (min-width: 576px)     { .hide-from-sm  { display: none !important; } }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
.relative { position: relative; }
.rounded { border-radius: var(--r-lg); overflow: hidden; }

.sticky-top {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  z-index: var(--z-sticky);
}

/* Reduced-motion global guard */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print — invoices and booking confirmations must print cleanly */
@media print {
  .no-print, .site-header, .site-footer, .app-sidebar, .app-topbar,
  .mobile-nav, .toast-stack, .side-panel, .cmdk { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .container { max-width: none; padding: 0; }
  .card, .panel { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  a[href]::after { content: ""; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE TYPE — composition changes, not just shrinking
   -------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
  :root { --t-display-xl: 3.5rem; --t-display-l: 2.75rem; --section-y: var(--s-16); }
}
@media (max-width: 1023.98px) {
  :root {
    --t-display-xl: 3rem; --t-display-l: 2.375rem; --t-display-m: 2rem;
    --section-y: var(--s-14); --gutter: var(--s-5);
  }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  :root {
    --t-display-xl: 2.5rem; --t-display-l: 2rem; --t-display-m: 1.75rem;
    --t-h1: 1.625rem; --t-h2: 1.3125rem;
    --section-y: var(--s-12); --section-y-tight: var(--s-10);
    --gutter: var(--s-4); --shell-pad: var(--s-4);
  }
  .grid { gap: var(--s-4); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-5); }
}
@media (max-width: 380px) {
  :root { --gutter: var(--s-3); --t-display-xl: 2.125rem; }
}
