/* ============================================
   Eurenda Fusion Tech — Shared Custom Styles
   Base component styles used across multiple pages.
   Do not alter values if they affect the design system.
   ============================================ */

/* Material Symbols base (consistent weight/opacity control) */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Shared frosted surface. Add page-specific classes for page-only interactions. */
.surface-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Brand gradient helpers */
.brand-gradient-text {
    background: linear-gradient(to right, #fd5d86, #b22350);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-gradient-background {
    background: linear-gradient(135deg, #fd5d86 0%, #b22350 100%);
}

/* Shared site header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(197, 198, 205, 0.3);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(24, 33, 50, 0.05);
    transition: box-shadow 0.2s ease;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 64px;
    transition: padding 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(24, 33, 50, 0.1);
}

.site-header.is-scrolled .site-header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-logo {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo__image {
    display: block;
    width: auto;
    height: 70px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav__link,
.mobile-nav__link {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #45474c;
    transition: color 0.3s ease;
}

.site-nav__link:hover {
    color: #182132;
}

.site-nav__link[aria-current="page"] {
    color: #b22350;
    border-bottom: 2px solid #b22350;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 1px solid transparent;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.button--primary {
    color: #ffffff;
    background: #182132;
}

.button--brand {
    color: #ffffff;
    background: linear-gradient(135deg, #fd5d86 0%, #b22350 100%);
}

.button--outline {
    color: #182132;
    border-color: #182132;
    background: transparent;
}

.button:hover {
    opacity: 0.82;
}

.button--outline:hover {
    color: #ffffff;
    background: #182132;
    opacity: 1;
}

/* Mobile navigation */
.mobile-nav summary {
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav__trigger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #182132;
    cursor: pointer;
}

.mobile-nav__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    width: min(82vw, 280px);
    margin-top: 12px;
    padding: 20px;
    border: 1px solid rgba(197, 198, 205, 0.3);
    background: #f8f9fa;
    box-shadow: 0 18px 40px rgba(24, 33, 50, 0.16);
}

.mobile-nav__link {
    display: block;
    padding: 12px 0;
}

.mobile-nav__link[aria-current="page"] {
    margin-bottom: 12px;
    padding-bottom: 12px;
    color: #b22350;
    border-bottom: 1px solid #b22350;
}

.mobile-nav__cta {
    width: 100%;
    margin-top: 16px;
}

/* Shared site footer */
.site-footer {
    width: 100%;
    padding: 120px 0;
    color: #ffffff;
    border-top: 1px solid #2d3648;
    background: #182132;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.site-footer__logo {
    width: auto;
    height: 64px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer__summary {
    max-width: 320px;
    color: #bdc6dd;
    line-height: 1.5;
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__heading {
    margin-bottom: 8px;
    color: #ffd9de;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__link,
.site-footer__text {
    color: #bdc6dd;
    transition: color 0.3s ease;
}

.site-footer__link:hover {
    color: #fd5d86;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 64px auto 0;
    padding: 32px 64px 0;
    border-top: 1px solid rgba(150, 159, 181, 0.2);
}

.site-footer__copyright {
    color: #bdc6dd;
    font-size: 14px;
    opacity: 0.6;
}

.site-footer__credit {
    color: #bdc6dd;
    font-size: 14px;
    white-space: nowrap;
}

.site-footer__credit a {
    color: #ffd9de;
    transition: color 0.3s ease;
}

.site-footer__credit a:hover {
    color: #fd5d86;
}

/* Home hero image carousel */
.hero-carousel {
    background: #f8f9fa;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06) translateX(2%);
    animation: heroSlide 24s infinite;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

.hero-slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes heroSlide {
    0% {
        opacity: 0;
        transform: scale(1.08) translateX(3%);
    }

    8%,
    25% {
        opacity: 1;
    }

    33% {
        opacity: 0;
        transform: scale(1.02) translateX(-3%);
    }

    100% {
        opacity: 0;
        transform: scale(1.02) translateX(-3%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
    }

    .hero-slide:first-child {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .site-header__inner {
        padding: 16px 20px;
    }

    .site-header.is-scrolled .site-header__inner {
        padding: 10px 20px;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .mobile-nav {
        position: relative;
        display: block;
    }

    .site-footer {
        padding: 72px 0;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        text-align: center;
    }

    .site-footer__brand {
        align-items: center;
    }

    .site-footer__summary {
        margin: 0 auto;
    }

    .site-footer__bottom {
        flex-direction: column;
        margin-top: 40px;
        padding: 32px 20px 0;
        text-align: center;
    }

    .px-margin-desktop {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .py-section-gap {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    .pt-24 {
        padding-top: 56px !important;
    }

    .pb-section-gap {
        padding-bottom: 72px !important;
    }

    .mb-20,
    .mb-16 {
        margin-bottom: 40px !important;
    }

    .mt-20,
    .mt-16,
    .mt-12 {
        margin-top: 40px !important;
    }

    .text-display-lg {
        font-size: 40px !important;
        line-height: 46px !important;
        letter-spacing: 0 !important;
    }

    .text-headline-lg {
        font-size: 34px !important;
        line-height: 42px !important;
    }

    .text-headline-md {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .text-body-lg {
        font-size: 16px !important;
        line-height: 26px !important;
    }

    .gap-gutter {
        gap: 20px !important;
    }

    .p-16,
    .p-12,
    .p-10,
    .p-8 {
        padding: 28px !important;
    }

    .min-h-\[90vh\] {
        min-height: 72vh !important;
    }

    .min-h-\[500px\] {
        min-height: 360px !important;
    }

    .max-w-\[800px\] {
        max-width: 360px !important;
    }

    .flex.justify-center.gap-4 {
        flex-wrap: wrap;
    }

    a[class*="px-10"],
    button[class*="px-10"],
    button[class*="px-12"],
    .button--wide-mobile {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}
