/* Specific styles for Wedding Invitation page */

/* Hero Section Styles */
.wedding-invite-hero {
    position: relative;
    height: 100dvh;
    overflow: hidden;
}

.wedding-invite-hero .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wedding-invite-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.wedding-invite-hero:hover .hero-image {
    transform: scale(1);
}

.wedding-invite-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.wedding-invite-hero .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 100%;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.wedding-invite-hero .service-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.wedding-invite-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.wedding-invite-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.wedding-invite-hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wedding-invite-hero .hero-cta {
    margin-top: 20px;
}

.wedding-invite-hero .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.wedding-invite-hero .btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.wedding-invite-hero .btn-primary:hover {
    background-color: #d33545;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

.wedding-invite-hero .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.wedding-invite-hero .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    text-align: center;
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
    justify-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #E63946;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* How it Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.how-it-works .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Process Steps */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    margin-top: 50px;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 24px;
    left: 36px;
    height: calc(100% - 48px);
    width: 2px;
    background-color: rgba(230, 57, 70, 0.3);
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: #E63946;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.step-content {
    background-color: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

/* Image and Text Section / Benefits */
.image-text-section {
    padding: 0;
    position: relative;
    background: none;
    text-align: center;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.benefits-image {
    position: absolute; /* Posicionamento absoluto para funcionar como background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Altura total */
    z-index: 0; /* Abaixo do conteúdo */
    overflow: hidden;
}

.full-height-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Sem border-radius em mobile */
}

.benefits-content {
    padding: 40px 20px;
    position: relative;
    z-index: 1; /* Acima da imagem */
    background-color: transparent; /* Fundo transparente para mostrar a imagem */
}

.benefits-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Overlay leve para melhorar legibilidade */
    z-index: -1;
}

/* Tablet specific styles */
@media (min-width: 640px) and (max-width: 1023px) {
    
    .benefit-item {
        flex: 0 0 80%;
        max-width: 80%;
        padding: 0 10px;
        scroll-snap-align: center;
        margin:0 auto 30px auto; /* Centraliza os itens */
    }
}

/* Media query para desktop (a partir de 1000px) */
@media (min-width: 1000px) {
    .benefits-container {
        flex-direction: row;
        min-height: 600px;
    }
    
    .benefits-image {
        position: relative; /* Volta a ser relativo */
        height: auto; /* Reset da altura fixa */
        flex: 1;
        overflow: hidden;
    }
    
    .full-height-image {
        border-radius: 0px 50px 50px 0px; /* Restaurando border-radius apenas para desktop */
    }
    
    .benefits-content {
        flex: 1;
        padding: 80px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        background: white; /* Fundo branco para desktop */
    }
    
    .benefits-content::before {
        display: none; /* Remove overlay em desktop */
    }
}

.benefits-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.8); /* Sombra para melhorar legibilidade no mobile */
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.benefits-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Benefits List */
.benefits-list {
    margin: 40px auto;
    max-width: 800px;
}

.benefit-item {
    display: flex;
    margin-bottom: 30px;
    text-align: left;
    
}

/* Ajustes para desktop */
@media (min-width: 1000px) {
    .benefits-content h2 {
        text-align: left;
        text-shadow: none; /* Remove text shadow on desktop */
        background-color: transparent; /* Remove background on desktop */
        padding: 0 0 15px 0; /* Reset padding */
        display: block; /* Reset display */
    }
    
    .benefits-content h2::after {
        left: 0;
        transform: none;
    }
    
    .benefits-list {
        margin: 40px 0;
    }
}

.benefit-item {
    display: flex;
    margin-bottom: 30px;
    text-align: left;
    align-items: flex-start;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;

}

.benefit-item:hover {
    transform: translateY(-5px);

}

@media (min-width: 1000px) {
    .benefit-item {
        background-color: transparent; /* Sem fundo em desktop */
        box-shadow: none;
        padding: 10px 0;
        border-radius: 0;
    }
    
    .benefit-item:hover {
        transform: none;
        box-shadow: none;
    }
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:nth-child(1) .benefit-icon {
    background-color: #f0f8ff;
    color: #0078d4;
}

.benefit-item:nth-child(2) .benefit-icon {
    background-color: #f0fff0;
    color: #2e8b57;
}

.benefit-item:nth-child(3) .benefit-icon {
    background-color: #fff0f5;
    color: #ff69b4;
}

.benefit-item:nth-child(4) .benefit-icon {
    background-color: #fff8e1;
    color: #ffa000;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-content {
    flex-grow: 1;
}

.benefit-content h3 {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .image-text-section .flex {
        flex-direction: column-reverse;
    }
    
    .image-text-section .image-container {
        margin-top: 30px;
    }
}

/* Devices Showcase */
.devices-showcase {
    margin-top: 50px;
}

.device-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.multi-device {
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.device-item {
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.device-item:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.desktop-device {
    max-width: 700px;
    width: 100%;
    margin-bottom: 40px;
}

.laptop-device {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.tablet-device {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.mobile-device {
    flex: 0 0 150px;
    max-width: 150px;
}

.device-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.device-label {
    margin-top: 12px;
    font-weight: 500;
    color: #333;
}

.showcase-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    text-align: center;
}

.showcase-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-cta {
    margin-top: 40px;
    text-align: center;
}

.showcase-cta .btn-primary,
.showcase-cta .btn-lg {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.showcase-cta .btn-primary:hover,
.showcase-cta .btn-lg:hover {
    background-color: #d33545;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.device-label {
    margin-top: 15px;
    font-weight: 500;
    color: #666;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #E63946;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}


/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.cta-section .container {
    margin: 0 auto;
    padding: 0 20px;
}

.cta-container {
    position: relative;
    background: url('/outros-servicos/images/imagem-casamento-3-horzontal.webp') no-repeat center/cover;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    padding: 60px 40px;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.7));
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    flex: 1 1 100%;
    text-align: center;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-description {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.cta-buttons .btn-primary:hover {
    background-color: #d33545;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.cta-buttons .btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(29, 53, 87, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 53, 87, 0.2);
}

/* Common Section Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-16 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 50px;
}

.mt-10 {
    margin-top: 40px;
}

.mt-3 {
    margin-top: 12px;
}

.font-medium {
    font-weight: 500;
}

.text-lg {
    font-size: 1.2rem;
}

.mb-2 {
    margin-bottom: 10px;
}

.font-semibold {
    font-weight: 600;
}

.bg-gray-50 {
    background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wedding-invite-hero .hero-title {
        font-size: 2rem;
    }
    
    .wedding-invite-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .wedding-invite-hero .hero-description {
        font-size: 1rem;
    }
    
    .wedding-invite-hero .hero-cta .btn {
        margin: 5px;
        display: inline-block;
        width: auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-image {
        /* A imagem já está posicionada absolutamente, não precisa de altura aqui */
        position: absolute;
        height: 100%;
    }
    
    .benefits-container {
        min-height: 650px; /* Garantir altura mínima para o container */
    }
    
    .benefits-content {
        padding: 40px 20px;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .py-16 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .wedding-invite-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .process-steps:before {
        left: 24px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 15px;
    }
    
    /* Removendo altura fixa para benefits-image em smartphones, 
       pois agora ela funciona como background em posição absoluta */
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
