/* ===================================
   COMPONENTS STYLES
   Navigation, Footer, and Reusable Components
   =================================== */

/* === HEADER / NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-bottom: 1px solid rgba(200, 155, 60, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(200, 155, 60, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo span {
    color: var(--black);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background-color: rgba(200, 155, 60, 0.05);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.nav-cta {
    margin-left: 1rem;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left: 1rem;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-input.valid,
.form-textarea.valid,
.form-select.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.user-name {
    font-weight: 500;
    color: var(--black);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-icon {
    font-size: 0.7rem;
    color: var(--gray-dark);
    transition: transform 0.3s ease;
}

.user-menu-btn:hover .user-dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--nude-light), var(--white));
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.user-dropdown-info {
    flex: 1;
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.user-dropdown-email {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--nude-light);
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--black);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background-color: var(--nude-light);
}

.user-dropdown-item span {
    font-size: 1.125rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    border-radius: 2px;
    transition: var(--transition-base);
}

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

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

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

/* Mobile Navigation */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        /* Half screen width (well, 70% for better readability) */
        max-width: 300px;
        height: 100dvh;
        /* Use dynamic viewport height for mobile browsers */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
        /* Slightly more compact gap */
        transition: var(--transition-base);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        padding: 5rem 2rem 8rem;
        /* Increased bottom padding to clear mobile toolbars */
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Overlay for clicking outside */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-cta {
        margin-left: 0;
    }

    /* Mobile Auth Buttons */
    .auth-buttons {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    /* Mobile User Menu */
    .user-menu {
        margin-left: 0;
        width: 100%;
    }

    .user-menu-btn {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
        border: 2px solid var(--nude-light);
    }
}

/* === FOOTER === */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
}

.social-icon:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-name {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .service-price {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .service-card .btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }

    .popular-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        top: 8px;
        right: 8px;
    }
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-dark);
}

/* === SERVICE CARD === */
.service-card {
    background: linear-gradient(135deg, var(--white), var(--nude-light));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.3);
    border-color: var(--gold);
}

.service-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light), var(--nude-light));
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 16px rgba(201, 169, 97, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.service-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
    font-weight: 600;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}

.service-duration {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.service-description {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--nude);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--gold);
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-stars {
    color: var(--gold);
}

/* === PORTFOLIO FILTER === */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

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

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(28, 28, 28, 0.8), transparent);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

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

.portfolio-info {
    color: var(--white) !important;
}

.portfolio-overlay p {
    color: var(--gold) !important;
    font-size: 0.875rem;
    margin-bottom: 0.25rem !important;
}

.portfolio-overlay h4 {
    color: var(--white) !important;
    margin-bottom: 0 !important;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: var(--white);
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* === PROGRESS STEPS === */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gray);
    z-index: -1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: var(--transition-base);
}

.progress-step.active .step-circle {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.progress-step.completed .step-circle {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.step-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--gold);
    font-weight: 600;
}

/* === PRICE SUMMARY === */
.price-summary {
    background: linear-gradient(135deg, var(--nude-light), var(--white));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray);
}

.price-row:last-child {
    border-bottom: none;
    padding-top: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* === CALENDAR === */
.calendar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
}

.calendar-day:hover {
    background-color: var(--nude-light);
}

.calendar-day.selected {
    background-color: var(--gold);
    color: var(--white);
}

.calendar-day.disabled {
    color: var(--gray);
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background-color: transparent;
}

/* === TIME SLOTS === */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.time-slot {
    padding: 1rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--gold);
    background-color: var(--nude-light);
}

.time-slot.selected {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.time-slot.disabled:hover {
    border-color: var(--gray);
    background-color: transparent;
}

.time-slot.booked {
    border-color: #E2E8F0 !important;
    background-color: #F7FAFC !important;
    color: #A0AEC0 !important;
    cursor: not-allowed !important;
    position: relative;
}

.booked-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    background: #FF4D4D;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* === FAQ SECTION === */
.faq-item {
    background-color: transparent;
    border-bottom: 1px solid rgba(200, 155, 60, 0.3);
    /* Gold with opacity */
    margin-bottom: 0;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--black);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: var(--gold);
    color: var(--white);
}

.faq-item.active .faq-question {
    color: var(--gold);
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* === SERVICE CARD FLIP ANIMATION === */
.service-card-container {
    perspective: 1000px;
    min-height: 420px;
    /* Fixed height for consistent flip */
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card-container.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background: linear-gradient(135deg, var(--white), var(--nude-light));
    z-index: 2;
}

.service-card-back {
    background: linear-gradient(135deg, var(--nude-light), var(--white));
    transform: rotateY(180deg);
    border: 2px solid var(--gold);
}

/* Ensure content on back isreadable */
.service-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
}

.service-card-back li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(200, 155, 60, 0.3);
    color: var(--gray-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-card-back li::before {
    content: '✓';
    color: var(--gold);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* === FEATURE CARDS (Why Choose Me) === */
.features-grid-v3 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .features-grid-v3 {
        grid-template-columns: 1fr !important;
    }
}

.feature-card {
    background: #ffffff !important;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(200, 155, 60, 0.2) !important;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(200, 155, 60, 0.12);
    border-color: var(--gold);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--nude-light), var(--white));
    border: 1px solid rgba(200, 155, 60, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(200, 155, 60, 0.2);
}

.feature-number {
    display: none;
    /* Removed distracting numbers */
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* === CHAT SYSTEM === */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.chat-container {
    background: white;
    width: 95%;
    max-width: 500px;
    height: 600px;
    max-height: 90dvh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f5f5f5;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message-client {
    justify-content: flex-end;
}

.chat-message-admin {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.chat-message-client .chat-message-bubble {
    background: var(--gold);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-admin .chat-message-bubble {
    background: white;
    color: var(--black);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message-bubble p {
    margin: 0 0 0.25rem 0;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 0.75rem;
    border-radius: 0 0 12px 12px;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--gold);
}

.chat-send-btn {
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.chat-send-btn:active {
    transform: translateY(0);
}

/* Chat button on booking cards */
.booking-chat-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.booking-chat-btn:hover {
    background: #20BA5A;
    transform: translateY(-1px);
}

.booking-chat-btn:before {
    content: "💬";
}

@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .chat-header {
        border-radius: 0;
        padding: 1rem;
    }

    .chat-input-area {
        border-radius: 0;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}