/* Remy · bar de aperitivos
   Brand palette (from REMY_визуальный стиль.pdf):
   terracota #bd6942 · areia #fcefd3 · blue fantastic #2c3b4d · burning flame #ffb162
   Terracota is the main background; blue is kept as a minor accent. */

:root {
  --blue: #2c3b4d;
  --blue-deep: #233040;
  --areia: #fcefd3;
  --areia-soft: #f6e5c3;
  --terracota: #bd6942;      /* decorative + large type */
  --terracota-ink: #a3532f;  /* small text & buttons (4.8:1 on areia) */
  --terracota-dark: #8a4527;
  --on-terracota: var(--areia);
  --flame: #ffb162;
  --muted: #5a6472;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--terracota);
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  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: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem;
  background: var(--areia); color: var(--blue);
  font: 600 .8rem/1 var(--sans);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--areia);
  outline-offset: 3px;
  border-radius: 2px;
}
.paper :focus-visible, .postcard :focus-visible { outline-color: var(--terracota-ink); }

/* ---------- Type helpers ---------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--areia);
}
.eyebrow--terracota { color: var(--terracota-ink); }
.eyebrow--blue { color: var(--blue); }

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.005em;
  color: var(--blue);
  text-wrap: balance;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.25;
  position: relative;
  display: inline-block;
  padding-bottom: .35em;
}
/* hand-drawn underline, like the logo's descriptor */
.script::after {
  content: "";
  position: absolute;
  left: 4%; right: 0; bottom: .1em;
  height: 1px;
  background: currentColor;
  opacity: .7;
  transform: rotate(-1.6deg);
  transform-origin: left center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--terracota-ink); color: var(--areia); }
.btn--primary:hover { background: var(--terracota-dark); }

.hero .btn--primary { background: var(--areia); color: var(--blue); }
.hero .btn--primary:hover { background: var(--blue); color: var(--areia); }

/* blue accent: outline in brand blue, cream label; fills blue on hover */
.btn--ghost { border: 1.5px solid var(--blue); color: var(--areia); }
.btn--ghost:hover { background: var(--blue); color: var(--areia); border-color: var(--blue); }

.btn--outline { border-color: var(--blue); color: var(--blue); text-transform: none; letter-spacing: .06em; font-size: .85rem; }
.btn--outline:hover { background: var(--blue); color: var(--areia); }

/* ---------- Concave “postcard” corners ---------- */

.postcard-frame {
  --r: 18px;
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) bottom right / 51% 51% no-repeat;
}
.postcard-frame img { width: 100%; height: 100%; object-fit: cover; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--areia);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(189, 105, 66, .95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(252, 239, 211, .22);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: max(.9rem, env(safe-area-inset-top)) var(--gutter) .9rem;
}
.site-header__brand {
  display: block;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled .site-header__brand { opacity: 1; transform: none; pointer-events: auto; }
.site-header__brand img { width: clamp(112px, 14vw, 150px); height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); }
.site-nav__link {
  position: relative;
  padding: .6rem 0;
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: .3rem;
  height: 1px; background: var(--areia);
  transition: right .35s var(--ease);
}
.site-nav__link:hover::after { right: 0; }
.site-nav__link--hide-sm { display: none; }
@media (min-width: 640px) { .site-nav__link--hide-sm { display: inline; } }
.site-nav__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  border-radius: 50%;
  transition: color .3s;
}
.site-nav__icon:hover { color: var(--blue); }

/* ---------- Hero ---------- */
/* Full-width video at the top, fading into the terracotta page; content stacked and centred below. */

.hero {
  position: relative;
  background: var(--terracota);
  color: var(--areia);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: relative;
  width: 100%;
  height: 68vh;
  height: 68svh;
  min-height: 380px;
  max-height: 760px;
  background: var(--terracota);
}
.hero__video, .hero__fallback, .hero__fallback img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
/* never show browser video UI (e.g. the iOS Low Power Mode play button) over the hero */
.hero__video { pointer-events: none; }
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}
.hero__fallback { display: none; }
.no-video .hero__fallback { display: block; }
.no-video .hero__video { display: none; }

/* soft fade: darker at the top for the menu, melting into exact terracotta at the bottom — no hard edge */
.hero__media::after {
  content: "";
  position: absolute; inset: 0 0 -2px; /* overlap the edge by 2px so no sub-pixel line shows */
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(40, 22, 14, .45) 0%,
      rgba(40, 22, 14, 0) 22%,
      rgba(189, 105, 66, 0) 50%,
      rgba(189, 105, 66, .35) 66%,
      rgba(189, 105, 66, .8) 82%,
      var(--terracota) 97%);
}

/* stamp in the upper-right corner, clear of the bartender in the centre */
.hero__stamp {
  position: absolute;
  z-index: 1;
  top: calc(env(safe-area-inset-top) + 6.5rem);
  right: max(.5rem, calc(var(--gutter) * .5));
  width: clamp(88px, 22vw, 150px); height: auto;
  filter: drop-shadow(0 0 10px rgba(30, 15, 8, .45));
  /* rotates in place: only the angle changes, position stays fixed */
  animation: stamp-spin 48s linear infinite;
  will-change: transform;
}
@keyframes stamp-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: -3.5rem auto 0;   /* tuck slightly into the faded bottom of the video */
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
/* blue accent: the label sits on a small brand-blue tag (cream on blue ≈ 10:1),
   since blue text directly on terracotta is only 2.86:1 */
.hero .eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: .45em .8em .4em 1.08em; /* extra left padding balances the letter-spacing */
  background: var(--blue);
  color: var(--areia);
  border-radius: 2px;
}
.hero__title { margin: 0 0 1.25rem; }
.hero__title img { width: min(82vw, 440px); height: auto; margin-inline: auto; }
.hero__tagline {
  max-width: 17em;
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: .005em;
  text-wrap: balance;
  color: var(--areia);
}
.hero__lead {
  max-width: 38ch;
  margin-bottom: 1.9rem;
  font-size: clamp(1.2rem, 2.2vw, 1.32rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--areia);
}
.hero__actions { justify-content: center; }
.hero__hours {
  margin: 0;
  font: 600 .74rem/1.9 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--areia);
}

/* Laptop / desktop: the complete hero fits the first screen. The video fills the screen and fades
   into terracotta; the content sits in that transition. Sizes scale with viewport height (vh). */
@media (min-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__media {
    position: absolute;
    inset: 0;
    height: auto; min-height: 0; max-height: none;
  }
  .hero__video, .hero__fallback, .hero__fallback img { object-position: 50% 62%; }
  .hero__media::after {
    background:
      linear-gradient(180deg,
        rgba(40, 22, 14, .45) 0%,
        rgba(40, 22, 14, 0) 16%,
        rgba(189, 105, 66, 0) 30%,
        rgba(189, 105, 66, .5) 42%,
        rgba(189, 105, 66, .88) 52%,
        var(--terracota) 62%);
  }
  .hero__stamp {
    top: calc(7.25rem + 5vh);
    right: max(1.5rem, calc((100vw - var(--max)) / 2 - 3.75rem));
    width: clamp(110px, 18vh, 150px);
  }
  .hero__content {
    margin: 0 auto;
    max-width: 760px;
    padding-bottom: clamp(1.5rem, 4.5vh, 3.5rem);
  }
  .hero .eyebrow { margin-bottom: clamp(.7rem, 1.8vh, 1.3rem); }
  .hero__title { margin-bottom: clamp(.4rem, 1.2vh, 1rem); }
  .hero__title img { width: auto; height: clamp(84px, 14vh, 134px); }
  .hero__tagline {
    max-width: none;
    margin-bottom: clamp(.5rem, 1.4vh, 1rem);
    font-size: clamp(1.5rem, 3.5vh, 2.3rem);
  }
  .hero__lead {
    max-width: 54ch;
    margin-bottom: clamp(1rem, 2.6vh, 1.75rem);
    font-size: clamp(1.08rem, 2.3vh, 1.3rem);
    line-height: 1.5;
  }
  .hero__actions { margin-bottom: clamp(.9rem, 2.4vh, 1.5rem); }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }

/* ---------- La casa ---------- */

.paper {
  position: relative;
  background-color: var(--areia);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.casa { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem); overflow-x: clip; }
.casa__intro {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}
.casa__text p { max-width: 36ch; }
.casa__script {
  max-width: 22em;
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  text-wrap: balance;
  color: var(--blue);
}
.casa__figure { position: relative; margin: 0; }
.casa__figure .postcard-frame { --r: 22px; aspect-ratio: 918 / 772; }
/* cream stamp kept fully inside the photo, top-left over the blurred bar lights, clear of the cocktail */
.casa__stamp {
  position: absolute;
  left: clamp(.75rem, 2.5vw, 1.5rem); top: clamp(.75rem, 2.5vw, 1.5rem);
  width: clamp(92px, 13vw, 140px); height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 8px rgba(30, 15, 8, .45));
}

@media (min-width: 860px) {
  .casa__intro { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 6rem); }
}

.cards {
  display: grid;
  gap: 2.75rem;
  margin: 0 auto;
  list-style: none;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
}
.card { margin: 0; }
.card__img { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; background: var(--areia-soft); }
.card__img img { transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__title {
  margin: 0 0 .5rem;
  font: 600 .8rem/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracota-ink);
}
.card p { margin: 0; font-size: 1.15rem; line-height: 1.55; max-width: 32ch; }

/* ---------- Visitanos ---------- */

.visit {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background: var(--terracota);
}

/* reverse side of a simple postcard: straight corners, thin inner frame, soft paper and shadow */
.postcard {
  position: relative;
  display: grid;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.75rem);
  background-color: var(--areia);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--blue);
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(60, 25, 10, .18),
    0 22px 44px -22px rgba(60, 25, 10, .5);
}
.postcard::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(189, 105, 66, .45);
  border-radius: 2px;
  pointer-events: none;
}

.postcard__left { padding-bottom: 2.25rem; border-bottom: 1px solid rgba(44, 59, 77, .2); }
.postcard .section-title { padding-right: 84px; }
/* same clean italic serif feel as "Bar de Aperitivos" */
.postcard__script {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  color: var(--terracota-ink);
}
.postcard__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.postcard__right { position: relative; padding-top: 2.25rem; }
.postcard__stamp {
  position: absolute;
  top: clamp(3.6rem, 12vw, 4.5rem);
  right: clamp(1.5rem, 6vw, 3rem);
  width: 76px; height: auto;
  transform: rotate(8deg);
  mix-blend-mode: multiply;
}
.postcard__stamp img { display: block; width: 100%; height: auto; }
/* postmark wavy lines, drawn in the stamp's terracotta and line weight; they run into the stamp's lower-left */
.postcard__waves {
  position: absolute;
  top: 56%;
  right: 74%;
  width: 72%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--terracota);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.postcard__lines { margin: 0; }
.postcard__line {
  padding: 1.1rem 0 1.3rem;
  border-bottom: 1px solid rgba(44, 59, 77, .28);
}
.postcard__line:last-child { border-bottom: 0; }
.postcard__line dt {
  margin-bottom: .45rem;
  font: 600 .68rem/1.4 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terracota-ink);
}
.postcard__line dd { margin: 0; font-size: 1.45rem; line-height: 1.35; }
.postcard__hours { font-size: 1.9rem; font-weight: 500; letter-spacing: .02em; }
.postcard__note {
  display: block;
  margin-top: .4rem;
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-link { display: inline-block; text-decoration: none; }
.map-link__cta {
  display: block;
  width: fit-content;
  margin-top: .55rem;
  font: 600 .7rem/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracota-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .3s, letter-spacing .3s var(--ease);
}
.map-link:hover .map-link__cta { color: var(--blue); letter-spacing: .24em; }

@media (min-width: 820px) {
  .postcard { grid-template-columns: 1.05fr 1fr; }
  .postcard__left {
    padding: 1rem clamp(2rem, 4vw, 3.5rem) 1rem 0;
    border-bottom: 0;
    border-right: 1px solid rgba(44, 59, 77, .25);
    display: flex; flex-direction: column; justify-content: center;
  }
  .postcard__right { padding: 6.5rem 0 0 clamp(2rem, 4vw, 3.5rem); }
  .postcard__stamp { top: clamp(2rem, 4vw, 3rem); width: 128px; }
  .postcard__waves { width: 96%; right: 72%; }
  .postcard .section-title { padding-right: 0; }
}

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

.site-footer {
  padding: 3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--terracota);
  border-top: 1px solid rgba(252, 239, 211, .3);
  color: var(--areia);
  text-align: center;
}
.site-footer__inner { display: grid; justify-items: center; gap: .25rem; }
.site-footer__logo { width: 170px; height: auto; margin-bottom: 1.5rem; opacity: .95; }
.site-footer__meta {
  margin: 0 0 .9rem;
  font: 500 .74rem/1.9 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-footer__meta a { text-decoration: none; border-bottom: 1px solid rgba(252, 239, 211, .7); padding: .5rem 0 .1rem; }
.site-footer__meta a:hover { color: var(--blue); border-color: var(--blue); }
.site-footer__small { margin: 1rem 0 0; font: 400 .7rem/1.6 var(--sans); letter-spacing: .04em; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.hero .reveal:nth-child(6) { transition-delay: .4s; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .24s; }



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__stamp { animation: none; }
  /* still frame from the hero video instead of motion */
  .hero__video { display: none; }
  .hero__fallback { display: block; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
