/*
* Vivid Vibes Hair Studio - Main Stylesheet V4.1
* Theme: Light beige (#faf4dc) with darker beige (#fbe7c5) and blue accents (#4360b0, #5f7eca)
* Author: Gemini
* Version: 4.1 - Flower animation, hero width, mobile spacing fixes
*/

/* =====================
   GLOBAL STYLES & VARIABLES
===================== */
:root {
    --primary-blue: #4360b0;
    --secondary-blue: #5f7eca;
    --light-blue: #7b97e5;
    --primary-beige: #faf4dc;
    --secondary-beige: #fbe7c5;
    --text-dark: #3a4e8f;
    --text-medium: #555;
    --text-light: #777;
    --gold-star: #FFD700;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --border-radius-small: 8px;
    --border-radius-medium: 15px;
    --border-radius-large: 30px;
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.4s ease-in-out;
    --transition-slow: all 0.8s ease;
    --font-primary: 'Poppins', sans-serif;
    --hero-max-width: 1800px; /* Max width for hero swiper */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-medium);
    background-color: var(--primary-beige);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-blue);
}

h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

h2.section-heading {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

h2.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}


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

/* =====================
   BUTTON STYLES
===================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-large);
    text-align: center;
    transition: var(--transition-medium);
    font-weight: 600;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.book-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(67, 96, 176, 0.2);
}

.book-btn:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(67, 96, 176, 0.3);
}

.book-btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    margin: 1rem auto;
    display: block;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(67, 96, 176, 0.3);
}

.book-btn-large:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: var(--white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(67, 96, 176, 0.4);
}

.btn-text {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-block;
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.btn-text:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.btn-text:hover:after {
    width: 100%;
}

.directions-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    margin-top: 1.5rem;
    box-shadow: 0 4px 10px rgba(67, 96, 176, 0.2);
}
.directions-btn i {
    margin-right: 8px;
}

.directions-btn:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(67, 96, 176, 0.3);
}


/* =====================
   HEADER & NAVIGATION
===================== */
.header {
    padding: 15px 0;
    background-color: var(--primary-beige);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(250, 244, 220, 0.95);
    backdrop-filter: blur(5px);
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
    gap: 25px;
}

.nav-right {
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-icon {
    font-size: 1.6rem;
    color: var(--primary-blue);
    transition: var(--transition-fast);
    margin-left: 10px;
}

.nav-icon:hover {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.logo-container {
    text-align: center;
    flex-shrink: 0;
    padding: 0 20px;
}

.logo {
    max-width: 160px;
    height: auto;
    transition: var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

/* Mobile Navigation */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1010; }
.mobile-nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--primary-blue); margin: 5px 0; transition: var(--transition-medium); border-radius: 2px; }
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-beige); box-shadow: 0 5px 10px var(--shadow-light); padding: 20px 0; text-align: center; }
.mobile-menu.active { display: block; }
.mobile-nav-link { display: block; padding: 12px 20px; color: var(--text-dark); font-size: 1.1rem; font-weight: 500; }
.mobile-nav-link:hover { background-color: var(--secondary-beige); color: var(--primary-blue); }
.mobile-book-btn { margin: 15px auto 0; display: inline-block; }

/* =====================
   HERO SECTION (SWIPER)
===================== */
.hero { padding: 0; background-color: var(--primary-beige); position: relative; overflow: hidden; }
.hero-container { position: relative; }

.hero-swiper {
    width: 100%;
    height: 70vh;
    max-height: 650px;
    min-height: 400px;
    max-width: var(--hero-max-width); /* Apply max width */
    margin: 0 auto; /* Center the swiper when max-width applies */
}

.hero-swiper .swiper-slide { overflow: hidden; position: relative; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-pagination .swiper-pagination-bullet { background-color: var(--white); opacity: 0.7; width: 10px; height: 10px; transition: var(--transition-fast); }
.hero-pagination .swiper-pagination-bullet-active { background-color: var(--white); opacity: 1; transform: scale(1.2); }
.hero-swiper .swiper-pagination { bottom: 20px !important; }

/* Flower Decorations */
.decoration {
    position: absolute;
    width: 100px; /* Base width, scale overrides */
    height: auto;
    z-index: 12; /* Ensure above swiper images */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transform-origin: center center;
    /* Use CSS variables set by JS */
    transform: scale(var(--flower-scale, 1));
    animation: linear infinite;
    animation-name: var(--rotation-animation, none);
    animation-duration: var(--rotation-duration, 30s);
}

/* Keyframes for flower rotation */
@keyframes rotate-cw {
    from { transform: scale(var(--flower-scale, 1)) rotate(0deg); }
    to { transform: scale(var(--flower-scale, 1)) rotate(360deg); }
}
@keyframes rotate-ccw {
    from { transform: scale(var(--flower-scale, 1)) rotate(0deg); }
    to { transform: scale(var(--flower-scale, 1)) rotate(-360deg); }
}

/* Position flowers to overlay swiper */
.flower-top-right {
    top: 5%; /* Adjust for overlap */
    right: 5%; /* Adjust for overlap */
    width: 110px; /* Example slight size variation */
}
.flower-bottom-left {
    bottom: 5%; /* Adjust for overlap */
    left: 5%; /* Adjust for overlap */
    width: 90px; /* Example slight size variation */
}

.sparkle { position: absolute; width: 35px; height: auto; opacity: 0; z-index: 15; pointer-events: none; animation: sparkleAnim 3s infinite ease-in-out; animation-delay: var(--sparkle-delay, 0s); animation-duration: var(--sparkle-duration, 3s); }
@keyframes sparkleAnim { 0%, 100% { opacity: 0; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(15deg); } }
.sparkle-1 { top: 10%; left: 15%; }
.sparkle-2 { top: 25%; right: 10%; }
.sparkle-3 { bottom: 15%; left: 40%; }

/* =====================
   REVIEWS SECTION
===================== */
.reviews { padding: 80px 0; background-color: var(--primary-beige); }
.reviews-container { position: relative; } /* Context for review sparkles */

.review-swiper { width: 100%; padding: 20px 0 50px; overflow: hidden; }
.review-card { background-color: var(--white); border-radius: var(--border-radius-medium); padding: 30px; box-shadow: 0 6px 18px var(--shadow-light); transition: var(--transition-medium); height: 100%; display: flex; flex-direction: column; border: 1px solid #eee; }
.review-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px var(--shadow-medium); }
.reviewer { display: flex; align-items: center; margin-bottom: 15px; }
.reviewer-img { width: 55px; height: 55px; border-radius: 50%; margin-right: 15px; object-fit: cover; border: 2px solid var(--primary-beige); }
.reviewer-name { font-size: 1.15rem; font-weight: 600; color: var(--primary-blue); }
.stars { color: var(--gold-star); margin-bottom: 15px; font-size: 1.1rem; }
.review-text { color: var(--text-medium); line-height: 1.7; font-style: italic; font-size: 0.95rem; flex-grow: 1; margin-bottom: 0; }
.review-pagination .swiper-pagination-bullet { background-color: var(--secondary-blue); opacity: 0.5; width: 10px; height: 10px; }
.review-pagination .swiper-pagination-bullet-active { background-color: var(--primary-blue); opacity: 1; }

/* Review Sparkles Positioning */
.sparkle-review-1 { top: -30px; left: 25%; transform: scale(0.8); }
.sparkle-review-2 { top: 45px; right: 28%; transform: scale(0.9); }
.sparkle-review-3 { top: 30px; right: 22%; transform: scale(0.7); }


/* =====================
   WAVY DIVIDER
===================== */
.wave-divider { position: relative; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 100px; }
.wave-fill { fill: var(--secondary-beige); }


/* =====================
   ABOUT SECTION
===================== */
.about { background-color: var(--secondary-beige); padding: 80px 0 60px; position: relative; }
.title-container { text-align: center; margin-bottom: 40px; /* Reduced margin */ }
.section-title-img {
    max-width: 100%;
    width: 550px;
    height: auto;
    object-fit: contain;
    display: block; /* Ensure block behavior */
    margin: 0 auto; /* Center the image */
}

.about-content { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; /* Reduced gap slightly */ margin-bottom: 30px; /* Reduced margin */ }
.about-image { flex: 1 1 200px; max-width: 350px; margin: 0 auto; text-align: center; }
.kari-img { width: 100%; max-width: 300px; height: 300px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border: 5px solid var(--white); }
.about-text { flex: 1 1 250px; max-width: 650px; margin: 0 auto; }
.about-text p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 15px; /* Reduced margin */ color: var(--text-dark); }
.signature { font-style: italic; font-weight: 600; color: var(--primary-blue); font-size: 1.15rem; text-align: right; margin-top: 5px; /* Added slight margin top */ }
.signature a { font-weight: 600; }

.cta-container { text-align: center; margin-top: 15px; /* Significantly reduced margin */ padding: 20px 0; }
.sparkle-button-container { position: relative; display: inline-block; }
.sparkle-cta-1 { top: -25px; left: 10%; }
.sparkle-cta-2 { top: 0px; right: -15px; transform: scale(0.8); }
.sparkle-cta-3 { bottom: -10px; left: -10px; transform: scale(0.9); }
.sparkle-cta-4 { bottom: 5px; right: 15%; transform: scale(1); }

.review-link { margin-top: 50px; /* Reduced margin */ }
.review-link a { font-weight: 600; color: var(--primary-blue); position: relative; font-size: 1.1rem; padding-bottom: 5px; }
.review-link a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary-blue); transition: width 0.3s ease; }
.review-link a:hover:after { width: 100%; }

/* =====================
   CONTACT SECTION
===================== */
.contact { padding: 80px 0; background-color: var(--primary-beige); }
.contact-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-info { flex: 1 1 400px; max-width: 500px; }
.contact-info h3 { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--secondary-blue); display: inline-block; }
.contact-info p { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-dark); }
.contact-info p i { margin-right: 10px; color: var(--secondary-blue); width: 20px; text-align: center; }
.contact-info p a { color: var(--text-dark); }
.contact-info p a:hover { color: var(--primary-blue); text-decoration: underline; }
.contact-map { flex: 1 1 500px; min-width: 300px; }
.map-container { position: relative; padding-bottom: 75%; height: 0; overflow: hidden; border-radius: var(--border-radius-medium); box-shadow: 0 8px 20px var(--shadow-medium); }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }


/* =====================
   FOOTER
===================== */
.footer { background-color: var(--secondary-beige); padding: 50px 0 30px; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 30px; }
.footer-logo { flex-basis: 150px; text-align: center; }
.footer-logo-img { max-width: 120px; opacity: 0.9; transition: var(--transition-fast); }
.footer-logo-img:hover { opacity: 1; }
.footer-links { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; flex: 1; }
.footer-link { color: var(--text-dark); font-weight: 500; }
.footer-link:hover { color: var(--primary-blue); }
.footer-social { flex-basis: 50px; text-align: center; }
.social-link { font-size: 1.8rem; color: var(--primary-blue); }
.social-link:hover { color: var(--secondary-blue); transform: scale(1.1); }
.copyright { text-align: center; color: var(--text-medium); font-size: 0.9rem; padding-top: 30px; border-top: 1px solid rgba(0, 0, 0, 0.05); margin-top: 20px; }

/* =====================
   UTILITIES & ANIMATIONS
===================== */

.fade-in { display:none }




/* =====================
   RESPONSIVE STYLES
===================== */

@media (max-width: 1024px) {
    html { font-size: 15px; }
    .container { padding: 0 15px; }
    .hero-swiper { height: 60vh; }
    .about-content { flex-direction: column; text-align: center; gap: 20px; } /* Reduce gap */
    .about-text { max-width: 700px; }
    .signature { text-align: center; }
    .contact-content { gap: 30px; }
    .decoration { width: 80px; /* Adjust flower size */ }
}

@media (max-width: 768px) {
    .header { padding: 10px 0; position: relative; box-shadow: none; }
    .header.scrolled { padding: 10px 0; background-color: var(--primary-beige); backdrop-filter: none; }
    .navbar { position: relative; }
    .nav-left, .nav-right { display: none; }
    .logo-container { padding: 0; margin: 0 auto; flex-grow: 1; }
    .logo { max-width: 140px; }
    .mobile-nav-toggle { display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }

    .hero-swiper { height: 55vh; min-height: 350px; }
    .decoration { width: 60px; } /* Smaller flowers on mobile */
    .flower-top-right { top: 2%; right: 2%; } /* Adjust overlap for mobile */
    .flower-bottom-left { bottom: 2%; left: 2%; } /* Adjust overlap for mobile */

    h2.section-heading { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .reviews, .about, .contact { padding: 50px 0; }
    .review-card { padding: 20px; }

    /* About section mobile spacing adjustments */
    .about-content {
        margin-bottom: 15px; /* Further reduced space after photo/text block */
        gap: 15px; /* Reduced gap */
    }
    .about-image {
        margin-bottom: 0; /* Let gap handle spacing */
    }
    .about-text {
        margin-top: 0; /* Let gap handle spacing */
    }
    .about-text p {
        margin-bottom: 8px; /* Further reduced paragraph spacing */
    }
    .cta-container {
        margin-top: 10px; /* Reduced space before button */
        padding: 10px 0; /* Reduced padding */
    }
    .review-link {
        margin-top: 50px; /* Reduced space */
    }

    .kari-img { max-width: 250px; height: 250px; }
    .about-text p { font-size: 1rem; }
    .book-btn-large { padding: 14px 30px; font-size: 1.1rem; max-width: 220px; }

    .contact-content { flex-direction: column; }
    .contact-info, .contact-map { max-width: 100%; }
    .map-container { padding-bottom: 100%; }

    .footer-content { flex-direction: column; gap: 25px; text-align: center; }
    .footer-links { order: 1; gap: 20px; }
    .footer-social { order: 2; }
    .footer-logo { order: 0; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 10px; }
    .logo { max-width: 120px; }
    .hero-swiper { height: 50vh; min-height: 300px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .book-btn-large { padding: 12px 25px; font-size: 1rem; }
    .reviewer-img { width: 45px; height: 45px; }
    .reviewer-name { font-size: 1.05rem; }
    .review-text { font-size: 0.9rem; }
    .kari-img { max-width: 200px; height: 200px; }
    .about-text p { font-size: 0.95rem; margin-bottom: 6px; } /* Even tighter */
    .sparkle { width: 25px; }
    .sparkle-review-1 { left: 10%; }
    .sparkle-review-2 { right: 12%; }
    .sparkle-review-3 { display: none; } /* Hide one on smallest screens */
    .decoration { width: 50px; } /* Even smaller flowers */
    .contact-info h3 { font-size: 1.3rem; }
    .contact-info p { font-size: 1rem; }
}