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

/* Tablets - 768px and below */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
    }

    /* Page Header */
    .page-header {
        min-height: 50vh;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Grids */
    .stats-grid,
    .hikes-grid,
    .reasons-grid,
    .testimonials-grid,
    .events-grid,
    .gallery-grid,
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Expedition cards */
    .expedition-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expedition-header {
        flex-direction: column;
    }

    .expedition-info {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero buttons */
    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 90%;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 90%;
        max-width: 300px;
    }

    /* Sections padding */
    section {
        padding: 50px 0;
    }

    /* Guide details grid */
    .guide-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    /* FAQs */
    .faq-list {
        max-width: 100%;
    }

    /* Map */
    .map-placeholder {
        height: 300px;
    }

    /* Gallery filter buttons */
    .filter-controls {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Social links */
    .social-links-contact {
        flex-direction: column;
        gap: 0.8rem;
    }

    .social-links-contact a {
        width: 100%;
    }

    /* Newsletter form */
    .newsletter-form {
        gap: 0.5rem;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer content */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Container padding */
    .container {
        padding: 0 12px;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    /* Page Header */
    .page-header {
        min-height: 40vh;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        width: 100%;
    }

    .btn-link {
        padding: 8px 0;
    }

    /* Sections padding */
    section {
        padding: 40px 0;
    }

    /* Stat cards */
    .stat-number {
        font-size: 2rem;
    }

    /* Expedition card */
    .expedition-date {
        padding: 1rem 0.8rem;
    }

    .expedition-date .day {
        font-size: 1.5rem;
    }

    .expedition-details {
        gap: 1rem;
    }

    .expedition-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .expedition-inclusions ul {
        columns: 1;
    }

    /* Guide sections */
    .guide-details-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ styling */
    .faq-question {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        font-size: 1.2rem;
    }

    .faq-answer p {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Gallery grid */
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-box {
        height: 150px;
    }

    .gallery-item {
        height: 150px;
    }

    /* Contact form */
    .contact-form {
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Filter buttons */
    .filter-controls {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    /* Reason cards */
    .reason-icon {
        font-size: 2rem;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Team member cards */
    .team-member {
        padding: 1.5rem;
    }

    .member-avatar {
        font-size: 2rem;
    }

    /* Commitment items */
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Info boxes */
    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .info-icon {
        min-width: auto;
    }

    /* Back to top button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    /* Navbar */
    .nav-container {
        height: 60px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 0.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Social links */
    .social-links a {
        width: 35px;
        height: 35px;
    }

    /* Map placeholder */
    .map-placeholder {
        height: 250px;
        padding: 1rem;
    }

    /* Modal/Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    /* Test content alignment */
    .testimonials-showcase blockquote {
        padding: 1rem;
    }

    /* Commitment items */
    .commitment-item {
        padding: 1rem;
    }

    .commitment-item h4 {
        font-size: 1rem;
    }

    .commitment-item p {
        font-size: 0.85rem;
    }

    /* Tips grid */
    .tips-grid {
        grid-template-columns: 1fr;
    }

    /* Reason cards positioning */
    .reason-item {
        padding: 1.5rem;
    }

    /* Event card date positioning */
    .event-card {
        padding: 1.5rem;
    }

    .event-date {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    /* Contact wrapper adjustments */
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.4rem;
    }

    /* Requirements section */
    .requirement-card {
        padding: 1.5rem;
    }

    .requirement-card li {
        font-size: 0.9rem;
    }

    /* Image aspect ratios */
    .hike-image {
        height: 150px;
    }

    .gallery-overlay span {
        font-size: 1rem;
    }

    /* Stagger delays for mobile */
    .stagger-item:nth-child(n+2) {
        animation-delay: 0.1s;
    }

    .stagger-item:nth-child(n+3) {
        animation-delay: 0.2s;
    }

    .stagger-item:nth-child(n+4) {
        animation-delay: 0.3s;
    }

    .stagger-item:nth-child(n+5) {
        animation-delay: 0.4s;
    }
}

/* Small phones - 320px and below */
@media (max-width: 320px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 10px;
    }

    /* Buttons */
    .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Sections */
    section {
        padding: 30px 0;
    }

    .hero {
        min-height: 60vh;
    }

    .page-header {
        min-height: 35vh;
    }

    /* Typography reductions */
    .hero-title {
        font-size: 1.4rem;
    }

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

    p {
        font-size: 0.9rem;
    }

    /* Back to top */
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }

    /* Navigation */
    .nav-logo {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    /* Footer text */
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    /* Gallery items */
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .gallery-box {
        height: 100px;
    }

    .gallery-item {
        height: 100px;
    }

    /* Form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.85rem;
    }

    /* Expedition card padding */
    .expedition-card {
        padding: 1rem;
    }

    .expedition-date {
        padding: 0.8rem 0.6rem;
        min-width: 80px;
    }

    .expedition-date .day {
        font-size: 1.2rem;
    }

    .expedition-date .month {
        font-size: 0.65rem;
    }
}

/* Large screens - 1920px and above */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    section {
        padding: 100px 0;
    }

    .hero {
        min-height: 100vh;
    }

    .stats-grid,
    .hikes-grid,
    .reasons-grid,
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Orientation changes */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 80vh;
    }

    .page-header {
        min-height: 60vh;
    }

    section {
        padding: 30px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .footer,
    .btn,
    .cta-buttons,
    .hero-buttons,
    .filter-controls,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

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

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize for high pixel density */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add additional dark mode tweaks */
}

/* Light mode preference (if user prefers light) */
@media (prefers-color-scheme: light) {
    /* Can implement light theme if needed */
}
