/* =========================================
   @FONT-FACE  — Lato (local)
   ========================================= */
@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-ThinItalic.ttf") format("truetype");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("fonts/Lato-BlackItalic.ttf") format("truetype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

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

:root {
    /* -- Colors -- */
    --color-primary: #7f3035;
    --color-secondary: #7f3035;
    --color-accent: #7f3035;
    --color-text: #25282a;
    --color-text-light: rgba(36, 40, 43, 0.65);
    --color-white: #ffffff;
    --color-bg-light: rgba(36, 40, 43, 0.15);
    --color-bg-dark: rgba(36, 40, 43, 0.8);
    --color-bg-input: rgba(36, 40, 43, 0.15);
    --color-border: rgba(36, 40, 43, 0.15);

    /* -- Typography -- */
    --font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* -- Spacing -- */
    --section-padding: 80px;
    --container-width: 1200px;
    --header-height: 72px;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 8%;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    padding: 1rem 8%;
}

.header__logo img {
    height: 40px;
    width: auto;
}

/* =========================================
   HERO VIDEO
   ========================================= */
.hero {
    display: flex;
    gap: 24px;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
    background-image: url('images/bg_tr.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 700px;
    padding: 48px 8%;
}
.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/bg_bl.png');
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 900px;
    z-index: -1;
    opacity: 0.4;
}

.hero__video-container {
    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: end;
    overflow: hidden;
}

.hero__video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.hero__video video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.hero__content {
    flex-shrink: 0;
    width: max(300px, calc(74vw / 3));
    text-align: left;
    padding: 0;
}

.hero__title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    margin-top: 120px;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================
   CONTENT SECTION
   ========================================= */
.content-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--color-white) var(--section-padding));
    margin-block-start: calc(var(--section-padding) * -1);
    padding-block-start: var(--section-padding);
}

.content-section__title {
    font-size: 42px;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1;
    font-weight: 500;
}

.content-section__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.content-section__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* =========================================
   FORM SECTION
   ========================================= */
.form-section {
    padding: var(--section-padding) 0;
    padding-top: calc(var(--section-padding) + 56px);
    position: relative;
}

.form-section__title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 42px;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-primary);
    padding: 1rem 8%;
    background-image: url('./images/bg_bl.png'), url('./images/bg_tr.png') !important;
    background-repeat: repeat-y !important;
    background-position: top left 0,
    top right 0 !important;
}

.form-section__subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 50%;
    margin: 0 auto;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form__input,
.form__textarea {
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: none;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease;
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.12);
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
}

.form__privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.form__privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.form__privacy a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form__submit {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease,
    transform 0.1s ease;
    justify-self: start;
}

.form__submit:hover {
    background: var(--color-secondary);
}

.form__submit:active {
    transform: scale(0.98);
}

/* =========================================
   PRIVACY MODAL
   ========================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal__content-wrapper {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 720px;
    height: 85vh;
    height: 85dvh;
}

.modal__content {
    background: var(--color-white);
    overflow-y: auto;
    height: 100%;
    padding: 2rem;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.modal.open .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal__close:hover {
    color: var(--color-text);
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal__body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

.modal__body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal__body p {
    margin-bottom: 0.75rem;
}

.modal__body a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--color-white);
    padding: 0;
}

.footer__bottom {
    background: var(--color-bg-light);
    padding-block: 2.5rem;
}

.footer__bottom .container {
    display: flex;
    gap: 2rem;
    font-size: 13px;
    line-height: 1.6;
}

.footer__logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer__info {
    flex: 1;
    font-style: normal;
    color: var(--color-text-light);
    line-height: 1.6;
}

.footer__info p {
    margin: 0;
}

.footer__info a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.footer__info a:hover {
    color: var(--color-primary);
}

.footer__legal {
    color: var(--color-text-light);
    font-size: 12px;
}

.footer__legal a {
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: var(--color-primary);
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 0.8rem;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1280px) {
    .hero {
        flex-direction: column;
        gap: 24px;
        padding: 24px 8%;
        height: auto;
    }

    .hero__content {
        width: 100%;
    }

    .hero__title {
        margin-block-start: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-padding: 56px;
    }

    .header__logo img {
        height: 28px;
    }

    /* Content */
    .content-section__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Form */
    .form {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Footer */
    .footer__bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}
