/* =============================================
   Casa do Ambientalista - Style Sheet
   Paleta: #4DA671 | #66C287 | #BDE3BB
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --green-primary: #4DA671;
    --green-secondary: #66C287;
    --green-light: #BDE3BB;
    --green-dark: #2B7A4B;
    --green-accent: #8FD88F;
    --green-bg: #F4FBF4;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--gray-900);
}

a { text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

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

section { position: relative; }

/* ========== BUTTONS ========== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--green-primary);
    border-color: var(--green-primary);
}
.btn-success:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background: var(--green-light);
}

.btn-lg { padding: 14px 36px; border-radius: 12px; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.top-bar a:hover { color: var(--white); }
.top-bar-social a {
    display: inline-block;
    width: 30px; height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin-left: 6px;
    font-size: 0.8rem;
}
.top-bar-social a:hover {
    background: var(--white);
    color: var(--green-dark);
}

/* ========== NAVBAR ========== */
.navbar { padding: 12px 0; transition: var(--transition); }
.navbar-brand .brand-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--green-dark);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--gray-800) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--green-primary) !important;
    background: var(--green-bg);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 8px;
    margin-top: 8px;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: var(--green-bg);
    color: var(--green-primary);
}

.nav-cta {
    font-size: 0.9rem;
    padding: 8px 20px !important;
}

/* ========== HERO ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0,0,0,0.5);
}

.hero-slide .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43,122,75,0.85) 0%, rgba(77,166,113,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
}

.hero-content .badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons .btn {
    margin-right: 12px;
    margin-bottom: 8px;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5;
    width: 12px; height: 12px;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white) !important;
}

/* ========== SECTION TITLES ========== */
.section-title {
    margin-bottom: 48px;
}
.section-title .subtitle {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green-primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.section-title p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content .about-text {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--green-bg);
    border-radius: var(--radius);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-primary);
    font-family: var(--font-primary);
}
.stat-item .label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ========== SYSTEMS SECTION (Cards) ========== */
.systems-section {
    padding: 100px 0;
    background: var(--green-bg);
}

.system-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.system-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
}

.system-card .system-icon {
    width: 64px; height: 64px;
    background: var(--green-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--green-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}
.system-card:hover .system-icon {
    background: var(--green-primary);
    color: var(--white);
}

.system-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.system-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.system-card .system-tag {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green-primary);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.service-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card .service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.service-card .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.service-card .service-body {
    padding: 28px;
}

.service-card .service-body h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card .service-body p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ========== DIFFERENTIALS ========== */
.diffs-section {
    padding: 100px 0;
    background: var(--green-bg);
}

.diff-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    height: 100%;
    transition: var(--transition);
}
.diff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.diff-card .diff-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--green-primary);
    transition: var(--transition);
}
.diff-card:hover .diff-icon {
    background: var(--green-primary);
    color: var(--white);
}

.diff-card h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.diff-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--green-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--green-light);
    position: absolute;
    top: 12px; left: 24px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-card .testimonial-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .testimonial-name {
    font-weight: 700;
    margin-bottom: 2px;
}
.testimonial-card .testimonial-role {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ========== BLOG CARDS ========== */
.blog-section {
    padding: 100px 0;
    background: var(--green-bg);
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-card .blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-card .blog-body {
    padding: 24px;
}

.blog-card .blog-meta {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.blog-card .blog-meta span {
    margin-right: 16px;
}
.blog-card .blog-meta .blog-category {
    background: var(--green-bg);
    color: var(--green-primary);
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.blog-card .blog-body h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card .blog-body h5 a {
    color: var(--gray-900);
}
.blog-card .blog-body h5 a:hover {
    color: var(--green-primary);
}

.blog-card .blog-body p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.8);
}

.footer .brand-text-light {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--green-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--green-primary);
    padding-left: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}
.footer-contact a:hover {
    color: var(--green-primary);
}

.footer-social a {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--green-primary);
    color: var(--white);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    color: var(--white);
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
}
.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 8px auto 0;
}
.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}
.page-header .breadcrumb-item.active {
    color: var(--white);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ========== SIDEBAR ========== */
.sidebar-widget {
    background: var(--green-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h5 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-light);
}

.sidebar-categories {
    list-style: none;
    padding: 0;
}
.sidebar-categories li { margin-bottom: 8px; }
.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: var(--gray-600);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.sidebar-categories a:hover {
    background: var(--white);
    color: var(--green-primary);
}

/* ========== PRODUCT CARDS (LOJA) ========== */
.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card .product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gray-100);
}
.product-card .product-img img {
    max-height: 170px;
    object-fit: contain;
}

.product-card .product-body {
    padding: 20px;
}

.product-card .product-body h6 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-primary);
    margin-bottom: 12px;
}

.product-card .product-price .old-price {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ========== CONTACT PAGE ========== */
.contact-info-card {
    background: var(--green-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    transition: var(--transition);
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.contact-info-card .contact-icon {
    width: 48px; height: 48px;
    background: var(--green-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.contact-info-card h6 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.contact-info-card p,
.contact-info-card a {
    color: var(--gray-600);
    font-size: 0.92rem;
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-control, .form-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(77,166,113,0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

/* ========== SYSTEM LANDING PAGES ========== */
.system-hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.system-hero .system-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.system-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.system-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 550px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}
.feature-card .feature-icon {
    width: 48px; height: 48px;
    background: var(--green-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--green-primary);
    margin-bottom: 16px;
}
.feature-card h5 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== ADMIN ========== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
}
.admin-login .login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    border: none;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px !important;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}
.pagination .page-link:hover {
    background: var(--green-bg);
    color: var(--green-primary);
}
.pagination .page-item.active .page-link {
    background: var(--green-primary);
    color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-section, .hero-slide { min-height: 65vh; }
    .section-title h2 { font-size: 1.8rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-section, .hero-slide { min-height: 55vh; }
    .hero-content p { font-size: 1rem; }
    .section-title h2 { font-size: 1.5rem; }
    .page-header h1 { font-size: 1.8rem; }
    .about-stats { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .system-hero h1 { font-size: 2rem; }
}

@media (max-width: 575px) {
    .hero-content h1 { font-size: 1.5rem; }
    .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
}
