/* ---------- Tokens ---------- */
:root {
    --turquoise: #8fe3d9;
    --turquoise-soft: #ffb4c6;
    --turquoise-dark: #1f7a72;
    --pink: #ffb4c6;
    --pink-soft: #ffeff3;
    --pink-dark: #e8748f;
    --blue: #bfd9f7;
    --blue-soft: #eef4fd;
    --blue-dark: #5b84b1;
    --ink: #1e2a38;
    --ink-soft: #5b6b7a;
    --paper: #fbfcfe;
    --black: #0b0d10;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --shadow-soft: 0 12px 30px rgba(31, 122, 114, 0.12);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--turquoise-dark);
    margin: 0 0 0.6rem;
}
.eyebrow-light {
    color: var(--pink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.btn-primary {
    background: var(--pink-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(232, 116, 143, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(232, 116, 143, 0.42);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--turquoise-dark);
}
.btn-ghost:hover {
    background: var(--turquoise-soft);
}

/* ---------- Header banner (black) ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--black);
    color: #fff;
}
.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.brand-accent {
    color: var(--pink);
}
.topnav {
    display: flex;
    gap: 1.6rem;
    font-size: 0.92rem;
    font-weight: 500;
}
.topnav a {
    opacity: 0.85;
}
.topnav a:hover {
    opacity: 1;
    color: var(--turquoise);
}
.topbar-cta {
    background: var(--turquoise);
    color: var(--black);
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}
.topbar-cta:hover {
    background: var(--pink);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.5rem 5rem;
    background: linear-gradient(
        180deg,
        var(--turquoise-soft) 0%,
        var(--paper) 100%
    );
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
}
.blob-turquoise {
    width: 320px;
    height: 320px;
    background: var(--turquoise);
    top: -120px;
    right: -90px;
}
.blob-pink {
    width: 220px;
    height: 220px;
    background: var(--pink);
    bottom: -90px;
    left: -70px;
    opacity: 0.5;
}
.blob-blue {
    width: 160px;
    height: 160px;
    background: var(--blue);
    top: 40%;
    right: 8%;
    opacity: 0.45;
}
.hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    font-weight: 900;
    margin: 0 0 1.1rem;
}
.underline-swirl {
    position: relative;
    color: var(--pink-dark);
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Stats strip ---------- */
.stats {
    background: var(--turquoise-dark);
    color: #fff;
    padding: 2.4rem 1.5rem;
}
.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat-num {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
}
.stat-label {
    font-size: 0.82rem;
    opacity: 0.85;
    font-weight: 400;
}

/* ---------- Section shell ---------- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.6rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 900;
    margin: 0 0 0.6rem;
}
.section-sub {
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}
.dog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(31, 122, 114, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-align: left;
    font-family: inherit;
    padding: 0;
}
.dog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(31, 122, 114, 0.18);
}
.dog-card:focus-visible {
    outline: 3px solid var(--turquoise-dark);
    outline-offset: 2px;
}
.dog-photo-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--blue-soft);
}
.dog-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dog-card-body {
    padding: 1rem 1.1rem 1.2rem;
}
.dog-card-body h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.dog-card-meta {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink-dark);
}
.tag.tag-blue {
    background: var(--blue-soft);
    color: var(--blue-dark);
}
.tag.tag-turquoise {
    background: var(--turquoise-soft);
    color: var(--turquoise-dark);
}

/* ---------- Stories ---------- */
.stories-section {
    background: var(--pink-soft);
    border-radius: var(--radius-lg);
}
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.story-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.story-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.story-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--turquoise);
    flex-shrink: 0;
}
.story-who {
    font-weight: 700;
    font-size: 0.95rem;
}
.story-who span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.story-quote {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}
.story-photo-full {
    border-radius: var(--radius-sm);
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(31, 122, 114, 0.12);
    padding: 1rem 1.2rem;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--turquoise-dark);
    margin-left: 1rem;
}
.faq-item[open] summary::after {
    content: "\2212";
}
.faq-item p {
    margin: 0.8rem 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, #01a0e1, #0065b4);
    color: #fff;
    margin: 2rem 1.5rem;
    border-radius: var(--radius-lg);
}
.cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.6rem;
    font-weight: 900;
}
.cta-text p {
    margin: 0;
    opacity: 0.9;
    max-width: 460px;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 16, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    z-index: 100;
}
.modal-overlay.open {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 13, 16, 0.6);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}
.modal-gallery {
    position: relative;
    background: var(--blue-soft);
}
.modal-photo {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--ink);
}
.modal-prev {
    left: 0.6rem;
}
.modal-next {
    right: 0.6rem;
}
.modal-dots {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}
.modal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}
.modal-dot.active {
    background: #fff;
}
.modal-info {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.modal-info h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
}
.modal-meta {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.modal-desc {
    margin: 0;
    line-height: 1.6;
    color: var(--ink);
    font-size: 0.95rem;
}
.modal-adopt {
    margin-top: 0.4rem;
    align-self: flex-start;
}

/* ---------- Footer ---------- */
footer {
    background: #fff;
    color: #fff;
    padding: 2.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 560px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}
.footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
.footer-fab-stack {
    display: flex;
    gap: 0.6rem;
}
.footer-img {
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .topnav {
        display: none;
    }
    .modal {
        grid-template-columns: 1fr;
    }
    .modal-photo {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        padding: 0.75rem 1rem;
    }
    .brand {
        font-size: 1rem;
    }
    .topbar-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
    .hero {
        padding: 3rem 1.1rem 3.5rem;
    }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
    .section {
        padding: 3rem 1.1rem;
    }
    .cta {
        margin: 1.5rem 1rem;
    }
    .cta-inner {
        padding: 2.2rem 1.4rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 1440px) {
    .section {
        padding: 6rem 1.5rem;
    }
    .hero {
        padding: 6rem 1.5rem 6.5rem;
    }
}
