/* 
 * Catalyst Accounting - Responsive Stylesheet
 * Media queries and responsive adjustments
 */

/* Large Desktop Screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
}

/* Tablets and Small Desktops (900px to 1199px) */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
}

/* Tablets (768px to 899px) */
@media (max-width: 899px) {
    /* Navigation */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        display: none;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links ul {
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 17px;
        max-width: 100%;
    }
    
    /* Sections */
    section {
        padding: 80px 20px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    /* Services Grid */
    .services {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    /* Why Section */
    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .why-item {
        padding: 25px;
    }

    /* About Section */
    .about-section {
        padding: 100px 0;
    }

    .about-content h2 {
        font-size: 1.3em;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-content ul {
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Devices (576px to 767px) */
@media (max-width: 767px) {
    /* Hero Section */
    .hero {
        min-height: 80vh;
        height: auto;
        padding: 0 15px;
        overflow: visible;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    /* Sections */
    section {
        padding: 60px 15px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    /* Services */
    .services {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card i {
        font-size: 28px;
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    /* Why Section */
    .why {
        padding: 60px 15px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About Section */
    .about-grid {
        gap: 30px;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
    
    /* Contact Container */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Contact Form */
    .contact-form {
        max-width: 100%;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Floating Elements - Reduce on mobile */
    .floating-element {
        display: none;
    }
    
    .floating-element:nth-child(1),
    .floating-element:nth-child(2),
    .floating-element:nth-child(3),
    .floating-element:nth-child(4) {
        display: block;
        width: 25px;
        height: 25px;
    }
}

/* Small Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    /* Hero Section */
    .hero {
        min-height: 80vh;
        height: auto;
        overflow: visible;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    /* Logo */
    .logo {
        font-size: 18px;
    }
    
    .logo img {
        height: 35px;
    }
    
    /* Sections */
    .section-title h2 {
        font-size: 24px;
    }
    
    /* Cards */
    .card h3 {
        font-size: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Hide most floating elements on very small screens */
    .floating-element {
        display: none;
    }
    
    .floating-element:nth-child(1),
    .floating-element:nth-child(2) {
        display: block;
        width: 20px;
        height: 20px;
    }
}

/* Very Small Screens (up to 376px) */
@media (max-width: 376px) {
    .hero {
        min-height: 80vh;
        height: auto;
        overflow: visible;
    }

    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .btn {
        margin-top: 20px;
        padding: 10px 20px;
    }
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: 
            linear-gradient(rgba(15, 42, 68, 0.85), rgba(15, 42, 68, 0.85)),
            url("../images/hero-finance-bg@2x.png");
    }
}

/* Print Styles */
@media print {
    .hero {
        background: white !important;
        color: black !important;
        height: auto;
        min-height: auto;
    }
    
    .bg-grid,
    .floating-elements,
    .gradient-overlay,
    .particle-canvas,
    .hamburger,
    .btn::after {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-links a {
        color: black;
        border-bottom: none;
    }

    .nav-links ul {
        display: flex;
        gap: 25px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .btn {
        background: white;
        color: black;
        border: 1px solid black;
    }
}