:root {
    /* Earthy & Organic Palette */
    --primary-color: #4A7C59; /* Sage/Forest Green */
    --primary-hover: #3A6346;
    --secondary-color: #D4A373; /* Warm Tan/Earth */
    --dark-color: #2C3E2D; /* Deep Green-Black */
    --text-muted: #5C675B; /* Soft Olive Gray */
    --light-color: #F4F1EA; /* Warm Oatmeal/Cream */
    --white: #FFFFFF;
    
    /* Organic UI Elements */
    --ui-border: #E6D8C8; /* Soft bone border */
    --ui-shadow: 0 10px 30px rgba(44, 62, 45, 0.05);
    --ui-shadow-hover: 0 15px 35px rgba(74, 124, 89, 0.15);
    
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.7;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

p {
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Base Component */
.glass-panel {
    background: var(--white);
    border-radius: 12px; /* Softer, less extreme radius */
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px; /* Organic leaf-like slight curve */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--font-main);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-color);
    border: 1px solid var(--ui-border);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: var(--ui-shadow);
}

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

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

.large-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(244, 241, 234, 0.95); /* Matches warm background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ui-border);
    padding: 16px 5%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .active-link {
    color: var(--primary-color) !important;
}

.nav-links .donate-btn {
    color: var(--white) !important;
}

/* Hero Section (Home) */
.hero {
    height: 100vh;
    background: url('assets/hero_dog.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(44,62,45,0.4), rgba(44,62,45,0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Generic Content Sections */
.content-section {
    padding: 120px 0;
}

.bg-light {
    background-color: var(--white); /* For contrast against the oatmeal base */
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Two Column Layouts */
.two-col-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.text-col, .img-col {
    flex: 1;
}

.text-col h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.text-col p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.rounded-img {
    width: 100%;
    border-radius: 12px;
}

.shadow-img {
    box-shadow: var(--ui-shadow);
}

/* Grids */
.stats-grid, .team-grid, .story-grid, .dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Cards */
.dog-card, .stat-card, .team-card, .story-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.dog-card:hover, .team-card:hover, .story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ui-shadow-hover);
}

.dog-img-wrapper, .story-img {
    height: 280px;
    overflow: hidden;
}

.dog-img-wrapper img, .story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.dog-card:hover .dog-img-wrapper img, .story-card:hover .story-img img {
    transform: scale(1.08);
}

.dog-info, .story-text {
    padding: 32px;
}

.dog-info h3, .story-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.dog-info .breed {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.dog-info .age {
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
}

/* Stats specific */
.stat-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--light-color); /* Matches base so it pops on white bg-light section */
}
.stat-card h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.stat-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Team specific */
.team-card {
    text-align: center;
    padding: 48px 32px;
}
.team-avatar {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center; font-weight: bold; color: white;
    font-size: 1.2rem;
}
.placeholder-avatar { background: var(--secondary-color); }
.team-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.role { color: var(--primary-color); font-weight: 600; margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* FAQ & Lists */
.faq-container { display: flex; flex-direction: column; gap: 24px; }
.faq-item { padding: 32px; background: var(--white); border: 1px solid var(--ui-border); border-radius: 12px; }
.faq-question { font-size: 1.25rem; margin-bottom: 12px; color: var(--primary-color); }

.tips-list { list-style: none; margin-top: 24px; }
.tips-list li { margin-bottom: 20px; padding-left: 32px; position: relative; font-size: 1.1rem; }
.tips-list li::before { content: '🌿'; position: absolute; left: 0; top: 0; color: var(--primary-color); }

/* Subpage Heroes */
.page-hero {
    padding: 180px 20px 100px;
    background: var(--dark-color);
    color: var(--light-color);
    margin-bottom: 0;
}
.page-hero h1 { font-size: 4rem; color: var(--secondary-color); margin-bottom: 20px; letter-spacing: -1px; }
.page-hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto; color: rgba(255,255,255,0.8); }

/* Donate Specifics */
.donate-section {
    padding: 150px 0 100px;
    background: var(--light-color);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.donate-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
}

.donate-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mb-50 { margin-bottom: 50px; }
.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }
.mt-20 { margin-top: 20px; }

/* Enhanced Footer */
.main-footer { 
    background: var(--dark-color); 
    color: rgba(255,255,255,0.8); 
    padding: 100px 0 40px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 60px; 
    margin-bottom: 80px; 
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-col h3 { 
    font-size: 1.2rem; 
    margin-bottom: 24px; 
    color: var(--white); 
}
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; font-weight: 500; }
.social-links a:hover { color: var(--white); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; } 

.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { 
    flex: 1; 
    padding: 16px 20px; 
    border: none; 
    border-radius: 8px 0 0 8px; 
    font-family: var(--font-main); 
    outline: none; 
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { 
    border-radius: 0 8px 8px 0; 
    padding: 16px 32px;
}
.footer-bottom { 
    text-align: center; 
    padding-top: 40px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col-layout { flex-direction: column; gap: 40px; }
    .hero-content h1 { font-size: 3.5rem; }
    .page-hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    .nav-links { display: none; } 
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: 8px; margin-bottom: 12px; }
    .newsletter-form button { border-radius: 8px; width: 100%; }
    .content-section { padding: 80px 0; }
    .donate-content { padding: 40px 20px; }
}
