/* ========== Nextrim - Template-Inspired Style ========== */
/* Inspired by Colorlib barber template - Oswald + Poppins, warm gold accent */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0a0e17;
    --secondary: #4a7fc7;
    --accent: #d4a853;
    --bg: #070a10;
    --card: #111722;
    --card-hover: #1a2332;
    --text: #f0f2f5;
    --text-muted: #8892a8;
    --text-dark: #666;
    --success: #2ea043;
    --warning: #d29922;
    --danger: #da3633;
    --border: #1e2535;
    --shadow: 0 15px 50px rgba(0,0,0,0.5);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: 100%; padding: 0 40px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }

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

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }


/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; position: relative; }
.preloader-circle {
    width: 80px; height: 80px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
.preloader-img {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HEADER / NAVBAR ===== */
.header-area {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s;
}
.header-area.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.main-header { padding: 10px 0; }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center; gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}
.logo-img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); padding: 2px; }
.logo-text {
    background: linear-gradient(135deg, var(--accent), #e8c474);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.nav-menu a:hover { color: var(--accent); background: rgba(212, 168, 83, 0.08); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ===== MAIN ===== */
#mainContent { margin-top: 0; }
#loading {
    text-align: center; padding: 80px 20px;
    display: none;
}
#loading .spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 15px;
}
#loading p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== SECTION TITLE (template style) ===== */
.section-tittle { margin-bottom: 50px; }
.section-tittle span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 8px;
}
.section-tittle h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

/* ===== HERO (template style) ===== */
.hero-area {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    z-index: 1;
}
.hero-area::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,23,0.92) 0%, rgba(17,23,34,0.7) 50%, rgba(10,14,23,0.88) 100%);
    z-index: -1;
}
.hero-area::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,83,0.06) 0%, transparent 60%);
    z-index: -1;
}
.hero-caption { padding: 180px 0 100px; }
.hero-caption span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.hero-caption h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero-caption h1 .highlight {
    color: var(--accent);
}
.hero-caption p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 300;
}
.hero-shape {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px;
    border: none; border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.btn-primary {
    background: var(--accent);
    color: #0a0e17;
    box-shadow: 0 4px 20px rgba(212,168,83,0.25);
}
.btn-primary:hover { background: #e8c474; transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212,168,83,0.35); }
.btn-accent {
    background: var(--accent);
    color: #0a0e17;
    box-shadow: 0 4px 20px rgba(212,168,83,0.25);
}
.btn-accent:hover { background: #e8c474; transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212,168,83,0.35); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { padding: 10px 24px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}
.card:hover { border-color: rgba(212,168,83,0.2); box-shadow: var(--shadow); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.8rem; font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-family: var(--font-heading);
}
.form-input {
    width: 100%;
    padding: 13px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,168,83,0.08); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }

/* ===== GRID ===== */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SECTION PADDING ===== */
.section-padding { padding: 100px 0; }
.section-padding2 { padding: 80px 0; }
.pb-80 { padding-bottom: 80px; }
.mb-80 { margin-bottom: 80px; }

/* ===== TEAM AREA (template single-team style) ===== */
.team-area {
    padding-bottom: 180px;
}

.single-team {
    position: relative;
    text-align: center;
}

.single-team .team-img {
    overflow: hidden;
    position: relative;
}

.single-team .team-img img {
    width: 100%;
    transform: scale(1);
    transition: all 0.6s ease-out;
    display: block;
}

.single-team:hover .team-img img {
    transform: scale(1.05);
}

.single-team .team-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10,14,23,0.85) 40%, rgba(10,14,23,0.97) 100%);
    padding: 50px 20px 25px;
    z-index: 2;
    transition: all 0.4s;
}

.single-team .team-caption::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.single-team:hover .team-caption::before {
    opacity: 1;
}

.single-team .team-caption .badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.single-team .team-caption .badge-available {
    background: rgba(212,168,83,0.15);
    color: var(--accent);
    border: 1px solid rgba(212,168,83,0.2);
}

.single-team .team-caption .badge-unavailable {
    background: rgba(218,54,51,0.15);
    color: var(--danger);
    border: 1px solid rgba(218,54,51,0.2);
}

.single-team .team-caption h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-team .team-caption p {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-weight: 300;
    margin-bottom: 0;
}

.single-team .team-caption .team-bio {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, margin 0.4s;
    margin-top: 0;
}

.single-team:hover .team-caption .team-bio {
    max-height: 60px;
    margin-top: 6px;
}

.single-team .team-footer {
    padding: 16px 20px 25px;
}

.single-team .team-footer .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid rgba(212,168,83,0.25);
    color: var(--accent);
}

.single-team .team-footer .btn:hover {
    background: var(--accent);
    color: #0a0e17;
}

/* ===== SERVICE CARDS (template style) ===== */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,168,83,0.15);
    box-shadow: 0 12px 45px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 70px; height: 70px;
    margin: 0 auto 20px;
    background: rgba(212,168,83,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.4s;
}
.service-card:hover .service-icon {
    background: var(--accent);
    color: #0a0e17;
    transform: scale(1.1);
}
.service-card h4 { font-size: 1.15rem; margin-bottom: 10px; font-family: var(--font-heading); }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }
.service-card .price-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 20px;
    background: rgba(212,168,83,0.08);
    border: 1px solid rgba(212,168,83,0.15);
    border-radius: 2px;
    color: var(--accent);
    font-weight: 500;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* ===== APPOINTMENT CARDS ===== */
.appointment-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s;
}
.appointment-card:hover { border-color: rgba(212,168,83,0.15); box-shadow: var(--shadow); }
.appointment-card .status-badge {
    display: inline-block; padding: 4px 14px; border-radius: 2px;
    font-size: 0.72rem; font-weight: 500; font-family: var(--font-heading); letter-spacing: 0.5px;
}
.status-pending { background: rgba(210,153,34,0.12); color: var(--warning); border: 1px solid rgba(210,153,34,0.2); }
.status-confirmed { background: rgba(74,127,199,0.12); color: var(--secondary); border: 1px solid rgba(74,127,199,0.2); }
.status-completed { background: rgba(46,160,67,0.12); color: var(--success); border: 1px solid rgba(46,160,67,0.2); }
.status-cancelled { background: rgba(218,54,51,0.12); color: var(--danger); border: 1px solid rgba(218,54,51,0.2); }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: 6px; margin-bottom: 20px; font-weight: 500; font-size: 0.9rem; }
.alert-error { background: rgba(218,54,51,0.1); border: 1px solid rgba(218,54,51,0.25); color: var(--danger); }
.alert-success { background: rgba(46,160,67,0.1); border: 1px solid rgba(46,160,67,0.25); color: var(--success); }
.alert-info { background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.25); color: var(--accent); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 100px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary) 0%, var(--card) 100%);
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 1px; }
.page-header p { color: var(--text-muted); font-size: 1rem; font-weight: 300; }

/* ===== STATS ===== */
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card .stat-number {
    font-size: 2.4rem; font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table th { color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; font-family: var(--font-heading); }
table tr:hover td { background: rgba(212,168,83,0.02); }

/* ===== BOOKING STEP ===== */
.booking-step { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.single-team.booking-select {
    cursor: pointer;
}
.single-team.booking-select .team-footer .btn {
    pointer-events: none;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 20px;
}
.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* ===== FOOTER (template style) ===== */
.footer-area {
    background: var(--primary);
    border-top: 1px solid var(--border);
    position: relative;
}
.footer-area::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-logo img { width: 50px; border-radius: 50%; margin-bottom: 15px; }
.footer-info { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 15px; font-weight: 300; }
.footer-contact h4 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text); margin-bottom: 2px; }
.footer-contact p { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: all 0.3s; font-weight: 300; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-col .schedule li {
    display: flex; justify-content: space-between;
    color: var(--text-muted); font-size: 0.88rem;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-weight: 300;
}
.footer-col .schedule li span { color: var(--text); font-weight: 500; }
.footer-form { display: flex; gap: 8px; }
.footer-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.85rem;
}
.footer-input:focus { outline: none; border-color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: url('../img/hero-bg.png') center/cover no-repeat fixed;
    position: relative;
}
.auth-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(10,14,23,0.88);
}
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-grid .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.gallery-grid .gallery-item img { width: 100%; display: block; transition: transform 0.5s; }
.gallery-grid .gallery-item:hover img { transform: scale(1.05); }
.gallery-grid .gallery-item:first-child { grid-column: 1 / -1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .container-fluid { padding: 0 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute; top: 62px; left: 0; right: 0;
        background: rgba(10,14,23,0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }

    .hero-caption h1 { font-size: 2.4rem; }
    .hero-caption { padding: 140px 0 80px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-tittle h2 { font-size: 1.6rem; }
    .page-header h1 { font-size: 1.8rem; }
    .footer-form { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }

    .team-area { padding-bottom: 100px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
