/* esdroid.com itself. Builds on common/site.css. */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 22px;
    font-weight: 600;
}

.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
}

.lead {
    margin: 14px 0 0;
    max-width: 62ch;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.headline--big {
    margin-top: 20px;
    font-size: clamp(2.4rem, 7.5vw, 4.6rem);
    background: linear-gradient(100deg, #fff 30%, var(--c2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* --- Sections -------------------------------------------------------------------- */

.band {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px;
    scroll-margin-top: 12px;
}

.band--narrow {
    max-width: 680px;
}

.band--top {
    padding-top: 24px;
}

.band__title {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
}

.band__title:not(:first-child) {
    margin-top: 56px;
}

.band__lead {
    margin: 0 0 28px;
    color: var(--ink-soft);
}

.band__lead a {
    color: var(--c2);
}

.ghost--small {
    padding: 8px 16px;
    font-size: 0.92rem;
}

/* --- Projects -------------------------------------------------------------------- */

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.project {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.project__shot {
    display: grid;
    place-items: center;
    height: 230px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.project__shot img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.project:hover .project__shot img {
    transform: scale(1.05);
}

.project__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.project__body h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.project__year {
    margin-left: 6px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.project__body p {
    margin: 0 0 12px;
    color: var(--ink-soft);
}

.project__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

/* One project per row, picture beside the text. */
.projects--list {
    grid-template-columns: 1fr;
}

.projects--list .project {
    flex-direction: row;
}

.projects--list .project__shot {
    flex: 0 0 300px;
    height: auto;
    min-height: 220px;
}

.projects--list .project__shot img {
    max-height: 300px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 16px;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 3px 10px;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    font-size: 0.8rem;
}

/* --- Services, offer, prices ----------------------------------------------------- */

.service,
.offer,
.plan {
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(12px);
}

.service {
    margin-top: 24px;
    padding: 30px;
}

.service h3,
.offer h3,
.plan h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.service p,
.offer p {
    margin: 0;
    color: var(--ink-soft);
}

.offers {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.offer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px;
}

.offer img {
    flex: 0 0 220px;
    width: 220px;
    border-radius: 12px;
}

.offer:nth-child(even) {
    flex-direction: row-reverse;
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.plan--featured {
    border-color: var(--cta);
    box-shadow: 0 0 44px -14px var(--cta);
}

.plan__price {
    margin: 0 0 14px;
    font-size: 1.7rem;
    font-weight: 700;
}

.plan__price small {
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 500;
}

.plan ul {
    flex: 1;
    margin: 0 0 20px;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.plan li {
    margin-bottom: 6px;
}

.plan a {
    align-self: flex-start;
}

.footnote {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* --- Forms ----------------------------------------------------------------------- */

.form {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    background: rgba(9, 10, 19, 0.55);
    backdrop-filter: blur(14px);
}

.form label {
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--glass-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form select option {
    color: #111;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--c2);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.3);
    outline: none;
}

.form button {
    justify-self: start;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

/* A field the visitor has to correct, and what is wrong with it. */
.form [aria-invalid="true"] {
    border-color: var(--bad);
    box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.22);
}

.form__error {
    color: var(--bad);
    font-size: 0.86rem;
    font-weight: 500;
}

/* Bait for robots: off screen, so people never fill it in. */
.form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.flash {
    margin: 0 0 16px;
    padding: 14px 18px;
    border: 1px solid var(--good);
    border-radius: var(--radius);
    background: rgba(25, 209, 127, 0.14);
}

.flash--error {
    border-color: var(--bad);
    background: rgba(255, 84, 112, 0.14);
}

/* --- Portfolio, bonus page ------------------------------------------------------- */

.person {
    display: flex;
    align-items: center;
    gap: 22px;
}

.person img {
    width: 120px;
    height: 120px;
    border: 3px solid var(--glass-line);
    border-radius: 50%;
    object-fit: cover;
}

.wallpapers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0;
}

.wallpaper {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin: 0;
}

.wallpaper img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

/* --- Footer ---------------------------------------------------------------------- */

.footer--company {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer--company p {
    margin: 0;
}

.footer--company strong {
    color: var(--ink);
}

.socials {
    display: flex;
    gap: 22px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .projects:not(.projects--list),
    .plans {
        grid-template-columns: 1fr 1fr;
    }

    .projects--list .project__shot {
        flex-basis: 220px;
    }

    .wallpapers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .projects:not(.projects--list),
    .plans {
        grid-template-columns: 1fr;
    }

    .projects--list .project,
    .offer,
    .offer:nth-child(even) {
        flex-direction: column;
    }

    .projects--list .project__shot {
        flex-basis: auto;
    }

    .offer img {
        flex-basis: auto;
        width: 100%;
    }

    .nav {
        gap: 4px 14px;
        font-size: 0.92rem;
    }
}
