/* Green Ascensionz - Responsive Styles */

/* Tablet Styles */
@media (max-width: 992px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .thank-you h1 {
        font-size: 2.2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    /* Container adjustments */
    .container {
        padding: 0 30px;
    }

    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }

    /* Hero section */
    .hero-content {
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* About section */
    .about-content {
        gap: 3rem;
    }

    .stats {
        gap: 1.5rem;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
        min-width: auto;
    }

    /* Contact */
    .contact-content {
        gap: 3rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Article */
    .article-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .article-nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Related articles */
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Thank you page */
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    /* Legal pages */
    .legal-content {
        padding: 40px 0;
    }

    /* Cookie settings */
    .settings-buttons {
        flex-direction: column;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem;
    }

    /* Contact info adjustments */
    .contact-info {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .thank-you h1 {
        font-size: 1.8rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .navbar .container {
        padding: 1rem 20px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-medium);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-graphic {
        order: 1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-graphic {
        order: 1;
    }

    .stats {
        justify-content: center;
        gap: 1rem;
    }

    .stat {
        flex: 1;
        min-width: 80px;
    }

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

    .team-member {
        padding: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .testimonial-author {
        gap: 0.75rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .newsletter-form input {
        width: 100%;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Blog */
    .blog-header {
        padding: 100px 0 60px;
    }

    .blog-content {
        padding: 60px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card h2 {
        font-size: 1.2rem;
    }

    /* Article */
    .article-header {
        padding: 100px 0 30px;
    }

    .article-content {
        padding: 40px 0;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text ul,
    .article-text ol {
        padding-left: 1.5rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    /* Related articles */
    .related-articles {
        padding: 40px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Thank you page */
    .thank-you {
        padding: 100px 0 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }

    .recommended-articles {
        padding: 60px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-cta {
        padding: 40px 0;
    }

    /* Legal pages */
    .legal-header {
        padding: 100px 0 40px;
    }

    .legal-content {
        padding: 30px 0;
    }

    .legal-text {
        font-size: 1rem;
    }

    .contact-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .document-footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    /* Cookie management */
    .cookie-settings-panel {
        padding: 30px 0;
    }

    .settings-box {
        padding: 1.5rem;
        margin: 0 10px;
    }

    .cookie-category-setting {
        margin-bottom: 1rem;
    }

    .cookie-category-setting label {
        gap: 0.75rem;
    }

    .settings-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-buttons .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Cookie modal */
    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-content {
        padding: 1.5rem;
        max-height: 90vh;
    }

    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Cookie table */
    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    .cookie-table th {
        font-size: 0.8rem;
    }

    /* Utility adjustments */
    .text-center-mobile {
        text-align: center;
    }

    .d-none-mobile {
        display: none;
    }

    .d-block-mobile {
        display: block;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar .container {
        padding: 1rem 15px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        width: 180px;
    }

    .cta-buttons .btn {
        width: 180px;
    }

    /* Cards */
    .service-card,
    .team-member,
    .testimonial,
    .step {
        padding: 1.25rem;
    }

    .blog-card h2 {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .blog-card p {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .read-more {
        margin: 0 1rem 1rem;
    }

    /* Forms */
    .contact-form-container {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Stats */
    .stat h3 {
        font-size: 1.5rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    /* Article */
    .article-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-tags {
        padding: 1rem;
        margin: 2rem 0;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .article-navigation {
        padding: 1.25rem;
    }

    /* Legal pages */
    .legal-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Cookie elements */
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-buttons .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .settings-box {
        padding: 1.25rem;
    }

    .cookie-modal-content {
        padding: 1.25rem;
    }

    /* Footer */
    .footer-brand .logo {
        width: 35px;
        height: 35px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .social-links svg {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .cookie-modal,
    .social-links,
    .btn,
    .hero-buttons,
    .cta-buttons,
    .newsletter,
    .contact-cta {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    .hero,
    .article-header,
    .blog-header,
    .legal-header,
    .thank-you {
        margin-top: 0;
        padding-top: 20px;
    }

    .article-text,
    .legal-text {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-navigation,
    .related-articles {
        display: none;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }

    p, li {
        color: black;
    }

    .contact-box {
        border: 1px solid black;
        background: white;
    }

    .cookie-table table {
        border: 1px solid black;
    }

    .cookie-table th,
    .cookie-table td {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2E7D32;
        --primary-dark: #1B5E20;
        --text-dark: #000000;
        --text-light: #424242;
        --border-color: #000000;
    }

    .btn-outline {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }

    .cookie-table th,
    .cookie-table td {
        border-width: 2px;
    }
}

/* Focus Styles for Better Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}
