/* Jp's Liquor - Static Site Styles */
:root {
  --primary: #010102;
  --accent: rgb(58, 7, 124);
  --accent-light: #ffe066;
  --white: #fff;
  --text: #232946;
  --radius: 18px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Enhanced responsive design system */
  --header-height: clamp(60px, 8vh, 80px);
  --nav-padding: clamp(8px, 2vw, 16px);
  --nav-gap: clamp(12px, 3vw, 24px);
  --nav-font-size: clamp(14px, 2.5vw, 18px);
  --nav-padding-y: clamp(8px, 2vh, 12px);
  --nav-padding-x: clamp(12px, 3vw, 20px);
  
  /* Responsive font sizes with better scaling */
  --fs-small: clamp(0.875rem, 2vw, 1rem);
  --fs-base: clamp(1rem, 2.5vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 3vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 4vw, 2rem);
  --fs-2xl: clamp(2rem, 5vw, 3rem);
  
  /* Breakpoint variables for consistent media queries */
  --bp-mobile: 480px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1200px;
}

* {
  box-sizing: border-box;
}

/* Modern solution: Prevent fixed header from overlapping content and anchor links */
html {
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}

/* Ensure anchor links don't hide behind fixed header */
[id] {
  scroll-margin-top: var(--header-height);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--primary);
  color: var(--text);
  margin: 0;
  padding: var(--header-height) 0 0 0;
  min-height: 100vh;
  font-size: var(--fs-base);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

/* Enhanced Responsive Header with Mobile-First Approach */
.header {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 12px rgba(5, 5, 5, 0.1);
  border-bottom: 3px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  height: var(--header-height);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-visible {
  transform: translateY(0);
}

.header-hidden {
  transform: translateY(-100%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--nav-padding);
  position: relative;
  width: 100%;
}

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

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--nav-gap);
  margin: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--nav-font-size);
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Mobile Menu Toggle - Hidden by default, shown on mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
  .navbar {
    justify-content: space-between;
    padding: 0 var(--nav-padding);
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
    font-size: var(--fs-lg);
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-container {
    justify-content: space-between;
  }
}

/* Tablet Navigation Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-menu {
    gap: clamp(16px, 2.5vw, 24px);
  }
  
  .nav-link {
    font-size: clamp(14px, 2.2vw, 16px);
    padding: clamp(10px, 2vh, 12px) clamp(14px, 2.5vw, 18px);
  }
}

/* Desktop Navigation Styles */
@media (min-width: 1024px) {
  .nav-menu {
    gap: clamp(24px, 3vw, 40px);
  }
  
  .nav-link {
    font-size: var(--nav-font-size);
    padding: var(--nav-padding-y) var(--nav-padding-x);
  }
  
  .nav-link:hover {
    transform: translateY(-2px);
  }
}

/* Wide Desktop Navigation Styles */
@media (min-width: 1200px) {
  .navbar {
    padding: 0 clamp(24px, 4vw, 40px);
  }
  
  .nav-menu {
    gap: clamp(32px, 4vw, 48px);
  }
}

/* Hero Section - Enhanced for all devices with proper mobile cropping */
.hero.hero-image-bg {
  background: #000 !important;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.hero-content {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.hero-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* About Section - Enhanced responsive design */
.about-section {
  background: linear-gradient(120deg, #bb99dd 43%, rgb(60, 0, 129) 100%);
  padding: clamp(32px, 6vw, 48px) 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(123, 30, 58, 0.04);
  margin: clamp(32px, 6vw, 48px) 0;
}

.about-content h2 {
  color: var(--primary);
  font-size: var(--fs-2xl);
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}

.about-section p {
  text-align: center;
  margin: 0 auto;
  color: #000;
  max-width: 800px;
  font-size: var(--fs-base);
  padding: 0 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 4vw, 32px);
  margin-top: clamp(24px, 4vw, 32px);
  padding: 0 20px;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: clamp(16px, 3vw, 24px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: var(--fs-lg);
}

.feature p {
  color: var(--text);
  font-size: var(--fs-base);
}

/* Contact Section - Enhanced for mobile */
.contact-section {
  background: linear-gradient(120deg, #bb99dd 43%, rgb(60, 0, 129) 100%);
  padding: clamp(32px, 6vw, 56px) 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(123, 30, 58, 0.04);
  margin-bottom: clamp(32px, 6vw, 64px);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 5vw, 48px);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info,
.contact-form {
  width: 100%;
  max-width: 100%;
}

.contact-info {
  background: #fff;
  border-radius: 32px !important;
  border: 2.5px solid #e0e0e0 !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  padding: clamp(16px, 3vw, 24px) !important;
  color: #000;
  font-size: var(--fs-base);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-info p,
.contact-info h4 {
  font-size: var(--fs-base);
  line-height: 1.4;
  margin: 8px 0;
}

.contact-info h3,
.contact-form h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 28px;
  text-align: center;
  color: var(--primary);
}

.contact-info h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 18px 0 10px 0;
  color: var(--primary);
}

/* Enhanced Contact Form */
.contact-form {
  padding: clamp(20px, 4vw, 28px) clamp(16px, 3vw, 24px) !important;
  border-radius: 32px !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  background: #fff;
  margin: 0 auto;
  color: #000;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid #e0e0e0;
  font-size: var(--fs-base);
  background: #f4f4f6;
  color: var(--text);
  transition: border var(--transition);
  min-height: 44px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
  border-color: #e74c3c;
}

.contact-form input:valid,
.contact-form textarea:valid {
  border-color: #27ae60;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-button {
  background: #fff !important;
  color: #232946 !important;
  border: 2px solid var(--accent);
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border 0.2s;
  border-radius: 32px !important;
  padding: 14px 36px !important;
  font-size: var(--fs-base);
  min-height: 48px;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--accent) !important;
  color: #232946 !important;
  border: 2px solid #fff;
}

/* Footer - Enhanced responsive design */
.footer {
  background: rgba(35, 41, 70, 0.30);
  color: var(--accent);
  padding: clamp(32px, 5vw, 48px) 0 0 0;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 12px rgba(35, 41, 70, 0.10);
}

.footer-content {
  display: flex;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 24px;
  text-align: center;
}

.footer-section {
  flex: 1 1 280px;
  margin-bottom: 24px;
  text-align: center;
}

.footer-section h4 {
  color: #ae00ff !important;
  margin-bottom: 12px;
  font-size: var(--fs-lg);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.social-links a {
  color: var(--accent);
  font-size: 1.5rem;
  transition: color var(--transition);
  padding: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1.5px solid var(--accent);
  text-align: center;
  padding: 18px 0;
  color: #ae00ff;
  font-size: var(--fs-small);
}

/* ===== ENHANCED RESPONSIVE MEDIA QUERIES ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  
  .hero-content img {
    object-fit: cover;
  }
}

/* Desktop/Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait & Small Laptop (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .hero.hero-image-bg,
  .hero-content {
    height: 70vh;
    min-height: 70vh;
  }
  
  .hero-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .nav-menu {
    gap: 24px;
  }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero.hero-image-bg,
  .hero-content {
    height: calc(75vh - var(--header-height)) !important;
    height: calc(75dvh - var(--header-height)) !important;
    min-height: calc(75vh - var(--header-height)) !important;
    min-height: calc(75dvh - var(--header-height)) !important;
  }
  
  .hero-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  
  .navbar {
    padding: 0 16px;
  }
  
  .nav-menu {
    gap: 16px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
  .hero.hero-image-bg,
  .hero-content {
    height: calc(80vh - var(--header-height)) !important;
    height: calc(80dvh - var(--header-height)) !important;
    min-height: calc(80vh - var(--header-height)) !important;
    min-height: calc(80dvh - var(--header-height)) !important;
  }
  
  .hero-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  
  .navbar {
    flex-direction: row;
    min-height: auto;
    padding: 12px 16px;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 0;
  }
  
  .nav-link {
    padding: 16px 20px;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    font-size: var(--fs-lg);
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }
  
  .contact-info,
  .contact-form {
    padding: 16px 12px !important;
  }
  
  .social-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Extra Small Mobile (max 374px) */
@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }
  
  .hero.hero-image-bg,
  .hero-content {
    height: calc(70vh - var(--header-height)) !important;
    height: calc(70dvh - var(--header-height)) !important;
    min-height: calc(70vh - var(--header-height)) !important;
    min-height: calc(70dvh - var(--header-height)) !important;
  }
  
  .hero-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  
  .about-section,
  .contact-section {
    margin: 20px 0;
    border-radius: 12px;
  }
  
  .features {
    padding: 0 12px;
    gap: 12px;
  }
  
  .contact-content {
    padding: 0 8px;
  }
  
  .contact-info,
  .contact-form {
    padding: 12px 8px !important;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero.hero-image-bg,
  .hero-content {
    height: calc(90vh - var(--header-height)) !important;
    height: calc(90dvh - var(--header-height)) !important;
    min-height: calc(90vh - var(--header-height)) !important;
    min-height: calc(90dvh - var(--header-height)) !important;
  }
  
  .hero-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  
  .navbar {
    min-height: 60px;
  }
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  .hero.hero-image-bg {
    height: auto;
    min-height: auto;
  }
  
  body {
    background: white;
    color: black;
  }
} 