/* Wonderstores Diago - VERSÃO MODERNA COMPLETA CORRIGIDA */
/* ============================================ */

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
    color: white;
    background-color: #2C353C;
}

a { 
    transition: all 0.3s ease; 
    text-decoration: none;
}

ul { padding: 0; }
a:hover { text-decoration: none; }
button:focus { outline: none; }
p { line-height: 1.9; }
.tm-logo { margin-right: 20px; }
.tm-slogan { font-size: 0.8rem; }

/* Navigation */
.navbar-toggler {
    padding: 8px 15px;
    border: 0;
    border-radius: 0;
    transform: skewX(-15deg);
    background-color: rgba(0,0,0,0.5);
    color: white;    
}

.navbar-toggler i { transform: skewX(15deg); }

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link { padding: 0; }

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;    
    padding-bottom: 30px;    
    position: relative;
}

.nav-item { margin-right: 60px; }

.nav-item:last-child { margin-right: 0; }

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
    color: #9CC;
}

/* Navegação moderna - sublinhado animado */
.navbar-expand-lg .navbar-nav .tm-nav-link::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9CC;
    transition: width 0.3s ease;
}

.nav-item.active .tm-nav-link::after,
.nav-item:hover .tm-nav-link::after {
    width: 100%;
}

/* Page Background */
.tm-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1000;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right { background-color: rgba(0,0,0,0.5); }

.tm-bg-left {
    border-right: 230px solid rgba(0,0,0,0.5);
    border-top: 100vh solid transparent;
}

.tm-bg-controls-wrapper {
    display: inline-block;
    margin-left: -150px;
}

.tm-bg-control {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: rgba(255,255,255,0.5);
    margin: 6px;
    cursor: pointer;
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: white;
}

.tm-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  
}

.tm-row { 
    display: flex;
    min-height: 0; /* IMPORTANTE: Evita crescimento excessivo */
}

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 40px;  
    padding-right: 40px;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 70px;
    padding-right: 70px;
}

.tm-content {
    max-width: 660px;
    margin-top: 50px;
    padding-right: 20px;
    flex-grow: 1; /* Permite crescimento natural */
}

.tm-about { max-width: 525px; }

/* Scrollbar moderna */
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}
  
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}
  
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: linear-gradient(to bottom, #9CC, #6AA);
    box-shadow: 0 0 1px rgba(255,255,255,.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6AA, #9CC);
}

.tm-content-title { font-size: 1.5rem; }
hr { border-top: 1px solid white; }

/* CTAs MODERNAS E DINÂMICAS */
.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #9CC 0%, #6AA 100%);
    color: #1a1a1a;
    border: 0;
    box-shadow: 0 6px 20px rgba(102, 204, 204, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6AA 0%, #9CC 100%);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 204, 204, 0.5);
}

/* Efeito de brilho sutil no hover */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-big {
    padding: 14px 48px;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER CORRIGIDO - SEM ESPAÇO EXTRA
   ============================================ */
.tm-col-footer {
    padding-left: 0;
    margin-top: auto; /* Empurra para baixo naturalmente */
}

.tm-site-footer {
    padding: 25px 0 15px; /* Reduzido de 40px 0 20px */
    max-width: 660px;
    font-size: 0.9rem; /* Reduzido de 0.95rem */
    line-height: 1.4;
}

.tm-text-link { color: white; }

.tm-text-link:hover,
.tm-text-link:focus {
    color: #9CC;
}

/* Service */ 
.tm-service-text { max-width: 365px; }

/* MÓDULOS DINÂMICOS DE IMAGEM */
.tm-service-img, 
.tm-service-img-r {
    margin-right: 25px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tm-service-img-r { 
    margin-left: 25px; 
    margin-right: 0;
}

.tm-service-img:hover,
.tm-service-img-r:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Overlay sutil ao passar mouse */
.tm-service-img::after,
.tm-service-img-r::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tm-service-img:hover::after,
.tm-service-img-r:hover::after {
    opacity: 1;
}

/* Contact - Estilos gerais mantidos */
.form-control,
textarea {    
    color: white;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #999A9B;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 10px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus {
    color: white;
    background-color: transparent;    
    box-shadow: none;
    border-color: #9CC;
    outline: none;
}

/* ============================================
   CAIXA DE EMAIL MODERNA E DINÂMICA
   ============================================ */

/* FORMULÁRIO MODERNO */
.tm-form-field-container {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    min-height: 65px;
}

.tm-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #9CC;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    transform-origin: left;
    padding-left: 5px;
}

.tm-contact input[type="text"],
.tm-contact input[type="email"],
.tm-contact textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05rem;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    font-family: 'Open Sans', Arial, sans-serif;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    resize: vertical;
    min-height: 50px;
}

.tm-contact textarea {
    min-height: 120px;
    line-height: 1.6;
    padding-top: 16px;
    padding-bottom: 16px;
}

.tm-contact input[type="text"]:focus,
.tm-contact input[type="email"]:focus,
.tm-contact textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #9CC;
    border-width: 2px;
    box-shadow: 
        0 8px 30px rgba(102, 204, 204, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tm-contact input[type="text"]::placeholder,
.tm-contact input[type="email"]::placeholder,
.tm-contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-style: italic;
}

.tm-contact input[type="text"]:focus::placeholder,
.tm-contact input[type="email"]:focus::placeholder,
.tm-contact textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.tm-form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #9CC, #6AA, #9CC);
    border-radius: 0 0 12px 12px;
    transition: width 0.5s ease;
    z-index: 2;
}

.tm-form-field-container:has(input[type="text"]:focus) .tm-form-underline,
.tm-form-field-container:has(input[type="email"]:focus) .tm-form-underline,
.tm-form-field-container:has(textarea:focus) .tm-form-underline {
    width: 100%;
}

.tm-form-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(102, 204, 204, 0.2), transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.tm-form-field-container:has(input[type="text"]:focus) .tm-form-glow,
.tm-form-field-container:has(input[type="email"]:focus) .tm-form-glow,
.tm-form-field-container:has(textarea:focus) .tm-form-glow {
    opacity: 1;
}

.tm-form-validation {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #9CC;
    font-weight: 400;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tm-form-field-container:has(input[type="email"]:valid:not(:placeholder-shown)) .tm-form-validation {
    opacity: 1;
    color: #9CC;
}

.tm-form-field-container:has(input[type="email"]:valid:not(:placeholder-shown)) .tm-form-validation::before {
    content: "✓ Email válido";
}

.tm-form-field-container:has(input[type="email"]:invalid:not(:placeholder-shown)) .tm-form-validation {
    opacity: 1;
    color: #FF9C9C;
}

.tm-form-field-container:has(input[type="email"]:invalid:not(:placeholder-shown)) .tm-form-validation::before {
    content: "✗ Verifique o email";
}

@keyframes form-field-pulse {
    0% { 
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    50% { 
        box-shadow: 
            0 4px 25px rgba(102, 204, 204, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    100% { 
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

.tm-contact input[type="text"]:not(:focus),
.tm-contact input[type="email"]:not(:focus),
.tm-contact textarea:not(:focus) {
    animation: form-field-pulse 4s infinite;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .tm-contact input[type="text"],
    .tm-contact input[type="email"],
    .tm-contact textarea {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .tm-contact textarea {
        min-height: 100px;
    }
    
    .tm-form-label {
        font-size: 0.85rem;
    }
}

.tm-form-field-container:has(input:focus),
.tm-form-field-container:has(textarea:focus) {
    z-index: 10;
}

.tm-form-field-container * {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ============================================
   SECÇÃO "OUTRAS FORMAS DE CONTACTO" COMPACTA
   ============================================ */

.tm-contact-additional {
    margin-top: 40px; /* Reduzido de 60px */
    padding-top: 30px; /* Reduzido de 40px */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tm-contact-additional h4 {
    font-size: 1.2rem; /* Reduzido de 1.3rem */
    color: #9CC;
    margin-bottom: 20px; /* Reduzido de 25px */
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Container organizado mais compacto */
.tm-contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduzido de 250px */
    gap: 15px; /* Reduzido de 25px */
    margin-top: 15px; /* Reduzido de 20px */
}

/* Card de contacto mais compacto */
.tm-contact-method {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; /* Reduzido de 12px */
    padding: 16px; /* Reduzido de 20px */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 80px; /* Reduzido de 100px */
    display: flex;
    align-items: center;
}

.tm-contact-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(153, 204, 204, 0.3);
    transform: translateY(-2px); /* Reduzido de -3px */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Reduzido */
}

/* Ícone mais compacto */
.tm-contact-method-icon {
    font-size: 1.5rem; /* Reduzido de 1.8rem */
    color: #9CC;
    margin-right: 15px; /* Reduzido de 20px */
    min-width: 40px; /* Reduzido de 50px */
    text-align: center;
    transition: all 0.3s ease;
}

.tm-contact-method:hover .tm-contact-method-icon {
    transform: scale(1.1);
}

/* Conteúdo mais compacto */
.tm-contact-method-content h6 {
    font-size: 0.9rem; /* Reduzido de 0.95rem */
    color: #9CC;
    margin-bottom: 4px; /* Reduzido de 5px */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tm-contact-method-content p {
    font-size: 0.9rem; /* Reduzido de 0.95rem */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4; /* Reduzido de 1.5 */
}

/* ============================================
   RESPONSIVIDADE CORRIGIDA
   ============================================ */

@media (max-width: 1200px) {
    .nav-item { margin-right: 30px; }
    .tm-page-right {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {    
    .tm-nav {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        top: 44px;
        right: 4px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        color: white;
        font-size: 1.1rem;
        padding: 13px 20px;
    }

    .nav-item { margin-right: 0; }

    .nav-item.active .tm-nav-link,
    .nav-item:hover .tm-nav-link {
        color: #9CC;
    }

    /* Ajuste navegação mobile */
    .navbar-expand-lg .navbar-nav .tm-nav-link::after {
        bottom: 10px;
        height: 1.5px;
    }

    .tm-content { margin-top: 20px; }
    .tm-site-footer { padding-top: 25px; /* Reduzido */ }
    .tm-col-left { width: 40%; }

    .tm-col-right {
        width: 60%;
        padding-left: 100px;
        padding-right: 30px;
    }
    
    .tm-col-footer { padding-left: 0; }
}

@media (max-width: 768px) {
    .tm-row { 
        flex-direction: column;
        min-height: auto; /* Importante */
    }

    .tm-col-left,
    .tm-col-right,
    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: fixed;
        top: 50px;
        right: 40px;
        padding-bottom: 0;
    }  
    
    .tm-bg { flex-direction: column; }

    .tm-bg-left {
        height: 200px;        
        border-bottom: 50px solid rgba(0,0,0,0.5);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right { height: calc(100% - 200px); }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 50px;
    }

    .tm-content {
        max-height: none;
        margin-top: 40px;
        margin-bottom: 30px; /* Adicionado espaço abaixo */
    }

    .tm-col-right {
        padding-top: 40px;
        padding-left: 30px;
        padding-bottom: 20px; /* Adicionado */
    }

    .tm-col-footer {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 20px; /* Adicionado */
    }

    /* Ajustes modernos para mobile */
    .btn {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    
    .tm-service-img:hover,
    .tm-service-img-r:hover {
        transform: scale(1.02);
    }
    
    /* Ajustes email mobile */
    .tm-contact input[type="email"] {
        padding: 14px 16px 14px 45px; /* Reduzido */
        font-size: 1rem;
    }
    
    .tm-email-container::before {
        left: 15px;
        font-size: 1rem; /* Reduzido */
    }
    
    .tm-email-submit {
        padding: 7px 16px; /* Reduzido */
        font-size: 0.8rem; /* Reduzido */
        right: 5px;
    }
    
    .tm-email-label {
        font-size: 0.85rem;
    }
    
    .tm-contact input[type="email"]:focus {
        padding-left: 48px; /* Reduzido de 50px */
    }
    
    /* Secção de contacto adicional em mobile */
    .tm-contact-additional {
        margin-top: 30px; /* Mais compacto em mobile */
        padding-top: 25px;
    }
    
    .tm-contact-methods {
        grid-template-columns: 1fr;
        gap: 12px; /* Reduzido */
    }
    
    .tm-contact-method {
        padding: 14px; /* Reduzido */
        min-height: 75px; /* Reduzido */
    }
    
    .tm-contact-method-icon {
        font-size: 1.4rem; /* Reduzido */
        margin-right: 12px; /* Reduzido */
        min-width: 35px; /* Reduzido */
    }
}

@media (max-width: 460px) {
    .tm-logo { margin-right: 15px; }
    .tm-sitename { font-size: 1.8rem; }
    .tm-slogon { font-size: 0.8rem; }
    
    .tm-site-footer {
        padding: 20px 0 10px; /* Mais compacto */
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tm-contact-method {
        flex-direction: row; /* Mantém em linha */
        text-align: left;
        padding: 12px 15px;
        min-height: 70px;
    }
    
    .tm-contact-method-icon {
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .tm-contact-additional h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 450px), (min-width: 768px) and (max-width: 830px), (min-width: 992px) and (max-width: 1040px) {
    .tm-service-media { flex-direction: column; }
    .tm-service-media-img-l { flex-direction: column-reverse; }
    .tm-service-text { margin-top: 20px; }
    .tm-service-img { margin-right: 0; }
    .tm-service-img-r { margin-left: 0; }
}