:root {
    --gold: #CFB771;
    --blue: #111111;
    --blue-deep: #111111;
    --blue-bright: #2B2118;
    --gold-bright: #E0CB90;
    --cream: #F8F5EF;
    --brown: #2B2118;
    --parallax-tone: #726b58;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--gold) var(--blue);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--blue);
}

::-webkit-scrollbar-thumb {
    border: 3px solid var(--blue);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ead8a5, var(--gold));
}

.scroll-top-button {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    padding: 4px;
    color: var(--cream);
    background:
        conic-gradient(var(--gold) var(--scroll-progress, 0deg), var(--cream) 0deg),
        var(--cream);
    box-shadow: 0 18px 34px -18px rgba(17, 17, 17, 0.7);
}

.scroll-top-button__inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: var(--blue);
    box-shadow: inset 0 1px 0 rgba(248, 245, 239, 0.18);
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(207, 183, 113, 0.18), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(43, 33, 24, 0.12), transparent 32%),
        var(--cream);
    color: var(--blue);
}

.menu-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
    color: var(--blue);
    transition: color 0.3s ease;
}

.menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
    background: linear-gradient(90deg, var(--gold), var(--blue));
}

.menu-link:hover,
.menu-link.is-active {
    color: var(--blue);
}

.menu-link:hover::after,
.menu-link.is-active::after,
.menu-has-children:hover > .menu-link::after {
    transform: scaleX(1);
}

.submenu {
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    transition: all 0.25s ease;
}

.menu-has-children:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.submenu-link {
    display: block;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--blue);
    transition: all 0.2s ease;
}

.submenu-link:hover,
.submenu-link.is-active {
    background: rgba(43, 33, 24, 0.08);
    color: var(--blue);
}

header .menu-link {
    color: var(--cream);
}

header .menu-link::after {
    background: linear-gradient(90deg, var(--gold), var(--cream));
}

header .submenu-link {
    color: var(--cream);
}

header .submenu-link:hover,
header .submenu-link.is-active {
    background: rgba(248, 245, 239, 0.08);
    color: var(--cream);
}

.breadcrumb-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.18rem;
    color: rgba(17, 17, 17, 0.72);
    transition: color 0.28s ease;
}

.breadcrumb-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s ease;
    background: linear-gradient(90deg, var(--gold), var(--brown));
}

.breadcrumb-link:hover,
.breadcrumb-link.is-active {
    color: var(--blue);
}

.breadcrumb-link:hover::after,
.breadcrumb-link.is-active::after {
    transform: scaleX(1);
}

.parallax-layer {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    isolation: isolate;
}

.abstract-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(207, 183, 113, 0.2), transparent 40%),
        radial-gradient(circle at 82% 18%, rgba(232, 238, 246, 0.14), transparent 38%),
        linear-gradient(160deg, rgba(26, 26, 26, 0.58), rgba(26, 26, 26, 0.58));
    mix-blend-mode: normal;
}

.abstract-parallax {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.abstract-image-layer {
    position: absolute;
    inset: -8%;
    pointer-events: none;
    z-index: 1;
    display: block;
    opacity: 0.42;
    background-image: url('/assets/images/parallax-fresh-1.svg'), url('/assets/images/parallax-fresh-2.svg');
    background-repeat: no-repeat, no-repeat;
    background-size: 52% auto, 48% auto;
    background-position: -14% 6%, 112% 88%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    filter: saturate(1.12) contrast(1.1) brightness(0.9);
}

.about-law-parallax-bg {
    position: absolute;
    inset: -6%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.78), rgba(26, 26, 26, 0.78)),
        url('/assets/images/parallax-fresh-1.svg');
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0) scale(1.06);
    will-change: transform;
}

.fancy-parallax-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 999px;
    filter: blur(18px);
    will-change: transform;
}

.fancy-parallax-shape--gold {
    top: 6%;
    right: -8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(207, 183, 113, 0.3) 0%, rgba(207, 183, 113, 0.02) 70%);
}

.fancy-parallax-shape--cream {
    bottom: 8%;
    left: -8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 238, 246, 0.16) 0%, rgba(232, 238, 246, 0.02) 72%);
}

.fancy-parallax-ribbon {
    position: absolute;
    top: 12%;
    left: -12%;
    width: 130%;
    height: 160px;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-6deg);
    display: block;
    background: linear-gradient(90deg, transparent 0%, rgba(47, 71, 113, 0.42) 30%, rgba(232, 238, 246, 0.1) 58%, transparent 100%);
    filter: blur(5px);
    will-change: transform;
}

.juice-surface {
    background:
        linear-gradient(160deg, rgba(17, 17, 17, 0.98), rgba(43, 33, 24, 0.97));
    box-shadow: inset 0 1px 0 rgba(248, 245, 239, 0.08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.15s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 5s ease-in-out, filter 1.15s ease-in-out;
    filter: blur(1.5px);
}

.hero-slide.active img {
    transform: scale(1.02);
    filter: blur(0);
}

.hero-text-anim {
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-text-anim.is-changing {
    opacity: 0;
    transform: translateY(12px);
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-dot.is-active {
    width: 1.75rem;
    border-color: var(--gold);
    background: var(--gold);
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.65s ease;
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    transition: all 0.25s ease;
}

.testimonial-dot.is-active {
    width: 26px;
    background: var(--gold);
    border-color: var(--gold);
}

@media (min-width: 1024px) {
    .testimonial-track {
        transform: none !important;
    }

    .testimonial-slide {
        min-width: calc((100% - 3rem) / 3);
    }

    .testimonials-controls,
    .testimonials-dots {
        display: none !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.cards-grid .card-anim {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cards-grid .card-anim::before {
    content: '';
    position: absolute;
    top: -140%;
    left: -55%;
    width: 40%;
    height: 280%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.cards-grid .image-card::before {
    display: none;
}

.staff-name-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 0.2rem;
}

.staff-name-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
    background: linear-gradient(90deg, var(--gold), var(--blue));
}

.image-card:hover .staff-name-underline::after {
    transform: scaleX(1);
}

.cards-grid .card-anim:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 45px -22px rgba(17, 17, 17, 0.42);
    border-color: rgba(207, 183, 113, 0.7);
}

.cards-grid .card-anim:hover::before {
    left: 130%;
}

.cards-grid .card-anim.reveal.show {
    animation: cardPop 0.55s ease both;
}

.cards-grid .card-anim.reveal.show:nth-child(2) { animation-delay: 0.08s; }
.cards-grid .card-anim.reveal.show:nth-child(3) { animation-delay: 0.16s; }
.cards-grid .card-anim.reveal.show:nth-child(4) { animation-delay: 0.24s; }
.cards-grid .card-anim.reveal.show:nth-child(5) { animation-delay: 0.32s; }
.cards-grid .card-anim.reveal.show:nth-child(6) { animation-delay: 0.4s; }

.chapter-card-anim {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.chapter-card-anim::before {
    content: '';
    position: absolute;
    top: -140%;
    left: -55%;
    width: 40%;
    height: 280%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.6s ease;
}

.chapter-card-anim:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 45px -22px rgba(17, 17, 17, 0.42);
    border-color: rgba(207, 183, 113, 0.75);
}

.chapter-card-anim:hover::before {
    left: 130%;
}

.chapter-card-anim.reveal.show {
    animation: cardPop 0.55s ease both;
}

@keyframes cardPop {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-anim {
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    will-change: transform;
}

.btn-anim::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -62%;
    width: 38%;
    height: 260%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.btn-anim:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -20px rgba(17, 17, 17, 0.65);
    filter: saturate(1.05);
}

.btn-anim:hover::after {
    left: 128%;
}

.btn-anim:active {
    transform: translateY(-1px);
}

#menuToggle .menu-icon-line {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

#menuToggle.is-open .menu-icon-line--top {
    transform: translateY(6px) rotate(45deg);
}

#menuToggle.is-open .menu-icon-line--middle {
    opacity: 0;
}

#menuToggle.is-open .menu-icon-line--bottom {
    transform: translateY(-6px) rotate(-45deg);
}

.text-btn-anim {
    position: relative;
    transition: letter-spacing 0.25s ease, color 0.25s ease;
}

.text-btn-anim::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
    background: currentColor;
    opacity: 0.65;
}

.text-btn-anim:hover {
    letter-spacing: 0.14em;
}

.text-btn-anim:hover::after {
    transform: scaleX(1);
}

.footer-menu-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.footer-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
    background: linear-gradient(90deg, var(--gold), var(--cream) 50%, var(--gold));
    opacity: 0.95;
    border-radius: 999px;
}

.footer-menu-link:hover,
.footer-menu-link:focus-visible {
    color: var(--gold);
}

.footer-menu-link:hover::after,
.footer-menu-link:focus-visible::after {
    transform: scaleX(1);
}

@media (max-width: 1024px) {
    .parallax-layer {
        background-attachment: scroll;
    }

    .abstract-image-layer {
        background-size: 78% auto, 74% auto;
        opacity: 0.42;
    }

    .fancy-parallax-shape--gold {
        width: 240px;
        height: 240px;
    }

    .fancy-parallax-shape--cream {
        width: 220px;
        height: 220px;
    }
}
