/* CSS Variables */
:root {
    --primary: #5D8084;
    --primary-dark: #4a6669;
    --primary-light: #7a9a9d;
    --text-light: #FDFEFF;
    --text-dark: #2c3e40;
    --background: #f8fafa;
    --white: #ffffff;
    --shadow: rgba(93, 128, 132, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo img {
    height: 70px;
    width: auto;
    margin: -10px 0;
    transition: filter 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(10%) saturate(884%) hue-rotate(142deg) brightness(96%) contrast(89%);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

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

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

.nav-donate {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: 10px 25px !important;
    border-radius: 25px;
}

.nav-donate:hover {
    background: var(--primary-dark);
}

.nav-donate::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.hero-logo {
    max-width: 400px;
    margin: 0 auto 30px;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary);
}

.btn-donate {
    background: #ffc439;
    color: #003087;
    font-weight: 600;
    padding: 18px 45px;
    font-size: 1.1rem;
}

.btn-donate:hover {
    background: #f5bb30;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 196, 57, 0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 50px;
}

/* Mission Section */
.mission {
    background: var(--white);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Adopt Section */
.adopt {
    background: var(--background);
}

.dog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.dog-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.dog-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

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

.adopt-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Foster Section */
.foster {
    background: var(--white);
}

.foster-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.foster-text h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 30px 0 15px;
}

.foster-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.foster-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.foster-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.foster-text .btn {
    margin-top: 20px;
}

.foster-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
}

.foster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Volunteer Section */
.volunteer {
    background: var(--primary);
    color: var(--text-light);
}

.volunteer .section-title {
    color: var(--text-light);
}

.volunteer .section-subtitle {
    color: rgba(253, 254, 255, 0.8);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.volunteer-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.volunteer-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.volunteer-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.volunteer-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-light);
}

.volunteer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.volunteer-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.volunteer .btn-primary {
    background: var(--text-light);
    color: var(--primary);
    display: block;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
}

.volunteer .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Donate Section */
.donate {
    background: var(--background);
}

.donate-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donate-content > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.donate-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.impact-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-3px);
}

.impact-amount {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.impact-desc {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.tax-info {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e5e5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D8084' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Conditional fields */
.conditional-fields {
    animation: fadeIn 0.3s ease;
    padding: 20px;
    background: var(--background);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(93, 128, 132, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.form-group-small {
    flex: 0 0 auto;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    width: 100%;
    padding: 18px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .foster-content {
        grid-template-columns: 1fr;
    }

    .foster-image {
        order: -1;
        max-height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

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

    section {
        padding: 70px 0;
    }

    .dog-gallery {
        grid-template-columns: 1fr;
    }

    .dog-card img {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .donate-impact {
        grid-template-columns: 1fr 1fr;
    }

    .impact-amount {
        font-size: 2rem;
    }
}
