/* ========================================
   ROLLEN INVESTMENTS - INTERNAL PAGES RESPONSIVE
   Mobile Adaptation for All Pages Except Homepage
   ======================================== */

/* ====================
   MOBILE NAVIGATION - ALL PAGES
   ==================== */

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-deep-purple);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-menu a {
        display: block;
        width: 100%;
        color: var(--color-white) !important;
        padding: 12px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-size: 16px;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(212, 175, 55, 0.15);
        color: #d4af37 !important;
        transform: translateX(5px);
    }
    
    .btn-nav {
        background: #d4af37 !important;
        color: var(--color-deep-purple) !important;
        text-align: center;
        padding: 15px 20px !important;
    }
    
    .btn-nav:hover {
        background: #c19a2e !important;
        transform: translateX(5px) !important;
    }
}

/* ====================
   RESPONSIVE TYPOGRAPHY
   ==================== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-value-prop {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-intro {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-value-prop {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-intro {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-value-prop {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
    
    .section-intro {
        font-size: 15px;
        margin-bottom: 2rem;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
}

/* ====================
   RESPONSIVE SECTIONS & SPACING
   ==================== */

@media (max-width: 991px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 120px 0 60px !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 100px 0 50px !important;
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
}

/* ====================
   RESPONSIVE GRIDS
   ==================== */

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Value Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 767px) {
    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Service Cards Grid */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 767px) {
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 767px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
}

/* CTA Process */
.cta-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (max-width: 767px) {
    .cta-process {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Challenge Solution Grid */
.challenge-solution {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 767px) {
    .challenge-solution {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ====================
   RESPONSIVE CARDS
   ==================== */

@media (max-width: 991px) {
    .feature-card,
    .value-card,
    .service-card,
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .feature-card,
    .value-card,
    .service-card,
    .contact-info-card {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-card h3,
    .value-card h3,
    .service-card h3 {
        font-size: 1.25rem;
    }
}

/* ====================
   RESPONSIVE BUTTONS
   ==================== */

@media (max-width: 767px) {
    .btn,
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* ====================
   RESPONSIVE IMAGES
   ==================== */

img {
    max-width: 100%;
    height: auto;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .content-image {
        margin: 2rem 0;
    }
}

/* ====================
   RESPONSIVE FOOTER
   ==================== */

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section:first-child {
        grid-column: auto;
    }
    
    .footer-logo {
        height: 60px;
        margin: 0 auto;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer h4 {
        font-size: 1.1rem;
    }
}

/* ====================
   RESPONSIVE FORMS (Contact Page)
   ==================== */

@media (max-width: 767px) {
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ====================
   RESPONSIVE TABLES (If Any)
   ==================== */

@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ====================
   TOUCH OPTIMIZATION
   ==================== */

@media (max-width: 767px) {
    /* Ensure all interactive elements are tap-friendly */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for touch */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ====================
   PREVENT HORIZONTAL SCROLL
   ==================== */

body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

.container,
.section {
    max-width: 100%;
    overflow-x: hidden;
}

/* ====================
   PERFORMANCE - MOBILE
   ==================== */

@media (max-width: 767px) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ====================
   LANDSCAPE MODE - MOBILE
   ==================== */

@media (max-width: 991px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 50px !important;
    }
    
    .hero-title {
        font-size: 28px;
    }
}

/* ====================
   RESPONSIVE LOGO IN CONTENT
   ==================== */

.logo-showcase {
    text-align: center;
}

.logo-showcase .logo-item img {
    max-width: 200px;
    height: auto;
}

@media (max-width: 767px) {
    .logo-showcase .logo-item img {
        max-width: 150px;
    }
}

/* ====================
   CONTENT GRID RESPONSIVE
   ==================== */

.content-grid {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .content-grid {
        max-width: 100%;
    }
    
    .content-grid p {
        font-size: 15px;
        line-height: 1.7;
    }
}
