/**
 * RIDHI SIDHI ENTERPRISES - Premium Design System & Custom Styles
 * Palette: #0056D2 (Primary), #FF9800 (Secondary), #00A86B (Accent), #F8FAFC (Background)
 */

:root {
    --primary-color: #0056D2;
    --primary-dark: #003B95;
    --primary-light: #EBF3FF;
    --secondary-color: #FF9800;
    --secondary-dark: #E68A00;
    --accent-color: #00A86B;
    --bg-surface: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --card-shadow: 0 10px 30px rgba(0, 86, 210, 0.07);
    --hover-shadow: 0 18px 45px rgba(0, 86, 210, 0.15);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Typography */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-surface);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    transition: var(--transition);
}

.text-primary-color { color: var(--primary-color) !important; }
.text-secondary-color { color: var(--secondary-color) !important; }
.text-accent-color { color: var(--accent-color) !important; }
.bg-light-surface { background-color: var(--bg-surface) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }

/* Top Notification Bar */
.top-bar {
    background: linear-gradient(90deg, var(--text-dark) 0%, #1e293b 100%);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-phone-link:hover {
    color: var(--secondary-color) !important;
}

/* Sticky Glassmorphism Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 86, 210, 0.08);
    transition: var(--transition);
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.brand-icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.25);
    transition: var(--transition);
}

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

.glass-navbar.scrolled .brand-logo {
    width: 52px;
    height: 52px;
}

.brand-title {
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Call Now & Gradient Buttons */
.btn-call-now {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.25);
}

.btn-call-now:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #00225a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
}

.phone-pulse {
    animation: phoneShake 2s infinite;
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.btn-secondary-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: #ffffff !important;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary-gradient:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #b36b00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.45);
}

/* Hero Banner Section */
.hero-section {
    position: relative;
    padding: 6rem 0 5rem 0;
    background: linear-gradient(135deg, #0a192f 0%, #001e4d 60%, #003B95 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.6;
}

.hero-badge {
    background: rgba(255, 152, 0, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 152, 0, 0.4);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-illustration-box {
    position: relative;
    z-index: 2;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -5%;
}

.floating-card-2 {
    bottom: 15%;
    right: -3%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Category Cards */
.category-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 86, 210, 0.06);
    box-shadow: var(--card-shadow);
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 86, 210, 0.2);
}

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

.category-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.category-card:hover .category-icon-box {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.08) rotate(5deg);
}

/* Business Listing Cards */
.business-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 86, 210, 0.08);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.business-img-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.business-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-card:hover .business-img-wrapper img {
    transform: scale(1.08);
}

.badge-verified {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 168, 107, 0.95);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-category {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.business-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.business-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.business-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    border: 1px solid rgba(0, 86, 210, 0.06);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 86, 210, 0.2);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Statistics Counters Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    position: relative;
    padding: 5rem 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.25rem;
    border: 1px solid rgba(0, 86, 210, 0.08);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Why Choose Us Feature Box */
.feature-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 86, 210, 0.06);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid rgba(0, 86, 210, 0.1) !important;
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Form & Page */
.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 86, 210, 0.08);
    box-shadow: var(--card-shadow);
}

.form-control, .form-select {
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 210, 0.12);
}

/* Footer Section */
.footer-dark {
    background-color: #0F172A;
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Floating Actions & Cookie Banner */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.floating-btn {
    width: 52px;
    height: 52px;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #1ebc59;
    transform: scale(1.1);
}

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

.call-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.top-btn {
    background-color: #334155;
    opacity: 0;
    visibility: hidden;
}

.top-btn.show {
    opacity: 1;
    visibility: visible;
}

.top-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1060;
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.96) !important;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .floating-actions {
        bottom: 16px;
        right: 16px;
    }
    .cookie-consent-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .hero-section {
        padding: 4rem 0;
    }
}
