/* ============================================================
   The Ducati Dads — brand stylesheet
   Red / black / white, matched to the shield logo.
   Single responsive stylesheet: no separate mobile site.
   ============================================================ */

:root {
    --red:        #c8102e;   /* shield red */
    --red-bright: #ff1f3d;   /* hover / glow */
    --red-deep:   #8f0b20;
    --duck:       #ffd21e;   /* the duck's yellow — used sparingly */
    --black:      #0a0a0a;
    --panel:      #141414;
    --panel-2:    #1c1c1c;
    --line:       #2c2c2c;
    --white:      #ffffff;
    --grey:       #b9b9b9;
    --grey-dim:   #8a8a8a;

    --head: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --wrap: 1180px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--red-bright); }

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

/* ---------- Skip link (accessibility) ---------- */
.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--red); color: #fff;
    padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 10, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand span {
    font-family: var(--head);
    font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--white); line-height: 1.1;
}

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
    color: var(--white); text-decoration: none;
    font-family: var(--head); letter-spacing: .07em; text-transform: uppercase;
    font-size: .95rem; padding: .55rem .85rem; border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--red-bright); background: rgba(200, 16, 46, .12); }

.nav-links a[aria-current="page"] {
    color: var(--red-bright);
    box-shadow: inset 0 -3px 0 var(--red);
}

/* Shop gets a button treatment */
.nav-links a.nav-shop {
    background: var(--red); color: #fff; margin-left: .4rem;
    padding: .55rem 1.15rem;
}
.nav-links a.nav-shop:hover { background: var(--red-bright); color: #fff; }

/* Mobile toggle — CSS only, no JS */
.nav-toggle { display: none; }
.nav-burger {
    display: none; cursor: pointer;
    background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: .5rem .65rem;
}
.nav-burger span {
    display: block; width: 22px; height: 2px; background: var(--white);
    margin: 4px 0; transition: .2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('../Images/banners/background1.jpg');
    background-size: cover; background-position: center;
    opacity: .28; z-index: 0;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at center, transparent 25%, var(--black) 88%);
}
.hero > * { position: relative; z-index: 1; }

.hero-logo {
    width: clamp(150px, 26vw, 230px);
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .8));
}
.hero h1 {
    font-family: var(--head);
    font-size: clamp(2.4rem, 8vw, 4.6rem);
    line-height: .95; margin: 0 0 .6rem;
    text-transform: uppercase; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero .tagline {
    color: var(--grey); font-size: clamp(1rem, 2.4vw, 1.2rem);
    max-width: 620px; margin: 0 auto 1.75rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--head); letter-spacing: .07em; text-transform: uppercase;
    font-size: 1rem; padding: .85rem 1.7rem; border-radius: 10px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ============================================================
   SOCIAL
   ============================================================ */
.social-strip {
    background: linear-gradient(180deg, var(--panel) 0%, var(--black) 100%);
    border-block: 1px solid var(--line);
    padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 {
    font-family: var(--head); text-transform: uppercase;
    font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0 0 .4rem; letter-spacing: .02em;
}
.section-head h2 em { font-style: normal; color: var(--red-bright); }
.section-head p { color: var(--grey); margin: 0; }

.social-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.social-card {
    display: flex; flex-direction: column; gap: .5rem;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
    text-decoration: none; color: var(--white);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--red));
    background: #202020;
}
.social-card .icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--card-accent, var(--red));
    margin-bottom: .35rem;
}
.social-card .icon svg { width: 26px; height: 26px; fill: #fff; }
.social-card h3 {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
    margin: 0; font-size: 1.25rem;
}
.social-card p { margin: 0; color: var(--grey); font-size: .95rem; }
.social-card .cta {
    margin-top: .5rem; font-family: var(--head); letter-spacing: .06em;
    text-transform: uppercase; font-size: .88rem; color: var(--card-accent, var(--red-bright));
}

.card-yt { --card-accent: #ff0033; }
.card-ig { --card-accent: #d62976; }
.card-fb { --card-accent: #1877f2; }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.video-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: 2fr 1fr; align-items: start;
}
.video-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
.video-card h3 {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
    margin: 0 0 .85rem; font-size: 1.15rem;
}
.video-card h3::before {
    content: ""; display: inline-block; width: 9px; height: 9px;
    background: var(--red); border-radius: 50%; margin-right: .6rem; vertical-align: middle;
}
/* Responsive iframe wrappers — the iframe fills these */
.ratio { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}

/* ============================================================
   GENERIC SECTIONS / CARDS
   ============================================================ */
.page-head {
    padding: clamp(2rem, 5vw, 3.25rem) 0 1.5rem;
    text-align: center; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel) 0%, var(--black) 100%);
}
.page-head h1 {
    font-family: var(--head); text-transform: uppercase;
    font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .35rem; letter-spacing: .02em;
}
.page-head h1 em { font-style: normal; color: var(--red-bright); }
.page-head p { color: var(--grey); margin: 0 auto; max-width: 640px; }

.section { padding: clamp(2rem, 5vw, 3.25rem) 0; }

.prose {
    background: var(--panel); border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.prose p { color: #dedede; }
.prose p:last-child { margin-bottom: 0; }

/* Profile cards — staff and motorcycles */
.profiles { display: grid; gap: 1.25rem; }
.profile {
    display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .15s ease;
}
.profile:hover { border-color: var(--red-deep); }
.profile > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.profile .details { padding: 1.5rem 1.6rem 1.6rem 0; }
.profile .details h3 {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .04em;
    font-size: 1.3rem; margin: 0 0 .2rem;
}
.profile .details .role {
    color: var(--red-bright); font-size: .85rem; letter-spacing: .09em;
    text-transform: uppercase; font-family: var(--head); margin: 0 0 .75rem;
}
.profile .details p { color: #d4d4d4; margin: 0; }
.profile .details p + p { margin-top: .9rem; }

/* A profile with no photo yet — the race bike. Full width, accent bar
   on the left so it still reads as part of the same set. */
.profile-noimg {
    grid-template-columns: 1fr;
    border-left: 4px solid var(--red);
}
.profile-noimg .details { padding: 1.5rem 1.6rem 1.6rem; }

/* "Help us name it" call to action inside that card */
.name-cta {
    margin-top: 1.1rem !important;
    background: var(--panel-2); border: 1px dashed var(--red-deep);
    border-radius: 10px; padding: .9rem 1.1rem;
    color: #e6e6e6 !important; font-size: .95rem;
}
.name-cta strong { color: var(--duck); }
.name-cta a { color: var(--red-bright); text-decoration: none; border-bottom: 1px solid rgba(255,31,61,.4); }
.name-cta a:hover { color: var(--white); border-bottom-color: var(--white); }

/* Sponsor / affiliate wall */
.partners { display: grid; gap: .7rem; margin-top: 1.5rem; }
.partner {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
    background: var(--panel); border: 1px solid var(--line);
    border-left: 3px solid var(--red-deep);
    border-radius: 12px; padding: .95rem 1.2rem;
    transition: border-color .15s ease, background .15s ease;
}
.partner:hover { background: var(--panel-2); border-left-color: var(--red-bright); }
/* Name and badges sit together on the LEFT. The docked mini player lives in
   the bottom-right corner, and right-aligned badges disappear underneath it —
   which would hide the affiliate labels, the one part that has to be visible. */
.pname {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
    font-size: 1.02rem; color: var(--white);
    min-width: 10.5rem;
}
.pkind {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .09em;
    font-size: .72rem; color: var(--grey);
    border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem;
    white-space: nowrap;
}
.pcode {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .09em;
    font-size: .72rem; color: var(--black); background: var(--duck);
    border-radius: 999px; padding: .25rem .7rem; white-space: nowrap;
}

/* Linked rows: the brand name and the code both go to the affiliate page.
   Rows without a confirmed URL stay plain text and must not look clickable. */
a.pname { text-decoration: none; }
a.pname:hover { color: var(--red-bright); }
a.pcode { text-decoration: none; transition: background .15s ease, transform .12s ease; }
a.pcode:hover { background: #ffdf52; transform: translateY(-1px); }
a.pname:focus-visible, a.pcode:focus-visible {
    outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 6px;
}
.partner.is-linked { cursor: pointer; }
.partner.is-linked:hover { border-left-color: var(--duck); }

/* Affiliate / referral disclosure */
.disclosure {
    margin-top: 1.25rem; color: var(--grey) !important;
    font-size: .86rem; line-height: 1.6;
    border-top: 1px solid var(--line); padding-top: 1rem;
}

@media (max-width: 560px) {
    .partner { align-items: flex-start; }
    .pname { flex: 1 1 100%; min-width: 0; }
}

/* Keep the last rows of any section clear of the docked player's corner */
.disclosure { padding-right: clamp(0px, 22vw, 320px); }
@media (max-width: 700px) { .disclosure { padding-right: 0; } }

/* Contact rows */
.contact-list { display: grid; gap: .85rem; margin-top: 1.5rem; }
.contact-row {
    display: flex; align-items: center; gap: 1rem;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 12px; padding: 1rem 1.25rem;
    text-decoration: none; color: var(--white);
    transition: border-color .15s ease, background .15s ease;
}
.contact-row:hover { border-color: var(--red); background: #202020; }
.contact-row .icon {
    width: 40px; height: 40px; border-radius: 10px; flex: none;
    display: grid; place-items: center; background: var(--row-accent, var(--red));
}
.contact-row .icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-row .label { font-family: var(--head); letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; color: var(--grey-dim); }
.contact-row .value { font-size: 1.02rem; word-break: break-word; }

/* Shop call-to-action band */
.shop-cta {
    background: linear-gradient(120deg, var(--red-deep) 0%, var(--red) 55%, #e01a38 100%);
    padding: clamp(2.25rem, 5vw, 3.25rem) 0; text-align: center;
}
.shop-cta h2 {
    font-family: var(--head); text-transform: uppercase;
    font-size: clamp(1.7rem, 5vw, 2.8rem); margin: 0 0 .5rem;
}
.shop-cta p { margin: 0 auto 1.5rem; max-width: 560px; color: rgba(255, 255, 255, .92); }
.shop-cta .btn-primary { background: #fff; color: var(--red-deep); }
.shop-cta .btn-primary:hover { background: var(--duck); color: #1a1a1a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--panel); border-top: 1px solid var(--line);
    padding: clamp(2rem, 5vw, 3rem) 0 1.75rem; text-align: center;
}
.footer-duck { width: 116px; margin: 0 auto 1rem; }
.footer .sign-off {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .03em;
    font-size: clamp(1rem, 2.6vw, 1.3rem); color: var(--white);
    max-width: 640px; margin: 0 auto 1.5rem; line-height: 1.35;
}
.footer .sign-off em { font-style: normal; color: var(--duck); }

.footer-social { display: flex; justify-content: center; gap: .7rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-social a {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--panel-2); border: 1px solid var(--line);
    transition: background .15s ease, transform .12s ease, border-color .15s ease;
}
.footer-social a:hover { transform: translateY(-3px); background: var(--fa, var(--red)); border-color: var(--fa, var(--red)); }
.footer-social a svg { width: 22px; height: 22px; fill: var(--white); }
.footer-social a.yt { --fa: #ff0033; }
.footer-social a.ig { --fa: #d62976; }
.footer-social a.fb { --fa: #1877f2; }
.footer-social a.tt { --fa: #000000; }
.footer-social a.pt { --fa: #ff424d; }

.footer-nav { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-nav a {
    color: var(--grey); text-decoration: none; font-size: .92rem;
    font-family: var(--head); letter-spacing: .06em; text-transform: uppercase;
}
.footer-nav a:hover { color: var(--red-bright); }

.footer .copyright { color: var(--grey-dim); font-size: .85rem; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-card.short { max-width: 380px; margin-inline: auto; }
    .profile { grid-template-columns: 1fr; }
    .profile > img { min-height: 0; aspect-ratio: 16 / 10; }
    .profile .details { padding: 0 1.35rem 1.5rem; }
}

@media (max-width: 760px) {
    .nav-burger { display: block; }
    .nav-inner { flex-wrap: wrap; min-height: 60px; }
    .nav-brand span { font-size: 1rem; }

    .nav-links {
        display: none;
        flex-direction: column; align-items: stretch;
        width: 100%; padding-bottom: .85rem; gap: .15rem;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: .8rem 1rem; border-radius: 8px; }
    .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
    .nav-links a.nav-shop { margin-left: 0; margin-top: .4rem; text-align: center; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 1.75rem); }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    .btn:hover, .social-card:hover, .footer-social a:hover { transform: none; }
}

/* ============================================================
   MINI PLAYER
   Homepage: the main player docks into the corner on scroll.
   Other pages: docked from the start.
   ============================================================ */

/* Slot reserves the player's space on the homepage so the page
   doesn't jump when the player pops out to fixed positioning. */
.dock-slot { position: relative; }

.dock-target { transition: none; }

.dock-target.is-docked,
.dock-target[data-standalone] {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    width: min(340px, calc(100vw - 2.5rem));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .75);
    animation: miniIn .22s ease-out;
}

@keyframes miniIn {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.dock-target.is-gone { opacity: 0; transform: translateY(14px); transition: .2s ease; }

/* The control bar only exists while the player is in mini form */
.mini-bar { display: none; }
.dock-target.is-docked .mini-bar,
.dock-target[data-standalone] .mini-bar { display: flex; }

.mini-bar {
    align-items: center; gap: .35rem;
    padding: .5rem .55rem;
    background: var(--panel-2);
    border-top: 1px solid var(--line);
}

.mini-live {
    display: inline-flex; align-items: center; gap: .4rem; flex: none;
    font-family: var(--head); font-size: .68rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--grey-dim);
}
.mini-live::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); animation: minoPulse 2s ease-in-out infinite;
}
@keyframes minoPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.mini-title {
    flex: 1 1 auto; min-width: 0;
    font-size: .78rem; color: var(--grey);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mini-btn {
    flex: none; width: 30px; height: 30px;
    display: grid; place-items: center;
    background: transparent; border: 1px solid var(--line);
    border-radius: 7px; cursor: pointer; padding: 0;
    transition: background .15s ease, border-color .15s ease;
}
.mini-btn svg { width: 15px; height: 15px; fill: var(--white); pointer-events: none; }
.mini-btn:hover { background: var(--red); border-color: var(--red); }
.mini-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

/* Sound button: shows the "muted" icon until switched on */
.mini-sound .icon-on  { display: none; }
.mini-sound.is-on .icon-on  { display: block; }
.mini-sound.is-on .icon-off { display: none; }
.mini-sound.is-on { background: var(--red); border-color: var(--red); }

/* A nudge so people realise sound is available */
.dock-target.is-docked .mini-sound:not(.is-on),
.dock-target[data-standalone] .mini-sound:not(.is-on) {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, .7);
    animation: soundNudge 2.6s ease-out 1.5s 3;
}
@keyframes soundNudge {
    0%   { box-shadow: 0 0 0 0 rgba(200, 16, 46, .7); }
    70%  { box-shadow: 0 0 0 9px rgba(200, 16, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

@media (max-width: 520px) {
    .dock-target.is-docked,
    .dock-target[data-standalone] {
        right: .75rem; bottom: .75rem;
        width: min(260px, calc(100vw - 1.5rem));
    }
    .mini-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dock-target.is-docked,
    .dock-target[data-standalone] { animation: none; }
    .mini-live::before,
    .mini-sound:not(.is-on) { animation: none !important; }
}

/* Ghost shown in the player's slot while it's docked in the corner,
   so the homepage never shows an empty gap where the video was. */
.dock-slot.is-holding::after {
    content: "Playing in the corner \2198";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    border: 1px dashed var(--line); border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    font-family: var(--head); letter-spacing: .07em; text-transform: uppercase;
    font-size: .82rem; color: var(--grey-dim);
}
