/* ========================================
   MODERN LOX SALON — STYLESHEET
   Clean minimalist · Emerald + Cream
   ======================================== */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #10b981;
    --cream-50: #faf9f7;
    --cream-100: #f5f3ef;
    --cream-200: #ede9e3;
    --cream-300: #e5e0d8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out);
}

.nav.scrolled {
    border-bottom-color: var(--cream-200);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__link {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-600);
    transition: width 0.3s var(--ease-out);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 10px 24px;
    border: 1px solid var(--emerald-700);
    color: var(--emerald-700);
    transition: all 0.3s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--emerald-700);
    color: var(--white);
}

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

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 47, 35, 0.55) 0%,
        rgba(4, 47, 35, 0.65) 50%,
        rgba(4, 47, 35, 0.80) 100%
    );
}

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

.hero__frame {
    padding: 60px 40px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.hero__headline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.hero__sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.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%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

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

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

.btn--primary {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.25);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--emerald-800);
}

.btn--light:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.btn--outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 24px;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: var(--cream-300);
}

.divider__diamond {
    color: var(--emerald-500);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: 120px 0;
}

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

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

.service-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: var(--cream-300);
}

.service-card__img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card__img img {
    transform: scale(1.05);
}

.service-card__body {
    padding: 32px;
}

.service-card__number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--emerald-500);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.service-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.service-card__desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-card__link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s var(--ease-out);
}

.service-card__link:hover {
    gap: 12px;
}

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

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

.about__image-col {
    position: relative;
}

.about__image-main {
    overflow: hidden;
    aspect-ratio: 7/9;
}

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

.about__image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 6px solid var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

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

.about__text-col {
    padding-top: 40px;
}

.about__text-col .section-title {
    margin-bottom: 36px;
}

.about__body {
    margin-bottom: 44px;
}

.about__body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--cream-200);
}

.value-item__line {
    width: 24px;
    height: 1px;
    background: var(--emerald-500);
    flex-shrink: 0;
}

.value-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery__item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 47, 35, 0);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: background 0.4s ease;
}

.gallery__item:hover .gallery__item-overlay {
    background: rgba(4, 47, 35, 0.3);
}

.gallery__item-overlay span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out);
}

.gallery__item:hover .gallery__item-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.gallery__item--wide {
    grid-column: span 7;
}

.gallery__item:not(.gallery__item--wide) {
    grid-column: span 5;
}

.gallery__item:nth-child(1) { grid-row: 1; }
.gallery__item:nth-child(2) { grid-row: 1; }
.gallery__item:nth-child(3) { grid-row: 2; }
.gallery__item:nth-child(4) { grid-row: 2; }
.gallery__item:nth-child(5) { grid-row: 2; }

/* --- CTA --- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

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

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(4, 47, 35, 0.88) 0%,
        rgba(4, 47, 35, 0.75) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta__eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

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

.cta__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    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__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 60px;
}

.contact__detail {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--cream-200);
}

.contact__icon {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact__detail p,
.contact__detail a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact__detail a:hover {
    color: var(--emerald-700);
}

.contact__form-col {
    background: var(--cream-50);
    padding: 48px;
    border: 1px solid var(--cream-200);
}

.contact__form h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact__form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--cream-300);
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--emerald-500);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--cream-300);
}

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

.form__success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px;
    margin-top: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--emerald-700);
    font-size: 0.88rem;
}

.form__success svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid var(--cream-200);
}

.map-section iframe {
    filter: grayscale(0.6) contrast(1.05);
}

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

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

.footer__logo {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 260px;
}

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

.footer__links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

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

.footer__contact a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__contact span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom {
    padding: 28px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-primary);
    padding: 8px;
}

.mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-primary);
    padding: 16px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--emerald-700);
}

.mobile-menu__link--cta {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-top: 12px;
}

.mobile-menu__divider {
    padding: 24px 0;
}

.mobile-menu__divider .thin-line {
    width: 40px;
    height: 1px;
    background: var(--cream-300);
    margin: 0 auto;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__layout {
        gap: 60px;
    }

    .contact__layout {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__frame {
        padding: 40px 20px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .services {
        padding: 80px 0;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about {
        padding: 80px 0;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about__image-accent {
        right: 0;
        bottom: -20px;
    }

    .gallery {
        padding: 80px 0;
    }

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

    .gallery__item--wide,
    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    .cta {
        padding: 80px 0;
    }

    .cta__actions {
        flex-direction: column;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact {
        padding: 80px 0;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-col {
        padding: 32px 24px;
    }

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

    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 56px;
    }

    .service-card__body {
        padding: 24px;
    }
}
