@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;700&family=Playfair+Display+SC:wght@400;700;900&display=swap');

:root {
    --bg-dark: #121212;
    --bg-panel: #1a1a1a;
    --gold: #DBB779;
    --gold-light: #f3e5ab;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 100;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    scroll-margin-top: -20px;
}

nav {
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.nav-bar {
    background: var(--bg-panel);
    color: var(--gold);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}


/* Mobile nav elements - hidden on desktop */
.mobile-menu-toggle,
.mobile-nav {
    display: none;
}

/* Decorative double border effect for nav */
.nav-bar::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid var(--gold);
    pointer-events: none;
    opacity: 0.5;
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 5px var(--gold);
}

/* Nav CTA Button */
/* Nav CTA Button */
.nav-cta {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display SC', serif;
    position: relative;
    /* Required for pseudo-element positioning */
    z-index: 1;
    /* Ensure text stays on top */

    /* Animation Base State */
    max-width: 0;
    padding: 8px 0;
    margin-left: 0;
    border: 1px solid var(--gold);
    /* Set color but width 0 initially to prevent color jump */
    border-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;

    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}



/* Hover Animation - Diamond Fill Effect */
.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--gold);
    transition: all 0.4s ease;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-cta.visible {
    max-width: 150px;
    /* Approximately needed width */
    padding: 8px 16px;
    margin-left: 20px;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
}

.nav-cta:hover::before {
    width: 300%;
    height: 300%;
}

.nav-cta:hover {
    color: var(--bg-dark) !important;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    /* Background handled by pseudo-element */
    background: transparent;
}

header {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 100%;
    width: 650px;
    /* Increased from 500px */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

header p {
    text-align: center;
    margin: 1.5rem auto;
    color: var(--gold) !important;
    /* Force override inline styles if needed */
}

/* Art Deco Button */
.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--gold);
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    border: 2px solid var(--gold);
    font-size: 1.2rem;
    margin-top: 1rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--gold);
    transition: all 0.4s ease;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.cta-button:hover::before {
    width: 300%;
    height: 300%;
}

.cta-button:hover .btn-icon {
    fill: var(--bg-dark);
}

/* Explicit Yelp & Directions Button Hover */
.cta-button.yelp-btn:hover,
.cta-button.directions-btn:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.directions-btn {
    display: none;
}

.cta-button:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.section-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 3rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Decorative lines on sides of titles */
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.section-title::before {
    margin-left: -45px;
}

.section-title::after {
    margin-left: 15px;
}


.section-box {
    border: 2px solid var(--gold);
    padding: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    background: var(--bg-panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Old Corner Decorations removed */
.section-box::before,
.section-box::after {
    display: none;
}

/* New SVG Corner Decorations */
.corner-decoration {
    position: absolute;
    width: calc(50% + 12px);
    height: calc(50% + 12px);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    /* Clip the lines at the middle of the card */
}

/* Base orientation is Top-Left. Other corners are mirrored via CSS. */
.corner-decoration.top-left {
    top: -12px;
    left: -12px;
}

.corner-decoration.top-right {
    top: -12px;
    right: -12px;
    transform: scaleX(-1);
}

.corner-decoration.bottom-left {
    bottom: -12px;
    left: -12px;
    transform: scaleY(-1);
}

.corner-decoration.bottom-right {
    bottom: -12px;
    right: -12px;
    transform: scale(-1, -1);
}

.corner-decoration svg {
    width: 100%;
    height: 100%;
}

.corner-decoration path {
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
    stroke-linecap: square;
}

.static-path {
    stroke-opacity: 1;
}

.animated-path {
    /* Large dasharray to ensure it can cover any card size */
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    transition: stroke-dashoffset 3s ease-in-out;
}

.section-box.active .animated-path {
    stroke-dashoffset: 0;
}

.scroll-center-trigger {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.dashed-line {
    border-top: 1px dashed var(--gold);
    opacity: 0.3;
    margin: 2rem 0;
    width: 100%;
}

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

.price-list {
    list-style: none;
    padding: 0;
}

.price-list li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold-light);
}

.price-list li span:last-child {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--text-light);
}

.accent-stripe {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 40px 0;
}

.footer {
    background: var(--bg-panel);
    color: var(--gold);
    padding: 50px 20px;
    text-align: center;
    margin-top: 0;
    border-top: 1px solid var(--gold);
}

.footer-social h3 {
    font-family: 'Playfair Display SC', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin: 0 0 1.5rem 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.footer a:hover .social-icon {
    transform: translateY(-3px);
}

.footer a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.footer .separator {
    display: none;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* Visit Section */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.visit-info h3 {
    font-family: 'Playfair Display SC', serif;
    color: var(--gold);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.visit-info h3:first-child {
    margin-top: 0;
}

.visit-text {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-light);
}

.visit-text a {
    color: var(--gold-light);
    text-decoration: none;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
    padding-bottom: 4px;
}

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

.map-container iframe {
    border: 1px solid var(--gold);
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: block;
    /* filter: grayscale(100%) invert(90%) contrast(120%); removed custom map style */
}

/* Animation for phone highlight */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

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

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

.highlight-phone {
    display: inline-block;
    animation: pulse-gold 1.5s infinite;
    position: relative;
    background-color: rgba(212, 175, 55, 0.2) !important;
    padding: 0 5px;
    border-radius: 4px;
    color: var(--gold-light) !important;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

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

    .main-logo {
        width: 80%;
    }

    .hours-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 15px;
    }

    .nav-bar {
        /* Remove Nav Bar Visuals on Mobile */
        background: transparent;
        border: none;
        box-shadow: none;

        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        /* Align hamburger to right */
        align-items: center;
        padding: 0;
        /* Remove padding */
        pointer-events: none;
        /* Let clicks pass through empty space */
    }

    .nav-bar::after {
        display: none;
        /* Remove decorative border */
    }

    .nav-bar>span {
        display: none;
        /* Hide 'A BARBER SHOP' text */
    }

    /* Hide desktop nav links on mobile */
    .nav-links {
        display: none;
    }

    /* Mobile Menu Toggle Button (Hamburger) */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: var(--bg-panel);
        border: 1px solid var(--gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        cursor: pointer;
        padding: 10px;
        position: fixed;
        top: 25px;
        right: 30px;
        z-index: 3000;
    }

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

    /* Mobile Nav Overlay - True Fullscreen */
    .mobile-nav {
        position: fixed;
        inset: 0;
        /* Covers entire viewport including status bar area */
        width: 100%;
        height: 100%;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 5000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        /* Grain texture */
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
    }

    /* Close Button - Same position as hamburger */
    .mobile-nav-close {
        position: absolute;
        top: 25px;
        right: 30px;
        background: var(--bg-panel);
        border: 1px solid var(--gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        cursor: pointer;
        padding: 10px;
        width: 52px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-nav-close span {
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--gold);
        position: absolute;
    }

    .mobile-nav-close span:first-child {
        transform: rotate(45deg);
    }

    .mobile-nav-close span:last-child {
        transform: rotate(-45deg);
    }

    /* Mobile Nav Content - Centered */
    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: 1;
        padding-top: 80px;
        /* Space for close button */
    }

    /* Nav Links */
    .mobile-nav-link {
        font-family: 'Playfair Display SC', serif;
        font-weight: 700;
        color: var(--gold);
        text-decoration: none;
        font-size: 2rem;
        margin: 1rem 0;
        display: block;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .mobile-nav.active .mobile-nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav.active .mobile-nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(4) {
        transition-delay: 0.4s;
    }

    /* Hours Section */
    .mobile-nav-hours {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 2rem 0;
        color: var(--gold-light);
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.5s;
    }

    .mobile-nav.active .mobile-nav-hours {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-hours-title {
        font-family: 'Playfair Display SC', serif;
        font-weight: 700;
        color: var(--gold);
        letter-spacing: 2px;
        margin-bottom: 5px;
        border-bottom: 1px solid var(--gold);
        display: inline-block;
    }

    .mobile-nav-hours span {
        font-size: 1.1rem;
    }

    /* Book Now Button - Fixed at bottom */
    .mobile-nav-book {
        font-family: 'Playfair Display SC', serif;
        font-weight: 900;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        padding: 15px 40px;
        font-size: 1.5rem;
        color: var(--bg-panel);
        background: var(--gold);
        border: 2px solid var(--gold);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        margin-bottom: 4rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.6s;
    }

    .mobile-nav.active .mobile-nav-book {
        opacity: 1;
        transform: translateY(0);
    }


    /* Scroll Center Trigger Fix */
    #visit .scroll-center-trigger {
        top: 50%;
    }

    /* Replace Map with Button on Mobile */
    .map-container iframe {
        display: none;
    }

    .map-container {
        min-height: auto;
        display: flex;
        justify-content: center;
    }

    .directions-btn {
        display: inline-block;
        font-size: 1rem;
        padding: 10px 30px;
        width: 100%;
        max-width: 300px;
        /* Prevent it from being too wide */
        text-align: center;
    }



    /* Force "Hover State" style for CTAs on Mobile */
    .cta-button {
        color: var(--bg-dark);
        background-color: var(--gold);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }

    .cta-button::before {
        width: 300%;
        height: 300%;
    }

    /* Override for Yelp & Directions Button on Mobile: Match Desktop Default */
    .cta-button.yelp-btn,
    .cta-button.directions-btn {
        background-color: transparent;
        color: var(--gold);
        box-shadow: none;
    }

    .cta-button.yelp-btn::before,
    .cta-button.directions-btn::before {
        width: 0;
        height: 0;
    }

    /* Better wrapping for social icons on mobile */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        justify-items: center;
        max-width: 70%;
        margin: 0 auto;
    }

    .cta-button::before {
        width: 300%;
        height: 300%;
    }
}

@media (min-width: 769px) {
    section {
        scroll-margin-top: 50px;
    }
}

.section-svg {
    height: 80px;
    width: auto;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Reviews Section */
/* Reviews Section */
.reviews-carousel {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Ensure arrows/dots don't spill if added */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    /* transition is managed by JS for continuous loops, or CSS for simple slides */
    width: 100%;
    gap: 70px;
    /* Added gap for separation */
}

/* Mobile first: 100% width */
.review-card {
    flex: 0 0 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease;
    /* Removed transform */
    box-sizing: border-box;
    /* Critical for padding */
}

@media (min-width: 769px) {

    /* Restore Grid Layout for Desktop */
    .carousel-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        transform: none !important;
        /* Override JS inline styles */
        width: 100% !important;
    }

    /* Hide Clones on Desktop */
    .review-card.clone {
        display: none !important;
    }

    .review-card {
        flex: none;
        width: auto;
    }
}

.review-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    /* Removed transform: translateY(-5px); */
}

.review-text {
    font-family: 'Josefin Sans', sans-serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.review-toggle {
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    border-bottom: 1px dotted var(--gold);
    transition: all 0.3s ease;
}

.review-toggle:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}

.review-author {
    display: block;
    font-family: 'Playfair Display SC', serif;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Specific fix/override for the inline link in the copyright line */
.copyright a {
    display: inline;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    text-decoration: underline;
    gap: 0;
}

.copyright a:hover {
    transform: none;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold);
}

.walk-ins-label {
    text-align: center;
    font-family: 'Playfair Display SC', serif;
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
}