/* 
   DESIGN SYSTEM: SYMPHONIC MODERNISM 
   Simple. Special. Not Boring.
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    /* Colors */
    --c-bg: #ffffff;
    --c-text: #111111;
    --c-accent: #a53c46;
    /* MK Feldthurns Red */
    --c-subtle: #f4f4f4;
    --c-glass: rgba(255, 255, 255, 0.7);
    --c-glass-border: rgba(255, 255, 255, 0.3);
    --c-glass-strong: rgba(255, 255, 255, 0.9);
    /* Typography */
    --f-main: 'Lato', sans-serif;

    /* Spacing */
    --container: 1400px;
    --header-h: 90px;

    /* Effects */
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blur: blur(16px);
    --radius: 16px;

    /* Animation */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--f-main);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.spacer-sm {
    height: 5vh;
}

.spacer-md {
    height: 10vh;
}

.spacer-lg {
    height: 20vh;
}

.vh-100 {
    height: 100dvh;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

.display-2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.display-3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.text-lead {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
    max-width: 600px;
}

.text-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 1rem;
    display: block;
}

/* NAVIGATION (FLOATING GLASS) */
.nav-wrapper {
    position: fixed;
    top: 1.3rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through around the bar */
    display: flex;
    justify-content: center;
    transition: transform 0.4s var(--ease-out);
}

.nav-bar {
    pointer-events: auto;
    background: var(--c-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--c-glass-border);
    padding: 1rem 2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0;
    /* Let space-between handle it */
    justify-content: space-between;
    /* Fix for desktop spacing */
    width: 78dvw;
    /* Floating feeling */
    max-width: 100vw;
    margin: 0 auto;
    /* Force Center */
    box-shadow: var(--shadow-glass);
    transition: all 0.4s var(--ease-out);
}

.pt-header {
    padding-top: 15vh;
}

.nav-wrapper.scrolled .nav-bar {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 1250px) {
    .nav-bar {
        width: 90dvw;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-wrapper {
        top: 1rem;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .nav-bar {
        width: 100%;
        justify-content: space-between;
        border-radius: 20px;
        padding: 0.8rem 1.5rem;
    }

    /* Fix Mobile Overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .hero-title-lg {
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
        font-size: clamp(3rem, 12vw, 6rem);
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--c-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    min-width: 200px;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-menu.scrolled {
    background: rgba(255, 255, 255, 0.9);;

}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(10px);
}

/* Bridge to prevent hover loss */
.dropdown::after {
    content: '';
    position: absolute;
    top: 130%;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: 0.2s;
    text-align: center;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--c-accent);
}

/* MOBILE BUTTON inside nav */
.menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-btn span {
    height: 2px;
    background: currentColor;
    width: 100%;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .menu-btn {
        display: flex;
    }
}

/* HERO (SPECIAL) */
.hero-special {
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: overlay;
    /* Cool effect */
}

.hero-content.normal {
    mix-blend-mode: normal;
}

/* Fallback */

.hero-title-lg {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: normal;
    /* Fix overflow globally */
    word-wrap: break-word;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    animation: riseUp 1.2s var(--ease-out) forwards 0.2s;
}

@keyframes riseUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDS & GRIDS */
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card-glass {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-glass:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
}

/* FOOTER */
.site-footer {
    background: #111;
    color: white;
    padding: 5rem 0;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

/* MISC */
.btn-pill {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--c-accent);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-pill:hover {
    background: #fff;
    color: var(--c-accent);
}

.btn-pill-2 {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    color: var(--c-accent);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border: 2px solid #dadada ;
}

.btn-pill-2:hover {
    background: var(--c-accent);
    color: #fff;
}