/* ============================================================
   DENTAL JOURNEY — Dr. Kishor Tanir Dental Website
   Scope: .dental-journey
   ============================================================ */

.dental-journey {
    background-color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.dental-journey::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(to top, #F7F9FC, transparent);
    pointer-events: none;
}

/* ---- Section Header ---- */
.dental-journey__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4.5rem;
    position: relative;
    z-index: 1;
}

.dental-journey__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background-color: #CCFBF1;
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.dental-journey__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.dental-journey__title-accent {
    background: linear-gradient(135deg, #1A73E8, #0D9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dental-journey__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #64748B;
    line-height: 1.75;
}

/* ---- Timeline ---- */
.dental-journey__timeline {
    position: relative;
    z-index: 1;
}

/* Horizontal connector line (desktop) */
.dental-journey__connector {
    position: absolute;
    top: 52px;
    left: calc(12.5% + 26px);
    right: calc(12.5% + 26px);
    height: 2px;
    background: linear-gradient(90deg, #1A73E8 0%, #0D9488 100%);
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
}

.dental-journey__connector.is-visible {
    transform: scaleX(1);
}

/* ---- Step ---- */
.dental-journey__step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.dental-journey__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Step number circle */
.dental-journey__step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A73E8 0%, #0D9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dental-journey__step:hover .dental-journey__step-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(26, 115, 232, 0.48);
}

/* Outer ring pulse */
.dental-journey__step-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(26, 115, 232, 0.2);
    animation: journeyPulseRing 2.5s ease-in-out infinite;
}

.dental-journey__step-circle::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(26, 115, 232, 0.12);
    animation: journeyRotate 12s linear infinite;
}

.dental-journey__step-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Step icon below number (alternate design) */
.dental-journey__step-icon {
    display: none; /* Show only circle number by default */
}

/* Step content */
.dental-journey__step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.625rem;
    letter-spacing: -0.015em;
}

.dental-journey__step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748B;
    line-height: 1.7;
    margin: 0;
}

/* Arrow connector (mobile) */
.dental-journey__step-arrow {
    display: none;
    width: 30px;
    height: 30px;
    margin: 0.875rem auto;
    color: #CBD5E1;
}

.dental-journey__step-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---- Bottom CTA ---- */
.dental-journey__cta-wrap {
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

.dental-journey__cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #64748B;
    margin-bottom: 1.25rem;
}

.dental-journey__cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1A73E8 0%, #0D9488 100%);
    padding: 0.9375rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.35);
}

.dental-journey__cta:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(26, 115, 232, 0.46);
}

.dental-journey__cta svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.dental-journey__cta:hover svg {
    transform: translateX(4px);
}

/* ---- Header Reveal ---- */
.dental-journey .reveal-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.dental-journey .reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Keyframes ---- */
@keyframes journeyPulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.12); opacity: 0.4; }
}

@keyframes journeyRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .dental-journey {
        padding: 4rem 0;
    }
    .dental-journey__header {
        margin-bottom: 3rem;
    }
    .dental-journey__connector {
        display: none;
    }
    .dental-journey__step {
        max-width: 400px;
        margin: 0 auto;
    }
    .dental-journey__step:not(:last-child) .dental-journey__step-arrow {
        display: flex;
        justify-content: center;
    }
    .dental-journey__step.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .dental-journey__step {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
