/* ============================================
   Liliana Salon — Styles
   Clean minimalist · Terracotta + Sand
   ============================================ */

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

:root {
    --terra-50:  #faf5f2;
    --terra-100: #f3e8e0;
    --terra-200: #e8d0c0;
    --terra-300: #d4a88e;
    --terra-400: #c4876a;
    --terra-500: #b56c52;
    --terra-600: #9e5540;
    --terra-700: #834433;
    --terra-800: #6b392c;
    --terra-900: #562f25;

    --sand-50:  #fdfcfa;
    --sand-100: #faf7f3;
    --sand-200: #f3ede5;
    --sand-300: #e8dfd4;
    --sand-400: #d4c8b8;
    --sand-500: #b8a896;
    --sand-600: #968474;
    --sand-700: #7a6758;
    --sand-800: #615247;
    --sand-900: #4a3e36;

    --white: #ffffff;
    --black: #1a1412;
    --gray-900: #2c2420;
    --gray-700: #5a4e47;
    --gray-500: #8a7e77;
    --gray-300: #c4bab3;
    --gray-100: #ece6e1;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-900);
    background-color: var(--sand-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terra-500);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.btn-primary {
    background: var(--terra-500);
    color: var(--white);
    border-color: var(--terra-500);
}

.btn-primary:hover {
    background: var(--terra-600);
    border-color: var(--terra-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(181, 108, 82, 0.25);
}

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

.btn-ghost:hover {
    background: var(--white);
    color: var(--terra-700);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}

.nav.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-100);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.nav.scrolled .nav-logo-mark {
    color: var(--terra-500);
    border-color: var(--terra-500);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.04em;
    transition: color 0.4s var(--ease-out);
}

.nav.scrolled .nav-logo-text {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--gray-700);
}

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

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

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

.nav.scrolled .nav-links a:hover {
    color: var(--terra-500);
}

.nav-cta {
    padding: 0.55rem 1.4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    font-size: 0.7rem !important;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--terra-700) !important;
    border-color: var(--white) !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--terra-500) !important;
    color: var(--terra-500) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--terra-500) !important;
    color: var(--white) !important;
}

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

.nav-toggle-line {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--gray-900);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--sand-50);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gray-900);
    transition: color 0.3s var(--ease-out);
}

.mobile-menu-link:hover {
    color: var(--terra-500);
}

.mobile-menu-cta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--terra-500);
    border: 1px solid var(--terra-500);
    padding: 0.7rem 2rem;
    margin-top: 1rem;
    transition: all 0.3s var(--ease-out);
}

.mobile-menu-cta:hover {
    background: var(--terra-500);
    color: var(--white);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(86, 47, 37, 0.88) 0%,
        rgba(110, 60, 45, 0.75) 50%,
        rgba(86, 47, 37, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 2rem;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terra-300);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    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: 0.5; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
}

.divider-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--terra-200);
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--terra-400);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ---------- Services ---------- */
.services {
    padding: 8rem 0;
    background: var(--sand-50);
}

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

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

.service-card {
    padding: 2.5rem 1.8rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terra-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(90, 78, 71, 0.08);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--terra-500);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
    background: var(--sand-100);
}

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

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    background: var(--terra-200);
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--terra-300);
    z-index: -1;
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-features {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-100);
}

.about-feature {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.about-feature-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra-500);
}

.about-feature-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gray-900);
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 8rem 0;
    background: var(--sand-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 6 / 9;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
    grid-column: 6 / 13;
    grid-row: 2 / 3;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(86, 47, 37, 0);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(86, 47, 37, 0.3);
}

.gallery-item-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Testimonial ---------- */
.testimonial {
    padding: 7rem 0;
    background: var(--terra-700);
}

.testimonial-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    width: 40px;
    height: 40px;
    color: var(--terra-400);
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 2rem;
}

.testimonial-source {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terra-300);
}

/* ---------- Contact ---------- */
.contact {
    padding: 8rem 0;
    background: var(--sand-50);
}

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

.contact-detail {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-detail svg {
    width: 24px;
    height: 24px;
    color: var(--terra-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra-500);
    margin-bottom: 0.3rem;
}

.contact-detail-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gray-900);
    line-height: 1.6;
}

.contact-detail-value a {
    transition: color 0.3s var(--ease-out);
}

.contact-detail-value a:hover {
    color: var(--terra-600);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-100);
    padding: 3rem;
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gray-900);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    outline: none;
    transition: border-color 0.3s var(--ease-out);
    resize: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--terra-400);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-300);
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--terra-50);
    border: 1px solid var(--terra-200);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--terra-800);
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: var(--terra-600);
    flex-shrink: 0;
}

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

.map-section iframe {
    display: block;
    width: 100%;
    height: 320px;
    filter: saturate(0.3) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--terra-400);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--terra-700);
    border-radius: 50%;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.04em;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra-500);
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-500);
    transition: color 0.3s var(--ease-out);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-500);
    line-height: 1.7;
}

.footer-contact a {
    transition: color 0.3s var(--ease-out);
}

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

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

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--gray-700);
    letter-spacing: 0.04em;
}

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

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

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

    .about-grid {
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 350px;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 400px;
    }

    .about-image-accent {
        display: none;
    }

    .about-features {
        gap: 2rem;
        flex-wrap: wrap;
    }

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

    .gallery-item:nth-child(1) {
        grid-column: auto;
        height: 300px;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        height: 250px;
    }

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

    .contact-form-wrap {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

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

    .services, .about, .gallery, .contact {
        padding: 5rem 0;
    }

    .nav-inner {
        padding: 0;
    }
}
