/* ===== OTTRA — responsive.css ===== */
/* All media queries, print styles, accessibility */

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ottra-off-black);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
}

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

/* ===== Focus States ===== */
.hero-cta:focus,
.cta-primary:focus,
.cta-secondary:focus,
.header-cta:focus,
.service-cta:focus,
.btn-contact:focus,
.quote-card:focus-within {
    outline: 3px solid var(--ottra-pink);
    outline-offset: 2px;
}

/* ===== Large Tablets & Small Desktops (1024px) ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .blog-sidebar {
        order: 2;
    }

    .post-content {
        order: 1;
    }

    .service-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-hero__proof-block {
        display: none;
    }

    .story-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-section__callout {
        position: static;
    }

    .expertise-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

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

    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Homepage */
    .why-ottra__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    /* About Page */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .accreditations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Featured Quote */
    .featured-quote {
        padding: 80px 0;
    }

    .quote-card {
        padding: 35px;
        gap: 35px;
    }

    .quote-text {
        font-size: 1.2rem;
    }
}

/* ===== Tablets (768px) ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo img {
        height: 30px;
    }

    .container {
        padding: 0 15px;
    }

    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ottra-off-black);
        border-top: 2px solid var(--ottra-pink);
        z-index: 999;
    }

    .nav-menu.mobile-menu-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }

    /* Language flags in mobile menu */
    .language-flags {
        margin: 0;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        gap: 12px;
    }

    /* Dropdown hidden on mobile — links navigate directly */
    .dropdown-menu {
        display: none;
    }

    .nav-item:has(.dropdown-menu) > .nav-link::after {
        display: none;
    }

    /* Homepage Hero */
    .homepage-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .homepage-hero__headline {
        font-size: 2.6rem;
    }

    .homepage-hero__badges img {
        height: 55px;
    }

    /* Proof Bar */
    .proof-bar__inner {
        gap: 32px;
    }

    .proof-bar__badge {
        height: 40px;
    }

    /* Why OTTRA */
    .why-ottra {
        padding: 60px 0;
    }

    .why-ottra__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Homepage Services */
    .homepage-services {
        padding: 60px 0;
    }

    .homepage-services__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Homepage Quote */
    .homepage-quote {
        padding: 60px 0;
    }

    /* About Page */
    .about-story,
    .about-team {
        padding: 60px 0;
    }

    .about-accreditations,
    .about-values {
        padding: 60px 0;
    }

    .values-grid {
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .accreditations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Story Section */
    .story-section {
        padding: 60px 0;
    }

    .story-section__callout {
        padding: 32px;
    }

    /* Outcomes */
    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .outcomes-section {
        padding: 60px 0;
    }

    /* How It Works */
    .steps-list {
        max-width: 100%;
    }

    .step {
        grid-template-columns: 48px 1fr;
        gap: 20px;
        padding-bottom: 36px;
    }

    .step__circle {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .steps-list::before {
        left: 23px;
        top: 48px;
    }

    .how-it-works {
        padding: 60px 0;
    }

    /* CTA Band */
    .cta-band {
        padding: 50px 0;
    }

    .cta-band__heading {
        font-size: 1.5rem;
    }

    /* Closing CTA & Quote */
    .closing-cta {
        padding: 60px 0;
    }

    .closing-quote {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        padding-top: 70px;
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    /* Service Hero */
    .service-hero {
        padding: 110px 0 60px;
        min-height: auto;
    }

    .service-hero__headline {
        font-size: 2.8rem;
    }

    .service-hero__subhead {
        font-size: 1.1rem;
    }

    .service-hero__trust {
        flex-wrap: wrap;
        gap: 15px;
    }

    .service-hero__trust .trust-badge {
        height: 35px;
    }

    .service-hero .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .service-hero .hero-cta {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .service-hero .service-cta {
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hero-cta,
    .hero-cta-secondary,
    .btn-contact {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    /* Section Headers */
    .value-props-header h2,
    .expertise-header h2,
    .services-header h2,
    .testimonials-header h2,
    .cta-section h2,
    .section-header h2 {
        font-size: 2.5rem;
    }

    .blog-hero-content h1 {
        font-size: 2.8rem;
    }

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

    /* Featured Quote */
    .featured-quote {
        padding: 60px 0;
    }

    .quote-container {
        padding: 0 15px;
    }

    .quote-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

    .quote-card::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .quote-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .quote-avatar {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-title {
        font-size: 1rem;
    }

    /* Grids — single column */
    .value-props-grid,
    .services-grid,
    .testimonials-grid,
    .posts-grid,
    .related-posts-grid,
    .benefits-stats,
    .expertise-grid,
    .features-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .roi-stats {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* Credentials */
    .credential-badges {
        flex-direction: column;
        gap: 20px;
    }

    /* Blog */
    .posts-header {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .blog-filters {
        justify-content: center;
        flex-wrap: wrap;
    }

    .blog-filters select,
    .blog-filters input {
        width: 100%;
        max-width: 250px;
    }

    .featured-posts-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Service Visual Containers */
    .hero-visual-box,
    .pipeline-visual,
    .review-process,
    .training-visual,
    .migration-visual {
        padding: 30px 20px;
        min-height: 300px;
    }

    .process-item {
        margin: 12px 0;
        font-size: 1rem;
    }

    .process-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .process-icon .icon-inner {
        font-size: 1rem;
    }

    .process-text {
        font-size: 1.2rem;
    }

    .credentials-trust .credentials-header h2 {
        font-size: 2.5rem;
    }

    /* Training/Challenge */
    .training-modules {
        padding: 30px 20px;
    }

    .module-item {
        margin: 15px 0;
        font-size: 1rem;
    }

    .challenge-card {
        padding: 30px 20px;
    }

    .challenge-card h3 {
        font-size: 1.5rem;
    }

    /* Cookie Popup */
    .cookie-popup {
        padding: 16px;
    }

    .cookie-popup-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-popup-title {
        font-size: 1rem;
    }

    .cookie-popup-description {
        font-size: 0.85rem;
    }

    .cookie-popup-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    /* Contact Hero */
    .contact-hero {
        padding: 120px 0 50px;
    }

    .contact-hero__heading {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-badges img {
        height: 45px;
    }

    .contact-stats__row {
        gap: 32px;
    }

    .contact-proof__grid {
        grid-template-columns: 1fr;
    }

    .contact-trust__row img {
        height: 60px;
    }

    /* Course List */
    .course-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .course-row:hover {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== Mobile Phones (480px) ===== */
@media (max-width: 480px) {
    /* Service Hero */
    .service-hero {
        padding: 100px 0 50px;
    }

    .service-hero__headline {
        font-size: 2.2rem;
    }

    .service-hero__eyebrow {
        font-size: 0.8rem;
    }

    .service-hero__subhead {
        font-size: 1rem;
    }

    .service-hero__trust .trust-badge {
        height: 30px;
    }

    .service-hero__proof {
        font-size: 0.8rem;
    }

    /* Homepage Hero */
    .homepage-hero {
        padding: 100px 0 50px;
    }

    .homepage-hero__headline {
        font-size: 2rem;
    }

    .homepage-hero__subhead {
        font-size: 1.05rem;
    }

    .homepage-hero__badges {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 16px 20px;
        justify-content: start;
    }

    .homepage-hero__badges img {
        height: 36px;
    }

    /* Proof Bar */
    .proof-bar__inner {
        flex-direction: column;
        gap: 24px;
    }

    .proof-bar__number {
        font-size: 1.8rem;
    }

    .proof-bar__badge {
        height: 35px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .value-props-header h2,
    .expertise-header h2,
    .services-header h2,
    .testimonials-header h2,
    .cta-section h2,
    .section-header h2 {
        font-size: 2rem;
    }

    .blog-hero-content h1 {
        font-size: 2.2rem;
    }

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

    /* Featured Quote */
    .quote-card {
        padding: 25px 20px;
        border-radius: 15px;
        gap: 25px;
    }

    .quote-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .quote-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }

    .quote-card::before {
        font-size: 3rem;
        top: -5px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title {
        font-size: 0.9rem;
    }

    /* Card Padding */
    .value-prop-card,
    .service-card,
    .expertise-item,
    .feature-card {
        padding: 30px 20px;
    }

    .testimonial-card,
    .post-card,
    .related-post-card {
        padding: 20px;
    }

    /* Hero Stats/Timeline */
    .hero-stats,
    .upgrade-timeline {
        padding: 30px 20px;
    }

    .stat-item {
        padding: 12px 0;
    }

    .stat-label {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .timeline-item {
        margin: 15px 0;
        font-size: 1rem;
    }

    /* ROI */
    .roi-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .roi-number,
    .benefit-number {
        font-size: 2.5rem;
    }

    /* Blog Post Header */
    .post-header-content {
        padding: 0 20px;
    }

    .post-author-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .post-author-info .author-avatar {
        width: 60px;
        height: 60px;
    }

    /* Sidebar */
    .blog-sidebar {
        padding: 30px 20px;
    }

    /* Content */
    .post-content,
    .content-wrapper {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Form Elements */
    .blog-filters select,
    .blog-filters input {
        padding: 12px;
        font-size: 1rem;
    }

    /* Buttons */
    .hero-cta,
    .cta-primary,
    .header-cta,
    .btn-contact {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .hero-cta-secondary,
    .cta-secondary {
        padding: 13px 28px;
        font-size: 1rem;
    }

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

    .hero {
        padding-top: 70px;
        min-height: 70vh;
    }

    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-post-header {
        padding: 100px 0 40px;
    }

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

    /* Service Visuals */
    .hero-visual-box,
    .pipeline-visual,
    .review-process,
    .training-visual,
    .migration-visual {
        padding: 25px 15px;
        min-height: 250px;
    }

    .process-item {
        margin: 10px 0;
        font-size: 0.95rem;
    }

    .process-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }

    .process-icon .icon-inner {
        font-size: 0.9rem;
    }

    .process-text {
        font-size: 1.1rem;
    }

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

    .credential-item {
        padding: 25px 15px;
    }

    /* Training */
    .training-modules {
        padding: 20px 15px;
    }

    .module-item {
        font-size: 0.95rem;
    }

    .module-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .challenge-card {
        padding: 25px 15px;
    }

    /* Icons */
    .value-prop-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .expertise-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Cookie Popup */
    .cookie-popup {
        padding: 12px;
    }

    .cookie-popup-content {
        gap: 12px;
    }

    .cookie-popup-title {
        font-size: 0.9rem;
    }

    .cookie-popup-description {
        font-size: 0.8rem;
    }

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

/* ===== Extra Small (320px) ===== */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .value-props-header h2,
    .expertise-header h2,
    .services-header h2,
    .testimonials-header h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .hero-cta,
    .cta-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 10px;
    }

    .header-content {
        padding: 0 10px;
    }

    .quote-card {
        padding: 20px 15px;
    }

    .quote-text {
        font-size: 0.95rem;
    }

    .quote-avatar {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }

    .quote-card::before {
        font-size: 2.5rem;
    }

    /* Course List */
    .course-list-section {
        padding: 60px 0;
    }

    .course-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .course-row:hover {
        padding-left: 0;
        padding-right: 0;
    }

    /* FAQ Section */
    .faq-section {
        padding: 60px 0;
    }

    .faq-question__text {
        font-size: 0.98rem;
    }
}

/* ===== Landscape Mobile ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .cta-section,
    .share-buttons,
    .blog-sidebar,
    .featured-quote,
    .cookie-popup {
        display: none !important;
    }

    body {
        padding-top: 0;
        color: black;
        background: white;
    }

    .blog-post-content {
        padding: 20px 0;
    }

    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-content h1,
    .post-content h2,
    .post-content h3 {
        break-after: avoid;
    }
}

/* ===== High DPI Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }

    .quote-card {
        transition: none;
    }

    .quote-card:hover {
        transform: none;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --ottra-pink: #E91E63;
        --gitlab-orange: #FF5722;
        --ottra-text: #000000;
    }

    .quote-card {
        border: 2px solid var(--ottra-pink);
    }

    .quote-text,
    .author-name {
        color: #000;
    }
}

/* ===== Touch Devices ===== */
@media (hover: none) {
    .service-card:hover,
    .value-prop-card:hover,
    .expertise-item:hover,
    .testimonial-card:hover,
    .quote-card:hover {
        transform: none;
    }
}
