/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    /* Palette - Modern Warmth (Acolhedor & Chamativo) */
    --bg-body: #fdfcf8;
    /* Cream/Off-white background */
    --bg-soft: #f4f0e6;
    /* Slightly darker warm beige for sections */

    /* Accents */
    --primary: #d65a3b;
    /* Vibrant Terracotta (Energetic & Warm) */
    --primary-hover: #b5452a;
    --secondary: #6b8c7a;
    /* Calming Sage Green */
    --accent-gold: #e6b89c;
    /* Soft Gold/Peach for highlights */

    /* Text */
    --text-main: #2d2a26;
    /* Soft Charcoal */
    --text-muted: #5c5550;
    /* Warm Gray */
    --white: #ffffff;

    /* UI Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(214, 90, 59, 0.15);
    /* Coloured shadow */
    --shadow-hover: 0 20px 50px -10px rgba(214, 90, 59, 0.25);

    /* Typography */
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.8;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(214, 90, 59, 0.4);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(214, 90, 59, 0.5);
}

/* Section Styling */
section {
    padding: 8rem 0;
    /* More breathing room */
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Soft gradient overlay + Image */
    background:
        linear-gradient(135deg, rgba(253, 252, 248, 0.85) 0%, rgba(244, 240, 230, 0.6) 100%),
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    /* Subtle gradient on text */
    background: linear-gradient(45deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Common Section Headers */
section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Manifesto / About */
.manifesto {
    background-color: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.manifesto img {
    border-radius: 24px 8px 24px 8px;
    /* Organic leaf-like shape */
    box-shadow: 20px 20px 0 var(--accent-gold);
    width: 100%;
    object-fit: cover;
}

.manifesto h2 {
    text-align: left;
    /* Exception for split layout */
}

/* Cards (Glassmorphism & Soft) */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.card h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

/* Specific Section Backgrounds */
.journey {
    background-color: var(--bg-soft);
    /* Pattern or texture could go here */
}

.help {
    background-color: var(--white);
}

.testimonials {
    background-color: var(--bg-soft);
}

/* Stats */
.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin: 3rem 0;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.stat-item strong {
    font-size: 3.5rem;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Carousels */
.carousel-container {
    padding: 0 4rem;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    /* Increased padding-y to allow hover effects not to be cut off */
    padding: 1rem 0 2rem 0;
    margin: -1rem 0 -2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    /* Keep padding for card shadow */
    padding: 1rem;
}

/* Carousel Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--accent-gold);
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}


/* FAQ */
.faq {
    background-color: var(--white);
}

.accordion-header {
    background: var(--bg-soft);
    margin-bottom: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: #ebe6da;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 2rem;
}

.accordion-content p {
    padding: 1.5rem 0;
    color: var(--text-muted);
}

.faq-item.accordion-expanded .accordion-header {
    background: var(--primary);
}

.faq-item.accordion-expanded .accordion-header h3 {
    color: var(--white);
}

.faq-item.accordion-expanded .icon {
    color: var(--white);
}

/* Contact Footer */
.contact {
    background: var(--text-main);
    color: var(--bg-body);
    text-align: center;
}

/* New Contact Section Styles */
.contact-new {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-card {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-card {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.right-card {
    align-items: center;
    background: #FFFCF8;
    /* Subtle warm tint for contrast/variety or just white */
    text-align: center;
}

.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s;
}

.social-item:hover {
    transform: translateX(10px);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.social-text {
    display: flex;
    flex-direction: column;
}

.social-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.social-text strong {
    font-size: 1.1rem;
    font-family: var(--font-head);
}

.whatsapp-badge {
    width: 80px;
    height: 80px;
    background: #E8F5E9;
    /* Light green bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
    margin-bottom: 1.5rem;
}

.btn-whatsapp-full {
    background-color: #1E8E3E;
    /* Google/WhatsApp Green */
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content in button */
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 2rem;
    width: 100%;
    /* Full width button in its container context if desired */
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(30, 142, 62, 0.3);
}

.btn-whatsapp-full:hover {
    background-color: #166e30;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 142, 62, 0.4);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .left-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 3rem 2rem;
    }

    .right-card {
        padding: 3rem 2rem;
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 184, 156, 0.4);
}

.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
}

.logo span {
    position: relative;
    top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 0.6rem 1.8rem;
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
    transition: all 0.3s !important;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* Animations fade-in */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    /* Layout Adjustments */
    section {
        padding: 4rem 0;
        /* Reduced padding */
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Typography */
    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller headline */
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
        /* Smaller section titles */
        margin-bottom: 2rem;
    }

    /* Split Layouts & Grids */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .left-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Carousel Adjustments */
    .carousel-container {
        padding: 0;
        /* Remove side padding to give more space to content */
    }

    /* Position buttons below the card or at edges with specific styling */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.9);
        z-index: 10;
        top: 50%;
        /* Center vertically */
    }

    .carousel-btn.prev {
        left: -10px;
        /* Overlap edge slightly */
    }

    .carousel-btn.next {
        right: -10px;
        /* Overlap edge slightly */
    }

    /* Ensure card has enough padding so text isn't covered by buttons if they overlap */
    .carousel-slide {
        padding: 0.5rem;
    }

    .card {
        padding: 2rem 1rem;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger Animation when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }

    /* Floating Button */
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .stat-item strong {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}