/* ============================================
   Chris Kapello's II Salon — Stylesheet
   Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --cream-50: #fafaf5;
    --cream-100: #f5f5ee;
    --cream-200: #ececd8;
    --cream-300: #e2e2c8;
    --neutral-900: #1a1a1a;
    --neutral-800: #2d2d2d;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-300: #d4d4d4;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--neutral-600);
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-700);
}

.btn-outline:hover {
    background-color: var(--emerald-700);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background-color: var(--emerald-700);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--neutral-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-700);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--emerald-600);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--emerald-700);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--neutral-800);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--neutral-800);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--cream-50);
    border-bottom: 1px solid var(--cream-200);
    padding: 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-200);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--emerald-700);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--cream-50);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--cream-300);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--emerald-100);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    color: var(--white);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background-color: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-stack {
    position: relative;
}

.image-stack img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background-color: var(--emerald-700);
    color: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.9;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.feature-check {
    color: var(--emerald-600);
    flex-shrink: 0;
}

.about-content .btn {
    margin-top: 8px;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 100px 0;
    background-color: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 100px 0;
    background-color: var(--emerald-900);
}

.testimonials .section-eyebrow {
    color: var(--emerald-400);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: var(--emerald-400);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background-color: var(--cream-50);
}

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

.contact-intro {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

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

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

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.5;
}

.contact-value a {
    color: var(--emerald-700);
    transition: color var(--transition);
}

.contact-value a:hover {
    color: var(--emerald-600);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background-color: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neutral-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background-color: var(--cream-50);
    transition: all var(--transition);
    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(5, 150, 105, 0.15);
    background-color: var(--white);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 32px;
    color: var(--emerald-700);
}

.form-success svg {
    margin: 0 auto 12px;
}

.form-success p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ---------- Map ---------- */
.map-section {
    background-color: var(--cream-200);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 350px;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--neutral-900);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--neutral-400);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--neutral-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact li {
    font-size: 0.9rem;
    color: var(--neutral-400);
    line-height: 1.6;
}

.footer-contact a {
    color: var(--neutral-400);
    transition: color var(--transition);
}

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

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .about-container {
        gap: 48px;
    }
    
    .contact-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-badge {
        bottom: -16px;
        left: 16px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
