/* =====================================================
   MEDOC - Home Page Styles
   ===================================================== */

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
    padding: 8rem 0 5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(245,166,35,0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    z-index: 1;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(245,166,35,0.05) 0%, transparent 35%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.04'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.7;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(7,61,72,0.4) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero__content {
    max-width: 820px;
}

.hero__label {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    background: rgba(245,166,35,0.12);
    border-radius: 50px;
    border: 1px solid rgba(245,166,35,0.3);
}

.hero__title {
    color: var(--text-light);
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero__title-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0.4;
    border-radius: 2px;
}

.hero__subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 660px;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero__trust-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll span {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    .hero__scroll { display: none; }
    .hero__cta .btn { width: 100%; }
}

/* --- SERVICES GRID --- */
.services-grid .service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card .card__icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.08) 100%);
    color: var(--primary);
}

.service-card:hover .card__icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    transform: scale(1.05);
}

/* --- FEATURES --- */
.features-grid {
    margin-top: 1rem;
}

.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feature__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.feature:hover .feature__icon {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.25);
}

.feature h4 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- PROCESS --- */
.process-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    margin-top: 2rem;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process-step__number {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.25);
    border: 5px solid var(--bg-white);
    position: relative;
    transition: all var(--transition);
}

.process-step:hover .process-step__number {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.35);
}

.process-step__content h3 {
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.process-step__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .process-grid::before { display: none; }
}

/* --- METRICS --- */
.metrics-section {
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.metric {
    text-align: center;
    padding: 2rem 1rem;
}

.metric__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.6rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.metric__label {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- TESTIMONIAL --- */
.testimonial-section {
    background: var(--bg-cream);
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial__quote svg {
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial__quote p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial__author strong {
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.testimonial__author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
