/* Styles extracted from `index2.html` */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #2b3f4a;
    line-height: 1.5;
}

/* cores da logo */
:root {
    --primary-light: #95C6CC; /* azul suave */
    --primary-soft: #F4929E; /* rosé delicado */
    --primary-soft-translucent: #f4929e20;
    --text-dark: #1e3d44;
    --text-soft: #5a737b;
    --border-light: #e0edef;
}

/* tipografia limpa */
h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 350;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header bem clean */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    background: white;
}

.header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* logo (W x H) */
.clinic-logo {
    width: 56px; /* W */
    height: 56px; /* H */
    object-fit: contain;
}

/* bolinhas com as cores da logo (sutis) */
.logo-marker {
    display: flex;
    gap: 6px;
}

.marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.marker-1 {
    background-color: var(--primary-light);
}

.marker-2 {
    background-color: var(--primary-soft);
}

.clinic-name {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.1;
}

.clinic-name span {
    font-weight: 400;
    color: var(--primary-soft);
    letter-spacing: -0.01em;
}

.tagline, .clinic-tagline {
    font-size: 1.75rem;
    color: var(--primary-soft);
    font-weight: 600;
}

/* navegação discreta */
nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1.05rem;
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav-links a:hover {
    border-bottom-color: var(--primary-soft);
}

/* mobile hamburger button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    margin-left: auto;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: transform 0.2s, opacity 0.2s;
}

/* when nav is open, change hamburger visually (optional) */
.header-content.nav-open .menu-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.header-content.nav-open .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}
.header-content.nav-open .menu-toggle .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Banner (carousel) */
.banner {
    padding: 0;
    border-bottom: 0;
}

.banner-carousel {
    position: relative;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
}

.banner-carousel .carousel-inner,
.banner-carousel .carousel-item {
    height: 100%;
}

.banner-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.banner-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.40) 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.banner-content h1,
.banner-content p {
    color: white;
}

.banner-content h1 {
    text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.banner-content p {
    color: rgba(255,255,255,0.92);
    max-width: 640px;
    margin: 18px 0 26px;
    font-size: 1.15rem;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.banner-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 18px;
}

.banner-carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.85);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.banner-carousel .carousel-indicators .active {
    background-color: var(--primary-soft);
}

/* hero simples com leve toque das cores */
.hero {
    padding: 64px 0 48px 0;
    background: linear-gradient(145deg, #fcfcfc 0%, #ffffff 100%);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 300px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-soft);
    margin: 24px 0 32px;
    max-width: 550px;
}

.hero-highlight {
    background: var(--primary-soft-translucent);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #583f44;
    border: 1px solid #f4929e30;
}

.btn {
    display: inline-block;
    background-color: var(--primary-light);
    color: #1d4148;
    padding: 14px 38px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 450;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: #95C6CD; /* updated primary blue */
    border-color: #95C6CD;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.15s;
}

.btn-primary:hover {
    background-color: #7fb0b6; /* slightly stronger/darker blue on hover */
    border-color: #7fb0b6;
    transform: translateY(-2px);
}

.btn-success {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.btn-success:hover {
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.5);
}

.btn-soft {
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    margin-left: 0;
}

.btn-soft:hover {
    border-color: var(--primary-soft);
}

.btn:hover {
    background-color: #85b7bd;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-image {
    flex: 0 0 280px;
    height: 260px;
    border-radius: 140px 140px 40px 40px;
    background: linear-gradient(145deg, var(--primary-light), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 35px -10px rgba(146, 186, 192, 0.3);
}

.hero-image svg {
    width: 180px;
    height: auto;
    opacity: 0.85;
}

.shadow {
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.4) !important;
}

/* seções */
section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
    border-bottom: none;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--text-soft);
    font-size: 1.2rem;
}

/* cards de especialidades */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 28px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr; /* 1 per row on small screens */
    }
}

/* New: service cards with image + text */
.service-card {
    padding: 0; /* media + body handle spacing */
    background: linear-gradient(135deg, rgba(149,198,204,0.42) 0%, rgba(255,227,230,0.32) 100%);
    border-radius: 28px;
    border: 1px solid rgba(149,198,204,0.35);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 26px rgba(17, 40, 47, 0.14);
    overflow: hidden; /* clip zooming image */
    height: 100%;
}

.service-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ffffff;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.service-card__body {
    padding: 24px 24px 28px;
}

.service-card__body p {
    color: var(--text-soft);
    margin: 0;
}

/* Hover: when mouse is over image OR text, zoom the image and lift the card */
.service-card:hover {
    border-color: rgba(149,198,204,0.7);
    box-shadow: 0 36px 70px -18px rgba(0, 0, 0, 0.45), 0 16px 38px rgba(15, 33, 38, 0.18);
    transform: translateY(-10px);
}

.service-card:hover .service-card__media img {
    transform: scale(1.5);
}

/* Keep legacy .card styling (used in testimonials etc.) */
.card {
    padding: 32px 24px;
    /* stronger, still soft gradient inspired by the member-photo tone */
    background: linear-gradient(135deg, rgba(149,198,204,0.18) 0%, rgba(255,227,230,0.12) 100%);
    border-radius: 28px;
    border: 1px solid rgba(149,198,204,0.35);
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonials (depoimentos) should use plain white cards */
#depoimentos .card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

#depoimentos .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #1e4a54;
    font-size: 28px;
}

.card p {
    color: var(--text-soft);
}

/* equipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    justify-content: center;
    align-items: start;
    margin-top: 22px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove the rectangular card box; keep a clean, modern profile tile */
.team-member {
    text-align: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: visible;
}

.team-member:hover {
    transform: translateY(-6px);
}

.member-photo {
    width: 168px;
    height: 168px;
    border-radius: 999px;
    margin: 0 auto 16px;
    padding: 5px; /* thicker ring */
    background: linear-gradient(135deg, rgba(149,198,204,0.95) 0%, rgba(244,146,158,0.85) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    position: relative;
}

.member-photo::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(149,198,204,0.22), rgba(255,255,255,0) 60%),
                radial-gradient(circle at 70% 20%, rgba(244,146,158,0.16), rgba(255,255,255,0) 55%);
    filter: blur(2px);
    z-index: -1;
}

.member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    background: #ffffff;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-member:hover .member-photo img {
    transform: scale(1.06);
}

.team-member h4 {
    font-size: 1.3rem;
    font-weight: 650;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.team-member p {
    color: var(--text-soft);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 576px) {
    .member-photo {
        width: 190px;
        height: 190px;
    }
}

/* contato */
.contact-line {
    display: flex;
    flex-wrap: wrap;
    background: #f8fbfc;
    border-radius: 48px;
    padding: 48px 40px;
    border: 1px solid var(--border-light);
    align-items: center;
    justify-content: space-between;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.15rem;
}

.contact-item span:first-child {
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-soft);
    font-size: 24px;
    box-shadow: 0 6px 12px #95c6cc20;
}

.map-mock {
    background: #dbeef2;
    width: 260px;
    height: 140px;
    border-radius: 80px 20px 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #386d78;
    font-weight: 300;
    border: 2px dashed var(--primary-light);
}

/* footer */
footer {
    padding: 32px 0;
    color: var(--text-soft);
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-colors {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-light);
}

.dot.rose {
    background: var(--primary-soft);
}

a {
    color: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 8px 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    text-align: center;
    color: var(--white, #fff);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 18px;
    color: #ffffff;
}

.hero-content p { display: none; }

/* header brand lockup image (name + tagline as one image */
.brand-lockup {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 576px) {
    .brand-lockup {
        height: 44px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .banner-carousel {
        height: 62vh;
        min-height: 360px;
    }

    .banner-content {
        align-items: flex-end;
        padding-bottom: 26px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Small screens adjustments requested by user:
   - Logo 30% smaller
   - "Clínica Odontológica Integrada" (tagline) smaller
   - Banner with smaller height
   - All headings smaller
   These changes should only apply on small screens (max-width: 576px).
*/
@media (max-width: 576px) {
    /* Reduce the logo size by ~30% (original inline width in HTML is 120px, so 30% smaller -> 84px)
       Use !important to override inline width on the image element. */
    .clinic-logo {
        width: 84px !important;
        height: auto !important;
    }

    /* Keep logo and hamburger on the same row, hamburger aligned right */
    .header-content {
        padding: 8px 12px;
        flex-direction: row; /* keep on one line */
        align-items: center;
        justify-content: flex-start;
        gap: 8px 12px;
        position: relative; /* for absolute dropdown nav */
    }

    .logo-area {
        gap: 8px;
        align-items: center;
    }

    /* Make the clinic name and tagline smaller */
    .clinic-name {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .clinic-name .clinic-main,
    .clinic-name .clinic-tagline {
        font-size: 1.75rem; /* Unified font size */
        font-weight: 500;
    }

    /* Specific tagline sizing and remove left indent so it's aligned under the main name */
    .clinic-tagline,
    .clinic-name .clinic-tagline {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        margin-top: 2px;
        color: var(--primary-soft);
        font-weight: 600;
    }

    /* show hamburger on small screens */
    .menu-toggle {
        display: block;
        margin-left: auto; /* push to right */
        z-index: 30;
    }

    /* Hide nav by default on small screens; will be shown when .nav-open class is present
       The nav will appear as a full-width vertical dropdown under the header */
    .header-content nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
        padding: 12px 16px 18px;
        z-index: 20;
    }

    .header-content.nav-open nav {
        display: block;
    }

    .nav-links {
        gap: 6px; /* vertical spacing will be controlled by padding on links */
        display: flex;
        flex-direction: column; /* vertical list */
        align-items: stretch;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 0.95rem; /* slightly larger for tappable targets */
        padding: 10px 12px;
        display: block;
        border-radius: 8px;
        color: var(--text-dark);
    }

    .nav-links a:hover {
        background: var(--primary-soft-translucent);
    }

    /* Make the banner shorter on small screens and crop images by keeping object-fit:cover + object-position */
    .banner-carousel {
        height: 40vh; /* reduced height */
        min-height: 220px;
        overflow: hidden;
    }

    .banner-carousel .carousel-item img {
        object-position: center top; /* crop from top/center for better framing */
    }

    /* Reduce heading sizes to keep layout tidy on small screens */
    h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Hero (centered large title) should also be smaller */
    .hero-content h1 {
        font-size: 1.9rem;
    }

    /* Slightly reduce spacing on sections for small screens */
    section {
        padding: 40px 0;
    }
}

/* Testimonial Carousel Controls */
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    filter: invert(1);
}

@media (max-width: 576px) {
    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        width: auto; /* Remove the default width */
    }

    #testimonialCarousel .carousel-control-prev {
        left: 0px; /* Move to the left */
    }

    #testimonialCarousel .carousel-control-next {
        right: 0px; /* Move to the right */
    }
}
