/**
 * Responsive Stylesheet - Safi Gold Trading
 * Mobile-First Responsive Design
 */

/* ===================================
   TABLET (max-width: 1024px)
   =================================== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-md);
    }
    
    /* Typography Adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 2rem; }
    
    /* Hero Section */
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* About Section */
    .about-grid {
        gap: var(--spacing-xl);
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   MOBILE LANDSCAPE (max-width: 768px)
   =================================== */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: all var(--transition-normal);
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: var(--spacing-sm) 0;
        width: 100%;
        display: block;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .top-info span {
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 500px;
        height: auto;
        padding: 100px 0 var(--spacing-xxl);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-images {
        order: -1;
    }
    
    .about-content .about-title {
        font-size: 2rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 var(--spacing-xl);
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* ===================================
   MOBILE PORTRAIT (max-width: 480px)
   =================================== */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    /* Section Padding */
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .section-padding-sm {
        padding: var(--spacing-lg) 0;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Product Details */
    .product-specs {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* About Images */
    .about-images {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .about-img:nth-child(1) {
        grid-row: auto;
    }
    
    /* Features */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Gold Ticker */
    .ticker-item {
        padding: 0 20px;
        font-size: 0.95rem;
    }
    
    .ticker-label {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-col {
        margin-bottom: var(--spacing-md);
    }
    
    /* Logo */
    .logo {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    /* Hamburger Menu Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ===================================
   SMALL MOBILE (max-width: 360px)
   =================================== */
@media screen and (max-width: 360px) {
    html {
        font-size: 12px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Cards */
    .feature-card,
    .testimonial-card {
        padding: var(--spacing-sm);
    }
    
    /* Product Image */
    .product-image {
        height: 200px;
    }
    
    /* Footer Social */
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===================================
   DESKTOP LARGE (min-width: 1440px)
   =================================== */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    html {
        font-size: 17px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}

/* ===================================
   EXTRA LARGE DESKTOP (min-width: 1920px)
   =================================== */
@media screen and (min-width: 1920px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3.8rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header,
    .footer,
    .whatsapp-float,
    .gold-ticker,
    .cta-section,
    button,
    a {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    img {
        max-width: 100% !important;
    }
}
