/* 
   KAV Bistro - Premium Green Style 
   Theme: Botanical, Eco-Luxury, Serene 
*/

:root {
  /* Color Palette */
  --color-forest: #1A3C34;
  --color-forest-dark: #0D2620;
  --color-olive: #556B2F;
  --color-sage: #9DC183;
  --color-sage-light: #E1EBE2;
  --color-beige: #EADDCA;
  --color-gold: #C5A065;
  --color-white: #FFFFFF;
  --color-off-white: #F8F9F5;
  --color-text-main: #2C2C2C;
  --color-text-muted: #666666;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing & Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-off-white);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.no-scroll {
  overflow: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-forest);
  font-weight: 600;
}

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

ul {
  list-style: none;
}

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

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.section-title {
  font-size: 2.5rem;
  /* Responsive adjustment needed */
  color: var(--color-forest);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

.btn-primary:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 60, 52, 0.3);
}

.btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn-text {
  color: var(--color-forest);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding: 0;
  border-radius: 0;
}

.btn-text:hover {
  border-bottom-color: var(--color-forest);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  /* Initially almost transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-logo {
  height: 50px;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-close-btn {
  display: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-off-white);
  position: relative;
}

.nav-link:not(.nav-cta)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2C4A42;
  transition: width 0.3s ease;
}

.nav-link:not(.nav-cta):hover::after {
  width: 100%;
}

/* Change nav color on scroll */
.navbar.scrolled .nav-link {
  color: var(--color-forest);
}

.nav-cta {
  border: 1px solid var(--color-gold);
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--color-gold) !important;
  transition: background-color 0.3s;
}

.nav-cta:hover {
  background-color: var(--color-gold);
  color: white !important;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  justify-content: space-between;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  transition: 0.3s;
  border-radius: 2px;
}

.navbar.scrolled .bar {
  background-color: var(--color-forest);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  /* Placeholder fallback */
  background-color: var(--color-forest);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using neutral name and relative path */
  background-image: url('assets/main_bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 60, 52, 0.4), rgba(26, 60, 52, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-logo-img {
  height: 100px;
  width: auto;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 10px;
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--color-sage-light);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: var(--color-white);
  font-size: 1.5rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 200px 200px 20px 20px;
  /* Organic vibe */
  overflow: hidden;
  box-shadow: 20px 20px 0 var(--color-sage-light);
}

.about-image img {
  width: 100%;
  transition: transform var(--transition-smooth);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Menu Highlights */
.menu-highlights {
  background-color: var(--color-white);
}

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

.menu-card {
  background: var(--color-off-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.menu-img-wrapper {
  height: 250px;
  overflow: hidden;
}

.menu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.menu-card:hover .menu-img {
  transform: scale(1.05);
}

.menu-details {
  padding: 25px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: baseline;
}

.menu-header h3 {
  font-size: 1.25rem;
  color: var(--color-forest);
}

.price {
  font-weight: 600;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.menu-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.hidden-menu-item {
  display: none;
}

.menu-cta-card {
  background-color: var(--color-forest);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.menu-cta-content h3 {
  color: var(--color-white);
  margin-bottom: 15px;
}

.menu-cta-content p {
  color: var(--color-sage-light);
  margin-bottom: 25px;
}

.menu-cta-content .btn-primary {
  background-color: var(--color-gold);
}

.menu-cta-content .btn-primary:hover {
  background-color: white;
  color: var(--color-forest);
}

/* Philosophy */
.philosophy {
  background-color: var(--color-sage-light);
  clip-path: ellipse(150% 100% at 50% 100%);
  /* Subtle curve top */
  padding-top: 150px;
  margin-top: -50px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.philosophy-item .icon-box {
  width: 80px;
  height: 80px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 2rem;
  color: var(--color-olive);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.philosophy-item:hover .icon-box {
  transform: scale(1.1);
  color: var(--color-gold);
}

.philosophy-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.philosophy-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  grid-auto-rows: 250px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

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

/* Visit Us */
.visit {
  padding-bottom: 0;
}

.visit-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.visit-info {
  padding: 60px;
}

.visit-info .address {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-muted);
}

.visit-info h4 {
  color: var(--color-forest);
  margin-bottom: 10px;
}

.hours {
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.reservation-form h3 {
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

input,
select {
  width: 100%;
  padding: 12px;
  background-color: var(--color-white);
  appearance: none;
  -webkit-appearance: none;
  /* Fix iOS default */
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--color-olive);
}

.map-wrapper {
  height: 100%;
  min-height: 400px;
}

/* Footer */
.footer {
  background-color: var(--color-forest-dark);
  color: var(--color-white);
  padding: 80px 0 30px 0;
  margin-top: 100px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

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

.footer-brand p {
  color: var(--color-sage);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

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

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer-socials a:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

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

/* Animations (Classes to be toggled by JS) */
.reveal-up,
.reveal-left,
.reveal-right,
.fade-in-up {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.active.reveal-up {
  opacity: 1;
  transform: translateY(0);
}

.active.reveal-left {
  opacity: 1;
  transform: translateX(0);
}

.active.reveal-right {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Instagram Section */
.instagram-section {
  background-color: var(--color-off-white);
  padding-bottom: 50px;
}


.insta-embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  /* Crop the overflow */
  position: relative;
  /* Needed for the overlay */
  padding-bottom: 0;
  /* Adjust padding if needed */
}

/* Aggressive Cover-up for Elfsight Branding */
.insta-embed-container::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 40px;
  /* Reduced height to show more content */
  background-color: var(--color-off-white);
  /* Match section bg */
  z-index: 50;
  pointer-events: none;
  /* Let clicks pass through if needed, though this covers it */
}

/* Crop Hack for Elfsight Branding */
.elfsight-app-3999b951-65c5-4f07-b4b5-aa9ff57ce173 {
  width: 100%;
  margin-bottom: 0px;
  /* Reset negative margin */
  position: relative;
  z-index: 1;
}


.btn-dark-outline {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

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

/* Hide Elfsight Branding */
.eapps-link,
a[href*="elfsight.com"],
.elfsight-app-3999b951-65c5-4f07-b4b5-aa9ff57ce173>a {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  font-size: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-bg {
    background-image: url('assets/main_bg_mobile.webp');
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: none;
    z-index: 1001;
    /* Above navbar */
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-close-btn {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: var(--color-forest);
    cursor: pointer;
    transition: 0.3s;
  }

  .nav-close-btn:hover {
    transform: rotate(90deg);
    color: var(--color-gold);
  }

  .nav-link {
    color: var(--color-text-main);
    font-size: 1.2rem;
  }

  .nav-cta {
    color: var(--color-forest) !important;
    border-color: var(--color-forest);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active {
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle .bar {
    background-color: var(--color-white);
  }

  /* Default white on hero */
  .navbar.scrolled .nav-toggle .bar {
    background-color: var(--color-forest);
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    border-radius: 20px;
    box-shadow: 10px 10px 0 var(--color-sage-light);
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .visit-info {
    padding: 30px;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .map-wrapper {
    height: 300px;
    min-height: 300px;
  }

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

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer-links {
    gap: 20px;
    font-size: 0.9rem;
  }


}