/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* ===================================
   TABLET - 768px and up
   =================================== */

@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 60px 1.5rem;
    }

    .services-preview,
    .about-preview,
    .qualifications-section,
    .experience-section,
    .values-section,
    .methodologies-section,
    .reference-stats {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        gap: 2rem;
    }
}

/* ===================================
   MOBILE - 768px and down
   =================================== */

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header-container {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 50px;
    }

    /* Navigation - Mobile Menu */
    .navigation {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }

    .navigation.active {
        right: 0;
    }

    .navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 40px 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }

    /* Page Hero */
    .page-hero {
        padding: 40px 1rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    /* CTA Buttons */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Services Preview */
    .services-preview {
        padding: 40px 0;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    /* About Preview */
    .about-preview {
        padding: 40px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text h2 {
        margin-bottom: 1rem;
    }

    /* CTA Section */
    .cta-section,
    .page-cta {
        padding: 40px 1rem;
        margin: 40px 0;
    }

    .cta-section h2,
    .page-cta h2 {
        font-size: 1.5rem;
    }

    .cta-section p,
    .page-cta p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Qualifications */
    .qualifications-section {
        padding: 40px 0;
    }

    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .qualification-card {
        padding: 1.5rem;
    }

    /* Experience */
    .experience-section {
        padding: 40px 0;
    }

    .experience-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .highlight-item {
        padding: 1.5rem 1rem;
    }

    .highlight-item h3 {
        font-size: 1.8rem;
    }

    /* Values */
    .values-section {
        padding: 40px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    /* Service Details */
    .service-detail {
        padding: 30px 0;
    }

    .service-list {
        margin: 1rem 0;
    }

    .service-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    /* Methodologies */
    .methodologies-section {
        padding: 40px 0;
    }

    .methodology-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    /* References */
    .references-intro {
        margin-bottom: 2rem;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reference-card {
        padding: 0;
    }

    .reference-header {
        padding: 1rem;
    }

    .reference-header h3 {
        font-size: 1rem;
    }

    .reference-content {
        padding: 1rem;
    }

    .reference-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* News */
    .news-intro {
        margin-bottom: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .news-card {
        padding: 1.5rem;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 40px 1rem;
        margin: 40px 0;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* Contact */
    .contact-section {
        padding: 40px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* Contact FAQ */
    .contact-faq {
        padding: 40px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    /* About Layout */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-text-wrapper h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 40px 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-content p {
        margin: 0;
    }

    .cookie-accept {
        width: 100%;
    }
}

/* ===================================
   SMALL MOBILE - 480px and down
   =================================== */

@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    /* Header */
    .header-container {
        padding: 0.6rem 0.8rem;
    }

    .logo img {
        height: 45px;
    }

    /* Navigation */
    .navigation {
        max-width: 100%;
        right: -100%;
    }

    /* Hero */
    .hero {
        padding: 30px 0.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero::before {
        width: 200px;
        height: 200px;
    }

    /* CTA Buttons */
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* About */
    .about-image-wrapper {
        max-width: 200px;
    }

    /* Experience */
    .experience-highlights {
        grid-template-columns: 1fr;
    }

    /* References */
    .reference-header h3 {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-card {
        padding: 1.2rem;
    }

    .contact-icon {
        font-size: 1.8rem;
    }

    /* CTA Section */
    .cta-section,
    .page-cta {
        padding: 30px 0.8rem;
    }

    .cta-section h2,
    .page-cta h2 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0.8rem 0.8rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 0.8rem;
    }

    /* Popup */
    .popup-content {
        padding: 1.5rem;
        width: 95%;
    }

    .popup-content button {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   LANDSCAPE MODE
   =================================== */

@media (max-height: 600px) {
    .hero {
        padding: 30px 1rem;
    }

    .page-hero {
        padding: 30px 1rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --bg-white: #2a2a2a;
        --text-dark: #f0f0f0;
        --text-gray: #b0b0b0;
        --border-color: #444;
    }

    .header {
        background: #2a2a2a;
    }

    .hero,
    .page-hero {
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    }

    .hero h1,
    .page-hero h1 {
        color: #f0f0f0;
    }

    .cookie-banner {
        background: rgba(50, 50, 50, 0.98);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    header,
    footer,
    .cookie-banner,
    .cta-section,
    .page-cta,
    .newsletter-section,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: none;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p {
        page-break-inside: avoid;
    }
}