/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');


:root {
    --primary: #ce1126;
    --primary-dark: #a30e1e;
    --accent-blue: #0033a0;
    --accent-white: #ffffff;
    --text-dark: #2b2b2b;         /* Deep gray - readable but not pure black */
    --text-light: #f9f9f9;        /* For dark backgrounds */

    /* Backgrounds */
    --section-background: #f4f1ed;     /* Neutral beige - like natural sand */
    --section-accent: #e8e3d8;         /* Light tan - softens contrast */
    --navbar-background: #0033a0;      /* Blue navbar like the flag stripe */

    /* Nature-Inspired Additions */
    --coffee-brown: #6f4e37;      /* For footer or CTA - evokes Costa Rica's coffee */
    --forest-green: #3a5a40;      /* Secondary accent - nature, freshness */
    --sunset-orange: #f97316;     /* Optional highlight color - tropics/sunset */

    /* Utility */
    --border-radius: 8px;
    --transition-speed: 0.3s;

    --heading-font: 'Dancing Script', cursive;
    --body-font: 'Open Sans', sans-serif;
}

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

    html {
        scroll-behavior: smooth;
    }

    body {
      font-family: var(--body-font);
      color: var(--text-dark);
      line-height: 1.6;
      background-color: var(--section-background);
    }

    h1, h2, h3 {
        font-family: var(--heading-font);
        color: var(--primary);
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 3rem); 
    }
    
    a {
      color: var(--primary);
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
      color: var(--sunset-orange);
    }

    header {
      background: url('images/hero-food.webp') no-repeat center 50%/cover; /* Full cover background image */
      height: 100vh;
      color: var(--text-light);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 20px;
    }

    header::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.55);
      z-index: 0;
    }
    header > * {
      position: relative;
      z-index: 1;
    }

    .logo {
        width: 300px;
        height: auto;
        display: block;
        margin: 0 auto 0 auto;
        clip-path: inset(10px); /* Adjust to fit logo */
    }
    header h1 {
      font-size: clamp(2rem, 6vw, 3rem);
      margin-bottom: 0.5rem;
    }

    header p {
      font-size: clamp(1rem, 4vw, 1.5rem);
      margin-bottom: 1rem;
    }

    .sticky-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--navbar-background);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.nav-links li a {
  color: var(--accent-white);
  text-decoration: none;
font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--sunset-orange);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--accent-white);
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

.logo-sm img {
  height: 100px;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navbar-background);
    flex-direction: column;
    display: none;
    text-align: center;
    padding: 1rem 0;
  }

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



    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
      background-color: var(--primary);
      color: var(--accent-white);
      padding: 0.75rem 1.5rem;
      border-radius: var(--border-radius);
      font-weight: bold;
      transition: background-color var(--transition-speed) ease;
      text-decoration: none;
    }


    a.btn:hover,
    .mobile-cta a:hover {
      opacity: 0.85;
      color: var(--sunset-orange);
    }
    
    .cta {
        text-align: center;
    }

    .cta .btn {
      padding: 0.75rem 1.5rem;
    }

    .btn:hover {
      background-color: var(--primary-dark);
    }

    a:hover {
        text-decoration: none;
        color: var(--sunset-orange);
    }

    .open-status {
        margin-top: 1rem;
        font-size: 1rem;
    }

    section {
      max-width: 900px;
      margin: 3rem auto;
      padding: 0 20px;
      background-color: var(--section-background);
    }

    section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      text-align: center;
      color: var(--primary-dark);
    }

    #about {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2rem;
        padding: 3rem 20px;
        background-color: var(--section-background);
        max-width: 1000px;
        margin: auto;
    }

    .about-content {
        flex: 1 1 500px;
    }

    #about h2 {
        font-size: 2.5rem;
    }

    #about p {
      font-size: 1.05rem;
      line-height: 1.6;
      color: var(--text-dark);
      margin-bottom: 1rem;
      text-align: center;
    }

    #about blockquote {
        font-style: italic;
        color: var(--text-dark);
        padding-left: 1rem;
        margin: 2rem 0;
        text-align: center;
        border-left: 4px solid var(--coffee-brown);
    }

    .quote-author {
        display: block;
        font-weight: bold;
        margin-top: 0.5rem;
    }

    .about-image img {
        width: 100%;
        border-radius: var(--border-radius);
        max-width: 400px;
        height: auto;
        object-fit: cover;
    }

    #menu {
      background-color: #f9f9f9;
      padding: 3rem 20px;
      max-width: 1000px;
      margin: auto;
      text-align: center;
    }

    #menu h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    #category-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: var(--section-accent);
  border: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background-color var(--transition-speed) ease;
}

.tab-btn:hover {
  background-color: var(--section-background);
  color: var(--sunset-orange);
}

.tab-btn.active {
  background-color: var(--sunset-orange); 
  color: var(--accent-white);
}


    .menu-container {
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .menu-column {
      flex: 1 1 45%;
      min-width: 280px;
    }

    
    .menu-item {
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--section-accent);
  display: flex;
  flex-direction: column;
}

.menu-item strong {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.menu-item small {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.item-name {
  font-weight: 600;
  color: var(--text-dark);
}

.item-price {
  color: var(--forest-green);
  font-weight: bold;
  white-space: nowrap;
}

.item-description {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.4rem;
}
    
    .menu-note {
        font-size: 1rem;
        color: var(--text-dark);
        margin-top: 2rem;
    }

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

    .best-seller {
      color: var(--primary-dark);
      font-style: italic;
      font-weight: 600;
      margin-left: 6px;
    }

    .order-online {
      background: #fff8f8;
      padding: 2.5rem 1.5rem;
      margin: 4rem auto 2rem;
      border: 1px solid #f1c0c0;
      max-width: 600px;
      border-radius: var(--border-radius);
      box-shadow: 0 2px 10px rgba(198, 40, 40, 0.05);
    }

    .order-online h2 {
      margin-bottom: 1.5rem;
      font-size: 2rem;
    }

    .order-online form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .order-online label {
      font-weight: bold;
      font-size: 0.95rem;
      display: flex;
      flex-direction: column;
    }

    .order-online input,
    .order-online textarea,
    .order-online select {
      font-family: 'Quicksand', sans-serif;
      padding: 0.6rem;
      border-radius: var(--border-radius);
      border: 1px solid #ddd;
      font-size: 1rem;
      margin-top: 0.2rem;
      background-color: #fff;
    }

    .order-online textarea {
      min-height: 100px;
    }

    .order-online button {
      background-color: var(--primary);
      color: white;
      padding: 0.75rem;
      font-size: 1.1rem;
      font-weight: bold;
      border: none;
      border-radius: var(--border-radius);
      cursor: pointer;
      transition: background-color var(--transition-speed) ease; 
    }

    .order-online button:hover {
      background-color: var(--primary-dark);
    }

    .order-online .note {
      font-size: 0.9rem;
      color: var(--text-light);
      text-align: center;
      margin-top: 0.5rem;
    }

    .slideshow-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.slideshow-heading {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: var(--section-background, #f8f8f8);
}

.slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-speed) ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background var(--transition-speed) ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  color: var(--sunset-orange);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .slideshow {
    aspect-ratio: auto;
    height: auto;
  }

  .slide img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .nav-btn {
    font-size: 1.5rem;
  }
}


    #contact {
      text-align: center;
      padding: 3rem 20px;
    }
    #contact p {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: #555;
    }
    #contact .btn {
      background-color: var(--primary);
      border-radius: var(--border-radius);
      font-weight: bold;
      transition: background-color var(--transition-speed) ease;
      display: inline-block;
      margin-top: 1rem;
      text-decoration: none;
    }
    #contact .btn:hover {
      background-color: var(--primary-dark);
      color: var(--sunset-orange);
    }


    .responsive-iframe {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* Aspect ratio 16:9 */
        height: 0;
        overflow: hidden;
        border-radius: var(--border-radius);
    }

    .responsive-iframe iframe {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    .map-container {
        max-width: 600px;
        margin: 2rem auto;
    }

    #testimonials {
        background-color: var(--section-background);
        padding: 3rem 30px;
        text-align: center;
        position: relative;
    }

    #testimonials h2 {
      font-size: 2rem;
      margin-bottom: 2rem;
    }

    .testimonial-carousel {
        max-width: 700px;
        margin: auto;
        position: relative;
    }

    .testimonial {
        display: none;
        padding: 1.5rem;
        background-color: #fff;
        border-left: 4px solid var(--primary);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        border-radius: var(--border-radius);
        transition: opacity var(--transition-speed) ease-in-out;
    }

    .testimonial.active {
        display: block;
    }

    .testimonial blockquote {
      font-style: italic;
      font-size: 1.1rem;
      color: #444;
      margin: 1rem 0;
    }

    .testimonial cite {
        font-weight: bold;
        color: #333;
    }

    .stars {
        width: 100px;
        margin-bottom: 1rem;
    }

    .source-badge {
        display: inline-block;
        margin-top: 0.5rem;
        font-size: 0.9rem;
        font-weight: bold;
        color: #555;
        background: #eee;
        padding: 0.3rem 0.7rem;
        border-radius: var(--border-radius);
    }

    .source-badge.google {
        background-color: #f1f6ff;
        color: #1a73e8;
    }

    .testimonial-controls {
        margin-top: 1rem;
    }

    .testimonial-controls button {
        background: none;
        border: none;
        font-size: 2rem;
        color: #c59d5f;
        cursor: pointer;
        margin: 0 0.5rem;
        transition: color var(--transition-speed) ease;
    }

    .testimonial-controls button:hover {
        color: var(--sunset-orange);
    }

    footer {
      background-color: var(--coffee-brown);
      color: var(--accent-white);
      text-align: center;
      padding: 1.5rem 20px;
      font-size: 0.9rem;
      margin-top: 3rem;
      margin-bottom: 50px;
    }

    .mobile-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        background-color: var(--primary);
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--primary-dark);
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        overflow-x: hidden;
    }

    .mobile-cta a {
        color: var(--accent-white);
        font-size: 0.95rem;
        font-weight: bold;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.3rem;
        transition: opacity var(--transition-speed) ease;
        min-width: 0;
        flex: 1;
        word-break: break-word;
    }

    .mobile-cta a:hover {
        opacity: 0.8;
        color: var(--sunset-orange);
    }

    .social-media {
        text-align: center;
        padding: 2rem 1rem;
        background-color: #fafafa;
    }
    .social-media h2 {
        margin-bottom: 1rem;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        color: #fff;
        text-decoration: none;
        transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
    .social-icon .icon {
        width: 28px;
        height: 28px;
    }

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
  color: var(--sunset-orange);
}

    /* Responsive */
    @media (max-width: 768px) {
        #about {
            flex-direction: column;
            text-align: center;
            padding: 2rem 1rem;
        }
        .menu-column {
            flex: 1 1 100%;
            min-width: 100%;
        }
        .about-image img {
            max-width: 300px;
            margin: 0 auto;
        }
    }
    @media (min-width: 768px) {
        .mobile-cta {
            display: none;
        }

        footer {
            margin-bottom: 0;
        }
    }

    @media (max-width: 600px) {
      .menu-grid {
        flex-direction: column;
      }
      .menu-column {
        flex-basis: 1 1 45%;
        min-width: 280px;
      }
      .order-online input,
      .order-online textarea,
      .order-online select {
        font-size: 0.95rem;
        width: 100%;
      }
      .testimonial {
        padding: 1rem;
      }
      .stars {
        width: 80px;
      }
      .map-container {
        padding: 0 10px;
      }

      .slide img {
        object-fit: cover;
      }
      .slideshow {
        aspect-ratio: 4 / 3;
      }
   
    }

    @media (max-width: 480px) {
        .btn {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }
        .logo {
            width: 200px;
        }
        .social-icon {
            width: 50px;
            height: 50px;
        }
        .slide img {
            object-fit: cover;
            object-position: center bottom;
        }
        .logo-sm img {
            height: 50px;
        }
    }
    @media (max-width: 400px) {
        section {
            padding: 0 10px;
        }
        .mobile-cta a {
            font-size: 0.8rem;
        }
        
    }

.toast {
  visibility: hidden;
  min-width: 250px;
  margin: 0 auto;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: var(--border-radius);  
  padding: 16px;
  position: fixed;
  bottom: 30px;
  left: 0; right: 0;
  z-index: 1000;
  font-size: 16px;
  opacity: 0;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

.toast.error {
  background-color: #c0392b;
}