/* ============================================
   Magnifique Nails — Styles
   Forest Green + Off-White | Minimalist
   ============================================ */

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

:root {
    --green-900: #0f1f16;
    --green-800: #1a3a2a;
    --green-700: #1e4d35;
    --green-600: #256b47;
    --green-500: #2d8a5e;
    --green-400: #4ade80;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --warm: #d4a373;
    --warm-light: #e8c9a0;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6a6a6a;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--green-800);
    letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

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

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 58, 42, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245, 240, 232, 0.4);
}

.btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(245, 240, 232, 0.08);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.5s var(--ease);
}

.nav.scrolled .nav-inner {
    padding: 14px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
    transition: color 0.5s var(--ease);
}

.nav.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

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

.nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.8);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--text-mid);
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}

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

.nav-cta {
    border: 1px solid rgba(245, 240, 232, 0.3) !important;
    padding: 10px 24px;
    transition: all 0.3s var(--ease) !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--green-800) !important;
    color: var(--green-800) !important;
}

.nav-cta:hover {
    background: var(--cream) !important;
    color: var(--green-800) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--green-800) !important;
    color: var(--cream) !important;
}

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.nav.scrolled .nav-toggle span {
    background: var(--green-800);
}

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

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

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

/* Mobile Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nav-overlay-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.nav-overlay-link:hover {
    opacity: 0.6;
}

.nav-overlay-cta {
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(245, 240, 232, 0.3);
    padding: 14px 36px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(30, 77, 53, 0.85) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(45, 138, 94, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 163, 115, 0.2) 0%, transparent 60%),
        linear-gradient(160deg, #0f1f16 0%, #1a3a2a 40%, #1e4d35 70%, #256b47 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--cream);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-accent {
    font-style: italic;
    font-weight: 300;
    color: var(--warm-light);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.7);
    max-width: 520px;
    margin: 0 auto 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--cream-dark);
    border: 1px solid var(--cream-dark);
}

.service-card {
    background: var(--cream-light);
    padding: 48px 36px;
    transition: all 0.5s var(--ease);
    position: relative;
}

.service-card:hover {
    background: var(--white);
}

.service-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--warm);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--green-800);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 31, 22, 0.08), transparent 40%);
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--green-800);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

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

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

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

.gallery-item {
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) { aspect-ratio: 1; }
.gallery-item:nth-child(3) { aspect-ratio: 4/5; }
.gallery-item:nth-child(4) { aspect-ratio: 1; }
.gallery-item:nth-child(5) { aspect-ratio: 4/5; }
.gallery-item:nth-child(6) { aspect-ratio: 1; }

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

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

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--white);
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    padding: 20px 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--green-600);
}

.visit-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-800);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--green-600);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.visit-detail a:hover {
    border-bottom-color: var(--green-600);
}

.visit-map {
    min-height: 400px;
    background: var(--cream-dark);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(30%) contrast(1.05);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--green-800);
}

.contact .section-eyebrow {
    color: var(--warm-light);
}

.contact .section-title {
    color: var(--cream);
}

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

.contact-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.65);
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.8);
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
    padding-bottom: 4px;
    transition: all 0.3s var(--ease);
}

.contact-link:hover {
    color: var(--cream);
    border-bottom-color: rgba(245, 240, 232, 0.5);
}

/* Form */
.contact-form-wrap {
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.1);
    padding: 48px;
}

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

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--cream);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    outline: none;
    transition: border-color 0.3s var(--ease);
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 240, 232, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--warm-light);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(245,240,232,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.form-group select option {
    background: var(--green-800);
    color: var(--cream);
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    color: var(--green-400);
    font-size: 0.9rem;
    font-weight: 300;
}

.form-success.show {
    display: flex;
}

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cream);
}

.footer-logo {
    color: var(--warm);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.45);
    transition: color 0.3s;
}

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

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.4);
    line-height: 1.7;
}

.footer-info a {
    color: rgba(245, 240, 232, 0.4);
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--cream);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.25);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        gap: 48px;
    }
    
    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 80px;
    }
    
    .hero-headline {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 36px 28px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .about-image img {
        height: 100%;
    }
    
    .gallery {
        padding: 80px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .visit {
        padding: 80px 0;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(even) {
        aspect-ratio: 4/5;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
}
