/* =================================================================
   Modern Responsive CSS for Sneakers Street Hong Kong
   Hong Kong-inspired design with mobile-first approach
   ================================================================= */

/* ===== CSS VARIABLES - Hong Kong Colors ===== */
:root {
  /* Hong Kong Flag Colors */
  --hong-kong-red: #DE2408;
  --hong-kong-white: #FFFFFF;
  --hong-kong-red-dark: #B91C06;
  --hong-kong-red-light: #E44A32;
  
  /* Extended Palette */
  --primary-red: var(--hong-kong-red);
  --accent-gold: #FFD700;
  --accent-orange: #FF6B35;
  --text-dark: #2C2C2C;
  --text-light: #666666;
  --white: var(--hong-kong-white);
  --background-light: #F8F9FA;
  --background-grey: #F5F5F5;
  --border-light: #E0E0E0;
  --border-medium: #CCCCCC;
  
  /* Typography */
  --font-primary: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Verdana, Arial, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --mobile-padding: 1.5rem;
  --desktop-padding: 2rem;
  --section-padding: 2rem 0;
  --border-radius: 8px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-strong: 0 8px 16px rgba(0,0,0,0.2);
  --text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LAYOUT STRUCTURE ===== */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.content-wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  width: 100%;
}

/* ===== HERO SECTION ===== */
.site-header {
  position: relative;
  background: var(--primary-red);
  color: var(--white);
  overflow: hidden;
}

.hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-image: url('images/slide1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(222, 36, 8, 0.05) 0%, 
    rgba(222, 36, 8, 0.1) 50%, 
    rgba(0, 0, 0, 0.05) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  box-shadow: var(--shadow-medium);
  border: 2px solid rgba(222, 36, 8, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border: 2px solid rgba(222, 36, 8, 0.2);
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: var(--white);
  border-bottom: 3px solid var(--primary-red);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-logo:hover {
  color: var(--hong-kong-red-dark);
}

/* Desktop Navigation */
.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  margin-top: 1rem;
  margin-right: 1rem;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: var(--hong-kong-red-dark);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-strong);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-header {
  background: var(--primary-red);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
  background: var(--background-light);
  color: var(--primary-red);
  padding-left: 2rem;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: var(--section-padding);
  background: var(--white);
}

.main-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* ===== CALLOUT STYLES ===== */
.callout-info,
.callout-success,
.callout-warning,
.callout-danger,
.callout-tips,
.callout-cultural,
.callout-fact,
.callout-note {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 5px solid;
  box-shadow: var(--shadow-light);
}

.callout-info {
  background: #E3F2FD;
  border-left-color: #2196F3;
  color: #0D47A1;
}

.callout-success {
  background: #E8F5E8;
  border-left-color: #4CAF50;
  color: #1B5E20;
}

.callout-warning {
  background: #FFF3E0;
  border-left-color: var(--accent-orange);
  color: #E65100;
}

.callout-danger {
  background: #FFEBEE;
  border-left-color: var(--primary-red);
  color: var(--hong-kong-red-dark);
}

.callout-tips {
  background: #FFFDE7;
  border-left-color: var(--accent-gold);
  color: #F57F17;
}

.callout-cultural {
  background: #F3E5F5;
  border-left-color: #9C27B0;
  color: #4A148C;
}

.callout-fact {
  background: var(--background-grey);
  border-left-color: var(--text-light);
  color: var(--text-dark);
}

.callout-note {
  background: #E0F2F1;
  border-left-color: #009688;
  color: #004D40;
}

.callout-info h3,
.callout-success h3,
.callout-warning h3,
.callout-danger h3,
.callout-tips h3,
.callout-cultural h3,
.callout-fact h3,
.callout-note h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--hong-kong-red-dark);
  margin-top: 2rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary-red);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--hong-kong-red-dark);
  text-decoration: none;
}

/* ===== LISTS ===== */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
}

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  /* Text and content in centered column with margins */
  .main-content > * {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
  
  /* Allow images to go to screen edge */
  .main-content img,
  .hero-section {
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
    width: calc(100% + (2 * var(--mobile-padding)));
    border-radius: 0;
  }
  
  .hero-content {
    padding: 2rem var(--mobile-padding);
  }
  
  .callout-info,
  .callout-success,
  .callout-warning,
  .callout-danger,
  .callout-tips,
  .callout-cultural,
  .callout-fact,
  .callout-note {
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
    border-radius: 0;
    border-left: none;
    border-top: 5px solid;
  }
}

/* Tablet and up */
@media (min-width: 641px) {
  .content-wrapper {
    padding: 0 var(--desktop-padding);
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .main-content {
    padding: 3rem 0;
  }
  
  .footer-content {
    padding: 0 var(--desktop-padding);
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 600px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Screen reader only content */
.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;
}