/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-dark: #0a0a0c;
    --bg-light: #151518;
    --accent: #d4af37;
    /* Gold/Copper */
    --accent-hover: #b5952f;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
}

/* ==================================================
   Custom Scrollbar
================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

/* --- LAYOUT UTILS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-secondary,
.btn-booksy {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-booksy {
    background-color: var(--text-main);
    color: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-booksy:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.9), transparent);
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background-image: url('assets/barber_hero_bg_1772666305009.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 12, 0.4), rgba(10, 10, 12, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- ABOUT SECTION --- */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent);
    z-index: -1;
    border-radius: 4px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--bg-light);
}

.price-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

.price-item:hover {
    transform: translateX(10px);
}

.price-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-header h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
}

.price-line {
    flex: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent);
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 80%;
}

/* --- BANNER --- */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transition: transform 10s linear;
}

.banner:hover .banner-bg {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- TEAM SECTION --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85) contrast(1.1);
}

.team-member:hover .team-img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.9) 0%, transparent 60%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
    gap: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .team-overlay {
    opacity: 1;
}

.team-overlay a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.team-overlay a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item h4 {
    font-family: var(--font-body);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

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

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
    background-color: #050505;
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--bg-dark);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.t-stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.t-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.t-author {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-main);
}

/* --- FLOATING ACTIONS --- */
.floating-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--accent);
    color: var(--bg-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulsePhone 2s infinite;
}

.floating-phone:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
    color: var(--bg-dark);
    animation: none;
}

@keyframes pulsePhone {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- ANIMATIONS CLASSES --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease-out;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: 0.8s ease-out;
}

.fade-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: 0.8s ease-out;
}

.fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .about-image::before {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .navbar .btn-booksy {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .price-desc {
        width: 100%;
    }

    .banner-content h2 {
        font-size: 2rem;
    }
}

/* --- MOBILE HORIZONTAL OUT OF BOUNDS SWIPE FIX --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}

section,
footer,
.hero {
    max-width: 100%;
    overflow-x: hidden;
}