/* =============================================
   KV Mobile Bartending - Refined Speakeasy Theme
   ============================================= */

:root {
  /* Color Palette - Warm, sophisticated */
  --color-dark: #1C1917;
  --color-charcoal: #292524;
  --color-warm: #44403C;
  --color-amber: #C4956A;
  --color-gold: #D4A574;
  --color-cream: #FAF7F2;
  --color-ivory: #F5F1EB;
  --color-text: #44403C;
  --color-text-light: #78716C;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain Overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  max-width: 60ch;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-full {
  padding: 0 var(--space-md);
}

/* Section Tags */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}

.section-header {
  margin-bottom: var(--space-lg);
}

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

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
  background: linear-gradient(to bottom, rgba(28, 25, 23, 0.9), transparent);
  transition: background 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.65rem 1.5rem;
  background: var(--color-amber);
  color: var(--color-dark) !important;
  border-radius: 2px;
  opacity: 1 !important;
  transition: background 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
}

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.5) 0%,
    rgba(28, 25, 23, 0.7) 50%,
    rgba(28, 25, 23, 0.85) 100%
  );
}

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

.hero-content {
  position: relative;
  text-align: center;
  color: var(--color-cream);
  padding: var(--space-md);
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-line {
  width: 60px;
  height: 1px;
  background: var(--color-amber);
  margin: 0 auto var(--space-md);
  opacity: 0;
  animation: scaleIn 0.8s var(--ease-out) 0.9s forwards;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.75);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-dark);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.btn-primary:hover {
  background: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(196, 149, 106, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   Intro Section
   ============================================= */
.intro {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  margin-bottom: var(--space-md);
  font-style: italic;
}

.intro p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* =============================================
   Services Section
   ============================================= */
.services {
  padding: var(--space-2xl) 0;
  background: var(--color-ivory);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--color-cream);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.1);
}

.service-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.2), transparent);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.service-content {
  padding: var(--space-md);
}

.service-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

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

/* =============================================
   Why Choose Us Section
   ============================================= */
.why-us {
  padding: var(--space-2xl) 0;
  background: var(--color-dark);
  color: var(--color-cream);
}

.why-us-layout {
  display: grid;
  gap: var(--space-xl);
}

.why-us-header {
  max-width: 500px;
}

.why-us-header h2 {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.why-us-header p {
  color: rgba(250, 247, 242, 0.7);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.why-card {
  padding: var(--space-md);
  background: rgba(250, 247, 242, 0.03);
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: 4px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.why-card:hover {
  background: rgba(250, 247, 242, 0.06);
  border-color: rgba(196, 149, 106, 0.3);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin-bottom: var(--space-sm);
  border-radius: 4px;
  overflow: hidden;
}

.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card h3 {
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
  font-size: 1.2rem;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.65);
}

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
}

.testimonials-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: var(--space-lg);
}

.testimonials-slider {
  position: relative;
  min-height: 180px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0.6s;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--color-dark);
  margin: 0 auto var(--space-md);
  max-width: 650px;
}

.testimonial cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--color-amber);
  letter-spacing: 0.05em;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-amber);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--color-amber);
}

/* =============================================
   Cocktails Section
   ============================================= */
.cocktails {
  padding: var(--space-2xl) 0;
  background: var(--color-ivory);
}

.cocktails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.cocktail-card {
  background: var(--color-cream);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.cocktail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(28, 25, 23, 0.1);
}

.cocktail-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.cocktail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out);
}

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

.cocktail-content {
  padding: var(--space-md);
  text-align: center;
}

.cocktail-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.cocktail-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 auto;
}

/* =============================================
   Gallery Section
   ============================================= */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--color-dark);
}

.gallery .section-tag,
.gallery h2 {
  color: var(--color-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: var(--space-lg);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0);
  transition: background 0.4s ease;
}

.gallery-item:hover::after {
  background: rgba(28, 25, 23, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out);
}

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

/* =============================================
   Contact Section
   ============================================= */
.contact {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-charcoal), var(--color-dark));
  color: var(--color-cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.contact-content h2 {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.contact-content p {
  color: rgba(250, 247, 242, 0.7);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: block;
  padding: var(--space-md);
  background: rgba(250, 247, 242, 0.03);
  border: 1px solid rgba(250, 247, 242, 0.1);
  border-radius: 4px;
  transition: all 0.4s var(--ease-out);
}

.contact-item:hover {
  background: rgba(250, 247, 242, 0.06);
  border-color: var(--color-amber);
  transform: translateX(8px);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 500;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: var(--space-lg) 0;
  background: var(--color-dark);
  border-top: 1px solid rgba(250, 247, 242, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-amber);
  letter-spacing: 0.05em;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.35);
}

/* =============================================
   Modal
   ============================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: 50%;
  color: var(--color-cream);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(250, 247, 242, 0.1);
  border-color: var(--color-cream);
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-header {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .contact-item {
    padding: var(--space-sm);
  }

  .contact-value {
    font-size: 1rem;
  }
}

/* =============================================
   Recipes Page
   ============================================= */

/* Dark nav variant for light pages */
.nav-dark {
  background: var(--color-dark);
}

/* Page Header */
.page-header {
  padding: 10rem 0 var(--space-xl);
  background: var(--color-dark);
  color: var(--color-cream);
  text-align: center;
}

.page-header h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* Recipes Grid */
.recipes-page {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-cream);
}

.recipes-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Recipe Card */
.recipe-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-lg);
  background: var(--color-ivory);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.1);
}

.recipe-img {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.recipe-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.recipe-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

.recipe-details {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-md);
}

.recipe-ingredients h3,
.recipe-instructions h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-ingredients li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.recipe-ingredients li:last-child {
  border-bottom: none;
}

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

/* Responsive Recipes */
@media (max-width: 900px) {
  .recipe-card {
    grid-template-columns: 1fr;
  }

  .recipe-img {
    min-height: 250px;
  }

  .recipe-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 8rem 0 var(--space-lg);
  }

  .recipe-content h2 {
    font-size: 1.5rem;
  }
}
