/* ================================
   MR. JOSEF VIP BARBER SHOP
   Dark + Gold theme
   ================================ */

:root {
    --bg-0: #0a0806;
    --bg-1: #14100a;
    --bg-2: #1c1610;
    --bg-3: #261e15;
    --gold: #d4a857;
    --gold-light: #e8c887;
    --gold-dark: #a07c2c;
    --gold-soft: rgba(212, 168, 87, 0.12);
    --text: #f4ead7;
    --text-dim: #a89b82;
    --text-muted: #6e6552;
    --border: rgba(212, 168, 87, 0.18);
    --border-strong: rgba(212, 168, 87, 0.45);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --whatsapp: #25d366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .2s;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-title span {
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 56px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 12px;
}

section {
    padding: 90px 0;
    position: relative;
}

/* ---------------- Header ---------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, padding .3s;
}

.header.scrolled {
    background: rgba(10, 8, 6, 0.92);
    border-bottom-color: var(--border);
    padding: 8px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    box-shadow: 0 4px 18px rgba(212, 168, 87, 0.25);
    transition: transform .3s;
}

.brand:hover img {
    transform: rotate(8deg) scale(1.04);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1;
}

.brand-text small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}

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

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 3px;
    background: var(--bg-1);
}

.lang-switch a {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.lang-switch a.active {
    background: var(--gold);
    color: var(--bg-0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px 10px;
}

/* ---------------- Hero ---------------- */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(212, 168, 87, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 168, 87, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #0a0806 0%, #14100a 60%, #0a0806 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 60px, rgba(212, 168, 87, 0.025) 60px 61px),
        repeating-linear-gradient(-45deg, transparent 0 60px, rgba(212, 168, 87, 0.025) 60px 61px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-soft);
    border: 1px solid var(--border-strong);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-tag::before {
    content: '✦';
    color: var(--gold);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 .accent {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero-desc {
    color: var(--text-dim);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-meta-item {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.hero-meta-item strong {
    display: block;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 460px;
    margin: 0 auto;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed var(--border-strong);
    animation: spin 60s linear infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 87, 0.18) 0%, transparent 70%);
    filter: blur(20px);
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(212, 168, 87, 0.3));
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .25s;
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-0);
    box-shadow: 0 8px 24px rgba(212, 168, 87, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 168, 87, 0.45);
    color: var(--bg-0);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff;
    background: #20b455;
}

/* ---------------- Services ---------------- */
.services {
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.service-card {
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background:
        radial-gradient(ellipse at top right, rgba(212, 168, 87, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border-color: var(--border-strong);
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--gold);
    color: var(--bg-0);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}

.service-desc {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 18px;
    min-height: 42px;
}

.service-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
}

/* ---------------- Gallery ---------------- */
.gallery {
    background: var(--bg-0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity .3s;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--gold);
    color: var(--bg-0);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    font-weight: 700;
}

/* ---------------- About ---------------- */
.about {
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px 0;
    gap: 12px;
}

.about-divider::before,
.about-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.about-divider span {
    color: var(--gold);
    font-size: 1.3rem;
}

.about-langs {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

/* ---------------- Contact ---------------- */
.contact {
    background: var(--bg-0);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-row-text strong {
    display: block;
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-row-text span,
.contact-row-text a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.contact-row-text a:hover {
    color: var(--gold);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.hours-row .day {
    color: var(--text);
    font-weight: 500;
}

.hours-row .time {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

.hours-row.closed .time {
    color: var(--text-muted);
}

.hours-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hours-status.open {
    background: rgba(37, 211, 102, 0.12);
    color: #2fd673;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.hours-status.closed {
    background: rgba(255, 100, 100, 0.10);
    color: #d77;
    border: 1px solid rgba(255, 100, 100, 0.25);
}

.hours-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.map-wrap {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.9) hue-rotate(180deg) saturate(0.4);
}

/* ---------------- Footer ---------------- */
.footer {
    background: #050402;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    margin: 0 auto 12px;
}

.footer-brand h3 {
    color: var(--text);
    font-size: 1.2rem;
}

.footer-brand small {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 28px 0;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all .25s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--bg-0);
    transform: translateY(-3px);
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.82rem;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom a {
    color: var(--text-dim);
}

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

/* ---------------- WhatsApp Floating ---------------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform .25s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { max-width: 320px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    section { padding: 70px 0; }
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        background: var(--bg-1);
        border: 1px solid var(--border);
        border-radius: 14px;
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all .25s;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu a {
        display: block;
        padding: 10px 14px;
        border-radius: 8px;
    }
    .nav-menu a:hover {
        background: var(--gold-soft);
    }
    .menu-toggle { display: block; }
    .brand-text { font-size: 0.92rem; }
    .brand img { width: 44px; height: 44px; }
    .hero { padding: 100px 0 60px; }
    .hero-meta { gap: 18px; }
    .lang-switch a { padding: 4px 9px; font-size: 0.72rem; }
}

@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .contact-card { padding: 24px; }
    .service-card { padding: 22px; }
    .whatsapp-float {
        width: 54px; height: 54px;
        bottom: 18px; right: 18px;
    }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ---------------- Reveal animations ---------------- */
html.js-on .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

html.js-on .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js-on .reveal { opacity: 1 !important; transform: none !important; }
}
