/* Import all modules */
@import url('./components/social.css');
@import url('./utilities/variables.css');
@import url('./utilities/animations.css');
@import url('./components/header.css?v=20251103_032000');
@import url('./components/hero.css?v=MOBILE_OPT_V1');
@import url('./components/services.css');
@import url('./components/gallery.css');
@import url('./components/reviews.css');
@import url('./components/about.css');
@import url('./components/contact.css');
@import url('./components/location.css');
@import url('./components/floor-plan.css');
@import url('./components/footer.css');
@import url('./utilities/responsive.css');

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

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

body {
  font-family: var(--font-family-primary);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

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

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Remove focus outline from Swiper buttons */
.swiper-button-next:focus,
.swiper-button-prev:focus,
.swiper-pagination-bullet:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: var(--font-size-base);
  position: relative;
  overflow: hidden;
}

/* FIXED ERROR #1: Completed the gradient line */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), #1e3a8a);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loaded {
  opacity: 1;
  pointer-events: auto;
}

/* App States */
.app-loaded .fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.app-error {
  /* Fallback styles for error state */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode variables would go here */
}

/* ============================================
   CIRCUIT BOARD BACKGROUND PATTERN
   Consistent Across All Sections
   ============================================ */

.stats-section {
  position: relative;
  overflow: hidden;
  background: #3b82f6 !important;
  /* Solid blue matching Social section */
  color: white;
}

/* About Section - No circuit pattern */
.about::before {
  display: none !important;
}

/* Location Map Section - No circuit pattern */
.location-map::before {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
}

/* Lunch break styling */
.hours-item.lunch-break {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
}

.hours-item.lunch-break span:last-child {
  color: #d97706;
}

/* ====================================================
   FULL WIDTH FIX - CORRECTED FOR MOBILE MENU
   ==================================================== */

/* Ensure html and body are full width */
html {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
}

/* ONLY hide overflow on sections that need it, NOT on body */
section {
  overflow-x: hidden;
  position: relative;
}

/* Force all major sections to be full width */
header,
footer,
section,
.hero,
.services,
.gallery,
.reviews,
.about,
.contact-form-section,
.location-map,
.social-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Don't force padding on sections */
header,
footer,
section {
  padding-left: 0;
  padding-right: 0;
}

/* Ensure content containers are centered but sections are full */
section>.container,
header .container,
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fix header specifically - CRITICAL for mobile menu */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  z-index: 1000;
  overflow: visible !important;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Ensure mobile menu dropdown is visible */
.nav-links {
  overflow: visible !important;
}

/* When mobile menu is open, prevent body scroll but don't hide menu */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Fix footer specifically */
footer {
  position: relative;
  left: 0;
  right: 0;
  width: 100% !important;
  background: var(--bg-dark);
}

/* Ensure no elements create horizontal overflow */
* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Remove any accidental margins/padding on main wrappers */
#root,
#app,
main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ============================================
   STORE STATUS DROPDOWN STYLING
   ============================================ */

/* Store status positioning */
.store-status {
  position: relative;
  overflow: visible !important;
  z-index: 1001;
  cursor: pointer;
}

/* Store status dropdown */
.store-status-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 350px;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  overflow: hidden;
  pointer-events: none;
}

/* When dropdown is open */
.store-status.dropdown-open .store-status-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Dropdown sections */
.dropdown-header {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 20px;
}

.dropdown-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-brand-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dropdown-brand-tagline {
  font-size: 12px;
  opacity: 0.9;
}

.dropdown-current-status {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.status-icon {
  font-size: 28px;
  flex-shrink: 0;
}

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

.status-main {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.status-sub {
  font-size: 13px;
  color: #6b7280;
}

.dropdown-hours-section {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-hours-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.dropdown-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: #4b5563;
}

.dropdown-hours-list li.today {
  background: rgba(59, 130, 246, 0.05);
  margin: 0 -12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.day-name {
  font-weight: 500;
}

.hours-time {
  color: #059669;
  font-weight: 600;
}

.closed {
  color: #dc2626;
  font-weight: 600;
}

.lunch-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef3c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
}

.lunch-note-icon {
  font-size: 16px;
}

.dropdown-actions {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dropdown-action-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.dropdown-action-btn.secondary {
  background: #f3f4f6;
  color: #3b82f6;
}

.dropdown-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-action-btn-icon {
  font-size: 20px;
}

.dropdown-footer {
  padding: 16px 20px;
  background: #f9fafb;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.footer-icon {
  font-size: 14px;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  header {
    overflow: visible !important;
  }

  .nav-links {
    overflow: visible !important;
    width: 100% !important;
  }

  body.menu-open {
    overflow: hidden !important;
    height: 100vh;
  }

  /* Store dropdown on mobile */
  .store-status-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: 0;
    width: calc(100% - 20px);
  }
}

/* Emergency footer fix */
footer .footer-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
}