/* =========================================================
   ÉLAN STUDIO
   Beauty · Hair · Grooming · Wellness
   STABLE FINAL VERSION
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f3efe8;
    color: #1d1c1a;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --cream: #f3efe8;
    --cream-light: #f8f5ef;
    --cream-dark: #e4ddd3;

    --dark: #1d1c1a;
    --dark-soft: #292724;

    --brown: #6f6255;
    --gold: #a48b68;

    --white: #ffffff;

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;

    --container: 1380px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

::selection {
    background: #a48b68;
    color: #ffffff;
}

section {
    position: relative;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.eyebrow.dark {
    color: var(--brown);
}

h1,
h2,
h3 {
    font-weight: 400;
}

h1,
h2 {
    font-family: var(--serif);
}

h1 em,
h2 em {
    font-style: italic;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 30px;

    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.button-light {
    background: var(--white);
    color: var(--dark);
}

.button-light:hover {
    background: var(--cream);
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.button-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.button-dark {
    background: var(--dark);
    color: var(--white);
}

.button-dark:hover {
    background: #35322f;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 20;

    color: var(--white);
}

.header.scrolled {
    position: absolute;

    height: 90px;

    background: transparent;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo {
    font-family: var(--serif);

    font-size: 28px;

    letter-spacing: 5px;

    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    position: relative;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-button {
    padding: 12px 20px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.header-button:hover {
    background: var(--white);
    color: var(--dark);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--white);
}

.hero-image {
    position: absolute;

    inset: -1% 0;

    background-image:
        url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=2200&q=85");

    background-size: cover;

    background-position: center;

    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.38) 45%,
            rgba(0, 0, 0, 0.12) 100%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(700px, 90%);

    margin-left: 8vw;
}

.hero h1 {
    font-size: clamp(70px, 9vw, 145px);

    line-height: 0.86;

    letter-spacing: -5px;

    margin-bottom: 38px;
}

.hero-text {
    max-width: 430px;

    font-size: 16px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.85);

    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-location {
    position: absolute;

    z-index: 3;

    bottom: 35px;

    left: 5vw;
    right: 5vw;

    display: flex;
    justify-content: space-between;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    max-width: var(--container);

    margin: auto;

    min-height: 80vh;

    padding: 160px 7vw;

    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 80px;

    align-items: center;
}

.section-number {
    font-family: var(--serif);

    font-size: 100px;

    line-height: 1;

    color: #d8d0c4;
}

.intro-content {
    max-width: 720px;
}

.intro h2 {
    font-size: clamp(50px, 6vw, 90px);

    line-height: 0.98;

    letter-spacing: -2px;

    margin-bottom: 45px;
}

.intro-content p:not(.eyebrow) {
    max-width: 600px;

    font-size: 16px;

    line-height: 1.9;

    color: #625d56;

    margin-bottom: 20px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    padding: 140px 5vw 160px;

    background: var(--cream-light);
}

.section-heading {
    max-width: var(--container);

    margin: 0 auto 80px;

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 50px;
}

.section-heading h2 {
    font-size: clamp(50px, 6vw, 90px);

    line-height: 0.95;

    letter-spacing: -2px;
}

.section-description {
    max-width: 330px;

    color: #6d675f;

    font-size: 14px;

    line-height: 1.8;
}

.service-grid {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 80px 30px;
}

.service-card {
    overflow: hidden;
}

.service-image {
    height: 550px;

    background-size: cover;

    background-position: center;

    transition: transform 0.7s ease;
}

.service-card:hover .service-image {
    transform: scale(1.025);
}


/* =========================================================
   SERVICE IMAGES
   ========================================================= */

.service-hair {
    background-image:
        url("https://images.unsplash.com/photo-1562322140-8baeececf3df?auto=format&fit=crop&w=1400&q=85");
}

.service-beauty {
    background-image:
        url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=1400&q=85");
}

.service-skin {
    background-image:
        url("https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1400&q=85");
}

.service-wellness {
    background-image:
        url("https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1400&q=85");
}


/* =========================================================
   SERVICE INFO
   ========================================================= */

.service-info {
    padding: 25px 5px 0;

    display: grid;

    grid-template-columns: 50px 1fr;

    grid-template-rows: auto auto auto;
}

.service-info span {
    grid-row: 1 / 4;

    font-size: 11px;

    letter-spacing: 1px;

    color: var(--brown);
}

.service-info h3 {
    font-family: var(--serif);

    font-size: 42px;

    line-height: 1.1;

    margin-bottom: 10px;
}

.service-info p {
    max-width: 420px;

    font-size: 14px;

    color: #6d675f;

    margin-bottom: 18px;
}

.service-info a {
    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    width: fit-content;

    border-bottom: 1px solid #a8a095;

    padding-bottom: 5px;
}

.service-info a:hover {
    color: var(--brown);

    border-color: var(--brown);
}


/* =========================================================
   RITUAL
   ========================================================= */

.ritual {
    min-height: 850px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--cream-dark);
}

.ritual-image {
    min-height: 700px;

    background-image:
        url("https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;

    background-position: center;
}

.ritual-content {
    padding: 100px 9vw;

    display: flex;

    justify-content: center;

    flex-direction: column;
}

.ritual-content h2 {
    font-size: clamp(60px, 6vw, 100px);

    line-height: 0.9;

    letter-spacing: -2px;

    margin-bottom: 35px;
}

.ritual-content > p:not(.eyebrow) {
    max-width: 480px;

    font-size: 15px;

    line-height: 1.8;

    color: #625d56;

    margin-bottom: 30px;
}

.ritual-content ul {
    list-style: none;

    border-top: 1px solid rgba(70, 65, 58, 0.2);

    margin-bottom: 35px;
}

.ritual-content li {
    padding: 13px 0;

    border-bottom: 1px solid rgba(70, 65, 58, 0.2);

    font-size: 13px;
}

.ritual-price {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-bottom: 30px;
}

.ritual-price span {
    font-size: 10px;

    letter-spacing: 2px;
}

.ritual-price strong {
    font-family: var(--serif);

    font-size: 36px;

    font-weight: 400;
}


/* =========================================================
   PHILOSOPHY
   ========================================================= */

.philosophy {
    min-height: 70vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--dark);

    color: var(--white);
}

.philosophy-inner {
    width: min(1000px, 90%);
}

.philosophy .eyebrow {
    color: #aaa39a;
}

.philosophy h2 {
    font-size: clamp(50px, 7vw, 105px);

    line-height: 1;

    letter-spacing: -3px;
}

.philosophy h2 em {
    color: #c4b19a;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
    padding: 150px 5vw;

    background: var(--cream);
}

.gallery-heading {
    max-width: var(--container);

    margin: 0 auto 70px;
}

.gallery-heading h2 {
    font-size: clamp(50px, 6vw, 90px);

    line-height: 0.95;

    letter-spacing: -2px;
}

.gallery-grid {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns: 1.4fr 0.8fr;

    grid-template-rows: 500px 350px;

    gap: 20px;
}

.gallery-item {
    background-size: cover;

    background-position: center;

    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: scale(1.015);
}

.gallery-large {
    grid-row: span 1;

    background-image:
        url("https://images.unsplash.com/photo-1600948836101-f9ffda59d250?auto=format&fit=crop&w=1600&q=85");
}

.gallery-small:nth-child(2) {
    background-image:
        url("https://images.unsplash.com/photo-1595476108010-b4d1f102b1b1?auto=format&fit=crop&w=1200&q=85");
}

.gallery-small:nth-child(3) {
    background-image:
        url("https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?auto=format&fit=crop&w=1200&q=85");
}

.gallery-large:nth-child(4) {
    grid-column: 1 / -1;

    background-image:
        url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1800&q=85");
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials {
    padding: 150px 5vw;

    background: var(--cream-light);

    text-align: center;
}

.testimonial-grid {
    max-width: var(--container);

    margin: 70px auto 0;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.testimonial-grid article {
    padding: 45px 30px;

    border-top: 1px solid #c9c1b7;
}

.stars {
    font-size: 13px;

    letter-spacing: 4px;

    margin-bottom: 25px;

    color: var(--gold);
}

.testimonial-grid p {
    font-family: var(--serif);

    font-size: 25px;

    line-height: 1.4;

    margin-bottom: 30px;
}

.testimonial-grid span {
    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #777067;
}


/* =========================================================
   BOOKING
   ========================================================= */

.booking {
    min-height: 80vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(25, 23, 21, 0.78),
            rgba(25, 23, 21, 0.78)
        ),
        url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=2200&q=85");

    background-size: cover;

    background-position: center;

    color: var(--white);
}

.booking-content {
    max-width: 800px;
}

.booking .eyebrow {
    color: #c7b9a5;
}

.booking h2 {
    font-size: clamp(70px, 9vw, 130px);

    line-height: 0.88;

    letter-spacing: -4px;

    margin-bottom: 35px;
}

.booking h2 em {
    color: #d6c3aa;
}

.booking p:not(.eyebrow) {
    max-width: 480px;

    margin: 0 auto 35px;

    font-size: 15px;

    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 80px 5vw 30px;

    background: #171614;

    color: var(--white);
}

.footer-top {
    max-width: var(--container);

    margin: auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 80px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 15px;
}

.footer-top > div:first-child p {
    color: #88837c;

    font-size: 12px;

    letter-spacing: 1px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-column h4 {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #8e887f;

    margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
    font-size: 12px;

    color: #b5b0a9;

    line-height: 1.7;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--container);

    margin: auto;

    padding-top: 25px;

    border-top: 1px solid #35322f;

    display: flex;

    justify-content: space-between;

    color: #77726b;

    font-size: 10px;

    letter-spacing: 1px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .nav {
        gap: 20px;
    }

    .header {
        padding: 0 4vw;
    }

    .hero-content {
        margin-left: 6vw;
    }

    .intro {
        grid-template-columns: 1fr;

        padding: 120px 7vw;
    }

    .section-number {
        font-size: 65px;
    }

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

    .service-image {
        height: 520px;
    }

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

    .ritual-image {
        min-height: 600px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            450px
            320px
            320px;
    }

    .gallery-large:nth-child(4) {
        grid-column: 1 / -1;
    }

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

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


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    /* HEADER */

    .header {
        height: 75px;

        padding: 0 5vw;
    }

    .header.scrolled {
        height: 75px;
    }

    .logo {
        font-size: 24px;

        letter-spacing: 4px;
    }

    .nav {
        display: none;
    }

    .header-button {
        padding: 10px 14px;

        font-size: 9px;
    }


    /* HERO */

    .hero {
        min-height: 90vh;
    }

    .hero-image {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.7),
                rgba(0, 0, 0, 0.25)
            );
    }

    .hero-content {
        width: 90%;

        margin-left: 5vw;
    }

    .hero h1 {
        font-size: clamp(62px, 18vw, 90px);

        letter-spacing: -3px;
    }

    .hero-text {
        max-width: 330px;

        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-buttons .button {
        width: 190px;
    }

    .hero-location {
        flex-direction: column;

        gap: 8px;

        bottom: 25px;
    }


    /* INTRO */

    .intro {
        min-height: auto;

        padding: 100px 7vw;
    }

    .section-number {
        font-size: 55px;

        margin-bottom: 20px;
    }

    .intro h2 {
        font-size: 55px;

        letter-spacing: -1px;
    }

    .intro-content p:not(.eyebrow) {
        font-size: 14px;

        line-height: 1.8;
    }


    /* SERVICES */

    .services {
        padding: 100px 5vw;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;

        margin-bottom: 60px;
    }

    .section-heading h2 {
        font-size: 55px;
    }

    .section-description {
        font-size: 13px;
    }

    .service-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .service-image {
        height: 420px;
    }

    .service-info {
        grid-template-columns: 35px 1fr;
    }

    .service-info h3 {
        font-size: 36px;
    }


    /* RITUAL */

    .ritual {
        min-height: auto;
    }

    .ritual-image {
        min-height: 480px;
    }

    .ritual-content {
        padding: 80px 8vw;
    }

    .ritual-content h2 {
        font-size: 65px;
    }


    /* PHILOSOPHY */

    .philosophy {
        min-height: 60vh;
    }

    .philosophy h2 {
        font-size: 52px;

        letter-spacing: -1px;
    }


    /* GALLERY */

    .gallery {
        padding: 100px 5vw;
    }

    .gallery-heading {
        margin-bottom: 50px;
    }

    .gallery-heading h2 {
        font-size: 55px;
    }

    .gallery-grid {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows:
            450px
            300px
            300px
            350px;

        gap: 12px;
    }

    .gallery-large:nth-child(4) {
        grid-column: auto;
    }


    /* TESTIMONIALS */

    .testimonials {
        padding: 100px 5vw;
    }

    .testimonial-grid {
        margin-top: 50px;

        gap: 20px;
    }

    .testimonial-grid article {
        padding: 40px 20px;
    }

    .testimonial-grid p {
        font-size: 22px;
    }


    /* BOOKING */

    .booking {
        min-height: 75vh;

        padding: 80px 5vw;
    }

    .booking h2 {
        font-size: 70px;

        letter-spacing: -2px;
    }


    /* FOOTER */

    .footer {
        padding: 70px 6vw 25px;
    }

    .footer-top {
        grid-template-columns: 1fr;

        gap: 40px;

        padding-bottom: 60px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;

        line-height: 1.5;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 58px;
    }

    .intro h2,
    .section-heading h2,
    .gallery-heading h2 {
        font-size: 48px;
    }

    .ritual-content h2 {
        font-size: 58px;
    }

    .philosophy h2 {
        font-size: 45px;
    }

    .booking h2 {
        font-size: 58px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}