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

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 32px 48px;
    background: transparent;
    display: flex;
    align-items: center;
}

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.header__logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.header__logo-sub {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 4.5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    text-align: center;
    margin-top: 4px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/background_onemillion.png') center center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.20) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 400px;
}

.hero__title {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 200;
    letter-spacing: 8px;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
}

.hero__badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: #2f6e736a;
    padding: 14px 40px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero__badge:hover {
    background-color: #2f6f73;
    border-color: #2f6f73;
}

.hero__badge h2 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Footer ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #2f6f73;
    padding: 16px 48px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 16px;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__icon {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer__icon:hover {
    color: #ffffff;
}

.footer__credit {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.footer__credit a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2.5px;
    transition: color 0.3s ease;
}

.footer__credit a:hover {
    color: #ffffff;
}

.footer__text {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer__link {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 0.7;
}

.footer__form-btn {
    position: absolute;
    left: 30%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 6px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 101;
}

.footer__form-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

/* ===== Contact Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    transition: background 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.is-active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.55);
}

.modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(165deg, #598688 0%, #2f6f73 50%, #598688 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px 20px 0 0;
    padding: 40px 36px 36px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-active .modal {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: #ffffff;
}

.modal__title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    margin-bottom: 6px;
}

.modal__subtitle {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 28px;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal__field input,
.modal__field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.modal__field input::placeholder,
.modal__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 400;
}

.modal__field input:focus,
.modal__field textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.modal__field textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__submit {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.modal__submit:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal__feedback {
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    min-height: 18px;
    transition: color 0.3s ease;
}

.modal__feedback--success {
    color: #a8e6cf;
}

.modal__feedback--error {
    color: #ffb3b3;
}

/* ===== Responsive ===== */

/* Tablets and below */
@media (max-width: 1024px) {
    .header {
        padding: 28px 32px;
    }

    .hero__content {
        gap: 300px;
    }

    .footer {
        padding: 16px 32px;
    }

    .footer__credit {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .modal {
        max-width: 100%;
        padding: 32px 24px 28px;
        border-radius: 16px 16px 0 0;
    }

    .modal__title {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .modal__subtitle {
        margin-bottom: 22px;
    }
    .header {
        padding: 20px 24px;
    }

    .header__logo-text {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .header__logo-sub {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .hero__content {
        gap: 200px;
        padding: 0 20px;
    }

    .hero__title {
        font-size: clamp(32px, 8vw, 60px);
        letter-spacing: 4px;
    }

    .hero__badge {
        padding: 12px 32px;
    }

    .hero__badge h2 {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .footer {
        padding: 16px 24px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer__left {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .footer__credit {
        position: static;
        transform: none;
        order: 3;
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .footer__icons {
        gap: 16px;
        order: 2;
    }

    .footer__text {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .footer__link {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .footer__form-btn {
        position: static;
        transform: none;
        order: 1;
        font-size: 8px;
        padding: 5px 14px;
        letter-spacing: 2px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .modal {
        padding: 28px 20px 24px;
    }

    .modal__title {
        font-size: 14px;
        letter-spacing: 2.5px;
    }

    .modal__subtitle {
        font-size: 10px;
        margin-bottom: 18px;
    }

    .modal__field input,
    .modal__field textarea {
        padding: 11px 14px;
        font-size: 11px;
    }

    .modal__submit {
        padding: 12px;
        font-size: 10px;
    }
    .header {
        padding: 16px 20px;
    }

    .header__logo-text {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .header__logo-sub {
        font-size: 7px;
        letter-spacing: 2.5px;
        margin-top: 3px;
    }

    .hero__content {
        gap: 120px;
        padding: 0 16px;
    }

    .hero__title {
        font-size: clamp(28px, 10vw, 48px);
        letter-spacing: 3px;
        line-height: 1.2;
    }

    .hero__badge {
        padding: 10px 24px;
    }

    .hero__badge h2 {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .footer {
        padding: 14px 20px;
    }

    .footer__text {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .footer__link {
        font-size: 9px;
        letter-spacing: 0.8px;
        word-break: break-all;
    }

    .footer__form-btn {
        font-size: 7px;
        padding: 4px 12px;
        letter-spacing: 1.5px;
    }

    .footer__credit {
        font-size: 7px;
        letter-spacing: 1px;
        text-align: center;
    }

    .footer__icons {
        gap: 14px;
    }

    .footer__icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .hero__content {
        gap: 80px;
    }

    .hero__title {
        font-size: clamp(24px, 12vw, 40px);
        letter-spacing: 2px;
    }

    .hero__badge {
        padding: 8px 20px;
    }

    .hero__badge h2 {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .footer__link {
        font-size: 8px;
    }
}

/* Mobile landscape orientation */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .header {
        padding: 12px 24px;
    }

    .hero__content {
        gap: 80px;
    }

    .hero__title {
        font-size: clamp(24px, 6vw, 48px);
        letter-spacing: 3px;
    }

    .hero__badge {
        padding: 8px 24px;
    }

    .hero__badge h2 {
        font-size: 9px;
    }

    .footer {
        padding: 10px 24px;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__credit {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 7px;
    }
}
