/* ═══════════════════════════════════════════════════════════════════════════
   RT-TEC RESPONSIVE STYLES - Mobile & Tablet
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet & Landscape (≤ 992px) */
@media (max-width: 992px) {
    .intro-embed {
        min-height: 24vh;
    }

    .intro-embed iframe {
        height: 24vh;
        min-height: 170px;
    }

    .hero {
        min-height: 55vh;
    }

    .about-content {
        gap: 2.5rem;
        padding: 2.2rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Small Tablet (≤ 900px) */
@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .intro-video-wrapper {
        width: 100%;
        max-width: none;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2,
    .hero-content p {
        overflow-wrap: anywhere;
    }

    .hero-content h2 {
        font-size: clamp(1.9rem, 5.2vw, 2.6rem);
    }

    .hero-content p {
        margin: 0 auto;
    }

    .hero-service-buttons {
        align-self: center;
        margin-inline: auto;
    }
}

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    main {
        background-attachment: scroll;
    }

    .point-embed-shell {
        width: min(100%, calc(100% - 1.5rem));
        border-radius: 20px;
    }

    .point-embed iframe {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    body {
        padding-top: 86px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1200;
    }

    /* Intro Video */
    .intro-video {
        max-height: 35vh;
    }

    .intro-replay-btn {
        width: 52px;
        height: 52px;
    }

    .intro-replay-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 clamp(0.9rem, 4vw, 1.2rem);
    }

    nav {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.65rem;
        flex-wrap: wrap;
    }

    .logo {
        display: flex;
        justify-content: flex-start;
    }

    .header-right {
        width: auto;
        margin-left: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0.45rem;
        flex-wrap: nowrap;
        align-self: flex-start;
    }

    .lang-toggle {
        justify-content: flex-end;
    }

    .header-contact {
        flex: 0 1 auto;
        text-align: right;
    }

    .header-contact p {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        min-height: 58vh;
        padding: 2.25rem 0;
    }

    .hero-copy,
    .about-content,
    .service-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero .container {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .intro-video-wrapper {
        width: 100%;
        max-width: none;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-service-buttons {
        align-self: center;
        margin-inline: auto;
    }

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

    .service-card {
        padding: 1.9rem;
    }

    .service-media {
        height: 220px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .service-media-architecture {
        background-position: center 28%;
    }

    .service-media-industry {
        background-position: center;
    }

    .service-media-terrain {
        background-position: center;
    }

    /* About */
    .about-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-title-wrap {
        grid-column: 1;
        align-items: center;
    }

    .about-title {
        text-align: center;
    }

    .about-photo-card {
        grid-column: 1;
        width: 100%;
    }

    .about-photo-card {
        height: auto;
    }

    .about-photo {
        width: 100%;
        height: auto;
        max-width: none;
        object-fit: contain;
        object-position: center;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .about-info {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(0, 86, 179, 0.2);
        padding-top: 2rem;
    }

    .about-location-trigger {
        width: min(100%, 520px);
        max-width: 100%;
    }

    .location-close {
        width: 34px;
        height: 34px;
        font-size: 1.65rem;
    }

    .location-dialog {
        max-height: 72vh;
    }

    /* Service Buttons Animation */
    .hero-service-buttons.is-open .architecture-button {
        translate: -52px 40px;
    }

    .hero-service-buttons.is-open .industry-button {
        translate: 0 62px;
    }

    .hero-service-buttons.is-open .terrain-button {
        translate: 52px 40px;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .about-location-trigger {
        width: min(100%, 380px);
    }

    .location-dialog {
        max-height: 65vh;
    }

    .location-close {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }

    .point-embed-shell {
        width: min(100%, calc(100% - 1rem));
        border-radius: 18px;
    }

    .point-embed iframe {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .intro-embed {
        min-height: 21vh;
    }

    .intro-embed iframe {
        height: 21vh;
        min-height: 130px;
    }

    body {
        padding-top: 78px;
    }

    /* Intro Video */
    .intro-video {
        max-height: 28vh;
    }

    .intro-replay-btn {
        width: 44px;
        height: 44px;
    }

    .intro-replay-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Header */
    header {
        padding: 0.55rem 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 clamp(0.75rem, 5vw, 1rem);
    }

    nav {
        gap: 0.5rem;
    }

    .logo h1 {
        gap: 0.55rem;
        font-size: 1.35rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .header-right {
        width: auto;
        margin-left: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0.4rem;
        align-self: flex-start;
    }

    .lang-toggle {
        justify-content: flex-end;
    }

    .header-contact {
        width: auto;
        text-align: right;
    }

    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .header-contact p {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    /* Hero Section */
    .hero {
        min-height: 54vh;
        padding: 2rem 0;
    }

    .hero-copy {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        max-width: 95%;
        font-size: 0.95rem;
    }

    /* Service Buttons */
    .hero-service-buttons .main-button,
    .hero-service-buttons .button {
        padding: 8px;
    }

    .hero-service-buttons .button svg,
    .hero-service-buttons .main-button svg,
    .service-side-icon {
        width: 24px;
        height: 24px;
    }

    .service-main-logo {
        width: 26px;
        height: 26px;
    }

    /* Services */
    .service-card {
        padding: 1.6rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-media {
        height: 190px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .service-media-architecture {
        background-position: center 28%;
    }

    .service-media-industry {
        background-position: center;
    }

    .service-media-terrain {
        background-position: center;
    }

    /* About */
    .about-top {
        gap: 2rem;
        margin-bottom: 1.2rem;
    }

    .about-photo-card {
        height: auto;
    }

    .about-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    /* Service Buttons Animation */
    .hero-service-buttons.is-open .architecture-button {
        translate: -44px 35px;
    }

    .hero-service-buttons.is-open .industry-button {
        translate: 0 54px;
    }

    .hero-service-buttons.is-open .terrain-button {
        translate: 44px 35px;
    }

    /* Legal Dialog */
    .legal-dialog {
        height: min(90vh, 840px);
    }

    .legal-close {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .location-close {
        width: 32px;
        height: 32px;
        font-size: 1.55rem;
    }

    .cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        border-radius: 16px;
    }

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

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

    .cookie-banner__button {
        width: 100%;
    }
}
