/* 
 * Responsive Styles
 * Mobile-first approach for wealth management website
 */

/* ===== TABLET - Max Width 992px ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero p {
        font-size: 1.1rem;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero-content {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero .container-wide {
        justify-content: flex-start !important;
    }

    .section {
        padding: 4rem 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }

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

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .statistics-section .feature-item h4 {
        font-size: 2.75rem;
    }
}

/* ===== MOBILE - Max Width 768px ===== */
@media (max-width: 768px) {
    .container,
    .container-wide {
        padding: 0 1.5rem;
    }

    .header-container {
        padding: 0 1.5rem;
        height: 70px;
    }

    .logo-img {
        height: 40px;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: calc(100vh - 70px);
    }

    nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        align-items: stretch;
    }

    nav > ul > li {
        width: 100%;
        position: relative;
    }

    nav > ul > li > a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    nav > ul > li > a:hover,
    nav > ul > li > a.active {
        background-color: var(--light-gray);
        border-left-color: var(--accent-gold);
        border-bottom-color: transparent;
    }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: var(--light-gray);
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .dropdown a {
        padding: 1.25rem 1.5rem 1.25rem 2.5rem;
        background: var(--light-gray);
        border-left: 3px solid transparent;
    }

    .dropdown a:hover,
    .dropdown a.active {
        background-color: rgba(74, 72, 158, 0.1);
        border-left-color: var(--accent-gold);
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero {
        height: 400px;
        margin-top: 70px;
    }

    /* Homepage hero needs more height on mobile */
    .hero-home {
        height: 600px;
        min-height: 600px;
        padding: 2rem 0;
    }

    .hero-home .hero-content {
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .hero-home h1 {
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }

    .hero-home p {
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-home .btn-container {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero p {
        font-size: 1rem;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero-content {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero .btn-container {
        justify-content: flex-start !important;
    }

    .hero .container-wide {
        justify-content: flex-start !important;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    @media (min-width: 480px) and (max-width: 768px) {
        .cards-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
    }

    .card {
        padding: 2rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card-image {
        height: 300px;
    }

    /* Features */
    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .statistics-section .feature-item h4 {
        font-size: 2.5rem;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-item h4 {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-form {
        padding: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    footer {
        padding: 3rem 0 0;
        margin-top: 4rem;
    }

    .footer-section:first-child {
        padding-right: 0;
    }

    .footer-logo-section {
        padding: 1.5rem;
    }

    .footer-logo {
        height: 35px;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 4rem 0;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }

    .hero .btn {
        display: block;
        margin: 0.75rem auto;
    }
}

/* ===== SMALL MOBILE - Max Width 480px ===== */
@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0 1rem;
    }

    .hero {
        height: 350px;
    }

    /* Homepage hero needs more height on small mobile */
    .hero-home {
        height: 550px;
        min-height: 550px;
        padding: 1.5rem 0;
    }

    .hero-home .hero-content {
        padding: 1.5rem 0;
        gap: 1.25rem;
    }

    .hero-home h1 {
        margin-bottom: 1rem;
        line-height: 1.2;
        font-size: 1.75rem;
    }

    .hero-home p {
        margin-bottom: 1.75rem;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .hero-home .btn-container {
        gap: 0.875rem;
        flex-direction: column;
        width: 100%;
    }

    .hero-home .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.875rem;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero p {
        text-align: left !important;
        margin-left: 0 !important;
    }

    .hero-content {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero .btn-container {
        justify-content: flex-start !important;
    }

    .hero .container-wide {
        justify-content: flex-start !important;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    .card {
        padding: 1.5rem;
    }

    .team-card-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .feature-item h4 {
        font-size: 0.95rem;
    }

    .statistics-section .feature-item h4 {
        font-size: 2rem;
    }
}

