/* Schnauzer Haven Rescue - Public Styles */

:root {
    --shr-primary: #2c5f7c;
    --shr-accent: #e8a87c;
    --shr-dark: #1a3a4a;
    --shr-light: #f7f9fb;
    --shr-text: #333;
    --shr-muted: #666;
    --shr-radius: 8px;
    --shr-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Base */
.shr-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.shr-section h1,
.shr-section h2 {
    color: var(--shr-dark);
    margin-bottom: 1rem;
}

.shr-lead {
    font-size: 1.2rem;
    color: var(--shr-muted);
    max-width: 700px;
}

.shr-bg-light {
    background: var(--shr-light);
}

/* Hero */
.shr-hero {
    background: linear-gradient(135deg, var(--shr-primary) 0%, var(--shr-dark) 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.shr-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: #fff;
}

.shr-hero p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

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

/* Buttons */
.shr-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--shr-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--shr-radius);
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.shr-btn:hover {
    background: var(--shr-dark);
    transform: translateY(-1px);
}

.shr-btn-primary {
    background: var(--shr-accent);
    color: #1a3a4a !important;
}

.shr-btn-primary:hover {
    background: #d4956a;
}

.shr-btn-secondary {
    background: transparent;
    border: 2px solid #fff;
}

.shr-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.shr-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Three ways cards */
.shr-three-ways {
    text-align: center;
}

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

.shr-card {
    background: #fff;
    border-radius: var(--shr-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shr-shadow);
    text-align: center;
}

.shr-card h3 {
    color: var(--shr-primary);
    margin-bottom: 0.75rem;
}

.shr-card p {
    color: var(--shr-muted);
    margin-bottom: 1.25rem;
}

/* Checklist */
.shr-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.shr-checklist li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}

.shr-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--shr-accent);
    font-weight: bold;
}

/* Stats */
.shr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.shr-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--shr-primary);
    line-height: 1.2;
}

.shr-stat-label {
    font-size: 0.95rem;
    color: var(--shr-muted);
}

/* Dogs grid */
.shr-dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.shr-dog-card {
    background: #fff;
    border-radius: var(--shr-radius);
    overflow: hidden;
    box-shadow: var(--shr-shadow);
    transition: transform 0.2s;
}

.shr-dog-card:hover {
    transform: translateY(-4px);
}

.shr-dog-image img,
.shr-placeholder-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.shr-placeholder-img {
    background: var(--shr-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.shr-dog-info {
    padding: 1.25rem;
}

.shr-dog-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.shr-dog-info h3 a {
    color: var(--shr-dark);
    text-decoration: none;
}

.shr-dog-meta {
    font-size: 0.9rem;
    color: var(--shr-muted);
    margin-bottom: 0.75rem;
}

.shr-dog-excerpt {
    font-size: 0.95rem;
    color: var(--shr-text);
    margin-bottom: 1rem;
}

/* Gallery – Forced 2 columns on mobile */
.shr-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

.shr-gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.shr-gallery-img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
}

.shr-gallery-caption {
    padding: 0.7rem 0.75rem 0.9rem;
}

.shr-gallery-caption h4 {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
}

.shr-gallery-story {
    font-size: 0.75rem;
    color: var(--shr-muted);
    line-height: 1.4;
}

@media (min-width: 640px) {
    .shr-gallery-grid {
        gap: 1.15rem !important;
    }
    .shr-gallery-img {
        height: 190px !important;
    }
    .shr-gallery-caption h4 {
        font-size: 1.05rem;
    }
    .shr-gallery-story {
        font-size: 0.875rem;
    }
}

@media (min-width: 900px) {
    .shr-gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.4rem !important;
    }
    .shr-gallery-img {
        height: 210px !important;
    }
}

@media (min-width: 1200px) {
    .shr-gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Single dog */
.shr-single-dog {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.shr-dog-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 700px) {
    .shr-dog-header {
        grid-template-columns: 1fr;
    }
}

.shr-single-dog-img {
    width: 100%;
    border-radius: var(--shr-radius);
}

.shr-dog-meta-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.shr-dog-meta-list li {
    padding: 0.35rem 0;
}

/* Forms */
.shr-form {
    max-width: 560px;
    margin: 1.5rem 0;
}

.shr-form-row {
    margin-bottom: 1.25rem;
}

.shr-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--shr-dark);
}

.shr-form-row input[type="text"],
.shr-form-row input[type="email"],
.shr-form-row input[type="tel"],
.shr-form-row input[type="url"],
.shr-form-row select,
.shr-form-row textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccd5db;
    border-radius: var(--shr-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.shr-form-row input:focus,
.shr-form-row select:focus,
.shr-form-row textarea:focus {
    outline: none;
    border-color: var(--shr-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.15);
}

/* Contact grid */
.shr-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}

@media (max-width: 700px) {
    .shr-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Donate */
.shr-donate-cta {
    text-align: center;
    background: var(--shr-primary);
    color: #fff;
}

.shr-donate-cta h2 {
    color: #fff;
}

.shr-donate-box {
    background: var(--shr-light);
    padding: 2rem;
    border-radius: var(--shr-radius);
    text-align: center;
}

/* Success toast */
.shr-success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2d6a4f;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--shr-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 360px;
}

.shr-success-toast button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* Testimonials */
.shr-testimonials {
    display: grid;
    gap: 1.5rem;
}

.shr-testimonial {
    background: var(--shr-light);
    padding: 1.5rem;
    border-radius: var(--shr-radius);
    border-left: 4px solid var(--shr-accent);
    margin: 0;
}

.shr-testimonial cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 600;
    color: var(--shr-primary);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .shr-hero {
        padding: 3.5rem 1rem;
    }
    .shr-section {
        padding: 2rem 1rem;
    }
}


/* Force 2 columns on mobile for homepage + Happy Tails */
@media (max-width: 899px) {
    .shr-gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.7rem !important;
    }
    .shr-gallery-img {
        height: 135px !important;
    }
    .shr-gallery-caption h4 {
        font-size: 0.8rem !important;
    }
    .shr-gallery-story {
        font-size: 0.7rem !important;
    }
}
