/* GLOBAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scrollbar-gutter: stable;
    color-scheme: dark;
    font-family: 'Segoe UI', sans-serif;
    --color-bg: rgb(2, 2, 2);
    --color-gold: rgb(159, 110, 35);
    --color-gold-transparent: rgba(159, 110, 35, 0.4);
    --color-gold-transparent2: rgba(159, 110, 35, 0.2);
    --color-hover: #cccccc;
    color: #f6f6f6;
    background-color: var(--color-bg);
}

body {
    min-height: 100vh;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* HEADER */

/* Hide mobile-specific elements by default on desktop */
.mobile-logo,
.menu-toggle {
    display: none;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

header {
    position: sticky;
    z-index: 10;
    top: 0;
    backdrop-filter: blur(24px);
}

header::after {
    content: '';
    position: absolute;
    left: 5rem;
    right: 5rem;
    bottom: 0;
    height: 2px;
    background: var(--color-gold-transparent);
}

.navbar {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10rem;
    gap: 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.name {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

/* NAV LINK */

.nav-link {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    border-bottom: 2px solid var(--color-gold);
}


/* BUTTON LINK */

.button-link {
    border: 1px solid var(--color-gold);
    border-radius: 99px;
    padding: 0.65rem 1rem;
}

.button-link:hover,
.button-link:focus-visible {
    background: var(--color-gold-transparent);
}

.lang-menu-item {
    display: flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    line-height: 0;
}

.lang-toggle img {
    display: block;
    width: 18px;
    height: 18px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

/* MAIN CONTENT */

.hero-wrapper {
    padding: 3rem 5rem;
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-visual {
    display: flex;
    justify-content: right;
}

.hero-motto {
    padding: 0 4rem;
    display: flex;
    margin: auto 0;
    justify-content: left;
}

.motto-text {    
    max-width: 30rem;
    margin: 0;
    font-family: Palatino Linotype, serif;
    font-size: 38px;
    font-weight: bold;
}

.logo-frame {
    width: 640px;
    display: grid;
    place-items: center;
    position: relative;
    padding: 1rem;
}

.hero-logo {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
}


/* SECTION CONTENT */

.section {
    max-width: 1800px;
    padding: 2rem 13rem 5rem 14rem;
    margin: 0 auto;
    border-top: 1px solid var(--color-gold-transparent2);
    scroll-margin-top: 4rem;
}

.section-content {
    text-align: justify;
    line-height: 1.9;
}

.section h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 0.5rem;
}

/* CONTACT CONTENT*/

.contact {
    display: flex;
    flex-direction: column;
    padding: 2rem 13rem 5rem 14rem;
    max-width: 1800px;
    margin: 0 auto;
    gap: 4.5rem;
}

.contact-content h2 {
    font-size: 2.5rem;
}

/* GDPR CONTENT */

.gdpr-content {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.gdpr-content h3 {
    margin-bottom: 0.5rem;
}

.gdpr-content p {
    margin-bottom: 0.2rem;
}

.gdpr-content ul,
.gdpr-content ol {
    padding-left: 1.5rem;
}


/* FOOTER */

footer {
    margin-top: 2rem;
    padding: 2rem 2rem 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    left: 5rem;
    right: 5rem;
    top: 0;
    height: 2px;
    background: var(--color-gold-transparent);
}

.footer-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: center;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
    padding: 0 1rem 3rem;
    margin: 0 auto;
}

.footer-grid strong {
    display: block;
    margin-bottom: 0.8rem;
}

.footer-grid > *:nth-child(2) {
  margin-left: 11.4rem;
  margin-right: 14rem;
}

.footer-nav {
    display: grid;
    gap: 0.5rem;
}

.footer-nav a {
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--color-hover);
    font-weight: 600;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #a7a7a7;
    font-size: 0.9rem;
}


/* RESPONSIVE */

@media (max-width: 940px) {
    /* Swap Brand Text for Logo */
    .name {
        font-size: 1rem;
    }

    .contact-name {
        display: none;
    }

    .mobile-logo {
        display: none;
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    .contact-logo {
        display: block;
        height: 60px;
        width: auto;
    }


    /* 1. FORCE NAVBAR TO STRETCH TO SCREEN EDGES */
    .navbar {
        padding: 0.75rem 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* 2. MAKE CONTAINER FULL WIDTH TO PUSH ELEMENTS TO THE MARGINS */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }

    /* Hamburger Button Styling */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 100;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #f6f6f6;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* 3. ALIGN THE DROPDOWN DRAWER PERFECTLY WITH THE NEW EDGES */
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem); /* Dynamically drops right below the edge padding */
        left: -1rem;
        right: -1rem;
        background-color: var(--color-bg);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 2rem; /* Comfortable padding inside the opened menu */
        border-bottom: 1px solid var(--color-gold-transparent);
        width: calc(100% + 2rem);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link,
    .button-link {
        display: block;
        width: 100%;
    }

    .button-link {
        text-align: center;
    }

    /* HERO WRAPPER OPTIMIZATION */
    .hero-wrapper {
        padding: 2rem 0 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        gap: 3rem;
        text-align: center;
    }

    .hero-motto {
        width: 100%;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0 1rem;
    }

    .motto-text {
        font-size: clamp(1.7rem, 4vw, 2.6rem);
        line-height: 1.08;
        width: 100%;
        max-width: none;
        margin: 0;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-frame {
        width: min(100%, 22rem);
        padding: 0.5rem;
    }

    /* MAIN CONTENT SECTIONS OPTIMIZATION */
    .section {
        padding: 5rem 1.5rem; 
        max-width: 100%;
        scroll-margin-top: 5rem;
    }

    .section-content {
        text-align: justify;
        line-height: 1.7;
    }

    /* GDPR SECTION SPACERS */
    .gdpr-section {
        padding-top: 3rem;
    }

    .section-title {
        font-size: 0.7rem;
    }

    .gdpr-content {
        gap: 1.5rem;
        text-align: left;
    }

    /* CONTACT SECTION SPACERS */
    .contact {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        max-width: 100%;
        gap: 3.5rem;
    }

    .contact-content {
        gap: 3rem;
        text-align: left;
    }

    .contact-content h2 {
    font-size: 1.7rem;
    }

    /* FOOTER GRID OPTIMIZATION */
    footer {
        padding: 2rem 1.25rem 1rem;
    }

    .footer-company {
        display: none;
    }

    .footer-links {
        padding-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        text-align: left;
        gap: 2rem;
        padding: 0 0 2rem;
        max-width: 100%;
    }

    /* Strips desktop alignment shifts so columns stack neatly */
    .footer-grid > *:nth-child(2) {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-grid > * {
        width: 100%;
    }
}