/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #191013;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244, 244, 242, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(25, 16, 19, 0.1);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
	padding: 5px;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f132e, #536d88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #191013;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #536d88;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #536d88, #b49b85);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* ← Muda para center */
    position: relative;
    background: 
        linear-gradient(135deg, rgba(15, 19, 46, 0.7) 0%, rgba(25, 39, 78, 0.7) 100%),
        url('../img/bg-hero.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 0 5%; /* ← Mesmo padding do blog */
}

.hero-content {
    text-align: left;
    color: #f4f4f2;
    z-index: 2;
    max-width: 1400px; /* ← Mesmo max-width do blog */
    width: 100%; /* ← Para ocupar toda a largura disponível */
    padding: 2rem 0;
    animation: fadeInUp 1s ease-out;
}

.welcome-message {
    font-size: 1.1rem;
    color: #eac195;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideInLeft 1s ease-out 0.1s both;
}
.social-icons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #536d88, #b49b85);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(83, 109, 136, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(25, 16, 19, 0.5);
    color: #f4f4f2;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #eac195;
    animation: slideInRight 1s ease-out 0.4s both;
}

.hero .credentials {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #b49b85;
    animation: fadeIn 1s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: bounceIn 1s ease-out 0.8s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(244, 244, 242, 0.1);
    color: #f4f4f2;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(180, 155, 133, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(25, 16, 19, 0.2);
}

.cta-button:hover {
    background: rgba(234, 193, 149, 0.2);
    border-color: rgba(234, 193, 149, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(25, 16, 19, 0.3);
}

.cta-button.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.cta-button.whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.5);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fagulhas - Sparks Animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.spark {
    position: absolute;
    background: radial-gradient(circle, #eac195 0%, rgba(234, 193, 149, 0.8) 40%, transparent 70%);
    border-radius: 50%;
    animation: sparkMove 6s linear infinite;
    box-shadow: 
        0 0 10px rgba(234, 193, 149, 0.8),
        0 0 20px rgba(234, 193, 149, 0.6),
        0 0 30px rgba(234, 193, 149, 0.4);
}

.spark-1 {
    width: 6px;
    height: 6px;
    top: 15%;
    right: -10px;
    animation-delay: 0s;
}

.spark-2 {
    width: 8px;
    height: 8px;
    top: 25%;
    right: -10px;
    animation-delay: 1s;
}

.spark-3 {
    width: 4px;
    height: 4px;
    top: 35%;
    right: -10px;
    animation-delay: 2s;
}

.spark-4 {
    width: 10px;
    height: 10px;
    top: 45%;
    right: -10px;
    animation-delay: 3s;
}

.spark-5 {
    width: 5px;
    height: 5px;
    top: 55%;
    right: -10px;
    animation-delay: 4s;
}

.spark-6 {
    width: 7px;
    height: 7px;
    top: 65%;
    right: -10px;
    animation-delay: 5s;
}

.spark-7 {
    width: 9px;
    height: 9px;
    top: 75%;
    right: -10px;
    animation-delay: 0.5s;
}

.spark-8 {
    width: 4px;
    height: 4px;
    top: 85%;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes sparkMove {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-110vw);
        opacity: 0;
    }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #0f132e, #536d88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #536d88, #b49b85);
    border-radius: 2px;
}

/* Blog Section */
.blog {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: -50px auto 0; /* ← Modifica apenas esta linha */
    background: #f4f4f2;
    position: relative;    /* ← Adiciona esta linha */
    z-index: 3;           /* ← Adiciona esta linha */
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.login-icon-btn {
    background: linear-gradient(135deg, #536d88, #b49b85);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(83, 109, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(83, 109, 136, 0.4);
    background: linear-gradient(135deg, #0f132e, #536d88);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card-horizontal {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(25, 16, 19, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    min-height: 300px;
}

.blog-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(25, 16, 19, 0.15);
}

.blog-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #536d88, #b49b85);
}

.blog-card-horizontal .blog-image {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f132e 0%, #536d88 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-horizontal .blog-image::before {
    content: '🏠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.blog-card-horizontal .blog-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-horizontal .blog-category {
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #536d88, #b49b85);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-horizontal .blog-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #191013;
    line-height: 1.3;
}

.blog-card-horizontal .blog-content-text {
    color: #191013;
    margin-bottom: auto;
    line-height: 1.8;
    text-align: justify;
    flex: 1;
}

.blog-card-horizontal .blog-content-text p {
    margin-bottom: 1rem;
}

.blog-card-horizontal .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #536d88;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(83, 109, 136, 0.1);
}

.view-older-posts {
    text-align: center;
    margin-top: 3rem;
}

.older-posts-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #536d88, #b49b85);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(83, 109, 136, 0.3);
}

.older-posts-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(83, 109, 136, 0.4);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f4f4f2 0%, #eac195 100%);
    padding: 6rem 5%;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0f132e, #536d88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #191013;
}

.credentials-card {
    background: rgba(244, 244, 242, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(25, 16, 19, 0.1);
    border: 1px solid rgba(180, 155, 133, 0.2);
}

.credentials-card h3 {
    color: #536d88;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #191013;
}

.credentials-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #536d88;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: #f4f4f2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: linear-gradient(135deg, #0f132e 0%, #536d88 100%);
    padding: 2.5rem;
    border-radius: 20px;
    color: #f4f4f2;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(234, 193, 149, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(15, 19, 46, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f132e 0%, #19274e 100%);
    color: #f4f4f2;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
    color: #eac195;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.contact-info li:hover {
    background: rgba(234, 193, 149, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #eac195;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 0 2%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .blog-card-horizontal {
        flex-direction: column;
        min-height: auto;
    }
    
    .blog-card-horizontal .blog-image {
        width: 100%;
        height: 200px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Modal de Login */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #f4f4f2;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(25, 16, 19, 0.3);
    animation: slideInDown 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0f132e, #536d88);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #191013;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(83, 109, 136, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #536d88;
    box-shadow: 0 0 0 3px rgba(83, 109, 136, 0.1);
}

.form-actions {
    margin-top: 1rem;
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #536d88, #b49b85);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(83, 109, 136, 0.3);
    background: linear-gradient(135deg, #0f132e, #536d88);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.login-message.success {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    display: block;
}

.login-message.error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    display: block;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}