/* =========================
   OAK & BLADE - MAIN STYLES
========================= */


/* =========================
   COLOURS
========================= */

:root {
    --bg: #151412;
    --bg-soft: #1d1b18;
    --bg-light: #eee8dd;

    --text: #f6f1e8;
    --text-dark: #181714;

    --muted: #b8b1a5;
    --muted-dark: #676159;

    --accent: #b99a67;
    --accent-light: #d3b783;

    --border: rgba(255, 255, 255, 0.12);
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: none;
}

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


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

.section {
    padding: 110px 8%;
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--accent-light);

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 60px;
}

.section-heading h2 {
    margin-bottom: 18px;

    font-size: clamp(2.3rem, 5vw, 4.6rem);

    line-height: 1.02;

    letter-spacing: -2px;
}

.section-heading p {
    max-width: 600px;

    color: var(--muted);

    font-size: 1.05rem;
}


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

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(21, 20, 18, 0.9);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1400px, 90%);

    min-height: 84px;

    margin: 0 auto;

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

    gap: 30px;
}


/* =========================
   BRAND
========================= */

.brand {
    font-size: 1.25rem;
    font-weight: 800;

    letter-spacing: 4px;

    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}


/* =========================
   NAVIGATION
========================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav-links a {
    color: #d9d3c8;

    font-size: 0.95rem;

    transition: color 0.25s ease;
}

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

.nav-cta {
    padding: 12px 22px;

    background: transparent;

    color: var(--text);

    border: 1px solid var(--accent);

    border-radius: 999px;

    cursor: pointer;

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

.nav-cta:hover {
    background: var(--accent);

    color: var(--text-dark);
}

.menu-toggle {
    display: none;

    background: none;

    color: var(--text);

    font-size: 1.8rem;

    cursor: pointer;
}


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

.hero {
    position: relative;

    min-height: 100vh;

    padding: 160px 8% 80px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.62) 42%,
            rgba(0, 0, 0, 0.25) 100%
        ),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.2)
        );

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 1000px;
}

.hero h1 {
    max-width: 960px;

    font-size: clamp(3.7rem, 8vw, 7rem);

    line-height: 0.95;

    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    color: var(--accent-light);
}

.hero-description {
    max-width: 620px;

    margin-top: 28px;

    color: #d0c9bd;

    font-size: 1.15rem;
}

.hero-actions {
    margin-top: 36px;

    display: flex;
    flex-wrap: wrap;

    gap: 16px;
}


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

.btn {
    min-height: 52px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);

    color: var(--text-dark);

    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);

    border-color: var(--accent-light);
}

.btn-secondary {
    background: transparent;

    color: var(--text);

    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: var(--accent);
}


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

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

    color: var(--text-dark);
}

.services .eyebrow {
    color: #8c6b3d;
}

.services .section-heading p {
    color: var(--muted-dark);
}

.service-list {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.service-item {
    padding: 28px 0;

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

    gap: 30px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.15);

    transition: padding 0.25s ease;
}

.service-item:hover {
    padding-left: 12px;
}

.service-item h3 {
    margin-bottom: 4px;

    font-size: 1.45rem;
}

.service-item p {
    color: var(--muted-dark);
}

.service-item > span {
    color: #8c6b3d;

    font-size: 1.4rem;
    font-weight: 700;
}


/* =========================
   SHOP
========================= */

.shop-section {
    min-height: 650px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    background: var(--bg);
}

.shop-image {
    min-height: 650px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.08)
        ),
        url("../images/shop.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shop-content {
    padding: 90px 9%;

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

.shop-content h2 {
    margin-bottom: 28px;

    font-size: clamp(2.4rem, 5vw, 4.8rem);

    line-height: 1.02;

    letter-spacing: -2px;
}

.shop-content p:not(.eyebrow) {
    max-width: 520px;

    margin-bottom: 18px;

    color: var(--muted);
}


/* =========================
   BARBERS
========================= */

.barbers {
    background: #12110f;
}

.barber-grid {
    display: grid;

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

    gap: 24px;
}

.barber-card {
    overflow: hidden;

    background: var(--bg-soft);

    border: 1px solid var(--border);
}

.barber-image {
    min-height: 440px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.barber-card:nth-child(1) .barber-image {
    background-image: url("../images/barber-1.jpg");
}

.barber-card:nth-child(2) .barber-image {
    background-image: url("../images/barber-2.jpg");
}

.barber-card:nth-child(3) .barber-image {
    background-image: url("../images/barber-3.jpg");
}

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

    filter: brightness(1.05);
}

.barber-info {
    position: relative;

    z-index: 2;

    padding: 24px;

    background: var(--bg-soft);
}

.barber-info h3 {
    margin-bottom: 6px;

    font-size: 1.4rem;
}

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


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

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

    color: var(--text-dark);
}

.gallery .eyebrow {
    color: #8c6b3d;
}

.gallery-grid {
    display: grid;

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

    gap: 14px;
}

.gallery-item {
    min-height: 360px;

    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.gallery-item:nth-child(1) {
    background-image: url("../images/gallery-1.jpg");
}

.gallery-item:nth-child(2) {
    background-image: url("../images/gallery-2.jpg");
}

.gallery-item:nth-child(3) {
    background-image: url("../images/gallery-3.jpg");
}

.gallery-item:nth-child(4) {
    background-image: url("../images/gallery-4.jpg");
}

.gallery-item:nth-child(5) {
    background-image: url("../images/gallery-5.jpg");
}

.gallery-item:nth-child(6) {
    background-image: url("../images/gallery-6.jpg");
}

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

    filter: brightness(1.06);
}


/* =========================
   REVIEWS
========================= */

.reviews {
    background: #171613;
}

.review-grid {
    display: grid;

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

    gap: 20px;
}

.review-card {
    min-height: 260px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    background: var(--bg-soft);

    border: 1px solid var(--border);
}

.review-card .stars {
    margin-bottom: 22px;

    color: var(--accent-light);

    letter-spacing: 3px;
}

.review-card > p:nth-child(2) {
    margin-bottom: 24px;

    color: #d8d1c6;

    font-size: 1.05rem;
}

.review-card strong {
    margin-top: auto;

    color: var(--text);
}


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

.booking {
    padding: 90px 8%;

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

    gap: 50px;

    background: var(--accent);

    color: var(--text-dark);
}

.booking .eyebrow {
    color: #5e4727;
}

.booking h2 {
    margin-bottom: 14px;

    font-size: clamp(2.4rem, 5vw, 4.5rem);

    line-height: 1.02;
}

.booking p:not(.eyebrow) {
    color: #4c4030;
}

.booking .btn-primary {
    flex-shrink: 0;

    background: var(--text-dark);

    color: var(--text);

    border-color: var(--text-dark);
}

.booking .btn-primary:hover {
    background: #000;
}


/* =========================
   CONTACT
========================= */

.contact {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    background: var(--bg);
}

.contact-info h2 {
    max-width: 650px;

    margin-bottom: 40px;

    font-size: clamp(2.4rem, 5vw, 4.4rem);

    line-height: 1.03;
}

.contact-details {
    display: grid;

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

    gap: 25px;
}

.contact-details span {
    display: block;

    margin-bottom: 8px;

    color: var(--accent-light);

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 2px;
}

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

.opening-hours {
    padding: 34px;

    background: var(--bg-soft);

    border: 1px solid var(--border);
}

.opening-hours h3 {
    margin-bottom: 24px;

    font-size: 1.5rem;
}

.opening-hours > div {
    padding: 14px 0;

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

    gap: 20px;

    border-bottom: 1px solid var(--border);

    color: var(--muted);
}

.opening-hours > div:last-child {
    border-bottom: none;
}


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

.site-footer {
    padding: 50px 8%;

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

    gap: 40px;

    background: #0d0d0c;

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

.site-footer > div p {
    margin-top: 10px;

    color: var(--muted);
}

.site-footer > p {
    color: #746f67;

    font-size: 0.85rem;
}


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

.booking-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

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

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
}


/* dark background */

.booking-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(8px);
}


/* modal box */

.booking-modal-content {
    position: relative;

    z-index: 2;

    width: min(720px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 48px;

    background: #191815;

    border: 1px solid rgba(211, 183, 131, 0.28);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65);

    transform: translateY(25px) scale(0.98);

    transition: transform 0.3s ease;
}

.booking-modal.active .booking-modal-content {
    transform: translateY(0) scale(1);
}


/* close button */

.booking-close {
    position: absolute;

    top: 18px;
    right: 22px;

    width: 42px;
    height: 42px;

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

    background: transparent;

    color: var(--muted);

    font-size: 2rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.booking-close:hover {
    color: var(--text);

    transform: rotate(4deg);
}


/* headings */

.booking-modal-content h2 {
    margin-bottom: 14px;

    font-size: clamp(2.2rem, 5vw, 3.6rem);

    line-height: 1.02;

    letter-spacing: -2px;
}

.booking-intro {
    max-width: 560px;

    margin-bottom: 32px;

    color: var(--muted);
}


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

.booking-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.booking-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.booking-form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.booking-form-group label {
    color: #d6d0c5;

    font-size: 0.82rem;
}

.booking-form-group input,
.booking-form-group select {
    width: 100%;

    min-height: 52px;

    padding: 0 15px;

    background: #10100f;

    color: var(--text);

    border: 1px solid #393731;

    border-radius: 8px;

    outline: none;

    transition: border-color 0.2s ease;
}

.booking-form-group input:focus,
.booking-form-group select:focus {
    border-color: var(--accent);
}

.booking-submit {
    width: 100%;

    margin-top: 8px;
}

.booking-demo-note {
    color: #817a70;

    font-size: 0.78rem;

    text-align: center;
}


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

.booking-success {
    display: none;

    padding: 40px 0 15px;

    text-align: center;
}

.booking-success.active {
    display: block;
}

.booking-form-container.hidden {
    display: none;
}

.success-icon {
    width: 74px;
    height: 74px;

    margin: 0 auto 24px;

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

    background: var(--accent);

    color: var(--text-dark);

    border-radius: 50%;

    font-size: 2rem;
    font-weight: 800;
}

.booking-success h3 {
    margin-bottom: 14px;

    font-size: 2rem;
}

.booking-success p {
    max-width: 470px;

    margin: 0 auto 28px;

    color: var(--muted);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 84px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        gap: 0;

        background: #151412;

        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;

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

    .nav-links a {
        display: block;

        width: 100%;

        padding: 18px 8%;
    }

    .shop-section {
        grid-template-columns: 1fr;
    }

    .shop-image {
        min-height: 500px;
    }

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

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

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

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

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


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

@media (max-width: 650px) {

    .section {
        padding: 80px 6%;
    }

    .navbar {
        width: 88%;
    }

    .brand {
        font-size: 1rem;

        letter-spacing: 3px;
    }

    .hero {
        padding: 145px 6% 70px;

        background-position: center;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: flex-start;
    }

    .service-item {
        align-items: flex-start;
    }

    .shop-content {
        padding: 70px 6%;
    }

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

    .barber-image {
        min-height: 500px;
    }

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

    .gallery-item {
        min-height: 420px;
    }

    .booking {
        padding: 70px 6%;

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

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

    .site-footer {
        flex-direction: column;

        align-items: flex-start;
    }


    /* Booking modal */

    .booking-modal {
        padding: 15px;
    }

    .booking-modal-content {
        padding: 38px 22px 28px;
    }

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

    .booking-close {
        top: 10px;
        right: 10px;
    }
}