/**
 * Restaurante e Churrascaria 500 das Régis
 * Desenvolvido por: Wagner Povinski
 * www.churrascaria500.com.br
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=Playfair+Display:wght@500;700&display=swap');

/* Design tokens - Churrascaria Theme */
:root {
  --background: #FFF8F0; /* Warm cream background */
  --foreground: #2C1810; /* Deep brown text */
  --card: #FFFBF5; /* Light cream cards */
  --primary: #D32F2F; /* Vibrant red (meat) */
  --primary-foreground: #FFFFFF; /* White text on red */
  --secondary: #FFE0B2; /* Light warm orange */
  --muted-foreground: #6D4C41; /* Brown muted text */
  --border: #FFCCBC; /* Light coral border */
  --accent: #FF6F00; /* Bright orange accent (fire) */
  --accent-secondary: #8D6E63; /* Warm brown accent */
  --radius: 12px;
  --shadow-sm: 0 2px 6px rgba(211,47,47,.08);
  --shadow-md: 0 8px 24px rgba(211,47,47,.12);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'PT Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--foreground);
  margin: 0 0 12px;
}

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--foreground); }
.brand .flame { width: 28px; height: 28px; color: var(--accent); }
.brand .name { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; line-height: 1.2; }

.nav-desktop { display: none; align-items: center; gap: 18px; }
.nav-desktop a { padding: 8px 10px; border-radius: 8px; color: var(--foreground); }
.nav-desktop a.active { color: var(--primary); font-weight: 700; }
.nav-desktop a:hover { background: var(--secondary); }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.menu-toggle:hover { background: var(--secondary); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); background: var(--card); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease; z-index: 60; box-shadow: var(--shadow-md); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .top { display:flex; align-items:center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu nav { display: grid; gap: 6px; padding: 12px 12px 20px; }
.mobile-menu a { padding: 12px; border-radius: 10px; }
.mobile-menu a:hover { background: var(--secondary); }
.mobile-menu a.active { color: var(--primary); font-weight: 700; }
.backdrop { position: fixed; inset:0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 55; }
.backdrop.show { opacity: 1; pointer-events: all; }

/* Hero */
.hero {
  position: relative; min-height: 60vh; display: grid; place-items: center; text-align: center; color: white; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(211,47,47,0.9) 0%, rgba(255,111,0,0.85) 50%, rgba(141,110,99,0.9) 100%), 
              url('../imagem/Buffet/buffet1.jpeg') center/cover no-repeat;
  background-blend-mode: multiply;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 0; }
.hero .inner { position: relative; padding: 40px 16px; max-width: 900px; z-index: 1; }
.hero h1 { color: var(--primary-foreground); font-size: clamp(28px, 4vw, 54px); margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero p { color: #f2eeeb; font-size: clamp(16px, 2.3vw, 22px); margin: 0 auto 20px; max-width: 820px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--primary); color: var(--primary-foreground); font-weight: 700; transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(211,47,47,.3); }
.btn.whatsapp { background: #25D366; border-color: #1ebe5a; color: #ffffff; }
.btn.whatsapp:hover { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
.btn.whatsapp svg { width: 20px; height: 20px; }
.btn.secondary { background: transparent; border: 2px solid white; color: white; }
.btn.secondary:hover { background: rgba(255,255,255,.1); box-shadow: 0 4px 12px rgba(255,255,255,.3); }

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--foreground);
  margin-bottom: 10px;
}
.section-header p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted-foreground);
  margin: 0;
}

/* Benefits Section */
.benefits-section {
  background: var(--background);
  padding: 60px 0 40px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.benefit-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}
.benefit-card h3 {
  font-size: 20px;
  color: var(--foreground);
  margin-bottom: 12px;
  font-weight: 700;
}
.benefit-card p {
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* Hours Section */
.hours-section {
  background: linear-gradient(135deg, rgba(211,47,47,0.05) 0%, rgba(255,111,0,0.05) 100%);
  padding: 60px 0;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hours-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.hours-card h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}
.hours-card p {
  font-size: 16px;
  color: var(--foreground);
  margin: 8px 0;
}
.hours-card p strong {
  color: var(--accent);
  font-weight: 700;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.2); }
}
.whatsapp-float {
  animation: pulse-whatsapp 2s infinite;
}

/* Image Carousel */
.carousel-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
/* Special styling for review screenshots */
[data-carousel="avaliacoes"] .carousel-slide img {
  object-fit: contain;
  background: white;
  height: 500px;
}
.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-nav:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}
.carousel-nav.prev {
  left: 20px;
}
.carousel-nav.next {
  right: 20px;
}
.carousel-header {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}
.carousel-header h2 {
  margin: 0 0 8px;
  color: white;
}
.carousel-header p {
  margin: 0;
  opacity: 0.95;
  font-size: 16px;
}

/* Sections */
.section { padding: 48px 0; }
.section .section-title { text-align: center; margin-bottom: 28px; }
.muted { color: var(--muted-foreground); }

/* Cards grid */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.responsive { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(150,75,41,.12); }
.card .media { aspect-ratio: 3 / 2; background: #d8d2cb; }
.card .body { padding: 16px; }
.card .body h3 { margin-bottom: 8px; }

/* Services cards */
.service-card { text-align: center; padding: 24px; }
.service-card .icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--primary); }

/* About layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.info-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.info-card h3 { margin-bottom: 8px; }

/* Timeline */
.timeline { position: relative; margin: 24px 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.t-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.t-item .dot { position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; transform: translate(-50%, 0); box-shadow: 0 0 0 4px var(--primary-foreground); }
.t-item .content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.t-item:nth-child(odd) .content { grid-column: 1 / 2; }
.t-item:nth-child(even) .content { grid-column: 2 / 3; }
.t-item img { border-radius: 10px; border: 1px solid var(--border); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact .info { display: grid; gap: 12px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: flex-start; gap: 12px; }
.mini-card .icon { width: 28px; height: 28px; color: var(--primary); flex: 0 0 auto; }

form .field { margin-bottom: 14px; }
label { display: inline-block; margin-bottom: 6px; color: var(--muted-foreground); }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--foreground);
}
textarea { resize: vertical; min-height: 140px; }
.error { color: #b00020; font-size: 14px; margin-top: 4px; display: none; }
.field.invalid .error { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2C1810 0%, #3E2723 100%);
  color: #F5F5F5;
  padding: 0;
  margin-top: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 24px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0;
  color: #E0E0E0;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,111,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.social-links svg {
  width: 20px;
  height: 20px;
  fill: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  color: #BDBDBD;
  margin: 0;
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--primary); color: var(--primary-foreground); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, -6px); }

/* Social icons */
.social { display: inline-flex; gap: 10px; align-items: center; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.social a:hover { background: var(--secondary); }
.social svg { width: 20px; height: 20px; }

/* Image Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow-md); }
.zoomable { cursor: zoom-in; }

/* Responsive */
@media (min-width: 840px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .t-item { grid-template-columns: 1fr; }
  .timeline::before { left: 24px; }
  .t-item .dot { left: 24px; transform: translate(0, 0); }
  .t-item .content { grid-column: 1 / -1; margin-left: 24px; }
}
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 36px 24px;
  }
  .hours-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide img {
    height: 300px;
  }
  [data-carousel="avaliacoes"] .carousel-slide img {
    height: 400px;
  }
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .carousel-nav.prev {
    left: 10px;
  }
  .carousel-nav.next {
    right: 10px;
  }
  .carousel-header {
    padding: 18px;
  }
  .carousel-header h2 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .cta {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .carousel-slide img {
    height: 250px;
  }
  [data-carousel="avaliacoes"] .carousel-slide img {
    height: 350px;
  }
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}
