@font-face {
    font-family: 'PhosphateSolid';
    src: url('PhosphateSolid.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: rgb(46, 66, 165);
}

/* #region Header */
.header {
    position: relative;
    width: 100%;
    overflow: visible;
}

.one-screen {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.overlay-text {
    position: absolute;
    text-align: center;
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    margin: 0;
}

.overlay-text h1,
.overlay-text h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

.overlay-text.top {
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 6.5vw, 7rem);
    white-space: nowrap;
    color: rgb(46, 66, 165);
    text-shadow:
        0.3vw 0.3vw 0 rgb(227, 29, 28),
        0.6vw 0.6vw 0 rgb(247, 252, 255);
}

.overlay-text.bottom-left {
    bottom: 15%;
    left: 17.5%;
    transform: translateX(-50%);
    font-size: clamp(2rem, 5.75vw, 6.25rem);
    color: rgb(227, 29, 28);
    text-shadow:
        0.3vw 0.3vw 0 rgb(46, 66, 165),
        0.6vw 0.6vw 0 rgb(247, 252, 255);
}

.overlay-text.bottom-right {
    bottom: 15%;
    right: 17.5%;
    transform: translateX(50%);
    font-size: clamp(2rem, 5.75vw, 6.25rem);
    color: rgb(227, 29, 28);
    text-shadow:
        0.3vw 0.3vw 0 rgb(46, 66, 165),
        0.6vw 0.6vw 0 rgb(247, 252, 255);
}

.kent {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
}

.overlay-img {
    width: clamp(180px, 30vw, 480px);
    height: auto;
    display: block;
}
/* #endregion */

/* #region Sections */
.dog {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: clamp(5rem, 13vh, 10rem) clamp(1.5rem, 5vw, 5rem) 0;
}

.pre-title,
.pre-title2 {
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    color: rgb(46, 66, 165);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    margin: 0 0 1.5rem;
}

.pre-title h1,
.pre-title2 h1 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.pre-title { text-align: left; }
.pre-title2 { text-align: right; }

.title,
.title2 {
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    color: rgb(46, 66, 165);
    font-size: clamp(2.75rem, 6.25vw, 6.75rem);
    line-height: 1;
    margin: 0 0 1.5rem;
}

.title h1,
.title2 h1 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.title { text-align: left; }
.title2 { text-align: right; }

.content,
.content2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.dog-pic,
.bay-pic {
    flex: 1 1 45%;
    min-width: 260px;
}

.dog-pic img,
.bay-pic img {
    width: 100%;
    height: auto;
    display: block;
}

.bay-swap {
    position: relative;
}

.bay-swap .swap-img {
    width: 100%;
    height: auto;
    display: block;
}

.bay-swap .swap-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: bay-swap-fade 6s ease-in-out infinite;
}

@keyframes bay-swap-fade {
    0%, 37.5%   { opacity: 0; }
    50%, 87.5%  { opacity: 1; }
    100%        { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bay-swap .swap-overlay {
        animation: none;
    }
}

.donate-pop {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 9999;
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.25vw, 2rem);
    letter-spacing: 0.05em;
    color: #1f9448;
    text-shadow:
        2px 2px 0 #0e5427,
        0 0 8px rgba(0, 0, 0, 0.25);
    will-change: transform, opacity;
    animation: donate-float 2000ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes donate-float {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15) rotate(calc(var(--rot, 0deg) * 0.3));
    }
    100% {
        opacity: 0;
        transform:
            translate(
                calc(-50% + var(--drift, 0px)),
                calc(-50% + var(--rise, -320px))
            )
            scale(0.9)
            rotate(var(--rot, 0deg));
    }
}

.dog-text,
.bay-text {
    flex: 1 1 45%;
    min-width: 260px;
    font-family: 'Iowan Old Style', Charter, Georgia, 'Times New Roman', serif;
    font-weight: 400;
    color: rgb(46, 66, 165);
    font-size: clamp(1.125rem, 1.75vw, 1.75rem);
    line-height: 1.5;
}

.dog-text p,
.bay-text p {
    margin: 0;
}

.content .dog-pic { order: 1; }
.content .dog-text { order: 2; }

.content2 .bay-pic { order: 2; }
.content2 .bay-text { order: 1; }
/* #endregion */

.footer {
    background-color: rgb(46, 66, 165);
    color: #fff;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem) 2rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: clamp(4rem, 10vh, 8rem);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand {
    line-height: 1;
}

.footer-title {
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: clamp(1.75rem, 2.75vw, 2.5rem);
    color: rgb(227, 29, 28);
    text-shadow:
        3px 3px 0 rgb(46, 66, 165),
        6px 6px 0 rgb(247, 252, 255);
    margin: 0;
}

.footer-subtitle {
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: clamp(0.9rem, 1.25vw, 1.125rem);
    color: #fff;
    margin: 0.5rem 0 0;
}

.footer-slogan {
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-size: clamp(1.25rem, 2.25vw, 2rem);
    color: #fff;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.footer-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 9rem;
    padding: 1.15rem 1.9rem 0.85rem;
    line-height: 1;
    background: rgb(227, 29, 28);
    color: #fff;
    font-family: 'PhosphateSolid', 'Phosphate', 'Impact', sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 3px solid #fff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-donate:hover,
.footer-donate:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    max-width: 1600px;
    margin: 2rem auto 0;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .content,
    .content2 {
        flex-direction: column;
    }
    .content .dog-pic,
    .content .dog-text,
    .content2 .bay-pic,
    .content2 .bay-text {
        order: 0;
        flex: 1 1 100%;
        width: 100%;
    }
    .title,
    .title2 {
        text-align: center;
    }
    .pre-title,
    .pre-title2 {
        text-align: center;
    }
    .overlay-text {
        z-index: 2;
    }
    .overlay-text.top {
        top: 18%;
        font-size: clamp(1.1rem, 5.5vw, 2rem);
    }
    .overlay-text.bottom-left,
    .overlay-text.bottom-right {
        font-size: clamp(1rem, 4.75vw, 1.75rem);
    }
    .overlay-img {
        width: clamp(130px, 36vw, 200px);
    }
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-nav {
        justify-content: center;
    }
}
