/* =============================================================
   VETNEARHOME
   Shared Website Design System
   ============================================================= */


/* =============================================================
   1. BRAND
   ============================================================= */

:root {

    /* Existing VetNearHome brand colours */

    --vnh-primary: #1618C1;
    --vnh-primary-dark: #10129E;
    --vnh-primary-soft: #E8EAF6;

    --vnh-navy: #0A2540;
    --vnh-text: #2A3D66;
    --vnh-muted: #6C7690;

    --vnh-background: #F4F4F9;
    --vnh-surface: #FFFFFF;

    --vnh-border: #DFE2EE;
    --vnh-border-strong: #CFD3E2;


    /* Feedback colours */

    --vnh-success: #28765D;
    --vnh-success-soft: #EDF7F2;

    --vnh-warning: #956408;
    --vnh-warning-soft: #FFF7E4;

    --vnh-danger: #A14343;
    --vnh-danger-soft: #FFF1F1;


    /* Typography */

    --vnh-heading:
        "Playfair Display",
        Georgia,
        serif;

    --vnh-body:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* Layout */

    --vnh-container: 1140px;
    --vnh-reading-width: 760px;


    /* Radius */

    --vnh-radius-small: 5px;
    --vnh-radius: 10px;
    --vnh-radius-large: 16px;


    /* Shadows */

    --vnh-shadow-small:
        0 2px 8px rgba(10, 37, 64, 0.05);

    --vnh-shadow:
        0 12px 32px rgba(10, 37, 64, 0.07);

}


/* =============================================================
   2. RESET
   ============================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--vnh-background);

    color: var(--vnh-text);

    font-family: var(--vnh-body);
    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--vnh-primary);
}

a:hover {
    color: var(--vnh-primary-dark);
}


/* =============================================================
   3. TYPOGRAPHY
   ============================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--vnh-navy);

    font-family: var(--vnh-heading);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.3;
}

p {
    margin-top: 0;
}

.vnh-eyebrow {
    margin: 0 0 10px;

    color: var(--vnh-primary);

    font-family: var(--vnh-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vnh-lead {
    color: var(--vnh-text);

    font-size: 1.1rem;
    line-height: 1.75;
}

.vnh-muted {
    color: var(--vnh-muted);
}


/* =============================================================
   4. ACCESSIBILITY
   ============================================================= */

.vnh-skip-link {
    position: fixed;
    z-index: 9999;

    top: 12px;
    left: 12px;

    padding: 9px 14px;

    background: var(--vnh-navy);
    color: #ffffff;

    border-radius: var(--vnh-radius-small);

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;

    transform: translateY(-200%);
}

.vnh-skip-link:focus {
    transform: translateY(0);
}


/* =============================================================
   5. GENERAL LAYOUT
   ============================================================= */

.vnh-container {
    width: min(var(--vnh-container),
            calc(100% - 40px));

    margin-right: auto;
    margin-left: auto;
}

.vnh-reading-width {
    max-width: var(--vnh-reading-width);
}

.vnh-section {
    padding: 80px 0;
}

.vnh-section-white {
    background: #ffffff;
}

.vnh-section-light {
    background: var(--vnh-background);
}

.vnh-section-lavender {
    background: var(--vnh-primary-soft);
}

.vnh-section-heading {
    max-width: 720px;

    margin-bottom: 38px;
}

.vnh-section-heading-centered {
    margin-right: auto;
    margin-left: auto;

    text-align: center;
}

.vnh-section-heading h2 {
    margin-bottom: 12px;
}

.vnh-section-heading p {
    margin-bottom: 0;

    color: var(--vnh-muted);

    font-size: 1rem;
    line-height: 1.7;
}


/* =============================================================
   6. NAVBAR
   ============================================================= */

.vnh-site-header {
    position: relative;
    z-index: 100;

    background: #ffffff;

    border-bottom:
        1px solid rgba(10, 37, 64, 0.07);

    box-shadow:
        0 2px 8px rgba(10, 37, 64, 0.035);
}

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

    min-height: 76px;
}

.vnh-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--vnh-primary);

    text-decoration: none;
}

.vnh-brand:hover {
    color: var(--vnh-primary);
    text-decoration: none;
}

.vnh-brand-logo {
    width: 39px;
    height: 39px;

    object-fit: contain;
}

.vnh-brand-name {
    font-family: var(--vnh-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

.vnh-navigation {
    display: flex;
    align-items: center;
    gap: 36px;
}

.vnh-nav-links,
.vnh-nav-actions {
    display: flex;
    align-items: center;
}

.vnh-nav-links {
    gap: 26px;
}

.vnh-nav-actions {
    gap: 12px;
}

.vnh-nav-link,
.vnh-nav-signin {
    color: var(--vnh-text);

    font-size: 0.88rem;
    font-weight: 500;

    text-decoration: none;
}

.vnh-nav-link:hover,
.vnh-nav-signin:hover {
    color: var(--vnh-primary);
    text-decoration: none;
}


/* =============================================================
   7. MOBILE NAV BUTTON
   ============================================================= */

.vnh-nav-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.vnh-nav-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--vnh-navy);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.vnh-nav-toggle-open span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}

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

.vnh-nav-toggle-open span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}


/* =============================================================
   8. BUTTONS
   ============================================================= */

.vnh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 19px;

    border:
        1px solid transparent;

    border-radius:
        var(--vnh-radius-small);

    font-family: var(--vnh-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.vnh-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.vnh-btn-primary {
    border-color: var(--vnh-primary);

    background: var(--vnh-primary);
    color: #ffffff;
}

.vnh-btn-primary:hover {
    border-color: var(--vnh-primary-dark);

    background: var(--vnh-primary-dark);
    color: #ffffff;
}

.vnh-btn-outline {
    border-color: var(--vnh-primary);

    background: transparent;
    color: var(--vnh-primary);
}

.vnh-btn-outline:hover {
    background: var(--vnh-primary);
    color: #ffffff;
}

.vnh-btn-light {
    border-color: #ffffff;

    background: #ffffff;
    color: var(--vnh-primary);
}

.vnh-btn-light:hover {
    background: #f1f1ff;
    color: var(--vnh-primary-dark);
}

.vnh-btn-small {
    min-height: 39px;

    padding: 8px 14px;

    font-size: 0.82rem;
}

.vnh-btn-large {
    min-height: 52px;

    padding: 13px 24px;

    font-size: 0.98rem;
}


/* =============================================================
   9. CARDS
   ============================================================= */

.vnh-card {
    background: #ffffff;

    border:
        1px solid rgba(22, 24, 193, 0.10);

    border-radius:
        var(--vnh-radius-large);

    box-shadow:
        var(--vnh-shadow);
}

.vnh-card-body {
    padding: 28px;
}

.vnh-card h3 {
    margin-bottom: 9px;
}

.vnh-card p:last-child {
    margin-bottom: 0;
}


/* =============================================================
   10. FORM ELEMENTS
   ============================================================= */

.vnh-form {
    width: 100%;
}

.vnh-form-group {
    margin-bottom: 22px;
}

.vnh-form label {
    display: block;

    margin-bottom: 7px;

    color: var(--vnh-navy);

    font-size: 0.86rem;
    font-weight: 600;
}

.vnh-form input:not([type="checkbox"]):not([type="radio"]),
.vnh-form select,
.vnh-form textarea,
.vnh-field input:not([type="checkbox"]):not([type="radio"]),
.vnh-field select,
.vnh-field textarea {
    display: block;

    width: 100%;

    min-height: 48px;

    padding: 11px 13px;

    border:
        1px solid var(--vnh-border-strong);

    border-radius:
        var(--vnh-radius-small);

    outline: none;

    background: #ffffff;
    color: var(--vnh-text);

    font-family: var(--vnh-body);
    font-size: 0.9rem;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.vnh-form textarea,
.vnh-field textarea {
    min-height: 115px;
    resize: vertical;
}

.vnh-form input:focus,
.vnh-form select:focus,
.vnh-form textarea:focus,
.vnh-field input:focus,
.vnh-field select:focus,
.vnh-field textarea:focus {
    border-color: var(--vnh-primary);

    box-shadow:
        0 0 0 3px rgba(22, 24, 193, 0.10);
}

.vnh-form input[type="checkbox"],
.vnh-form input[type="radio"] {
    accent-color: var(--vnh-primary);
}

.vnh-help-text {
    margin-top: 6px;

    color: var(--vnh-muted);

    font-size: 0.76rem;
    line-height: 1.5;
}

.vnh-field-error {
    margin-top: 6px;

    color: var(--vnh-danger);

    font-size: 0.78rem;
}


/* =============================================================
   11. ALERTS / DJANGO MESSAGES
   ============================================================= */

.vnh-system-messages {
    padding-top: 18px;
}

.vnh-alert {
    margin-bottom: 10px;

    padding: 13px 16px;

    border:
        1px solid var(--vnh-border);

    border-radius:
        var(--vnh-radius-small);

    background: #ffffff;

    color: var(--vnh-text);

    font-size: 0.84rem;
}

.vnh-alert-success {
    border-color: #CDE6D9;

    background: var(--vnh-success-soft);
    color: #24654F;
}

.vnh-alert-warning {
    border-color: #EBD8A6;

    background: var(--vnh-warning-soft);
    color: #79570C;
}

.vnh-alert-error,
.vnh-alert-danger {
    border-color: #E9CACA;

    background: var(--vnh-danger-soft);
    color: var(--vnh-danger);
}


/* =============================================================
   12. STATUS LABELS
   ============================================================= */

.vnh-status {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 4px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vnh-status-success {
    background: var(--vnh-success-soft);
    color: var(--vnh-success);
}

.vnh-status-warning {
    background: var(--vnh-warning-soft);
    color: var(--vnh-warning);
}

.vnh-status-neutral {
    background: #EFF0F5;
    color: #626B80;
}


/* =============================================================
   13. CONTENT GRIDS
   ============================================================= */

.vnh-grid-2 {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.vnh-grid-3 {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =============================================================
   14. IMAGE + TEXT LAYOUT
   ============================================================= */

.vnh-split {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);

    align-items: center;

    gap: 60px;
}

.vnh-split-image {
    overflow: hidden;

    border-radius:
        var(--vnh-radius-large);

    box-shadow:
        var(--vnh-shadow-small);
}

.vnh-split-image img {
    width: 100%;
    height: auto;
}


/* =============================================================
   15. SIMPLE DIVIDER LIST
   ============================================================= */

.vnh-list {
    border-top:
        1px solid var(--vnh-border);
}

.vnh-list-item {
    padding: 20px 0;

    border-bottom:
        1px solid var(--vnh-border);
}


/* =============================================================
   16. CTA SECTION
   ============================================================= */

.vnh-cta {
    padding: 70px 0;

    background: var(--vnh-primary);
    color: #ffffff;
}

.vnh-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.vnh-cta h2 {
    margin-bottom: 8px;

    color: #ffffff;
}

.vnh-cta p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.86);
}


/* =============================================================
   17. FOOTER
   ============================================================= */

.vnh-site-footer {
    padding: 58px 0 26px;

    background: #ffffff;

    border-top:
        1px solid var(--vnh-border);
}

.vnh-footer-main {
    display: grid;

    grid-template-columns:
        1.6fr 1fr 1fr 1.25fr;

    gap: 45px;

    padding-bottom: 40px;
}

.vnh-footer-brand p {
    max-width: 300px;

    margin: 18px 0 0;

    color: var(--vnh-muted);

    font-size: 0.86rem;
    line-height: 1.65;
}

.vnh-footer-column h2 {
    margin-bottom: 14px;

    color: var(--vnh-navy);

    font-family: var(--vnh-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vnh-footer-column a {
    display: block;

    width: fit-content;

    margin-bottom: 10px;

    color: var(--vnh-text);

    font-size: 0.83rem;
    text-decoration: none;
}

.vnh-footer-column a:hover {
    color: var(--vnh-primary);
}

.vnh-footer-small {
    color: var(--vnh-muted);

    font-size: 0.76rem;
    line-height: 1.55;
}

.vnh-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top:
        1px solid var(--vnh-border);
}

.vnh-footer-bottom p {
    margin: 0;

    color: var(--vnh-muted);

    font-size: 0.75rem;
}

.vnh-footer-logout {
    margin: 0;
}

.vnh-footer-logout button {
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--vnh-muted);

    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;

    cursor: pointer;
}

.vnh-footer-logout button:hover {
    color: var(--vnh-primary);
    text-decoration: underline;
}


/* =============================================================
   18. AUTH / SIGNUP PAGES
   ============================================================= */

.vnh-auth-page {
    padding: 70px 0 90px;
}

.vnh-auth-container {
    width: min(700px,
            calc(100% - 40px));

    margin: 0 auto;
}

.vnh-auth-header {
    margin-bottom: 30px;

    text-align: center;
}

.vnh-auth-header h1 {
    margin-bottom: 12px;
}

.vnh-auth-header p {
    max-width: 580px;

    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;

    color: var(--vnh-muted);
}

.vnh-auth-card {
    padding: 34px;

    background: #ffffff;

    border:
        1px solid rgba(22, 24, 193, 0.10);

    border-radius:
        var(--vnh-radius-large);

    box-shadow:
        var(--vnh-shadow);
}


/* =============================================================
   19. DASHBOARD FOUNDATION
   ============================================================= */

.vnh-dashboard-page {
    padding: 62px 0 80px;
}

.vnh-dashboard-header {
    margin-bottom: 40px;
}

.vnh-dashboard-header h1 {
    margin-bottom: 10px;
}

.vnh-dashboard-header p {
    max-width: 680px;

    margin-bottom: 0;

    color: var(--vnh-muted);
}

.vnh-dashboard-section {
    margin-bottom: 44px;
}

.vnh-dashboard-section-heading {
    margin-bottom: 16px;
}

.vnh-dashboard-section-heading h2 {
    margin-bottom: 4px;

    font-size: 1.6rem;
}

.vnh-dashboard-section-heading p {
    margin: 0;

    color: var(--vnh-muted);

    font-size: 0.85rem;
}

.vnh-dashboard-card {
    padding: 24px;

    background: #ffffff;

    border:
        1px solid rgba(22, 24, 193, 0.10);

    border-radius:
        var(--vnh-radius-large);

    box-shadow:
        var(--vnh-shadow-small);
}


/* =============================================================
   20. RESPONSIVE
   ============================================================= */

@media (max-width: 980px) {

    .vnh-footer-main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .vnh-grid-3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .vnh-split {
        gap: 38px;
    }

}


@media (max-width: 820px) {

    .vnh-navbar {
        min-height: 70px;
    }

    .vnh-nav-toggle {
        display: block;
    }

    .vnh-navigation {
        position: absolute;

        top: 100%;
        right: 0;
        left: 0;

        display: none;

        padding: 20px;

        background: #ffffff;

        border-top:
            1px solid var(--vnh-border);

        border-bottom:
            1px solid var(--vnh-border);

        box-shadow:
            0 12px 25px rgba(10, 37, 64, 0.08);
    }

    .vnh-navigation-open {
        display: block;
    }

    .vnh-nav-links,
    .vnh-nav-actions {
        display: block;
    }

    .vnh-nav-link,
    .vnh-nav-signin {
        display: block;

        padding: 11px 0;
    }

    .vnh-nav-actions {
        margin-top: 14px;

        padding-top: 16px;

        border-top:
            1px solid var(--vnh-border);
    }

    .vnh-nav-actions .vnh-btn {
        width: 100%;

        margin-top: 8px;
    }


    .vnh-grid-2,
    .vnh-grid-3,
    .vnh-split {
        grid-template-columns: 1fr;
    }


    .vnh-cta-inner {
        display: block;
    }

    .vnh-cta-inner .vnh-btn {
        margin-top: 24px;
    }

}


@media (max-width: 620px) {

    .vnh-container {
        width: min(100% - 30px,
                var(--vnh-container));
    }

    .vnh-section {
        padding: 58px 0;
    }

    .vnh-brand-logo {
        width: 34px;
        height: 34px;
    }

    .vnh-brand-name {
        font-size: 1.3rem;
    }

    .vnh-footer-main {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .vnh-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .vnh-auth-card {
        padding: 25px 20px;
    }

}