/* ============================================
   Sophia's Beauty Salon - Classic & Elegant Design
   ============================================ */

/* CSS Custom Properties */
:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    
    --cream-50: #fefce8;
    --cream-100: #fef9c3;
    --cream-200: #fef08a;
    --cream-50: #fffbeb;
    --cream-100: #fffbeb;
    --cream-200: #fff3b0;
    --cream-50: #fffbeb;
    
    --gold-500: #d4a574;
    --gold-600: #c49a6c;
    
    --neutral-950: #0a0a0a;
    --neutral-900: #111111;
    --neutral-800: #1a1a1a;
    --neutral-700: #2d2d2d;
    --neutral-600: #404040;
    --neutral-500: #525252;
    --neutral-400: #737373;
    --neutral-300: #949494;
    --neutral-200: #bfbfbf;
    --neutral-100: #e5e5e5;
    --neutral-50: #f5f5f5;
    
    --white: #ffffff;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-full {
    width: 100%;
}

/* Section Headers */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 252, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(254, 252, 232, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--neutral-800);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--emerald-700);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    padding: 0.625rem 1.5rem;
    background-color: var(--emerald-700);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--emerald-800);
    transform: translateY(-1px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.85) 0%,
        rgba(4, 120, 87, 0.75) 50%,
        rgba(6, 95, 70, 0.85) 100%
    );
}

.hero-content {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 4rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-headline em {
    font-style: italic;
    color: var(--cream-200);
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 6rem 0;
    background-color: var(--cream-50);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-700), var(--emerald-500));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

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

.service-title {
    font-size: 1.375rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-700);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 60%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--white);
}

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

.about-experience {
    position: absolute;
    top: -1.5rem;
    right: 2rem;
    background-color: var(--emerald-700);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

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

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-50);
    border-radius: 8px;
    color: var(--emerald-700);
}

.feature-item h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: 6rem 0;
    background-color: var(--cream-50);
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: auto;
}

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

.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-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

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

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-description {
    color: var(--neutral-600);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-50);
    border-radius: 12px;
    color: var(--emerald-700);
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 0.375rem;
}

.contact-item p {
    color: var(--neutral-700);
    line-height: 1.6;
}

.contact-item a {
    color: var(--neutral-700);
}

.contact-item a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--cream-50);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--neutral-100);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 6px;
    color: var(--emerald-800);
    margin-top: 1rem;
}

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

/* ============================================
   Map Section
   ============================================ */
.map-section {
    height: 400px;
    background-color: var(--neutral-200);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--neutral-900);
    color: var(--neutral-300);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--neutral-800);
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-images {
        max-width: 500px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--cream-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3) {
        grid-row: span 1;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .about-img-secondary {
        width: 70%;
        right: -1rem;
        bottom: -1rem;
    }
    
    .about-experience {
        right: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .exp-number {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Reduced motion preference */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
