/* Funerária Gonzaga - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary-color: #1f431f;
    --secondary-color: #4a711e;
    --accent-color: var(--secondary-color);
    --gradient-brand: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --bg-light: #FFFFFF;
    --bg-soft: #F9F9F9;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .title-font {
    font-family: var(--font-title);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header & Navigation */
.top-bar {
    background: var(--gradient-brand);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: min(280px, 55vw);
    object-fit: contain;
}

footer .logo {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
}

footer .logo img {
    height: 48px;
    max-width: 240px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.08) saturate(1.1);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-gold {
    background-color: var(--accent-color);
    color: white;
}

.btn-gold:hover {
    background-color: #3d6218;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
    border-top: 3px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simplificado para este exemplo, idealmente teria um menu hambúrguer */
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* New Sections Styles */

/* Testimonials */
.testimonials {
    background-color: var(--bg-soft);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border-left: 4px solid var(--secondary-color);
}

.testimonial-card i.fa-quote-left {
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--secondary-color);
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 0 20px;
    color: #666;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact Form */
.contact-section {
    background:
        linear-gradient(135deg, rgba(31, 67, 31, 0.88) 0%, rgba(74, 113, 30, 0.82) 100%),
        url('img/hero-jardim.jpg') center/cover fixed;
    color: white;
}

.contact-section .section-title h2 {
    color: white;
}

.contact-section .section-title p {
    color: #eee;
}

.contact-section .section-title h2::after {
    background: #e8f0dc;
    background: color-mix(in srgb, white 75%, var(--secondary-color));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 28%, transparent);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}
