:root {
  color-scheme: dark;
  --ink: #130f0a;
  --night: #1a100b;
  --coal: #241710;
  --panel: rgba(38, 24, 16, 0.9);
  --panel-soft: rgba(53, 35, 24, 0.86);
  --gold: #d79a28;
  --gold-soft: #f2cf79;
  --sea: #329895;
  --wine: #7a2b29;
  --cream: #fff3dd;
  --muted: #dec9aa;
  --line: rgba(255, 243, 221, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(122, 43, 41, 0.36), transparent 38%),
    linear-gradient(315deg, rgba(50, 152, 149, 0.22), transparent 36%),
    var(--night);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255, 243, 221, 0.12);
  background: rgba(19, 15, 10, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 76px;
}

.brand img {
  width: 76px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 243, 221, 0.12);
  background: rgba(36, 23, 16, 0.72);
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--cream);
  background: rgba(215, 154, 40, 0.15);
}

.header-action,
.button,
.chat-form button,
.quick-replies button,
.chat-launcher,
.icon-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 91svh;
  padding: 112px 28px 76px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 15, 10, 0.9), rgba(19, 15, 10, 0.34), rgba(19, 15, 10, 0.28)),
    url("assets/hero-ship.jpg") center center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: -20px;
  content: "";
  background: linear-gradient(0deg, rgba(26, 16, 11, 0.72), transparent 40%);
  opacity: 0.72;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.98;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 15, 10, 0.92) 0%, rgba(19, 15, 10, 0.46) 38%, rgba(19, 15, 10, 0.14) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(26, 16, 11, 0.08) 44%, rgba(26, 16, 11, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
}

.hero-logo {
  width: 148px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 243, 221, 0.1);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: 5.2rem;
  line-height: 0.93;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.7rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.subheading {
  margin-top: 28px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(255, 243, 221, 0.92);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 850;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--gold-soft);
}

.button-secondary {
  color: var(--cream);
  border: 1px solid rgba(255, 243, 221, 0.24);
  background: rgba(255, 243, 221, 0.09);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: rgba(215, 154, 40, 0.76);
}

.disabled-link {
  opacity: 0.58;
  cursor: not-allowed;
}

.next-section {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-band,
.menu-section,
.pirate-section,
.assistant-section {
  padding: 88px 28px;
}

.section-band {
  background: rgba(19, 15, 10, 0.64);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-copy {
  max-width: 560px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.video-layout,
.pirate-layout,
.assistant-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.barrio-video {
  width: 100%;
  aspect-ratio: 9 / 12;
  max-height: 760px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 154, 40, 0.15), transparent 38%),
    #080604;
  box-shadow: var(--shadow);
}

.pirate-section {
  background:
    linear-gradient(135deg, rgba(50, 152, 149, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(26, 16, 11, 0.5), rgba(36, 23, 16, 0.96));
}

.pirate-layout {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
}

.pirate-image {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.pirate-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 45%;
}

.menu-section {
  background:
    linear-gradient(180deg, rgba(26, 16, 11, 0.94), rgba(41, 25, 16, 0.98)),
    url("assets/hero-ship.jpg") center / cover fixed;
}

.drink-section {
  background:
    linear-gradient(180deg, rgba(13, 10, 8, 0.9), rgba(38, 21, 13, 0.96)),
    url("assets/hero-ship.jpg") center / cover fixed;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.menu-group {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.menu-group.wide {
  grid-column: span 2;
}

.menu-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.menu-title-row h3 {
  margin-bottom: 0;
}

.menu-title-row strong,
.price-list strong {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 1.05rem;
  white-space: nowrap;
}

.item-list,
.price-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-list.compact {
  gap: 8px;
}

.item-list.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.item-list li,
.price-list li {
  color: rgba(255, 243, 221, 0.9);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 243, 221, 0.12);
}

.price-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.assistant-preview {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(38, 24, 16, 0.92);
  box-shadow: var(--shadow);
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--cream);
  line-height: 1.5;
}

.message-ai {
  justify-self: start;
  background: rgba(255, 243, 221, 0.1);
}

.message-user {
  justify-self: end;
  color: var(--ink);
  background: var(--gold);
}

.contact-actions {
  justify-content: flex-end;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  min-height: 52px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 900;
  background: var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 13;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  width: min(392px, calc(100vw - 28px));
  max-height: min(650px, calc(100svh - 120px));
  overflow: hidden;
  border: 1px solid rgba(255, 243, 221, 0.2);
  border-radius: 8px;
  background: rgba(26, 16, 11, 0.98);
  box-shadow: var(--shadow);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(38, 24, 16, 0.94);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--cream);
  background: rgba(255, 243, 221, 0.1);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.chat-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.quick-replies {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
}

.quick-replies button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--cream);
  border: 1px solid rgba(255, 243, 221, 0.16);
  border-radius: 6px;
  background: rgba(255, 243, 221, 0.08);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.chat-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chat-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--cream);
  border: 1px solid rgba(255, 243, 221, 0.18);
  border-radius: 6px;
  background: rgba(255, 243, 221, 0.08);
}

.chat-form button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 850;
  background: var(--gold);
  border-radius: 6px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .video-layout,
  .pirate-layout,
  .assistant-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-group.wide {
    grid-column: span 2;
  }

  .pirate-image,
  .pirate-image img {
    min-height: 430px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand img {
    width: 64px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 90svh;
    padding: 100px 18px 70px;
  }

  .hero-media {
    object-position: 48% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(26, 16, 11, 0.32) 48%, rgba(26, 16, 11, 0.12) 100%),
      linear-gradient(90deg, rgba(19, 15, 10, 0.74), rgba(19, 15, 10, 0.2));
  }

  .hero-logo {
    width: 118px;
  }

  h1 {
    font-size: 3.08rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section-band,
  .menu-section,
  .pirate-section,
  .assistant-section {
    padding: 64px 18px;
  }

  .menu-grid,
  .menu-group.wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .menu-group {
    padding: 20px;
  }

  .item-list.columns {
    grid-template-columns: 1fr;
  }

  .pirate-image,
  .pirate-image img {
    min-height: 360px;
  }

  .contact-actions,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .next-section {
    left: 18px;
    right: auto;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
  }

  .chat-panel {
    right: 14px;
    bottom: 74px;
    width: calc(100vw - 28px);
    max-height: calc(100svh - 92px);
  }
}
