/* ================================================
   VAN LOIRE EXPERIENCE - RESPONSIVE STYLES
   ================================================ */

/* ==================== TABLET (≤ 968px) ==================== */
@media (max-width: 968px) {

  /* Typography adjustments */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
  }

  .nav-links a:hover {
    background-color: var(--light-bg);
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero section */
  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Cards grid */
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
  }

  /* About section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .about-image {
    order: -1;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Sections padding */
  section {
    padding: var(--spacing-md) 5%;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

/* ==================== MOBILE (≤ 640px) ==================== */
@media (max-width: 640px) {

  /* Root font size - optimized for mobile readability */
  html {
    font-size: 16px; /* Changed from 14px for better readability */
  }

  /* Typography - optimized spacing and sizes */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

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

  /* Navigation - improved mobile experience */
  nav {
    padding: 1rem;
    height: auto;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-van {
    font-size: 1.5rem;
  }

  .logo-experience {
    font-size: 1.125rem;
  }

  .nav-links {
    width: 100%;
    right: -100%;
    top: 70px;
    padding: 2rem 1.5rem;
    height: calc(100vh - 70px);
  }

  .nav-links li {
    margin: 0.25rem 0;
  }

  .nav-links a {
    padding: 1rem;
    font-size: 1.125rem;
  }

  /* Hero section - mobile optimized */
  .hero {
    height: auto;
    min-height: 60vh;
    margin-top: 70px;
    padding: 3rem 0;
  }

  .hero-content {
    padding: 1.5rem;
    text-align: center;
  }

  .hero-logo img {
    max-width: 180px;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px; /* Touch-friendly */
  }

  /* Buttons - larger touch targets */
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: 40px;
  }

  /* Cards - mobile optimized */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
  }

  .card-image {
    height: 220px;
    object-fit: cover;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .card-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
  }

  .card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .card-price {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* Sections - better mobile spacing */
  section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title h2::after {
    width: 50px;
    height: 3px;
    margin-top: 0.75rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 1rem;
  }

  /* Value proposition cards */
  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .card-icon svg {
    width: 56px;
    height: 56px;
  }

  /* About section - mobile layout */
  .about-content {
    gap: 2rem;
    text-align: center;
  }

  .about-text {
    padding: 0 0.5rem;
  }

  .about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Testimonials - mobile optimized */
  .testimonials-grid {
    padding: 0 0.5rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .testimonial-author {
    font-size: 1rem;
  }

  .testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  /* CTA section - better mobile UX */
  .cta-section {
    padding: 3rem 1.25rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer - mobile layout */
  .footer-container {
    padding: 2rem 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .footer-section ul {
    text-align: center;
  }

  .footer-section ul li {
    margin: 0.75rem 0;
  }

  .footer-section a {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-block;
  }

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

  .social-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .social-links a {
    width: 48px;
    height: 48px;
  }

  .footer-bottom {
    font-size: 0.875rem;
    padding: 1.5rem 1.25rem;
  }

  /* Forms - mobile optimized */
  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.875rem;
    width: 100%;
    border-radius: var(--border-radius-md);
  }

  .form-group textarea {
    min-height: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact page specific - mobile first */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info {
    padding: 2rem 1.5rem;
    order: 2; /* Show form first on mobile */
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    order: 1;
  }

  .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-item {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .contact-item svg {
    flex-shrink: 0;
  }

  .contact-item-content h3 {
    font-size: 1.125rem;
  }

  .contact-item-content p {
    font-size: 1rem;
  }

  /* Tours page specific - mobile optimized */
  .tour-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .tour-image {
    position: static;
    order: 1;
  }

  .tour-image img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
  }

  .tour-info {
    order: 2;
    padding: 0 1rem;
  }

  .tour-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .tour-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .tour-details {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .tour-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--border-radius-md);
  }

  .tour-detail-item svg {
    flex-shrink: 0;
  }

  .tour-detail-item span {
    font-size: 1rem;
  }

  .tour-highlights {
    margin-bottom: 1.5rem;
  }

  .tour-highlights h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .tour-highlights ul {
    padding-left: 1.5rem;
  }

  .tour-highlights li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
  }

  .tour-includes {
    margin-bottom: 1.5rem;
  }

  .tour-includes p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
  }

  .tour-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .tour-actions .btn {
    width: 100%;
  }

  .tour-divider {
    margin: 3rem 1rem;
  }
}

/* ==================== LARGE DESKTOP (≥ 1400px) ==================== */
@media (min-width: 1400px) {

  /* Container max-width */
  .container {
    max-width: 1400px;
  }

  /* Hero section */
  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }

  /* Typography */
  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2.25rem;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .card-image {
    height: 300px;
  }
}

/* ==================== EXTRA LARGE DESKTOP (≥ 1920px) ==================== */
@media (min-width: 1920px) {

  html {
    font-size: 18px;
  }

  .container {
    max-width: 1600px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {

  header,
  .hamburger,
  .hero-cta,
  .btn,
  footer,
  .social-links {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .hero {
    height: auto;
    page-break-after: always;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ==================== MOBILE LANDSCAPE ==================== */
@media (max-width: 968px) and (orientation: landscape) {

  .hero {
    height: auto;
    min-height: 400px;
    padding: 2rem 0;
  }

  .nav-links {
    height: calc(100vh - 60px);
  }
}

/* ==================== ACCESSIBILITY & MOTION ==================== */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0080ff;
    --dark-cyan: #006699;
    --elegant-black: #000000;
    --warm-grey: #666666;
  }

  .btn {
    border: 2px solid currentColor;
  }

  a {
    text-decoration: underline;
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  /* Uncomment when ready to support dark mode
  :root {
    --elegant-black: #FFFFFF;
    --white: #1A1A1A;
    --light-bg: #2A2A2A;
    --warm-grey: #CCCCCC;
  }

  body {
    background-color: var(--white);
    color: var(--elegant-black);
  }

  header {
    background-color: #2A2A2A;
    border-bottom: 1px solid #444;
  }

  .card {
    background-color: #2A2A2A;
  }

  footer {
    background-color: #000000;
  }
  */
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {

  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.875rem 2rem;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
  }

  /* Remove hover effects */
  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  /* Add active states instead */
  .btn:active {
    transform: scale(0.98);
  }

  .card:active {
    transform: scale(0.99);
  }
}

/* ==================== iOS SAFARI FIXES ==================== */
@supports (-webkit-touch-callout: none) {

  /* Fix 100vh issue on iOS */
  .hero {
    height: -webkit-fill-available;
  }

  /* Fix position fixed on iOS */
  header {
    position: -webkit-sticky;
    position: sticky;
  }

  /* Prevent zoom on input focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* ==================== ANIMATION UTILITIES ==================== */

/* Fade in on scroll (for future AOS integration) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==================== LOADING SKELETON ==================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================== UTILITY RESPONSIVE CLASSES ==================== */

/* Hide on mobile */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on tablet */
@media (min-width: 641px) and (max-width: 968px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 969px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 641px) {
  .show-mobile-only {
    display: none !important;
  }
}

/* Show only on tablet */
@media (max-width: 640px), (min-width: 969px) {
  .show-tablet-only {
    display: none !important;
  }
}

/* Show only on desktop */
@media (max-width: 968px) {
  .show-desktop-only {
    display: none !important;
  }
}
