/*
Theme Name: El Botifler del Poblenou
Theme URI: https://elbotifler.com
Author: Esteve
Description: Theme personalitzat per al restaurant El Botifler del Poblenou - Cuina de mercat amb arrels al territori.
Version: 1.2.0
Text Domain: elbotifler
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --eb-bg: #FAF8F5;
  --eb-bg-warm: #F0EBE3;
  --eb-bg-dark: #1C1917;
  --eb-bg-olive: #2C3527;
  --eb-terracotta: #B85C38;
  --eb-accent: #8B7355;
  --eb-accent-warm: #C4956A;
  --eb-text: #1C1917;
  --eb-text-light: #FAFAF9;
  --eb-text-muted: #A8A29E;
  --eb-text-secondary: #78716C;
  --eb-card: #FFFFFF;
  --eb-divider: #D6D3D1;
  --eb-olive: #5C6B4F;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--eb-text);
  background-color: var(--eb-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 16px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 1;
}

.btn-primary {
  background-color: var(--eb-terracotta);
  color: var(--eb-text-light);
}

.btn-outline {
  background: transparent;
  color: var(--eb-text-light);
  border: 1px solid var(--eb-text-muted);
}

.btn-sm {
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== DIVIDER ===== */
.divider {
  width: 40px;
  height: 2px;
  background-color: var(--eb-accent);
}

/* ===== NAVIGATION ===== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: var(--eb-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--eb-text-secondary);
}

.nav-links a:hover {
  color: var(--eb-text);
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 248, 245, 0.5) 0%,
    rgba(250, 248, 245, 0.8) 60%,
    rgba(250, 248, 245, 0.93) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 120px 60px;
  gap: 24px;
  text-align: center;
}

.hero-location {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--eb-accent);
}

.hero-logo img {
  height: 217px;
  width: auto;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: 24px;
  font-style: italic;
  color: var(--eb-text-secondary);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background-color: var(--eb-accent);
}

/* ===== STORY SECTION ===== */
.story {
  display: flex;
  height: 640px;
  background-color: var(--eb-bg-warm);
  overflow: hidden;
}

.story-image {
  width: 680px;
  min-width: 680px;
  height: 100%;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 80px;
}

.story-content .label {
  color: var(--eb-accent);
}

.story-content h2 {
  font-size: 40px;
}

.story-content p {
  font-size: 16px;
  color: var(--eb-text-secondary);
  line-height: 1.7;
}

/* ===== SPECIALTIES ===== */
.specialties {
  padding: 80px;
  background-color: var(--eb-bg);
  text-align: center;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-header .label {
  color: var(--eb-accent);
}

.section-header h2 {
  font-size: 40px;
}

.spec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.spec-card {
  background: var(--eb-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.07);
}

.spec-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.spec-card-body {
  padding: 24px 24px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-card-body h3 {
  font-size: 22px;
}

.spec-card-body p {
  font-size: 14px;
  color: var(--eb-text-secondary);
  line-height: 1.6;
}

/* ===== MENU DEL DIA ===== */
.menu-dia {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 400px;
  padding: 80px 200px;
  background-color: var(--eb-bg-olive);
  overflow: hidden;
  text-align: center;
}

.menu-dia-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.menu-dia-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 53, 39, 0.85) 0%,
    rgba(28, 25, 23, 0.9) 100%
  );
}

.menu-dia > *:not(.menu-dia-bg):not(.menu-dia-overlay) {
  position: relative;
  z-index: 1;
}

.menu-dia .label {
  color: var(--eb-accent-warm);
  letter-spacing: 4px;
}

.menu-dia h2 {
  font-size: 48px;
  color: var(--eb-text-light);
}

.menu-dia p {
  font-family: var(--font-accent);
  font-size: 20px;
  font-style: italic;
  color: var(--eb-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== QUOTE STRIP ===== */
.quote-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 320px;
  padding: 60px 200px;
  background-color: var(--eb-bg-olive);
  overflow: hidden;
  text-align: center;
}

.quote-strip-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.quote-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--eb-accent-warm);
  opacity: 0.6;
  line-height: 0.5;
}

.quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-accent);
  font-size: 28px;
  font-style: italic;
  color: var(--eb-text-light);
  line-height: 1.6;
  max-width: 800px;
}

.quote-author {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--eb-accent-warm);
}

/* ===== WINE SECTION ===== */
.wine {
  display: flex;
  background-color: var(--eb-bg);
}

.wine-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 80px;
}

.wine-content .label {
  color: var(--eb-terracotta);
  letter-spacing: 4px;
}

.wine-content h2 {
  font-size: 44px;
  line-height: 1.15;
}

.wine-content > p {
  font-size: 16px;
  color: var(--eb-text-secondary);
  line-height: 1.8;
  max-width: 440px;
}

.wine-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wine-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wine-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background-color: var(--eb-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wine-feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--eb-accent);
}

.wine-feature span {
  font-size: 15px;
}

.wine-image {
  width: 620px;
  min-width: 620px;
  overflow: hidden;
}

.wine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 80px;
  background-color: var(--eb-bg-warm);
}

.gallery .section-header {
  margin-bottom: 40px;
}

.gallery .section-header .label {
  color: var(--eb-accent);
}

.gallery .section-header h2 {
  font-size: 44px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 420px;
}

.gallery-grid .gallery-item:first-child {
  grid-row: 1 / -1;
}

.gallery-grid .gallery-item:last-child {
  grid-row: 1 / -1;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== LOCATION ===== */
.location {
  padding: 80px 120px;
  background-color: var(--eb-bg);
}

.location .section-header {
  margin-bottom: 60px;
}

.location .section-header .label {
  color: var(--eb-accent);
}

.location .section-header h2 {
  font-size: 44px;
}

.location-body {
  display: flex;
  gap: 60px;
}

.location-map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  height: 440px;
}

.location-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.loc-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-intro h3 {
  font-size: 26px;
}

.loc-intro p {
  font-size: 15px;
  color: var(--eb-text-secondary);
  line-height: 1.7;
}

.loc-divider {
  width: 100%;
  height: 1px;
  background-color: var(--eb-divider);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: var(--eb-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--eb-accent);
}

.contact-text .contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--eb-accent);
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 15px;
  color: var(--eb-text-secondary);
  line-height: 1.5;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 420px;
  padding: 60px 120px;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.9) 0%,
    rgba(44, 53, 39, 0.8) 100%
  );
}

.cta-banner > *:not(.cta-bg):not(.cta-overlay) {
  position: relative;
  z-index: 1;
}

.cta-banner .label {
  color: var(--eb-accent-warm);
  letter-spacing: 4px;
}

.cta-banner h2 {
  font-size: 52px;
  color: var(--eb-text-light);
}

.cta-banner > p {
  font-family: var(--font-accent);
  font-size: 20px;
  font-style: italic;
  color: var(--eb-text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-actions .btn-primary {
  border-radius: 6px;
  padding: 18px 40px;
}

.cta-actions .btn-outline {
  border-radius: 6px;
  padding: 18px 32px;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--eb-bg-dark);
  padding: 60px 120px;
}

.footer-top {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--eb-text-light);
  line-height: 1.3;
}

.footer-brand .tagline {
  font-family: var(--font-accent);
  font-size: 16px;
  font-style: italic;
  color: var(--eb-text-muted);
}

.footer-brand address {
  font-style: normal;
  font-size: 14px;
  color: var(--eb-text-muted);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background-color: #2A2724;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a3734;
}

.footer-social a:hover {
  background-color: #3a3734;
  opacity: 1;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: var(--eb-text-muted);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--eb-accent-warm);
  text-transform: uppercase;
}

.footer-col a,
.footer-col p,
.footer-col span {
  font-size: 14px;
  color: var(--eb-text-light);
}

.footer-col .muted {
  color: var(--eb-text-muted);
}

.footer-col .closed {
  color: #E57373;
}

.footer-schedule-row {
  display: flex;
  justify-content: space-between;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #2A2724;
  margin-bottom: 48px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--eb-text-muted);
}

.footer-langs {
  display: flex;
  gap: 16px;
}

.footer-langs a {
  font-size: 12px;
  font-weight: 500;
  color: var(--eb-text-muted);
}

.footer-langs a.active {
  color: var(--eb-text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .site-nav { padding: 16px 30px; }
  .story { flex-direction: column; height: auto; }
  .story-image { width: 100%; min-width: unset; height: 400px; }
  .story-content { padding: 48px 30px; }
  .spec-cards { grid-template-columns: repeat(2, 1fr); }
  .menu-dia { padding: 48px 30px; min-height: 320px; }
  .menu-dia h2 { font-size: 36px; }
  .wine { flex-direction: column; }
  .wine-content { padding: 48px 30px; }
  .wine-image { width: 100%; min-width: unset; height: 400px; }
  .wine-content > p { max-width: 100%; }
  .quote-strip { padding: 48px 30px; height: auto; min-height: 280px; }
  .gallery { padding: 48px 30px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-grid .gallery-item:first-child,
  .gallery-grid .gallery-item:last-child { grid-row: auto; }
  .gallery-item { height: 200px; }
  .location { padding: 48px 30px; }
  .location-body { flex-direction: column; }
  .location-map { height: 300px; }
  .cta-banner { padding: 48px 30px; height: auto; min-height: 360px; }
  .cta-banner h2 { font-size: 36px; }
  .site-footer { padding: 48px 30px; }
  .footer-top { flex-wrap: wrap; }
  .footer-top .footer-col { min-width: 45%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { height: 500px; }
  .hero-logo img { height: 140px; }
  .specialties { padding: 48px 20px; }
  .spec-cards { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .footer-top .footer-col { min-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
