:root {
    --green-900: #4f6859;
    --green-700: #718b79;
    --sage-400: #a9bba6;
    --sand-300: #d8c8ae;
    --beige-100: #ede4d7;
    --beige-50: #f8f4ee;
    --lavender-100: #e6e0ec;
    --lavender-200: #d6cfe0;
    --earth-600: #8b7b6c;
    --text-900: #3f3a35;
    --logo-height: 84px;
    --menu-height: 58px;
}

body {
    position: relative;
    isolation: isolate;
    color: var(--text-900);
    background:
        radial-gradient(circle at 10% 5%, rgba(214, 207, 224, 0.22) 0%, rgba(214, 207, 224, 0) 36%),
        radial-gradient(circle at 90% 18%, rgba(169, 187, 166, 0.16) 0%, rgba(169, 187, 166, 0) 34%),
        linear-gradient(180deg, #faf7f2 0%, #f1ebe1 42%, #e8ddd0 100%);
    font-family: "STIX Two Text", "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../logo/D04FCB20-6F18-413B-BBF8-8BBBCCB8288B.png") center center / cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

header {
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

header.header-scrolled {
    box-shadow: 0 10px 28px rgba(49, 38, 25, 0.2);
    backdrop-filter: saturate(1.06);
}

.logo-bar {
    position: relative;
    z-index: 2;
    min-height: var(--logo-height);
    background: linear-gradient(95deg, #f3ece3 0%, #fbf8f3 58%, #e7dfeb 100%);
    border-bottom: 1px solid rgba(139, 123, 108, 0.22);
    box-shadow: 0 2px 8px rgba(60, 45, 30, 0.08);
}

.brand {
    color: var(--green-900);
    transition: transform 0.24s ease, color 0.24s ease;
}

.brand:hover {
    color: var(--green-700);
    transform: translateY(-1px);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(113, 139, 121, 0.28);
}

.brand-title {
    font-size: 1.12rem;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--earth-600);
    letter-spacing: 0.02em;
}

.menu-bar {
    position: relative;
    top: auto;
    z-index: 1;
    min-height: var(--menu-height);
    background: linear-gradient(180deg, #3ca84e 0%, #319141 100%);
    border-bottom: 2px solid rgba(221, 212, 228, 0.95);
    box-shadow: 0 6px 16px rgba(63, 58, 53, 0.18);
}

.scroll-progress {
    height: 6px;
    background: rgba(248, 244, 238, 0.94);
    border-bottom: 1px solid rgba(139, 123, 108, 0.18);
    overflow: hidden;
}

.scroll-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #d6cfe0 0%, #b9c9b3 52%, #6f8775 100%);
    box-shadow: 0 0 18px rgba(113, 139, 121, 0.22);
    transition: width 0.12s linear;
}

.menu-l1,
.menu-l2,
.menu-l3 {
    list-style: none;
}

.menu-l1 {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.menu-l1 > li {
    position: relative;
}

.menu-wrap {
    display: block;
}

.menu-theme-item {
    display: flex;
    align-items: center;
    padding: 0 0 0 0.8rem;
}

.theme-switcher {
    width: 100%;
}

.theme-switcher-btn {
    min-width: 156px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fffdf9;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
}

.theme-switcher-btn:hover,
.theme-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: none;
}

.theme-switcher-btn.dropdown-toggle::after {
    margin-left: 0.75rem;
    vertical-align: 0.15em;
}

.theme-switcher-menu {
    margin-top: 0.55rem;
    min-width: 11rem;
    border: 1px solid rgba(139, 123, 108, 0.18);
    border-radius: 0.75rem;
    background: rgba(250, 247, 242, 0.97);
    box-shadow: 0 12px 24px rgba(52, 39, 25, 0.16);
    padding: 0.35rem;
}

.theme-option {
    border-radius: 0.55rem;
    color: var(--text-900);
    font-weight: 600;
}

.theme-option:hover,
.theme-option:focus,
.theme-option.active {
    background: #ebe3ef;
    color: #425648;
}

.menu-l1 > li > a {
    display: block;
    padding: 1rem 1.05rem;
    color: #fffdf9;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.menu-l1 > li > a:hover,
.menu-l1 > li:hover > a {
    background: rgba(73, 104, 84, 0.18);
    color: #ffffff;
}

.submenu-toggle {
    display: none;
}

.btn-menu-toggle {
    background: #f8f4ee;
    color: #55685a;
    border: 1px solid rgba(214, 207, 224, 0.48);
    font-weight: 600;
}

.btn-menu-toggle:hover {
    background: #ece3dd;
    color: #4a5c4e;
}

.menu-l2,
.menu-l3 {
    position: absolute;
    min-width: 220px;
    background: #faf7f2;
    border: 1px solid rgba(139, 123, 108, 0.22);
    box-shadow: 0 10px 24px rgba(45, 35, 22, 0.16);
    padding: 0.35rem 0;
    display: none;
    border-radius: 0.45rem;
}

.menu-l2 {
    top: 100%;
    left: 0;
}

.menu-l3 {
    top: 0;
    left: 100%;
}

.has-submenu:hover > .menu-l2,
.has-submenu-right:hover > .menu-l3 {
    display: block;
}

.menu-l2 a,
.menu-l3 a {
    display: block;
    padding: 0.55rem 0.95rem;
    color: var(--text-900);
    text-decoration: none;
    white-space: nowrap;
}

.menu-l2 a:hover,
.menu-l3 a:hover,
.menu-l2 li:hover > a,
.menu-l3 li:hover > a {
    background: #f1ece5;
    color: #516256;
}

.hero-section {
    background: linear-gradient(130deg, rgba(248, 244, 238, 0.94) 0%, rgba(230, 224, 236, 0.82) 42%, rgba(214, 226, 211, 0.84) 100%);
    position: relative;
    overflow: hidden;
}

.section-band {
    position: relative;
    border-top: 1px solid rgba(139, 123, 108, 0.18);
    border-bottom: 1px solid rgba(139, 123, 108, 0.12);
}

.section-services {
    background: linear-gradient(180deg, rgba(245, 238, 229, 0.9) 0%, rgba(234, 224, 207, 0.84) 45%, rgba(217, 228, 214, 0.86) 100%);
}

.section-process {
    background: linear-gradient(180deg, rgba(224, 234, 222, 0.84) 0%, rgba(210, 223, 211, 0.86) 50%, rgba(243, 238, 246, 0.82) 100%);
}

.section-inspiration {
    background: linear-gradient(180deg, rgba(246, 240, 232, 0.8) 0%, rgba(233, 224, 211, 0.8) 48%, rgba(227, 221, 235, 0.84) 100%);
}

.section-references {
    background: linear-gradient(180deg, rgba(239, 232, 222, 0.82) 0%, rgba(228, 218, 202, 0.82) 42%, rgba(214, 225, 214, 0.86) 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(214, 207, 224, 0.34) 0%, rgba(214, 207, 224, 0) 70%);
    pointer-events: none;
}

.card-soft {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 123, 108, 0.18);
    border-radius: 0.85rem;
    box-shadow: 0 14px 30px rgba(61, 46, 33, 0.11);
    backdrop-filter: blur(1.5px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-soft:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(49, 38, 26, 0.2);
    border-color: rgba(169, 187, 166, 0.5);
}

.image-soft {
    width: 100%;
    border-radius: 0.45rem;
    border: 1px solid rgba(139, 123, 108, 0.16);
    box-shadow: 0 6px 14px rgba(61, 46, 33, 0.12);
    object-fit: cover;
    object-position: center;
    transition: transform 0.42s ease, box-shadow 0.42s ease, filter 0.42s ease;
}

.image-soft:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 28px rgba(53, 40, 26, 0.22);
    filter: saturate(1.05) contrast(1.03);
}

.hero-image {
    height: 260px;
}

.service-image {
    height: 220px;
}

.gallery-image {
    height: 210px;
}

.btn-theme {
    background: var(--green-700);
    color: #ffffff;
    border: 1px solid #627a69;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn-theme:hover {
    background: #627a69;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 16px rgba(98, 122, 105, 0.26);
}

.btn-outline-theme {
    color: var(--green-900);
    border-color: var(--green-900);
    background: transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.btn-outline-theme:hover {
    color: #ffffff;
    background: var(--green-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 16px rgba(43, 71, 54, 0.22);
}

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

.reveal-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    letter-spacing: 0.01em;
}

.reference-box {
    background: rgba(250, 247, 242, 0.9);
    border: 1px solid rgba(139, 123, 108, 0.22);
    border-radius: 0.85rem;
    box-shadow: 0 14px 24px rgba(62, 46, 30, 0.14);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.reference-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(52, 39, 25, 0.2);
    border-color: rgba(214, 207, 224, 0.55);
}

.reference-text {
    color: #4d443d;
    font-size: 0.98rem;
}

.reference-name {
    color: var(--green-900);
    font-weight: 700;
    letter-spacing: 0.02em;
}

footer {
    background: #efe8dd;
    border-top: 1px solid rgba(139, 123, 108, 0.2);
}

body[data-theme="dark"] {
    color: #ebe7de;
    background:
        radial-gradient(circle at 10% 5%, rgba(110, 92, 133, 0.28) 0%, rgba(110, 92, 133, 0) 36%),
        radial-gradient(circle at 90% 18%, rgba(74, 108, 84, 0.2) 0%, rgba(74, 108, 84, 0) 34%),
        linear-gradient(180deg, #18211b 0%, #1d2620 42%, #23211f 100%);
}

body[data-theme="dark"]::before {
    opacity: 0.08;
}

body[data-theme="dark"] .logo-bar {
    background: linear-gradient(95deg, #263128 0%, #31372f 58%, #3b3342 100%);
    border-bottom-color: rgba(222, 214, 202, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .brand,
body[data-theme="dark"] .reference-name,
body[data-theme="dark"] .btn-outline-theme {
    color: #dce7da;
}

body[data-theme="dark"] .brand:hover {
    color: #f2eee7;
}

body[data-theme="dark"] .brand-subtitle,
body[data-theme="dark"] .reference-text,
body[data-theme="dark"] footer,
body[data-theme="dark"] .menu-l2 a,
body[data-theme="dark"] .menu-l3 a {
    color: #d7d0c6;
}

body[data-theme="dark"] .menu-bar {
    background: linear-gradient(180deg, #245f2f 0%, #1f4e28 100%);
    border-bottom-color: rgba(203, 189, 214, 0.5);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

body[data-theme="dark"] .scroll-progress {
    background: rgba(32, 39, 34, 0.94);
    border-bottom-color: rgba(220, 210, 196, 0.08);
}

body[data-theme="dark"] .scroll-progress-bar {
    background: linear-gradient(90deg, #8b78a8 0%, #7ea387 52%, #56b96e 100%);
    box-shadow: 0 0 18px rgba(86, 185, 110, 0.2);
}

body[data-theme="dark"] .menu-l1 > li > a:hover,
body[data-theme="dark"] .menu-l1 > li:hover > a {
    background: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .theme-switcher-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f6f2eb;
}

body[data-theme="dark"] .theme-switcher-btn:hover,
body[data-theme="dark"] .theme-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.14);
}

body[data-theme="dark"] .theme-switcher-menu,
body[data-theme="dark"] .menu-l2,
body[data-theme="dark"] .menu-l3 {
    background: #273129;
    border-color: rgba(222, 214, 202, 0.1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .theme-option,
body[data-theme="dark"] .menu-l2 a,
body[data-theme="dark"] .menu-l3 a {
    color: #ebe7de;
}

body[data-theme="dark"] .theme-option:hover,
body[data-theme="dark"] .theme-option:focus,
body[data-theme="dark"] .theme-option.active,
body[data-theme="dark"] .menu-l2 a:hover,
body[data-theme="dark"] .menu-l3 a:hover,
body[data-theme="dark"] .menu-l2 li:hover > a,
body[data-theme="dark"] .menu-l3 li:hover > a {
    background: #344038;
    color: #ffffff;
}

body[data-theme="dark"] .hero-section {
    background: linear-gradient(130deg, rgba(39, 48, 41, 0.94) 0%, rgba(57, 51, 66, 0.78) 42%, rgba(38, 67, 49, 0.82) 100%);
}

body[data-theme="dark"] .section-band {
    border-top-color: rgba(222, 214, 202, 0.08);
    border-bottom-color: rgba(222, 214, 202, 0.05);
}

body[data-theme="dark"] .section-services {
    background: linear-gradient(180deg, rgba(40, 48, 41, 0.92) 0%, rgba(49, 44, 37, 0.88) 45%, rgba(37, 57, 42, 0.9) 100%);
}

body[data-theme="dark"] .section-process {
    background: linear-gradient(180deg, rgba(30, 44, 34, 0.9) 0%, rgba(37, 52, 42, 0.9) 50%, rgba(49, 43, 58, 0.84) 100%);
}

body[data-theme="dark"] .section-inspiration {
    background: linear-gradient(180deg, rgba(38, 42, 36, 0.88) 0%, rgba(47, 43, 37, 0.86) 48%, rgba(53, 47, 63, 0.86) 100%);
}

body[data-theme="dark"] .section-references {
    background: linear-gradient(180deg, rgba(43, 41, 37, 0.88) 0%, rgba(50, 45, 39, 0.88) 42%, rgba(33, 52, 39, 0.9) 100%);
}

body[data-theme="dark"] .card-soft,
body[data-theme="dark"] .reference-box {
    background: rgba(35, 42, 36, 0.78);
    border-color: rgba(222, 214, 202, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .card-soft:hover,
body[data-theme="dark"] .reference-box:hover {
    border-color: rgba(141, 191, 154, 0.34);
}

body[data-theme="dark"] .image-soft {
    border-color: rgba(222, 214, 202, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .btn-theme {
    background: #56a768;
    border-color: #4d945d;
}

body[data-theme="dark"] .btn-theme:hover {
    background: #4b905a;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .btn-outline-theme {
    border-color: #dce7da;
}

body[data-theme="dark"] .btn-outline-theme:hover {
    background: #dce7da;
    color: #1f2a22;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] footer {
    background: #222b24;
    border-top-color: rgba(222, 214, 202, 0.08);
}

@media (max-width: 991.98px) {
    :root {
        --logo-height: 78px;
        --menu-height: 56px;
    }

    .menu-wrap {
        display: none;
        padding-bottom: 0.35rem;
    }

    .menu-wrap.is-open {
        display: block;
    }

    .menu-l1 {
        display: block;
        overflow: visible;
        white-space: normal;
    }

    .menu-theme-item {
        padding: 0.85rem 0.95rem 0.5rem;
    }

    .theme-switcher-btn {
        width: 100%;
        text-align: left;
    }

    .theme-switcher-menu {
        width: 100%;
    }

    .menu-l1 > li {
        border-top: 0;
    }

    .menu-l1 > li > a {
        padding: 0.85rem 0.95rem;
        border-right: 0;
    }

    .menu-l2,
    .menu-l3 {
        position: static;
        min-width: 100%;
        border: 0;
        box-shadow: none;
        padding: 0;
        background: #f3ece3;
        border-radius: 0;
    }

    .has-submenu:hover > .menu-l2,
    .has-submenu-right:hover > .menu-l3 {
        display: none;
    }

    .has-submenu.open > .menu-l2,
    .has-submenu-right.open > .menu-l3 {
        display: block;
    }

    .menu-l2 a,
    .menu-l3 a {
        border-top: 1px solid rgba(139, 123, 108, 0.14);
    }

    .menu-l2 > li > a {
        padding-left: 1.45rem;
    }

    .menu-l3 > li > a {
        padding-left: 2.15rem;
    }

    .submenu-toggle {
        display: block;
        position: absolute;
        top: 0.45rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        border-radius: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(248, 244, 238, 0.14);
        color: #fbf7f2;
        line-height: 1;
        padding: 0;
        font-weight: 700;
    }

    .menu-l2 .submenu-toggle,
    .menu-l3 .submenu-toggle {
        color: var(--green-900);
        border-color: rgba(79, 104, 89, 0.24);
        background: rgba(255, 255, 255, 0.42);
    }

    body[data-theme="dark"] .menu-l2,
    body[data-theme="dark"] .menu-l3 {
        background: #273129;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }

    .scroll-progress-bar {
        transition: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --logo-height: 76px;
    }

    .hero-image {
        height: 220px;
    }

    .service-image,
    .gallery-image {
        height: 200px;
    }

    .menu-l2,
    .menu-l3 {
        min-width: 190px;
    }

    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .hero-image,
    .service-image,
    .gallery-image {
        height: 180px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .menu-l1 > li > a {
        padding: 0.9rem 0.7rem;
        font-size: 0.92rem;
    }
}
