/* RESET & VARIABLES */
:root {
    --bg-primary: #f4f8f5;
    --bg-secondary: #e6f0ea;
    --bg-card: #ffffff;
    --accent-primary: #2f855a;
    --accent-secondary: #38a169;
    --accent-tertiary: #ed8936;
    --accent-gradient: linear-gradient(135deg, #2f855a, #38a169);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --container-max: 1400px;
    
    --spacing: 100px;
    --transition: 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(47, 133, 90, 0.15);
}

@media (max-width: 1024px) {
    :root { --spacing: 70px; }
}
@media (max-width: 768px) {
    :root { --spacing: 50px; }
}

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

html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* LAYOUT & UTILITIES */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.radius-lg { border-radius: var(--border-radius-lg); overflow: hidden; }
.shadow-lg { box-shadow: var(--shadow-hover); }

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.align-center { align-items: center; }

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: var(--accent-tertiary);
    color: #ffffff;
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: #ffffff;
}

.btn-outline {
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* HEADER & NAVIGATION */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
}
.site-header.scrolled {
    height: 70px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo, .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--accent-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .header-right .btn { display: none; }
}

/* HERO SECTIONS */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding-top: 80px;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(26,32,44,0.85), rgba(26,32,44,0.3));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}
.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
}
@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; }
}

/* Page Specific Hero Backgrounds */
.hero-home { background: url('images/photo-1518365050014-70fe7232897f-hero-home-hero-home.png') center/cover; }
.hero-animals { background: url('images/photo-1540324155974-7523202daa3f-hero-animals-hero-animals.png') center/cover; min-height: 60vh;}
.hero-habitats { background: url('images/photo-1448375240586-882707db888b-hero-habitats-hero-habitats.png') center/cover; min-height: 60vh;}
.hero-experiences { background: url('images/photo-1505159940484-eb2b9f2588e2-hero-experiences-hero-exper.png') center/cover; min-height: 60vh;}
.hero-tickets { background: url('images/photo-1534067783941-51c9c23ecefd-hero-tickets-hero-tickets.png') center/cover; min-height: 50vh;}

.hero-elephant { background: url('images/photo-1557050543-4d5f4e07ef46-hero-elephant-hero-elephant.png') center/cover; min-height: 60vh;}
.hero-tiger { background: url('images/photo-1549480017-d76466a4b8e8-hero-tiger-hero-tiger.png') center/cover; min-height: 60vh;}
.hero-panda { background: url('images/photo-1564349683136-5c565f1e56b3-hero-panda-hero-panda.png') center/cover; min-height: 60vh;}

/* CARDS & GRIDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.card-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* INFO CARDS (Trust, Stats) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.info-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.info-card h3 {
    font-size: 1.35rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}
.info-card p {
    color: var(--text-secondary);
}
.highlight-card {
    background: var(--accent-gradient);
    color: #ffffff;
}
.highlight-card h3, .highlight-card p {
    color: #ffffff;
}

/* ANIMAL DETAIL PAGE SPECIFICS */
.animal-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
@media (max-width: 900px) {
    .animal-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.animal-main-info h2 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}
.animal-main-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.animal-main-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.animal-sidebar .info-card {
    margin-bottom: 2rem;
}
.animal-sidebar ul {
    list-style: none;
}
.animal-sidebar ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
}
.animal-sidebar ul li:last-child {
    border-bottom: none;
}
.animal-sidebar ul li strong {
    color: var(--text-primary);
    display: inline-block;
    width: 100px;
}

/* PRICING TABLE */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--bg-secondary);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-secondary);
}
.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}
.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.pricing-card ul {
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}
.pricing-card ul li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-secondary);
}
.pricing-card ul li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 10px;
}

/* FORMS */
.form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.2);
    background: var(--bg-card);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* LEGAL PAGES */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}
.legal-content h1 { margin-bottom: 1rem; color: var(--accent-primary); }
.legal-content h2 { margin: 2rem 0 1rem; color: var(--text-primary); }
.legal-content p { margin-bottom: 1rem; color: var(--text-secondary); }

/* FOOTER */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.footer-about p {
    line-height: 1.8;
}
.footer-links h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
}
.footer-links ul li a {
    transition: var(--transition);
}
.footer-links ul li a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}
.footer-bottom {
    background: #11151c;
    padding: 2rem 0;
    text-align: center;
}

/* 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);
}