/* ==========================================================
   HomeIndex.css — STL DentalGuys Landing Page
   Light / Teal Premium Theme · Fully Responsive
   ========================================================== */

/* --------------- CSS CUSTOM PROPERTIES --------------- */
:root {
    --teal:        #01b2aa;
    --teal-dark:   #019b94;
    --teal-light:  #e0f7f6;
    --teal-glow:   rgba(1, 178, 170, 0.25);
    --white:       #ffffff;
    --off-white:   #f7fafa;
    --gray-50:     #f8fafa;
    --gray-100:    #f0f4f4;
    --gray-200:    #e2e8e8;
    --gray-500:    #6b8a87;
    --gray-700:    #3a5553;
    --gray-900:    #1e3331;
    --gold:        #f0a500;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-pill: 50px;
    --shadow-sm:   0 2px 8px rgba(1, 178, 170, 0.08);
    --shadow-md:   0 8px 24px rgba(1, 178, 170, 0.12);
    --shadow-lg:   0 16px 48px rgba(1, 178, 170, 0.16);
    --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------- SCROLL ANIMATION --------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
    50%      { box-shadow: 0 0 20px 6px var(--teal-glow); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.animate-on-scroll.is-visible:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.is-visible:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll.is-visible:nth-child(4) { transition-delay: 0.25s; }
.animate-on-scroll.is-visible:nth-child(5) { transition-delay: 0.3s; }
.animate-on-scroll.is-visible:nth-child(6) { transition-delay: 0.35s; }

/* ====================================================
   1. HERO CAROUSEL
   ==================================================== */
.home-hero {
    position: relative;
    overflow: hidden;
}

.home-hero .carousel-inner {
    border-radius: 0;
}

.home-hero .hero-slide-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.92);
    transition: transform 8s ease;
}

.home-hero .carousel-item.active .hero-slide-img {
    transform: scale(1.04);
}

/* gradient overlay on each slide */
.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(1, 178, 170, 0.45) 0%,
        rgba(1, 155, 148, 0.55) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.home-hero .carousel-caption {
    z-index: 2;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.home-hero .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    margin-bottom: 12px;
    line-height: 1.15;
}

.home-hero .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    font-weight: 400;
}

/* hero CTA buttons */
.home-hero .hero-btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--teal);
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin: 0 6px 8px;
}

.home-hero .hero-btn-primary:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--teal-glow);
}

.home-hero .hero-btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 12px 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 6px 8px;
}

.home-hero .hero-btn-outline:hover {
    background: var(--white);
    color: var(--teal);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* carousel controls */
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 3;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.home-hero .carousel-control-prev { left: 20px; }
.home-hero .carousel-control-next { right: 20px; }

.home-hero .carousel-control-prev:hover,
.home-hero .carousel-control-next:hover {
    background: var(--teal);
}

.home-hero .carousel-control-prev-icon,
.home-hero .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(0%) brightness(30%);
}

.home-hero .carousel-control-prev:hover .carousel-control-prev-icon,
.home-hero .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(100%);
}

/* carousel indicators */
.home-hero .carousel-indicators {
    z-index: 3;
    bottom: 20px;
}

.home-hero .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    opacity: 0.7;
    margin: 0 5px;
    transition: var(--transition);
}

.home-hero .carousel-indicators button.active {
    background: var(--white);
    opacity: 1;
    transform: scale(1.2);
}

/* ====================================================
   2. STATS / TRUST BAR
   ==================================================== */
.home-stats {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
}

.home-stats .stat-item {
    text-align: center;
    padding: 20px 10px;
}

.home-stats .stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
}

.home-stats .stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====================================================
   3. FEATURES STRIP
   ==================================================== */
.home-features {
    padding: 72px 0;
    background: var(--off-white);
}

.home-features .feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.home-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.home-features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.home-features .feature-card:hover::before {
    transform: scaleX(1);
}

.home-features .feature-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    border-radius: 50%;
    margin-bottom: 18px;
    font-size: 1.8rem;
    color: var(--teal);
    transition: var(--transition);
}

.home-features .feature-card:hover .feature-icon {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.1);
}

.home-features .feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.home-features .feature-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ====================================================
   4. PRODUCTS SECTION
   ==================================================== */
.home-products {
    padding: 72px 0;
    background: var(--white);
}

.home-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.home-section-header .section-badge {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal);
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.home-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.home-section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* product card */
.home-product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.home-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.home-product-card .product-img-wrap {
    position: relative;
    height: 220px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.home-product-card .product-img-wrap img {
    max-height: 180px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.home-product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.home-product-card .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px var(--teal-glow);
}

.home-product-card .product-no-img {
    text-align: center;
    color: var(--gray-500);
}

.home-product-card .product-no-img i {
    font-size: 2.4rem;
    margin-bottom: 6px;
    display: block;
    color: var(--gray-200);
}

.home-product-card .product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-product-card .product-body h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.home-product-card .product-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}

.home-product-card .product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.home-product-card .product-features-list li i {
    color: var(--teal);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.home-product-card .btn-order {
    display: block;
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--teal-glow);
}

.home-product-card .btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--teal-glow);
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: var(--white);
}

/* empty state */
.home-products .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.home-products .empty-state i {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 12px;
    display: block;
}

/* ====================================================
   5. WHY CHOOSE US
   ==================================================== */
.home-why {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.home-why::before,
.home-why::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.home-why::before {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
}

.home-why::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -60px;
}

.home-why .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.home-why .home-section-header h2 {
    color: var(--white);
}

.home-why .home-section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.home-why .why-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.home-why .why-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.home-why .why-card i {
    font-size: 2.6rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    transition: var(--transition);
}

.home-why .why-card:hover i {
    transform: scale(1.15);
}

.home-why .why-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.home-why .why-card p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ====================================================
   6. CTA SECTION
   ==================================================== */
.home-cta {
    padding: 80px 0;
    background: var(--gray-50);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* wave decoration at top */
.home-cta .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.home-cta .wave-top svg {
    width: 100%;
    height: 60px;
    display: block;
}

.home-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.home-cta p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta .btn-cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    padding: 14px 44px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 8px 10px;
    box-shadow: 0 4px 16px var(--teal-glow);
    border: none;
}

.home-cta .btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--teal-glow);
}

.home-cta .btn-cta-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--teal);
    padding: 14px 44px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 8px 10px;
    border: 2px solid var(--teal);
}

.home-cta .btn-cta-secondary:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--teal-glow);
}

/* ====================================================
   7. RESPONSIVE BREAKPOINTS
   ==================================================== */

/* Large desktops */
@media (max-width: 1200px) {
    .home-hero .hero-title {
        font-size: 2.6rem;
    }

    .home-hero .hero-slide-img {
        height: 480px;
    }
}

/* Tablets landscape */
@media (max-width: 992px) {
    .home-hero .hero-slide-img {
        height: 420px;
    }

    .home-hero .hero-title {
        font-size: 2.2rem;
    }

    .home-hero .hero-subtitle {
        font-size: 1rem;
    }

    .home-stats .stat-number {
        font-size: 2.2rem;
    }

    .home-section-header h2 {
        font-size: 1.9rem;
    }

    .home-features {
        padding: 56px 0;
    }

    .home-products {
        padding: 56px 0;
    }

    .home-why {
        padding: 60px 0;
    }

    .home-cta {
        padding: 60px 0;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    .home-hero .hero-slide-img {
        height: 350px;
    }

    .home-hero .carousel-caption {
        bottom: 12%;
    }

    .home-hero .hero-title {
        font-size: 1.75rem;
    }

    .home-hero .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }

    .home-hero .hero-btn-primary,
    .home-hero .hero-btn-outline {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        width: 38px;
        height: 38px;
    }

    .home-hero .carousel-control-prev { left: 10px; }
    .home-hero .carousel-control-next { right: 10px; }

    .home-stats {
        padding: 32px 0;
    }

    .home-stats .stat-number {
        font-size: 1.9rem;
    }

    .home-stats .stat-label {
        font-size: 0.82rem;
    }

    .home-features {
        padding: 48px 0;
    }

    .home-products {
        padding: 48px 0;
    }

    .home-section-header h2 {
        font-size: 1.7rem;
    }

    .home-section-header p {
        font-size: 0.95rem;
    }

    .home-product-card .product-img-wrap {
        height: 190px;
    }

    .home-why {
        padding: 48px 0;
    }

    .home-cta h2 {
        font-size: 1.8rem;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    .home-hero .hero-slide-img {
        height: 280px;
    }

    .home-hero .carousel-caption {
        bottom: 8%;
        width: 95%;
    }

    .home-hero .hero-title {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .home-hero .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .home-hero .hero-btn-primary,
    .home-hero .hero-btn-outline {
        padding: 8px 18px;
        font-size: 0.82rem;
        margin: 0 4px 6px;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        width: 32px;
        height: 32px;
    }

    .home-hero .carousel-control-prev-icon,
    .home-hero .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }

    .home-stats .row {
        gap: 0;
    }

    .home-stats .stat-item {
        padding: 12px 8px;
    }

    .home-stats .stat-number {
        font-size: 1.6rem;
    }

    .home-stats .stat-label {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .home-features {
        padding: 36px 0;
    }

    .home-features .feature-card {
        padding: 24px 18px;
    }

    .home-features .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .home-products {
        padding: 36px 0;
    }

    .home-section-header {
        margin-bottom: 32px;
    }

    .home-section-header h2 {
        font-size: 1.5rem;
    }

    .home-product-card .product-img-wrap {
        height: 170px;
    }

    .home-product-card .product-body {
        padding: 16px;
    }

    .home-why {
        padding: 40px 0;
    }

    .home-why .why-card {
        padding: 24px 18px;
    }

    .home-cta {
        padding: 40px 0;
    }

    .home-cta h2 {
        font-size: 1.5rem;
    }

    .home-cta p {
        font-size: 0.92rem;
    }

    .home-cta .btn-cta-primary,
    .home-cta .btn-cta-secondary {
        padding: 12px 32px;
        font-size: 0.92rem;
        display: block;
        margin: 0 auto 10px;
        max-width: 280px;
    }
}

/* Small mobile */
@media (max-width: 440px) {
    .home-hero .hero-slide-img {
        height: 240px;
    }

    .home-hero .hero-title {
        font-size: 1.15rem;
    }

    .home-hero .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .home-hero .hero-btn-primary,
    .home-hero .hero-btn-outline {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        display: none;
    }
}
