/* Finance Starlight - Responsive Stylesheet */

/* ===== EXTRA LARGE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* ===== LARGE SCREENS (1200px - 1399px) ===== */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== MEDIUM SCREENS (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero .container {
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* About Section */
    .about-content {
        gap: 3rem;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
    
    /* Contact Section */
    .contact-content {
        gap: 3rem;
    }
    
    /* Article Content */
    .article-content .container {
        gap: 3rem;
    }
}

/* ===== TABLET SCREENS (768px - 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* About Section */
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-text h3 {
        font-size: 2rem;
    }
    
    /* Services Section */
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Reviews Section */
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Newsletter Section */
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Blog */
    .blog-header {
        padding: 120px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Article */
    .article-header {
        padding: 120px 0 40px;
    }
    
    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .article-content {
        padding: 60px 0;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    /* Thank You Page */
    .thank-you-section {
        padding: 120px 0 60px;
    }
    
    .thank-you-content h1 {
        font-size: 2.5rem;
    }
    
    .expectations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons-large {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-section {
        padding: 40px 0;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 120px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.8rem;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== SMALL TABLET SCREENS (576px - 767px) ===== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat {
        min-width: 120px;
    }
    
    /* Social Icons */
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Blog Cards */
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    /* Article Body */
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
    }
    
    .article-body h3 {
        font-size: 1.4rem;
    }
    
    /* Cookie Table */
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.8rem 0.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Thank You Page */
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .expectation-item {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

/* ===== MOBILE SCREENS (475px - 575px) ===== */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar .container {
        padding: 1rem 15px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 35px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Sections */
    .about-section,
    .services-section,
    .reviews-section,
    .newsletter-section,
    .contact-section {
        padding: 50px 0;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
        text-align: left;
    }
    
    .service-icon {
        text-align: center;
    }
    
    .service-icon img {
        width: 60px;
        height: 60px;
    }
    
    /* Review Cards */
    .review-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    .newsletter-form input[type="email"] {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .newsletter-form button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-logo {
        height: 40px;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    /* Blog */
    .blog-header {
        padding: 100px 0 50px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-content p {
        font-size: 0.95rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Article */
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .article-content {
        padding: 50px 0;
    }
    
    .article-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-body p {
        text-align: left;
    }
    
    .article-sidebar {
        padding: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.2rem;
    }
    
    /* Thank You Page */
    .thank-you-section {
        padding: 100px 0 50px;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .expectation-item {
        padding: 1.25rem;
    }
    
    .expectation-item h3 {
        font-size: 1.2rem;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary,
    .action-buttons .btn-tertiary {
        width: 100%;
        max-width: none;
    }
    
    .social-link {
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 100px 0 50px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    /* Cookie Elements */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content h3 {
        font-size: 1.2rem;
    }
    
    .cookie-content p {
        font-size: 0.95rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .cookie-option {
        padding: 0.8rem;
    }
    
    .cookie-option label {
        font-size: 0.95rem;
    }
    
    .cookie-option p {
        font-size: 0.85rem;
        margin-left: 2rem;
    }
    
    /* Cookie Table */
    .cookie-table {
        overflow-x: scroll;
    }
    
    .cookie-table table {
        min-width: 600px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}

/* ===== EXTRA SMALL SCREENS (374px and below) ===== */
@media (max-width: 374px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .navbar .container {
        padding: 0.8rem 10px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 30px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .service-card,
    .review-card,
    .expectation-item {
        padding: 1.25rem;
    }
    
    .contact-form,
    .article-sidebar,
    .contact-details {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Newsletter */
    .newsletter-form input[type="email"] {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .newsletter-form button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Article */
    .article-body {
        font-size: 0.9rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    /* Cookie Modal */
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .cookie-option {
        padding: 0.6rem;
    }
    
    .cookie-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Service Icons */
    .service-icon img {
        width: 50px;
        height: 50px;
    }
    
    /* Success Icon */
    .success-icon {
        width: 60px;
        height: 60px;
    }
}

/* ===== LANDSCAPE ORIENTATION ON MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .about-section,
    .services-section,
    .reviews-section,
    .newsletter-section,
    .contact-section {
        padding: 40px 0;
    }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-svg,
    .about-svg,
    .service-card,
    .blog-card,
    .review-card {
        transform: none !important;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-tertiary:hover {
        transform: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-dark: #000000;
        --text-medium: #000000;
        --border-color: #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background-color: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .service-card,
    .review-card,
    .blog-card {
        border: 2px solid #000000;
    }
}

/* ===== PRINT RESPONSIVE ===== */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
