/* ================================================
   GOLDEN VAULT - RESPONSIVE STYLES
   Mobile-first responsive design for all devices
   ================================================ */

/* ================================================
   MOBILE MENU STYLES
   ================================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 999;
    transition: left 0.3s ease;
    padding-top: 80px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    color: var(--light-color);
    text-decoration: none;
    padding: 20px;
    font-size: 18px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ================================================
   TABLET STYLES (768px - 1024px)
   ================================================ */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Top bar adjustments */
    .contact-info {
        gap: 20px;
    }
    
    .contact-info span {
        font-size: 13px;
    }
    
    /* Navigation adjustments */
    .nav-menu ul {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 12px 0;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    /* Services grid - 2 columns on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Investment cards - keep 2 columns but smaller */
    .investment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Blog grid - 2 columns */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 30px;
    }
}

/* ================================================
   MOBILE LANDSCAPE (480px - 767px)
   ================================================ */

@media screen and (min-width: 480px) and (max-width: 767px) {
    /* Top bar mobile landscape */
    .contact-info .address {
        display: none;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    /* Hide desktop navigation, show mobile menu */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cta-button {
        display: none;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 70vh;
        margin-top: 115px;
    }
    
    .hero h1 {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Single column layouts */
    .services-grid,
    .investment-cards,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Reduce section padding */
    .services,
    .investment,
    .video-section,
    .visit-us,
    .blog-preview,
    .company-intro {
        padding: 50px 0;
    }
    
    /* Footer stacking */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* ================================================
   MOBILE PORTRAIT (max-width: 479px)
   ================================================ */

@media screen and (max-width: 479px) {
    /* Top bar responsive */
    .top-bar {
        height: 40px;
        font-size: 12px;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-info .address {
        display: none;
    }
    
    .social-links {
        gap: 10px;
    }
    
    /* Header adjustments */
    .main-header {
        top: 40px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 45px;
    }
    
    /* Hide desktop navigation */
    .nav-menu,
    .cta-button {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero section */
    .hero {
        min-height: 60vh;
        margin-top: 105px;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .hero .btn-primary {
        font-size: 18px;
        padding: 14px 28px;
        margin-top: 20px;
    }
    
    /* Typography adjustments */
    h2 {
        font-size: 28px !important;
    }
    
    h3 {
        font-size: 22px !important;
    }
    
    .brand-name {
        font-size: 32px;
    }
    
    /* Company intro */
    .experience {
        font-size: 20px;
    }
    
    .description {
        font-size: 18px;
    }
    
    /* Services section */
    .section-subtitle {
        font-size: 18px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-content li {
        font-size: 15px;
    }
    
    /* Investment section */
    .investment-intro {
        font-size: 18px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h4 {
        font-size: 20px;
    }
    
    .cta-section h3 {
        font-size: 28px;
    }
    
    /* Video section */
    .video-section p {
        font-size: 18px;
    }
    
    /* Visit us section */
    .visit-us p {
        font-size: 18px;
    }
    
    /* Blog cards */
    .blog-card {
        padding: 20px;
    }
    
    .blog-card h3 {
        font-size: 20px;
    }
    
    /* Footer */
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-section h4 {
        font-size: 18px;
    }
    
    .social-media a {
        font-size: 20px;
        margin-right: 10px;
    }
    
    /* Reduce section padding */
    .services,
    .investment,
    .video-section,
    .visit-us,
    .blog-preview,
    .company-intro {
        padding: 40px 0;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Button adjustments */
    .btn-primary {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .btn-large {
        font-size: 18px;
        padding: 14px 28px;
    }
    
    .btn-whatsapp {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* ================================================
   LARGE DESKTOP (min-width: 1200px)
   ================================================ */

@media screen and (min-width: 1200px) {
    /* Increase hero text size for large screens */
    .hero h1 {
        font-size: 80px;
    }
    
    .hero-subtitle {
        font-size: 26px;
    }
    
    /* Services grid - 3 columns with larger gaps */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
    
    /* Investment cards side by side */
    .investment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    /* Blog grid - 3 columns */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    /* Increase section padding */
    .services,
    .investment,
    .video-section,
    .visit-us,
    .blog-preview,
    .company-intro {
        padding: 100px 0;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .main-header,
    .mobile-menu-toggle,
    .hero-video,
    .video-container,
    .btn-primary,
    .btn-whatsapp,
    .social-media {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
        margin-top: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .main-footer {
        background: white;
        color: black;
    }
}

/* ================================================
   HIGH DPI / RETINA DISPLAYS
   ================================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI displays */
    .logo img,
    .service-image img,
    .card-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ================================================
   ACCESSIBILITY & MOTION PREFERENCES
   ================================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--light-color);
    }
    
    .service-card,
    .investment-card,
    .blog-card {
        border: 2px solid var(--text-color);
    }
}

/* Dark mode preference (optional - can be enabled later) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, but structure is ready for dark mode */
}

/* ================================================
   LANDSCAPE ORIENTATION SPECIFIC
   ================================================ */

@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* ================================================
   SPECIFIC BREAKPOINT ADJUSTMENTS
   ================================================ */

/* Very small screens (320px) */
@media screen and (max-width: 320px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .cta-section h3 {
        font-size: 24px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Medium tablets (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .investment-cards {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large tablets / small desktops (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .investment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}