/* CSS RESET & VARIABLES - LUCAS MONTADOR PALETTE */
:root {
    --primary-color: #1E3A8A; /* Dark Blue - Trust/Professional */
    --primary-hover: #1E40AF;
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --bg-main: #ffffff;
    --bg-secondary: #F3F4F6; /* Light Gray */
    --white: #ffffff;
    --accent: #F59E0B; /* Amber/Orange - Construction/Action */
    --accent-hover: #D97706;
    --whatsapp: #25d366;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.bg-light {
    background-color: var(--bg-secondary);
}

/* Logo Section */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent);
}

.logo-brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.5rem;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 8px auto 0;
}
.sobre .subtitle::after, .blog .subtitle::after {
    margin: 8px 0 0;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-light {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--bg-secondary);
}

/* HEADER */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-only {
    display: none;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* HERO */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1581141849291-1125c7b692b5?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero-title {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 300;
    opacity: 0.9;
}

/* SOBRE */
.sobre {
    padding: 100px 0;
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sobre-img {
    flex: 1;
    position: relative;
    border-radius: 50%; /* Fazendo a imagem de perfil ficar circular se quiser, ou manter 10px dependendo do crop */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 15px 15px 0px var(--accent);
}

.sobre-img img {
    width: 100%;
    height: auto;
    display: block;
}

.badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.sobre-text {
    flex: 1;
}

.sobre-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.sobre-lista li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 500;
}

.sobre-lista i {
    color: var(--accent);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* SERVICOS */
.servicos {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.blog .section-header {
    text-align: left;
    margin: 0 0 40px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-left-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
}

/* BLOG SECTION */
.blog {
    padding: 100px 0;
}

.blog-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.blog-grid::-webkit-scrollbar {
    height: 8px;
}

.blog-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.blog-grid::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 4px;
}

.blog-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 visíveis no PC */
    min-width: 280px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E5E7EB;
}

/* GRIDE DA PÁGINA DO BLOG E PESQUISA */
.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card-page {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

.blog-card-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    font-size: 1.1rem;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font-body);
}

.search-input:focus {
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.blog-card-content {
    padding: 30px;
}

.blog-tag {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-transform: none; /* Make blog titles read normally */
}

.blog-card h3 a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-read-more {
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 12px;
    color: var(--accent-hover);
}

/* BLOG POST PAGE LAYOUT */
.blog-article {
    max-width: 800px;
    margin: 60px auto 100px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}

.article-breadcrumb {
    margin-bottom: 30px;
}

.article-breadcrumb a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.article-header {
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.article-header h1 {
    font-size: 2.5rem;
    text-transform: none;
    color: var(--text-dark);
    margin: 15px 0;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-body h2 {
    font-size: 1.8rem;
    text-transform: none;
    margin: 40px 0 15px;
    color: var(--primary-color);
}

.article-body h3 {
    text-transform: none;
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.article-body p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.article-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.article-body li {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text-dark);
}

.article-cta {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
    border-left: 5px solid var(--accent);
}

.article-cta h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.article-cta p {
    margin-bottom: 20px;
}

/* CTA / CONTATO */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #172554 100%);
    color: var(--white);
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.whatsapp-btn:hover {
    background-color: #1ea952;
    transform: translateY(-3px);
}

.instagram-btn {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.instagram-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.google-btn {
    background-color: #ffffff;
    color: #4285F4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.google-btn:hover {
    background-color: #F8F9FA;
    transform: translateY(-3px);
}

/* FAQ SECTION */
.faq {
    padding: 100px 0;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.faq-item summary {
    padding: 25px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-color);
    outline: none;
    list-style: none;
    position: relative;
    font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.8rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    color: var(--accent);
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 25px 25px;
    color: var(--text-light);
    border-top: 1px solid #F3F4F6;
    margin-top: 10px;
    padding-top: 20px;
}

/* FOOTER */
footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h2 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.footer-social a {
    color: #9CA3AF;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-copy {
    text-align: right;
    font-size: 0.9rem;
}

/* FLOATING WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .sobre-container {
        flex-direction: column;
    }
    .sobre-img {
        box-shadow: 10px 10px 0px var(--accent);
        margin-bottom: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 20px 0 30px;
        border-top: 3px solid var(--accent);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero {
        justify-content: center;
    }
    
    .blog-article {
        padding: 30px 20px;
        margin-top: 30px;
    }
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    .contact-btn {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-copy {
        text-align: center;
    }
}