/* TAILBITE'S — shared site theme. Load before page-specific styles. */

/* latin-ext */
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../assets/fonts/anton-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../assets/fonts/anton-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url(../assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url(../assets/fonts/dm-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens — Tailbite's. */

:root {
    --navy-dark: #021c25;
    --navy: #04333e;
    --navy-mid: #064954;
    --navy-soft: #0a5c69;
    --orange: #ff8b00;
    --orange-light: #ffa90b;
    --yellow: #ffc600;
    --cream: #f5eddf;
    --cream-2: #fbf6ee;
    --white: #ffffff;
    --wolt: #00c2e8;
    --bolt: #2fbd79;
    --container: 1240px;
    --radius: 18px;
    --radius-lg: 28px;
    --font-display: "Anton", Impact, sans-serif;
    --font-body: "DM Sans", Arial, Helvetica, sans-serif;
    --shadow-soft: 0 18px 50px -22px rgba(2, 28, 37, .45);
    --shadow-hard: 0 26px 70px -28px rgba(2, 28, 37, .7);
    --ease: cubic-bezier(.22, .8, .28, 1);
}


/* Base — Tailbite's. */

*::before {
    box-sizing: border-box;
}

*::after {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream-2);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--navy);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 0 0 12px 0;
}

.skip-link:focus {
    left: 0;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container-narrow {
    max-width: 860px;
}

.section {
    padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt {
    background: var(--cream);
}

.eyebrow {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.eyebrow-dark {
    color: var(--navy);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 6vw, 68px);
    line-height: .98;
    letter-spacing: .01em;
    text-transform: uppercase;
    margin-bottom: 44px;
}

.section-title span {
    color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    *::before {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* Buttons — Tailbite's. */

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.btn-sm {
    padding: 11px 20px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 17px 30px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: var(--navy-dark);
    box-shadow: 0 14px 34px -14px rgba(255, 139, 0, .85);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -16px rgba(255, 139, 0, .95);
}

.btn-ghost {
    border: 2px solid rgba(4, 51, 62, .22);
    color: var(--navy);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(4, 51, 62, .07);
}

.btn-dark {
    background: var(--navy);
    color: var(--cream);
    box-shadow: var(--shadow-soft);
}

.btn-dark:hover {
    transform: translateY(-3px);
    background: var(--navy-mid);
}

.shine {
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    animation: shine 3.4s var(--ease) infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    55%,
    100% {
        left: 130%;
    }
}


/* Header — Tailbite's. */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
    padding: 7px 0;
    background: rgba(2, 28, 37, .08);
    border-bottom: 1px solid rgba(245, 237, 223, .16);
    backdrop-filter: blur(4px);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.desktop-nav {
    display: flex;
    gap: 6px;
}

.desktop-nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(245, 237, 223, .85);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}

.desktop-nav a:hover {
    color: var(--white);
}

.desktop-nav a.active {
    color: var(--white);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.desktop-nav a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(245, 237, 223, .12);
    border: 1px solid rgba(245, 237, 223, .22);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--cream);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    transition: width .1s linear;
}

.mobile-menu {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 110px 26px 34px;
    background: var(--navy);
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(245, 237, 223, .12);
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cream);
}

.mobile-menu nav a:hover {
    color: var(--orange);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(2, 28, 37, .6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
}

.site-header.sticky {
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px -22px rgba(2, 28, 37, .95);
    background: rgba(4, 51, 62, .76);
}

.brand img {
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
    width: 158px;
    height: 46px;
}

.navbar .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    position: relative;
    width: 240px;
    height: 50px;
    flex: 0 0 240px;
}

.navbar .brand img {
    position: absolute;
    top: 70%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    max-height: none;
    outline: none;
}

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

@media (max-width: 560px) {

    .brand img {
        width: 132px;
        height: 40px;
    }

    .navbar .brand {
        width: 180px;
        flex-basis: 180px;
        height: 46px;
    }

    .navbar .brand img {
        width: 100%;
    }
}


/* Footer — Tailbite's. */

.site-footer {
    background: var(--navy);
    color: rgba(245, 237, 223, .8);
    padding: clamp(48px, 6vw, 76px) 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 34px;
}

.footer-brand img {
    object-fit: contain;
    margin-bottom: 14px;
    width: 280px;
    max-width: 100%;
    height: auto;
    max-height: none;
}

.footer-brand p {
    max-width: 34ch;
    font-size: 14.5px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 5px;
}

.footer-col a {
    font-size: 14.5px;
    transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-col a:hover {
    color: var(--yellow);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 237, 223, .14);
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(245, 237, 223, .55);
}

@media (max-width: 1080px) {

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

@media (max-width: 560px) {

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

/* Shared secondary-page navigation and footer. */
.page-header {
    background: var(--navy-dark);
    color: var(--cream);
    border-bottom: 1px solid rgba(255, 139, 0, .45);
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
}

.page-brand {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: .02em;
    color: var(--orange);
}

.page-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-weight: 700;
    font-size: 14px;
}

.page-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.page-nav-links a:hover {
    color: var(--yellow);
}

.page-footer {
    background: var(--navy-dark);
    color: var(--cream);
    padding-block: 30px;
}

.page-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 28px;
}

.page-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.page-footer a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-footer a:hover {
    color: var(--yellow);
}

@media (max-width: 560px) {
    .page-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .page-nav-links {
        gap: 4px 18px;
    }
}

@media print {

    .page-header,
    .page-footer,
    .legal-toc {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Maintain readable links and layouts under zoom and on narrow screens. */
.footer-col a,
.footer-bottom p {
    overflow-wrap: anywhere;
}

.footer-grid>* {
    min-width: 0;
}

.mobile-menu {
    overflow-y: auto;
}