:root {
    /* Colors */
    --primary: #1A1A1A;     /* Deep Charcoal Black */
    --accent: #C9901A;      /* Gold/Amber */
    --accent-hover: #E1A21E;
    --secondary: #F5F0E8;   /* Off-white Cream */
    --text-main: #F5F0E8;
    --text-muted: #A0A0A0;
    --bg-darker: #121212;
    --bg-gold-dark: #8C6412;
    
    /* Typography */
    --font-heading: 'Oswald', 'Barlow Condensed', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', 'DM Sans', sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.w-100 { width: 100%; }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
}

.split-layout h2.section-title::after {
    margin: 20px 0 0;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

.btn-gold:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 144, 26, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.4s ease;
    padding: 20px 0;
}

#main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

#main-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 1px;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: 0.3s;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px; /* Added hero padding */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.5) 50%, rgba(26,26,26,0) 100%),
                linear-gradient(to top, rgba(26,26,26,1) 0%, rgba(26,26,26,0) 30%);
}

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

.hero-content .badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-proof {
    margin-top: 50px;
}

.stars { color: var(--accent); font-size: 1.2rem; }
.rating-text { margin-left: 10px; font-weight: 600; }

/* Trust Bar */
#trust-bar {
    background-color: var(--bg-darker);
    padding: 30px 0;
    border-top: 1px solid rgba(201, 144, 26, 0.2);
    border-bottom: 1px solid rgba(201, 144, 26, 0.2);
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.trust-grid .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* About Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.photo-column img {
    border: 10px solid var(--bg-darker);
    box-shadow: 20px 20px 0 var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-darker);
    border-bottom: 3px solid var(--accent);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--primary);
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.service-img {
    height: 300px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

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

.service-info {
    padding: 30px;
    text-align: center;
}

.placeholder-img {
    width: 100%;
    height: 100%;
}

/* Booking CTA Section */
.dark-cta {
    background: linear-gradient(rgba(26,26,26,0.9), rgba(26,26,26,0.9)), url('hero_barbershop_dark_webp_1775590432951.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hours-display {
    margin: 30px 0;
    color: var(--text-main);
}

.policy-notice {
    margin-bottom: 40px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    transition: 0.5s ease;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 60px;
    cursor: pointer;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-slide p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-main);
    margin: 20px 0;
}

.testimonial-slide .author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.prev-slide { left: 0; }
.next-slide { right: 0; }

/* Appointment/Contact Form Styling */
.form-card {
    background: var(--bg-darker);
    padding: 50px;
    border: 1px solid rgba(201, 144, 26, 0.2);
    border-radius: 4px;
}

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

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: #252525;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #2A2A2A;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    display: none;
    margin-top: 5px;
}

.form-group.error .error-msg { display: block; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #ff4d4d; }

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 { margin-bottom: 15px; }
.contact-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

.map-wrapper {
    height: 450px;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    border: 1px solid rgba(201, 144, 26, 0.2);
}

/* Newsletter */
#newsletter {
    background-color: var(--bg-gold-dark);
    color: white;
}

#newsletter h3 {
    margin-bottom: 10px;
}

#newsletter p {
    color: rgba(255,255,255,0.8);
}

.newsletter-form-inline {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 12px;
    border: none;
}

/* Footer */
#main-footer {
    background-color: #0A0A0A;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 20px;
}

.link-gold {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
}

.active-reveal {
    opacity: 1 !important;
    transform: translate(0) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: var(--section-padding-mobile); }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        border-bottom: 2px solid var(--accent);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle { display: flex; }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .photo-column img { box-shadow: 10px 10px 0 var(--accent); }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
