/* ============================================
   Mia Salon — CSS Stylesheet
   ============================================ */

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

:root {
    --navy: #0F172A;
    --navy-light: #1E293B;
    --navy-dark: #080E1A;
    --gold: #C8A45E;
    --gold-light: #D4B76A;
    --gold-pale: #F5E6C8;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A5A;
    --text-light: #6B6B7B;
    --text-on-dark: #F5F5F7;
    --text-on-dark-muted: #A0A8B8;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

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

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

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

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

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

.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(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

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

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

#nav-menu a:not(.btn) {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
}

#nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: var(--transition);
}

#nav-menu a:not(.btn):hover {
    color: var(--navy);
}

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

#nav-menu .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/33412989/pexels-photo-33412989.png?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 14, 26, 0.88) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(15, 23, 42, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 8px 20px;
    border: 1px solid rgba(200, 164, 94, 0.3);
    border-radius: 50px;
    background: rgba(200, 164, 94, 0.08);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-on-dark-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-on-dark-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(200, 164, 94, 0.12), rgba(200, 164, 94, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.link-arrow {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--gold);
    gap: 10px;
}

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

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

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    aspect-ratio: 6/7;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

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

.badge-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-medium);
    line-height: 1.3;
}

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

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

.about-content > p {
    margin-bottom: 16px;
    font-size: 0.98rem;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature svg {
    color: var(--gold);
    flex-shrink: 0;
}

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

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

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

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

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

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

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

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

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

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

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

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

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

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

.contact-info .section-tag {
    text-align: left;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 0.98rem;
}

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

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

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

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy);
    font-weight: 500;
}

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

.contact-form-wrapper {
    background: var(--cream);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.92rem;
    margin-bottom: 32px;
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.12);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(200, 164, 94, 0.1);
    border: 1px solid rgba(200, 164, 94, 0.2);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 16px;
}

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

.form-success svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* --- Footer --- */
footer {
    background: var(--navy-dark);
    color: var(--text-on-dark-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 80px 24px 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-brand p {
    color: var(--text-on-dark-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
}

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

.footer-contact h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--gold);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-overlay a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy);
}

.mobile-menu-overlay a:hover {
    color: var(--gold);
}

.mobile-menu-overlay .btn {
    margin-top: 16px;
}

/* --- Scroll Animations --- */
.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);
}

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

@media (max-width: 768px) {
    #nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 80px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        padding: 80px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 60px 24px 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-tagline {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
}

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