@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Lexend', sans-serif;
    background-color: #F5F1EE;
    color: #2D2D2D;
}

.cta-gradient {
    background: linear-gradient(135deg, #F6C35B, #F28C6F);
    transition: all 0.3s ease;
}

.cta-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(242, 140, 111, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #E85C7A, #C83F6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.soft-shadow {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Spinner animation for form submit buttons */
.spinner {
    display: inline-block;
    animation: spin 0.8s linear infinite;
    font-size: 18px;
    line-height: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Slick Custom Arrows */
.slick-prev,
.slick-next {
    z-index: 40;
    width: 50px;
    height: 50px;
    background: rgba(232, 92, 122, 0.8) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: #E85C7A !important;
    transform: scale(1.1);
}

.slick-prev {
    left: 40px;
}

.slick-next {
    right: 40px;
}

.slick-prev:before,
.slick-next:before {
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    opacity: 1;
}

.slick-prev:before {
    content: 'arrow_back';
}

.slick-next:before {
    content: 'arrow_forward';
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none !important;
}

.whatsapp-icon {
    background-color: #42db87;
    color: #fff;
    width: 60px;
    height: 60px;
    font-size: 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 5px 15px rgba(66, 219, 135, 0.3);
    animation: whatsapp-pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1);
    background-color: #36c374;
}

.whatsapp-text {
    margin-top: 8px;
    color: #707070;
    font-size: 12px;
    font-weight: 600;
    background: white;
    padding: 2px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@keyframes whatsapp-pulse {
    to {
        box-shadow: 0 0 0 30px rgba(66, 219, 135, 0);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #E85C7A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(232, 92, 122, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    bottom: 120px; /* Moves up slightly when visible */
}

.scroll-top-btn:hover {
    background-color: #C83F6B;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(232, 92, 122, 0.4);
}

.scroll-top-btn span {
    font-size: 24px;
    font-weight: bold;
}

/* Global Premium Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    background-color: #FFFFFF;
    border: 2px solid #F0F0F0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2D2D2D;
    font-size: 0.95rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus {
    border-color: #E85C7A;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(232, 92, 122, 0.1), inset 0 2px 4px rgba(0,0,0,0.01);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #A0A0A0;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23E85C7A' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 45px;
}

.custom-file-upload {
    border: 2px dashed #E85C7A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 16px;
    cursor: pointer;
    background: #FFF5F7;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background: #FADADD;
    transform: translateY(-2px);
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(232, 92, 122, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

/* Sticky Sidebars */
.emergency-sidebar-wrapper {
    position: fixed;
    left: -260px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.emergency-sidebar-wrapper:hover {
    left: 0;
}

.emergency-sidebar {
    width: 300px;
    background: white;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    border: 1px solid #E85C7A;
    display: flex;
}

.emergency-header {
    background: #E85C7A;
    color: white;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    order: 2;
}

.emergency-header span:last-child {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 10px;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 2px;
}

.emergency-body {
    padding: 20px;
    width: 260px;
    order: 1;
    background: #fff;
}

.emergency-body p {
    font-size: 13px;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.5;
}

.emergency-body p:last-child {
    margin-bottom: 0;
}

.emergency-body strong {
    color: #E85C7A;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.emergency-link {
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-link:hover {
    color: #E85C7A;
    text-decoration: underline;
}

/* Social Sidebar (Right) */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #333;
    color: white;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px 0 0 8px;
    width: 45px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.social-item i {
    font-size: 18px;
    min-width: 21px;
    text-align: center;
}

.social-item span {
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.social-item:hover {
    width: 160px;
}

.social-item:hover span {
    opacity: 1;
}

.social-item.facebook { background: #3b5998; }
.social-item.instagram { background: #e4405f; }
.social-item.youtube { background: #cd201f; }
.social-item.twitter { background: #1da1f2; }

/* ============================================================
   RESPONSIVE STYLES — All Pages
   Dr. Rathi's Bright Hope IVF
   ============================================================ */

/* ---- Mobile Navigation ---- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(232, 92, 122, 0.08);
    border: 1.5px solid rgba(232, 92, 122, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.mobile-menu-btn:hover {
    background: rgba(232, 92, 122, 0.15);
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #E85C7A;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    z-index: 49;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-bottom: 1px solid rgba(232, 92, 122, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 20px 0 30px;
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a,
.mobile-nav .mobile-nav-item {
    display: block;
    padding: 13px 24px;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-nav a:hover,
.mobile-nav .mobile-nav-item:hover {
    color: #E85C7A;
    background: rgba(232, 92, 122, 0.04);
    padding-left: 30px;
}
.mobile-nav a.active-link {
    color: #E85C7A;
    font-weight: 700;
}
.mobile-nav .mobile-services-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 24px;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-nav .mobile-services-toggle:hover {
    color: #E85C7A;
    background: rgba(232, 92, 122, 0.04);
}
.mobile-services-submenu {
    display: none;
    background: rgba(232, 92, 122, 0.03);
}
.mobile-services-submenu.open { display: block; }
.mobile-services-submenu a {
    padding: 10px 24px 10px 40px;
    font-size: 13px;
    color: #777;
}
.mobile-nav-cta {
    margin: 16px 24px 0;
    display: block !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #F6C35B, #F28C6F) !important;
    color: white !important;
    text-align: center !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    font-size: 12px !important;
    padding: 14px 24px !important;
    border-bottom: none !important;
}
.mobile-nav-cta:hover {
    opacity: 0.9 !important;
    padding-left: 24px !important;
}

/* ---- Sticky Sidebars — Mobile (< 1024px) ---- */
@media (max-width: 1023px) {
    .emergency-sidebar-wrapper,
    .social-sidebar {
        display: none !important;
    }

    /* Mobile Emergency Float Button */
    .mobile-emergency-btn {
        position: fixed;
        bottom: 110px;
        left: 16px;
        z-index: 1001;
        display: flex;
        align-items: center;
        gap: 8px;
        background: #E85C7A;
        color: white;
        padding: 10px 16px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(232, 92, 122, 0.4);
        animation: pulse-emergency 2s infinite;
        transition: all 0.3s ease;
    }
    .mobile-emergency-btn:hover {
        background: #C83F6B;
        transform: translateY(-2px);
    }
    @keyframes pulse-emergency {
        0%, 100% { box-shadow: 0 6px 20px rgba(232, 92, 122, 0.4); }
        50% { box-shadow: 0 6px 30px rgba(232, 92, 122, 0.7); }
    }
    .mobile-emergency-popup {
        position: fixed;
        bottom: 165px;
        left: 16px;
        z-index: 1002;
        background: white;
        border: 1.5px solid #E85C7A;
        border-radius: 16px;
        padding: 16px 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
        font-size: 13px;
        display: none;
        min-width: 220px;
        animation: slideUpIn 0.3s ease;
    }
    .mobile-emergency-popup.open { display: block; }
    @keyframes slideUpIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .mobile-emergency-popup strong {
        display: block;
        color: #E85C7A;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    .mobile-emergency-popup p {
        font-size: 13px;
        color: #444;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    .mobile-emergency-popup a {
        color: #444;
        text-decoration: none;
    }
    .mobile-emergency-popup a:hover { color: #E85C7A; }
    .mobile-emergency-popup .popup-close {
        position: absolute;
        top: 8px;
        right: 12px;
        font-size: 18px;
        color: #aaa;
        cursor: pointer;
        line-height: 1;
        font-weight: bold;
    }

    /* Mobile Social Icons Row */
    .mobile-social-bar {
        position: fixed;
        bottom: 160px;
        right: 16px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .mobile-social-bar a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }
    .mobile-social-bar a:hover { transform: scale(1.1); }
    .mobile-social-bar a.fb { background: #3b5998; }
    .mobile-social-bar a.ig { background: #e4405f; }
    .mobile-social-bar a.yt { background: #cd201f; }
    .mobile-social-bar a.tw { background: #1da1f2; }
}

/* ---- Navbar Mobile ---- */
@media (max-width: 1279px) {
    .mobile-menu-btn { display: flex; }
}

/* ---- Hero Slider (home.html) ---- */
@media (max-width: 767px) {
    .slide-item {
        height: 500px !important;
    }
    .slide-item .max-w-2xl,
    .slide-item .max-w-3xl {
        max-width: 100%;
        margin: 0 16px;
    }
    .slide-item .bg-white\/10 {
        padding: 24px !important;
        margin: 0 8px;
    }
    .slide-item h2 {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 12px !important;
    }
    .slide-item p {
        font-size: 1rem !important;
    }
    .slick-prev { left: 10px !important; }
    .slick-next { right: 10px !important; }
    .slick-prev, .slick-next {
        width: 38px !important;
        height: 38px !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .slide-item {
        height: 600px !important;
    }
    .slide-item h2 {
        font-size: 2.2rem !important;
    }
}

/* ---- Quick Contact Overlapping Cards ---- */
@media (max-width: 767px) {
    section.relative.z-30.-mt-20 {
        margin-top: 0 !important;
        padding-top: 24px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    section.relative.z-30.-mt-20 {
        margin-top: -10px !important;
    }
}

/* ---- About Section ---- */
@media (max-width: 767px) {
    .about-section-img,
    section img.h-\[600px\] {
        height: 300px !important;
    }
    section img.h-\[500px\] {
        height: 280px !important;
    }
    /* Floating overlay badge */
    .absolute.bottom-10.-right-5.cta-gradient {
        position: static !important;
        margin-top: 16px;
        max-width: 100% !important;
        border-radius: 10px;
    }
    /* About blur blobs */
    .absolute.-top-10.-left-10.w-48,
    .absolute.-bottom-10.-right-10.w-48 {
        width: 80px !important;
        height: 80px !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    section img.h-\[600px\] {
        height: 420px !important;
    }
}

/* ---- Service Cards Carousel ---- */
@media (max-width: 767px) {
    .service-item {
        padding: 24px !important;
    }
}

/* ---- Why Choose Us / Speciality Cards ---- */
@media (max-width: 767px) {
    .bg-white\/10.backdrop-blur-md.p-10 {
        padding: 20px !important;
        min-height: auto !important;
    }
}

/* ---- Services Overview Grid ---- */
@media (max-width: 767px) {
    /* Force the IVF card inner flex to column on phones */
    .md\:col-span-8 .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
    }
}

/* ---- Step Timeline Section ---- */
@media (max-width: 767px) {
    section.py-24.bg-white .grid-cols-1.md\:grid-cols-4 {
        gap: 32px !important;
    }
}

/* ---- Testimonials ---- */
@media (min-width: 768px) and (max-width: 1023px) {
    section.py-24 .grid.grid-cols-1.lg\:grid-cols-3 {
        gap: 32px !important;
    }
}
@media (max-width: 767px) {
    section .bg-surface.p-10.rounded-lg.soft-shadow {
        padding: 20px !important;
    }
}

/* ---- Consultation Form (home.html) ---- */
@media (max-width: 767px) {
    section .absolute.top-0.right-0.w-1\/2 {
        display: none !important;
    }
    section .grid-cols-1.lg\:grid-cols-2.gap-20 {
        gap: 32px !important;
    }
    .bg-white.p-10.md\:p-12.rounded-lg.shadow-2xl {
        padding: 20px !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    section .grid-cols-1.lg\:grid-cols-2.gap-20 {
        gap: 32px !important;
    }
}

/* ---- Page Hero Banners (about, blog, career, contact) ---- */
@media (max-width: 767px) {
    section.relative.h-\[400px\] {
        height: 240px !important;
    }
    section.relative.h-\[400px\] h1 {
        font-size: 2.2rem !important;
        margin-bottom: 12px !important;
    }
    section.relative.h-\[400px\] nav {
        font-size: 13px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    section.relative.h-\[400px\] {
        height: 300px !important;
    }
    section.relative.h-\[400px\] h1 {
        font-size: 3rem !important;
    }
}

/* ---- Doctor Cards (about.html) ---- */
@media (max-width: 1023px) {
    .bg-background.rounded-3xl .lg\:w-1\/3 img {
        min-height: 260px !important;
        max-height: 320px;
        object-position: top;
    }
}
@media (max-width: 767px) {
    .bg-background.rounded-3xl .lg\:w-2\/3.p-10 {
        padding: 20px !important;
    }
    .bg-background.rounded-3xl .lg\:w-2\/3.p-10.md\:p-14 {
        padding: 20px !important;
    }
    /* Floating badge on about page */
    .absolute.-bottom-5.-left-5.bg-white {
        display: none;
    }
}

/* ---- Contact / Career Forms ---- */
@media (max-width: 767px) {
    .bg-white.p-10.md\:p-12.rounded-lg.shadow-2xl {
        padding: 20px !important;
    }
    /* Career — why work with us cards */
    .bg-surface.p-8.rounded-2xl {
        padding: 20px !important;
    }
}

/* ---- Google Map (contact.html) ---- */
@media (max-width: 767px) {
    .h-\[500px\].w-full.bg-surface {
        height: 280px !important;
    }
}

/* ---- Footer ---- */
@media (max-width: 767px) {
    footer.bg-highlight {
        padding-top: 48px !important;
    }
    footer .grid.grid-cols-1.md\:grid-cols-4 {
        gap: 32px !important;
    }
    footer .max-w-\[1200px\].mx-auto.px-6 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ---- General Padding Adjustments (mobile) ---- */
@media (max-width: 767px) {
    .py-24 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .pt-24 {
        padding-top: 48px !important;
    }
    .pb-24 {
        padding-bottom: 48px !important;
    }
    .mb-20 { margin-bottom: 40px !important; }
    .mb-16 { margin-bottom: 28px !important; }
    .gap-20 { gap: 32px !important; }
    .gap-16 { gap: 24px !important; }
    /* Section headings */
    h2.text-4xl, h2.text-5xl {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }
    h3.text-4xl, h3.text-3xl {
        font-size: 1.6rem !important;
    }
    /* Navbar height fix on mobile */
    header .h-\[90px\] {
        height: 70px !important;
    }
    header img.h-20 {
        height: 52px !important;
    }
    main.pt-\[100px\] {
        padding-top: 80px !important;
    }
    main.pt-\[90px\] {
        padding-top: 70px !important;
    }
    /* Book appointment button on mobile */
    header button.cta-gradient {
        padding: 10px 14px !important;
        font-size: 10px !important;
        letter-spacing: 0.05em !important;
    }
    /* Phone number in nav — keep hidden on mobile, shown on lg */
}
@media (min-width: 768px) and (max-width: 1023px) {
    .py-24 {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
    h2.text-4xl, h2.text-5xl {
        font-size: 2.2rem !important;
    }
    header .h-\[90px\] {
        height: 80px !important;
    }
}

/* ---- Scroll-top button spacing on mobile ---- */
@media (max-width: 767px) {
    .scroll-top-btn {
        right: 16px !important;
        bottom: 80px !important;
    }
    .scroll-top-btn.visible {
        bottom: 100px !important;
    }
    .whatsapp-float {
        left: 16px !important;
        bottom: 20px !important;
    }
}

/* ---- Mobile nav top matches smaller header ---- */
@media (max-width: 767px) {
    .mobile-nav {
        top: 70px !important;
        max-height: calc(100vh - 70px) !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-nav {
        top: 80px !important;
        max-height: calc(100vh - 80px) !important;
    }
}

/* ---- Hide mobile-only elements on desktop ---- */
@media (min-width: 1024px) {
    .mobile-emergency-btn,
    .mobile-emergency-popup,
    .mobile-social-bar {
        display: none !important;
    }
}
