/* ============================================
   Kozy Nail Salon — Styles
   Clean Minimalist | Emerald + Cream
   ============================================ */

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

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--stone-800);
    background: var(--cream-50);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--emerald-800);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--emerald-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-50);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

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

.nav-cta {
    background: var(--emerald-800) !important;
    color: var(--cream-50) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all var(--transition) !important;
    letter-spacing: 0.01em;
}

.nav-cta:hover {
    background: var(--emerald-700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--stone-700);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 95, 70, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 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: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--emerald-700);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--stone-500);
    margin-bottom: 40px;
    max-width: 440px;
    font-weight: 300;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--stone-700);
    border: 1px solid var(--stone-300);
}

.btn-ghost:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    width: 320px;
    height: 400px;
    position: relative;
    z-index: 2;
}

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

.hero-card-stat {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.card-stat-1 {
    bottom: 60px;
    left: -40px;
}

.card-stat-2 {
    top: 40px;
    right: -30px;
}

.card-stat-3 {
    bottom: -10px;
    right: 20px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--emerald-800);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--stone-500);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--stone-400);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--stone-300), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Section Divider --- */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-divider span {
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--stone-200), transparent);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--stone-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.7;
    font-weight: 300;
}

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

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

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--stone-100);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--emerald-100);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 95, 70, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--stone-800);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.65;
    font-weight: 300;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: white;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 4px solid white;
}

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

.about-accent-box {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--emerald-800);
    color: var(--cream-50);
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

.about-accent-box svg {
    flex-shrink: 0;
    opacity: 0.8;
}

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

.about-content .section-tag {
    text-align: left;
}

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

.about-text {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

.about-values {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--stone-700);
    font-weight: 400;
}

.value-icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-600);
    flex-shrink: 0;
}

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

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-wide {
    grid-column: span 6;
    height: 280px;
}

.gallery-item:not(.gallery-item-wide) {
    height: 280px;
}

/* --- Reviews --- */
.reviews {
    padding: 100px 0;
    background: white;
}

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

.review-card {
    background: var(--cream-50);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--stone-100);
    transition: all var(--transition);
}

.review-card:hover {
    border-color: var(--emerald-100);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.06);
}

.review-stars {
    display: flex;
    gap: 3px;
    color: var(--emerald-500);
    margin-bottom: 20px;
}

.review-text {
    font-size: 0.9375rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 24px;
    font-weight: 300;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-800);
}

.review-location {
    font-size: 0.8125rem;
    color: var(--stone-400);
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 78, 59, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content .section-tag {
    color: var(--emerald-400);
}

.cta-title {
    color: var(--cream-50);
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(254, 253, 248, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.cta-contact-item:hover {
    transform: translateX(4px);
}

.cta-contact-item svg {
    color: var(--emerald-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-400);
    margin-bottom: 2px;
}

.cta-value {
    display: block;
    font-size: 1rem;
    color: var(--cream-50);
    font-weight: 400;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    height: 480px;
}

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

/* --- Map --- */
.map-section {
    background: var(--stone-100);
}

.map-container {
    height: 320px;
    filter: grayscale(0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--cream-50);
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--emerald-700);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-50);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--stone-500);
    max-width: 240px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-hours-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-500);
    margin-bottom: 16px;
}

.footer-hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    gap: 24px;
}

.footer-hours-list li span:first-child {
    color: var(--stone-400);
}

.footer-hours-list li span:last-child {
    color: var(--stone-300);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--stone-500);
}

/* --- Mobile Overlay --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--cream-50);
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
}

.mobile-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-link {
    font-size: 1.125rem;
    color: var(--stone-700);
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-100);
    transition: color var(--transition);
}

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

.mobile-cta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--emerald-800);
    color: var(--cream-50) !important;
    padding: 14px 24px;
    border-radius: 100px;
    font-weight: 500;
    border: none;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-card-main {
        width: 280px;
        height: 350px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

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

    .cta-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-image {
        height: 360px;
        order: -1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-card-stat {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }

    .about-accent-box {
        top: -10px;
        right: -10px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }
}

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