/* ============================================
   RESPONSIVE STYLES
   Tablet, Mobile, Touch, Print
   ============================================ */

/* --- TABLET BREAKPOINT (768px - 1024px) --- */
@media (max-width: 1024px) {
  .container {
    --container-padding: var(--space-6);
  }

  .section-padding {
    padding: var(--space-12) 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-image-wrapper img {
    height: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .testimonial-card {
    min-width: calc(50% - var(--space-3));
  }
}

/* --- MOBILE BREAKPOINT (< 768px) --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    line-height: 1.5;
  }

  .container {
    --container-padding: var(--space-4);
  }

  .section-padding {
    padding: var(--space-10) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  /* Navigation */
  .nav-container {
    padding: 0 var(--space-4);
  }

  .nav-logo-svg {
    height: clamp(35px, 8vw, 50px);
  }

  .nav-menu {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    background: var(--color-primary-dark);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .nav-menu .nav-link {
    font-size: var(--text-xl);
    padding: var(--space-3) 0;
  }

  .nav-cta {
    margin-top: var(--space-4);
  }

  /* Prevent horizontal scroll when mobile menu is open */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Hero section */
  .hero {
    min-height: 100dvh;
  }

  .hero-content {
    padding: var(--space-6) var(--space-4);
  }

  .hero-title {
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    margin-bottom: var(--space-6);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: clamp(200px, 80vw, 300px);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-4);
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-leaf {
    display: none;
  }

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

  .about-image-wrapper {
    max-width: 100%;
  }

  .about-image-wrapper img {
    height: clamp(200px, 50vw, 400px);
    object-fit: cover;
  }

  .about-image-frame {
    display: none;
  }

  .about-image-badge {
    bottom: var(--space-3);
    right: var(--space-3);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .counter-box {
    padding: var(--space-4);
  }

  .counter-icon svg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
  }

  .counter-number {
    font-size: var(--text-2xl);
  }

  .about-deco-contour,
  .about-deco-leaf {
    display: none;
  }

  /* Routes section */
  .routes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .route-card {
    max-width: 100%;
  }

  .route-card-image {
    height: clamp(160px, 40vw, 250px);
  }

  .route-card-content {
    padding: var(--space-5);
  }

  .route-card-header h3 {
    font-size: var(--text-lg);
  }

  .route-stats {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .route-card-hover-info {
    display: none;
  }

  .routes-deco-trees {
    display: none;
  }

  /* Calendar section */
  .calendar-wrapper {
    max-width: 100%;
  }

  .calendar-grid {
    gap: var(--space-1);
  }

  .calendar-day-name {
    font-size: var(--text-xs);
    padding: var(--space-2);
  }

  .calendar-day {
    font-size: var(--text-xs);
  }

  .calendar-month-title {
    font-size: var(--text-xl);
  }

  .calendar-upcoming {
    padding: var(--space-5);
  }

  .upcoming-trek {
    gap: var(--space-3);
    padding: var(--space-4) 0;
  }

  .upcoming-trek-date {
    min-width: 50px;
    padding: var(--space-2);
  }

  /* Difficulty section */
  .difficulty-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .difficulty-card {
    padding: var(--space-6) var(--space-5);
  }

  .difficulty-deco-sunburst {
    display: none;
  }

  /* Gallery section */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .gallery-item-overlay {
    display: none;
  }

  .gallery-cta {
    margin-top: var(--space-6);
    font-size: var(--text-base);
  }

  /* Testimonials */
  .testimonial-card {
    min-width: 100%;
    padding: var(--space-6);
  }

  .testimonial-text {
    font-size: var(--text-base);
  }

  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-card {
    padding: var(--space-6);
    margin-bottom: var(--space-4);
  }

  .contact-card h3 {
    font-size: var(--text-lg);
  }

  .contact-form-wrap {
    padding: var(--space-6);
  }

  .contact-form h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-5);
  }

  .form-group {
    margin-bottom: var(--space-5);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: var(--space-3) var(--space-2);
  }

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

  .contact-deco-cloud {
    display: none;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8) 0 var(--space-6);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding: var(--space-5) 0;
  }

  /* Floating WhatsApp */
  .floating-whatsapp {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 55px;
    height: 55px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }

  /* Back to top */
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }

  /* Lightbox */
  .lightbox-close {
    top: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: var(--space-2);
  }

  .lightbox-next {
    right: var(--space-2);
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-caption {
    font-size: var(--text-xs);
    bottom: var(--space-4);
  }
}

/* --- SMALL MOBILE BREAKPOINT (< 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    --container-padding: var(--space-3);
  }

  .section-padding {
    padding: var(--space-8) 0;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
  }

  .hero-stat-number {
    font-size: var(--text-xl);
  }

  .hero-stat-label {
    font-size: var(--text-xs);
  }

  .nav-logo-svg {
    height: 35px;
  }

  .about-image-wrapper img {
    height: 250px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .counter-box {
    padding: var(--space-4);
  }

  .counter-icon svg {
    width: 24px;
    height: 24px;
    margin-bottom: var(--space-2);
  }

  .counter-number {
    font-size: var(--text-xl);
  }

  .counter-label {
    font-size: var(--text-xs);
  }

  .route-card-image {
    height: 180px;
  }

  .route-card-content {
    padding: var(--space-4);
  }

  .route-stats {
    flex-direction: column;
    gap: var(--space-2);
  }

  .calendar-day-name {
    font-size: 10px;
    padding: var(--space-1);
  }

  .calendar-day {
    font-size: 11px;
  }

  .calendar-month-title {
    font-size: var(--text-lg);
  }

  .upcoming-day {
    font-size: var(--text-lg);
  }

  .upcoming-month {
    font-size: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }

  .testimonial-card {
    padding: var(--space-5);
  }

  .testimonial-text {
    font-size: var(--text-sm);
    line-height: 1.7;
  }

  .testimonial-author strong {
    font-size: var(--text-xs);
  }

  .contact-card {
    padding: var(--space-5);
  }

  .contact-form-wrap {
    padding: var(--space-5);
  }

  .footer-logo-svg {
    height: 40px;
  }

  .footer-brand p {
    font-size: var(--text-xs);
  }

  .footer-links a {
    font-size: var(--text-xs);
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: var(--space-3);
    right: var(--space-3);
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: var(--space-3);
    right: 70px;
  }
}

/* --- VERY SMALL MOBILE BREAKPOINT (< 360px) --- */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .nav-logo-svg {
    height: 30px;
  }

  .about-image-wrapper img {
    height: 200px;
  }

  .route-card-image {
    height: 160px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-day {
    font-size: 10px;
  }
}

/* --- LANDSCAPE MOBILE --- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-10) 0;
  }

  .hero-content {
    padding: var(--space-4) var(--space-5);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }
}

/* --- TOUCH TARGET ENHANCEMENTS --- */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .calendar-day,
  .gallery-item,
  .testimonial-card,
  .social-link,
  .footer-links a,
  .footer-social-link {
    min-height: 44px;
    min-width: 44px;
  }

  .btn {
    padding: var(--space-3) var(--space-5);
  }

  .route-card:hover {
    transform: none;
  }

  .route-card:hover .route-card-hover-info {
    opacity: 0;
  }

  .route-card:hover .route-card-image img {
    transform: none;
  }

  .about-image-wrapper:hover img {
    transform: none;
  }

  .counter-box:hover {
    transform: none;
  }

  .difficulty-card:hover {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .social-link:hover {
    transform: none;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-social-link:hover {
    transform: none;
  }
}

/* --- PRINT STYLES --- */
@media print {
  .navbar,
  .custom-cursor,
  .custom-cursor-dot,
  .particles-container,
  .floating-whatsapp,
  .back-to-top,
  .hero-cloud,
  .hero-leaf,
  .about-deco-contour,
  .about-deco-leaf,
  .routes-deco-trees,
  .difficulty-deco-sunburst,
  .contact-deco-cloud,
  .loader {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2cm 0;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .section-padding {
    padding: 1cm 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .route-card,
  .testimonial-card,
  .contact-card,
  .difficulty-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .footer {
    background: none;
    color: #000;
  }
}
