/* ============================================
   Casa Luisa - Empanaderia & Provincial Kitchen
   styles.css
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --plum: #4a2040;
  --plum-light: #6b3a5e;
  --plum-dark: #351530;
  --terracotta: #d4a373;
  --terracotta-light: #e4c3a3;
  --terracotta-dark: #b8834f;
  --cream: #faf7f2;
  --white: #ffffff;
  --dark: #2a1a24;
  --text: #3d2a35;
  --text-light: #6b5560;
  --shadow: rgba(74, 32, 64, 0.12);
  --shadow-strong: rgba(74, 32, 64, 0.25);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Chivo', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif Display', serif;
  color: var(--plum);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: 'Chivo', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--plum), var(--terracotta));
  margin: 0 auto 2rem;
  border: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--plum);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--plum-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-strong);
}

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

.btn-secondary:hover {
  background-color: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-terracotta:hover {
  background-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition);
  background-color: transparent;
}

.header.scrolled {
  background-color: var(--plum-dark);
  padding: 0.7rem 0;
  box-shadow: 0 2px 20px var(--shadow-strong);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Noto Serif Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.3rem 0;
}

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

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition);
  display: block;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--plum-dark);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  color: var(--white);
  font-family: 'Noto Serif Display', serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  transition: color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--terracotta);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0;
  margin-top: 80px;
  background-color: var(--plum-dark);
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-list li a {
  color: var(--terracotta-light);
}

.breadcrumb-list li a:hover {
  color: var(--terracotta);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(74, 32, 64, 0.5) 0%,
    rgba(42, 26, 36, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.hero-tagline {
  font-family: 'Chivo', sans-serif;
  color: var(--terracotta-light);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

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

.section-alt {
  background-color: var(--white);
}

.section-dark {
  background-color: var(--plum);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: var(--terracotta-light);
}

.section-dark .section-divider {
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.about-text .btn {
  margin-top: 1rem;
}

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

.dish-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dish-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-strong);
}

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

.dish-card-content {
  padding: 1.5rem;
}

.dish-card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.dish-card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Experience Cards ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.experience-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--cream);
  border-radius: 8px;
  transition: transform var(--transition);
}

.experience-card:hover {
  transform: translateY(-3px);
}

.experience-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.experience-card h3 {
  margin-bottom: 0.8rem;
}

.experience-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--cream);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Noto Serif Display', serif;
  font-size: 4rem;
  color: var(--terracotta);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--plum);
  font-size: 0.9rem;
}

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

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

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

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

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(42, 26, 36, 0.8));
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--terracotta);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
}

.lightbox-nav:hover {
  color: var(--terracotta);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

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

.menu-category h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terracotta-light);
}

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

.menu-item {
  padding: 1.2rem;
  background-color: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--terracotta);
}

.menu-item h4 {
  color: var(--plum);
  margin-bottom: 0.3rem;
}

.menu-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.menu-item .price {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ---------- Info Grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
}

.info-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.info-card a {
  color: var(--plum);
  font-weight: 600;
}

.info-card a:hover {
  color: var(--terracotta);
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--plum);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 2px solid var(--terracotta-light);
  border-radius: 4px;
  font-family: 'Chivo', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--white);
  transition: border-color var(--transition);
}

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

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

/* ---------- Map ---------- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

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

/* ---------- Footer ---------- */
.footer {
  background-color: var(--plum-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: var(--terracotta);
  font-family: 'Noto Serif Display', serif;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: color var(--transition);
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 350px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}
