/* ================================================
   PetCare Local — Base Styles
   Variables, body, navbar, buttons, forms
   ================================================ */

/* ── CSS VARIABLES ── */

:root {
    /* Ocean Blue Palette */
    --brand-purple:      #2E6DA4;  /* medium ocean blue */
    --brand-dark:        #1F3B5B;  /* darkest ocean — navbar */
    --brand-darker:      #152840;  /* even darker — hero */
    --brand-footer:      #48607C;  /* BlueGray — upper footer */
    --brand-mid:         #3A7DC4;  /* lighter ocean blue */
    --brand-light:       #D6E8F7;  /* very light blue */
    --brand-lightest:    #F7FBFC;  /* lightest sea blue */
    --brand-accent:      #A8C8E8;  /* soft blue accent */

    /* Green Palette — keep for buttons/CTA */
    /* Optional Orange - values [ initiated ] — keep for buttons/CTA */
    --brand-green:       #B7410E;
    --brand-green-light: #E1F5EE;
    /* Optional Orange Palette — keep for buttons/CTA */
/*
    --brand-rust:        #B7410E;
    --brand-rust-light:  #F5E6E0;
*/

    /* Neutral Palette */
    --brand-white:       #fff;
    --brand-ghost:       #F4F8FC;  /* blue tinted ghost white */
    --brand-off-white:   #D6E8F7;

    /* Black & Gray Palette */
    --brand-light-gray:  #36454F;
    --brand-lighter-gray:  #6c757d;
    --brand-light-charcoal:  #828282;
    --brand-body-black:  #1a1a2e;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont,
                    'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --border-radius-sm:  8px;
    --border-radius-md:  12px;
    --border-radius-lg:  16px;
    --border-radius-xl:  20px;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-med:    0.3s ease;
}

/* ── BODY ── */
body {
    font-family: -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
    background-color: var(--brand-white);
    color: #1a1a2e;
    margin: 0;
    padding: 0;
}

/* ── MAIN ── */
main {
    width: 100%;
    overflow-x: hidden;
}

main section {
    width: 100%;
}

/* ── HEADER ── */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── NAVBAR — Bootstrap override ── */
.navbar {
    background-color: var(--brand-dark) !important;
    border-bottom: 2px solid var(--brand-purple);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
}

.nav-link {
    color: var(--brand-accent) !important;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff !important;
}

/* ── SITE NAVBAR — pure custom CSS ── */
.site-nav {
    background-color: #1F3B5B;
    border-bottom: 2px solid #2E6DA4;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-nav-brand {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-brand:hover {
    color: #A8C8E8;
    text-decoration: none;
}

.site-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.site-nav-right {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.site-nav-link {
    color: #A8C8E8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.site-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.site-nav-link-warning {
    color: #FAC775 !important;
}

.site-nav-link-danger {
    color: #ff6b6b !important;
}

.site-nav-cta {
    background: #B7410E;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.site-nav-cta:hover {
    background: #178a63;
    color: #fff;
    text-decoration: none;
}

/* ── BUTTONS ── */
.btn-brand {
    background: var(--brand-purple);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-brand:hover {
    background: var(--brand-mid);
    color: #fff;
    text-decoration: none;
}

.btn-brand-outline {
    background: transparent;
    color: var(--brand-purple);
    border: 1.5px solid var(--brand-purple);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-brand-outline:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    text-decoration: none;
}

/* ── FORM CONTROLS ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.2rem rgba(107,79,160,0.25);
}

/* ── FORM CONTROLS — custom size ── */
.form-control,
.form-control-lg {
    font-size: 1.10rem !important;
    padding: 8px 14px !important;
}

.form-select,
.form-select-lg {
    font-size: 1.10rem !important;
    padding: 8px 14px !important;
}

/* ── ALERTS ── */
.alert-info {
    background: var(--brand-light);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
}

/* ── LINKS ── */
a {
    color: var(--brand-purple);
}

a:hover {
    color: var(--brand-mid);
}

/* ── HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    header {
        position: relative;
    }
    .site-nav-links {
        display: none;
    }
    .site-nav-inner {
        padding: 0 1rem;
    }
}

/* ================================================
   PetCare Local — Mobile Responsive Fixes
   Add to BOTTOM of petcare-base.css
   ================================================ */

/* ── MOBILE — max 768px ── */
@media (max-width: 768px) {

    /* ── BODY ── */
    body {
        font-size: 0.95rem;
    }

    /* ── NAVBAR ── */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .site-nav-inner {
        padding: 0 1rem;
        height: 52px;
    }

    .site-nav-links {
        display: none;
    }

    .site-nav-right {
        gap: 2px;
    }

    .site-nav-link {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .site-nav-cta {
        font-size: 0.78rem;
        padding: 6px 12px;
        margin-left: 4px;
    }

    /* ── HERO SECTION ── */
    .hero-section {
        padding: 40px 16px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-section h1 {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
    }

    .hero-sub {
        font-size: 0.88rem;
    }

    .search-card {
        padding: 16px !important;
        margin: 16px 0 0 !important;
    }

    .search-card .row {
        gap: 8px;
    }

    .search-card .col-md-5,
    .search-card .col-md-3,
    .search-card .col-md-1 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* ── TRUST BAR ── */
    .trust-bar {
        padding: 12px 16px !important;
    }

    .trust-stat {
        font-size: 0.78rem;
    }

    /* ── LISTINGS SECTION ── */
    .listings-section {
        padding: 24px 0 !important;
    }

    .listings-container {
        padding: 0 16px !important;
        max-width: 100% !important;
    }

    /* ── FLEX GRID — stack on mobile ── */
    .flex-grid--width-85 {
        width: 100% !important;
        padding: 0 16px !important;
        gap: 16px !important;
        row-gap: 16px !important;
    }

    .flex-grid__col--third-width {
        flex: 1 0 100% !important;
        max-width: 100% !important;
    }

    /* ── LISTING CARD IMAGE ── */
    .listing-card-img {
        height: 200px !important;
    }

    .card-img-fallback {
        height: 160px !important;
    }

    /* ── LISTINGS DIVIDER ── */
    .listings-divider {
        width: 100% !important;
        padding: 0 16px !important;
    }

    /* ── LIST VIEW ── */
    .listings-list-view {
        width: 100% !important;
        padding: 0 16px !important;
    }

    .listing-list-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .listing-list-action {
        width: 100%;
    }

    .btn-book {
        width: 100% !important;
        justify-content: center;
    }

    /* ── PAGINATION ── */
    .listings-pagination {
        width: 100% !important;
        padding: 16px !important;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* ── PURPLE SECTION ── */
    .section-purple {
        padding: 32px 16px !important;
    }

    .section-purple h2 {
        font-size: 1.4rem;
    }

    .section-purple .col-md-8,
    .section-purple .col-md-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* ── WHITE SECTIONS ── */
    .section-white {
        padding: 32px 16px !important;
    }

    .section-white h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    .section-white .subtitle {
        text-align: center;
    }

    .section-white .col-md-4,
    .section-white .col-md-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* ── TESTIMONIAL CARDS ── */
    .testimonial-card {
        margin-bottom: 16px;
    }

    /* ── PROFILE PAGE ── */
    .profile-section {
        padding: 16px 0 32px !important;
    }

    .profile-name {
        font-size: 1.2rem !important;
    }

    .profile-photo-wrap,
    .profile-photo,
    .profile-photo-fallback {
        height: 200px !important;
    }

    .profile-card-body {
        padding: 16px !important;
    }

    .sidebar-card {
        padding: 16px !important;
        margin-top: 16px;
    }

    /* ── PRICING PAGE ── */
    .pricing-hero {
        padding: 32px 16px !important;
    }

    .pricing-hero h1 {
        font-size: 1.5rem !important;
    }

    .pricing-container {
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    .pricing-grid {
        flex-direction: column;
    }

    .pricing-grid .pricing-card {
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }

    .exclusive-explainer {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-trust {
        gap: 0.75rem !important;
        justify-content: flex-start;
    }

    .pricing-table-wrap {
        overflow-x: auto;
    }

    /* ── OWNER DASHBOARD ── */
    .owner-section {
        padding: 16px 0 !important;
    }

    .demo-container,
    .owner-container {
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    .owner-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .owner-two-col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .owner-calc-grid-3,
    .owner-calc-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .owner-results-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .owner-revenue-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* ── DEMO PAGE ── */
    .demo-hero {
        padding: 24px 16px !important;
    }

    .demo-title {
        font-size: 1.4rem !important;
    }

    .demo-cta-card {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center;
    }

    /* ── ADMIN SECTION ── */
    .admin-section {
        padding: 16px 0 !important;
    }

    /* ── SUCCESS PAGE ── */
    .success-section {
        padding: 32px 16px !important;
    }

    .success-card {
        padding: 24px 16px !important;
    }

    /* ── LOGIN/REGISTER ── */
    .login-section {
        padding: 32px 16px !important;
    }

    .login-card {
        padding: 24px 16px !important;
    }

    /* ── FOOTER ── */
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .donate-band {
        padding: 16px !important;
        text-align: center;
    }
}

/* ── SMALL MOBILE — max 480px ── */
@media (max-width: 480px) {

    .hero-section h1 {
        font-size: 1.3rem !important;
    }

    .site-nav-cta {
        display: none;
    }

    .owner-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .owner-roi-card {
        padding: 16px !important;
    }

    .pricing-amount {
        font-size: 1.8rem !important;
    }

    .pagination-btn-disabled {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }
}
