/* ========================================
   Barbershop El Toro — Custom Styles
   ======================================== */

:root {
    --plum-700: #6B2150;
    --plum-800: #561a42;
    --plum-900: #441435;
    --plum-950: #240a1c;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-400: #fbbf24;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    background: transparent;
}

.nav-scrolled.scrolled {
    background: rgba(36, 10, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    z-index: 1001;
}

.nav-logo-text {
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.nav-cta) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.3s var(--transition-smooth);
    border-radius: 1px;
}

.nav-links a:not(.nav-cta):hover {
    color: #fff;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--amber-600);
    color: #fff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    background: var(--amber-500) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    color: #fff;
}

.nav-line-top, .nav-line-mid, .nav-line-bot {
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-line-top {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-line-mid {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-line-bot {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--plum-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(107, 33, 80, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 5, 15, 0.7) 0%,
        rgba(36, 10, 28, 0.85) 50%,
        rgba(20, 5, 15, 0.92) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 8rem 1.5rem 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: var(--amber-400);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--amber-400);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber-600);
    color: #fff;
    border-color: var(--amber-600);
}

.btn-primary:hover {
    background: var(--amber-500);
    border-color: var(--amber-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--plum-100);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--plum-900);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.063rem;
    color: var(--plum-700);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    border: 1px solid rgba(107, 33, 80, 0.08);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(107, 33, 80, 0.12);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-400);
    margin-bottom: 1.25rem;
}

.service-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum-900);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.938rem;
    color: var(--plum-700);
    line-height: 1.65;
}

/* ========================================
   About
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(107, 33, 80, 0.2);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 6px solid var(--plum-100);
    box-shadow: 0 15px 40px rgba(107, 33, 80, 0.15);
}

.about-img-secondary img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    top: -1rem;
    right: 2rem;
    background: var(--amber-600);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.about-content {
    max-width: 500px;
}

.about-text {
    font-size: 1rem;
    color: var(--plum-700);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--plum-800);
}

.feature-check {
    width: 22px;
    height: 22px;
    background: rgba(107, 33, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
    flex-shrink: 0;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 5/6;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 5, 15, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

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

.gallery-item-overlay span {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(107, 33, 80, 0.08);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(107, 33, 80, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--amber-500);
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 0.938rem;
    color: var(--plum-800);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--plum-900);
    font-size: 0.938rem;
}

.author-detail {
    display: block;
    font-size: 0.813rem;
    color: var(--plum-500);
    margin-top: 0.125rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 10, 28, 0.92) 0%, rgba(107, 33, 80, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(107, 33, 80, 0.08);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(107, 33, 80, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-400);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-500);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    color: var(--plum-900);
    line-height: 1.6;
    font-weight: 500;
}

.contact-link {
    color: var(--plum-700);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--amber-600);
    border-bottom-color: var(--amber-600);
}

.contact-map {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(107, 33, 80, 0.12);
    min-height: 400px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--plum-950);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-contact a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--plum-950);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.35s var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        padding: 7rem 1.25rem 3rem;
    }
    
    .hero-stats {
        gap: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img-secondary {
        right: 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
