:root {
    --color-body: #f5f7fa;
    --color-surface: #ffffff;
    --color-muted: #5d6a7a;
    --color-primary: #2d7a52;
    --color-primary-dark: #21573a;
    --color-accent: #f4a259;
    --color-border: rgba(45, 122, 82, 0.16);
    --color-footer: #183239;
    --shadow-sm: 0 6px 18px rgba(23, 34, 45, 0.12);
    --shadow-md: 0 18px 44px rgba(23, 34, 45, 0.16);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container-width: 1100px;
    --transition: all 0.24s ease;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #1f2933;
    background: var(--color-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

p {
    margin: 0 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: #12223b;
    margin: 0 0 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 2.5vw + 1.5rem, 3.25rem);
}

h2 {
    font-size: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
}

h3 {
    font-size: 1.4rem;
}

img {
    max-width: 100%;
    display: block;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.container {
    width: min(100%, var(--container-width));
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 9vw, 7rem);
    background: linear-gradient(140deg, rgba(20, 24, 32, 0.7), rgba(55, 65, 81, 0.5)),
        url("../images/Universal.jpg") center/cover no-repeat;
    color: #fff;
}

.hero--centered {
    text-align: center;
}

.hero__orbit {
    display: grid;
    justify-items: center;
    gap: clamp(2.5rem, 6vw, 3.75rem);
}

.hero__logo {
    width: clamp(220px, 20vw, 320px);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 30px 70px rgba(12, 23, 34, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    gap: clamp(0.5rem, 2vw, 1rem);
}

.hero__logo img {
    width: 100%;
    height: auto;
}

.hero__social-links {
    display: flex;
    gap: clamp(0.5rem, 2vw, 0.9rem);
}

.hero__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 4vw, 48px);
    height: clamp(42px, 4vw, 48px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: var(--transition);
}

.hero__social-link:hover,
.hero__social-link:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.hero__social-link img {
    width: clamp(22px, 3vw, 26px);
    height: clamp(22px, 3vw, 26px);
}

.hero__items {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    width: min(100%, 760px);
}

.hero__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-align: left;
    transition: var(--transition);
}

.hero__item:hover,
.hero__item:focus {
    background: rgba(18, 24, 32, 0.32);
    border-color: rgba(255, 255, 255, 0.55);
    color: #f7f8fa;
    box-shadow: 0 16px 34px rgba(12, 23, 34, 0.28);
    transform: translateY(-4px);
}

.hero__item-label {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
}

.hero__item-detail {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero__copy {
    max-width: 720px;
    margin: clamp(2rem, 6vw, 3.5rem) auto 0;
    color: #f8fafc;
}

.hero__copy h1 {
    color: #ffffff;
}

.hero__copy p {
    color: rgba(248, 250, 252, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1.15;
    min-height: 44px; /* consistent, accessible target */
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(45, 122, 82, 0.35);
    color: var(--color-primary);
}

.btn--ghost:hover,
.btn--ghost:focus {
    border-color: var(--color-primary);
    background: rgba(45, 122, 82, 0.1);
    color: var(--color-primary-dark);
}

.hero .btn--ghost,
.interior-hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.hero .btn--ghost:hover,
.hero .btn--ghost:focus,
.interior-hero .btn--ghost:hover,
.interior-hero .btn--ghost:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.quick-links {
    margin-top: clamp(2rem, 3vw, 3rem);
}

.quick-links__grid {
    display: grid;
    gap: 1rem;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.quick-link-card:hover,
.quick-link-card:focus-within {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
}

.quick-link-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.quick-link-card p {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.quick-link-card a {
    font-weight: 600;
    color: #fff;
}

.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--highlight {
    /* subtle tint to reveal rounded corners of inner elements */
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.section--tint {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.06), rgba(255, 255, 255, 0));
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section__header p {
    color: var(--color-muted);
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.95rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
}

.card__label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

.card p:last-child {
    margin-bottom: 0;
}

/* Keep card action buttons aligned and uniform */
.card .btn {
    margin-top: auto;
    align-self: stretch;
}

.announcement-grid {
    display: grid;
    gap: 1.75rem;
}

.announcement-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    gap: 0;
}

.announcement-card__image {
    width: 100%;
    height: clamp(180px, 38vw, 260px);
    object-fit: cover;
}

.announcement-card__body {
    padding: 1.6rem;
}

.announcement-card__body h3 {
    margin-bottom: 0.85rem;
}

.announcement-card__body p:last-child {
    margin-bottom: 0;
}

.announcement-card__body-text {
    color: var(--color-muted-dark);
}

.announcement-card--no-image .announcement-card__body {
    padding-top: 2.15rem;
}

.announcement-empty {
    text-align: center;
}

.mission {
    display: grid;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    align-items: start;
}

.mission__intro {
    font-size: 1.1rem;
    color: #2a3948;
}

.mission__facts {
    display: grid;
    gap: 1rem;
}

.fact-card {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(4px);
    display: grid;
    gap: 0.35rem;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.fact-card strong {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.care-grid {
    display: grid;
    gap: 1.5rem;
}

.care-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.care-grid li {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(45, 122, 82, 0.35);
    background: rgba(45, 122, 82, 0.08);
}

.callout {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 3.75rem);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    left: -12%;
    bottom: -28%;
    width: clamp(220px, 34vw, 300px);
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(45, 122, 82, 0.18), rgba(45, 122, 82, 0.04) 58%, transparent 74%);
    pointer-events: none;
    z-index: 0;
}

.callout__accent {
    position: absolute;
    top: -26%;
    right: -12%;
    width: clamp(240px, 38vw, 340px);
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(244, 162, 89, 0.45), rgba(244, 162, 89, 0.18) 55%, rgba(45, 122, 82, 0.08) 75%, transparent 86%);
    pointer-events: none;
    z-index: 0;
}

.callout__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    text-align: center;
    justify-items: center;
}

.callout__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.callout h2 {
    margin: 0;
    color: #12223b;
}

.callout p {
    margin: 0;
    max-width: 620px;
    color: var(--color-muted);
}

.callout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 640px) {
    .callout {
        padding: 2.25rem 1.5rem;
    }

    .callout::before {
        width: 220px;
        left: -30%;
        bottom: -38%;
    }

    .callout__accent {
        width: 240px;
        top: -36%;
        right: -40%;
    }
}

.interior-hero {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background: linear-gradient(140deg, rgba(20, 24, 32, 0.9), rgba(55, 65, 81, 0.7)), url("../images/Universal.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
}

/* Dogs index page hero uses a dedicated image */
.interior-hero--dogs {
    background: linear-gradient(140deg, rgba(20, 24, 32, 0.9), rgba(55, 65, 81, 0.7)),
        url("../images/AvailableDogs.jpg") center/cover no-repeat;
}

.interior-hero p {
    margin: 0 auto;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.85);
}

.page-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.page-actions__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-actions__link:hover,
.page-actions__link:focus {
    color: #ffffff;
}

.content-section {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.content-section + .content-section {
    padding-top: clamp(0.75rem, 3vw, 1.5rem);
}

.content-section .container > *:last-child {
    margin-bottom: 0;
}

.content-section--alt {
    /* light neutral tint so white cards and rounded corners stand out */
    background: #f6f8fb;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.two-column {
    display: grid;
    gap: 2.5rem;
}

.rich-text h2 {
    margin-top: 2.5rem;
}

.rich-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.rich-text li + li {
    margin-top: 0.5rem;
}

.dog-gallery {
    display: grid;
    gap: 1.75rem;
}

.dog-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.dog-card--public {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dog-card--public:hover,
.dog-card--public:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.dog-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.dog-card__image {
    width: 100%;
    height: clamp(240px, 40vw, 320px);
    object-fit: cover;
}

.dog-card__status {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(8, 17, 27, 0.35);
}

.dog-card__body {
    padding: 1.75rem 1.75rem 1.9rem;
    display: grid;
    gap: 0.85rem;
    flex-grow: 1;
    grid-auto-rows: min-content;
    align-content: space-between;
}

.dog-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.dog-card__number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.dog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.dog-card__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}





.dog-card__chips li {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 122, 82, 0.2);
    background: rgba(45, 122, 82, 0.08);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    color: #21573a;
}





.dog-card__summary {\r\n    margin-bottom: 0;\r\n}\r\n\r\n.dog-card__location-row {\r\n    margin-top: 0.85rem;\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    gap: 0.5rem;\r\n    align-items: center;\r\n}\r\n\r\n.dog-card__foster-location {\r\n    display: inline-flex;\r\n    align-items: center;\r\n    gap: 0.45rem;\r\n    padding: 0.4rem 0.85rem;\r\n    border-radius: 0.85rem;\r\n    background: linear-gradient(135deg, rgba(33, 87, 58, 0.18), rgba(33, 87, 58, 0.05));\r\n    border: 1px solid rgba(33, 87, 58, 0.3);\r\n    font-size: 0.88rem;\r\n    font-weight: 600;\r\n    color: #21573a;\r\n}\r\n\r\n.dog-card__distance {\r\n    display: inline-flex;\r\n    align-items: center;\r\n    padding: 0.35rem 0.75rem;\r\n    border-radius: 999px;\r\n    border: 1px solid rgba(37, 99, 235, 0.2);\r\n    background: rgba(37, 99, 235, 0.1);\r\n    font-size: 0.85rem;\r\n    font-weight: 600;\r\n    color: #1f2937;\r\n    white-space: nowrap;\r\n}\r\n\r\n
.newsletter-list {
    display: grid;
    gap: 1rem;
}

.newsletter-card {
    padding: 1.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(140deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.85));
    display: grid;
    gap: 1.35rem;
    box-shadow: 0 18px 36px rgba(15, 31, 43, 0.16);
    color: #253143;
    backdrop-filter: blur(4px);
}

.newsletter-card h3 {
    font-size: 1.32rem;
    color: #1f2b3a;
}

.newsletter-card p {
    color: rgba(54, 65, 82, 0.9);
    line-height: 1.75;
    font-size: 1.02rem;
}

.newsletter-card em {
    color: rgba(71, 85, 105, 0.85);
    font-style: normal;
    font-size: 0.95rem;
}





.newsletter-card__actions {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.newsletter-card__actions .btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
    font-weight: 600;
    background: linear-gradient(135deg, #fefefe, #eff6ff);
    color: #1e3a8a;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.newsletter-card__actions .btn:hover,
.newsletter-card__actions .btn:focus {
    background: linear-gradient(135deg, #eaf2ff, #dbeafe);
    color: #1e3a8a;
}

.newsletter-card__actions img {
    width: 150px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-card__actions img:hover,
.newsletter-card__actions img:focus {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.newsletter-card__actions .btn:hover,
.newsletter-card__actions .btn:focus {
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    color: #1e3a8a;
}

.newsletter-card__actions img {
    width: 150px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(226, 232, 240, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-card__actions img:hover,
.newsletter-card__actions img:focus {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.38);
}

@media (min-width: 680px) {
    .newsletter-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.store-grid {
    display: grid;
    gap: 1.5rem;
}

.store-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.store-card--lizzy {
    background: linear-gradient(145deg, rgba(45, 122, 82, 0.08), rgba(244, 162, 89, 0.14));
    border: 1px solid rgba(45, 122, 82, 0.25);
    box-shadow: 0 18px 44px rgba(23, 34, 45, 0.12);
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.store-card--lizzy .store-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(45, 122, 82, 0.1);
}

.store-card--lizzy .store-card__media img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: var(--radius-sm);
}

.store-card--lizzy .store-card__body {
    display: grid;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .store-card--lizzy {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .store-card--lizzy .store-card__body {
        justify-items: center;
    }

    .store-card--lizzy .store-card__body p {
        text-align: left;
    }
}

.partner-grid {
    display: grid;
    gap: 1rem;
}

.partner-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.partner-card--lizzy {
    background: linear-gradient(160deg, rgba(45, 122, 82, 0.1), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(45, 122, 82, 0.25);
    box-shadow: 0 16px 36px rgba(23, 34, 45, 0.14);
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.partner-card--lizzy .partner-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(45, 122, 82, 0.1);
}

.partner-card--lizzy .partner-card__media img {
    max-width: 120px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.partner-card--lizzy .partner-card__body {
    display: grid;
    gap: 0.75rem;
}

.partner-card--lizzy .btn {
    justify-self: start;
}

@media (max-width: 720px) {
    .partner-card--lizzy {
        grid-column: auto;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partner-card--lizzy .partner-card__body {
        justify-items: center;
    }

    .partner-card--lizzy .btn {
        justify-self: center;
    }
}

.partner-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.5rem;
}

#footer {
    background: var(--color-footer);
    color: #cbd5e1;
    padding: 3.5rem 0 2.5rem;
}

#footer a {
    color: #e2e8f0;
}

#footer a:hover,
#footer a:focus {
    color: #fff;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-icons {
    display: flex;
    gap: 0.85rem;
    padding: 0;
    list-style: none;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-icons a:hover,
.footer-icons a:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.footer-icons img {
    width: 24px;
    height: 24px;
}

.iframe-wrapper {
    position: relative;
    padding: 0;            /* remove aspect-ratio padding that created blank space */
    height: auto;
    overflow: visible;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.iframe-wrapper iframe {
    position: static;      /* allow natural flow for dynamic height */
    display: block;
    width: 100%;
    height: auto;          /* JotForm script will set explicit height */
    min-height: 100vh;     /* occupy full viewport height as a baseline */
    border: 0;
}

@media (min-width: 640px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }

    .mission__facts {
        gap: 1.2rem;
    }

    .care-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .announcement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsletter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dog-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .brand__text {
        display: grid;
        gap: 0.3rem;
    }

    .nav-toggle {
        display: none;
    }

    .site-header__inner {
        align-items: center;
    }

    .site-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: 0;
        flex: 1;
    }

    .site-nav ul {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex: 1;
        flex-wrap: nowrap;
        gap: clamp(0.75rem, 1.25vw, 1.5rem);
    }

    .site-nav a {
        padding: 0.55rem 0.85rem;
        white-space: nowrap;
    }

    .site-nav__cta {
        margin-left: 0;
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .announcement-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dog-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
.dog-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: clamp(320px, 60vh, 520px);
    display: flex;
    align-items: flex-end;
}

.dog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 17, 27, 0.75) 0%, rgba(8, 17, 27, 0.9) 65%, rgba(8, 17, 27, 1) 100%);
}

.dog-hero__content {
    position: relative;
    padding: clamp(3rem, 8vw, 4.5rem) 1.5rem;
    display: grid;
    gap: 1rem;
    max-width: 900px; /* allow the header area to fill more space */
    width: 100%;
}

/* Keep store buttons compact and not full-width */
.store-card .btn {
    align-self: start;            /* override .card .btn stretch */
    justify-self: start;
    width: auto;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .store-card .btn { white-space: normal; }
}

/* Ensure dog hero headings are high-contrast over the overlay */
.dog-hero__content h1,
.dog-hero__content h2,
.dog-hero__content h3 {
    color: #ffffff;
}

/* Intro layout with circular avatar next to header details */
.dog-hero__intro {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start; /* align avatar top with text top */
    gap: clamp(0.9rem, 3vw, 1.25rem);
}

.dog-hero__avatar {
    width: clamp(120px, 18vw, 180px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 38px rgba(12, 23, 34, 0.35);
}

.dog-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-hero__text {
    display: grid;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .dog-hero__intro { grid-template-columns: 1fr; }
    .dog-hero__avatar { margin-inline: auto; }
}

.dog-hero__status {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    width: fit-content;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.dog-hero__legacy {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.dog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dog-detail {
    display: grid;
    gap: 2.5rem;
}

.dog-detail__primary {
    display: grid;
    gap: 1.5rem;
}

.dog-detail__meta {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1.25rem;
}

.dog-detail__meta dl {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.dog-detail__meta-item {
    display: grid;
    gap: 0.25rem;
}

.dog-detail__meta-item dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

.dog-detail__meta-item dd {
    margin: 0;
    font-weight: 600;
    color: #14202b;
}

.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.dog-gallery-thumb {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dog-gallery-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.dog-gallery-thumb:hover,
.dog-gallery-thumb:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dog-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 17, 27, 0.88);
    display: grid;
    place-items: center;
    padding: 2rem;
    z-index: 2000;
}

.dog-lightbox__figure {
    max-width: min(900px, 100%);
    width: 100%;
    display: grid;
    gap: 0.75rem;
    color: #e2e8f0;
}

.dog-lightbox__figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(10, 20, 30, 0.5);
}

.dog-lightbox__caption {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
    min-height: 1.5em;
}

.dog-lightbox__nav,
.dog-lightbox__close {
    position: absolute;
    border: none;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.dog-lightbox[hidden] {
    display: none !important;
}

.dog-lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
}

.dog-lightbox__nav--prev {
    left: 1.25rem;
}

.dog-lightbox__nav--next {
    right: 1.25rem;
}

.dog-lightbox__nav:hover,
.dog-lightbox__nav:focus,
.dog-lightbox__close:hover,
.dog-lightbox__close:focus {
    background: rgba(15, 23, 42, 0.75);
}

@media (min-width: 900px) {
    .dog-detail {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
    }

    .dog-gallery-thumb img {
        height: 200px;
    }
}
.dog-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.dog-hero__back:hover,
.dog-hero__back:focus {
    color: #ffffff;
}

.dog-card__image-wrapper::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(6, 19, 28, 0) 0%, rgba(6, 19, 28, 0.7) 65%, rgba(6, 19, 28, 0.92) 100%);
    pointer-events: none;
}

.site-header {
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(28, 38, 50, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 2.5rem);
    padding: 0.85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: clamp(68px, 8vw, 96px);
    width: auto;
    display: block;
    margin-bottom: -14px;
}

@media (max-width: 640px) {
    .brand img {
        height: 56px;
        margin-bottom: -6px;
    }
}

.nav-toggle {
    border: 1px solid rgba(28, 38, 50, 0.12);
    background: var(--color-surface);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus {
    box-shadow: var(--shadow-sm);
}

.nav-toggle__line {
    position: relative;
    width: 20px;
    height: 2px;
    background: #12223b;
    border-radius: 999px;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #12223b;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-toggle__line::before {
    top: -6px;
}

.nav-toggle__line::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line::after {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(28, 38, 50, 0.08);
    box-shadow: var(--shadow-sm);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.5rem 1.3rem;
    display: grid;
    gap: 0.5rem;
}

.site-nav a {
    display: block;
    padding: 0.75rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f1f2f;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus {
    background: rgba(45, 122, 82, 0.14);
    color: var(--color-primary-dark);
}

.site-nav__cta {
    background: var(--color-primary);
    color: #fff !important;
    box-shadow: var(--shadow-sm);
}

.site-nav__cta:hover,
.site-nav__cta:focus {
    background: var(--color-primary-dark);
}

.site-nav__cta--secondary {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8 !important;
    border: 1px solid rgba(37, 99, 235, 0.24);
    box-shadow: none;
}

.site-nav__cta--secondary:hover,
.site-nav__cta--secondary:focus {
    background: rgba(37, 99, 235, 0.18);
    color: #1e3a8a !important;
}

@media (max-width: 899px) {
    .site-nav ul {
        text-align: left;
    }
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: 0;
        flex: 1;
    }

    .site-nav ul {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex: 1;
        flex-wrap: nowrap;
        gap: clamp(0.75rem, 1.25vw, 1.5rem);
    }

    .site-nav a {
        padding: 0.55rem 0.85rem;
        white-space: nowrap;
    }

    .site-nav__cta {
        margin-left: 0;
        padding: 0.55rem 1.35rem;
    }
}


    .fb-slideout {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1200;
    pointer-events: none;
}

.fb-slideout__tab,
.fb-slideout__panel {
    pointer-events: auto;
}

.fb-slideout__tab {
    border: none;
    background: #1f3b4d;
    color: #fff;
    font-weight: 600;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0.85rem 0.75rem;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(15, 31, 43, 0.28);
    transition: background 0.2s ease;
    letter-spacing: 0.08em;
}

.fb-slideout__tab:hover,
.fb-slideout__tab:focus {
    background: #25485f;
}

.fb-slideout__panel {
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 20px 40px rgba(15, 31, 43, 0.25);
    width: min(320px, 90vw);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease;
    overflow: hidden;
}

.fb-slideout.is-open .fb-slideout__panel {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.support-float {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(24, 50, 57, 0.92);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(16, 27, 36, 0.28);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    max-width: calc(100% - 3rem);
}

.support-float--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

.support-float__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #183239;
    border-radius: 50%;
    font-size: 0.9rem;
}

.support-float__text {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.support-float__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    border-radius: 50%;
    border: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.support-float:hover,
.support-float:focus {
    background: #f28b32;
    color: #111827;
}

.support-float__close:hover,
.support-float__close:focus {
    color: #ffffff;
}

@media (max-width: 768px) {
    .support-float {
        left: 1rem;
        bottom: 1rem;
        padding: 0.5rem 0.8rem;
    }

    .support-float__text {
        font-size: 0.9rem;
    }

    .support-float__icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero__social-links {
        gap: 0.5rem;
    }
    .hero__social-link {
        width: 40px;
        height: 40px;
    }
    .hero__social-link img {
        width: 22px;
        height: 22px;
    }
}







.interior-hero h1,
.interior-hero h2,
.interior-hero h3 {
    color: #ffffff;
}
/* Support Us page hero */
.interior-hero--support {
    background: linear-gradient(140deg, rgba(20, 24, 32, 0.9), rgba(55, 65, 81, 0.7)),
        url("../images/SupportUs.jpg") center/cover no-repeat;
}


/* Featured dog sticker on the Meet Our Dogs button */
.hero__item--dogs { position: relative; overflow: visible; --hero-dog-sticker: clamp(64px, 12vw, 96px); padding-right: calc(1.35rem + (var(--hero-dog-sticker) * 0.35)); padding-bottom: 0.85rem; }
.hero__item--donate { position: relative; overflow: visible; }
.hero__item--apply { position: relative; overflow: visible; }
.hero__item--foster { position: relative; overflow: visible; }
.hero__item--volunteer { position: relative; overflow: visible; }
.hero__item--alex { position: relative; overflow: visible; }
/* Place the featured image near the right edge without causing horizontal scroll */
.hero__feature { position: absolute; top: 50%; right: -6px; transform: translate(24%,-50%); --sticker-size: var(--hero-dog-sticker, clamp(64px, 12vw, 96px)); width: var(--sticker-size); height: var(--sticker-size); border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,0.9); box-shadow: 0 16px 34px rgba(12,23,34,0.28); display: grid; place-items: center; z-index: 0; }
.hero__feature img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero__feature-label { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: transparent; color: #ffffff; border: 0; border-radius: 0; font-size: 0.75rem; font-weight: 700; padding: 0; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.6); z-index: 1; }

/* On narrow screens, tuck the sticker onto the top-right corner
   to free up button text space without causing horizontal scroll */
@media (max-width: 640px) {
    .hero__item--dogs {
        padding-right: 1.35rem;
        padding-bottom: calc(1rem + var(--hero-dog-sticker) * 0.12);
    }
    .hero__feature {
        top: -12px;
        right: -10px;
        transform: none;
    }
    .hero__feature-label {
        top: calc(100% + 4px);
        font-size: 0.65rem;
    }
}


/* Keep the Jotform lightbox above the sticky site header */
#JotformAgent-0199e2e0473a7f6099d097b4c303a44fc208 .ai-agent-modal-view,
#JotformAgent-0199e2e0473a7f6099d097b4c303a44fc208 .ai-agent-modal-content {
    z-index: 2000 !important;
}




















