/* ================================================
   EVERYDAY GENIE - COMPONENT STYLES
   Reusable UI components across pages
   ================================================ */

/* ================================================
   TOP INFO BAR
   ================================================ */

.top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-bar span {
    font-weight: 600;
    margin: 0 3px;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */

.header {
    background: var(--white);
    padding: 5px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: height var(--transition-base);
}

.header.scrolled .logo img {
    height: 45px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
    cursor: pointer;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary);
}

/* Book Button */
.book-btn {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: var(--shadow-primary);
    cursor: pointer;
    display: inline-block;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.book-btn::after {
    display: none !important;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition-base);
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-call {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

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

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

/* ================================================
   FLOATING WHATSAPP WIDGET
   ================================================ */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-full);
    text-align: center;
    font-size: 35px;
    box-shadow: var(--shadow-whatsapp);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float::before {
    content: '💬';
}

/* ================================================
   DECORATIVE BUBBLES
   ================================================ */

.decorative-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: var(--radius-circle);
    opacity: 1;
    will-change: transform;
    animation: floatBubble 8s infinite ease-in-out;
}

.bubble:nth-child(1) { animation-duration: 7s; }
.bubble:nth-child(2) { animation-duration: 9s; }
.bubble:nth-child(3) { animation-duration: 6.5s; }
.bubble:nth-child(4) { animation-duration: 8.5s; }
.bubble:nth-child(5) { animation-duration: 10s; }

/* ================================================
   SECTION TITLE
   ================================================ */

.section-title {
    font-size: var(--font-size-4xl);
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-style: italic;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

/* ================================================
   CARDS
   ================================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

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

.value-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.value-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
}

.value-card h3 {
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: var(--font-size-md);
}

/* ================================================
   TESTIMONIAL CARDS
   ================================================ */

.testimonial-card {
    background: var(--gray-100);
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
}

.testimonial-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.7;
    font-size: var(--font-size-md);
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    background: var(--gradient-footer);
    color: var(--white);
    padding: 70px var(--spacing-lg) 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-about img {
    height: 55px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.footer-about p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: var(--font-size-md);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: var(--font-size-lg);
}

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

.footer-section h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ================================================
   MESSAGE/ALERT COMPONENTS
   ================================================ */

.message {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ================================================
   FORM COMPONENTS
   ================================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 140, 168, 0.1);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    color: var(--gray-600);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

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

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .value-card {
        padding: var(--spacing-xl);
    }
    
    .testimonial-card {
        padding: var(--spacing-xl);
    }
}
