
/* ==============================
   HAIRWORKS LUXURY SALON
   COMPLETE WEBSITE STYLING
================================ */

:root {
    --gold: #c8a775;
    --dark: #171613;
    --cream: #f7f2e9;
    --muted: #b9b2a6;
}

/* GLOBAL STYLING */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

button {
    cursor: pointer;
}

p {
    line-height: 1.8;
}

/* NAVBAR */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #171613;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    gap: 20px;
}

.logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    letter-spacing: 3px;
    line-height: 1;
    display: inline-block;
}

.logo span {
    display: block;
    font: 10px 'DM Sans', sans-serif;
    letter-spacing: 3px;
    margin-top: 7px;
    color: var(--gold);
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
}

nav a:hover {
    color: var(--gold);
}

#toggle {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 26px;
}

/* BUTTONS */

.btn,
.outline {
    display: inline-block;
    padding: 15px 23px;
    border: 1px solid var(--gold);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.btn {
    background: var(--gold);
    color: var(--dark);
}

.btn:hover {
    background: #e0c49a;
    color: #171613;
}

.outline {
    color: white;
    margin: 8px;
}

.outline:hover {
    background: #ffffff20;
}

/* HERO SECTION */

.hero {
    min-height: 76vh;

    background:
        linear-gradient(
            90deg,
            #171613f5 0%,
            #171613a8 45%,
            #17161325
        ),
        url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1900&q=85')
        center / cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding: 80px 8% 35px;
}

.hero-content {
    max-width: 760px;
    animation: appear 0.9s ease both;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #987341;
    margin: 0 0 18px;
}

.hero .eyebrow,
.booking .eyebrow {
    color: var(--gold);
}

h1,
h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 0.99;
    margin: 0 0 25px;
}

h1 {
    font-size: clamp(54px, 7vw, 105px);
}

h2 {
    font-size: clamp(42px, 5vw, 72px);
}

i {
    color: #a17c48;
    font-weight: 400;
}

.hero i,
.booking i {
    color: var(--gold);
}

.hero-content > p:not(.eyebrow) {
    max-width: 500px;
    color: #e5dfd6;
    margin-bottom: 30px;
}

.hero-foot {
    margin-top: 70px;
    letter-spacing: 3px;
    font-size: 10px;
    color: var(--gold);
}

.hero-foot span {
    margin: 0 15px;
}

/* RATINGS SECTION */

.stats {
    display: flex;
    justify-content: center;
    background: #25221e;
    color: white;
    padding: 28px 5%;
    gap: 0;
}

.stats div {
    width: 30%;
    text-align: center;
    border-right: 1px solid #ffffff25;
}

.stats div:last-child {
    border: 0;
}

.stats strong {
    display: block;
    font: 36px 'Cormorant Garamond', serif;
    color: var(--gold);
}

.stats span {
    font-size: 12px;
    color: var(--muted);
}

/* SERVICES SECTION */

.section {
    padding: 85px 8%;
    text-align: center;
}

.intro {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #625b52;
}

/* FILTER BUTTONS */

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.filters button {
    border: 1px solid #cfc3b2;
    background: transparent;
    padding: 10px 18px;
    border-radius: 30px;
    transition: 0.25s;
}

.filters button:hover {
    background: #e9dfd0;
}

.filters .active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* SERVICE CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.service {
    background: white;
    padding: 28px;
    border: 1px solid #e8dfd2;
    transition: 0.25s;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #36291615;
}

.service .num {
    color: #a17c48;
    font-size: 12px;
    letter-spacing: 2px;
}

.service h3 {
    font: 600 32px 'Cormorant Garamond', serif;
    margin: 15px 0 8px;
}

.service p {
    color: #625b52;
    font-size: 14px;
}

.service button {
    border: 0;
    background: none;
    color: #886132;
    padding: 0;
    font-weight: 700;
}

.service button:hover {
    color: #171613;
}

/* ABOUT SECTION */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e9dfd0;
    align-items: center;
}

.about img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about div {
    padding: 55px 12%;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery button {
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #ddd;
}

.gallery img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}

.gallery button:hover img {
    transform: scale(1.06);
}

/* APPOINTMENT SECTION */

.booking {
    background: var(--dark);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    padding: 85px 8%;
    align-items: center;
}

.booking p {
    color: var(--muted);
}

form {
    display: grid;
    gap: 16px;
    background: #25221e;
    padding: 30px;
}

label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    color: #e5dfd6;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    background: #171613;
    border: 1px solid #514b40;
    color: white;
    border-radius: 0;
    color-scheme: dark;
}

input:focus,
select:focus,
textarea:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.small {
    font-size: 12px;
    margin: 0;
}

/* CONTACT SECTION */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    align-items: center;
}

.contact iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* FOOTER */

footer {
    background: #171613;
    color: white;
    padding: 35px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

footer p {
    font-size: 11px;
    max-width: 430px;
    color: var(--muted);
}

/* FLOATING WHATSAPP BUTTON */

.floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #226b49;
    color: white;
    padding: 14px 20px;
    border-radius: 40px;
    z-index: 9;
    box-shadow: 0 5px 20px #0003;
    transition: 0.3s;
}

.floating:hover {
    background: #168d53;
    transform: translateY(-3px);
}

/* GALLERY LIGHTBOX */

dialog {
    border: 0;
    background: #171613;
    padding: 15px;
    max-width: 90vw;
}

dialog::backdrop {
    background: #000c;
}

dialog img {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
}

dialog button {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    width: 40px;
    height: 40px;
}

/* ANIMATIONS */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET RESPONSIVE */

@media (max-width: 850px) {

    #toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #171613;
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
    }

    nav.open {
        display: flex;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about,
    .booking,
    .contact {
        grid-template-columns: 1fr;
    }

    .about img {
        height: 320px;
    }

    .booking {
        gap: 25px;
    }

    .gallery img {
        height: 230px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* MOBILE RESPONSIVE */

@media (max-width: 520px) {

    .section,
    .booking {
        padding: 55px 6%;
    }

    .hero {
        padding: 65px 6% 25px;
        min-height: 70vh;
    }

    .hero-foot {
        margin-top: 40px;
    }

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

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

    .gallery img {
        height: 280px;
    }

    .stats strong {
        font-size: 26px;
    }

    .stats span {
        font-size: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .logo span {
        font-size: 8px;
    }

    form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .outline {
        margin-left: 0;
    }

}

/* ACCESSIBILITY */

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

    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}
