:root {
    --cyan: #21c7f3;
    --cyan-soft: #8be8ff;
    --ink: #071822;
    --panel: #0d2230;
    --white: #ffffff;
    --muted: #c8d7df;
    --line: rgba(255, 255, 255, 0.18);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--white);
    background: var(--ink);
}

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: url("../img/hero-dyanalife.jpg");
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-rows: auto 1fr;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 12, 18, 0.92) 0%, rgba(4, 20, 29, 0.76) 42%, rgba(5, 33, 46, 0.38) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
}

.brand-bar {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0;
}

.brand-bar__logo {
    display: block;
    width: min(320px, 72vw);
    height: auto;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    align-self: center;
    padding: 52px 0 100px;
}

.hero__eyebrow {
    max-width: 740px;
    margin: 0 0 20px;
    color: var(--cyan-soft);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 890px;
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 3.75rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero__copy {
    max-width: 680px;
    margin: 24px 0 34px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.button {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:focus-visible,
.modal__close:focus-visible,
input:focus,
textarea:focus {
    outline: 3px solid rgba(33, 199, 243, 0.45);
    outline-offset: 3px;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    padding: 0 34px;
    color: #03131c;
    background: var(--cyan);
    box-shadow: 0 18px 36px rgba(33, 199, 243, 0.24);
}

.button--submit {
    width: 100%;
    color: #03131c;
    background: var(--cyan);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal.is-open {
    display: grid;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 14, 0.78);
    backdrop-filter: blur(10px);
}

.modal__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 34, 48, 0.98);
    box-shadow: var(--shadow);
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.modal__eyebrow {
    margin: 0 0 10px;
    color: var(--cyan-soft);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal h2 {
    margin: 0 48px 24px 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.08;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    color: #eaf7fb;
    font-size: 0.94rem;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    padding: 13px 14px;
}

.field textarea {
    resize: vertical;
    min-height: 126px;
}

.field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 22px;
    color: var(--cyan-soft);
    line-height: 1.45;
}

.form-status.is-error {
    color: #ffb7b7;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .brand-bar {
        width: min(100% - 28px, 1180px);
        padding: 22px 0;
    }

    .hero {
        background-position: 58% center;
    }

    .hero__shade {
        background: linear-gradient(180deg, rgba(2, 12, 18, 0.84) 0%, rgba(2, 12, 18, 0.76) 55%, rgba(2, 12, 18, 0.92) 100%);
    }

    .hero__content {
        width: min(100% - 28px, 1180px);
        padding: 34px 0 64px;
    }

    .hero h1 {
        line-height: 1.04;
    }

    .button--primary {
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal__panel {
        padding: 28px 18px;
    }
}
