/* CrownateStudio Layout & Navigation Styles */

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 229, 226, 0.65);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height, 76px);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: background-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 300ms cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 300ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.35) 25%, rgba(16, 185, 129, 0.35) 75%, rgba(16, 185, 129, 0) 100%);
    pointer-events: none;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--color-black);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 3.5rem;
    padding-right: 0;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-mark {
    width: 36px;
    height: 36px;
    background-color: var(--color-offwhite);
    border: 1px solid var(--color-light-grey);
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.brand-mark img, .brand-mark svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2B2B2B;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-black);
    font-weight: 600;
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-black);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--color-light-grey);
    flex-shrink: 0;
}

.cst-cmd-nav-btn {
    background: transparent;
    border: 1px solid #E5E5E2;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    color: #0B0B0B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cst-cmd-nav-btn:hover {
    border-color: #0B0B0B;
    background: #FAF8F5;
}

/* Interactive Mega Menu & Structured Dropdown Component Styles */
.mega-nav-item {
    position: static;
}

.mega-nav-item:has(.mega-dropdown-menu),
.mega-nav-item.has-dropdown {
    position: relative;
}

.mega-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2B2B2B;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    transition: color 0.2s ease;
}

.mega-menu-trigger .trigger-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-nav-item:hover .mega-menu-trigger,
.mega-menu-trigger.active,
.mega-menu-trigger[aria-expanded="true"] {
    color: #0B0B0B;
    font-weight: 700;
}

.mega-nav-item:hover .mega-menu-trigger .trigger-arrow,
.mega-menu-trigger[aria-expanded="true"] .trigger-arrow {
    transform: rotate(-135deg) translateY(0);
}

/* Floating Structured Dropdown Container (Platform & Contextual Menus) */
.mega-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 340px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s ease;
    z-index: 1200;
    box-sizing: border-box;
}

/* Hover bridge between trigger and container */
.mega-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* Wide Structured Dropdown Grid (Core Intelligence Applications) */
.mega-dropdown-menu.wide {
    width: 620px;
    max-width: calc(100vw - 32px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.95rem;
}

/* Active / Open States for Dropdown */
.mega-nav-item:hover > .mega-dropdown-menu,
.mega-nav-item:focus-within > .mega-dropdown-menu,
.mega-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Dropdown Link Item Card */
.dropdown-link-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.dropdown-link-item:hover,
.dropdown-link-item:focus-visible {
    background: #FAF8F5;
    border-color: rgba(229, 229, 226, 0.8);
    transform: translateX(2px);
    outline: none;
}

.dropdown-link-title {
    font-family: var(--font-heading, inherit);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-black, #0B0B0B);
    margin-bottom: 0.2rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-link-desc {
    font-size: 0.77rem;
    color: #666660;
    line-height: 1.38;
    font-weight: 400;
}

@media (max-width: 1280px) {
    .mega-dropdown-menu.wide {
        width: 550px;
    }
}

@media (max-width: 1140px) {
    .nav-desktop .mega-dropdown-menu {
        display: none !important;
    }
}

/* Full Width Explore Mega Menu Dropdown */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(229, 229, 226, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1100;
    padding: 0;
    max-height: calc(100vh - var(--header-height, 76px) - 16px) !important;
    max-height: calc(100dvh - var(--header-height, 76px) - 16px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

.mega-nav-item:hover .mega-menu-dropdown,
.mega-nav-item:focus-within .mega-menu-dropdown,
.mega-menu-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: var(--container-max, 1240px);
    margin: 0 auto;
    padding: 1.75rem 2rem 1.25rem;
    width: 100%;
}

.mega-menu-grid-full {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.mega-col-heading {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8E8E8A;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #E5E5E2;
}

.mega-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-link-item {
    display: block;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    background: transparent;
}

.mega-link-item:hover {
    background: #FAF8F5;
    transform: translateX(2px);
}

.mega-link-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0B0B0B;
    margin-bottom: 0.15rem;
}

.mega-link-desc {
    font-size: 0.76rem;
    color: #666660;
    line-height: 1.35;
    font-weight: 400;
}

/* Mega Menu Featured Bottom Bar */
.mega-featured-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAF8F5;
    border: 1px solid #E6DFD5;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    margin-top: 1.25rem;
    gap: 1rem;
}

.mega-featured-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.featured-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9A6700;
}

.featured-text {
    font-size: 0.85rem;
    color: #2B2B2B;
    margin: 0;
    font-weight: 500;
}

.featured-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: #0B0B0B;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.featured-cta-btn:hover {
    background: #2B2B2B;
    color: #FFFFFF;
}

/* Mobile Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-black);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer Overlay & Accordions */
body.mobile-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-white, #FFFFFF);
    z-index: 1500;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-drawer.active {
    display: flex;
}

.mobile-drawer-header {
    flex: 0 0 auto;
    height: var(--header-height, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid var(--color-light-grey, #E5E5E2);
    background-color: var(--color-white, #FFFFFF);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.85rem;
    line-height: 1;
    color: var(--color-black, #0B0B0B);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm, 4px);
    transition: background-color 0.15s ease;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:focus {
    background-color: var(--color-offwhite, #F7F5F0);
}

.mobile-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.25rem 1.5rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 24px));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-mid-grey, #8E8E8A);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-family: var(--font-heading, inherit);
    font-weight: 700;
    color: var(--color-black, #0B0B0B);
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--color-light-grey, #E5E5E2);
}

.mobile-accordion-item {
    border-bottom: 1px solid var(--color-light-grey, #E5E5E2);
}

.mobile-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-family: var(--font-heading, inherit);
    font-weight: 700;
    color: var(--color-black, #0B0B0B);
    cursor: pointer;
    text-align: left;
}

.mobile-accordion-content {
    display: none;
    padding-bottom: 1.25rem;
    padding-left: 0.25rem;
}

.mobile-accordion-item.active .mobile-accordion-content {
    display: block;
}

.mobile-accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-arrow {
    transition: transform 0.2s ease;
    font-size: 1.1rem;
    display: inline-block;
}

.mobile-subgroup-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-mid-grey, #8E8E8A);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.mobile-subgroup-title:first-child {
    margin-top: 0.5rem;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
    color: var(--color-graphite, #2B2B2B);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm, 4px);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-sublink:hover,
.mobile-nav-sublink:focus {
    background-color: var(--color-offwhite, #F7F5F0);
    color: var(--color-black, #0B0B0B);
}

.mobile-featured-cta-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-offwhite, #F7F5F0);
    border: 1px solid var(--color-light-grey, #E5E5E2);
    border-radius: var(--radius-md, 8px);
}

.mobile-featured-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black, #0B0B0B);
    background: var(--color-light-grey, #E5E5E2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.mobile-featured-text {
    font-size: 0.92rem;
    color: var(--color-graphite, #2B2B2B);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Editorial Hero & Columns */
.hero-wrapper {
    padding-top: clamp(4rem, 7vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.hero-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-image-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3;
    background-color: var(--color-light-grey);
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4-Step Process Journey */
.journey-step-card {
    background-color: var(--color-white);
    border: 1px solid var(--border-color);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-md);
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-light-grey);
    line-height: 1;
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: var(--text-inverse);
    padding-top: 5rem;
    padding-bottom: 3rem;
    margin-top: auto;
    border-top: 1px solid var(--color-graphite);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-inverse-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--color-graphite);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-inverse-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.disclaimer-banner {
    background-color: var(--color-dark-surface);
    border: 1px solid var(--color-graphite);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 3rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-inverse-muted);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    body {
        padding-top: var(--header-height, 68px);
    }

    .site-header {
        height: var(--header-height, 68px);
    }

    .nav-desktop {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   CROWNATESTUDIO LUXURY ARCHITECTURAL DESIGN TOKENS & MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Ambient Architectural CAD Grid & Light Mesh */
.hero-ambient-grid {
    position: relative;
    overflow: hidden;
    background-color: var(--color-offwhite);
    background-image: 
        radial-gradient(circle at 18% 28%, rgba(197, 160, 89, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 72%, rgba(16, 185, 129, 0.07) 0%, transparent 48%),
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.hero-ambient-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.6), rgba(16, 185, 129, 0.6), transparent);
    opacity: 0.7;
    animation: cadScanline 8s ease-in-out infinite;
}

@keyframes cadScanline {
    0%, 100% { transform: translateY(-10px); opacity: 0; }
    15% { opacity: 0.8; }
    50% { transform: translateY(480px); opacity: 0.6; }
    85% { opacity: 0.8; }
}

/* 2. Tactile Button Physics & Ambient Shimmer */
.btn {
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                border-color 0.2s ease,
                color 0.2s ease;
    will-change: transform;
}

.btn:active {
    transform: translateY(1.5px) scale(0.985);
}

.btn-primary {
    box-shadow: 0 2px 8px rgba(11, 11, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 11, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.22) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    transition: none;
}

.btn-shimmer:hover::after {
    animation: btnShineSweep 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes btnShineSweep {
    0% { left: -60%; }
    100% { left: 140%; }
}

/* 3. Keyboard Shortcut Badge in Header */
.cmd-kbd-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace, inherit;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #444;
    line-height: 1;
    margin-left: 0.35rem;
    transition: all 0.2s ease;
}

.cst-cmd-nav-btn:hover .cmd-kbd-badge {
    background: #0B0B0B;
    color: #FFFFFF;
    border-color: #0B0B0B;
}

/* 4. Luxury Skeleton Loader Animations */
.pm-skeleton-box {
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.04) 25%, 
        rgba(0, 0, 0, 0.08) 37%, 
        rgba(0, 0, 0, 0.04) 63%
    );
    background-size: 400% 100%;
    animation: pmSkeletonPulse 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes pmSkeletonPulse {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 5. Smooth View Entry Animations */
.pm-view-enter {
    animation: pmViewSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pmViewSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Milestone Celebratory Seal Animation */
.milestone-seal-glow {
    animation: milestoneSealGlow 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes milestoneSealGlow {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 14px rgba(197, 160, 89, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header.scrolled,
    .mega-menu-dropdown,
    .mega-dropdown-menu {
        transition: none !important;
        animation: none !important;
    }
}
