/* CALA AZUL — sea, whitewash, terracotta, sun */
:root {
  --sea: #1268b3;
  --sea-deep: #0d4c85;
  --pool: #3fa8d5;
  --whitewash: #f6f3ec;
  --terracotta: #c96f4a;
  --sun: #e8b04b;
  --driftwood: #8c8577;
  --inkblue: #143049;
  --display: "Prata", Georgia, serif;
  --body: "Outfit", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--whitewash);
  color: var(--inkblue);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--sun); color: var(--inkblue); }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ---------- nav + suntrack ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 2.6rem;
  background: linear-gradient(to bottom, rgba(20,48,73,0.55), transparent);
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(20,48,73,0.4);
}
.nav__suntrack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.suntrack__arc {
  position: relative;
  width: 120px;
  height: 26px;
  border-top: 1.5px dashed rgba(255,255,255,0.55);
  border-radius: 100% 100% 0 0 / 200% 200% 0 0;
}
.suntrack__sun {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd98a, var(--sun));
  box-shadow: 0 0 12px rgba(232,176,75,0.9);
  transform: translate(-50%, -50%);
  transition: left 1.2s cubic-bezier(.3,.7,.3,1), opacity .6s;
}
.suntrack__label {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(20,48,73,0.5);
}
.nav__links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.nav__links a { position: relative; text-shadow: 0 1px 8px rgba(20,48,73,0.4); transition: color .25s; }
.nav__links a:hover { color: var(--sun); }
.nav__cta {
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  transition: background .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--sun); border-color: var(--sun); color: var(--inkblue) !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background: url("assets/hero.png") center 55% / cover no-repeat;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.02) translateX(-0.6%); }
  to { transform: scale(1.07) translateX(0.6%); }
}
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,48,73,0.35), transparent 30%, transparent 62%, rgba(246,243,236,0.25) 88%, rgba(246,243,236,0.65));
}
.hero__content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1.4rem;
  text-shadow: 0 2px 22px rgba(20,48,73,0.55);
}
.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.92);
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.hero__title em { font-style: italic; }
.hero__sub {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-style: italic;
  margin-top: 1rem;
  color: rgba(255,255,255,0.95);
}
.hero__now {
  margin-top: 1.8rem;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(20,48,73,0.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.6em 1.4em;
}
.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 90px; display: block; }
.wave-a { fill: rgba(246,243,236,0.55); animation: wave-slide 9s ease-in-out infinite alternate; }
.wave-b { fill: var(--whitewash); animation: wave-slide 7s ease-in-out infinite alternate-reverse; }
@keyframes wave-slide {
  from { transform: translateX(-16px); }
  to { transform: translateX(16px); }
}

/* ---------- shared ---------- */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.3rem;
}
.eyebrow--light { color: rgba(246,243,236,0.75); }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
}
.section-title em { font-style: italic; color: var(--sea); }
.section-title--light { color: var(--whitewash); }
.section-title--light em { color: var(--sun); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.25,.6,.25,1), transform 1s cubic-bezier(.25,.6,.25,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- day ---------- */
.day {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 2.4rem;
  text-align: center;
}
.hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  text-align: left;
}
.hour {
  position: relative;
  padding: 1.7rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(20,48,73,0.07);
  border-top: 3px solid transparent;
  transition: transform .3s, border-color .3s;
}
.hour:hover { transform: translateY(-5px); border-top-color: var(--sun); }
.hour.now { border-top-color: var(--terracotta); }
.hour.now::after {
  content: "— now";
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.hour__time {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--driftwood);
}
.hour__sun {
  display: block;
  width: 30px; height: 30px;
  border-radius: 50%;
  margin: 0.9rem 0 1rem;
}
.hour__sun--noon { background: radial-gradient(circle at 35% 30%, #fff2cf, var(--sun)); box-shadow: 0 0 18px rgba(232,176,75,0.6); }
.hour__sun--vermut { background: radial-gradient(circle at 35% 30%, #ffd9a8, #e8964b); box-shadow: 0 0 14px rgba(232,150,75,0.5); }
.hour__sun--dinner { background: radial-gradient(circle at 35% 30%, #ffb98a, var(--terracotta)); box-shadow: 0 0 12px rgba(201,111,74,0.5); }
.hour__sun--embers { background: radial-gradient(circle at 40% 35%, #5d7ea3, var(--inkblue)); box-shadow: 0 0 10px rgba(20,48,73,0.5); }
.hour h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.hour p { font-size: 0.88rem; color: #43596e; }

/* ---------- barca ---------- */
.barca { background: #fff; }
.barca__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 2.4rem;
  text-align: center;
}
.platos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
  text-align: left;
}
.plato__img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20,48,73,0.12);
}
.plato__img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.3,.7,.3,1);
}
.plato:hover .plato__img img { transform: scale(1.05); }
.plato figcaption { display: block; margin-top: 1rem; }
.plato__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}
.plato__name {
  font-family: var(--display);
  font-size: 1.2rem;
}
.plato__price {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--terracotta);
  white-space: nowrap;
}
.plato__desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: #43596e;
}
.barca__more {
  margin: 3rem 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--driftwood);
  text-align: left;
}
.catch { list-style: none; margin-top: 0.8rem; text-align: left; }
.catch__item {
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid rgba(20,48,73,0.1);
}
.catch__item:first-child { border-top: 1px solid rgba(20,48,73,0.1); }
.catch__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.4rem;
}
.catch__row h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  position: relative;
  display: inline-block;
}
.catch__row h3::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--pool) 0 6px, transparent 6px 10px);
  transition: right .5s cubic-bezier(.3,.7,.3,1);
}
.catch__item:hover h3::after { right: 0; }
.catch__price {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--terracotta);
  white-space: nowrap;
}
.catch__pp { font-size: 0.72rem; color: var(--driftwood); }
.catch__item p { font-size: 0.9rem; color: #43596e; margin-top: 0.4rem; max-width: 36rem; }

/* ---------- cove ---------- */
.cove {
  position: relative;
  background: linear-gradient(175deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--whitewash);
}
.cove__wave { line-height: 0; }
.cove__wave svg { display: block; width: 100%; height: 64px; }
.cove__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 2.4rem clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}
.cove__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
  margin: 3.2rem 0 2.6rem;
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--sun);
}
.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,243,236,0.8);
}
.cove__note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(246,243,236,0.9);
}

/* ---------- book ---------- */
.book { background: var(--whitewash); }
.book__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 2.4rem 3rem;
  text-align: center;
}
.book__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin: 3.2rem 0;
  text-align: left;
}
.book-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 16px 38px rgba(20,48,73,0.08);
  border: 1.5px solid transparent;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--sun);
  box-shadow: 0 24px 50px rgba(20,48,73,0.13);
}
.book-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.book-card p { font-size: 0.9rem; color: #43596e; flex: 1; }
.book-card__go {
  margin-top: 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.book__fine {
  border-top: 1px solid rgba(20,48,73,0.12);
  padding-top: 1.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--driftwood);
}

/* ---------- booking form ---------- */
.bform {
  max-width: 720px;
  margin: 0 auto 3rem;
  background: #fff;
  border-radius: 22px;
  padding: 2.4rem 2.4rem 2.2rem;
  box-shadow: 0 22px 50px rgba(20,48,73,0.12);
  text-align: left;
}
.bform__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 1.8rem;
}
.bform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}
.bform__field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.bform__field--wide { grid-column: 1 / -1; }
.bform__field label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
}
.bform__field input,
.bform__field select {
  width: 100%;
  min-width: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.98rem;
  color: var(--inkblue);
  background: var(--whitewash);
  border: 1.5px solid rgba(20,48,73,0.18);
  border-radius: 12px;
  padding: 0.65em 0.9em;
  transition: border-color .25s, box-shadow .25s;
}
.bform__field select { cursor: pointer; }
.bform__field input:focus-visible,
.bform__field select:focus-visible {
  outline: none;
  border-color: var(--pool);
  box-shadow: 0 0 0 3px rgba(63,168,213,0.18);
}
.bform__error { min-height: 1.2em; margin-top: 1rem; font-size: 0.85rem; color: #b0432a; }
.bform__submit {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--sea), var(--pool));
  border: none;
  border-radius: 999px;
  padding: 0.9em 2em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18,104,179,0.35);
  transition: transform .18s, box-shadow .18s;
}
.bform__submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,104,179,0.4); }
.bform__submit:active { transform: translateY(1px); }
.bform__submit:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.bform__hint { margin-top: 1.2rem; font-size: 0.82rem; font-style: italic; color: var(--driftwood); }
.bform__done {
  max-width: 720px;
  margin: 0 auto 3rem;
  background: linear-gradient(150deg, #fff, var(--whitewash));
  border: 1.5px solid rgba(232,176,75,0.6);
  border-radius: 22px;
  padding: 2.6rem 2.4rem;
}
.bform__done-line {
  font-family: var(--display);
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.bform__done-sub { color: #43596e; }

/* ---------- portal return ---------- */
.portal-return {
  position: fixed;
  bottom: 1.3rem;
  left: 1.5rem;
  z-index: 95;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--inkblue);
  border: 1.5px solid rgba(20,48,73,0.3);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  background: rgba(246,243,236,0.85);
  backdrop-filter: blur(6px);
  transition: color .25s, border-color .25s;
}
.portal-return:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav__suntrack { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav { padding: 1rem 1.3rem; }
}
@media (max-width: 560px) {
  .day, .barca__inner, .cove__inner, .book__inner { padding-left: 1.3rem; padding-right: 1.3rem; }
  .bform { padding: 1.7rem 1.3rem; }
  .bform__grid { grid-template-columns: 1fr; }
  .platos { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
