/* Design DNA: Bilbao Tapas | asymmetric diagonal hero | wine-dark header | card-bl cookie */
/* Fonts: "Fraunces", serif + "Alata", sans-serif */

@import url('https://fonts.googleapis.com/css2?family=Alata&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --bt-rioja: #6B1D2A;
  --bt-olive: #5C6B3A;
  --bt-cream: #F7F2EA;
  --bt-charcoal: #1E1A17;
  --bt-brass: #B08968;
  --bt-rioja-dark: #4A1420;
  --bt-cream-dark: #EDE5D8;
  --bt-font-serif: 'Fraunces', serif;
  --bt-font-sans: 'Alata', sans-serif;
  --bt-radius: 4px;
  --bt-shadow: 0 8px 32px rgba(30, 26, 23, 0.12);
  --bt-transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bt-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bt-charcoal);
  background: var(--bt-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bt-rioja);
  text-decoration: none;
  transition: color var(--bt-transition);
}

a:hover {
  color: var(--bt-brass);
}

h1, h2, h3, h4 {
  font-family: var(--bt-font-serif);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

.bt-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.bt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bt-rioja);
  box-shadow: 0 2px 16px rgba(30, 26, 23, 0.25);
}

.bt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.bt-logo {
  display: flex;
  flex-direction: column;
  color: var(--bt-cream);
  text-decoration: none;
}

.bt-logo:hover { color: var(--bt-brass); }

.bt-logo__name {
  font-family: var(--bt-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bt-logo__tag {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bt-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.bt-nav a {
  color: var(--bt-cream);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.bt-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bt-brass);
  transition: width var(--bt-transition);
}

.bt-nav a:hover,
.bt-nav a.bt-nav--active {
  color: var(--bt-brass);
}

.bt-nav a:hover::after,
.bt-nav a.bt-nav--active::after {
  width: 100%;
}

.bt-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bt-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bt-cream);
  transition: var(--bt-transition);
}

.bt-burger.bt-burger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.bt-burger.bt-burger--open span:nth-child(2) {
  opacity: 0;
}

.bt-burger.bt-burger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero — asymmetric diagonal */
.bt-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bt-charcoal);
}

.bt-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 5%;
  background: var(--bt-rioja);
  color: var(--bt-cream);
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.bt-hero__content h1 {
  margin-bottom: 1.25rem;
}

.bt-hero__content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 420px;
  margin-bottom: 2rem;
}

.bt-hero__image {
  position: relative;
  overflow: hidden;
}

.bt-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 78vh;
}

.bt-hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bt-rioja) 0%, transparent 40%);
  z-index: 1;
}

/* Page hero (inner pages) */
.bt-page-hero {
  background: var(--bt-rioja);
  color: var(--bt-cream);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.bt-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--bt-olive);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.35;
}

.bt-page-hero h1 {
  position: relative;
  z-index: 1;
}

.bt-page-hero p {
  position: relative;
  z-index: 1;
  opacity: 0.85;
  max-width: 560px;
  margin-top: 0.75rem;
}

/* Buttons */
.bt-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--bt-font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--bt-transition);
  text-decoration: none;
}

.bt-btn--primary {
  background: var(--bt-brass);
  color: var(--bt-charcoal);
  border-color: var(--bt-brass);
}

.bt-btn--primary:hover {
  background: var(--bt-cream);
  border-color: var(--bt-cream);
  color: var(--bt-rioja);
}

.bt-btn--outline {
  background: transparent;
  color: var(--bt-cream);
  border-color: var(--bt-cream);
}

.bt-btn--outline:hover {
  background: var(--bt-cream);
  color: var(--bt-rioja);
}

.bt-btn--olive {
  background: var(--bt-olive);
  color: var(--bt-cream);
  border-color: var(--bt-olive);
}

.bt-btn--olive:hover {
  background: var(--bt-charcoal);
  border-color: var(--bt-charcoal);
}

/* Sections */
.bt-section {
  padding: 4.5rem 0;
}

.bt-section--cream {
  background: var(--bt-cream);
}

.bt-section--dark {
  background: var(--bt-charcoal);
  color: var(--bt-cream);
}

.bt-section--olive {
  background: var(--bt-olive);
  color: var(--bt-cream);
}

.bt-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.bt-section__header h2 {
  margin-bottom: 0.75rem;
}

.bt-section__header p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.bt-accent {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--bt-brass);
  margin-bottom: 1rem;
}

/* Grid layouts */
.bt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards */
.bt-card {
  background: #fff;
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: transform var(--bt-transition);
}

.bt-card:hover {
  transform: translateY(-4px);
}

.bt-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}

.bt-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-card__body {
  padding: 1.5rem;
}

.bt-card__body h3 {
  margin-bottom: 0.5rem;
  color: var(--bt-rioja);
}

.bt-card__price {
  font-family: var(--bt-font-serif);
  font-size: 1.1rem;
  color: var(--bt-brass);
  font-weight: 600;
}

/* Feature blocks */
.bt-feature {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.bt-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bt-rioja);
  color: var(--bt-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bt-font-serif);
  font-size: 1.2rem;
  border-radius: var(--bt-radius);
}

/* Menu list */
.bt-menu-category {
  margin-bottom: 3rem;
}

.bt-menu-category h3 {
  color: var(--bt-rioja);
  border-bottom: 2px solid var(--bt-brass);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.bt-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--bt-cream-dark);
}

.bt-menu-item__name {
  font-weight: 600;
}

.bt-menu-item__desc {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.bt-menu-item__price {
  font-family: var(--bt-font-serif);
  color: var(--bt-brass);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Gallery */
.bt-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bt-gallery__item {
  overflow: hidden;
  border-radius: var(--bt-radius);
  aspect-ratio: 16/10;
}

.bt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bt-gallery__item:hover img {
  transform: scale(1.05);
}

.bt-gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

/* Contact form */
.bt-form {
  max-width: 560px;
}

.bt-form-group {
  margin-bottom: 1.25rem;
}

.bt-form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--bt-charcoal);
}

.bt-form-group input,
.bt-form-group textarea,
.bt-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bt-cream-dark);
  background: #fff;
  font-family: var(--bt-font-sans);
  font-size: 1rem;
  border-radius: var(--bt-radius);
  transition: border-color var(--bt-transition);
}

.bt-form-group input:focus,
.bt-form-group textarea:focus,
.bt-form-group select:focus {
  outline: none;
  border-color: var(--bt-brass);
}

.bt-form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.bt-form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.bt-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Info block */
.bt-info-block {
  background: var(--bt-rioja);
  color: var(--bt-cream);
  padding: 2.5rem;
  border-radius: var(--bt-radius);
}

.bt-info-block h3 {
  margin-bottom: 1.25rem;
}

.bt-info-block p {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.bt-info-block a {
  color: var(--bt-brass);
}

.bt-info-block a:hover {
  color: var(--bt-cream);
}

/* Hours table */
.bt-hours {
  width: 100%;
  border-collapse: collapse;
}

.bt-hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(247, 242, 234, 0.15);
}

.bt-hours td:last-child {
  text-align: right;
}

/* Privacy content */
.bt-legal {
  max-width: 780px;
  margin: 0 auto;
}

.bt-legal h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--bt-rioja);
}

.bt-legal h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.bt-legal ul {
  margin: 0.75rem 0 1rem 1.5rem;
}

.bt-legal li {
  margin-bottom: 0.35rem;
}

/* Footer */
.bt-footer {
  background: var(--bt-charcoal);
  color: var(--bt-cream);
  padding: 3.5rem 0 1.5rem;
}

.bt-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.bt-footer__col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--bt-brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bt-footer__col p,
.bt-footer__col li {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.7;
}

.bt-footer__col ul {
  list-style: none;
}

.bt-footer__col a {
  color: var(--bt-cream);
  opacity: 0.8;
}

.bt-footer__col a:hover {
  color: var(--bt-brass);
  opacity: 1;
}

.bt-footer__bottom {
  border-top: 1px solid rgba(247, 242, 234, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* Cookie banner — bottom-left card */
.bt-cookie {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  max-width: 380px;
  background: #fff;
  border-radius: var(--bt-radius);
  box-shadow: 0 12px 40px rgba(30, 26, 23, 0.2);
  padding: 1.5rem;
  border-left: 4px solid var(--bt-rioja);
  display: none;
}

.bt-cookie.bt-cookie--visible {
  display: block;
}

.bt-cookie h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--bt-rioja);
}

.bt-cookie p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.bt-cookie__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bt-cookie__actions .bt-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
}

/* CTA strip */
.bt-cta {
  background: var(--bt-olive);
  color: var(--bt-cream);
  padding: 3rem 0;
  text-align: center;
}

.bt-cta h2 {
  margin-bottom: 0.75rem;
}

.bt-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Image with diagonal clip */
.bt-img-diagonal {
  position: relative;
  overflow: hidden;
  border-radius: var(--bt-radius);
}

.bt-img-diagonal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats row */
.bt-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.bt-stat__num {
  font-family: var(--bt-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bt-brass);
}

.bt-stat__label {
  font-size: 0.82rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Responsive — 900px */
@media (max-width: 900px) {
  .bt-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bt-hero__content {
    clip-path: none;
    padding: 3rem 1.5rem;
    order: 2;
  }

  .bt-hero__image {
    order: 1;
    min-height: 45vh;
  }

  .bt-hero__image img {
    min-height: 45vh;
  }

  .bt-grid-2,
  .bt-grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bt-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bt-gallery {
    grid-template-columns: 1fr;
  }

  .bt-gallery__item--wide {
    grid-column: span 1;
  }

  .bt-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* Responsive — 560px */
@media (max-width: 560px) {
  .bt-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bt-rioja-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }

  .bt-nav.bt-nav--open {
    display: flex;
  }

  .bt-nav li {
    border-bottom: 1px solid rgba(247, 242, 234, 0.1);
  }

  .bt-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .bt-burger {
    display: flex;
  }

  .bt-header__inner {
    position: relative;
  }

  .bt-footer__grid {
    grid-template-columns: 1fr;
  }

  .bt-section {
    padding: 3rem 0;
  }

  .bt-cookie {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .bt-hero__content {
    padding: 2.5rem 1.25rem;
  }

  .bt-info-block {
    padding: 1.75rem;
  }
}
