﻿:root {
    --bg: #ffffff;
    --bg-soft: #f3f9ff;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-border: rgba(127, 191, 216, 0.42);
    --brand-teal: #0ea7a3;
    --brand-teal-deep: #0b8f9b;
    --brand-powder: #cfe9ff;
    --brand-powder-deep: #9fd0f6;
    --text: #163147;
    --text-soft: #4d708c;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-deep: 0 18px 44px rgba(82, 143, 173, 0.2);
    --shadow-card: 0 10px 28px rgba(76, 141, 176, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, #eaf7ff 0%, transparent 38%),
        radial-gradient(circle at 92% 20%, #dff2ff 0%, transparent 45%),
        linear-gradient(175deg, #ffffff 0%, #f4fbff 55%, #e8f6ff 100%);
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand span,
.btn {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.wrap {
    width: min(1200px, 100% - 2.25rem);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(142, 198, 224, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand span {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.menu-item {
    position: relative;
}

.main-nav a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.submenu-toggle:hover,
.menu-item.has-submenu:focus-within > .submenu-toggle {
    color: var(--text);
    background: rgba(163, 216, 244, 0.35);
}

.only-paws-link {
    background: linear-gradient(120deg, #4dc9d7, var(--brand-teal));
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(27, 153, 173, 0.32);
}

.submenu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 190px;
    list-style: none;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(142, 198, 224, 0.64);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 240;
}

.submenu li {
    width: 100%;
}

.submenu a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 0.56rem 0.7rem;
}

.menu-item.has-submenu:hover > .submenu,
.menu-item.has-submenu:focus-within > .submenu,
.menu-item.has-submenu.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.97rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(120deg, #4dc9d7, var(--brand-teal));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(27, 153, 173, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(142, 198, 224, 0.7);
    color: var(--text);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(137, 196, 225, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1c4566;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.04) brightness(1.03);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.35) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(230, 245, 255, 0.88) 78%, rgba(227, 243, 255, 0.96) 100%);
    z-index: 1;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 8.5rem;
    padding-bottom: 4.5rem;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(144, 198, 223, 0.7);
    color: var(--brand-teal-deep);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 5.6vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

h1 span {
    display: block;
}

h1 span:last-child {
    color: var(--brand-teal);
}

.hero-copy {
    margin-top: 1.2rem;
    max-width: 620px;
    font-size: clamp(1rem, 2vw, 1.17rem);
    color: #2f5674;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 0.8rem;
}

.hero-meta > div {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(149, 206, 231, 0.7);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow-card);
}

.hero-meta strong {
    font-size: 1.35rem;
    color: var(--brand-teal-deep);
}

.hero-meta span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.section {
    position: relative;
    padding: clamp(3.7rem, 6vw, 6rem) 0;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 72% 2%, rgba(172, 221, 245, 0.25), transparent 48%);
}

.section-heading {
    max-width: 670px;
}

.section-heading h2 {
    margin-top: 0.8rem;
    font-size: clamp(1.7rem, 4vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin-top: 0.9rem;
    color: var(--text-soft);
    font-size: 1.03rem;
}

.section-grid {
    display: grid;
    gap: 1.7rem;
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
}

.highlight-cards {
    display: grid;
    gap: 1rem;
}

.highlight {
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.highlight h3 {
    font-size: 1.25rem;
}

.highlight p {
    margin-top: 0.45rem;
    color: var(--text-soft);
}

.spectrum {
    padding-top: 2rem;
}

.cluster-controls {
    margin-top: 1.4rem;
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.cluster-btn {
    border: 1px solid rgba(151, 203, 228, 0.78);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cluster-btn.is-active {
    background: linear-gradient(120deg, var(--brand-powder), #bce4ff);
    color: #0f4b74;
    border-color: rgba(110, 179, 214, 0.85);
}

.cluster-count {
    margin-top: 0.8rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.pet-grid {
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pet-card {
    padding: 0.95rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(150, 206, 232, 0.72);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pet-card:hover {
    transform: translateY(-6px);
    border-color: rgba(39, 163, 180, 0.72);
}

.pet-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: radial-gradient(circle at 20% 20%, rgba(183, 224, 246, 0.72), rgba(234, 247, 255, 0.88));
}

.pet-card h3 {
    margin-top: 0.7rem;
    font-size: 1.08rem;
}

.pet-card p {
    margin-top: 0.2rem;
    color: var(--text-soft);
    font-size: 0.89rem;
}

.pet-card.is-hidden {
    display: none;
}

.impact-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
}

.impact-copy,
.impact-stat,
.cta-inner {
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-deep);
}

.impact-copy {
    padding: clamp(1.5rem, 4vw, 2.3rem);
}

.impact-copy h2 {
    margin-top: 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.impact-copy p {
    margin-top: 0.75rem;
    color: var(--text-soft);
}

.text-link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--brand-teal);
}

.impact-stat {
    padding: 1.8rem;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.impact-stat p {
    color: var(--text-soft);
}

.impact-stat strong {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    margin: 0.8rem 0;
    color: var(--brand-teal-deep);
}

.impact-stat span {
    color: #285a7e;
}

.cta-strip {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.cta-inner {
    padding: clamp(1.8rem, 5vw, 2.8rem);
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.cta-inner p {
    margin: 0.8rem auto 1.2rem;
    max-width: 620px;
    color: var(--text-soft);
}

.site-footer {
    border-top: 1px solid rgba(142, 198, 224, 0.62);
    padding: 1.6rem 0;
    background: rgba(240, 249, 255, 0.9);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.92rem;
    color: #34658b;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 1.1rem;
        left: 1.1rem;
        padding: 0.7rem;
        border-radius: 16px;
        border: 1px solid rgba(141, 199, 226, 0.78);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-card);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: all 0.22s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .main-nav a,
    .submenu-toggle {
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
        padding: 0.72rem 0.9rem;
    }

    .submenu {
        position: static;
        min-width: 100%;
        margin-top: 0.2rem;
        margin-left: 0.65rem;
        border-radius: 12px;
        border: 0;
        border-left: 2px solid rgba(141, 199, 226, 0.8);
        box-shadow: none;
        padding: 0.2rem 0.2rem 0.2rem 0.5rem;
        background: rgba(238, 248, 255, 0.9);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .menu-item.has-submenu.is-open > .submenu {
        display: block;
    }

    .submenu a {
        padding: 0.56rem 0.72rem;
    }

    .section-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-meta {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(1200px, 100% - 1.2rem);
    }

    .hero-content {
        padding-top: 6.3rem;
        padding-bottom: 3.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pet-grid {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


