@import url('https://fonts.googleapis.com/css2?family=Baloo+Thambi+2:wght@400;500;600;700;800&display=swap');

:root {
    /* New Color Scheme based on clientes.naturdesma.com */
    --primary-color: #008f7a;
    /* Teal from screenshot */
    --primary-dark: #007060;
    --primary-light: #4db6ac;
    --accent-color: #ffb74d;
    /* Orange/Gold accent for contrast */
    --text-color: #2c3e50;
    --light-text: #ffffff;
    --gray-bg: #f4f7f6;
    --border-color: #e0e0e0;
    --font-main: 'Baloo Thambi 2', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-brand: 'Baloo Thambi 2', cursive;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --container-width: 1200px;
}

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

html {
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--gray-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER MODERNIZATION --- */
header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 55px;
    /* Slightly larger */
}

.brand-text {
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Main Navigation (now in header) */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
    /* Fill header height */
}

.nav-item {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    position: relative;
    height: 100%;
    /* Fill nav height */
    display: flex;
    align-items: center;
    /* Center text vertically */
    padding: 0;
    /* Remove padding as flex centers it */
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 143, 122, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary-color);
    transition: background 0.3s;
}

.nav-icon-link:hover {
    background: rgba(0, 143, 122, 0.2);
}

/* Brands Mega Menu Overlay (Modernized) */
.brands-menu {
    display: none;
    position: fixed;
    top: 80px;
    /* Height of header */
    left: 0;
    width: 100%;
    background: #fff;
    color: #333;
    padding: 30px 0;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;
}

/* Show brands menu when hovering the specific parent */
.brands-dropdown-trigger:hover .brands-menu {
    display: block;
}

.brands-dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Invisible bridge to prevent pointer loss when moving to menu */
.brands-dropdown-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50vw;
    width: 200vw;
    height: 0;
    background: transparent;
    pointer-events: none;
}

.brands-dropdown-trigger:hover::after {
    height: 10px;
    pointer-events: auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 15px 30px;
}

.brands-grid div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brands-grid a {
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.brands-grid a:hover {
    color: var(--primary-color);
    background: #f4fcfb;
    /* Very light teal bg */
    border-left-color: var(--primary-color);
    padding-left: 15px;
    /* Subtle movement */
}


/* --- HERO SECTION --- */
/* Modernized Hero */
.hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background: linear-gradient(135deg, rgba(0, 143, 122, 0.8), rgba(0, 112, 96, 0.8)), url('/images/header-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    border-radius: 0 0 50% 50% / 20px;
    /* Slight curve at bottom */
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- SERVICES & CARDS --- */
/* --- SERVICES & CARDS --- */
.services {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
}

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

.service-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-color: #f0f0f0;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(0, 143, 122, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #777;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- FOOTER --- */
.contact-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.contact-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-light);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-form-container {
    background: #fff;
    color: #333;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* Simple Footer (no contact form) */
.simple-footer {
    background: #fff;
    padding: 0;
    border-top: 1px solid #eee;
    margin-top: auto;
    /* Push to bottom */
}

.footer-bottom {
    background: linear-gradient(360deg, rgb(234 234 234 / 80%), rgba(0, 112, 96, 0.8)), url(/images/header-bg.webp);
    background-size: cover;
    color: #333;
    padding: 40px 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    box-shadow: none;
}

.footer-bottom img {
    margin-bottom: 20px;
    max-height: 200px;
    width: auto;
    display: inline-block;
}

.footer-bottom p {
    color: #333;
    font-weight: 600;
    margin: 0;
    opacity: 1;
}

/* Floating Label Form Group */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    resize: none;
    /* for textarea */
}

.contact-form-container textarea {
    height: 120px;
}

/* Floating Label Styles */
.form-label {
    position: absolute;
    top: 14px;
    left: 15px;
    color: #999;
    background: #fff;
    padding: 0 5px;
    transition: all 0.2s ease;
    pointer-events: none;
    font-size: 1rem;
}

/* Move label up on focus or when valid (content exists) */
.contact-form-container input:focus~.form-label,
.contact-form-container input:not(:placeholder-shown)~.form-label,
.contact-form-container textarea:focus~.form-label,
.contact-form-container textarea:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 143, 122, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* --- CATALOG STYLES --- */
/* --- CATALOG STYLES --- */
.page-header {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 143, 122, 0.8), rgba(0, 112, 96, 0.8)), url('/images/header-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    border-radius: 0 0 50% 50% / 15px;
    /* Subtle curve */
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb-tags a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    text-transform: none;
    transition: all 0.3s;
}

.breadcrumb-tags a:hover,
.breadcrumb-tags a.active {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
}

/* Material Card Style */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: none;
    padding: 0;
    /* Remove padding to be more card-like */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .btn-black {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    /* More rectangular like material buttons or specific look */
    font-weight: 600;
    padding: 8px 15px;
    /* Re-adding padding */
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: 100%;
    display: block;
    margin-top: auto;
    transition: all 0.3s;
}

.product-card .btn-black:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- PRODUCT DETAIL STYLES --- */
.product-detail-layout {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    /* For mobile responsiveness */
}

.product-detail-image {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid #f0f0f0;
}

.product-detail-info {
    flex: 2;
    min-width: 300px;
    padding: 40px;
}

.product-detail-info ul li h3 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.product-detail-info ul li h3 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.product-detail-info ul li h3 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.product-detail-info ul li h3 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.product-detail-info ul li h3 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.product-detail-info h4 {
    color: var(--primary-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.back-btn-container {
    margin-top: 40px;
}

/* --- RESPONSIVE DESIGN --- */

/* Mobile Menu Toggle (Hidden on Desktop) */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

.grecaptcha-badge {
    display: none !important;
}

@media (max-width: 992px) {
    :root {
        --container-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    .header-inner {
        position: relative;
    }

    .nav-toggle-label {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        margin-left: auto;
        /* Push to right if logo is left */
        padding: 10px;
    }

    .main-nav {
        display: none;
        /* Flex by default on desktop, hidden on mobile until checked */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        /* Full width items */
        padding: 0;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        /* prevent scroll issues */
        overflow-y: auto;
        height: auto;
        /* Reset desktop height */
    }

    /* Checkbox Hack for Menu Toggle */
    #nav-toggle:checked~.main-nav {
        display: flex;
    }

    .nav-item,
    .nav-icon-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f9f9f9;
        margin-left: 0;
        /* Reset margins */
        display: block;
        width: 100%;
        height: auto;
        /* Reset desktop height */
    }

    .nav-icon-link {
        background: var(--primary-color);
        color: white;
        text-align: center;
        border-radius: 0;
        margin-top: 0;
    }

    .nav-icon-link:hover {
        background: var(--primary-dark);
        color: white;
    }

    /* Brands Menu Mobile */
    .brands-dropdown-trigger:hover .brands-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        padding: 10px 0;
        background: #f9f9f9;
        transform: none;
        border-top: none;
        pointer-events: auto;
    }

    .brands-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 20px 20px;
        background: transparent;
        transform: none;
        pointer-events: auto;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brands-grid div {
        margin-bottom: 10px;
    }

    .nav-item i.fa-chevron-down {
        display: none;
        /* Hide chevron on mobile or keep it */
    }

    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-container {
        padding: 25px;
    }

    /* Product Detail */
    .product-detail-layout {
        flex-direction: column;
    }

    .product-detail-image,
    .product-detail-info {
        width: 100%;
        border-right: none;
    }

    .product-detail-image {
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }

    .product-detail-info {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0 !important;
        /* Override inline style */
    }

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

    /* Catalog Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* 1 col on small mobile */
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        /* 2 col on tablet/large mobile */
    }
}