:root {
    --bg-dark: #2A1D1A;
    --bg-footer: #1F1513;
    --text-gold: #C59D5F;
    --text-body: #555555;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Bootstrap reads "warning" for every text-warning/bg-warning/btn-warning
       utility class. Left at Bootstrap's default, those render as a bright
       yellow-amber (#ffc107) instead of the site's actual brand gold - this
       redefines the same custom properties panel-theme.css already uses for
       the admin/employee panels, so the public site's gold accents (eyebrow
       labels, badges, both booking buttons) match everywhere else. */
    --bs-warning: #C59D5F;
    --bs-warning-rgb: 197, 157, 95;
    --bs-warning-text-emphasis: #8a6b3a;
    --bs-warning-bg-subtle: #f5ecdd;
    --bs-warning-border-subtle: #C59D5F;
}

.btn-warning,
.btn-check:checked + .btn-warning {
    color: #000;
}
.btn-outline-warning {
    color: #8a6b3a;
}
.btn-outline-warning:hover,
.btn-outline-warning:active {
    color: #000;
}

/* ------------------------------------------------------------------
 * Scroll-triggered entrance animation, shared site-wide (see
 * js/scroll-reveal.js). Add class="reveal" to any section/card wrapper;
 * the script adds "is-visible" the moment it scrolls into view.
 * ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    /* Was 1s - combined with scroll-reveal.js's per-element stagger, content
       near the bottom of a long section could take well over a second to
       actually finish appearing after scrolling into view, reading as
       sluggish rather than a nice touch. Still long enough to be a real,
       visible easing-in rather than an instant snap. */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants - same Intersection Observer trigger (js/scroll-reveal.js
   watches all four classes together), different starting offset. Use these to
   give a two-column layout a converging feel (left column slides from the
   left, right column from the right) and headings a drop-in from above,
   instead of every element sliding up the same way. */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-down.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-down {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 1. Body & Fixed Navbar Spacing */
/* overflow-x: hidden on both html and body is a hard guarantee against any
   horizontal swipe/pan on mobile - even a sub-pixel rounding overflow (which
   a real phone's renderer can expose in ways a desktop/headless browser
   check won't always catch) can otherwise let the page rubber-band sideways
   a few pixels. This makes that physically impossible regardless of cause,
   rather than only fixing whichever specific element happens to be
   overflowing today. */
html {
    overflow-x: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    margin: 0;
    padding-top: 72px; /* Prevents fixed-top navbar from overlapping top content */
    overflow-x: hidden;
}

h1, h2, h3, .serif-font {
    font-family: var(--font-serif);
}

.navbar-custom {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 2. Mobile-Friendly Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/barber-pattern.png.jfif') repeat center/350px;
    min-height: 75vh; /* Replaced fixed height with min-height to prevent text overflow on mobile */
    display: flex;
    align-items: center;
    color: white;
    padding: 60px 0; /* Ensures content has breathing room on phone screens */
}

/* 3. Gold Buttons with Mobile Tap Target Padding */
.btn-gold {
    background-color: var(--text-gold);
    color: white;
    border: none;
    padding: 12px 28px; /* Slightly larger tap targets for finger touches */
    border-radius: 4px;
    font-weight: 500;
}

.btn-gold:hover {
    background-color: #a8834a;
    color: white;
}

.btn-outline-gold {
    border: 1px solid var(--text-gold);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
}

.btn-outline-gold:hover {
    background-color: var(--text-gold);
    color: white;
}

.service-card {
    border: 1px solid #eee;
    border-top: 3px solid var(--text-gold);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-section {
    background-color: var(--bg-dark);
    color: white;
}

.footer-section {
    background-color: var(--bg-footer);
    color: #aaa;
    font-size: 0.9rem;
}

/* 4. Layout & Inline Style Replacements */
.z-index-nav { z-index: 1030; }
.z-index-hero { z-index: 1; }

.hero-custom-bg {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../images/barber-pattern.png.jfif') repeat center/350px;
}

.hero-desc {
    max-width: 650px;
    opacity: 0.9;
}

.services-desc {
    max-width: 550px;
}

.queue-table-scroll {
    max-height: 320px;
    overflow-y: auto;
}

.queue-note {
    color: #e0e0e0 !important;
}

.barber-select-width {
    width: auto;
}

.iframe-map-container {
    height: 320px;
}

.barber-stack-wrapper {
    height: 320px;
}

.barber-card-dimensions {
    max-width: 270px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-user-select: none; /* Safari 3+ & iOS 3+ */
    user-select: none;
}

.barber-img-height {
    height: 230px;
}

.barber-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.font-size-xs {
    font-size: 0.75rem;
}

.font-size-sm-badge {
    font-size: 0.75rem;
}

.tracking-letter-wide {
    letter-spacing: 2px;
}

/* 5. Responsive Mobile Tweaks */
@media (max-width: 768px) {
    /* Responsive font sizing for mobile headlines */
    h1, .display-4 {
        font-size: 2.1rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Stack buttons neatly on mobile if they align horizontally */
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Mobile Hamburger Menu Background & Link Styling */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* FIX: Force menu links to display dark and visible on the white background */
    .navbar-collapse .nav-link {
        color: #2A1D1A !important;
        font-weight: 500;
        padding: 8px 0;
    }

    .navbar-collapse .nav-link:hover {
        color: #C59D5F !important;
    }
}