/* ============================================================
   Rose Petals Beauty Salon — Main Stylesheet
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    --primary:       #C8556D;
    --primary-light: #E8879A;
    --primary-dark:  #8B2045;
    --accent-gold:   #C9A96E;
    --bg-light:      #FDF0F3;
    --bg-subtle:     #FFF8FA;
    --text-dark:     #2D2D2D;
    --text-muted:    #6B7280;
    --border:        #EDD5DC;
    --white:         #FFFFFF;
    --shadow-sm:     0 2px 12px rgba(200, 85, 109, 0.10);
    --shadow-md:     0 8px 32px rgba(200, 85, 109, 0.14);
    --shadow-lg:     0 16px 48px rgba(200, 85, 109, 0.18);
    --radius:        12px;
    --radius-lg:     20px;
    --transition:    all 0.3s ease;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 72px; /* navbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ─── Navbar ─────────────────────────────────────────────── */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    padding: 14px 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark) !important;
}

.navbar-logo {
    max-height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.brand-icon { color: var(--primary); font-size: 1.6rem; }

.navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--bg-light);
}

.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23C8556D' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary-rose {
    background: var(--primary);
    color: var(--white) !important;
    border: 2px solid var(--primary);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-primary-rose:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-rose {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-rose:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* ─── Section Styling ────────────────────────────────────── */
section { padding: 80px 0; }

.section-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title span { color: var(--primary); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
}

.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    border-radius: 4px;
    margin: 16px auto;
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 72px);
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-light) 60%, #F7E0E8 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(200,85,109,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(201,169,110,0.10) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight { color: var(--primary); }

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image-wrap img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    width: 100%;
    max-width: 460px;
    object-fit: cover;
    aspect-ratio: 1;
    box-shadow: var(--shadow-lg);
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.hero-float-card .card-icon { font-size: 1.4rem; }
.hero-float-card.card-1 { bottom: 15%; left: -20px; }
.hero-float-card.card-2 { top: 15%; right: -20px; }

/* ─── Services Section ───────────────────────────────────── */
.services-section { background: var(--white); }

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 72px; height: 72px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.service-price-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* ─── Individual Service List Page ──────────────────────── */
.service-list-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.service-list-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.service-list-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.service-duration-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.service-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 72px;
    text-align: right;
}

/* ─── Filter Tabs ────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.filter-tab {
    padding: 8px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

.filter-tab:hover, .filter-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-light);
}

/* ─── Why Choose Us ──────────────────────────────────────── */
.why-section { background: var(--bg-subtle); }

.feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.feature-icon-wrap {
    width: 56px; height: 56px;
    min-width: 56px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-section { background: var(--bg-light); }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--bg-light);
    position: absolute;
    top: 12px; left: 20px;
    line-height: 1;
}

.testimonial-stars { color: var(--accent-gold); font-size: 0.9rem; }

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin: 12px 0 20px;
}

.testimonial-author { font-weight: 600; color: var(--text-dark); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }

.btn-white {
    background: white;
    color: var(--primary) !important;
    border: 2px solid white;
    font-weight: 700;
}

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary-dark) !important;
    border-color: var(--bg-light);
}

.btn-outline-white {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 600;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ─── About Section ──────────────────────────────────────── */
.about-image-wrap { position: relative; }

.about-image-wrap img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-badge-float {
    position: absolute;
    bottom: -16px; right: -16px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge-float .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

/* ─── Contact Section ────────────────────────────────────── */
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition);
}

.contact-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }

.contact-card-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 6px; }

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,85,109,0.12);
    outline: none;
}

.form-control::placeholder { color: #BBB; }

/* ─── Booking Form ───────────────────────────────────────── */
.booking-section { background: var(--bg-subtle); min-height: calc(100vh - 72px); padding: 60px 0; }

.booking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.booking-steps {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 32px;
    color: white;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    opacity: 0.5;
    transition: var(--transition);
}

.step-item.active, .step-item.done { opacity: 1; }

.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.active .step-num { background: white; color: var(--primary); border-color: white; }
.step-item.done .step-num { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

.step-label { font-size: 0.88rem; font-weight: 500; }

.booking-body { padding: 40px; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInStep 0.3s ease; }

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Service selection checkboxes */
.service-checkbox-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.service-checkbox-item:hover { border-color: var(--primary-light); background: var(--bg-subtle); }
.service-checkbox-item.selected { border-color: var(--primary); background: var(--bg-light); }

.service-checkbox-item input[type="checkbox"] { display: none; }

.service-check-icon {
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    transition: var(--transition);
}

.service-checkbox-item.selected .service-check-icon {
    background: var(--primary);
    color: white;
}

/* Time slots */
.time-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }

.time-slot {
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    background: var(--white);
}

.time-slot:hover:not(.booked) { border-color: var(--primary); color: var(--primary); background: var(--bg-light); }
.time-slot.selected { background: var(--primary); border-color: var(--primary); color: white; }
.time-slot.booked { background: #F3F4F6; color: #BBB; cursor: not-allowed; border-color: #EEE; }

/* ─── Page Hero / Banner ─────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-light) 100%);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text-dark); }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; margin-top: 10px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--text-dark); }

.footer-top { padding: 60px 0; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* makes logo white on dark footer */
    border-radius: 4px;
}

.footer-brand-icon { font-size: 1.8rem; color: var(--primary-light); }

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 10px; }

.footer-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-heading { color: white; font-family: 'Raleway', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; color: rgba(255,255,255,0.55); font-size: 0.9rem; align-items: flex-start; }
.footer-contact li i { color: var(--primary-light); margin-top: 3px; min-width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--primary-light); }

.footer-bottom { background: rgba(0,0,0,0.2); padding: 18px 0; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin: 0; }

/* ─── Utilities ──────────────────────────────────────────── */
.bg-light-rose { background: var(--bg-light) !important; }
.text-rose { color: var(--primary) !important; }
.border-rose { border-color: var(--border) !important; }

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Alert/Flash ────────────────────────────────────────── */
.alert-success { --bs-alert-bg: #F0FDF4; --bs-alert-border-color: #B1DFBB; --bs-alert-color: #166534; }
.alert-danger { --bs-alert-bg: #FFF5F5; --bs-alert-border-color: #F5BDC0; --bs-alert-color: #991B1B; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    body { padding-top: 66px; }
    section { padding: 56px 0; }
    .hero { min-height: auto; padding: 60px 0; }
    .hero-image-wrap { margin-top: 40px; }
    .hero-float-card { display: none; }
    .hero-stats { gap: 20px; }
    .booking-body { padding: 28px 20px; }
    .about-badge-float { right: 0; bottom: 0; }
}

@media (max-width: 575px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .time-slot-grid { grid-template-columns: repeat(3, 1fr); }
    .booking-steps { padding: 20px; }
}
