/* ═══════════════════════════════════════════════
   LetzHomes V2 — Dark Cinematic Full-Screen
   Inspired by 11-76.com single-image-city
   ═══════════════════════════════════════════════ */

/* ──────────────────
   Design Tokens
   ────────────────── */
:root {
    --black: #0a0a0a;
    --dark-1: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --dark-4: #333333;
    --gray-d: #555555;
    --gray-m: #888888;
    --gray-l: #aaaaaa;
    --gray-xl: #cccccc;
    --white: #ffffff;
    --accent: #c9a84c;
    --accent-2: #e8c964;
    --red: #DB0018;

    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────
   Reset & Base
   ────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

.hidden {
    display: none !important;
}


/* ──────────────────
   Preloader
   ────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 24px;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--dark-3);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}


/* ──────────────────
   Hero Full-Screen
   ────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Dark background with subtle Luxembourg city image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.88) 30%,
            rgba(10, 10, 10, 0.85) 50%,
            rgba(10, 10, 10, 0.88) 70%,
            rgba(10, 10, 10, 0.96) 100%),
        url('luxembourgl.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

/* Film grain overlay */
.hero-bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* Layered back-title */
.hero-back-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(100px, 18vw, 280px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}


/* ──────────────────
   Top Bar
   ────────────────── */
.top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--white);
}

.logo-mark {
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    transition: background 0.3s ease, color 0.3s ease;
}

.logo:hover .logo-mark {
    background: var(--accent);
    color: var(--black);
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-name em {
    font-style: normal;
    color: var(--accent);
}

.logo-sub {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gray-m);
    font-weight: 400;
    margin-top: -1px;
}


/* ──────────────────
   Language Switcher
   ────────────────── */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--dark-4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-l);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
    border-color: var(--accent);
    background: rgba(201, 168, 76, 0.06);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.lang-flag svg {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: block;
}

.lang-chevron {
    transition: transform 0.25s var(--ease-out);
    opacity: 0.5;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--dark-2);
    border: 1px solid var(--dark-4);
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s var(--ease-out);
    overflow: hidden;
    z-index: 200;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gray-l);
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background: var(--dark-3);
    color: var(--white);
}

.lang-option.active {
    color: var(--accent);
    font-weight: 600;
}


/* ──────────────────
   Hero Content
   ────────────────── */
.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px 10px;
    text-align: center;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-badge-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-badge span:last-child {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-m);
}

.hero-title {
    margin-bottom: 10px;
}

.hero-line-1 {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 5.5vw, 72px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.05;
}

.hero-line-2 {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(28px, 4.5vw, 60px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.1;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-l);
    max-width: 560px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}


/* ──────────────────
   Countdown
   ────────────────── */
.countdown {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 24px;
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.countdown-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 0.02em;
    color: var(--white);
    min-width: 70px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    color: var(--accent);
    margin: 0 8px;
    opacity: 0.7;
    align-self: center;
}

.countdown-label {
    display: block;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-m);
    text-align: center;
    margin-top: -4px;
}

.countdown-item {
    flex-direction: column;
    align-items: center;
}

.countdown-item .countdown-sep {
    display: none;
}

/* Insert separators between items using pseudo-elements */
.countdown-item+.countdown-item::before {
    content: '//';
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.5;
    margin: 0 16px;
    align-self: center;
    position: relative;
    top: -8px;
}

.countdown-item+.countdown-item {
    flex-direction: column;
}

/* Override — use row with separator via wrapping */
.countdown {
    flex-wrap: nowrap;
    align-items: center;
}

.countdown-item {
    position: relative;
}

.countdown-item+.countdown-item::before {
    content: '//';
    position: absolute;
    left: -22px;
    top: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.4;
    margin: 0;
}

.countdown-item+.countdown-item {
    margin-left: 32px;
}


/* ──────────────────
   Newsletter Form
   ────────────────── */
.newsletter-form {
    width: 100%;
    max-width: 480px;
    margin-bottom: 12px;
}

.newsletter-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-4);
    border-radius: 2px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

#email-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.04em;
    outline: none;
    min-width: 0;
}

#email-input::placeholder {
    color: var(--gray-d);
    font-weight: 300;
}

.btn-subscribe {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 28px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
}

.btn-subscribe:active {
    transform: scale(0.97);
}

.btn-subscribe:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    font-size: 13px;
    font-weight: 400;
    min-height: 20px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: var(--red);
}


/* ──────────────────
   Social Links
   ────────────────── */
.social-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--dark-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-m);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 168, 76, 0.06);
    transform: translateY(-2px);
}


/* ──────────────────
   Hero Footer
   ────────────────── */
.hero-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--gray-d);
    letter-spacing: 0.08em;
}

.hero-footer a {
    color: var(--gray-m);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-footer a:hover {
    color: var(--accent);
}


/* ──────────────────
   Modal
   ────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s;
}

.modal-card {
    position: relative;
    background: var(--dark-2);
    border: 1px solid var(--dark-4);
    padding: 48px 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--dark-4);
    background: transparent;
    font-size: 18px;
    color: var(--gray-m);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.modal-separator {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 20px;
}

.modal-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-l);
    margin-bottom: 28px;
}

.modal-btn {
    width: 100%;
    padding: 16px;
}


/* ──────────────────
   i18n transitions
   ────────────────── */
[data-i18n] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-i18n].i18n-out {
    opacity: 0;
    transform: translateY(6px);
}


/* ──────────────────
   Scrollbar
   ────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-4);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-d);
}


/* ──────────────────
   Responsive
   ────────────────── */
@media (max-width: 768px) {
    .top-bar {
        padding: 20px;
    }

    .hero-content {
        padding: 0 20px 20px;
    }

    .hero-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-back-title {
        font-size: 80px;
    }

    .countdown-item+.countdown-item {
        margin-left: 20px;
    }

    .countdown-item+.countdown-item::before {
        left: -16px;
        font-size: 16px;
    }

    .countdown-num {
        font-size: 32px;
        min-width: 50px;
    }

    .newsletter-wrap {
        flex-direction: column;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    #email-input {
        padding: 14px;
        text-align: center;
    }

    .modal-card {
        padding: 36px 24px 28px;
    }
}

@media (max-width: 480px) {
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .countdown-item+.countdown-item {
        margin-left: 0;
    }

    .countdown-item+.countdown-item::before {
        display: none;
    }

    .hero-back-title {
        display: none;
    }

    .social-row {
        gap: 12px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }
}