/**
 * Homepage Modern Styles
 * Enhances UI/UX for Preferred Urgent Care Homepage
 */

:root {
    --primary-blue: #004aad;
    --dark-blue: #003380;
    --light-blue: #e7f1ff;
    --accent-green: #198754;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* === General Utils === */
.fw-extra-bold {
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8faff 0%, #ffffff 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-image {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
}

/* Hero image column - ensure full coverage */
.hero-section .col-lg-6.position-relative {
    min-height: 450px;
}

.hero-section .col-lg-6.position-relative>.position-relative {
    height: 100%;
}

/* Floating Stats Cards */
.hero-stats-container {
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    z-index: 2;
}

.hero-stats {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-stats>div {
    text-align: center;
    position: relative;
    flex: 1;
}

.hero-stats>div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #eee;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

/* === Ways to Access Section === */
.access-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-base);
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 74, 173, 0.1);
}

.access-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.access-card h4 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 800;
    color: var(--white);
    opacity: 0.8;
}

/* === Services Section === */
.service-card-modern {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-modern:hover .service-card-img {
    transform: scale(1.1);
}

.service-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-title {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.service-card-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-card-link i {
    transition: transform 0.2s ease;
}

.service-card-modern:hover .service-card-link i {
    transform: translateX(4px);
}

/* === Benefits Sticky Notes === */
.benefit-card {
    border-radius: 12px !important;
    /* Override inline style potentially */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
}

.benefit-card:before {
    /* Improve the "tape" look or remove it for a cleaner card look */
    /* Making it look more like a clean card than a sticky note for "top-notch" feel */
    display: none;
}

/* Keep slight rotation but make it subtle */
.benefit-card.tilt-1 {
    transform: rotate(1deg);
}

.benefit-card.tilt-2 {
    transform: rotate(-1deg);
}

/* Hover resets */
.benefit-card:hover {
    transform: translateY(-5px) !important;
}

.benefit-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    opacity: 0.8;
}

/* === Responsive Adjustments === */

/* Extra Large Desktops (1400px+) */
@media (min-width: 1400px) {
    .hero-section {
        padding: 8rem 0;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content .lead {
        font-size: 1.4rem;
    }

    .stats-number {
        font-size: 3rem;
    }
}

/* Large Desktops (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content h1 {
        font-size: 3.25rem;
    }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .hero-stats {
        padding: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .stats-label {
        font-size: 0.75rem;
    }

    .hero-image {
        max-height: 400px;
    }
}

/* Mobile Landscape & Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content .lead {
        font-size: 1rem;
        padding: 0;
    }

    .hero-content .d-flex {
        justify-content: center;
    }

    .hero-content .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-stats-container {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem;
    }

    .hero-stats>div {
        flex: 1 1 30%;
        min-width: 80px;
    }

    .hero-stats>div:not(:last-child)::after {
        display: none;
    }

    .stats-number {
        font-size: 1.75rem;
    }

    .stats-label {
        font-size: 0.7rem;
    }
}

/* Mobile Portrait (max-width: 575px) */
@media (max-width: 575px) {
    .hero-section {
        padding: 2rem 0 3rem;
        text-align: center;
    }

    .hero-content-wrapper {
        order: 2;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content .lead {
        font-size: 0.95rem;
        padding: 0;
        margin-bottom: 1.5rem !important;
    }

    .hero-content .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .hero-content .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-content .btn-lg {
        padding: 0.875rem 1.5rem !important;
    }

    .hero-content .rounded-pill {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero-image {
        border-radius: 12px;
        margin-bottom: 1.5rem;
        min-height: 250px !important;
        max-height: 300px !important;
    }

    .hero-stats-container {
        position: relative;
        bottom: auto;
        left: 0;
        right: 0;
        margin-top: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .hero-stats>div {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .hero-stats>div:last-child {
        border-bottom: none;
    }

    .hero-stats>div:not(:last-child)::after {
        display: none;
    }

    .stats-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .stats-label {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    /* Trust badge on mobile */
    .hero-content .tracking-wide {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem !important;
    }

    /* Decorative circle - hide on mobile */
    .hero-section .position-absolute.rounded-circle {
        display: none;
    }
}

/* Very Small Devices (max-width: 375px) */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content .lead {
        font-size: 0.875rem;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .stats-label {
        font-size: 0.6rem;
    }
}

/* Services Section Responsiveness */
@media (max-width: 767px) {
    .services-section {
        padding: 3rem 0;
    }

    .services-section h2 {
        font-size: 1.75rem;
    }

    .service-card-img-wrapper {
        height: 150px;
    }

    .service-card-title {
        font-size: 1rem;
    }
}

/* Access Cards Responsiveness */
@media (max-width: 767px) {
    .access-card {
        padding: 1.5rem;
    }

    .access-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* === Testimonial Slider Fixes === */
/* Override: Show stars on ALL slides, not just active */
.testimonial .swiper .swiper-slide .stars,
.testimonial .swiper-slide .stars,
.testimonial .stars,
section.testimonial .stars {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffc107;
}

/* Ensure swiper is visible and clips extra slides */
.testimonial .swiper {
    overflow: hidden;
    padding: 40px 0;
}

.testimonial .swiper-wrapper {
    overflow: visible;
}

.testimonial .swiper-slide {
    height: auto;
}

.testimonial .swiper-slide .card {
    min-height: 280px;
}