/* ============================================
   Hair by Faby — Custom Styles
   Clean Minimalist · Terracotta + Sand
   ============================================ */

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

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

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #2a2522;
    background-color: #faf8f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e0533c;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #2a2522;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #7a7068;
    max-width: 520px;
    line-height: 1.8;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background-color: #e0533c;
    color: #ffffff;
    border: 1.5px solid #e0533c;
}

.btn-primary:hover {
    background-color: #c93d2f;
    border-color: #c93d2f;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #2a2522;
    border: 1.5px solid #2a2522;
}

.btn-outline:hover {
    background-color: #2a2522;
    color: #faf8f4;
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    border-bottom-color: #e8e4df;
    box-shadow: 0 1px 0 rgba(42, 37, 34, 0.05);
}

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

.nav-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 500;
    color: #2a2522;
    letter-spacing: 0.02em;
}

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c534c;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e0533c;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e0533c;
}

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

.nav-cta {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e0533c;
    border: 1px solid #e0533c;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: #e0533c;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #2a2522;
    transition: all 0.3s ease;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background-color: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

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

.mobile-menu-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2a2522;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #e0533c;
}

.mobile-menu-cta {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e0533c;
    border: 1px solid #e0533c;
    padding: 0.875rem 2.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background-color: #e0533c;
    color: #ffffff;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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

.hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e0533c;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.25;
    color: #2a2522;
    margin-bottom: 1.5rem;
    max-width: 580px;
}

.hero-subheadline {
    font-size: 1rem;
    font-weight: 300;
    color: #7a7068;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: #e0533c;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-meta span {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #9c9288;
    letter-spacing: 0.05em;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-container {
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid #f9c4b5;
    z-index: -1;
}

.hero-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid #e8e4df;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-scroll-indicator span {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b8b0a6;
}

.scroll-line {
    flex: 1;
    height: 1px;
    background-color: #e8e4df;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background-color: #e0533c;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { left: -60%; }
    100% { left: 100%; }
}

/* --- Services Section --- */
.services {
    padding: 8rem 0;
    background-color: #faf8f4;
}

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

.service-card {
    padding: 2.5rem 2rem;
    border: 1px solid #e8e4df;
    transition: all 0.4s ease;
    background-color: #faf8f4;
}

.service-card:hover {
    border-color: #f9c4b5;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(42, 37, 34, 0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0533c;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.375rem;
    font-weight: 500;
    color: #2a2522;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    font-weight: 300;
    color: #7a7068;
    line-height: 1.8;
}

/* --- About Section --- */
.about {
    padding: 8rem 0;
    background-color: #fdf0eb;
}

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

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

.about-image-main {
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6.5;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 55%;
    overflow: hidden;
    border: 4px solid #fdf0eb;
}

.about-accent-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

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

.about-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #2a2522;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #5c534c;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #fce4d9;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-value-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #2a2522;
    white-space: nowrap;
}

.about-value-divider {
    flex: 1;
    height: 1px;
    background-color: #f9c4b5;
}

.about-value-text {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #9c9288;
    letter-spacing: 0.05em;
}

/* --- Gallery Section --- */
.gallery {
    padding: 8rem 0;
    background-color: #faf8f4;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { aspect-ratio: 4/5; }
.gallery-item:nth-child(4) { grid-row: span 2; }
.gallery-item:nth-child(4) img { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) img { aspect-ratio: 4/3; }
.gallery-item:nth-child(3) img { aspect-ratio: 1; }
.gallery-item:nth-child(5) img { aspect-ratio: 4/3; }
.gallery-item:nth-child(6) img { aspect-ratio: 1; }

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(42, 37, 34, 0.7), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item-overlay span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.05em;
}

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

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* --- Philosophy Section --- */
.philosophy {
    padding: 8rem 0;
    background-color: #2a2522;
}

.philosophy-content {
    max-width: 800px;
    text-align: center;
}

.philosophy-content .section-eyebrow {
    color: #f9c4b5;
}

.philosophy-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    color: #faf8f4;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.philosophy-text {
    font-size: 1rem;
    font-weight: 300;
    color: #b8b0a6;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.philosophy-divider {
    width: 60px;
    height: 1px;
    background-color: #e0533c;
    margin: 0 auto;
}

/* --- Contact Section --- */
.contact {
    padding: 8rem 0;
    background-color: #faf8f4;
}

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

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

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

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0533c;
    flex-shrink: 0;
    border: 1px solid #f9c4b5;
    border-radius: 50%;
    padding: 0.5rem;
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9c9288;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #2a2522;
    line-height: 1.7;
}

.contact-link {
    color: #2a2522;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e0533c;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background-color: #ffffff;
    border: 1px solid #e8e4df;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a7068;
}

.form-input {
    width: 100%;
    padding: 0.875rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #2a2522;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8e4df;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    border-bottom-color: #e0533c;
}

.form-input::placeholder {
    color: #b8b0a6;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7068' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

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

.form-success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2a2522;
}

.form-success-text {
    font-size: 0.875rem;
    font-weight: 300;
    color: #7a7068;
    line-height: 1.7;
}

/* --- Map Section --- */
.map-section {
    border-top: 1px solid #e8e4df;
}

.map-container {
    height: 400px;
    filter: grayscale(0.3) contrast(1.05);
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    background-color: #2a2522;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #faf8f4;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: #b8b0a6;
    margin-top: 0.75rem;
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e0533c;
    margin-bottom: 1.25rem;
}

.footer-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    color: #b8b0a6;
    padding: 0.375rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #faf8f4;
}

.footer-contact-item {
    font-size: 0.875rem;
    font-weight: 300;
    color: #b8b0a6;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 176, 166, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: #7a7068;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 1.5rem 3rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image-wrapper {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .services {
        padding: 5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about {
        padding: 5rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-accent {
        right: 0;
        bottom: -30px;
    }
    
    .gallery {
        padding: 5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        aspect-ratio: 1 !important;
    }
    
    .philosophy {
        padding: 5rem 0;
    }
    
    .contact {
        padding: 5rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 90px 1.25rem 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@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;
    }
}
