:root {
    --primary-color: #fe8026;
    --secondary-color: #f98530;
    --dark-color: #af4d0c;
    --light-color: #ff7f26;
    --bg-color: #ffffff;
    --text-color: #333333;
    --gray-light: #f9f9f9;
    --gray-medium: #eeeeee;
    --white: #ffffff;
    --success: #27ae60;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(254, 128, 38, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(254, 128, 38, 0.02) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(254, 128, 38, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Detalhe acolhedor: patinhas sutis flutuando */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.23 23.33c.73-1.4 1.83-2.58 3.17-3.4s2.83-1.2 4.4-1.12c1.57.08 3.03.65 4.25 1.63s2.1 2.27 2.53 3.73c.43 1.46.36 3.03-.23 4.44s-1.63 2.58-2.92 3.33-2.73 1.12-4.22 1c-1.49-.12-2.88-.73-4-1.74s-1.92-2.32-2.28-3.8c-.36-1.48-.25-3.07.3-4.47zM35.66 43.15c.67-1.43 1.7-2.65 2.97-3.51s2.73-1.28 4.27-1.25c1.54.03 3.01.55 4.26 1.5s2.17 2.21 2.66 3.66c.49 1.45.49 3.03.01 4.47s-1.39 2.67-2.61 3.48-2.65 1.25-4.14 1.22c-1.49-.03-2.9-.57-4.06-1.54s-2.03-2.24-2.48-3.73c-.45-1.49-.41-3.1.11-4.5h.02zM12.28 44.83c-1.57.17-3.1-.25-4.4-1.2-1.3-1.01-2.26-2.44-2.76-4.1-.5-1.66-.4-3.47.28-5.11s1.95-3 3.63-3.8c1.68-.8 3.52-.98 5.25-.5s3.23 1.63 4.24 3.02c1.01 1.4 1.44 3.12 1.21 4.84s-.95 3.32-2.11 4.5c-1.37 1.41-3.3 2.15-5.34 2.35z' fill='%23fe8026' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 55px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 128, 38, 0.4);
}

.btn-secondary {
    background-color: var(--gray-light);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--gray-medium);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 100px) 0 80px;
    background: radial-gradient(circle at top right, #fff5e9 0%, #ffffff 70%);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 40px;
    color: #555;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.filters {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    height: fit-content;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--gray-medium);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    border-color: var(--primary-color);
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.animal-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.animal-card:hover {
    transform: translateY(-10px);
}

.animal-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.animal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.animal-card:hover .animal-img {
    transform: scale(1.1);
}

.special-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.animal-info {
    padding: 24px;
}

.animal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.animal-info h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.animal-desc-short {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.animal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: #fdf2e9;
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
}

.tag-success {
    background: #e8f5e9;
    color: var(--success);
}

/* Apadrinhe Section */
.apadrinhe-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #fdf2e9 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Donation Section */
.donation-section {
    padding: 100px 0;
}

.donation-card {
    background: linear-gradient(135deg, var(--white) 0%, #fffbf0 100%);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-color);
}

.pix-info {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
}

.pix-key {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
    word-break: break-all;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #25d366;
    text-decoration: none;
    margin-top: 15px;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.img-rounded {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.about-stats {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-top: 30px;
}

.about-stats li {
    text-align: center;
}

.about-stats strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-social .social-icon {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 50px auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }

    .filters {
        display: none;
        /* Seria controlado via JS para abrir modal mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
        border-radius: 0;
        overflow-y: auto;
    }

    .mobile-only {
        display: block !important;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        /* Mostrar via classe toggle */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .header-cta {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: center;
    }
}

.nav.active {
    display: block;
}

.mobile-only {
    display: none;
}