/* ========================================
   Chase To The Cut Barbershop
   Bold Editorial Design System
   ======================================== */

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

:root {
    /* Emerald Palette */
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    
    /* Cream Palette */
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #e8dcc8;
    --cream-300: #d4c5a9;
    
    /* Neutrals */
    --neutral-950: #0a0a0a;
    --neutral-900: #111111;
    --neutral-800: #1a1a1a;
    --neutral-700: #2a2a2a;
    --neutral-600: #404040;
    --neutral-500: #6b6b6b;
    --neutral-400: #909090;
    --neutral-300: #b8b8b8;
    --neutral-200: #d4d4d4;
    --neutral-100: #ececec;
    --neutral-50: #f8f8f8;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-900);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--neutral-900);
    margin-bottom: var(--space-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-800);
    color: var(--cream-50);
    border-color: var(--emerald-800);
}

.btn-primary:hover {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-900);
    border-color: var(--neutral-300);
}

.btn-secondary:hover {
    border-color: var(--emerald-800);
    color: var(--emerald-800);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--cream-50);
    color: var(--emerald-900);
    border-color: var(--cream-50);
}

.btn-light:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream-50);
    border-color: rgba(250, 248, 244, 0.5);
}

.btn-outline-light:hover {
    background: var(--cream-50);
    color: var(--emerald-900);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neutral-900);
}

.nav-logo-icon {
    color: var(--emerald-700);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-700);
    transition: width var(--transition-base);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--emerald-800);
    color: var(--cream-50) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all var(--transition-base) !important;
}

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

.nav-cta:hover {
    background: var(--emerald-900) !important;
    color: var(--cream-50) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--neutral-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--cream-50);
    padding: 120px var(--space-lg) var(--space-3xl);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 78, 59, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 197, 169, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(6, 78, 59, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 540px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--emerald-700);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--neutral-900);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero-em {
    font-style: italic;
    color: var(--emerald-700);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Hero Cards */
.hero-cards {
    position: relative;
    height: 580px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-card--main {
    width: 320px;
    height: 420px;
    top: 20px;
    right: 40px;
    z-index: 2;
}

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

.hero-card--stat {
    background: var(--emerald-800);
    color: var(--cream-50);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-card--stat-1 {
    width: 180px;
    height: 160px;
    top: 0;
    right: 0;
    z-index: 3;
    background: var(--neutral-900);
}

.hero-card--stat-2 {
    width: 170px;
    height: 150px;
    bottom: 140px;
    left: 0;
    z-index: 4;
}

.hero-card--stat-3 {
    width: 170px;
    height: 150px;
    bottom: 0;
    right: 20px;
    z-index: 3;
    background: var(--emerald-900);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cream-50);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cream-200);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-400);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Services Section --- */
.services {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--emerald-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-800);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--emerald-800);
    color: var(--cream-50);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-900);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* --- About Section --- */
.about {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--emerald-300);
    border-radius: var(--radius-lg);
    z-index: -1;
}

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

.about-text {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-800);
}

.value-icon {
    width: 24px;
    height: 24px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* --- Gallery Section --- */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

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

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

.gallery-item:nth-child(1) img { height: 500px; }
.gallery-item:nth-child(2) img { height: 350px; }
.gallery-item:nth-child(3) img { height: 350px; }
.gallery-item:nth-child(4) img { height: 500px; }
.gallery-item:nth-child(5) img { height: 350px; }
.gallery-item:nth-child(6) img { height: 350px; }

/* --- CTA Section --- */
.cta {
    padding: var(--space-4xl) 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(6, 78, 59, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

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

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--cream-50);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--cream-200);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-800);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--neutral-800);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--emerald-700);
}

.contact-map {
    margin-top: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--neutral-900);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--neutral-900);
    background: var(--cream-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    text-align: center;
    padding: var(--space-xl);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin: 0 auto var(--space-md);
}

.form-success h4 {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background: var(--neutral-900);
    color: var(--cream-200);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cream-50);
    margin-bottom: var(--space-md);
}

.footer-logo-icon {
    color: var(--emerald-500);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--neutral-400);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a,
.footer-contact a,
.footer-contact li {
    font-size: 0.9rem;
    color: var(--neutral-400);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cream-50);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--neutral-500);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-eyebrow {
        justify-content: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-cards {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream-50);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-cta {
        justify-content: center;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img {
        height: 350px;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 300px !important;
    }
    
    .contact-form-wrapper {
        padding: var(--space-md);
    }
}
