/* ============================================
   Midway Beauty Salon — Editorial Style
   Burgundy + Blush Palette
   ============================================ */

:root {
    --burgundy: #6B1D2A;
    --burgundy-deep: #4A1420;
    --burgundy-light: #8B2E3F;
    --blush: #F2D0C4;
    --blush-light: #FAEBE4;
    --blush-pale: #FFF5F0;
    --cream: #FDF8F4;
    --cream-dark: #F5EDE6;
    --charcoal: #2C2424;
    --charcoal-light: #4A3F3F;
    --warm-gray: #7A6B6B;
    --warm-gray-light: #A89898;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--burgundy);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 0.875rem;
    font-weight: 500;
}
.skip-link:focus {
    top: var(--space-sm);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 29, 42, 0.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(107, 29, 42, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--burgundy);
}
.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.logo-text em {
    font-style: italic;
    font-weight: 400;
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-light);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: width var(--transition);
}
.nav-links a:hover {
    color: var(--burgundy);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

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

.btn-burgundy {
    background: var(--burgundy);
    color: var(--white);
    border: 2px solid var(--burgundy);
}
.btn-burgundy:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(107, 29, 42, 0.25);
}

.btn-outline-blush {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--blush);
}
.btn-outline-blush:hover {
    background: var(--blush);
    border-color: var(--blush);
    transform: translateY(-1px);
}

.btn-outline-burgundy {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}
.btn-outline-burgundy:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(107, 29, 42, 0.25);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.7;
    max-width: 560px;
}

.section-header {
    margin-bottom: var(--space-2xl);
}
.section-header.center {
    text-align: center;
}
.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: var(--space-2xl) 0;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--burgundy);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}
.hero-headline em {
    font-style: italic;
    color: var(--burgundy);
    font-weight: 500;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

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

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--warm-gray-light);
}
.hero-meta svg {
    display: inline;
    vertical-align: -3px;
    margin-right: 0.375rem;
    flex-shrink: 0;
}
.hero-meta span {
    display: flex;
    align-items: center;
}

/* Hero image stack */
.hero-image-stack {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(107, 29, 42, 0.12);
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img-primary {
    width: 75%;
    height: 85%;
    top: 0;
    right: 0;
    z-index: 1;
}
.hero-img-secondary {
    width: 55%;
    height: 55%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 4px solid var(--cream);
}

.hero-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    color: var(--burgundy);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(107, 29, 42, 0.06);
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(107, 29, 42, 0.08);
    border-color: var(--blush);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blush-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: var(--burgundy);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.65;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}
.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--blush);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-subtitle {
    margin-bottom: var(--space-lg);
}
.about-content > p {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-lg) 0 var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--warm-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.about-content .btn {
    margin-top: var(--space-sm);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: auto;
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(3) img { height: 100%; }

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

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--burgundy);
    color: var(--white);
}
.testimonials .section-eyebrow {
    color: var(--blush);
}
.testimonials .section-title {
    color: var(--white);
}

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

.testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition);
}
.testimonial:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.quote-mark {
    color: var(--blush);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.testimonial p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial footer {
    font-size: 0.8125rem;
    color: var(--blush);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   VISIT / CONTACT
   ============================================ */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.visit-info .section-subtitle {
    margin-bottom: var(--space-lg);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}
.contact-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 3px;
}
.contact-item a {
    color: var(--charcoal);
    transition: color var(--transition);
}
.contact-item a:hover {
    color: var(--burgundy);
    text-decoration: underline;
}

.visit-cta {
    margin-top: var(--space-lg);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(107, 29, 42, 0.1);
    position: relative;
}
.visit-map a {
    display: block;
    position: relative;
}
.visit-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(44, 36, 36, 0.8));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.visit-map:hover .map-overlay {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-md);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.footer-brand .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}
.footer-brand .logo-text {
    color: var(--white);
    font-size: 0.95rem;
}
.footer-brand .logo-text em {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--blush);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.8;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--blush);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(0,0,0,0.1);
        z-index: 105;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.125rem;
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(44, 36, 36, 0.4);
        z-index: 104;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }
    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl) 0;
        min-height: auto;
    }
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    .hero-image-stack {
        order: 1;
        height: 400px;
        min-height: 350px;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .about-image-wrap {
        max-height: 400px;
    }
    .about-image-wrap img {
        height: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3) {
        grid-row: span 1;
    }
    .gallery-item img {
        aspect-ratio: 4/3;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    :root {
        --space-3xl: 5rem;
        --space-2xl: 3.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-stack {
        height: 300px;
    }
    .hero-img-primary {
        width: 80%;
        height: 85%;
    }
    .hero-img-secondary {
        width: 55%;
        height: 55%;
    }
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}
</style>
