/* Creciendo Studio - Styles */

:root {
    /* Color Palette - Refined Gentler */
    --primary: #0F1C14;
    /* Deepest Forest Green (Matches Footer) */
    --secondary: #D06F55;
    /* Gentler/Softer Terracotta */
    --accent: #E8D5B5;
    /* Gold/Maize */
    --bg-color: #F9F7F2;
    /* Reverted to Warm Cream/Arroz */
    /* Warm Cream/Arroz Background */
    --text-color: #333333;
    /* Charcoal */
    --light-text: #F9F7F2;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem 2rem;
    --card-radius: 4px;
    /* Professional - Less rounded */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--secondary);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--secondary);
    /* Terracotta */
    color: var(--light-text);
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background-color: #a34839;
    border-color: #a34839;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    /* Forest Green */
    border: 2px solid var(--primary);
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: flex-end;
    /* Align content to right since logo is absolute */
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 110px;
    /* Increased height per request */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    /* Force right alignment */
}

.logo {
    position: absolute;
    left: 2rem;
    top: -45px;
    /* Pull up significantly to center text in white band */
    z-index: 101;
}

.logo img {
    height: 220px;
    /* Increased to 220px per request */
    width: auto;
    filter: drop-shadow(0 0 10px var(--bg-color)) drop-shadow(0 0 2px var(--bg-color));
    /* Glow to visible on dark hero */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

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

.nav-cta {
    display: none;
    /* Hidden on mobile initially */
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-right: 1rem;
}

@media (min-width: 769px) {
    .nav-cta {
        display: inline-block;
    }
}


/* Language Toggle Visibility Logic */
body.lang-es .en {
    display: none !important;
}

body.lang-en .es {
    display: none !important;
}

/* Nav Right Container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    /* Rounded for consistency */
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.text-sm {
    font-size: 0.8em;
    font-weight: 400;
    color: #666;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    min-height: 85vh;
    /* Culture & Work Hero Image - Aligned with Deepest Green */
    background:
        linear-gradient(rgba(15, 28, 20, 0.9), rgba(15, 28, 20, 0.95)),
        url('images/hero_culture.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Add a subtle "Spotlight" effect */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(208, 111, 85, 0.15) 0%, transparent 60%);
    animation: pulse-glow 10s infinite alternate;
    z-index: 1;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 1000px;
    /* Increased to fit "Always Growing" on one line */
    width: 100%;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -3px;
    /* Tight editorial tracking */
    font-size: 6.5rem;
    /* Slight bump */
    line-height: 0.95;
    /* Very tight leading */
    margin-bottom: 2rem;
    /* Maize (#E8D5B5) to match footer phone number */
    color: var(--accent);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    /* Strong shadow for readability */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    /* Reduced to pull flags closer */
    max-width: 600px;
    margin-left: auto;
    /* Centering */
    margin-right: auto;
    /* Centering */
    color: var(--light-text);
    /* Cream (#F9F7F2) restored */
}

.hero-flags {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    /* Increased to push button down */
    letter-spacing: 0.1rem;
    /* Tighter spacing per request */
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: fade-up 1s ease-out 0.5s backwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Partners Section */
.partners-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.partners-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
}

.partner-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-type:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.partner-type .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.partners-note {
    margin-top: 3rem;
    font-style: italic;
    color: #777;
    font-size: 1.1rem;
}

/* Problem Section */
.problem-section {
    padding: var(--section-padding);
    background-color: #fff;
    text-align: center;
}

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

.problem-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.problem-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}


/* Market Insights Section */
.insights-section {
    padding: var(--section-padding);
    background-color: var(--primary);
    /* Deep Green background */
    color: var(--light-text);
    text-align: center;
}

.insights-section .section-title {
    color: var(--light-text);
    margin-bottom: 3rem;
}

.insights-section .section-title::after {
    background-color: var(--accent);
    /* Maize underline */
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle transparent card */
    padding: 2rem;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    /* Maize color for numbers */
    margin-bottom: 1rem;
    line-height: 1;
}

.insight-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
}


/* Services / Packages */
.services-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    /* Cream/Arroz */
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    /* Terracotta underline */
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    margin-bottom: 4rem;
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

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

.package-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(27, 48, 34, 0.08);
    /* Green tinted shadow */
    transition: transform 0.3s ease;
    border: 2px solid var(--primary);
    /* Added outline to all cards per request */
    display: flex;
    flex-direction: column;
    text-align: left;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.package-card.featured {
    border: 2px solid var(--secondary);
    position: relative;
    background-color: #fff;
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.card-body {
    flex-grow: 1;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Audit Section */
.audit-section {
    padding: var(--section-padding);
    background-color: var(--primary);
    /* Deep Green */
    color: var(--light-text);
    text-align: center;
}

.audit-content {
    max-width: 700px;
    margin: 0 auto;
}

.audit-section .section-title {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.audit-section .section-title::after {
    background-color: var(--accent);
    /* Maize underline */
}

.audit-desc {
    margin-bottom: 3rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border-radius: 4px;
    border: none;
    font-family: var(--font-body);
    background-color: #f4f4f4;
}

.contact-form button {
    background-color: var(--secondary);
    color: var(--light-text);
    border-color: var(--secondary);
    align-self: center;
    width: 100%;
    margin-top: 1rem;
}

.contact-form button:hover {
    background-color: #a34839;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.circle-graphic {
    width: 100%;
    height: 400px;
    background-color: var(--primary);
    border-radius: 4px;
    /* More structured for "Professional" look */
    background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}


/* Footer */
footer {
    padding: 2rem 2rem;
    /* Reduced padding (less chunky) */
    background-color: #0f1c14;
    /* Darker Forest Green */
    color: #888;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    /* Reset text align */
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .navbar {
        position: relative;
        /* Anchor absolute logo */
        padding: 1rem;
        justify-content: flex-end;
        /* Push controls to right */
        min-height: 80px;
        align-items: center;
    }

    .logo {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 1rem;
        z-index: 101;
        max-width: 50%;
        /* Strict limit to avoid toggle */
    }

    .logo img {
        height: 140px;
        /* Large size per request */
        width: auto;
        /* Maintain aspect ratio */
        object-fit: contain;
        /* Ensure it fits in the box */
        margin-top: 0;
        filter: drop-shadow(0 0 5px var(--bg-color));
    }

    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-cta {
        display: none;
    }

    .hero-flags {
        font-size: 1.2rem;
        /* Smaller flags to fit on one line */
        letter-spacing: 0;
        /* Remove spacing on mobile */
        white-space: nowrap;
        /* Force one line */
    }
}

/* Footer Extras */
.footer-contact {
    margin: 0;
    /* Remove margin */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
    /* Right align contact info */
}

.footer-phone a {
    color: var(--accent);
    /* Maize */
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-phone a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-badge {
    font-size: 0.8rem;
    /* Slightly smaller */
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}