/* SELF-HOSTED FONT */
@font-face {
    font-family: 'Host Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/host-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Host Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/host-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* VARIABLES & BASIC RESET */
:root {
    --font-main: 'Host Grotesk', sans-serif;
    --color-dark: #131516;
    --color-light: #FFFFFF;
    --color-sand: #ECCFAC;
    --color-gray-900: #474E51;
    --color-black: #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Smooth cross-page transitions (language switch, etc.) */
@view-transition { navigation: auto; }

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 200;
    border-radius: 0 0 4px 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    width: 1px;
    height: 1px;
}
.skip-link:focus {
    top: 0;
    clip: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    width: auto;
    height: auto;
}

/* Improved focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--color-sand);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-sand);
    outline-offset: 2px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-dark);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
}

.container {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 80px;
}

.btn {
    display: inline-flex;
    height: 60px;
    padding: 18px 26px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--color-gray-900);
    color: var(--color-light);
    border-radius: 100px;
    border: 2px solid var(--color-gray-900);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}
header.scrolled .btn:hover {
    background-color: rgba(0,0,0,0.1);
    color: var(--color-dark);
    border-color: var(--color-dark);
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
header.scrolled {
    padding: 1rem 0;
    background-color: var(--color-sand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}
header.scrolled .logo img { filter: none; }
.desktop-nav { display: flex; align-items: center; gap: 10px; color: var(--color-light); }

/* Language Switcher Dropdown */
.lang-switcher { position: relative; z-index: 102; }
.lang-switcher-toggle { display: flex; align-items: center; gap: 12px; font-weight: 600; background: rgba(255,255,255,0.2); border: none; cursor: pointer; color: var(--color-light); font-family: var(--font-main); font-size: 20px; padding: 18px 26px; height: 60px; border-radius: 100px; }
header.scrolled .lang-switcher-toggle { color: var(--color-dark); background: rgba(0,0,0,0.08); }
.lang-switcher-toggle img { width: 30px; height: 30px; border-radius: 50%; }
.lang-text { display: inline-block; min-width: 28px; text-align: center; }
.lang-arrow { transition: transform 0.3s ease; }
header.scrolled .lang-arrow { color: var(--color-dark); }
.lang-switcher.active .lang-arrow { transform: rotate(180deg); }
.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 5px;
    display: none;
    min-width: 150px;
}
.lang-switcher.active .lang-switcher-menu { display: block; }
.lang-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--color-dark); font-family: var(--font-main); font-weight: 700; font-size: 1rem; padding: 10px 15px; width: 100%; border-radius: 5px; text-align: left; text-decoration: none; }
.lang-btn:hover { background-color: #f0f0f0; }
.lang-btn img { width: 24px; height: 24px; border-radius: 50%; }

.mobile-menu-toggle { display: none; }

/* HERO */
.hero {
    position: relative;
    color: var(--color-light);
    height: 900px;
    display: flex;
    align-items: flex-end;
    margin-top: -200px;
    padding: 200px 0 120px 0;
    background-color: var(--color-dark);
    background-image: url('assets/header-img.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.45); z-index: 1; }
.hero .container { position: relative; z-index: 2; max-width: 1231px; text-align: left; display: flex; flex-direction: column; gap: 30px; }
.hero h1 {
    font-weight: 600;
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1.0;
    color: var(--color-light);
}
.hero p {
    font-size: clamp(18px, 2.8vw, 38px);
    font-weight: 400;
    max-width: 1000px;
    line-height: 1.3;
}

/* APPLICATIONS */
.applications { padding: 120px 0; background-color: var(--color-dark); text-align: left; }
.applications .section-title { margin-bottom: 4rem; color: var(--color-sand); font-size: clamp(40px, 6.5vw, 90px); font-weight: 600; padding-left: 140px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: start; padding: 0 140px; }
.card { text-align: left; display: flex; flex-direction: column; gap: 60px; padding: 30px 0; }
.card img { height: 115px; width: 115px; object-fit: contain; }
.card-text { display: flex; flex-direction: column; gap: 30px; }
.card h3 {
    font-family: var(--font-main);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--color-sand);
    position: relative;
    line-height: 1.1;
}
.card p { color: var(--color-sand); font-size: clamp(18px, 2.3vw, 32px); font-weight: 400; line-height: 1.4; }

/* ABOUT */
.about { height: 594px; text-align: left; display: flex; align-items: center; background-color: var(--color-light); }
.about .container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; padding-left: 140px; padding-right: 0; width: 100%; }
.about-text { flex: 1; min-width: 320px; max-width: 959px; display: flex; flex-direction: column; gap: 20px; }
.about-text .section-title { color: var(--color-dark); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; line-height: 1.2; }
.about-text p { font-size: clamp(18px, 2.3vw, 32px); font-weight: 500; color: var(--color-gray-900); line-height: 1.4; }
.about-map { flex: 1; text-align: center; min-width: 300px; }
.about-map img { max-width: 450px; width: 100%; height: auto; }

/* FOOTER */
footer { padding: 0; }
.contact-section { padding: 120px 140px; background: var(--color-sand); text-align: left; overflow: hidden; }
.contact-section .container { padding: 0; max-width: 100%; }
.contact-section .section-title {
    color: var(--color-dark);
    margin-bottom: 40px;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
}
.email-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 30px; font-size: clamp(24px, 4.7vw, 65px); font-weight: 600; color: var(--color-dark); text-decoration: none; max-width: 100%; }
.email-link span, .email-link a { max-width: 100%; }
.email-link svg { width: 65px; height: 65px; }
.email-link svg path { fill: var(--color-dark); }
.bottom-bar { padding: 40px 0; background: var(--color-black); color: var(--color-light); }
.bottom-bar .container { display: flex; justify-content: space-between; align-items: center; padding-left: 80px; padding-right: 80px; }
.bottom-bar .logo img { width: 180px; height: auto; filter: brightness(0) invert(1); }
.bottom-bar-info { text-align: right; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.198px; display: flex; flex-direction: column; gap: 30px; }
.bottom-bar-info .company-details { display: flex; flex-direction: column; }
.bottom-bar-info p { color: var(--color-light); margin: 0; }
.company-legal { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.company-legal p { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    z-index: 1001;
    cursor: pointer;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-dark);
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-light);
    margin: 4px auto;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
header.scrolled .mobile-menu-toggle {
    background: var(--color-dark);
}
header.scrolled .mobile-menu-toggle span {
    background: var(--color-light);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-sand);
    z-index: 1002;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}
.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10px;
}
.mobile-menu-header .logo img {
    width: 140px;
    filter: none;
}
.mobile-menu-close {
    background: var(--color-dark);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 20px 0 30px;
}
.mobile-menu .btn {
    display: flex;
    text-align: center;
    margin: 0 20px 11px;
    background: var(--color-dark);
    border-color: var(--color-dark);
    width: calc(100% - 40px);
    height: 60px;
    font-size: 20px;
}

.lang-switcher-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 20px 30px;
    padding: 18px 26px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    height: 60px;
}
.lang-switcher-mobile span {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-dark);
}
.lang-switcher-mobile .lang-options {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-switcher-mobile .lang-btn {
    color: var(--color-dark);
    font-size: 16px;
    padding: 5px;
}
.lang-switcher-mobile .lang-btn img {
    width: 30px;
    height: 30px;
}
.lang-switcher-mobile .lang-btn.active-lang {
    text-decoration: underline;
    opacity: 0.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE (MOBILE) */
@media (max-width: 1440px) {
    .container { padding: 0 40px; }
    .applications .section-title { padding-left: 40px; font-size: 72px; }
    .about .container { padding-left: 40px; padding-right: 40px; }
    .bottom-bar .container { padding-left: 40px; padding-right: 40px; }
    .contact-section { padding: 100px 40px; }
    .grid { padding: 0 40px; }
}

@media (max-width: 992px) {
    .hero { min-height: 100vh; height: auto; margin-top: -200px; padding-top: 200px; padding-bottom: 80px; }
    .card { gap: 40px; }
    .about { height: auto; padding: 80px 0; }
    .email-link svg { width: 40px; height: 40px; }

    /* Footer — switch to vertical layout earlier */
    .bottom-bar .container { flex-direction: column; gap: 40px; text-align: center; }
    .bottom-bar-info { text-align: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 30px; }
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    header .logo img { width: 140px; }
    header { padding: 16px 0; }
    header .container { padding: 0 16px; }

    /* Hero */
    .hero {
        height: 100svh;
        margin-top: -120px;
        padding: 120px 0 40px;
        background-image: url('assets/header-img-768.webp');
        background-position: 70% center;
    }
    .hero .container { gap: 10px; padding: 0 30px; }
    .hero h1 { font-size: clamp(40px, 9vw, 48px); }

    /* Applications */
    .applications { padding: 80px 0; }
    .applications .section-title { padding-left: 30px; margin-bottom: 2rem; font-size: clamp(32px, 11vw, 60px); }
    .grid { grid-template-columns: 1fr; gap: 60px; padding: 0 30px; }
    .card { gap: 60px; }
    .card-text { gap: 20px; }

    /* About */
    .about { height: auto; padding: 60px 0; }
    .about .container { padding-left: 30px; padding-right: 30px; flex-direction: column-reverse; }
    .about-map img { max-width: 100%; }

    /* Contact */
    .contact-section { padding: 80px 30px; }
    .email-link { flex-direction: column; align-items: flex-start; gap: 15px; max-width: 100%; }
    .email-link svg { width: 40px; height: 40px; }

    /* Footer */
    .bottom-bar .container { flex-direction: column; gap: 40px; padding: 40px 30px; text-align: center; }
    .bottom-bar .logo img { width: 50px; height: auto; }
    .bottom-bar-info { text-align: center; font-size: 16px; gap: 20px; }

    .cookie-banner { bottom: 15px; padding: 20px; flex-direction: column; width: calc(100% - 40px); }
    .cookie-buttons { flex-wrap: wrap; justify-content: center; }
}