
/* =========================================
   1. RESET & GLOBAL STYLES
========================================= */

:root {
    --bg: #11110f;
    --bg-light: #1b1a17;
    --bg-card: #201f1b;

    --cream: #f4f0e8;
    --gold: #c7a36a;
    --gold-light: #ddbd8b;

    --text: #e9e4da;
    --muted: #a9a397;

    --border: rgba(244, 240, 232, 0.12);

    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", sans-serif;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

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

.container {
    width: min(1100px, 90%);
    margin-inline: auto;
}

.section-padding {
    padding-block: 110px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
}

h2 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

h1 span,
h2 span {
    color: var(--gold);
}

.eyebrow {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}


/* =========================================
   2. BUTTONS
========================================= */

.btn {
    display: inline-block;
    padding: 15px 30px;

    background: var(--gold);
    border: 1px solid var(--gold);

    color: #171510;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;

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

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

.btn-small {
    padding: 11px 21px;
    font-size: 0.75rem;
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: rgba(244, 240, 232, 0.4);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--bg);
    border-color: var(--cream);
}


/* =========================================
   3. NAVIGATION
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(17, 17, 15, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 85px;

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

    gap: 25px;
}

.logo {
    display: flex;
    flex-direction: column;

    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
}

.logo span {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    margin-top: 7px;
}

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

.nav-links a {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;

    transition: color 0.3s ease;
}

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


/* =========================================
   4. HERO SECTION
========================================= */

.hero {
    position: relative;
    min-height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-image: url("images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(12, 12, 12, 0.95) 0%,
        rgba(12, 12, 12, 0.75) 45%,
        rgba(12, 12, 12, 0.35) 100%
    );

    z-index: 1;
}

/* Hero text and buttons */
.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 100px;
    padding-bottom: 140px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin: 20px 0;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-description {
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Bottom information */
.hero-bottom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: min(90%, 1200px);

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 2px;

    z-index: 2;
}




/* =========================================
   5. INTRODUCTION
========================================= */

.intro {
    background: var(--bg-light);
    text-align: center;
}

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

.intro h2 {
    margin-bottom: 25px;
}

.intro-content > p:last-child {
    max-width: 620px;
    margin-inline: auto;

    color: var(--muted);
    font-size: 0.92rem;
}


/* =========================================
   6. SECTION HEADINGS
========================================= */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;
    margin-bottom: 45px;
}

.section-heading > p {
    max-width: 280px;

    color: var(--muted);
    font-size: 0.88rem;
}


/* =========================================
   7. SERVICES
========================================= */

.services {
    background: var(--bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
}

.service-image {
    height: 260px;
    overflow: hidden;
}

.service-image img {
    height: 100%;

    transition: transform 0.6s ease;
}

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

.service-info {
    padding: 28px;
}

.service-number {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.service-info h3 {
    font-size: 1.55rem;
    margin-block: 13px;
}

.service-info > p {
    min-height: 75px;

    color: var(--muted);
    font-size: 0.85rem;
}

.service-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 20px;
}

.service-bottom strong {
    color: var(--gold);
    font-size: 0.76rem;
    letter-spacing: 1px;
}

.service-bottom span {
    color: #77736b;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}


/* =========================================
   8. ABOUT
========================================= */

.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 75px;
}

.about-image {
    height: 520px;
    position: relative;
    overflow: hidden;
}

.about-image img {
    height: 100%;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.04);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 20px;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.8)
    );

    color: var(--cream);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-content h2 {
    margin-bottom: 28px;
}

.about-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.text-link {
    display: inline-block;

    color: var(--gold);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 1px;

    margin-top: 15px;

    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--gold-light);
}


/* =========================================
   9. FEATURES
========================================= */

.features {
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.feature-card {
    padding: 35px 28px;

    background: var(--bg-light);
    border: 1px solid var(--border);

    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gold);
}

.feature-icon {
    display: inline-block;

    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 2rem;

    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.85rem;
}


/* =========================================
   10. GALLERY
========================================= */

.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 230px;

    gap: 15px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    height: 100%;

    transition:
        transform 0.6s ease,
        opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.82;
}

.gallery-large {
    grid-row: span 2;
}


/* =========================================
   11. BOOKING
========================================= */

.booking {
    position: relative;
    text-align: center;

    background:
        linear-gradient(
            rgba(12, 12, 11, 0.87),
            rgba(12, 12, 11, 0.92)
        ),
        url("images/barber-chair.jpg")
        center / cover no-repeat;
}

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

.booking h2 {
    font-size: clamp(3rem, 6vw, 4.7rem);
    margin-bottom: 25px;
}

.booking-content > p:not(.eyebrow) {
    max-width: 530px;

    color: #c4bdb1;
    font-size: 0.92rem;

    margin: 0 auto 35px;
}


/* =========================================
   12. CONTACT
========================================= */

.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;
}

.contact-heading h2 {
    margin-bottom: 22px;
}

.contact-heading > p:last-child {
    max-width: 360px;

    color: var(--muted);
    font-size: 0.9rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 40px 30px;
}

.contact-item {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.contact-item > span {
    color: var(--gold);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-block: 12px;
}

.contact-item p {
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-item a:hover {
    color: var(--gold);
}


/* =========================================
   13. FOOTER
========================================= */

.footer {
    background: #0b0b0a;
    border-top: 1px solid var(--border);

    padding-top: 40px;
}

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

    gap: 30px;
    padding-bottom: 35px;
}

.footer-brand > p {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.8rem;

    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    border-top: 1px solid var(--border);
    padding-block: 22px;
}

.footer-bottom p,
.footer-bottom a {
    color: var(--muted);
    font-size: 0.72rem;
}

.footer-bottom a:hover {
    color: var(--gold);
}


/* =========================================
   14. TABLET RESPONSIVENESS
========================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 17px;
    }

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

    .about-grid {
        gap: 40px;
    }

    .about-image {
        height: 450px;
    }

    .contact-grid {
        gap: 40px;
    }

}


/* =========================================
   15. MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 650px) {

    .section-padding {
        padding-block: 75px;
    }

    /* Navigation */

    .navbar {
        min-height: auto;

        flex-wrap: wrap;
        gap: 18px;

        padding-block: 17px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .navbar > .btn {
        margin-left: auto;
    }

    .nav-links {
        order: 3;

        width: 100%;

        justify-content: space-between;
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.7rem;
    }




    /* Section headings */

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }


    /* Services */

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

    .service-image {
        height: 280px;
    }

    .service-info > p {
        min-height: auto;
    }


    /* About */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: 380px;
    }


    /* Features */

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


    /* Gallery */

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;

        gap: 10px;
    }


    /* Contact */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        gap: 30px 20px;
    }


    /* Footer */

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

    .footer-links {
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}

 @media (max-width: 600px) {

    .hero {
        min-height: 85vh;
        background-position: 60% center;
    }

    .hero-overlay {
        background: rgba(12, 12, 12, 0.78);
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 130px;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 10px;
        font-size: 0.65rem;
    }

}


/* =========================================
   16. SMALL MOBILE SCREENS
========================================= */

@media (max-width: 380px) {

    .container {
        width: 92%;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .logo span {
        font-size: 0.48rem;
    }

    .navbar > .btn {
        padding: 9px 12px;
        font-size: 0.68rem;
    }

    .nav-links a {
        font-size: 0.63rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bottom span:nth-child(2) {
        display: none;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-auto-rows: 155px;
    }

}
