/* ============================================
   JOHN'S BARBER SHOP PREMIUM - Bacau
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* INDUSTRIAL RAW - Grey + Vintage Red + Wood */
    --primary: #2A2A2A;
    --secondary: #8B2E2E;    /* Vintage Red */
    --accent: #C4A77D;       /* Wood tone */
    --white: #FFFFFF;
    --off-white: #F2F0ED;
    --gray: #5A5A5A;
    --dark: #1A1A1A;
    --rust: #A94438;

    --font-heading: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Roboto', 'Segoe UI', sans-serif;

    --shadow: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;

    /* Touch target minimum sizes */
    --touch-target: 2.75rem; /* 44px */

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

/* ============================================
   RESET & BASE STYLES (Mobile-First)
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: var(--font-body);
    font-size: 1rem; /* 16px minimum */
    color: var(--primary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    /* Ensure touch target size for inline links */
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY (Mobile-First)
   ============================================ */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ============================================
   BUTTONS (Touch-friendly)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #D4B78D;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* ============================================
   HEADER & NAVIGATION (Mobile-First)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark);
    padding: var(--space-sm) 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: 0.1875rem;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}

/* Mobile hamburger menu button */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background: var(--white);
    transition: var(--transition);
}

.hamburger::before { top: -0.5rem; }
.hamburger::after { bottom: -0.5rem; }

/* Nav menu - hidden on mobile by default */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    list-style: none;
    flex-direction: column;
    padding: var(--space-sm);
}

.nav-menu.is-active {
    display: flex;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: flex;
    align-items: center;
    min-height: var(--touch-target);
    padding: var(--space-sm);
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

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

/* ============================================
   HERO SECTION (Mobile-First)
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?w=1920') center/cover;
    background-attachment: scroll; /* Better mobile performance */
    color: var(--white);
    text-align: center;
    padding: var(--space-xl) var(--space-sm);
    padding-top: calc(var(--space-xl) + 60px); /* Account for fixed header */
}

.hero-content {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1875rem;
    margin-bottom: var(--space-md);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

/* ============================================
   SECTIONS (Mobile-First)
   ============================================ */
.section {
    padding: var(--space-xl) 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-gallery {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--gray);
    max-width: 37.5rem;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

.gold-line {
    width: 3.75rem;
    height: 0.1875rem;
    background: var(--secondary);
    margin: var(--space-md) auto 0;
}

/* ============================================
   SERVICES (Mobile-First)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    background: var(--off-white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 4.375rem;
    height: 4.375rem;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
}

.service-icon img {
    width: 3.125rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
}

/* ============================================
   ABOUT SECTION (Mobile-First)
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 25rem;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--gray);
    margin-bottom: var(--space-sm);
}

.section-dark .about-content p {
    color: rgba(255,255,255,0.8);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
}

.feature {
    text-align: center;
    flex: 1;
    min-width: 5rem;
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary);
}

.feature-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.section-dark .feature-label {
    color: rgba(255,255,255,0.6);
}

/* ============================================
   GALLERY (Mobile-First)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 1;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* ============================================
   CONTACT (Mobile-First)
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.contact-info {
    font-style: normal;
}

.contact-info h3 {
    margin-bottom: var(--space-md);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 1.875rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
}

.contact-link {
    color: var(--gray);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--secondary);
}

.map-container {
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 18.75rem;
    border: none;
}

/* ============================================
   FOOTER (Mobile-First)
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-xl) var(--space-sm) var(--space-md);
    text-align: center;
}

.footer .logo {
    margin-bottom: var(--space-md);
    display: inline-flex;
}

.footer p {
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-social a {
    width: var(--touch-target);
    height: var(--touch-target);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
}

.whatsapp-btn i {
    font-size: 1.75rem;
    color: var(--white);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   TABLET BREAKPOINT (min-width: 48rem / 768px)
   ============================================ */
@media (min-width: 48rem) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero-badge {
        font-size: 0.875rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image img {
        max-height: 31.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .map-container iframe {
        height: 21.875rem;
    }

    .whatsapp-btn {
        width: 3.75rem;
        height: 3.75rem;
    }

    .whatsapp-btn i {
        font-size: 2rem;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (min-width: 62rem / 992px)
   ============================================ */
@media (min-width: 62rem) {
    .logo {
        font-size: 1.8rem;
    }

    /* Hide hamburger on desktop */
    .nav-toggle {
        display: none;
    }

    /* Show nav menu inline on desktop */
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        gap: 1.875rem;
    }

    .nav-menu li {
        border-bottom: none;
    }

    .nav-menu a {
        min-height: auto;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        background-attachment: fixed;
    }

    .section {
        padding: 6.25rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.875rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.75rem;
    }

    .about-image img {
        height: 31.25rem;
        max-height: none;
    }

    .about-features {
        gap: 2.5rem;
        justify-content: flex-start;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   LARGE DESKTOP (min-width: 75rem / 1200px)
   ============================================ */
@media (min-width: 75rem) {
    .container {
        padding: 0 1.25rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }

    .gallery-item:hover img,
    .service-card:hover,
    .btn-primary:hover,
    .whatsapp-btn:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .whatsapp-btn,
    .footer-social,
    .nav-toggle {
        display: none;
    }

    .hero {
        min-height: auto;
        background: var(--off-white);
        color: var(--primary);
        padding: var(--space-md);
    }

    .section {
        padding: var(--space-md) 0;
    }

    a {
        color: var(--primary);
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
