/*
 * OctaTrip Responsive Styles
 * Comprehensive responsive design for all devices
 * Mobile First Approach
 */

/* ========================================
   MOBILE DEVICES (320px - 480px)
   ======================================== */
@media only screen and (max-width: 480px) {
    
    /* Global */
    html { font-size: 10px; }
    
    body {
        font-size: 1.4rem;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header & Navigation */
    .page-header {
        padding: 10px 15px !important;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .navbar-nav {
        padding: 20px 0;
        background: rgba(255, 255, 255, 0.98);
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .navbar-nav li {
        margin: 5px 0;
        width: 100%;
    }
    
    .navbar-nav li a {
        padding: 12px 20px !important;
        font-size: 1.6rem;
    }
    
    .nav-right-button {
        width: 100%;
        margin: 20px 0;
    }
    
    .nav-right-button .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero, .hero-section {
        min-height: 400px;
        padding: 40px 0 !important;
    }
    
    .hero__heading, .hero-title {
        font-size: 2.8rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero__body, .hero-subtitle {
        font-size: 1.4rem !important;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .hero-button, .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-button .btn, .cta-buttons .btn {
        width: 100%;
        margin: 5px 0;
        padding: 14px 20px;
        font-size: 1.5rem;
    }
    
    .hero-img, .hero-image {
        max-width: 280px;
        margin: 30px auto 0;
    }
    
    /* Page Headers */
    .page-header-section, .about-header, .api-header, .agency-header {
        padding: 40px 0 !important;
        min-height: 250px;
    }
    
    .page-title, .page-header-title {
        font-size: 2.5rem !important;
        margin-bottom: 10px;
    }
    
    .page-subtitle {
        font-size: 1.4rem !important;
    }
    
    /* Cards & Boxes */
    .service-box, .feature-box, .process-card {
        margin-bottom: 20px;
        padding: 25px 15px;
    }
    
    .service-icon, .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-name, .feature-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    
    .service-description, .feature-description {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    /* Grid Layouts */
    .features-grid, .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Sections */
    section {
        padding: 40px 0 !important;
    }
    
    .section-title, h2 {
        font-size: 2.4rem !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* Forms */
    .form-control, .form-select {
        font-size: 1.5rem;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.6rem;
    }
    
    /* Contact Form */
    .contact-form .row {
        margin: 0;
    }
    
    .contact-form .col-md-6 {
        padding: 0;
        margin-bottom: 15px;
    }
    
    /* Contact Info */
    .contact-info-box {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-link {
        margin-bottom: 40px;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-link h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .footer-link ul {
        padding: 0;
    }
    
    .footer-link ul li {
        margin-bottom: 18px;
        padding: 8px 0;
    }
    
    .footer-link ul li a {
        font-size: 1.5rem;
        padding: 10px 15px;
        display: inline-block;
        line-height: 1.6;
    }
    
    /* Contact Info in Footer */
    .footer .contact-info p,
    .footer .about-us p {
        margin-bottom: 18px;
        padding: 8px 0;
        line-height: 1.8;
        font-size: 1.4rem;
    }
    
    .footer .contact-info a {
        padding: 10px 5px;
        display: inline-block;
        word-break: break-word;
    }
    
    /* Address in footer */
    .footer .about-us h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .footer .about-us address,
    .footer .about-us .contact-details {
        line-height: 2;
        margin-bottom: 15px;
    }
    
    .footer .about-us .contact-details > * {
        display: block;
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .social-media {
        text-align: center;
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .social-icons {
        justify-content: center;
        gap: 15px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        margin: 8px;
        font-size: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Footer Bottom */
    .footer-botton {
        padding: 25px 15px;
        margin-top: 20px;
    }
    
    .footer-botton .copyright,
    .footer-botton .footer-bottm-link {
        font-size: 1.3rem;
        line-height: 1.8;
        padding: 10px 0;
    }
    
    .footer-bottm-link ul {
        gap: 15px;
    }
    
    .footer-bottm-link ul li {
        padding: 5px 10px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 20px !important;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }
    
    .cta-text {
        font-size: 1.4rem !important;
        margin-bottom: 20px;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 1.3rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 1.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    /* Hide elements on mobile */
    .mobile-hidden {
        display: none !important;
    }
}

/* ========================================
   SMALL TABLETS (481px - 768px)
   ======================================== */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    
    html { font-size: 10px; }
    
    body {
        font-size: 1.5rem;
    }
    
    /* Header */
    .brand-logo {
        height: 40px;
    }
    
    .navbar-nav li a {
        font-size: 1.6rem;
    }
    
    /* Hero */
    .hero__heading, .hero-title {
        font-size: 3.5rem !important;
        line-height: 1.3;
    }
    
    .hero__body {
        font-size: 1.6rem !important;
    }
    
    .hero-img {
        max-width: 400px;
    }
    
    /* Page Headers */
    .page-header-section {
        padding: 60px 0 !important;
    }
    
    .page-title {
        font-size: 3.2rem !important;
    }
    
    /* Grid Layouts */
    .features-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Sections */
    section {
        padding: 60px 0 !important;
    }
    
    .section-title, h2 {
        font-size: 3rem !important;
    }
    
    /* Forms */
    .form-control {
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Contact */
    .contact-info-box {
        margin-bottom: 20px;
    }
    
    /* Footer spacing for tablets */
    .footer-link ul li {
        margin-bottom: 15px;
        padding: 6px 0;
    }
    
    .footer-link ul li a {
        font-size: 1.5rem;
        padding: 8px 12px;
        display: inline-block;
    }
    
    .footer .contact-info p {
        margin-bottom: 15px;
        padding: 6px 0;
    }
}

/* ========================================
   TABLETS / iPAD (769px - 1024px)
   ======================================== */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    
    html { font-size: 10px; }
    
    body {
        font-size: 1.6rem;
    }
    
    /* Navigation - Show hamburger on tablets */
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    /* Hero */
    .hero__heading {
        font-size: 4.5rem !important;
    }
    
    .hero__body {
        font-size: 1.8rem !important;
    }
    
    /* Grid Layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* Sections */
    section {
        padding: 70px 0 !important;
    }
    
    .section-title, h2 {
        font-size: 3.6rem !important;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Two Column Layouts */
    .row-cols-md-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }
    
    /* Footer spacing for iPad */
    .footer-link {
        margin-bottom: 35px;
    }
    
    .footer-link ul li {
        margin-bottom: 14px;
        padding: 6px 0;
    }
    
    .footer-link ul li a {
        padding: 8px 10px;
        display: inline-block;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION (All Devices)
   ======================================== */
@media only screen and (max-height: 600px) and (orientation: landscape) {
    
    .hero, .page-header-section {
        min-height: 300px;
        padding: 30px 0 !important;
    }
    
    .hero__heading {
        font-size: 3rem !important;
    }
    
    .navbar-nav {
        max-height: 250px;
        overflow-y: auto;
    }
}

/* ========================================
   LAPTOPS / SMALL DESKTOPS (1025px - 1200px)
   ======================================== */
@media only screen and (min-width: 1025px) and (max-width: 1200px) {
    
    html { font-size: 10px; }
    
    .container {
        max-width: 960px;
    }
    
    /* Grid adjustments */
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .partners-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* ========================================
   COMMON MOBILE FIXES (All devices < 992px)
   ======================================== */
@media only screen and (max-width: 991.98px) {
    
    /* Navigation */
    .page-header {
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        padding-top: 2.5rem;
    }
    
    .navbar-nav li {
        border: 1px solid #ccc !important;
        margin: 0.1rem;
        border-radius: 5px;
        background-color: rgba(0, 0, 0, 0.05);
        padding-left: 1rem;
    }
    
    .nav-right-button {
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 4rem;
    }
    
    .navbar-toggler {
        border: 2px solid #eee !important;
    }
    
    /* Cards */
    .services .card,
    .testimonial {
        margin-bottom: 15px;
    }
    
    /* Content */
    .about-home .content .article {
        margin: 10px 10px 0px 10px;
    }
    
    .work .content {
        padding: 20px;
    }
    
    .content-img {
        margin: auto;
    }
    
    /* Footer */
    .footer .about-us {
        text-align: center;
        border-top: 0.5px solid #555555;
        padding: 10px 0;
    }
    
    .footer .footer-link {
        padding: 20px 30px;
        border-top: 0.5px solid #555555;
    }
    
    .footer .social-media {
        text-align: center;
    }
    
    .footer-botton .copyright,
    .footer-botton .footer-bottm-link {
        text-align: center;
    }
    
    /* Hero Body Image */
    .hero__body picture {
        visibility: hidden;
    }
    
    /* Buttons */
    .hero-button {
        display: flex;
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        justify-content: center;
    }
}

/* ========================================
   SPECIFIC COMPONENT RESPONSIVE FIXES
   ======================================== */

/* Service Boxes */
@media only screen and (max-width: 768px) {
    .service-box {
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 20px;
    }
}

/* Form Grids */
@media only screen and (max-width: 576px) {
    .form-row .col-md-6,
    .row .col-md-6,
    .row .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Privacy & Legal Pages */
@media only screen and (max-width: 768px) {
    .privacy-content-wrapper,
    .trademark-content-wrapper {
        padding: 20px 15px;
    }
    
    .privacy-section h2,
    .trademark-section h2 {
        font-size: 2rem !important;
    }
    
    .privacy-list li,
    .trademark-list li {
        font-size: 1.4rem;
        padding-left: 25px;
    }
}

/* Registration Forms */
@media only screen and (max-width: 768px) {
    .registration-form,
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-section-title {
        font-size: 2rem !important;
        margin-bottom: 20px;
    }
}

/* Modal & Popup Responsiveness */
@media only screen and (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
}

/* Button Responsiveness */
@media only screen and (max-width: 576px) {
    .btn {
        padding: 12px 20px;
        font-size: 1.4rem;
    }
    
    .btn-lg {
        padding: 14px 25px;
        font-size: 1.6rem;
    }
    
    .btn-sm {
        padding: 8px 15px;
        font-size: 1.3rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .page-header,
    .footer,
    .nav-right-button,
    .cta-section,
    .navbar-toggler {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
   ======================================== */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    
    /* Optimize images and icons for retina */
    .brand-logo,
    .service-icon,
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in future */
}

