/* 
========== CSS VARIABLES / DESIGN TOKENS ========== 
*/
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-black: #111111;
    --color-green: #00b359;  /* Vibrant fuchsia */
    --color-green-dark: #008040;
    --color-wood: #d5b89a;     /* Light wood */
    --color-wood-light: #f5eedf; 
    --color-gray-light: #f9f9f9;
    --color-gray: #888888;
    
    /* Typography */
    --font-heading: 'Oleo Script', cursive; /* Retro-chic, bold, neighborhood feel */
    --font-body: 'Montserrat', sans-serif;  /* Clean, modern, professional */
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border Radius & Shadows */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 179, 89, 0.15); /* Magenta tinted shadow */
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 
========== RESET & BASE STYLES ========== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-black);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-green);
    margin: var(--space-sm) 0 var(--space-md) 0;
    border-radius: 2px;
}

.accent-line.center {
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: var(--space-xl) 0;
}

/* 
========== NAVBAR ========== 
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-green);
    margin: 0;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--color-green);
}

.nav-cta {
    background-color: var(--color-black);
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--color-black);
}

.nav-cta:hover {
    background-color: transparent;
    color: var(--color-black) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-black);
}

/* 
========== HERO SECTION ========== 
*/
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1920&q=80'); /* Professional salon */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient with a hint of magenta overlay for a professional and colorful look */
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(0, 179, 89, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: #eaeaea;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 179, 89, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-green-dark);
    z-index: -1;
    transition: var(--transition);
    transform: scaleY(0);
    transform-origin: bottom center;
}

.cta-button:hover {
    box-shadow: 0 8px 25px rgba(0, 179, 89, 0.6);
    transform: translateY(-3px);
}

.cta-button:hover::after {
    transform: scaleY(1);
}

/* 
========== ABOUT SECTION ========== 
*/
.about {
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
}

/* Subtle Madrid Skyline SVG encoded as background */
.skyline-bg {
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 60%;
    height: 50%;
    opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 300" xmlns="http://www.w3.org/2000/svg"><path fill="%23000" d="M0,300 L0,200 L50,200 L50,150 L80,150 L80,220 L150,220 L150,100 L180,100 L180,190 L240,190 L240,50 L280,50 L280,120 L350,120 L350,160 L400,160 L400,90 L450,90 L450,210 L520,210 L520,130 L580,130 L580,170 L650,170 L650,60 L700,60 L700,200 L760,200 L760,110 L820,110 L820,230 L900,230 L900,140 L960,140 L960,250 L1000,250 L1000,300 Z"/></svg>');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-green);
    border-radius: var(--radius-md);
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 500px;
    width: 100%;
}

/* 
========== SERVICES SECTION ========== 
*/
.services {
    background-color: var(--color-wood-light);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-green);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(0, 179, 89, 0.1);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-green);
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-list {
    text-align: left;
}

.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

/* 
========== GALLERY SECTION ========== 
*/
.gallery {
    background-color: var(--color-white);
}

.section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 179, 89, 0.3);
    opacity: 0;
    transition: var(--transition);
}

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

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

/* 
========== TESTIMONIALS SECTION ========== 
*/
.testimonials {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

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

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.score {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-wood);
}

.stars {
    color: #ffd700; /* Gold for stars */
}

.source {
    font-size: 1rem;
    color: #ccc;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-track {
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateX(50px);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-green);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.review {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.review strong {
    color: var(--color-wood);
    font-weight: 600;
}

.author {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-green);
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 1rem;
    opacity: 0.5;
    z-index: 10;
}

.carousel-btn:hover {
    color: var(--color-green);
    opacity: 1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--color-green);
    transform: scale(1.3);
}

/* 
========== FOOTER / CONTACT ========== 
*/
.contact-footer {
    background-color: var(--color-white);
    padding-top: var(--space-xl);
}

.footer-content {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-green);
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-group i {
    font-size: 1.5rem;
    color: var(--color-black);
    margin-top: 5px;
}

.info-group strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.phone-link {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-green);
}

.phone-link:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--color-green);
    transform: translateY(-3px);
}

.map-container {
    flex: 1;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.footer-bottom {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* 
========== ANIMATIONS ========== 
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
========== RESPONSIVE DESIGN ========== 
*/
@media (max-width: 992px) {
    .section-content, .footer-content {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .carousel-btn {
        display: none; /* Hide buttons on mobile, rely on indicators / auto-play if needed */
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
