/* Pashu Sewa Dham Foundation - Modern Responsive Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --brand-teal: #0c4f58;
    --brand-teal-dark: #07383f;
    --brand-teal-light: #157380;
    --brand-teal-subtle: #e6f4f5;
    --brand-amber: #f59e0b;
    --brand-amber-dark: #d97706;
    --brand-amber-subtle: #fef3c7;
    --brand-burgundy: #781c45;
    --brand-cyan: #0284c7;
    --brand-text-dark: #0f172a;
    --brand-text-muted: #64748b;
    --brand-bg: #f8fafc;
    --brand-card-bg: #ffffff;
    --brand-border: #e2e8f0;
    --brand-radius: 16px;
    --brand-shadow: 0 10px 30px -5px rgba(12, 79, 88, 0.08), 0 4px 6px -2px rgba(12, 79, 88, 0.04);
    --brand-shadow-lg: 0 20px 40px -10px rgba(12, 79, 88, 0.16);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-text-dark);
    background-color: var(--brand-bg);
    overflow-x: hidden;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--brand-teal-dark);
    letter-spacing: -0.02em;
}

.font-accent {
    font-family: 'Playfair Display', serif;
}

/* ================= TOP BAR ================= */
.top-bar {
    background-color: var(--brand-teal-dark);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--brand-amber);
}

.emergency-pill {
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ================= NAVBAR ================= */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 8px 0;
}

.main-nav .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows mobile collapse to break cleanly to next row */
}

/* Navbar Brand & Logo */
.navbar-brand {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 15px;
    text-decoration: none;
}

.navbar-brand img {
    height: 46px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    white-space: nowrap !important;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-teal);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.brand-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.72rem;
    color: var(--brand-burgundy);
    font-weight: 600;
    white-space: nowrap !important;
}

/* Navbar Toggler */
.navbar-toggler {
    padding: 6px 10px;
    border-radius: 8px;
    background-color: var(--brand-teal-subtle);
    border: 1px solid rgba(12, 79, 88, 0.15);
    color: var(--brand-teal);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.navbar-toggler:hover, 
.navbar-toggler:focus {
    background-color: rgba(12, 79, 88, 0.15);
    border-color: var(--brand-teal);
    box-shadow: none;
    outline: none;
}

.navbar-toggler[aria-expanded="true"] {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #ffffff;
}

.navbar-toggler[aria-expanded="true"] i {
    color: #ffffff !important;
}

.navbar-toggler i {
    color: var(--brand-teal);
    font-size: 1.2rem;
}

/* Nav Links Base */
.nav-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155 !important;
    padding: 6px 10px !important;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-teal) !important;
    background-color: var(--brand-teal-subtle);
}

/* ================= MOBILE NAVIGATION (< 992px) ================= */
@media (max-width: 991.98px) {
    .main-nav {
        padding: 6px 0;
    }

    /* Keep Brand from taking too much space while keeping logo clear & readable */
    .navbar-brand {
        margin-right: 0 !important;
        max-width: calc(100% - 54px); /* guarantees ample space for toggler button */
        flex-shrink: 1;
    }

    .navbar-brand img {
        height: 38px;
        width: 38px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .brand-text-wrapper {
        margin-left: 7px;
        min-width: 0;
        overflow: hidden;
    }

    .brand-title {
        font-size: 0.94rem;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-subtitle {
        font-size: 0.64rem;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Menu Dropdown Panel (Full-width, properly positioned below header) */
    .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-top: 10px;
        padding: 12px 14px 16px;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid rgba(12, 79, 88, 0.1);
        box-shadow: 0 10px 25px -5px rgba(12, 79, 88, 0.12);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        gap: 4px;
        margin-bottom: 0 !important;
        padding-left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding: 9px 12px !important;
        font-size: 0.93rem !important;
        border-radius: 8px;
        width: 100%;
    }

    /* Mobile Dropdown Sub-menu */
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 4px 0 6px 12px !important;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 6px 8px;
    }

    .nav-item.dropdown .dropdown-item {
        padding: 7px 12px !important;
        font-size: 0.88rem;
        border-radius: 6px;
    }

    /* Mobile Donate Button */
    .nav-donate-btn {
        margin-top: 8px !important;
        margin-left: 0 !important;
        width: 100%;
    }

    .nav-donate-btn .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px !important;
        font-size: 0.94rem;
        font-weight: 700;
    }
}

/* Small mobile devices (e.g. <= 400px) */
@media (max-width: 400px) {
    .navbar-brand img {
        height: 34px;
        width: 34px;
    }
    .brand-title {
        font-size: 0.86rem;
    }
    .brand-subtitle {
        font-size: 0.58rem;
    }
    .navbar-toggler {
        padding: 5px 8px;
        font-size: 1rem;
    }
}

/* ================= DESKTOP NAVIGATION (>= 992px) ================= */
@media (min-width: 992px) {
    .main-nav .container-fluid {
        flex-wrap: nowrap;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        gap: 2px;
        width: auto !important;
    }

    .nav-item {
        white-space: nowrap !important;
        width: auto !important;
    }

    .nav-donate-btn {
        margin-left: 10px !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    .nav-donate-btn .btn {
        width: auto !important;
    }
}

@media (min-width: 1300px) {
    .nav-link {
        font-size: 0.92rem;
        padding: 6px 13px !important;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .brand-subtitle {
        font-size: 0.78rem;
    }
    .navbar-brand img {
        height: 50px;
        width: auto;
    }
}

/* ================= BUTTONS ================= */
.btn-brand-primary {
    background-color: var(--brand-teal);
    color: white !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(12, 79, 88, 0.25);
}

.btn-brand-primary:hover {
    background-color: var(--brand-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 79, 88, 0.35);
}

.btn-brand-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-brand-amber:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-brand-outline {
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 22px;
    background: transparent;
    transition: all 0.25s ease;
}

.btn-brand-outline:hover {
    background-color: var(--brand-teal);
    color: white !important;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 22px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ================= HERO SECTION ================= */
/*.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 56, 63, 0.92), rgba(12, 79, 88, 0.85)), url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    color: white;
    padding: 90px 0 100px 0;
    overflow: hidden;
}
*/



.hero-section {
    position: relative;
    background-image: linear-gradient( 135deg, rgba(7, 56, 63, 0.55), rgba(12, 79, 88, 0.45) ), url('/images/animal-rescue.jpeg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 90px 0 100px;
    min-height: 500px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--brand-bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badge-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--brand-radius);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ================= STATS COUNTER STRIP ================= */
.stats-strip {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: var(--brand-radius);
    padding: 24px 20px;
    box-shadow: var(--brand-shadow);
    border: 1px solid var(--brand-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow-lg);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-teal);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--brand-text-muted);
    font-weight: 600;
    margin: 0;
}

/* ================= CARDS & SECTIONS ================= */
.section-padding {
    padding: 70px 0;
}

.section-badge {
    display: inline-block;
    background: var(--brand-teal-subtle);
    color: var(--brand-teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--brand-teal-dark);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--brand-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.custom-card {
    background: white;
    border-radius: var(--brand-radius);
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--brand-shadow-lg);
    border-color: #cbd5e1;
}

/* Pet Card */
.pet-card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pet-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card:hover .pet-card-img-wrapper img {
    transform: scale(1.06);
}

.pet-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-teal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pet-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pet-status-available { background: #10b981; color: white; }
.pet-status-adopted { background: #64748b; color: white; }
.pet-status-medical { background: #f59e0b; color: white; }

/* Bank Details Box */
.bank-details-box {
    background: linear-gradient(145deg, #07383f, #0c4f58);
    color: white;
    border-radius: var(--brand-radius);
    padding: 28px;
    position: relative;
    box-shadow: var(--brand-shadow-lg);
}

.bank-details-box h4 {
    color: #fef08a;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row .label {
    color: #94a3b8;
    font-weight: 500;
}

.bank-row .value {
    color: #ffffff;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.05rem;
}

/* QR Code Container */
.qr-container {
    background: white;
    border-radius: var(--brand-radius);
    padding: 20px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    box-shadow: var(--brand-shadow);
}

.qr-image {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Wall of Kindness Ticker */
.donor-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 5px solid var(--brand-amber);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

/* ================= FLOATING ACTION BUTTONS ================= */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.floating-whatsapp {
    background-color: #25d366;
    animation: float-pulse 2.5s infinite;
}

.floating-call {
    background: #ef4444;
}

@keyframes float-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ================= FOOTER ================= */
.main-footer {
    background-color: #05282d;
    color: #94a3b8;
    padding: 70px 0 24px 0;
    font-size: 0.92rem;
}

.main-footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.main-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: var(--brand-amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 50px;
    font-size: 0.85rem;
}

.ms-link {
    color: #38bdf8 !important;
    font-weight: 700;
    text-decoration: underline;
}

.ms-link:hover {
    color: #7dd3fc !important;
}

/* ================= PRINT RECEIPT STYLES ================= */
@media print {
    body * {
        visibility: hidden;
    }
    .print-receipt-container, .print-receipt-container * {
        visibility: visible;
    }
    .print-receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        background: white;
        color: black;
    }
    .no-print {
        display: none !important;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .stats-strip {
        margin-top: -20px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}