:root {
    --black: #0a0a0a;
    --gray: #1a1a1a;
    --panel: #222222;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --white: #ffffff;
    --muted: #b0b0b0;
    --danger: #e05d5d;
    --success: #61c486;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray);
    color: var(--white);
    line-height: 1.7;
}

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

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ----- HEADER ----- */
.site-header {
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .btn { color: var(--black); }

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ----- HERO ----- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(18,18,18,.95), rgba(18,18,18,.78), rgba(18,18,18,.45)),
        url('../images/barbershop.jpg') center/cover;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gray), transparent);
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ----- SECTIONS ----- */
.section { padding: 5rem 0; }
.section.alt { background: var(--black); }
.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}
.section-title .gold { color: var(--gold); }

/* ----- GRID & CARDS ----- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.price {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.3rem;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    gap: 0.4rem;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); filter: brightness(1.1); }
.btn-small { min-height: 38px; padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { box-shadow: 0 8px 20px rgba(224, 93, 93, 0.3); }

/* ----- FORMS ----- */
.form {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}
.form.wide { max-width: 900px; }

label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

input, select, textarea {
    width: 100%;
    background: #151515;
    color: var(--white);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}
input:disabled { opacity: 0.5; cursor: not-allowed; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* ----- BADGES & STATUS ----- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #333;
    color: var(--white);
}
.badge.pending { background: #7a641d; }
.badge.approved { background: #236b45; }
.badge.completed { background: #255f82; }
.badge.cancelled { background: #7d3030; }

/* ----- NOTIFICATIONS ----- */
.notice {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}
.notice.success { background: rgba(97, 196, 134, 0.15); border: 1px solid var(--success); color: var(--success); }
.notice.error { background: rgba(224, 93, 93, 0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ----- SIDEBAR (dashboard) ----- */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}
.sidebar {
    background: var(--black);
    border-radius: var(--radius);
    padding: 1.2rem;
    height: fit-content;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.sidebar a {
    display: block;
    padding: 0.7rem 0.9rem;
    color: var(--muted);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}
.sidebar a:hover, .sidebar a.active {
    background: var(--panel);
    color: var(--gold);
}

/* ----- TABLES ----- */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
}
th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}
th { color: var(--gold); background: #181818; font-weight: 600; }
tr:hover { background: #2a2a2a; }

/* ----- STATS (admin) ----- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.stat {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.stat strong {
    display: block;
    font-size: 2.2rem;
    color: var(--gold);
}

/* ----- ACTIVITIES ----- */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.activity-card { background: var(--panel); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(212, 175, 55, 0.1); }

/* ----- MOBILE RESPONSIVE ----- */
@media (max-width: 768px) {
    .nav-toggle { display: inline-block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black);
        padding: 1.2rem;
        gap: 0.8rem;
        border-radius: 8px;
        border: 1px solid rgba(212,175,55,0.1);
    }
    .nav-links.open { display: flex; }
    .dashboard { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 60vh; }
}
/* ----- SERVICE CARDS WITH IMAGES ----- */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: var(--panel);
}
.service-img-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border-radius: 8px;
    font-size: 2.5rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

/* ----- SERVICES SECTION BACKGROUND ----- */
.services-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/services-bg.jpg') center/cover fixed;
    color: white;
}
.services-section .section-title {
    color: var(--gold);
}
/* ===== ABOUT SECTION ===== */
.about-section {
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('../images/about-bg.jpg') center/cover fixed;
    position: relative;
    padding: 4rem 0;
}

/* About Cards with Images */
.about-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.4);
}

.about-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.about-card:hover .about-card-image img {
    transform: scale(1.05);
}

.about-card-content {
    padding: 1.5rem;
}
.about-card-content h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}
.about-card-content p {
    color: var(--muted);
    line-height: 1.6;
}
/* ----- SERVICE CARDS WITH BACKGROUND IMAGES ----- */
.service-card-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card-bg:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border-color: var(--gold);
}

/* Dark overlay – ensures text is readable */
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.3s ease;
}
.service-card-bg:hover .service-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Content sits above the overlay */
.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 280px;
    color: var(--white);
}
.service-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold);
}
.service-content p {
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.service-content .price {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}
.service-content .btn {
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
}
.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}