/* ============================================
   Tacos y Mariscos Panza Verde
   "Where the Ocean Meets the Street"
   ============================================ */

:root {
  --teal: #0D7377;
  --teal-dark: #095658;
  --lime: #5FA15F;
  --lime-light: #7BC47B;
  --terra: #C4663A;
  --terra-light: #D4845F;
  --sand: #F0DCC0;
  --sand-light: #F7EDD9;
  --navy: #1A2634;
  --mango: #E8963E;
  --mango-light: #F0B46A;
  --white: #FEFCF8;
  --black: #111;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --section-pad: clamp(3rem, 8vw, 6rem);
  --container: min(90%, 1200px);
}

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

html, body {
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Brushstroke texture backgrounds (CSS paint)
   ============================================ */
.bg-texture {
  position: relative;
}

.bg-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(ellipse 80px 40px at 20% 30%, var(--terra) 0%, transparent 70%),
    radial-gradient(ellipse 60px 30px at 70% 60%, var(--teal) 0%, transparent 70%),
    radial-gradient(ellipse 100px 50px at 50% 80%, var(--mango) 0%, transparent 70%),
    radial-gradient(ellipse 40px 80px at 85% 15%, var(--lime) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-texture > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(26, 38, 52, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.02em;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--mango);
}

.nav-cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--mango);
  transform: scale(1.05);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.35s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 115, 119, 0.82) 0%,
    rgba(196, 102, 58, 0.78) 50%,
    rgba(26, 38, 52, 0.85) 100%
  );
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge .star {
  color: var(--mango);
  font-size: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--mango);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 150, 62, 0.4);
}

.hero-cta:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(196, 102, 58, 0.5);
}

.hero-hours {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ============================================
   Wave Divider SVG
   ============================================ */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
}

.wave-divider-flip {
  transform: scaleY(-1);
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  background: var(--navy);
  padding: 2rem 1rem;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  max-width: var(--container);
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  color: var(--sand);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mango);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ============================================
   Section Commons
   ============================================ */
.section {
  padding: var(--section-pad) 1.5rem;
}

.section-container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--terra);
  font-weight: 600;
  font-style: italic;
}

/* Decorative chile pseudo-element */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--mango));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
  background: var(--sand-light);
}

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

.menu-category {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 4px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-category:nth-child(2) {
  border-top-color: var(--terra);
}

.menu-category:nth-child(3) {
  border-top-color: var(--mango);
}

.menu-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.menu-category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.menu-category .cat-subtitle {
  font-size: 0.85rem;
  color: var(--terra);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1rem;
}

.menu-item {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(26, 38, 52, 0.1);
}

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

.menu-item-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.15rem;
}

/* ============================================
   The Tower — Showpiece Section
   ============================================ */
.tower-section {
  background: var(--navy);
  color: var(--sand);
  position: relative;
}

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

.tower-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.tower-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.tower-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--mango);
  margin-bottom: 0.5rem;
}

.tower-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--mango), var(--terra));
  border-radius: 2px;
  margin: 0.8rem 0 0;
}

.tower-content .tower-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--terra-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.tower-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.tower-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mango);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 2rem;
  transition: background 0.2s, transform 0.2s;
}

.tower-cta:hover {
  background: var(--terra);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tower-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tower-image {
    order: -1;
  }
}

/* ============================================
   Specials Chalkboard
   ============================================ */
.specials-section {
  background: #2C2C2C;
  color: var(--sand);
  position: relative;
}

.specials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 2px 2px at 15% 25%, rgba(255,255,255,0.05) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 55% 75%, rgba(255,255,255,0.03) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 80% 40%, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
}

.specials-section .section-header h2 {
  color: var(--sand);
  font-family: var(--font-display);
}

.specials-section .section-header h2::after {
  background: linear-gradient(90deg, var(--lime), var(--mango));
}

.specials-section .subtitle {
  color: var(--lime-light) !important;
}

.chalkboard {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.2);
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 0.8rem;
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.chalk-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chalk-item {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.chalk-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chalk-item .chalk-name {
  color: var(--mango-light);
  font-weight: 700;
  font-size: 1.3rem;
}

.chalk-item .chalk-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
  background: var(--sand);
}

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

.testimonial-card {
  background: var(--lime);
  color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(95, 161, 95, 0.3);
  transition: transform 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Hand-drawn quotation mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.3rem;
  left: 1rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
}

.testimonial-stars {
  color: var(--mango);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.testimonial-card:nth-child(2) {
  background: var(--teal);
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.3);
}

.testimonial-card:nth-child(3) {
  background: var(--terra);
  box-shadow: 0 4px 20px rgba(196, 102, 58, 0.3);
}

/* ============================================
   Photo Gallery
   ============================================ */
.gallery-section {
  padding: 0;
  background: var(--navy);
}

.gallery-section .section-header {
  padding: var(--section-pad) 1.5rem 2rem;
}

.gallery-section .section-header h2 {
  color: var(--sand);
}

.gallery-section .subtitle {
  color: var(--mango) !important;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
}

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

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

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

/* ============================================
   Find Us Section
   ============================================ */
.findus-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 100%);
  color: var(--sand);
}

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

.findus-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.findus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.findus-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--mango);
  margin-bottom: 1.5rem;
}

.findus-info h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--mango), var(--terra));
  border-radius: 2px;
  margin: 0.8rem 0 0;
}

.findus-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.findus-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.findus-detail h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--sand);
}

.findus-detail p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
}

.findus-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--mango);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  margin-top: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 150, 62, 0.4);
}

.findus-cta:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(196, 102, 58, 0.5);
}

@media (max-width: 768px) {
  .findus-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--sand);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer a {
  color: var(--mango);
}

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--mango);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 3rem;
  box-shadow: 0 4px 20px rgba(232, 150, 62, 0.5);
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-cta:hover {
  background: var(--terra);
  transform: translateY(-2px) scale(1.05);
}

/* ============================================
   Decorative elements
   ============================================ */

/* Lime/wave decorations via pseudo-elements */
.menu-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,161,95,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   Media Queries — Mobile First Polish
   ============================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .stats-grid {
    gap: 1.2rem 2rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .menu-categories {
    grid-template-columns: 1fr;
  }

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

  .chalkboard {
    padding: 1.5rem 1rem;
  }

  .floating-cta span.cta-text {
    display: none;
  }

  .floating-cta {
    padding: 0.9rem;
    border-radius: 50%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
