/* =============================================
   TAXI PRIVADO — Mobile Styles
   Comfortable, premium feel for visitors on phones
   ============================================= */

/* =============================================
   TABLET — max-width: 1024px
   ============================================= */

@media (max-width: 1024px) {
    .tp-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-fleet-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .tp-section {
        padding: 5rem 1.75rem;
    }
}


/* =============================================
   MOBILE — max-width: 768px
   ============================================= */

@media (max-width: 768px) {

    /* --- Defensive: no element should ever cause horizontal scroll --- */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Decorative CTA circle: cap to viewport (was fixed 600px) */
    .tp-cta::before {
        width: min(600px, 100vw);
        height: min(600px, 100vw);
    }

    /* All section wrappers: never exceed viewport width */
    .tp-hero,
    .tp-contact-bar,
    .tp-section,
    .tp-stats,
    .tp-cta,
    .tp-footer,
    .tp-divider,
    .tp-container {
        max-width: 100vw;
        overflow-x: clip;
    }

    /* --- Global touch targets --- */
    a,
    button,
    select,
    input[type="submit"] {
        min-height: 44px;
    }

    /* Prevent iOS zoom on input focus */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* --- Smooth scroll offset for fixed nav --- */
    html {
        scroll-padding-top: 80px;
    }

    /* --- Nav --- */
    .tp-nav {
        padding: 0.85rem 1.25rem;
        z-index: 5000;
        overflow: visible;
    }

    .tp-nav-brand img {
        height: 38px;
    }

    .tp-nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 5001;
        margin: 0;
        padding: 0;
    }

    .tp-nav-links.open {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .tp-nav-links a {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--white);
    }

    .tp-nav-links.open a {
        opacity: 1;
        transform: translateY(0);
    }

    .tp-nav-links.open > a:nth-child(1) { transition-delay: 0.1s; }
    .tp-nav-links.open > a:nth-child(2) { transition-delay: 0.15s; }
    .tp-nav-links.open > a:nth-child(3) { transition-delay: 0.2s; }
    .tp-nav-links.open > a:nth-child(4) { transition-delay: 0.25s; }
    .tp-nav-links.open > a:nth-child(5) { transition-delay: 0.3s; }
    .tp-nav-links.open > a:nth-child(6) { transition-delay: 0.35s; }

    .tp-nav-links a.active {
        color: var(--gold);
    }

    .tp-hamburger {
        display: flex;
        position: relative;
        z-index: 5002;
        width: 35px;
        height: 35px;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .tp-hamburger span {
        position: absolute;
    }

    .tp-hamburger span:nth-child(1) {
        transform: translateY(-7px);
    }

    .tp-hamburger span:nth-child(3) {
        transform: translateY(7px);
    }

    .tp-hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .tp-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .tp-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .tp-nav-phone {
        display: none;
    }

    body.tp-menu-open {
        overflow: hidden;
    }

    .tp-nav-links .tp-nav-phone-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--gold);
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    /* --- Language Selector --- */
    .tp-lang-select {
        min-height: 40px;
    }

    /* --- Hero --- */
    .tp-hero {
        min-height: auto;
        padding: 6rem 1.25rem 3rem;
    }

    .tp-hero-content {
        padding: 0;
    }

    .tp-hero-badge {
        font-size: 0.7rem;
        letter-spacing: 2px;
        padding: 0.4rem 1rem;
        margin-bottom: 1.25rem;
    }

    .tp-hero-title {
        font-size: 2.4rem;
        line-height: 1.18;
        margin-bottom: 1rem;
    }

    .tp-hero-title br {
        display: none;
    }

    .tp-hero-sub {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 36ch;
    }

    .tp-hero-actions {
        gap: 0.75rem;
    }

    /* Hide busy decorative SVG sweep on phones */
    .tp-gold-line {
        display: none;
    }

    /* --- Buttons (used in hero, fleet, CTA) --- */
    .tp-btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.8rem;
        letter-spacing: 1.2px;
    }

    /* --- Sections --- */
    .tp-section {
        padding: 3.5rem 1.25rem;
    }

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

    .tp-section-label {
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin-bottom: 0.65rem;
    }

    .tp-section-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    /* --- Contact bar --- */
    .tp-contact-bar {
        padding: 0.5rem 1rem;
    }

    .tp-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tp-contact-item {
        border-right: none;
        border-bottom: 1px solid rgba(212, 168, 67, 0.12);
        padding: 1.1rem 0.5rem;
        gap: 0.85rem;
    }

    .tp-contact-item:last-child {
        border-bottom: none;
    }

    .tp-contact-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .tp-contact-icon i {
        font-size: 0.95rem;
    }

    .tp-contact-item h4 {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.2rem;
    }

    .tp-contact-item p {
        font-size: 0.9rem;
    }

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

    .tp-service-card {
        padding: 1.75rem 1.5rem;
        border-radius: 14px;
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.5rem 1.1rem;
        align-items: start;
    }

    .tp-service-icon {
        width: 52px;
        height: 52px;
        margin: 0;
        grid-row: span 2;
    }

    .tp-service-icon i {
        font-size: 1.2rem;
    }

    .tp-service-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
        align-self: end;
    }

    .tp-service-card p {
        font-size: 0.85rem;
        line-height: 1.55;
        align-self: start;
    }

    /* --- Stats --- */
    .tp-stats {
        padding: 2.25rem 1.25rem;
    }

    .tp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .tp-stat h3 {
        font-size: 2rem;
    }

    .tp-stat p {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    /* --- Fleet --- */
    .tp-fleet-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tp-fleet-image {
        aspect-ratio: 997 / 972;
        border-radius: 14px;
    }

    .tp-fleet-text h2 {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .tp-fleet-text > p {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .tp-fleet-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
        margin-bottom: 1.75rem;
    }

    .tp-fleet-feat span {
        font-size: 0.85rem;
    }

    .tp-fleet-feat i {
        font-size: 0.85rem;
    }

    /* --- Why choose us --- */
    .tp-why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tp-why-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
        gap: 1rem;
    }

    .tp-why-num {
        font-size: 2rem;
    }

    .tp-why-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .tp-why-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* --- CTA --- */
    .tp-cta {
        padding: 3.5rem 1.25rem;
    }

    .tp-cta h2 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .tp-cta p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .tp-cta-phone {
        font-size: 1.5rem;
    }

    /* --- Footer --- */
    .tp-footer {
        padding: 2.5rem 1.25rem;
        text-align: center;
    }

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

    .tp-footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .tp-footer-brand {
        font-size: 1.4rem;
    }
}


/* =============================================
   SMALL PHONE — max-width: 480px
   ============================================= */

@media (max-width: 480px) {

    /* --- Nav --- */
    .tp-nav {
        padding: 0.75rem 1rem;
    }

    .tp-nav-brand img {
        height: 34px;
    }

    /* --- Hero --- */
    .tp-hero {
        padding: 5.5rem 1rem 2.5rem;
    }

    .tp-hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 1rem;
    }

    .tp-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .tp-hero-sub {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }

    /* Hero buttons: stacked but content-sized, not full-width */
    .tp-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .tp-btn {
        width: auto;
        max-width: 240px;
        padding: 0.8rem 1.5rem;
        font-size: 0.78rem;
        justify-content: center;
    }

    /* --- Sections --- */
    .tp-section {
        padding: 3rem 1rem;
    }

    .tp-section-header {
        margin-bottom: 2rem;
    }

    .tp-section-title {
        font-size: 1.6rem;
    }

    /* --- Services --- */
    .tp-service-card {
        padding: 1.4rem 1.15rem;
        gap: 0.4rem 0.9rem;
    }

    .tp-service-icon {
        width: 46px;
        height: 46px;
    }

    .tp-service-icon i {
        font-size: 1.05rem;
    }

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

    .tp-service-card p {
        font-size: 0.82rem;
    }

    /* --- Stats --- */
    .tp-stats {
        padding: 2rem 1rem;
    }

    .tp-stat h3 {
        font-size: 1.75rem;
    }

    .tp-stat p {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
    }

    /* --- Fleet --- */
    .tp-fleet-text h2 {
        font-size: 1.5rem;
    }

    .tp-fleet-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    /* --- Why --- */
    .tp-why-card {
        padding: 1.25rem 1rem;
        gap: 0.85rem;
    }

    .tp-why-num {
        font-size: 1.75rem;
    }

    .tp-why-card h3 {
        font-size: 1rem;
    }

    /* --- CTA --- */
    .tp-cta {
        padding: 3rem 1rem;
    }

    .tp-cta h2 {
        font-size: 1.55rem;
    }

    .tp-cta-phone {
        font-size: 1.3rem;
    }

    .tp-cta .tp-hero-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    /* --- Contact bar tighter --- */
    .tp-contact-item {
        padding: 1rem 0.25rem;
    }
}

@media (max-width: 768px) {
    .tp-nav .tp-nav-links:not(.open) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .tp-nav .tp-nav-links.open {
        display: flex !important;
    }
}
