/* © 2026 BessTech — Gaucho Churrascaria. Tous droits réservés. */
/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --black: #090807;
  --charcoal: #171411;
  --ivory: #f4efe6;
  /* Brand purple (official logo colour) */
  --accent: #9457c4;
  /* Lighter tint for small text on dark backgrounds (WCAG AA) */
  --accent-ink: #b183dc;
  /* Darker tint for text on ivory backgrounds */
  --accent-deep: #6f3a9e;
  --brown: #38251c;

  --ivory-80: rgb(244 239 230 / 0.8);
  --ivory-64: rgb(244 239 230 / 0.66);
  --ivory-40: rgb(244 239 230 / 0.4);
  --line: rgb(244 239 230 / 0.14);
  --line-strong: rgb(244 239 230 / 0.28);
  --accent-line: rgb(148 87 196 / 0.5);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --section: clamp(6rem, 13vw, 12rem);
  --nav-h: 76px;

  --fs-display: clamp(2.6rem, 6.4vw, 6.2rem);
  --fs-hero: clamp(3rem, 9.4vw, 9.6rem);
  --fs-h3: clamp(1.9rem, 3.4vw, 3.2rem);
  --fs-body: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html.menu-open {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
address {
  font-style: normal;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Typography & utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus {
  transform: none;
}
/* SplitText line masks: leave room for accents and descenders */
.split-line-mask {
  padding-top: 0.14em;
  margin-top: -0.14em;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}


/* Placeholder shown when a media file is missing */
.media-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: repeating-linear-gradient(135deg, var(--charcoal) 0 12px, #1d1915 12px 24px);
  color: var(--ivory-64);
  font-size: var(--fs-small);
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--accent-line);
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  --h: 3.5rem;
  --chip: 2.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--h);
  padding: 0 0.5rem 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.btn--plain {
  padding: 0 1.6rem;
  justify-content: center;
}
.btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--chip);
  height: var(--chip);
  border-radius: 50%;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    transform 0.55s var(--ease);
}
.btn__icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.55s var(--ease);
}
.btn:hover .btn__icon {
  transform: translateX(2px);
}
.btn:hover .btn__icon svg {
  transform: rotate(-45deg);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* Accent: brand purple, glowing on hover */
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(148 87 196 / 0.7);
}
.btn--accent .btn__icon {
  background: rgb(255 255 255 / 0.16);
}
.btn--accent:hover {
  background: #a266d4;
  box-shadow: 0 14px 40px -12px rgb(148 87 196 / 0.9);
}
.btn--accent:hover .btn__icon {
  background: #fff;
  color: var(--accent);
}

/* Ghost: frosted glass over photography */
.btn--ghost {
  background: rgb(244 239 230 / 0.06);
  border-color: var(--line-strong);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost .btn__icon {
  background: rgb(244 239 230 / 0.1);
}
.btn--ghost:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--black);
}
.btn--ghost:hover .btn__icon {
  background: var(--black);
  color: var(--ivory);
}

/* Dark: for light (ivory) sections */
.btn--dark {
  background: var(--black);
  color: var(--ivory);
}
.btn--dark .btn__icon {
  background: var(--accent);
  color: #fff;
}
.btn--dark:hover {
  background: var(--accent);
  color: #fff;
}
.btn--dark:hover .btn__icon {
  background: #fff;
  color: var(--accent);
}

.btn--sm {
  --h: 2.75rem;
  --chip: 2rem;
  padding: 0 0.375rem 0 1.15rem;
  font-size: 0.8125rem;
}
.btn--sm.btn--plain {
  padding: 0 1.15rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover {
  background-size: 100% 1px;
}
.link-arrow--sm {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}
.nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    height 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid .nav__bar {
  background: rgb(9 8 7 / 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo img {
  width: 132px;
  height: auto;
}
.nav__links ul {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.75rem);
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-80);
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--ivory);
}
.nav__links a:hover::after,
.nav__links a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__phone {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ivory-80);
}
.nav__phone:hover {
  color: var(--accent-ink);
}
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.45s var(--ease);
}
.nav__toggle span:first-child {
  top: 18px;
}
.nav__toggle span:last-child {
  top: 26px;
}
.nav.is-open .nav__toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav.is-open .nav__toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--black);
  overflow-y: auto;
}
.nav__panel[hidden] {
  display: none;
}
.nav__panel ol li {
  border-bottom: 1px solid var(--line);
  animation: menu-in 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 80ms);
}
.nav__panel ol a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 1.1;
}
.nav__num {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.nav__panel-foot {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  color: var(--ivory-64);
  font-size: var(--fs-small);
  animation: menu-in 0.7s 0.4s var(--ease) both;
}
.nav__panel-phone {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ivory);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__panel ol li,
  .nav__panel-foot {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .nav__phone {
    display: none;
  }
}
@media (max-width: 1023.98px) {
  :root {
    --nav-h: 68px;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__actions {
    gap: 0.5rem;
  }
  .nav__logo img {
    width: 112px;
  }
  .nav.is-open .nav__bar {
    background: var(--black);
  }
}
@media (max-width: 380px) {
  .nav__actions .btn--sm {
    display: none;
  }
}
.btn__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgb(9 8 7 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 34px -12px rgb(0 0 0 / 0.7),
    inset 0 0 0 1px rgb(244 239 230 / 0.12);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.45s var(--ease),
    visibility 0.45s,
    transform 0.45s var(--ease),
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--accent);
  box-shadow: 0 16px 40px -12px rgb(148 87 196 / 0.9);
}
.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top__track,
.to-top__progress {
  fill: none;
  stroke-width: 2;
}
.to-top__track {
  stroke: rgb(244 239 230 / 0.14);
}
.to-top__progress {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke 0.35s var(--ease);
}
.to-top:hover .to-top__progress {
  stroke: #fff;
}
.to-top__arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease);
}
.to-top:hover .to-top__arrow {
  transform: translateY(-3px);
}
.menu-open .to-top {
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top__arrow {
    transition: none;
  }
}
