/* ============================================
   More i Vino - Restaurant & Bar
   Color palette derived from restaurant imagery
   ============================================ */

:root {
  --color-teal: #1B3A4B;
  --color-burgundy: #7A2328;
  --color-cream: #F5F0E8;
  --color-wood: #6B4226;
  --color-stone: #D4C5B2;
  --color-dark: #121212;
  --color-gold: #C9A96E;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #E8E0D5;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  --section-padding: 100px 0;
  --container-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(27, 58, 75, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo img {
  height: 50px;
  transition: height 0.4s ease;
}

.navbar.scrolled .nav-logo img {
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

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

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.lang-toggle span {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.lang-toggle span.active {
  opacity: 1;
  font-weight: 700;
}

.lang-toggle .lang-divider {
  opacity: 0.5;
}

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

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.3) 0%,
    rgba(18, 18, 18, 0.1) 40%,
    rgba(18, 18, 18, 0.5) 80%,
    rgba(18, 18, 18, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.hero-logo {
  width: 380px;
  max-width: 80vw;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   Section Common
   ============================================ */

.section {
  padding: var(--section-padding);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-burgundy);
  margin: 0 auto 20px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background-color: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.about-image::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-burgundy);
  border-radius: 4px;
  z-index: -1;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

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

.about-feature .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-burgundy);
  font-weight: 700;
}

.about-feature .label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   Dishes Section
   ============================================ */

.dishes {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.dishes .section-header h2 {
  color: var(--color-white);
}

.dishes .section-header p {
  color: var(--color-stone);
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dish-card:hover img {
  transform: scale(1.08);
}

.dish-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}

.dish-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

/* ============================================
   Team Section
   ============================================ */

.team {
  background-color: var(--color-cream);
}

.team-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.team-photo {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.team-info .role {
  font-size: 0.9rem;
  color: var(--color-burgundy);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}

.team-info p {
  color: #555;
  line-height: 1.9;
}

.team-info blockquote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--color-burgundy);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-teal);
}

/* ============================================
   Reservation Section
   ============================================ */

.reservation {
  background: linear-gradient(135deg, var(--color-teal) 0%, #142e3b 100%);
  color: var(--color-white);
}

.reservation .section-header h2 {
  color: var(--color-white);
}

.reservation .section-header p {
  color: var(--color-stone);
}

.reservation-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: var(--color-stone);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.12);
}

.form-group select option {
  background-color: var(--color-teal);
  color: var(--color-white);
}

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

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 16px 40px;
  margin-top: 10px;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #8f2a30;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--color-dark);
  color: var(--color-text-light);
  padding: 0;
}

.footer-map {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
  filter: grayscale(0.3) contrast(1.1);
}

.footer-content {
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col li {
  color: #999;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-col a {
  color: #999;
  transition: color 0.3s ease;
}

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

.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-col li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  color: var(--color-burgundy);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.footer-legal a {
  color: #666;
  margin-left: 20px;
}

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

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 20px;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 1px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 12px;
  transition: color 0.2s ease;
  z-index: 2001;
}

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

/* ============================================
   Scroll Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    gap: 40px;
  }

  .team-card {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: rgba(27, 58, 75, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

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

  .hamburger {
    display: flex;
  }

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

  /* Hero */
  .hero-logo {
    width: 260px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  /* Section Headers */
  .section-header h2 {
    font-size: 2.1rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .about-image::after {
    display: none;
  }

  /* Dishes */
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Team */
  .team-card {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .team-photo img {
    height: 350px;
  }

  .team-info blockquote {
    text-align: left;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    flex-direction: column;
    gap: 16px;
  }

  .hero-logo {
    width: 200px;
  }
}
