:root {
    --as-ivory: #f3efe8;
    --as-ivory-soft: #f8f4ee;
    --as-ink: #1d1a18;
    --as-ink-soft: #524d49;
    --as-stone: #d7cfc4;
    --as-sand: #e7dfd4;
    --as-night: #181616;
    --as-night-soft: #2a2726;
    --as-white: #fffdf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--as-ivory);
    font-family: "Manrope", Arial, sans-serif;
    color: var(--as-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    margin: 0;
}

.as-hero {
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(18, 17, 17, 0.18), rgba(18, 17, 17, 0.28)),
        url('../img/bg-sky5.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.as-hero-copy {
    color: #fffdf9;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    position: relative;
    top: 48%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.3rem, 0.7vw, 0.9rem);
}

.as-work {
    width: 100%;
}

.as-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "image copy";
    height: 80vh;
}

.as-work-row--reverse {
    grid-template-areas: "copy image";
}

.as-work-image {
    grid-area: image;
    overflow: hidden;
}

.as-work-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-work-copy {
    grid-area: copy;
    background-color: var(--as-ivory-soft);
    color: var(--as-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2.5rem, 7vw, 7rem);
}

.as-work-copy h2 {
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--as-ink);
}

.as-work-copy p {
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    line-height: 1.7;
    max-width: 34ch;
    margin: 0;
    color: var(--as-ink-soft);
}

@media (max-width: 768px) {
    .as-work-row {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .as-work-image img {
        height: 45vh;
        min-height: 45vh;
    }

    .as-work-copy {
        padding: 3rem 1.5rem;
    }
}

.as-about {
    background-color: var(--as-ivory);
    color: var(--as-ink);
}

.as-about-intro {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 6rem 8vw;
    color: #fffaf4;
    background-image:
        linear-gradient(90deg, rgba(20, 18, 17, 0.8), rgba(20, 18, 17, 0.58) 52%, rgba(20, 18, 17, 0.18)),
        url('../img/woman.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.as-about-copy {
    max-width: 1100px;
    margin: 0 auto;
}

.as-about-copy h2 {
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.as-about-copy p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 65ch;
    margin-bottom: 1rem;
    font-family: "Manrope", Arial, sans-serif;
    color: rgba(255, 249, 244, 0.92);
}

.as-about-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 3rem 4rem;
    border-top: 1px solid rgba(36, 36, 36, 0.25);
    list-style: none;
}

.as-about-points li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(36, 36, 36, 0.25);
    font-size: 1.05rem;
    font-weight: 500;
    font-family: "Manrope", Arial, sans-serif;
    letter-spacing: 0.02em;
}

.as-footer {
    background: linear-gradient(180deg, #1d1a18 0%, #171412 100%);
    color: var(--as-white);
    padding: 5rem 1.5rem 4rem;
}

.as-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.as-footer-left,
.as-footer-right {
    display: flex;
    flex-direction: column;
}

.as-footer-left {
    gap: 1.5rem;
}

.as-footer-phone {
    position: relative;
    width: fit-content;
    color: inherit;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.95;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: -0.035em;
    transition: opacity 0.3s ease;
    opacity: 0.95;
}

.as-footer-phone::after,
.as-footer-button::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s cubic-bezier(.77, 0, .18, 1);
}

.as-footer-phone:hover,
.as-footer-phone:focus-visible,
.as-footer-button:hover,
.as-footer-button:focus-visible {
    opacity: 0.6;
}

.as-footer-phone:hover::after,
.as-footer-phone:focus-visible::after,
.as-footer-button:hover::after,
.as-footer-button:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.as-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2rem;
}

.as-footer-button {
    position: relative;
    display: inline-block;
    padding: 18px 0 8px;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.as-footer-address {
    font-family: "Manrope", Arial, sans-serif;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.7;
    color: inherit;
}

.as-footer-right {
    justify-content: center;
    max-width: 540px;
    margin-left: auto;
}

.as-footer h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 0.96;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.as-footer-right p {
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    line-height: 1.6;
    max-width: 30ch;
    color: rgba(255, 253, 249, 0.88);
}

@media (max-width: 768px) {
    .as-about-intro {
        min-height: 90vh;
        padding: 4rem 1.5rem;
        background-image:
            linear-gradient(rgba(20, 20, 20, 0.58), rgba(20, 20, 20, 0.72)),
            url('../img/woman.jpg');
    }

    .as-about-copy h2 {
        font-size: 2.25rem;
    }

    .as-about-points {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.5rem 3rem;
    }

    .as-footer {
        padding: 4rem 1.5rem 3rem;
    }

    .as-footer-inner {
        grid-template-columns: 1fr;
    }

    .as-footer-right {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-footer-phone,
    .as-footer-button,
    .as-footer-phone::after,
    .as-footer-button::after {
        transition: none;
    }
}
