/* Taberna El Vinillo - Clean Light Theme */

:root {
  --bg: #F5F1E8;
  --surface: #EFE7DA;
  --card: #FFFFFF;
  --text: #1F1F1F;
  --muted: #4B4B4B;
  --faint: #6E6E6E;
  --accent: #D95C54;
  --accent-hover: #C94F48;
  --border: rgba(31, 31, 31, 0.10);
  --shadow: rgba(31, 31, 31, 0.08);
  --radius: 8px;
  --radius-sm: 4px;
  --transition: all 0.15s ease;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Critical: Global anchor reset to kill blue/purple links */
a,
a:visited,
a:link {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
}

.menu-toggle:hover {
  border-color: var(--accent);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Language Toggle - Clean Segmented Control */
.language-toggle {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0 2px 8px var(--shadow);
}

.language-toggle button {
  padding: 5px 12px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.language-toggle button:hover {
  color: var(--muted);
}

.language-toggle button.is-active {
  background: var(--accent);
  color: white;
}

/* Menu Overlay - Clean, not dark */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.menu-links a {
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
}

body.menu-open .menu-links a {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .menu-links a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: 0.12s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: 0.16s; }
body.menu-open .menu-links a:nth-child(4) { transition-delay: 0.20s; }

.menu-links a:hover {
  color: var(--accent);
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

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

.brand-text {
  font-size: 15px;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-size: 14px;
  color: var(--faint);
  transition: var(--transition);
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}

/* Site Footer */
.site-footer {
  padding: 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.site-footer strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.site-footer p {
  font-size: 13px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--faint);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Hero Section - Fullscreen with photo */
.fullscreen-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 232, 0.82) 0%,
    rgba(245, 241, 232, 0.68) 50%,
    rgba(245, 241, 232, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.logo-container {
  margin-bottom: 40px;
}

.hero-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: brightness(0.15);
}

@media (min-width: 480px) {
  .hero-logo {
    max-width: 420px;
  }
}

@media (min-width: 768px) {
  .hero-logo {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    max-width: 580px;
  }
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
  font-weight: 400;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Info Strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.info-item {
  text-align: center;
  padding: 16px;
}

.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.info-value {
  font-size: 15px;
  color: var(--text);
}

.info-value a {
  color: var(--accent);
  font-weight: 500;
}

.info-value a:hover {
  color: var(--accent-hover);
}

/* Features Section */
.features-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.text-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  color: var(--accent-hover);
  gap: 6px;
}

/* Story Section */
.story-section {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.story-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.story-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Page Hero (for menu, hours, etc.) */
.page-hero {
  padding: 80px 20px 40px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: 12px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

/* Mobile Bottom Bar - Clean, fixed */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  gap: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  z-index: 100;
}

.mobile-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  min-width: 60px;
}

.mobile-action:hover {
  color: var(--accent);
}

.mobile-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* Prevent overlap with mobile bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

/* Footer */
.minimal-footer {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.minimal-footer p {
  font-size: 13px;
  color: var(--faint);
}

/* Site Shell */
.site-shell {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Menu Page Styles */
.menu-sections {
  padding: 20px 0;
}

.menu-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.menu-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.section-note {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 16px;
  line-height: 1.4;
}

.menu-items {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.menu-item:last-child {
  border-bottom: none;
}

.item-main {
  flex: 1;
  min-width: 0;
}

.item-main h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text);
}

.item-desc {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.4;
  margin: 0;
}

.menu-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hours Page Tables */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.hours-table th,
.hours-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}

.hours-table td {
  color: var(--muted);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.support-note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 12px;
  font-style: italic;
}

/* Section Block */
.section-block {
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

/* Card utility */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 768px) {
  .fullscreen-hero {
    padding: 80px 20px 60px;
    min-height: auto;
  }
  
  h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  
  .lead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .button {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .site-header {
    padding: 10px 16px;
  }
  
  .brand img {
    height: 24px;
  }
  
  .brand-text {
    font-size: 14px;
  }
  
  .main-nav {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .info-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 16px;
  }
  
  .site-shell {
    padding: 0 16px 80px;
  }
  
  .menu-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .menu-section h2 {
    font-size: 18px;
  }
  
  .hours-table th,
  .hours-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .page-hero {
    padding: 60px 16px 32px;
  }
  
  .page-hero h1 {
    font-size: 24px;
  }
  
  .menu-links a {
    font-size: 28px;
  }
}

@media (min-width: 769px) {
  .mobile-bar {
    display: none;
  }
}

/* Utility Classes */
.is-hidden {
  display: none !important;
}

/* Visited link override - ensure no purple */
a:visited {
  color: inherit;
}

a.button-primary:visited,
a.button-secondary:visited,
a.text-link:visited {
  color: inherit;
}

a.button-primary:hover,
a.text-link:hover {
  color: var(--accent-hover);
}