/* ============================================================
   4MEN BARBER SHOP — STYLES
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown-dark: #3E1F0D;
    --brown-mid: #6B3A2A;
    --brown-warm: #8B5E3C;
    --brown-light: #A67C52;
    --gold: #C49A6C;
    --gold-light: #D4B896;
    --black: #0D0D0D;
    --black-soft: #1A1A1A;
    --black-card: #1E1E1E;
    --cream: #F5F0EB;
    --white: #FFFFFF;
    --gray: #999;
    --gray-dark: #666;

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* --- SECTION TAGS & TITLES --- */
.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.section-p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    max-width: 600px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--gray);
    font-weight: 500;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--cream);
    transition: color var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

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

.nav-cta {
    background: var(--gold);
    color: var(--black) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.75) 0%,
        rgba(13, 13, 13, 0.6) 40%,
        rgba(13, 13, 13, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--white);
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.5em;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-style: italic;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 154, 108, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce-down 2s ease-in-out infinite;
}

.hero-scroll span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    position: relative;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 4px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-dot {
    0%, 100% { top: 10px; opacity: 1; }
    50% { top: 28px; opacity: 0.2; }
}

/* ============================================================
   FADE-UP ANIMATION (on load)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 0.9s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }
.fade-up.delay-4 { animation-delay: 0.6s; }

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

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--brown-mid);
    border-radius: 16px;
    transform: translate(12px, 12px);
    z-index: -1;
    opacity: 0.6;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.3rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: var(--black-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brown-mid);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-box {
    max-width: 550px;
    margin: 3rem auto 0;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition-fast);
}

.schedule-row:hover {
    background: rgba(255,255,255,0.02);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row.highlight {
    background: rgba(196, 154, 108, 0.08);
}

.schedule-row.highlight .day {
    color: var(--gold);
}

.schedule-row.closed {
    opacity: 0.5;
}

.schedule-row .day {
    font-weight: 600;
    color: var(--cream);
    font-size: 1rem;
}

.schedule-row .hours {
    color: var(--gray);
    font-size: 0.95rem;
}

.schedule-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray);
}

.schedule-note a {
    color: var(--gold);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.schedule-note a:hover {
    color: var(--gold-light);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: var(--black-soft);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color var(--transition-fast);
    cursor: default;
}

a.contact-link {
    cursor: pointer;
}

a.contact-link:hover {
    border-color: var(--brown-mid);
}

.contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-link strong {
    display: block;
    color: var(--cream);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.contact-link span:last-child {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.contact-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    display: block;
}

.footer-sub {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--gray);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--cream);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-contact a {
    color: var(--gold);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 350px;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Mobile nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--black-soft);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-subtitle {
        letter-spacing: 0.3em;
    }

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

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

    .gallery-item img {
        height: 250px;
    }

    .contact-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .schedule-row {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
