html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Hero (gradiente + overlay) */
.hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 40%);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

.hero-contact p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

/* Foto do médico no centro do header */
.hero-photo-wrapper {
    display: inline-block;
    position: relative;
}

.hero-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease;
}

    .hero-photo:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15);
    }

/* CTA button */
.btn-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(196, 69, 105, 0.25);
    transition: all .3s cubic-bezier(.2,.9,.2,1);
    border-radius: 50px;
}

    .btn-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(196, 69, 105, 0.35);
        background: linear-gradient(135deg, #ff7979 0%, #f06a7c 50%, #d05576 100%);
    }

    .btn-cta:active {
        transform: translateY(-1px);
    }

/* Glass card style for sections */
.glass-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px) saturate(150%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Feature cards */
.feature-card {
   background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all .3s cubic-bezier(.2,.9,.2,1);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }

.feature-icon {
    color: #2c5364;
}

/* Benefit list */
.benefit-list {
    margin-left: 1.5rem;
}

    .benefit-list li {
        margin-bottom: .75rem;
        color: #2d3436;
        font-size: 0.95rem;
    }

/* Contact info styling */
.contact-info-wrapper {
    padding: 1rem 0;
}

.contact-item {
    font-size: 1.1rem;
    color: #2d3436;
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all .3s cubic-bezier(.2,.9,.3,1);
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3436;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85rem;
    color: #636e72;
    font-weight: 500;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(16px) scale(.995);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Accessibility and typography tweaks */
h1, h2 {
    color: #07203a;
}

.lead {
    color: rgba(255,255,255,0.9);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-photo,
    .btn-cta,
    .testimonial-card,
    .reveal {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .hero {
        padding: 2.4rem 0;
    }

    .hero-photo {
        width: 110px;
        height: 110px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }
}
