/* GRUPO VIBI - STYLES.CSS (v9 - Final Version) */

:root {
    --color-dark-blue: #0F172A;
    --color-light-grey: #F8FAFC;
    --color-accent-start: #00B894;
    --color-accent-end: #00A8A5;
    --color-white: #FFFFFF;
    --color-text-dark: #334155;
    --color-text-light: #E2E8F0;
    --color-border: #E2E8F0;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* --- GLOBAIS E RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-secondary); font-weight: 800; color: var(--color-dark-blue); }
h1 { font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; font-weight: 700; }

a { text-decoration: none; color: var(--color-accent-start); }
a:hover { text-decoration: underline; }

.section-padding { padding: 120px 0; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-subtitle { max-width: 600px; margin: 0 auto 4rem auto; text-align: center; color: #64748B; font-size: 1.125rem; }
.white-text { color: var(--color-white) !important; }

/* --- HEADER --- */
#header {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: fixed; top: 0; left: 0;
    width: 100%; z-index: 1000;
}
#header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; gap: 0.75rem; }
.logo img { height: 50px; width: auto; }
.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark-blue);
}
#menu { display: flex; list-style: none; gap: 1.5rem; }
#menu a { color: var(--color-text-dark); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; padding: 0.5rem 0; }
#menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent-start); transition: width 0.3s; }
#menu a:hover, #menu a.active { text-decoration: none; }
#menu a:hover::after, #menu a.active::after { width: 100%; }
#btn-mobile { display: none; }
@media (max-width: 1023px) {
    body.no-scroll { overflow: hidden; }
    #menu { display: none; position: absolute; width: 100%; top: var(--header-height); right: 0; background: var(--color-white); height: calc(100vh - var(--header-height)); }
    #nav.active #menu { display: block; } #menu li { padding: 1rem 0; text-align: center; } #menu a { padding: 1rem 2rem; }
    #btn-mobile { display: flex; border: none; background: none; cursor: pointer; }
    .hamburger { border-top: 2px solid; width: 20px; color: var(--color-dark-blue); } .hamburger::after, .hamburger::before { content: ''; display: block; width: 20px; height: 2px; background: currentColor; margin-top: 5px; transition: 0.3s; position: relative; }
    #nav.active .hamburger { border-top-color: transparent; } #nav.active .hamburger::before { transform: rotate(135deg); } #nav.active .hamburger::after { transform: rotate(-135deg); top: -7px; }
}

/* --- HERO --- */
.hero {
    position: relative; overflow: hidden; color: var(--color-white);
    padding-top: calc(var(--header-height) + 100px); padding-bottom: 140px;
    text-align: center; display: flex; align-items: center;
    justify-content: center; min-height: 80vh; z-index: 1;
}
.hero-bg {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: url('reformas-de-condomínio.png');
    background-size: cover; background-position: center center;
    filter: brightness(0.4); animation: background-pan 30s linear infinite alternate;
    z-index: -1;
}
@keyframes background-pan { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { color: var(--color-white); }
.hero .subtitle { font-size: 1.25rem; margin: 1.5rem 0 2.5rem 0; opacity: 0.9; }

/* --- BOTÕES --- */
.cta-button {
    padding: 0.9rem 2.5rem; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-family: var(--font-secondary);
    transition: all var(--transition-speed); display: inline-flex;
    align-items: center; justify-content: center; gap: 0.5rem;
    border: 2px solid transparent; cursor: pointer;
}
.cta-button:hover { text-decoration: none; }
.cta-button.primary { background: var(--color-dark-blue); color: var(--color-white); box-shadow: var(--shadow-medium); }
.cta-button.primary:hover { background: #1E293B; transform: translateY(-3px); }
.hero .cta-button.primary { background: var(--color-white); color: var(--color-accent-end); }
.hero .cta-button.primary:hover { background: #f0f0f0; }
.cta-button.secondary { background: var(--color-white); color: var(--color-accent-end); }
.cta-button.secondary:hover { background: #f0f0f0; }

/* --- CARDS --- */
.card {
    background: var(--color-white); padding: 2.5rem; text-align: left;
    border-radius: var(--border-radius); border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft); transition: all var(--transition-speed);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.card-icon {
    width: 50px; height: 50px; display: flex; align-items: center;
    justify-content: center; background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    color: var(--color-white); border-radius: 50%; margin-bottom: 1.5rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.services-grid, .diferenciais-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; position: relative; z-index: 2;
}
.diferenciais-grid .card { padding: 2rem; text-align: center; }
.diferenciais-grid .card h3 { font-size: 1.1rem; }

/* --- SEÇÃO SOBRE --- */
.grey-section { background-color: var(--color-light-grey); }
.about-wrapper { display: grid; grid-template-columns: 1fr; gap: 5rem; align-items: center; }
@media (min-width: 992px) { .about-wrapper { grid-template-columns: 1.2fr 1fr; } }
.section-title.left-aligned { text-align: left; }
.about-content p { margin-bottom: 2rem; }
.check-list { list-style: none; }
.check-list li { padding-left: 30px; position: relative; font-size: 1.1rem; margin-bottom: 1rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent-start); font-weight: bold; }
.about-image {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--border-radius); min-height: 400px;
}

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: 3rem auto; }
.timeline::after {
    content: ''; position: absolute; width: 3px; background-color: var(--color-border);
    top: 0; bottom: 0; left: 50%; margin-left: -1.5px;
}
.timeline-item { padding: 1rem 50px; position: relative; width: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 24px; height: 24px;
    right: -12px; background-color: var(--color-light-grey);
    border: 4px solid var(--color-accent-start); top: 20px;
    border-radius: 50%; z-index: 1;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(even)::after { left: -12px; }
.timeline-content { padding: 2rem; background: var(--color-light-grey); border-radius: var(--border-radius); border: 1px solid var(--color-border); }
@media (max-width: 768px) {
    .timeline::after { left: 12px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left !important; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 1px; }
}

/* --- SEÇÃO DIFERENCIAIS --- */
#diferenciais {
    position: relative; overflow: hidden; padding: 120px 0;
    text-align: center; background-color: var(--color-dark-blue);
}
.diferenciais-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('Construção-e-Reformas-em-Geral.png');
    background-size: cover; background-position: center center;
    filter: brightness(0.3); z-index: 1;
}
#diferenciais .container { position: relative; z-index: 2; }
#diferenciais .card { background-color: rgba(255, 255, 255, 0.9); }

/* --- FAQ --- */
#faq { background-color: var(--color-light-grey); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--border-radius); margin-bottom: 1rem; }
.faq-item summary { font-size: 1.1rem; font-weight: 600; padding: 1.5rem; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; font-size: 1.8rem; color: var(--color-accent-start); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem 1.5rem; color: #555; }

/* --- CONTATO (Estilo Mockup Final) --- */
#contato { background-color: var(--color-light-grey); }
#contato .section-title, #contato .section-subtitle { color: var(--color-dark-blue); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }

.contact-form-wrapper {
    background: var(--color-white); padding: 2.5rem;
    border-radius: var(--border-radius); border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}
.contact-form-wrapper h3 { margin-bottom: 2rem; color: var(--color-dark-blue); }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}
.form-row .form-group { margin-bottom: 0; }
.form-group.full-width-input { margin-bottom: 1.75rem; }

.form-group { position: relative; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.9rem 1rem; border: 1px solid #CBD5E1;
    border-radius: var(--border-radius); font-size: 1rem;
    font-family: var(--font-primary); background-color: var(--color-white);
    transition: border-color var(--transition-speed);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-accent-start);
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}
.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    color: #64748B;
}
.form-group select:valid {
    color: var(--color-text-dark);
}

.submit-button-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (min-width: 768px) {
    .submit-button-group { grid-template-columns: 1fr 1fr; }
}

.submit-button, .whatsapp-submit-button {
    border-radius: var(--border-radius);
    padding: 1rem;
    font-size: 1rem;
    height: auto;
}
.submit-button svg, .whatsapp-submit-button svg {
    width: 20px;
    height: 20px;
}
.submit-button {
    background: var(--color-dark-blue);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}
.submit-button:hover { background: #1E293B; transform: translateY(-2px); }
.whatsapp-submit-button {
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}
.whatsapp-submit-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 184, 148, 0.5); }

.contact-details-wrapper { display: flex; flex-direction: column; gap: 2rem; }
.info-card {
    background: var(--color-white); padding: 2rem;
    border-radius: var(--border-radius); border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft); flex-grow: 1;
}
.info-card h4 { color: var(--color-dark-blue); margin-bottom: 1.5rem; }
.info-item { display: flex; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.info-item svg { width: 24px; height: 24px; color: var(--color-accent-start); flex-shrink: 0; }
.info-item span { color: var(--color-text-dark); }
.whatsapp-card {
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    padding: 2.5rem 2rem; border-radius: var(--border-radius);
    text-align: center; color: var(--color-white);
    flex-grow: 1; display: flex; flex-direction: column;
    justify-content: center;
}
.whatsapp-card svg { width: 48px; height: 48px; margin: 0 auto 1rem auto; color: var(--color-white); }
.whatsapp-card h4, .whatsapp-card p { color: var(--color-white); }
.whatsapp-card p { margin-bottom: 1.5rem; }
.whatsapp-card .cta-button {
    background: var(--color-white);
    color: var(--color-accent-end);
    align-self: center;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}
.whatsapp-card .cta-button:hover { background: #f0f0f0; }

/* Horário de Atendimento (card separado) */
.info-card:last-of-type h4 { margin-bottom: 1rem; }
.info-card:last-of-type p {
    font-size: 1rem; margin-bottom: 0.5rem;
    line-height: 1.4; color: var(--color-text-dark);
}
.info-card:last-of-type p:last-child { margin-bottom: 0; }

/* --- FOOTER (Revisado para o Mockup Final) --- */
#footer {
    background-color: var(--color-dark-blue);
    color: #94A3B8;
    padding: 80px 0 20px 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: #94A3B8; transition: color var(--transition-speed); }
.footer-col ul li a:hover { color: var(--color-accent-start); text-decoration: none; }

.footer-logo { margin-bottom: 1.5rem; justify-content: flex-start; }
.footer-logo .logo-text { color: var(--color-white); }
.about-col p { margin-bottom: 1.5rem; line-height: 1.8; }
.footer-col .info-item span { color: #94A3B8; }
.footer-whatsapp-button {
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    width: fit-content;
}
.footer-whatsapp-button:hover { box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4); }

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.footer-bottom p { margin: 5px 0; }
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo, .footer-certs, .info-item { justify-content: center; }
    .footer-whatsapp-button { margin-left: auto; margin-right: auto; }
    .footer-bottom { flex-direction: column; }
}