/* ============================================
   La Magnificat Hair by Luz — Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #C0603A;
    --color-primary-dark: #A04E2E;
    --color-primary-light: #D4835F;
    --color-sand: #F5E6D3;
    --color-sand-light: #FBF5EE;
    --color-sand-dark: #E8D5C0;
    --color-cream: #FFF9F3;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-text-muted: #9A8578;
    --color-white: #FFFFFF;
    --color-border: #E8D5C0;
    --color-shadow: rgba(192, 96, 58, 0.12);
    --color-shadow-md: rgba(61, 43, 31, 0.10);
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
}

.text-accent {
    color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-shadow);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
}

/* --- Section Helpers --- */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 249, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 4px 20px var(--color-shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.nav-logo-icon {
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

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

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

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

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

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--color-sand-light);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(192, 96, 58, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(192, 96, 58, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 96, 58, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Hero Visual & Stat Cards --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--color-shadow-md);
    width: 420px;
    height: 500px;
}

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

.hero-stat-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 8px 32px var(--color-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.stat-card-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.stat-card-2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 1s;
}

.stat-card-3 {
    bottom: -10px;
    right: 20px;
    animation-delay: 2s;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(192, 96, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Services --- */
.services {
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-sand-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--color-shadow);
    border-color: rgba(192, 96, 58, 0.15);
    background: var(--color-white);
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(192, 96, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.services-cta {
    text-align: center;
    padding: 40px;
    background: var(--color-sand);
    border-radius: var(--radius-lg);
}

.services-cta p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* --- About --- */
.about {
    background: var(--color-sand-light);
}

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

.about-visual {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--color-shadow-md);
}

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

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px var(--color-shadow);
    border: 6px solid var(--color-sand-light);
}

.about-img-accent img {
    width: 240px;
    height: 280px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 8px 24px var(--color-shadow);
}

.about-experience-badge .exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.about-experience-badge .exp-text {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

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

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.value-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(192, 96, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    background: var(--color-white);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(6) img {
    height: 400px;
}

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(5) img {
    height: 280px;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 43, 31, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-overlay span {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

/* --- Reviews --- */
.reviews {
    background: var(--color-sand-light);
}

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

.review-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--color-shadow);
    border-color: rgba(192, 96, 58, 0.2);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.review-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: 15px;
}

/* --- Contact --- */
.contact {
    background: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(192, 96, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--color-text);
}

.contact-detail p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--color-primary);
    font-weight: 600;
    transition: color var(--transition);
}

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

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--color-sand-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.form-title {
    font-size: 24px;
    margin-bottom: 28px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success p {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 600;
}

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

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

/* --- Footer --- */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 800;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-primary-light);
    font-weight: 600;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Floating Action Button --- */
.fab-phone {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--color-shadow);
    z-index: 999;
    transition: all var(--transition);
}

.fab-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px var(--color-shadow);
    background: var(--color-primary-dark);
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card-main {
        width: 320px;
        height: 400px;
    }

    .stat-card-1 { right: 0; }
    .stat-card-2 { left: 0; }

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

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

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

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

    .contact-info .section-tag,
    .contact-info .section-title {
        text-align: center;
    }

    .contact-desc {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 249, 243, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-card-main {
        width: 280px;
        height: 340px;
    }

    .hero-stat-card {
        padding: 12px 16px;
    }

    .stat-card-1 { top: 0; right: -10px; }
    .stat-card-2 { bottom: 60px; left: -10px; }
    .stat-card-3 { bottom: -5px; right: 10px; }

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

    .about-img-main img {
        height: 400px;
    }

    .about-img-accent {
        right: -10px;
        bottom: -20px;
    }

    .about-img-accent img {
        width: 160px;
        height: 200px;
    }

    .about-experience-badge {
        top: -15px;
        left: -10px;
        padding: 14px 18px;
    }

    .about-experience-badge .exp-number {
        font-size: 28px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img,
    .gallery-item:nth-child(6) img {
        height: 280px;
    }

    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(5) img {
        height: 220px;
    }

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

    .contact-form-wrap {
        padding: 28px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

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

    .hero-title {
        font-size: 32px;
    }

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

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

    .hero-card-main {
        width: 240px;
        height: 300px;
    }

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

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img,
    .gallery-item:nth-child(6) img {
        height: 320px;
    }

    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(5) img {
        height: 260px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
