/* 
* Inforfratt - Financial Services Responsive CSS
* Responsive styles for the financial services website
*/

/* ----------------- */
/* Table of Contents */
/* ----------------- */
/*
1. Large Screens
2. Medium Screens (1199px and below)
3. Tablet Screens (991px and below)
4. Mobile Landscape (767px and below)
5. Mobile Portrait (575px and below)
6. Small Mobile Devices (400px and below)
*/

/* ----------------- */
/* 1. Large Screens */
/* ----------------- */
@media (min-width: 1200px) {
    :root {
        --container-max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

/* ------------------------------------ */
/* 2. Medium Screens (1199px and below) */
/* ------------------------------------ */
@media (max-width: 1199px) {
    :root {
        --container-max-width: 960px;
        --section-spacing: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .about-content {
        gap: 40px;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .article-header h1 {
        font-size: 2.25rem;
    }
}

/* --------------------------------- */
/* 3. Tablet Screens (991px and below) */
/* --------------------------------- */
@media (max-width: 991px) {
    :root {
        --container-max-width: 720px;
        --section-spacing: 70px;
        --header-height: 70px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--light);
    }
    
    .main-nav li:last-child {
        margin-top: 10px;
    }
    
    .main-nav a.btn {
        display: inline-block;
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-features {
        display: inline-block;
        text-align: left;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .subscription-form {
        max-width: 100%;
    }
    
    .blog-list-section .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .article-section .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-item {
        flex-direction: column;
    }
    
    .blog-item .blog-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-links a {
        margin-left: 0;
    }
}

/* ------------------------------------- */
/* 4. Mobile Landscape (767px and below) */
/* ------------------------------------- */
@media (max-width: 767px) {
    :root {
        --container-max-width: 540px;
        --section-spacing: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        max-width: 100%;
        width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .legal-content {
        padding: 25px;
    }
    
    .thank-you-content {
        padding: 30px;
    }
    
    .thank-you-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .thank-you-buttons .btn {
        width: 100%;
    }
}

/* ----------------------------------- */
/* 5. Mobile Portrait (575px and below) */
/* ----------------------------------- */
@media (max-width: 575px) {
    :root {
        --container-padding: 15px;
        --section-spacing: 50px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social, .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
}

/* ----------------------------------------- */
/* 6. Small Mobile Devices (400px and below) */
/* ----------------------------------------- */
@media (max-width: 400px) {
    .logo img {
        max-height: 35px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .subscription-form {
        padding: 25px;
    }
    
    .contact-details {
        padding: 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .article-callout {
        padding: 20px;
    }
}
