﻿/* =============================================================================
   RESPONSIVE.CSS â€” Lovely London
   Todos os media queries extraÃ­dos de main.css.
   Organizado por seÃ§Ã£o.
   ============================================================================= */
/* =============================================================================
   LOVELY LONDON - CORREÇÕES MOBILE COMPLETAS
   Otimizações para dispositivos móveis
   ============================================================================= */

/* =============================================================================
   1. MENU MOBILE - REDUZIDO E OTIMIZADO
   ============================================================================= */

@media (max-width: 992px) {

    /* Menu mobile: altura reduzida e mais compacto */
    .nav {
        position: fixed;
        top: 70px;
        /* Reduzido para colar melhor no header */
        left: -100%;
        right: 0;
        width: 100%;
        height: auto !important;
        /* Altura automática ao invés de tela cheia */
        max-height: 80vh;
        /* Máximo 80% da altura da tela */
        background: var(--lovely);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md) !important;
        /* Padding top reduzido */
        gap: var(--spacing-sm) !important;
        /* Gap reduzido entre itens */
        transition: left var(--transition-base);
        z-index: var(--z-dropdown);
        overflow-y: auto;
        /* Scroll se necessário */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Linha sutil para separar do header */
    }

    .nav.nav--open {
        left: 0;
    }

    .nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem !important;
        /* Font size reduzido */
        padding: var(--spacing-sm) var(--spacing-md) !important;
        /* Padding reduzido */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    /* Logo aumentado em 20% e centralizado no mobile */
    .logo-img {
        height: 60px !important;
        /* 50px + 20% = 60px */
    }

    /* Header mais compacto */
    .header {
        padding: var(--spacing-xs) 0 !important;
    }

    /* Centralizar logo no mobile */
    .header-merged-container {
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .logo-link {
        margin: 0 auto !important;
    }

    /* Posicionar menu hamburguer no canto direito */
    .header-right-controls {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body.page-inner {
        padding-top: 70px !important;
    }

    /* Hero/páginas grudados no header - sem espaço */
    .hero-slider-container,
    .page-header,
    main,
    main>.section:first-child,
    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .nav {
        top: 60px;
        /* Ainda mais próximo em telas pequenas */
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md) !important;
    }

    .nav .nav-link {
        font-size: 0.95rem !important;
        padding: 10px var(--spacing-sm) !important;
    }

    .logo-img {
        height: 48px !important;
        /* 40px + 20% = 48px */
    }

    body.page-inner {
        padding-top: 60px !important;
    }

    /* Hero/páginas grudados no header - sem espaço */
    .hero-slider-container,
    .page-header,
    main,
    main>.section:first-child,
    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ============================================================
   HERO MOBILE - força conteúdo logo abaixo do header fixo
   ============================================================ */
@media (max-width: 767px) {
    .hero-flex-container {
        justify-content: flex-start !important;
        padding-top: 80px !important;
        /* ~altura do header mobile */
        align-items: center !important;
    }
}

/* =============================================================================
   2. HERO SECTION - VÍDEO COM FALLBACK PARA IMAGEM NO MOBILE
   ============================================================================= */

/* Garantir que o vídeo funcione bem em mobile */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Fallback: esconder vídeo em telas muito pequenas e usar apenas imagem */
@media (max-width: 768px) {

    /* Vídeo pode não funcionar bem em mobile, então fornecemos fallback */
    .hero-bg-video {
        display: none;
        /* Esconde o vídeo em mobile */
    }

    /* A imagem de background já está definida no elemento .hero-bg como fallback */
    .hero-slide .hero-bg {
        display: block !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Altura do hero reduzida no mobile */
    .hero-slider-container {
        height: 60vh !important;
        min-height: 400px !important;
    }

    /* Conteúdo do hero mais compacto */
    /* Conteúdo do hero mais legível e arejado */
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 2.8rem) !important;
        /* Levemente menor para dar ar */
        line-height: 1.25 !important;
        margin-bottom: var(--spacing-xl) !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: var(--spacing-2xl) !important;
        /* Muito espaço (4rem/64px) */
    }

    /* Hero badge - mais espaço abaixo */
    .hero-content .inline-flex {
        margin-bottom: var(--spacing-xl) !important;
    }

    /* Espaço entre botões e search bar */
    .hero-content .cta-buttons {
        margin-bottom: var(--spacing-2xl) !important;
    }

    /* Logos de certificação menores no mobile */
    .hero-certification-logos {
        bottom: 10px !important;
        gap: 8px !important;
    }

    .hero-cert-logo {
        max-height: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 50vh !important;
        min-height: 350px !important;
    }

    .hero-content {
        padding: var(--spacing-md) !important;
    }

    .hero-cert-logo {
        max-height: 25px !important;
    }
}

/* =============================================================================
   3. CAROUSEL DE EMPRESAS/CLIENTES - SCROLL HORIZONTAL COM TOQUE NO MOBILE
   ============================================================================= */

/* Desktop: mantém animação automática */
.clients-section {
    padding: var(--spacing-xl) 0 !important;
    background: var(--white);
    overflow: hidden;
}

.logos {
    display: flex;
    gap: var(--spacing-2xl);
    animation: logoScroll 40s linear infinite;
    will-change: transform;
}

.logos-slide {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
    flex-shrink: 0;
}

/* Mobile: scroll horizontal com toque */
@media (max-width: 768px) {
    .clients-section {
        overflow: visible !important;
        padding: var(--spacing-xl) 0 var(--spacing-lg) !important;
    }

    .logos {
        gap: var(--spacing-lg);
        /* Animação pausada no mobile - controle via scroll */
        animation: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        cursor: grab;
        user-select: none;
        padding: var(--spacing-sm) 0;
    }

    .logos:active {
        cursor: grabbing;
    }

    /* Esconder scrollbar mas manter funcionalidade */
    .logos::-webkit-scrollbar {
        height: 4px;
    }

    .logos::-webkit-scrollbar-track {
        background: transparent;
    }

    .logos::-webkit-scrollbar-thumb {
        background: rgba(112, 4, 32, 0.3);
        border-radius: 2px;
    }

    .logos::-webkit-scrollbar-thumb:hover {
        background: rgba(112, 4, 32, 0.5);
    }

    .logos-slide {
        gap: var(--spacing-lg);
        scroll-snap-align: start;
    }

    .logos img {
        height: 40px !important;
        width: auto;
        object-fit: contain;
        filter: grayscale(100%) opacity(0.6);
        transition: all 0.3s ease;
        scroll-snap-align: center;
    }

    .logos img:hover,
    .logos img:active {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.05);
    }

    .clients-section h2 {
        font-size: 1.25rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    /* Indicador visual de scroll */
    .clients-section::after {
        content: '← Deslize →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #999;
        margin-top: var(--spacing-sm);
        font-style: italic;
    }
}

@media (max-width: 480px) {
    .logos {
        gap: var(--spacing-md);
    }

    .logos-slide {
        gap: var(--spacing-md);
    }

    .logos img {
        height: 30px !important;
    }
}

/* =============================================================================
   4. CARDS GRID - 2 COLUNAS NO MOBILE COM TEXTO REDUZIDO
   ============================================================================= */

/* Cards sempre 2 por linha no mobile */
@media (max-width: 768px) {

    .promo-grid,
    .promo-grid-4col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }

    /* Reduzir padding dos cards */
    .promo-card {
        height: auto !important;
    }

    /* Título dos cards menor */
    .promo-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        padding: 0 !important;
    }

    .promo-card h3 {
        font-size: 1rem !important;
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    /* Espaçamento reduzido */
    .promo-item {
        gap: 6px !important;
    }
}

@media (max-width: 480px) {

    .promo-grid,
    .promo-grid-4col {
        gap: 8px !important;
    }

    .promo-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .promo-card h3 {
        font-size: 0.9rem !important;
        padding: 8px var(--spacing-sm) !important;
    }
}

/* =============================================================================
   5. SEÇÕES E TÍTULOS - ESPAÇAMENTO OTIMIZADO
   ============================================================================= */

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0 var(--spacing-2xl) !important;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-top: var(--spacing-lg) !important;
        margin-bottom: var(--spacing-md) !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: var(--spacing-lg) !important;
    }

    .container {
        padding: 0 var(--spacing-md) !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-lg) 0 var(--spacing-xl) !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-top: var(--spacing-md) !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
    }

    .container {
        padding: 0 var(--spacing-sm) !important;
    }
}

/* =============================================================================
   6. BOTÕES - TAMANHO OTIMIZADO PARA MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        /* WCAG touch target minimum */
        min-width: 44px;
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }

    .btn-outline {
        min-height: 44px;
        /* WCAG touch target minimum */
        min-width: 44px;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    .btn-small {
        min-height: 44px;
        /* WCAG touch target minimum */
        min-width: 44px;
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
    }

    /* Ensure adequate spacing between touch targets */
    .cta-buttons,
    .action-buttons,
    .button-group {
        gap: 12px !important;
        /* Minimum 8px spacing between touch targets */
    }
}

@media (max-width: 480px) {
    .btn {
        min-height: 44px;
        /* Maintain WCAG minimum even on small screens */
        min-width: 44px;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    .btn-outline {
        min-height: 44px;
        /* Maintain WCAG minimum even on small screens */
        min-width: 44px;
        padding: 10px 18px !important;
        font-size: 0.8rem !important;
    }
}

/* =============================================================================
   7. HERO SPLIT LAYOUT - OTIMIZAÇÃO MOBILE
   ============================================================================= */

@media (max-width: 992px) {

    /* Split layout vira coluna única no mobile */
    .hero-slide-split .hero-split-content {
        flex-direction: column !important;
        gap: var(--spacing-lg) !important;
    }

    .hero-features-grid,
    .hero-tours-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
    }

    .hero-feature-item {
        padding: var(--spacing-md) !important;
    }

    .hero-feature-item h4 {
        font-size: 1rem !important;
    }

    .hero-feature-item p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {

    .hero-features-grid,
    .hero-tours-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================================================
   8. PERFORMANCE E OTIMIZAÇÕES GERAIS
   ============================================================================= */

/* Otimizar renderização no mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(112, 4, 32, 0.1);
    }

    /* Smooth scrolling otimizado */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Imagens otimizadas */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Transições mais rápidas no mobile */
    * {
        transition-duration: 0.2s !important;
    }
}

/* =============================================================================
   9. TESTIMONIALS - MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .testimonials-track {
        gap: var(--spacing-sm) !important;
    }

    .testimonial-card {
        min-width: calc(50% - var(--spacing-xs)) !important;
        padding: var(--spacing-sm) !important;
    }

    .testimonial-photo {
        width: 50px !important;
        height: 50px !important;
    }

    .testimonial-text {
        font-size: 0.8rem !important;
    }

    .testimonial-author {
        font-size: 0.85rem !important;
    }

    .testimonial-location {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 100% !important;
    }
}

/* =============================================================================
   10. SERVICES/TOURS CARDS - MOBILE
   ============================================================================= */

@media (max-width: 768px) {

    .service-card h3,
    .tour-card h3 {
        font-size: 1.1rem !important;
    }

    .tour-badge {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }

    .tour-price .price-amount {
        font-size: 1.5rem !important;
    }

    .tour-description {
        font-size: 0.85rem !important;
    }
}

/* =============================================================================
   11. FOOTER - MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
        text-align: center !important;
    }

    .footer-column h4 {
        font-size: 1rem !important;
    }

    .footer-column a,
    .footer-column p {
        font-size: 0.85rem !important;
    }
}

/* =============================================================================
   12. BLOG - FOTOS SEMPRE QUADRADAS (1:1)
   ============================================================================= */

/* Desktop e Mobile: fotos do blog sempre quadradas */
.section-blog .promo-card {
    aspect-ratio: 1 / 1 !important;
}

.section-blog .promo-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* =============================================================================
   12.1. BLOG MOBILE - LAYOUT LISTA COM FOTO EMBAIXO
   ============================================================================= */

@media (max-width: 768px) {

    /* Ajustar espaçamento da seção blog */
    .section-blog {
        padding-top: var(--spacing-2xl) !important;
    }

    /* Esconder elementos desnecessários no mobile */
    .section-blog .blog-header {
        display: none !important;
    }

    /* Grid vira lista vertical */
    .section-blog .promo-grid-4col {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
        margin-top: var(--spacing-md) !important;
    }

    /* Item do blog: layout vertical SEM card (limpo) */
    .section-blog .promo-item {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        transition: none;
        align-items: stretch;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: var(--spacing-md) !important;
        margin-bottom: var(--spacing-md) !important;
    }

    .section-blog .promo-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0 !important;
    }

    .section-blog .promo-item:hover {
        box-shadow: none !important;
        transform: none;
    }

    /* Conteúdo no topo */
    .section-blog .blog-content-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
        order: 1;
        /* Garante que o conteúdo apareça primeiro */
    }

    /* Foto oculta no mobile */
    .section-blog .promo-card {
        display: none !important;
    }

    /* Título do post */
    .section-blog .promo-title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: var(--blackfriars) !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Descrição do post */
    .section-blog .blog-excerpt-mobile {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        color: #475569 !important;
        /* Better contrast - slate-600 */
        margin: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Botão "Ler mais" */
    .section-blog .blog-read-more {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: var(--lovely) !important;
        text-decoration: none;
        margin-top: 4px;
        transition: all 0.3s ease;
    }

    .section-blog .blog-read-more svg {
        width: 14px;
        height: 14px;
        transition: transform 0.3s ease;
    }

    .section-blog .promo-item:hover .blog-read-more {
        color: var(--notting-hill) !important;
    }

    .section-blog .promo-item:hover .blog-read-more svg {
        transform: translateX(3px);
    }

    /* Meta info (categoria, data) */
    .section-blog .blog-meta-mobile {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        font-size: 0.7rem;
        color: #475569;
        /* Better contrast slate-600 */
        margin-top: 2px;
    }

    .section-blog .blog-meta-mobile .category-badge {
        background: rgba(112, 4, 32, 0.1);
        color: var(--lovely);
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.65rem;
    }

    /* Título da seção */
    .section-blog .section-title {
        text-align: left !important;
        font-size: 1.5rem !important;
        margin-top: 0 !important;
        margin-bottom: var(--spacing-lg) !important;
        padding-top: 0 !important;
    }

    /* Botão "Ver mais posts" */
    .section-blog .section-footer {
        margin-top: var(--spacing-lg) !important;
    }
}

@media (max-width: 480px) {
    .section-blog .promo-item {
        padding: 0 !important;
        gap: var(--spacing-xs) !important;
        padding-bottom: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    .section-blog .promo-title {
        font-size: 0.9rem !important;
    }

    .section-blog .blog-excerpt-mobile {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 3 !important;
    }

    .section-blog .blog-read-more {
        font-size: 0.75rem !important;
    }
}

/* =============================================================================
   13. FORMULÁRIOS - ESPAÇAMENTO MÍNIMO ENTRE CAMPOS
   ============================================================================= */

/* Desktop e Mobile: reduzir espaçamento entre campos do formulário */
.contact-form,
.booking-form,
.quote-form,
form {
    gap: 8px !important;
    /* Espaçamento mínimo entre campos */
}

.form-group {
    margin-bottom: 0 !important;
}

.form-group+.form-group {
    margin-top: 8px !important;
}

/* Manter o gap interno do form-group (label para input) */
.form-group {
    gap: 4px !important;
}

@media (max-width: 768px) {

    .contact-form,
    .booking-form,
    .quote-form,
    form {
        gap: 6px !important;
    }

    .form-group+.form-group {
        margin-top: 6px !important;
    }
}

/* =============================================================================
   14. BOTÃO FLUTUANTE WHATSAPP - SVG 100% DO TAMANHO
   ============================================================================= */

.whatsapp-float {
    padding: 8px !important;
}

.whatsapp-float svg {
    width: 100% !important;
    height: 100% !important;
    fill: var(--white) !important;
    display: block !important;
}

/* =============================================================================
   15. CARDS RESPONSIVOS - ESPAÇAMENTO CONSISTENTE
   ============================================================================= */

/* Desktop: sempre 4 cards por linha, espaçamento fixo */
.promo-grid,
.promo-grid-4col {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-md) !important;
    justify-items: center !important;
}

/* Garantir que os cards preencham o espaço disponível */
.promo-grid .promo-item,
.promo-grid-4col .promo-item {
    width: 100% !important;
}

/* Tablet: 3 cards por linha */
@media (max-width: 992px) and (min-width: 769px) {

    .promo-grid,
    .promo-grid-4col {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile: 2 cards por linha (mantém o comportamento atual) */
@media (max-width: 768px) {

    .promo-grid,
    .promo-grid-4col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }
}

@media (max-width: 480px) {

    .promo-grid,
    .promo-grid-4col {
        gap: 8px !important;
    }
}

/* =============================================================================
   16. GARANTIR QUE OS FIXES NÃO SEJAM SOBRESCRITOS
   ============================================================================= */

/* Importante: alguns estilos precisam de !important para sobrescrever
   estilos inline ou outros CSS que podem estar conflitando */

/* =============================================================================
   EXTRACTED FROM MAIN.CSS
   ============================================================================= */

@media (max-width: 767px) {

    /* Hero: Move text and search bar higher */
    #hero-section .container {
        justify-content: flex-start !important;
        padding-top: 0 !important;
    }

    /* Hero search bar - positioned naturally below buttons */
    #hero-section .mt-6 {
        margin-top: 0 !important;
        /* Reset tailwind margin */
        position: relative !important;
        bottom: auto !important;
        top: auto !important;
        padding-bottom: 2rem !important;
        /* Space at bottom of screen */
        opacity: 1 !important;
        /* Force visible */
        animation: none !important;
        /* Stop animation conflict */
    }

    #hero-section form {
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        padding: 5px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    #hero-section form input {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }

    #hero-section form button {
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
    }

    /* Testimonials: Smaller section on mobile */
    #testimonials-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #testimonials-section .max-w-4xl {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Page headers: Reduce top padding and left-align */
    .pt-32.pb-12 {
        padding-top: 5rem !important;
        padding-bottom: 1rem !important;
        text-align: left !important;
    }

    .pt-32.pb-12.text-center,
    div.pt-32.pb-12.text-center,
    #tours-section.pt-32,
    #services-section.pt-32,
    #about-section.pt-32 {
        text-align: left !important;
    }

    .pt-32.pb-12 h1,
    .pt-32.pb-12.text-center h1,
    #tours-section h1,
    #services-section h1,
    #about-section h1 {
        text-align: left !important;
    }

    .pt-32.pb-12 p,
    .pt-32.pb-12.text-center p,
    #tours-section p,
    #services-section p,
    #about-section p {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    /* FAQ section header on mobile */
    #faq-section .text-center,
    #faq-section>div>div.text-center {
        text-align: left !important;
    }

    #faq-section .text-center h2,
    #faq-section .text-center span,
    #faq-section .text-center p {
        text-align: left !important;
    }
}

@media (min-width: 768px) {

    /* Hero Title - More compact for side-by-side layout */
    #hero-section h1 {
        font-size: clamp(3.5rem, 4.5vw, 5.5rem) !important;
    }

    /* Hero Subtitle - Proportional to title */
    #hero-section h1+p,
    #hero-section .hero-subtitle-depth {
        font-size: clamp(1rem, 1.25vw, 1.35rem) !important;
    }
}

@media (min-width: 1024px) {

    /* Slightly larger for better balance with search bar */
    #hero-section h1 {
        font-size: clamp(4rem, 4.5vw, 5.5rem) !important;
    }

    #hero-section h1+p,
    #hero-section .hero-subtitle-depth {
        font-size: clamp(1.125rem, 1.35vw, 1.5rem) !important;
    }
}

@media (min-width: 768px) and (max-height: 900px) {
    #hero-section .container {
        padding-top: 140px !important;
    }
}

@media (min-width: 768px) and (max-height: 768px) {
    #hero-section .container {
        padding-top: 120px !important;
    }
}

@media (max-width: 767px) {
    .reveal-element {
        opacity: 1;
        transform: none;
    }

    .grid .tour-card,
    .grid .service-card,
    .grid .blog-post-card,
    .grid [class*="col-span"] {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) {
    body.page-inner {
        padding-top: 120px;
    }
}

@media (max-width: 1200px) {
    .section-testimonials .testimonial-card {
        min-width: calc(33.333% - var(--spacing-sm)) !important;
    }
}

@media (max-width: 768px) {
    .section-testimonials .testimonial-card {
        min-width: calc(50% - var(--spacing-sm)) !important;
    }
}

@media (max-width: 640px) {
    .section-testimonials .testimonial-card {
        min-width: 100% !important;
    }
}

@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        right: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--lovely);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
        gap: var(--spacing-lg);
        transition: left var(--transition-base);
        z-index: var(--z-dropdown);
    }

    .nav.nav--open {
        left: 0;
    }

    .nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }

    .mobile-nav-extras {
        display: none !important;
    }

    .desktop-only-btn,
    .desktop-only-lang {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex;
        z-index: calc(var(--z-dropdown) + 1);
    }

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

@media (max-width: 992px) {

    .desktop-only-btn,
    .desktop-only-lang {
        display: none;
        /* Hide on mobile */
    }

    /* Remove old menu-extras-dropdown styles */
    .menu-extras-dropdown {
        display: none;
        /* Ensure it's hidden */
    }
}

@media (min-width: 1024px) {
    .slider-controls {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .promo-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .promo-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .section-testimonials .testimonial-card {
        min-width: calc(33.333% - var(--spacing-sm)) !important;
    }
}

@media (max-width: 768px) {
    .section-testimonials .testimonial-card {
        min-width: calc(50% - var(--spacing-sm)) !important;
    }

    .testimonial-text {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 640px) {
    .section-testimonials .testimonial-card {
        min-width: 100% !important;
    }

    .testimonial-photo {
        width: 50px;
        height: 50px;
    }

    .testimonial-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .testimonial-left {
        width: 100%;
    }

    .testimonial-right {
        width: 100%;
    }

    .testimonial-right .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonials-nav {
        width: 40px;
        height: 40px;
    }

    .testimonials-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .testimonial-photo-horizontal {
        width: 60px;
        height: 60px;
    }

    .testimonials-nav {
        width: 36px;
        height: 36px;
    }

    .testimonials-prev {
        left: -5px;
    }

    .testimonials-next {
        right: -5px;
    }
}

@media (max-width: 768px) {
    .blog-list {
        max-width: 100%;
    }

    .blog-post-card {
        padding: var(--spacing-lg);
    }

    .blog-post-title a {
        font-size: 1.5rem;
    }

    .blog-post-text-image {
        flex-direction: column;
    }

    .blog-post-image {
        width: 100%;
        order: -1;
    }

    .blog-post-image img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .blog-post-card {
        padding: var(--spacing-md);
    }

    .blog-post-title a {
        font-size: 1.25rem;
    }

    .blog-post-excerpt p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .form-message {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .textarea-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .char-counter {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {

    .about-content,
    .about-content-reversed {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-content-reversed .about-image-wrapper,
    .about-content-reversed .about-text {
        order: auto;
    }
}

@media (max-width: 1200px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: var(--spacing-sm);
    }

    .tour-card-simple {
        min-height: 150px;
        max-width: 200px;
        aspect-ratio: 4/3;
    }

    .tour-card-simple h3 {
        font-size: 0.8rem;
        line-height: 1.1;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .tour-card-simple .promo-card-content {
        padding: var(--spacing-sm);
    }

    .tour-card-simple .social-proof-badge {
        padding: 2px 4px;
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .tour-card-simple {
        min-height: 140px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .empty-state {
        padding: var(--spacing-2xl) var(--spacing-md);
        min-height: 250px;
    }

    .empty-state-icon svg {
        width: 48px;
        height: 48px;
    }

    .empty-state h3 {
        font-size: 1.25rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-slider-container {
        min-height: 500px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .header-main {
        padding: var(--spacing-sm) 0;
    }

    .logo-img {
        height: 40px;
    }

    .header-bottom {
        position: static;
    }

    /* Hamburger branco quando header bottom é #700420 */
    .nav {
        display: flex;
    }

    .header-bottom .social-links {
        display: none;
    }

    .hero-slider-container {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content {
        padding: var(--spacing-lg);
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tour-locations {
        grid-template-columns: 1fr;
    }

    .streetview-container {
        height: 300px;
    }

    .streetview-controls {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

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

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

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

    .cookie-btn {
        width: 100%;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }

    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: var(--spacing-lg);
        left: var(--spacing-lg);
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: var(--spacing-sm);
    }

    .lightbox-next {
        right: var(--spacing-sm);
    }

    .lightbox-thumbnails {
        bottom: 60px;
    }

    .blog-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

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

    .hero-content p {
        font-size: 0.95rem;
    }

    .trust-badge {
        font-size: 0.85rem;
    }

    .trust-badge-icon {
        width: 24px;
        height: 24px;
    }

    .promo-card {
        height: 350px;
    }

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

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

    .modal-content {
        padding: var(--spacing-lg);
    }

    .newsletter-content {
        margin: var(--spacing-md);
    }

    .newsletter-header {
        padding: var(--spacing-lg);
    }

    .newsletter-body {
        padding: var(--spacing-lg);
    }
}

@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .cookie-consent,
    .newsletter-popup,
    .slider-nav,

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

    .hero-slider-container {
        height: auto;
        min-height: 0;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

@media (prefers-contrast: high) {
    :root {
        --lovely: #8B0000;
        --blackfriars: #000000;
        --white: #FFFFFF;
        --light-gray: #D0D0D0;
    }

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

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        animation: none;
    }

    .logos {
        animation: none;
    }

    .whatsapp-float {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --fog-white: #1a1a1a;
        --white: #2d2d2d;
        --blackfriars: #e5e5e5;
        --gray: #a0a0a0;
        --light-gray: #404040;
    }

    body {
        background-color: #0f0f0f;
        color: var(--blackfriars);
    }

    .header {
        background-color: #1a1a1a;
    }

    .btn {
        background-color: var(--white);
        color: var(--blackfriars);
    }
}

@media (max-width: 768px) {
    .weather-widget {
        padding: 0;
        gap: 8px;
    }

    .weather-widget-location {
        display: none;
    }

    .weather-widget-temp {
        font-size: 1rem;
    }

    .weather-widget-meta {
        font-size: 0.6rem;
    }

    .weather-widget-icon svg {
        width: 20px;
        height: 20px;
    }
}