/*
Theme Name: Doglahoma Foundation
Theme URI: https://doglahoma.org
Author: Doglahoma Foundation
Author URI: https://doglahoma.org
Description: A compassionate WordPress theme for the Doglahoma Foundation, dedicated to rescuing neglected and abandoned dogs through shelter, care, education, and community support.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doglahoma
Tags: nonprofit, animal-rescue, charity, responsive, mobile-first
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

section {
    margin: 0 !important;
    padding: 0 !important;
}

section:not(.hero) {
    padding: 80px 20px !important;
}

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

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #5A8F5A 0%, #6BA36B 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    display: block;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

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

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-donate-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-donate-btn:hover {
    background-color: white;
    color: #5A8F5A;
    opacity: 1;
}

/* Hero Section with Slider */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: block;
    margin: 0;
    padding: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f5f5f5;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

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

.hero .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 7px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-arrow:hover {
    color: #5A8F5A;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.2);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

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

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #5A8F5A;
    color: white;
}

.btn-primary:hover {
    background-color: #4A7F4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: white;
    color: #5A8F5A;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: #f9f7f4;
}

.about .container > h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #5A8F5A;
    text-align: center;
}

.mission-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    color: #555;
}

.mission-items {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.mission-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.mission-item.reverse .mission-text {
    order: 1;
}

.mission-item.reverse .mission-image {
    order: 2;
}

.mission-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mission-image:hover img {
    transform: scale(1.05);
}

.mission-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #5A8F5A;
}

.mission-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Dogs Section */
.dogs {
    padding: 80px 20px;
    background-color: white;
}

.dogs .container > h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5A8F5A;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dog-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

.dog-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #5A8F5A;
}

.dog-breed {
    padding: 0 1.5rem;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dog-story {
    padding: 1rem 1.5rem;
    color: #555;
    line-height: 1.6;
}

.dog-card .btn {
    margin: 0 1.5rem 1.5rem;
}

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

/* Get Involved Section */
.get-involved {
    padding: 80px 20px;
    background-color: #f9f7f4;
}

.get-involved .container > h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5A8F5A;
    text-align: center;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.involvement-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.involvement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5A8F5A;
}

.involvement-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: white;
}

.contact .container > h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5A8F5A;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: #5A8F5A;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #555;
    line-height: 1.7;
}

.info-item a {
    color: #5A8F5A;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5A8F5A;
    box-shadow: 0 0 0 3px rgba(90, 143, 90, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #5A8F5A 0%, #6BA36B 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer a {
    color: white;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* WordPress Core Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        position: relative;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: linear-gradient(135deg, #5A8F5A 0%, #6BA36B 100%);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 1.5rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .nav-donate-btn {
        padding: 12px 20px;
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }

    .slide img {
        object-fit: cover;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

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

    .slider-arrow {
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mission-item,
    .mission-item.reverse {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .mission-item .mission-image,
    .mission-item.reverse .mission-image {
        order: 1 !important;
    }

    .mission-item .mission-text,
    .mission-item.reverse .mission-text {
        order: 2 !important;
    }

    .mission-items {
        gap: 3rem;
    }

    .involvement-grid,
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .about, .dogs, .get-involved, .contact {
        padding: 60px 15px;
    }

    .about .container > h2,
    .dogs .container > h2,
    .get-involved .container > h2,
    .contact .container > h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 45vh;
        min-height: 300px;
    }

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

    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }

    .slider-arrow {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: 5px;
    }

    .slider-arrow.next {
        right: 5px;
    }

    .about .container > h2,
    .dogs .container > h2,
    .get-involved .container > h2,
    .contact .container > h2 {
        font-size: 1.8rem;
    }

    .card h3,
    .involvement-card h3 {
        font-size: 1.3rem;
    }

    .about, .dogs, .get-involved, .contact {
        padding: 50px 10px;
    }

    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0.8rem 0;
    }
}