/* =================================================================
   Modern Responsive CSS for Nathan Road HK
   Hong Kong-inspired design with mobile-first approach
   Based on recoleta-ba.com structure, customized for Hong Kong
   ================================================================= */

/* ===== CSS VARIABLES - Hong Kong Flag Colors ===== */
:root {
  /* Hong Kong Flag Colors */
  --hk-red: #DE2910;
  --hk-white: #FFFFFF;
  --hk-red-dark: #B8210D;
  --hk-red-light: #E85A4A;
  
  /* Extended Palette */
  --primary-red: var(--hk-red);
  --accent-gold: #FFD700;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: var(--hk-white);
  --background-light: #F8F9FA;
  --border-light: #E9ECEF;
  --overlay-dark: rgba(44, 62, 80, 0.8);
  
  /* Typography */
  --font-primary: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --mobile-padding: 1.5rem;
  --section-padding: 2rem 0;
  --border-radius: 8px;
  
  /* 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);
}

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

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

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

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

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

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--hk-red-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section {
  background-image: url('images/5924893095_5f78624584_b.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  filter: saturate(0.8);
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: calc(var(--border-radius) / 2);
  display: inline-block;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo:hover {
  color: var(--hk-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 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-red);
  border-bottom-color: var(--accent-gold);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.mobile-menu-toggle:hover {
  background-color: var(--background-light);
  color: var(--primary-red);
}

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

.mobile-menu-overlay.push-body {
  left: 0;
}

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

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

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

.mobile-nav-menu {
  list-style: none;
  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 {
  background-color: 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: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

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

.content-section {
  margin-bottom: 3rem;
}

/* Typography */
h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--text-dark);
}

h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Links */
a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--hk-red-dark);
  text-decoration: underline;
}

/* ===== CALLOUT STYLES ===== */
.callout-info {
  background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
  border-left: 4px solid var(--primary-red);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-info h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.callout-warning {
  background: linear-gradient(135deg, #FFF3E0 0%, #FCE4EC 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-warning h3 {
  color: #F57C00;
  margin-bottom: 1rem;
}

.callout-tips {
  background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
  border-left: 4px solid #4CAF50;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-tips h3 {
  color: #2E7D32;
  margin-bottom: 1rem;
}

.callout-cultural {
  background: linear-gradient(135deg, #FFF8E1 0%, #F3E5F5 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-cultural h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
}

/* ===== CALENDAR STYLES ===== */
.yearly-calendar-intro {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  text-align: center;
}

.calendar-downloads {
  background: linear-gradient(135deg, var(--primary-red), var(--hk-red-dark));
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  text-align: center;
}

.calendar-downloads h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.download-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px dotted var(--accent-gold);
}

.download-link:hover {
  color: var(--white);
  border-bottom-style: solid;
}

.yearly-overview {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.month-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-red);
}

.month-section h2 {
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.month-detail-link {
  text-align: center;
  margin: 1rem 0;
}

.month-detail-link a {
  background: var(--background-light);
  color: var(--primary-red);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.month-detail-link a:hover {
  background: var(--primary-red);
  color: var(--white);
}

.month-highlights {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.event-summary {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-gold);
}

.event-summary h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.event-date {
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-brief {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-location {
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.no-events {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin: 2rem 0;
}

.check-back {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Mobile responsiveness for calendar */
@media (max-width: 768px) {
  .yearly-overview {
    gap: 1.5rem;
  }
  
  .month-section {
    padding: 1.5rem;
  }
  
  .event-summary {
    padding: 1rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-red);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: var(--hk-red-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary-red);
  color: var(--white);
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .content-wrapper {
    padding: 0 2rem;
  }
  
  .footer-links {
    justify-content: space-around;
  }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1024px) {
  .hero-section {
    background-attachment: fixed;
  }
  
  .content-wrapper {
    padding: 0 3rem;
  }
}

/* ===== LEGACY COMPATIBILITY ===== */

/* Support for old classes */
.boldheadfont {
  font-weight: 700;
  text-transform: uppercase;
}

.fontlight {
  font-weight: 300;
}

.thickBorderOverBox {
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  background: var(--white);
  box-shadow: var(--shadow-light);
}

.buttonGradient {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--hk-red-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.buttonGradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.buttonGradient a {
  color: var(--white);
  text-decoration: none;
}

.contentbutton {
  display: inline-block;
  margin: 1rem 0;
}

/* Mobile-specific image handling */
@media (max-width: 767px) {
  img {
    max-width: 100vw;
    height: auto;
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
  }
  
  .content-wrapper img {
    width: 100vw;
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
  }
  
  /* Ensure text content has proper padding */
  .main-content {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu-backdrop {
    display: none !important;
  }
  
  .hero-section {
    background-attachment: local;
    print-color-adjust: exact;
  }
}