/* ============================================
   WARM MODERN RESTAURANT WEBSITE - CSS
   Chafariz das Gravatas
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
  --warm-white: #f7f2ea;
  --soft-beige: #efe7da;
  --warm-gray: #7f786f;
  --terracotta: #b56334;
  --wood-brown: #5a4b45;
  --deep-charcoal: #1f1e1c;
  --cream: #f2ebe2;
  --light-gray: #ede6dc;
  --border-gray: #d9cfc3;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--deep-charcoal);
  background-color: var(--warm-white);
  background-image:
    radial-gradient(1000px 500px at 5% -10%, rgba(181, 99, 52, 0.08), transparent),
    radial-gradient(900px 600px at 95% -5%, rgba(90, 75, 69, 0.08), transparent);
  line-height: 1.65;
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--deep-charcoal);
  line-height: 1.3;
}

h1 {
  font-size: 3.25rem;
  font-weight: 700;
}

h2 {
  font-size: 2.35rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: #3e342f;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
nav {
  background-color: var(--warm-white);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-gray);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: -0.5px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--deep-charcoal);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--deep-charcoal);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--terracotta);
}

.nav-menu a.active::after {
  width: 40%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-home {
  background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1920&q=80');
}

.hero-menu {
  background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1920&q=80');
}

.hero-about {
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1920&q=80');
}

.hero-contact {
  background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1920&q=80');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(31, 30, 28, 0.55), rgba(31, 30, 28, 0.45));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3.6rem;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-bottom: 2rem;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 2rem;
}

section.alternate {
  background-color: var(--light-gray);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  background-color: var(--terracotta);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(181, 99, 52, 0.2);
  margin-top: 1rem;
}

.btn:hover {
  background-color: var(--wood-brown);
  box-shadow: 0 6px 20px rgba(200, 113, 55, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--wood-brown);
}

.btn-secondary:hover {
  background-color: var(--terracotta);
}

.btn-outline {
  background-color: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover {
  background-color: var(--terracotta);
  color: white;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  text-align: center;
}

.intro-section .container {
  max-width: 800px;
}

.intro-section h2 {
  color: var(--terracotta);
  margin-bottom: 2rem;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--wood-brown);
  margin-bottom: 1.5rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--deep-charcoal);
}

.card-description {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-price {
  font-size: 1.5rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: 1rem;
}

/* ============================================
   FEATURED DISHES
   ============================================ */
.featured-dishes {
  text-align: center;
}

.featured-dishes h2 {
  color: var(--terracotta);
  margin-bottom: 3rem;
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ============================================
   ATMOSPHERE SECTION
   ============================================ */
.atmosphere {
  padding: 5.5rem 2rem;
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.atmosphere-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.atmosphere-image img {
  width: 100%;
  height: auto;
  display: block;
}

.atmosphere-content h2 {
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}

.atmosphere-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  color: var(--terracotta);
  margin-bottom: 3rem;
}

.section-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #433a35;
}

.section-lead-tight {
  margin-bottom: 0;
}

.section-note {
  text-align: center;
  color: var(--warm-gray);
  font-style: italic;
}

.hero-short {
  min-height: 60vh;
}

.menu-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-gray);
}

.menu-footer p {
  color: var(--warm-gray);
  font-style: italic;
}

.testimonial {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--terracotta);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--wood-brown);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--deep-charcoal);
  font-size: 0.95rem;
}

.testimonial-rating {
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section {
  padding: 5rem 2rem;
}

.cta-inner {
  background: linear-gradient(135deg, var(--wood-brown) 0%, var(--terracotta) 100%);
  color: white;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  background-color: white;
  color: var(--terracotta);
  box-shadow: none;
  font-weight: 600;
}

.cta-section .btn:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--deep-charcoal);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--terracotta);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--cream);
  color: var(--deep-charcoal);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   MENU PAGE STYLES
   ============================================ */
.menu-container {
  max-width: 900px;
}

.menu-section {
  margin-bottom: 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.menu-section h3 {
  color: var(--terracotta);
  border-bottom: 3px solid var(--terracotta);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

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

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

.menu-item-info {
  flex: 1;
}

.menu-item-name {
  font-weight: 600;
  color: var(--deep-charcoal);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.menu-item-description {
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-style: italic;
}

.menu-item-price {
  font-weight: 600;
  color: var(--terracotta);
  font-size: 1.1rem;
  white-space: nowrap;
  margin-left: 2rem;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-section-spaced {
  margin-bottom: 3rem;
}

.story-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-content h2 {
  color: var(--terracotta);
  margin-bottom: 2rem;
}

.story-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.values-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--terracotta);
}

.value-card h3 {
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--terracotta);
}

.contact-card h3 {
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.card-note {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-top: 1rem;
}

.contact-card a {
  color: var(--terracotta);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--wood-brown);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.hours-table th {
  background-color: var(--terracotta);
  color: white;
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
}

.hours-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gray);
  color: var(--wood-brown);
}

.hours-closed {
  text-align: center;
  color: var(--terracotta);
  font-weight: 600;
}

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

.hours-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* ============================================
   FORM STYLES
   ============================================ */
.reservation-form {
  background-color: white;
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--deep-charcoal);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  background-color: var(--warm-white);
  color: var(--deep-charcoal);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(200, 113, 55, 0.1);
}

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

.form-actions {
  text-align: center;
}

.form-note {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 400px;
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 6rem 2rem 2rem;
    background: var(--warm-white);
    z-index: 200;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 4px 0;
  }

  .nav-menu a {
    display: block;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    position: static;
    margin-top: 0.6rem;
    z-index: 300;
    align-self: center;
  }

  .nav-container {
    align-items: center;
    position: relative;
  }

  .nav-logo {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  section {
    padding: 4rem 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .atmosphere-grid,
  .story-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .menu-item {
    flex-direction: column;
  }

  .menu-item-price {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .testimonial-grid,
  .dishes-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .values-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    padding: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav-menu {
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .tagline {
    font-size: 0.9rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 2.5rem 1rem;
  }

  .reservation-form {
    padding: 1.5rem;
  }

  .map-container {
    height: 300px;
  }
}

/* Back to templates link */
:root {
  --templates-back-height: 38px;
}

.templates-back {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--templates-back-height);
  background: #f6f2ea;
  color: #3a3a3a;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1200;
}


.templates-back a {
  color: inherit;
  text-decoration: none;
}

.templates-back a:hover {
  text-decoration: underline;
}

nav,
.navbar {
  top: var(--templates-back-height);
}

body.is-embedded .templates-back {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--templates-back-height);
  background: #f6f2ea;
  color: #3a3a3a;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1200;
}


body.is-embedded nav,
body.is-embedded .navbar {
  top: 0;
}
