/* =================================================================
   Modern Responsive CSS for Corralejo Fuerteventura
   Spanish tourism colors with mobile-first approach
   Based on recoleta-ba.com structure
   ================================================================= */

/* ===== CSS VARIABLES - Spanish Tourism Colors ===== */
:root {
  /* Spanish Tourism Brand Colors (Sol de Miró) */
  --spain-yellow: #F1BF00;
  --spain-red: #AA151B;
  --spain-green: #008542;
  --spain-black: #000000;
  
  /* Extended Palette for Web Design */
  --primary-yellow: var(--spain-yellow);
  --accent-red: var(--spain-red);
  --nature-green: var(--spain-green);
  --text-dark: var(--spain-black);
  --text-light: #666666;
  --white: #FFFFFF;
  --background-light: #FFFEF7; /* Slight yellow tint */
  --background-neutral: #F8F8F8;
  --border-light: #E9E6E0;
  --ocean-blue: #0074D9; /* For water references */
  
  /* Typography */
  --font-primary: '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;
  min-height: 100vh;
}

/* ===== 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(--ocean-blue) 0%, var(--nature-green) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section {
  background-image: url('images/5893121391_4295cec4c5_o.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;
  /* Mild desaturation overlay as requested */
  background: linear-gradient(
    45deg, 
    rgba(0, 116, 217, 0.15) 0%, 
    rgba(0, 133, 66, 0.2) 100%
  );
}

.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;
  /* Mild background behind title text as requested */
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: calc(var(--border-radius) / 1.5);
  backdrop-filter: blur(3px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  color: var(--white);
}

/* ===== 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 {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: var(--primary-yellow);
}

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

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--accent-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  /* Top right positioning with 1rem padding as requested */
  margin-right: 0;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  font-size: 1.8rem;
}

/* 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: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
}

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

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--mobile-padding);
  background: var(--primary-yellow);
  color: var(--spain-black);
  font-weight: bold;
}

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

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

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

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

.mobile-nav-menu a:hover {
  background-color: var(--background-light);
  color: var(--accent-red);
}

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

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

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

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

/* ===== CALLOUT STYLES ===== */
/* Cultural/Spanish heritage callout */
.callout-cultural {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #FDD835 100%);
  color: var(--spain-black);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

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

/* Info callout (ocean blue) */
.callout-info {
  background-color: #E3F2FD;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--ocean-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Success/practical callout (nature green) */
.callout-success {
  background-color: #E8F5E8;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--nature-green);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Tips callout (Spanish yellow) */
.callout-tips {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFF8B1 100%);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-yellow);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Warning callout (Spanish red) */
.callout-warning {
  background-color: #FFEBEE;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-red);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Important/alert callout (Spanish red) */
.callout-important {
  background: linear-gradient(135deg, #FFCDD2 0%, #FFABAB 100%);
  color: var(--spain-black);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-red);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Neutral/timeline callout */
.callout-neutral {
  background-color: var(--background-neutral);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--spain-black);
  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 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

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

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

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  /* Larger padding for desktop */
  .content-wrapper {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* ===== LEGACY SUPPORT ===== */
/* Maintain compatibility with existing styles */
.main-content {
  max-width: var(--container-max-width);
  min-width: 300px;
  padding: var(--mobile-padding);
}

/* ===== MOBILE-SPECIFIC STYLES ===== */
@media (max-width: 767px) {
  /* Mobile content padding as requested */
  .content-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Allow images to go to screen edge on mobile */
  .hero-section {
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
  }
  
  /* Hamburger menu positioning - top right with 1rem padding */
  .mobile-menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1003;
  }
  
  /* Adjust navigation container for mobile */
  .nav-container {
    position: relative;
  }
  
  /* Mobile callouts full width but text centered */
  .callout-cultural,
  .callout-info,
  .callout-success,
  .callout-tips,
  .callout-warning,
  .callout-important,
  .callout-neutral {
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
    padding: 1.5rem var(--mobile-padding);
  }
}

/* ===== TRANSITIONS & INTERACTIONS ===== */
/* Ensure smooth transitions for mobile menu */
.mobile-menu-overlay {
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-backdrop {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover effects for interactive elements */
.nav-menu a,
.mobile-nav-menu a,
.site-logo {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Focus styles for accessibility */
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.nav-menu a:focus,
.mobile-nav-menu a:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Ensure hero content is readable on all screen sizes */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Print styles */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu-backdrop {
    display: none;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}
}

/* Content padding for main area */
.content-padding {
    padding-left: 10px;
    background-color: white;
}

/* Grid layout for sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Card layout for grid items */
.content-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .callout-info,
    .callout-success,
    .callout-warning,
    .callout-neutral,
    .callout-important {
        margin: 15px 0;
        padding: 12px;
    }
    
    .main-content {
        min-width: 280px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .content-card {
        padding: 15px;
    }
}

/* Typography improvements for callouts */
.callout-info h3,
.callout-success h3,
.callout-warning h3,
.callout-neutral h3,
.callout-important h3,
.callout-info h4,
.callout-success h4,
.callout-warning h4,
.callout-neutral h4,
.callout-important h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.callout-info ul,
.callout-success ul,
.callout-warning ul,
.callout-neutral ul,
.callout-important ul {
    margin-bottom: 10px;
}

.callout-info p:last-child,
.callout-success p:last-child,
.callout-warning p:last-child,
.callout-neutral p:last-child,
.callout-important p:last-child {
    margin-bottom: 0;
}