/* 
 * Shraddha's Beauty Hub - Premium Styles
 * Theme: Light & Airy (White, Soft Grey, Coral)
 */

:root {
    /* Color Palette - LIGHT THEME REFACTOR */
    --primary-bg: #ffffff;
    /* Pure White */
    --secondary-bg: #f8f9fa;
    /* Very Light Grey for contrast */
    --accent-gold: #c7a17a;
    /* Muted Beige/Bronze (less yellow) */
    --accent-coral: #E27D60;
    /* Soft Coral */

    --text-light: #333333;
    /* Dark Charcoal for main text */
    --text-muted: #666666;
    /* Medium Grey */

    --gradient-gold: linear-gradient(135deg, #E27D60 0%, #d67056 100%);
    /* Switched to Coral Gradient */
    --gradient-coral: linear-gradient(135deg, #E27D60 0%, #C35B3E 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 100px;
    /* Slightly taller for stacked logo */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    /* Dark text on light bg */
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    /* Dark headings */
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

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

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

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 125, 96, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent-coral);
    color: var(--accent-coral);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-coral);
    color: white;
}

/* Navigation - STATIC TOP (Non-Fixed) */
.navbar {
    position: absolute;
    /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: var(--header-height);
    background: white;
    /* Solid white background */
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

/* Removed navbar.scrolled styles since it does not scroll */

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    /* Dark text for logo */
    text-align: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: invert(1);
    /* Invert white logo to black if it's a transparency, or keep normal if it's colored. Given the generated logo was white line art on black, we might need to handle this. PREVIOUS LOGO WAS WHITE. */
}

/* Note: The generated logo is White lines on Transparent (or Black). If transparent, invert works. */

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
    /* Dark text */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.logo-subtext {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: var(--font-body);
    font-weight: 600;
    background: #333;
    /* Dark pill */
    color: white;
    /* White text */
    padding: 2px 12px;
    border-radius: 20px;
    margin-top: 4px;
    display: inline-block;
    text-transform: uppercase;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--accent-coral);
}

@keyframes navFlash {
    0%   { color: inherit; }
    25%  { color: #fff; text-shadow: 0 0 8px var(--accent-coral); }
    60%  { color: var(--accent-coral); text-shadow: none; }
    100% { color: inherit; }
}

.nav-link.nav-flash {
    animation: navFlash 0.4s ease;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    /* Reduced height slightly */
    width: 100%;
    /* Added overlay to ensure text readability on light theme, though image is dark. */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1560750588-73207b1ef5b8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    /* Clear the absolute header */
    color: white;
    /* Keep hero text white */
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    /* Force white */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Services Grid */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    background: var(--accent-coral);
    color: white;
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    -webkit-text-fill-color: initial;
    border-bottom: none;
}

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

.service-card {
    background: white;
    /* White card */
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-coral);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
    font-family: var(--font-body);
}

.service-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-coral);
}

/* Add to Cart Button */
.add-btn {
    background: transparent;
    border: 1px solid var(--accent-coral);
    color: var(--accent-coral);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: var(--accent-coral);
    color: white;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
    border-top: 4px solid var(--accent-coral);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.form-group input.field-valid,
.form-group select.field-valid {
    border-color: #28a745;
}

.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error,
.date-picker-input.field-error,
.time-picker-input.field-error {
    border-color: #dc3545 !important;
    background: #fff8f8;
}

.field-error-msg {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error-banner {
    background: #fff0f0;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Booking Cart Display */
.booking-cart-summary {
    background: rgba(226, 125, 96, 0.05);
    border: 1px solid var(--accent-coral);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-total {
    margin-top: 1rem;
    text-align: right;
    font-weight: bold;
    color: var(--accent-coral);
}

.clear-cart-btn {
    color: #ff6b6b;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-coral);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Info */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-coral);
}

.map-frame {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #111;
    /* Keep dark footer for contrast */
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    color: white;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    color: #999;
}

.footer-social a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 0.3rem 0;
        min-height: 60px;
    }

    .navbar-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-subtext {
        font-size: 0.7rem;
        padding: 1px 8px;
    }

    .mobile-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Booking form: stack date/time pickers on mobile */
    .date-time-grid {
        grid-template-columns: 1fr !important;
    }

    /* Date picker dropdown full width on mobile */
    .date-picker-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* ============================================
   Reviews Carousel
   ============================================ */

.reviews-section {
    background: var(--secondary-bg);
}

.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}

.stars-display {
    color: #f4b942;
    font-size: 1rem;
    letter-spacing: 2px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-coral);
    background: white;
    color: var(--accent-coral);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--accent-coral);
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Desktop: 3 cards */
.review-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-coral);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
}

.review-stars {
    color: #f4b942;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.google-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4285F4;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: italic;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    font-style: italic;
}

.review-date {
    font-size: 0.78rem;
    color: #aaa;
}

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

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-coral);
    width: 24px;
    border-radius: 4px;
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

/* Mobile: 1 card */
@media (max-width: 640px) {
    .review-card {
        flex: 0 0 100%;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* ============================================
   Find Us / Map Section
   ============================================ */

.find-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: center;
}

.find-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.find-us-item ion-icon {
    font-size: 1.4rem;
    color: var(--accent-coral);
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .find-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================
   Custom Date & Time Picker Styles
   ============================================ */

/* Custom Date Picker Container */
.custom-date-picker {
    position: relative;
    width: 100%;
}

.date-picker-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.date-picker-input:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.1);
}

.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    width: 320px;
    display: none;
}

.date-picker-dropdown.active {
    display: block;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.date-picker-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--accent-coral);
    transition: var(--transition);
}

.date-picker-header button:hover {
    background: rgba(226, 125, 96, 0.1);
    border-radius: 4px;
}

.date-picker-month-year {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.date-picker-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

#calendarDays {
    display: contents;
}

.date-picker-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.date-picker-day:hover:not(.disabled):not(.selected) {
    background: rgba(226, 125, 96, 0.1);
    border-color: var(--accent-coral);
}

.date-picker-day.selected {
    background: var(--accent-coral);
    color: white;
    font-weight: 600;
}

.date-picker-day.disabled {
    color: #ddd;
    cursor: not-allowed;
    background: #f8f8f8;
    text-decoration: line-through;
}

.date-picker-day.other-month {
    color: #ccc;
}

.date-picker-day.today {
    border-color: var(--accent-coral);
}

/* Custom Time Picker */
.custom-time-picker {
    position: relative;
    width: 100%;
}

.time-picker-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.time-picker-input:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.1);
}

.time-picker-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.time-picker-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.time-picker-dropdown.active {
    display: block;
}

.time-picker-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.time-slot:hover:not(.disabled):not(.selected) {
    background: rgba(226, 125, 96, 0.1);
    border-color: var(--accent-coral);
}

.time-slot.selected {
    background: var(--accent-coral);
    color: white;
    font-weight: 600;
    border-color: var(--accent-coral);
}

.time-slot.disabled {
    background: #f8f8f8;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.5;
}

.time-picker-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.time-picker-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}
