/* ========================================
   ROLLEN INVESTMENTS - COMPLETE RESPONSIVE & MOBILE OPTIMIZATION
   Full-Site Mobile Responsiveness
   February 5, 2026
   ======================================== */

/* ====================
   MOBILE NAVIGATION - PRIORITY FIX
   ==================== */

/* Mobile menu toggle - visible on tablets and mobile */
@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;
    }
    
    .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;
    }
    
    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }
    
    .nav-menu.active::before {
        left: -280px;
        opacity: 1;
        pointer-events: all;
    }
}

/* ====================
   RESPONSIVE HERO SECTION
   ==================== */

/* Large Desktop - 1400px+ */
@media (min-width: 1400px) {
    .hero-content {
        padding: 6rem 3rem;
    }
}

/* Desktop - 1200px to 1399px */
@media (max-width: 1399px) {
    .hero-logo img {
        height: 130px !important;
    }
    
    .hero-title {
        font-size: 3.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .hero-slogan {
        font-size: 1rem !important;
    }
}

/* Laptop - 992px to 1199px */
@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        padding: 4rem 2.5rem !important;
    }
    
    .hero-logo img {
        height: 110px !important;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
        margin-bottom: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .hero-slogan {
        font-size: 0.95rem !important;
    }
    
    .hero-buttons .btn-large {
        padding: 1rem 2.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-buttons {
        gap: 1.3rem !important;
    }
}

/* Tablet - 768px to 991px */
@media (max-width: 991px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-content {
        padding: 3.5rem 2rem !important;
    }
    
    .hero-logo img {
        height: 95px !important;
    }
    
    .hero-title {
        font-size: 2.4rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.15rem !important;
        max-width: 600px !important;
        margin-bottom: 2.5rem !important;
    }
    
    .hero-slogan {
        font-size: 0.9rem !important;
        padding: 0 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-slogan::before,
    .hero-slogan::after {
        width: 40px !important;
    }
    
    .hero-buttons {
        gap: 1.2rem !important;
    }
    
    .hero-buttons .btn-large {
        padding: 0.95rem 2rem !important;
        font-size: 0.88rem !important;
    }
}

/* Mobile - 480px to 767px */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hero Section - Mobile Optimized */
    .hero {
        min-height: auto !important;
        padding: 120px 0 60px !important;
    }
    
    .hero-content {
        padding: 2.5rem 1.5rem !important;
    }
    
    .hero-logo {
        margin-bottom: 1.8rem !important;
    }
    
    .hero-logo img {
        height: 80px !important;
    }
    
    .hero-slogan {
        font-size: 0.82rem !important;
        padding: 0 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero-slogan::before,
    .hero-slogan::after {
        width: 30px !important;
    }
    
    .hero-title {
        font-size: 1.95rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 1.05rem !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
        line-height: 1.5 !important;
    }
    
    /* Mobile buttons - stacked vertically */
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100%;
        margin-top: 2rem !important;
    }
    
    .hero-buttons .btn-large {
        width: 100% !important;
        padding: 1rem 2rem !important;
        font-size: 0.9rem !important;
        text-align: center;
        display: block;
    }
    
    /* Scroll indicator - smaller on mobile */
    .scroll-indicator {
        bottom: 20px !important;
    }
    
    .scroll-indicator span {
        width: 20px !important;
        height: 30px !important;
    }
    
    .scroll-indicator p {
        font-size: 0.75rem !important;
    }
}

/* Small Mobile - Below 480px */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-logo img {
        height: 70px !important;
    }
    
    .hero-slogan {
        font-size: 0.75rem !important;
        padding: 0 1rem !important;
    }
    
    .hero-slogan::before,
    .hero-slogan::after {
        width: 25px !important;
    }
    
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-buttons .btn-large {
        padding: 0.95rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* ====================
   STATS SECTION - RESPONSIVE
   ==================== */

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }
    
    .stat-number {
        font-size: 3.2rem !important;
    }
    
    .stat-label {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 767px) {
    .stats-section {
        padding: 3rem 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .stat-item {
        padding: 2.5rem 2rem !important;
    }
    
    .stat-number {
        font-size: 3rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 479px) {
    .stat-item {
        padding: 2rem 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
}

/* ====================
   BRAND SHOWCASE BAND - RESPONSIVE
   ==================== */

@media (max-width: 991px) {
    .brand-showcase-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .brand-showcase-logo img {
        height: 100px !important;
    }
    
    .brand-showcase-text h3 {
        font-size: 1.8rem !important;
    }
    
    .brand-showcase-text p {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 767px) {
    .brand-showcase-band {
        padding: 3rem 0 !important;
    }
    
    .brand-showcase-logo img {
        height: 85px !important;
    }
    
    .brand-showcase-text h3 {
        font-size: 1.5rem !important;
    }
    
    .brand-showcase-text p {
        font-size: 0.95rem !important;
    }
    
    .brand-showcase-cta .btn-large {
        padding: 1rem 2rem !important;
        font-size: 0.9rem !important;
    }
}

/* ====================
   SECTION TITLES & CONTENT - RESPONSIVE
   ==================== */

@media (max-width: 991px) {
    .section {
        padding: 4rem 0 !important;
    }
    
    .section-xl {
        padding: 5rem 0 !important;
    }
    
    .section-title {
        font-size: 2.8rem !important;
    }
    
    .section-intro {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 3rem 0 !important;
    }
    
    .section-xl {
        padding: 4rem 0 !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-intro {
        font-size: 1.05rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 479px) {
    .section-title {
        font-size: 1.9rem !important;
    }
    
    .section-intro {
        font-size: 0.95rem !important;
    }
}

/* ====================
   GRID LAYOUTS - RESPONSIVE
   ==================== */

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

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

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

/* 3-column grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

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

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

/* 2-column grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

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

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

@media (max-width: 991px) {
    .card {
        padding: 2.5rem 2rem !important;
    }
    
    .card-icon {
        font-size: 3rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .card h3 {
        font-size: 1.4rem !important;
    }
    
    .card p {
        font-size: 1rem !important;
    }
}

@media (max-width: 767px) {
    .card {
        padding: 2rem 1.5rem !important;
    }
    
    .card-icon {
        font-size: 2.5rem !important;
    }
    
    .card h3 {
        font-size: 1.25rem !important;
    }
    
    .card p {
        font-size: 0.95rem !important;
    }
}

/* ====================
   GOLD SHOWCASE - RESPONSIVE
   ==================== */

@media (max-width: 991px) {
    .gold-showcase {
        padding: 5rem 0 !important;
    }
    
    .gold-showcase .section-title {
        font-size: 3.2rem !important;
    }
    
    .gold-showcase .section-intro {
        font-size: 1.15rem !important;
    }
    
    .gold-badge {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.8rem !important;
    }
}

@media (max-width: 767px) {
    .gold-showcase {
        padding: 4rem 0 !important;
    }
    
    .gold-showcase .section-title {
        font-size: 2.4rem !important;
    }
    
    .gold-showcase .section-intro {
        font-size: 1.05rem !important;
    }
    
    .gold-badge {
        font-size: 0.85rem !important;
        padding: 0.6rem 1.5rem !important;
    }
}

/* ====================
   FEATURE IMAGE SECTIONS - RESPONSIVE
   ==================== */

.feature-image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .feature-image-section {
        gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    .feature-image-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-image {
        order: 1;
    }
    
    .feature-content {
        order: 2;
    }
    
    .feature-content h3 {
        font-size: 1.5rem !important;
    }
    
    .feature-content p {
        font-size: 1rem !important;
    }
}

/* ====================
   PROCESS STEP CARDS - RESPONSIVE
   ==================== */

@media (max-width: 991px) {
    .process-step-card {
        padding: 2.5rem 2rem !important;
    }
    
    .step-number-large {
        font-size: 3.5rem !important;
        width: 70px !important;
        height: 70px !important;
    }
}

@media (max-width: 767px) {
    .process-step-card {
        padding: 2rem 1.5rem !important;
    }
    
    .step-number-large {
        font-size: 3rem !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .process-step-card h3 {
        font-size: 1.25rem !important;
    }
}

/* ====================
   CTA SECTION - RESPONSIVE
   ==================== */

@media (max-width: 767px) {
    .cta-step-number {
        font-size: 2rem !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .cta-step h3 {
        font-size: 1.2rem !important;
    }
    
    .cta-step p {
        font-size: 0.9rem !important;
    }
}

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

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

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

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

/* ====================
   TRUST VISUAL - RESPONSIVE
   ==================== */

@media (max-width: 767px) {
    .trust-visual-content h3 {
        font-size: 1.5rem !important;
    }
    
    .trust-visual-content p {
        font-size: 1rem !important;
    }
    
    .logo-showcase .logo-item img {
        height: 60px !important;
    }
}

/* ====================
   IMAGES & MEDIA - RESPONSIVE
   ==================== */

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

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

/* ====================
   TOUCH-FRIENDLY ELEMENTS
   ==================== */

/* Ensure all tap targets are at least 44x44px */
@media (max-width: 767px) {
    .btn,
    .btn-large {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Increase tap spacing */
    .hero-buttons {
        gap: 1.2rem !important;
    }
    
    /* Better touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
}

/* ====================
   TEXT READABILITY - MOBILE
   ==================== */

@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    p {
        line-height: 1.7;
    }
    
    /* Prevent text from being too small */
    * {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

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

/* Reduce animations on mobile for better performance */
@media (max-width: 767px) {
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Disable complex animations on mobile */
    .hero-shape {
        animation: none !important;
        opacity: 0.03 !important;
    }
    
    .hero-logo::before {
        animation: none !important;
        opacity: 0.15 !important;
    }
    
    /* GPU acceleration for smooth scrolling */
    .hero,
    .section,
    .card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: auto;
    }
}

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

@media (max-width: 991px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 100px 0 50px !important;
    }
    
    .hero-logo img {
        height: 70px !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn-large {
        width: auto !important;
        flex: 1;
        min-width: 200px;
    }
}

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

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

.container,
.hero,
.section,
.stats-section,
.gold-showcase,
.footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* ====================
   ACCESSIBILITY - MOBILE
   ==================== */

@media (max-width: 767px) {
    /* Focus states more visible on mobile */
    *:focus {
        outline: 3px solid rgba(212, 175, 55, 0.8);
        outline-offset: 2px;
    }
    
    /* Skip to main content link */
    .skip-to-main {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--color-deep-purple);
        color: white;
        padding: 8px 16px;
        text-decoration: none;
        z-index: 100;
    }
    
    .skip-to-main:focus {
        top: 0;
    }
}

/* ====================
   LOADING OPTIMIZATION
   ==================== */

/* Lazy load images on mobile */
@media (max-width: 767px) {
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    img[loading="lazy"].loaded {
        opacity: 1;
    }
}

/* ====================
   FINAL POLISH
   ==================== */

/* Smooth scrolling on all devices */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Better text rendering on all devices */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 767px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}
