/* YDF Creative Agency V5 — scoped header styling */
.ydfv5-topline, .ydfv5-header {
    --ydfv5-purple: #5c20ff;
    --ydfv5-ink: #17151a;
    --ydfv5-muted: #5b5862;
    --ydfv5-line: #e8e5ed;
    --ydfv5-soft: #f4f0ff;
    background: #fff;
    color: var(--ydfv5-ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
}
.ydfv5-topline *, .ydfv5-header * { box-sizing: border-box; }
.ydfv5-topline a, .ydfv5-header a { color: inherit; text-decoration: none; }
.ydfv5-topline a:hover, .ydfv5-header a:hover { color: var(--ydfv5-purple); }
.ydfv5-topline .ydfv5-wrap, .ydfv5-header .ydfv5-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 38px; box-sizing: border-box; }
.ydfv5-topline { border-bottom: 1px solid var(--ydfv5-line); font-size: 11px; letter-spacing: .04em; }
.ydfv5-topline .ydfv5-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 35px; gap: 10px; }
.ydfv5-socials { white-space: nowrap; }
.ydfv5-socials a { margin-left: 18px; color: var(--ydfv5-muted); }
.ydfv5-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--ydfv5-line); }
.admin-bar .ydfv5-header { top: 32px; }
.ydfv5-header .ydfv5-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ydfv5-brand { flex: 0 0 auto; }
.ydfv5-header .ydfv5-logo { display: block; width: 188px; height: auto; max-width: 100%; }
.ydfv5-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 600; }
.ydfv5-nav > a, .ydfv5-services > summary { white-space: nowrap; }
.ydfv5-services { position: relative; margin: 0; }
.ydfv5-services > summary { list-style: none; cursor: pointer; }
.ydfv5-services > summary::-webkit-details-marker { display: none; }
.ydfv5-services > summary:hover { color: var(--ydfv5-purple); }
.ydfv5-mega { position: absolute; top: 40px; left: -100px; width: 590px; background: #fff; border: 1px solid var(--ydfv5-line); box-shadow: 0 18px 50px #2116381a; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; z-index: 101; }
.ydfv5-services:not([open]) > .ydfv5-mega { display: none; }
.ydfv5-mega a { display: block; padding: 12px; border-radius: 5px; white-space: normal; }
.ydfv5-mega a:hover { background: var(--ydfv5-soft); }
.ydfv5-mega small { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; color: var(--ydfv5-muted); }
.ydfv5-header .ydfv5-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 14px 20px; border-radius: 5px; background: var(--ydfv5-purple); color: #fff; border: 1px solid var(--ydfv5-purple); font-size: 14px; font-weight: 650; white-space: nowrap; }
.ydfv5-header .ydfv5-cta:hover { background: #3d0db8; color: #fff; }
.ydfv5-header .ydfv5-mobile-cta, .ydfv5-header .ydfv5-toggle { display: none; }
.ydfv5-header :is(a, button, summary):focus-visible, .ydfv5-topline a:focus-visible { outline: 3px solid #7243f2; outline-offset: 3px; }
/* Keep section anchors visible below the sticky header. */
html { scroll-padding-top: 100px; }
@media (max-width: 1050px) {
    .ydfv5-topline .ydfv5-wrap, .ydfv5-header .ydfv5-wrap { padding-inline: 26px; }
    .ydfv5-nav { gap: 15px; }
    .ydfv5-header .ydfv5-logo { width: 160px; }
    .ydfv5-header .ydfv5-row { gap: 16px; }
    .ydfv5-header .ydfv5-cta { padding: 12px; }
}
@media (max-width: 850px) {
    .ydfv5-header .ydfv5-row { min-height: 68px; flex-wrap: wrap; }
    .ydfv5-header .ydfv5-desktop-cta { display: none; }
    .ydfv5-header .ydfv5-toggle { background: #fff; color: var(--ydfv5-ink); border: 1px solid var(--ydfv5-line); border-radius: 5px; font: 600 14px/1.55 Inter, Arial, sans-serif; min-height: 44px; padding: 10px 13px; cursor: pointer; }
    .ydfv5-header.ydfv5-ready .ydfv5-toggle { display: inline-flex; align-items: center; }
    .ydfv5-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 18px; }
    .ydfv5-ready .ydfv5-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 25px; background: #fff; border-bottom: 1px solid var(--ydfv5-line); box-shadow: 0 12px 20px #0001; max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain; }
    .ydfv5-ready .ydfv5-nav.ydfv5-open { display: flex; }
    .ydfv5-nav > a, .ydfv5-services > summary { padding: 12px 0; border-bottom: 1px solid var(--ydfv5-line); }
    .ydfv5-mega { position: static; width: auto; box-shadow: none; border: 0; padding: 10px 0; grid-template-columns: 1fr; }
    .ydfv5-header .ydfv5-mobile-cta { display: inline-flex; margin-top: 12px; padding: 12px 16px; }
}
@media (max-width: 782px) { .admin-bar .ydfv5-header { top: 46px; } }
@media (max-width: 600px) {
    .admin-bar .ydfv5-header { top: 0; }
    .ydfv5-topline .ydfv5-wrap, .ydfv5-header .ydfv5-wrap { padding-inline: 18px; }
    .ydfv5-topline { font-size: 10px; }
    .ydfv5-topline .ydfv5-wrap { min-height: 31px; }
    .ydfv5-socials a { margin-left: 10px; }
    .ydfv5-socials a:first-child { display: none; }
    .ydfv5-header .ydfv5-logo { width: 165px; }
}
