:root {
    /* Color Palette - Modern & Clean */
    --color-primary: #111827;
    /* Dark text / headings */
    --color-primary-light: #374151;
    --color-accent: #10b981;
    /* Emerald Green (Buttons, Links) */
    --color-accent-hover: #059669;
    --color-background: #f4fdf8;
    /* Very pale mint/green background */
    --color-surface: #ffffff;
    /* White cards */
    --color-text: #4b5563;
    /* Gray text */
    --color-text-light: #6b7280;
    --color-white: #ffffff;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius & Shadows */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 40px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--space-xl) 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-background);
}

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.text-white {
    color: var(--color-white) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 9999px;
    /* Pill button */
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Typography styles */
.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Navigation - Modern Navbar (transparent over hero, solid when scrolled) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 20px 0;
}

/* Estado inicial: transparente sobre o hero (texto branco) */
.navbar:not(.scrolled) {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    /* Símbolo branco sobre o hero escuro */
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: var(--color-white);
}

.navbar:not(.scrolled) .btn-contact {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    border: 2px solid transparent;
}

.navbar:not(.scrolled) .nav-toggle {
    color: var(--color-white);
}

/* Estado scrolled: fundo sólido (texto escuro) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 12px 0;
}

.navbar.scrolled .logo-img {
    filter: none;
    opacity: 1;
    /* Logo original com transparência */
}

.navbar.scrolled .nav-link {
    color: var(--color-primary-light);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-accent);
}

.navbar.scrolled .btn-contact {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
}

.navbar.scrolled .nav-toggle {
    color: var(--color-primary);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: filter 0.3s ease;
    /* PNG com transparência - sem fundo branco */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-contact i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.btn-contact:hover i {
    transform: translateX(3px);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

/* Hero Section - Full-screen background with overlay */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    text-align: center;
}

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

.badge-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-hero-primary {
    background-color: #f43f5e !important;
    color: var(--color-white) !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
    border: none !important;
}

.btn-hero-primary:hover {
    background-color: #e11d48 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(244, 63, 94, 0.5);
}

.btn-hero-secondary {
    background-color: transparent !important;
    color: var(--color-white) !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px);
}

/* Sections Common Grid */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

/* About Section */
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.features-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.features-list i {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-right: 12px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

/* Animals Section - Modern Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.animal-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.animal-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Floating Icons Inspiration */
.floating-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-pink {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.bg-blue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.bg-orange {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.card-badges {
    position: absolute;
    bottom: 15px;
    left: 20px;
    display: flex;
    gap: 8px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-content .desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.card-link:hover {
    color: var(--color-accent-hover);
}

.card-link i {
    transition: transform 0.2s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

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

/* Contact Section */
.contact {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-xl);
    margin: 2rem 5%;
    padding: 4rem;
}

.contact .section-title {
    color: var(--color-white);
}

.contact-info p {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-list a {
    color: inherit;
}

.contact-list a:hover {
    color: var(--color-accent);
}

.contact-list i {
    color: var(--color-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Honeypot anti-spam - oculto visualmente, acessível para leitores de tela */
.form-group-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    margin-bottom: 1rem;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Footer */
.footer {
    background-color: transparent;
    color: var(--color-text-light);
    padding: 3rem 0;
}

.footer img {
    opacity: 0.8;
}

/* Utilities & Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {

    .section-grid,
    .features-list {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact {
        margin: 0;
        border-radius: 0;
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Menu */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        color: var(--color-white) !important;
    }

    .nav-menu .nav-link:hover {
        color: var(--color-accent) !important;
    }

    .nav-menu .btn-contact {
        margin-top: 0.5rem;
    }

    .nav-menu .nav-item {
        text-align: center;
    }
}