/* ============================================
   Hair by Krystian — Bold Editorial Salon Site
   Palette: Burgundy (#6B0F2A) + Blush (#F5D5C8)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
    --burgundy: #6B0F2A;
    --burgundy-deep: #4A0A1D;
    --burgundy-light: #8B1A4A;
    --blush: #F5D5C8;
    --blush-light: #FBF0EC;
    --blush-dark: #E8B8A8;
    --cream: #FDF8F5;
    --charcoal: #1A1A1A;
    --dark: #2C2C2C;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(107, 15, 42, 0.08);
    --shadow-md: 0 8px 30px rgba(107, 15, 42, 0.12);
    --shadow-lg: 0 20px 60px rgba(107, 15, 42, 0.15);
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--cta {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn--cta:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
    background: var(--white);
    color: var(--burgundy);
}

.btn--outline-light {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn--outline-light:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn--nav {
    padding: 10px 24px;
    font-size: 0.8125rem;
}

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

.btn--full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 15, 42, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: -0.01em;
}

.logo--light {
    color: var(--white);
}

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

.nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    transition: color var(--transition);
    position: relative;
}

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

.nav a:not(.btn):hover {
    color: var(--burgundy);
}

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

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

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

/* ---------- Mobile Nav ---------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    transition: color var(--transition);
}

.mobile-nav__link:hover {
    color: var(--burgundy);
}

.mobile-nav__btn {
    margin-top: 16px;
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/8834060/pexels-photo-8834060.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 10, 29, 0.88) 0%,
        rgba(107, 15, 42, 0.75) 50%,
        rgba(44, 44, 44, 0.82) 100%
    );
}

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

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero__headline {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero__headline em {
    font-style: italic;
    color: var(--blush);
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollLine 2s infinite;
}

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

@keyframes scrollLine {
    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; }
}

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

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

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

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 32px;
    border: 1px solid rgba(107, 15, 42, 0.06);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blush-light);
    color: var(--burgundy);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.7;
}

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

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

.about__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid rgba(107, 15, 42, 0.1);
    border-bottom: 1px solid rgba(107, 15, 42, 0.1);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(107, 15, 42, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 120px 0;
    background: var(--burgundy);
}

.testimonials .section-eyebrow {
    color: var(--blush);
}

.testimonials .section-title {
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 40px 32px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blush);
    letter-spacing: 0.04em;
}

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

.cta__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7447131/pexels-photo-7447131.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600') center/cover no-repeat;
    opacity: 0.15;
}

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

.cta__eyebrow {
    color: var(--burgundy);
}

.cta__title {
    color: var(--charcoal);
}

.cta__text {
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.8;
    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__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-detail__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blush-light);
    color: var(--burgundy);
}

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

.contact-detail p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--burgundy);
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

/* ---------- Form ---------- */
.contact__form {
    background: var(--cream);
    border-radius: 12px;
    padding: 48px;
    border: 1px solid rgba(107, 15, 42, 0.06);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--charcoal);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1.5px solid rgba(107, 15, 42, 0.15);
    border-radius: 6px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 15, 42, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--gray-light);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
    color: var(--burgundy);
}

.form__success svg {
    color: var(--burgundy);
}

.form__success p {
    font-size: 1rem;
    font-weight: 500;
}

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

.map-section__inner {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-section iframe {
    filter: saturate(0.7) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal);
    padding: 80px 0 40px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: 320px;
    margin-top: 16px;
}

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

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--blush);
}

.footer__info {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
}

.footer__info p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default visible state for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .header-inner {
        height: 70px;
    }
    .hero__content {
        padding: 100px 20px 80px;
    }
    .hero__headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about__image {
        order: -1;
    }
    .about__stats {
        gap: 24px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        max-width: 100%;
    }
    .cta__actions {
        flex-direction: column;
    }
    .cta__actions .btn {
        width: 100%;
    }
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact__form {
        padding: 32px 24px;
    }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer__info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .services, .about, .gallery, .testimonials, .cta, .contact {
        padding: 80px 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .about__stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}
