/* ─────────────────────────────────────────────────────────────
   Africanis Assistance Network – Public Site CSS
   Design: Charcoal & Sand · Cormorant + DM Sans
───────────────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --sand: #d4bc94;
    --sand-lt: #ede0c8;
    --sand-dk: #b89d70;
    --charcoal: #2c2e35;
    --charcoal-lt: #3f4250;
    --charcoal-xs: #555a6a;
    --off-white: #f7f2eb;
    --warm-white: #fdfaf5;
    --accent: #c4a96b;
    --text: #1e1f24;
    --muted: #6b6550;
}

body {
    font-family: 'DM Sans',sans-serif;
    background: #e8e2d9;
    padding: 0;
    min-height: 100vh;
}

/* ───────────────── Site wrapper ───────────────── */
.device {
    max-width: 900px;
    margin: 0 auto;
    background: var(--warm-white);
    overflow: hidden;
}

/* ───────────────── Navbar ───────────────── */
.nav {
    background: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .9rem 1.5rem .9rem 2rem;
    border-bottom: 3px solid var(--sand);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-family: 'Cormorant Garamond',Georgia,serif;
    color: var(--sand);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
}

    .nav-brand span {
        color: rgba(212,188,148,.5);
        font-weight: 400;
        font-size: .85em;
    }

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

    .nav-links a {
        color: rgba(255,255,255,.7);
        font-size: .75rem;
        font-weight: 500;
        letter-spacing: .06em;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--sand)
        }

.nav-cta {
    background: var(--sand);
    color: var(--charcoal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem 1.1rem;
    border: none;
    cursor: pointer;
    clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    transition: background .2s;
}

    .nav-cta:hover {
        background: var(--sand-lt);
        color: var(--charcoal);
        text-decoration: none
    }

/* ── Hamburger toggle (hidden on wide nav) ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem .25rem .25rem .9rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sand);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
    transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive breakpoint ── */
@media (max-width: 750px) {

    .nav {
        flex-wrap: wrap;
        padding: .75rem 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Links collapse into a full-width drawer below the bar */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        order: 10; /* pushes below brand + donate + toggle row */
        border-top: 1px solid rgba(212,188,148,.15);
        margin-top: .5rem;
        padding-top: .5rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: .65rem .25rem;
        border-bottom: 1px solid rgba(212,188,148,.08);
        font-size: .8rem;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* ───────────────── Adopt button (dog card) ───────────────── */
.btn-adopt {
    display: block;
    padding: .6rem 1rem;
    margin-top: .85rem;             /* space between border-top and button */
    background: var(--charcoal);
    color: var(--sand);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
    clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}

    .btn-adopt:hover {
        background: var(--sand);
        color: var(--charcoal);
        text-decoration: none;
    }

/* ───────────────── Hero ───────────────── */
.hero {
    background: var(--charcoal);
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr 380px;
    position: relative;
    overflow: hidden;
}

.hero-left {
    padding: 4.5rem 3rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand);
    opacity: .8;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Cormorant Garamond',Georgia,serif;
    color: var(--off-white);
    font-size: clamp(2.4rem,4vw,3.8rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: .5rem;
}

    .hero-title em {
        color: var(--sand);
        font-style: italic
    }

.hero-npc {
    font-size: .72rem;
    color: rgba(212,188,148,.5);
    margin-bottom: 1.5rem;
    letter-spacing: .05em;
}

.hero-tagline {
    font-family: 'Cormorant Garamond',serif;
    font-style: italic;
    color: var(--sand-lt);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--sand);
    padding-left: 1rem;
}

.hero-btns {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

/* primary/ghost hero buttons */
.btn-primary-hero {
    background: var(--sand);
    color: var(--charcoal);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .65rem 1.8rem;
    border: none;
    cursor: pointer;
    clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
    transition: background .2s;
    text-decoration: none;
    display: inline-block;
}

    .btn-primary-hero:hover {
        background: var(--sand-lt);
        color: var(--charcoal);
        text-decoration: none
    }

.btn-ghost-hero {
    background: transparent;
    color: var(--sand);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .65rem 1.8rem;
    border: 1px solid rgba(212,188,148,.4);
    cursor: pointer;
    transition: border-color .2s,color .2s;
    text-decoration: none;
    display: inline-block;
}

    .btn-ghost-hero:hover {
        border-color: var(--sand);
        color: var(--sand-lt);
        text-decoration: none
    }

/* hero right decorative area (page variant) */
.hero-right {
    position: relative;
    background: var(--sand);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    clip-path: polygon(40px 0,100% 0,100% 100%,0% 100%);
    overflow: hidden;
}

    .hero-right::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,var(--sand-dk) 0%,var(--sand) 60%,var(--sand-lt) 100%);
    }

.dog-svg {
    position: relative;
    z-index: 2;
    width: 260px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    margin-bottom: 0;
    align-self: flex-end;
    margin-bottom: 3rem;
    margin-left: 3.5rem;
}

.hero-geo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(44,46,53,.15);
    transform: rotate(12deg);
    z-index: 1;
}

.hero-geo2 {
    position: absolute;
    bottom: 60px;
    left: 30px;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(44,46,53,.1);
    transform: rotate(-8deg);
    z-index: 1;
}

/* ───────────────── Stats band ───────────────── */
.stats-band {
    background: var(--charcoal-lt);
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.stat-item {
    padding: 1.4rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.06);
}

    .stat-item:last-child {
        border-right: none
    }

.stat-num {
    font-family: 'Cormorant Garamond',serif;
    color: var(--sand);
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.stat-lbl {
    color: rgba(255,255,255,.5);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ───────────────── Section ───────────────── */
.section {
    padding: 4rem 3.5rem
}

.section-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--sand);
    padding: .25rem .8rem;
    margin-bottom: 1rem;
    clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}

.section-title {
    font-family: 'Cormorant Garamond',serif;
    color: var(--charcoal);
    font-size: clamp(1.8rem,3vw,2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .5rem;
}

    .section-title em {
        color: var(--sand-dk);
        font-style: italic
    }

.section-sub {
    color: var(--muted);
    font-size: .95rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* ───────────────── Filter bar ───────────────── */
.filters {
    margin-bottom: 2.5rem
}

.filter-form {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.filter-input,
.filter-select {
    padding: .55rem 1rem;
    border: 1px solid rgba(180,160,120,.4);
    font-family: inherit;
    font-size: .9rem;
    background: var(--warm-white);
    color: var(--text);
    flex: 1 1 160px;
}

    .filter-input:focus,
    .filter-select:focus {
        outline: none;
        border-color: var(--sand-dk)
    }

/* ───────────────── Dog Grid ───────────────── */
.dog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.25rem;
}

.dog-card {
    background: var(--warm-white);
    border: 1px solid rgba(180,160,120,.2);
    overflow: hidden;
    transition: transform .25s,box-shadow .25s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    container-type: inline-size;   /* ← enables container queries for children */
}

    .dog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(44,46,53,.15);
        text-decoration: none;
        color: inherit;
    }

.dog-card-img {
    height: 180px;
    background: var(--sand-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .dog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s;
    }

.dog-card:hover .dog-card-img img {
    transform: scale(1.04)
}

.dog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: var(--sand-dk);
}

.dog-card-num {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-family: 'Cormorant Garamond',serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(44,46,53,.12);
    line-height: 1;
    pointer-events: none;
}

.dog-card-status {
    position: absolute;
    top: .6rem;
    right: .6rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .2rem .6rem;
}

/* Status colours */
.status-available {
    background: #2c6e3f;
    color: #fff
}

.status-pending {
    background: var(--sand-dk);
    color: var,--charcoal)
}

.status-adopted {
    background: var(--charcoal);
    color: var(--sand)
}

.status-onhold {
    background: var(--charcoal-xs);
    color: #fff
}

.status-medical {
    background: #8b2020;
    color: #fff
}

/* ───────────────── Dog card body ───────────────── */
.dog-card-body {
    padding: 1rem 1.1rem .85rem;
    flex: 1;                        /* fills available height, pinning footer below */
}

/* ───────────────── Dog card footer ───────────────── */
.dog-card-footer {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid rgba(180,160,120,.13);
    margin-top: auto;
}

/* ───────────────── Dog card body ───────────────── */
.dog-card-body {
    padding: 1rem 1.1rem 1.2rem
}

.dog-name {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: .15rem;
}

.dog-card-body h3 {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: .15rem;
}

.dog-meta, .breed {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: .75rem
}

.dog-tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .5rem
}

.tag {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    background: var(--off-white);
    color: var(--charcoal-xs);
    border: 1px solid rgba(180,160,120,.3);
}

/* ───────────────── Mission section ───────────────── */
.mission {
    background: var(--charcoal);
    padding: 3.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-quote {
    font-family: 'Cormorant Garamond',serif;
    font-style: italic;
    color: var(--sand-lt);
    font-size: clamp(1.4rem,2.5vw,2rem);
    line-height: 1.35;
    border-left: 3px solid var(--sand);
    padding-left: 1.5rem;
}

.mission-text {
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    line-height: 1.8;
}

    .mission-text strong {
        color: var(--sand);
        font-weight: 600
    }

/* ───────────────── Steps section ───────────────── */
.steps-section {
    background: var(--off-white);
    padding: 4rem 3.5rem
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.step {
    padding: 1.5rem 1.25rem;
    background: var(--warm-white);
    border: 1px solid rgba(180,160,120,.2);
    position: relative
}

.step-num {
    font-family: 'Cormorant Garamond',serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(212,188,148,.25);
    line-height: 1;
    position: absolute;
    top: .5rem;
    right: .75rem;
}

.step-icon {
    font-size: 1.4rem;
    margin-bottom: .75rem;
    display: block
}

.step-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: .4rem;
    letter-spacing: .03em
}

.step-desc {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.6
}

/* ───────────────── Contact band ───────────────── */
.contact-band {
    background: var(--sand);
    padding: 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-name {
    font-family: 'Cormorant Garamond',serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.contact-role {
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--charcoal-xs);
    margin-bottom: .5rem
}

.contact-detail {
    font-size: .9rem;
    color: var(--charcoal-lt);
    margin-top: .25rem
}

    .contact-detail strong {
        color: var(--charcoal);
        font-weight: 600
    }

.contact-right {
    text-align: right
}

.contact-logo-text {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--charcoal);
    line-height: 1.3;
}

.contact-npc {
    font-size: .65rem;
    color: var(--charcoal-xs);
    letter-spacing: .08em;
    margin-top: .2rem
}

/* ───────────────── Donate band ───────────────── */
.donate-band {
    background: var(--charcoal);
    border-top: 3px solid var(--sand);
    border-bottom: 1px solid rgba(212,188,148,.1);
    padding: 3.5rem 3.5rem;
}

/* ── Intro header: title row, then description row ── */
.donate-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.donate-intro-right {
    padding-bottom: .15rem;
}

.donate-eyebrow {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--sand);
    padding: .25rem .8rem;
    margin-bottom: 1rem;
    clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}

.donate-title {
    font-family: 'Cormorant Garamond',serif;
    color: var(--off-white);
    font-size: clamp(1.8rem,3vw,2.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
}

    .donate-title em {
        color: var(--sand);
        font-style: italic;
    }

.donate-sub {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    line-height: 1.8;
    max-width: 540px;   /* prevent the text stretching too wide at full band width */
    margin-bottom: .85rem;
}

.donate-npc {
    font-size: .68rem;
    color: var(--sand);
    opacity: .4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Separator ── */
.donate-sep {
    height: 1px;
    background: rgba(212,188,148,.12);
    margin-bottom: 2.25rem;
}

/* ── Equal-width method cards ── */
.donate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.donate-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(212,188,148,.18);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    container-type: inline-size;   /* ← enables container queries for children */
}

.donate-card-type {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212,188,148,.15);
}

.donate-card--eft         .donate-card-type { color: var(--sand); }
.donate-card--quicket     .donate-card-type { color: #5cc47a; }
.donate-card--backabuddy  .donate-card-type { color: #e8a44a; }

/* EFT card rows */
.donate-card-rows {
    flex: 1;
}

.donate-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(212,188,148,.07);
}

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

.donate-card-key {
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    flex-shrink: 0;
}

.donate-card-val {
    font-size: .88rem;
    font-weight: 600;
    color: var(--sand-lt);
    text-align: right;
    word-break: break-all;
}

.donate-card-note {
    margin-top: 1rem;
    font-size: .7rem;
    color: rgba(255,255,255,.28);
    font-style: italic;
    line-height: 1.5;
}

/* Online platform cards */
.donate-card-desc {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1;
}

.donate-card-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--sand);
    color: var(--charcoal);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .5rem 1.25rem;
    text-decoration: none;
    clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
    transition: background .2s;
}

    .donate-card-btn:hover {
        background: var(--sand-lt);
        color: var(--charcoal);
        text-decoration: none;
    }

/* ── Two-column donate layout: EFT left, online methods right ── */
.donate-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

/* Each column stacks its cards vertically */
.donate-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

    .donate-band {
        padding: 2.5rem 2rem;
    }

    .donate-intro {
        margin-bottom: 1.75rem;
    }
}

/* ───────────────── Footer ───────────────── */
.footer {
    background: var(--charcoal);
    padding: 1.5rem 3.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 2rem;
    row-gap: .65rem;
}

.footer-brand {
    grid-column: 1;
    grid-row: 1;
    font-family: 'Cormorant Garamond',serif;
    color: var(--sand);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-links {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 1.5rem;
    list-style: none;          /* ← removes the bullets */
}

    .footer-links a {
        color: rgba(255,255,255,.4);
        font-size: .72rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color .2s;
    }

    .footer-links a:hover {
        color: var(--sand);
    }

.footer-copy {
    grid-column: 1 / -1; /* spans both columns */
    grid-row: 2;
    color: rgba(255,255,255,.25);
    font-size: .68rem;
    padding-top: .65rem;
    text-align: center;
}

/* ───────────────── Contact Page ───────────────── */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.cf-group {
    margin-bottom: 1.4rem;
}

.cf-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--charcoal-xs);
    margin-bottom: .45rem;
}

.cf-input,
.cf-textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid rgba(180,160,120,.4);
    background: var(--off-white);
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .2s;
}

    .cf-input:focus,
    .cf-textarea:focus {
        outline: none;
        border-color: var(--sand-dk);
    }

.cf-textarea {
    resize: vertical;
    min-height: 140px;
}

.cf-error {
    font-size: .75rem;
    color: #8b2020;
    margin-top: .3rem;
    display: block;
}

.contact-info-panel {
    background: var(--charcoal);
    padding: 2rem 1.75rem;
}

    .contact-info-panel .contact-role {
        color: var(--sand);
        opacity: .7;
    }

    .contact-info-panel .contact-name {
        color: var(--sand-lt);
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .contact-info-panel .contact-detail {
        color: rgba(255,255,255,.55);
        border-top: 1px solid rgba(212,188,148,.12);
        padding-top: .75rem;
        margin-top: .75rem;
    }

    .contact-info-panel .contact-detail strong {
        color: var(--sand);
    }

.contact-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-info-tagline {
    margin-top: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: .95rem;
    color: rgba(255,255,255,.3);
}

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

/* Responsive tweaks */
@media (max-width:900px) {
    .dog-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .dog-grid--showcase .dog-card:nth-child(3) {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

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

    .hero-right {
        display: none;
    }
}

@media (max-width:600px) {
    .dog-grid {
        grid-template-columns: 1fr
    }

    .dog-grid--showcase .dog-card:nth-child(2),
    .dog-grid--showcase .dog-card:nth-child(3) {
        display: none;
    }

    .nav-links {
        display: none
    }


    .stats-band {
        grid-template-columns: repeat(2,1fr)
    }

    .steps-grid {
        grid-template-columns: 1fr
    }
}

.contact-strapline {
    margin-top: .6rem;
    font-size: .7rem;
    color: var(--charcoal-xs);
    font-style: italic;
}

/* ───────────────── Privacy Policy ───────────────── */
.privacy-wrap {
    padding: 3.5rem 3.5rem;
    background: var(--warm-white);
}

.privacy-lead {
    max-width: 720px;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(180,160,120,.25);
    font-size: .95rem;
    color: var(--charcoal-lt);
    line-height: 1.8;
}

.privacy-body {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.privacy-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(180,160,120,.2);
}

.privacy-section p {
    font-size: .9rem;
    color: var(--charcoal-lt);
    line-height: 1.85;
    margin-bottom: .75rem;
}

    .privacy-section p:last-child {
        margin-bottom: 0;
    }

.privacy-section ul {
    padding-left: 1.35rem;
    margin: .5rem 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.privacy-section li {
    font-size: .9rem;
    color: var(--charcoal-lt);
    line-height: 1.75;
}

.privacy-section a {
    color: var(--sand-dk);
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .privacy-section a:hover {
        color: var(--charcoal);
    }

@media (max-width: 700px) {
    .privacy-wrap {
        padding: 2.5rem 2rem;
    }
}

/* ───────────────── Dog grid empty state ───────────────── */
.dog-empty {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px dashed rgba(180,160,120,.3);
    background: var(--off-white);
}

.dog-empty-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: .6;
}

.dog-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.dog-empty-sub {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto .5rem;
}

/* ───────────────── Dog grid load controls ───────────────── */
.dog-load-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    padding: .6rem 2rem;
    background: var(--charcoal);
    color: var(--sand);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
    transition: background .2s, color .2s;
}

    .btn-view-all:hover {
        background: var(--sand);
        color: var(--charcoal);
        text-decoration: none;
    }

/* ───────────────── Dogs listing pagination ───────────────── */
.dogs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 2.5rem;
}

.dogs-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 .5rem;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    color: var(--charcoal);
    background: transparent;
    border: 1.5px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}

    .dogs-page-link:hover:not(.is-active):not(.is-disabled) {
        background: var(--charcoal);
        color: var(--sand);
        text-decoration: none;
    }

    .dogs-page-link.is-active {
        background: var(--charcoal);
        color: var(--sand);
    }

    .dogs-page-link.is-disabled {
        opacity: .3;
        cursor: default;
    }

/* ───────────────── More button (dog card) ───────────────── */
.btn-more {
    display: inline-block;
    margin-top: .85rem;
    font-family: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    background: transparent;
    color: var(--charcoal-xs);
    border: 1px solid rgba(180,160,120,.5);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

    .btn-more:hover {
        background: var(--sand);
        color: var(--charcoal);
        border-color: var(--sand-dk);
    }

/* ───────────────── Dog detail modal ───────────────── */
.dog-modal-overlay {
    visibility: hidden;
    pointer-events: none;
    display: flex;              /* always flex — centring is always active */
    position: fixed;
    inset: 0;
    background: rgba(30,31,36,.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

    .dog-modal-overlay.is-open {
        visibility: visible;
        pointer-events: auto;
    }

.dog-modal {
    background: var(--warm-white);
    max-width: 620px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem 2rem 2.25rem;
    border-top: 3px solid var(--sand);
}

.dog-modal-close {
    position: absolute;
    top: .8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--charcoal-xs);
    cursor: pointer;
    line-height: 1;
    padding: .2rem .4rem;
    transition: color .2s;
}

    .dog-modal-close:hover {
        color: var(--charcoal);
    }

.dog-modal-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.dog-modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.dog-modal-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dog-modal-desc {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.75;
    border-top: 1px solid rgba(180,160,120,.2);
    padding-top: 1rem;
    margin-top: .25rem;
}

/* ───────────────── Adoption Application Page ───────────────── */
.apply-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color .2s;
}

    .apply-back:hover {
        color: var(--charcoal);
        text-decoration: none;
    }

.apply-notice {
    background: var(--off-white);
    border-left: 3px solid var(--sand-dk);
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
}

.apply-notice-eyebrow {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sand-dk);
    margin-bottom: .45rem;
}

.apply-notice p {
    font-size: .87rem;
    color: var(--charcoal-lt);
    line-height: 1.75;
}

    .apply-notice strong {
        color: var(--charcoal);
    }

.apply-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apply-step {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.apply-step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sand);
    line-height: 1;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    padding-top: .05rem;
}

.apply-step-text {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
}

    .apply-step-text strong {
        display: block;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--sand-lt);
        margin-bottom: .2rem;
    }
/* ───────────────── Meet the Family – Volunteer grid ───────────────── */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.volunteer-card {
    background: var(--off-white);
    border: 1px solid var(--sand-lt);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.volunteer-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sand);
    margin-bottom: .25rem;
}

.volunteer-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--sand-lt);
    border: 3px solid var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: .25rem;
}

.volunteer-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}

.volunteer-tagline {
    font-style: italic;
    color: var(--sand-dk);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.volunteer-desc {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.7;
    margin-top: .25rem;
}
