/* ==========================================================================
   home.css — Raviva Dental
   Homepage-only sections: trust bar, about, services grid, why-choose-us,
   team teaser banner, and the reusable CTA banner (also used on inner pages).
   ========================================================================== */

/* ---------- Trust bar ---------- */
.trust-bar {
    background: rgba(85, 63, 23, 0.727);
    color: var(--cream);
    padding: 26px 20px;
}

.trust-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 22px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    flex: 1 1 200px;
}

.trust-item i {
    color: var(--cream);
    font-size: 20px;
}

/* ---------- About ---------- */
.about-section .wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.pearl-shape {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 88%;
    height: 88%;
    background: linear-gradient(160deg, var(--sand), var(--brown-mid));
    border-radius: var(--radius-pearl);
    box-shadow: var(--shadow-soft);
    animation: pearl-float 9s ease-in-out infinite;
}

@keyframes pearl-float {
    0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
    50% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

@media (prefers-reduced-motion: reduce) {
    .pearl-shape { animation: none; }
}

.pearl-badge {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 24px;
    padding: 30px 34px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 220px;
}

.pearl-badge .num {
    font-family: 'Fraunces', serif;
    font-size: 46px;
    color: var(--brown-deep);
    font-weight: 600;
    line-height: 1;
}

.pearl-badge .label {
    display: block;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 8px;
}

.about-copy .stat-row {
    display: flex;
    gap: 40px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.stat-row div strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: var(--dark);
}

.stat-row div span {
    font-size: 14px;
    color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services-section {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 22px;
    border: 1px solid var(--line);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.service-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mist);
    color: var(--brown-deep);
    font-size: 22px;
    margin-bottom: 22px;
}

.service-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--brown-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
}

.service-card a i { font-size: 12px; transition: 0.2s; }
.service-card a:hover i { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.why-section .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.why-list {
    display: grid;
    gap: 26px;
}

.why-item {
    display: flex;
    gap: 20px;
}

.why-item .service-icon {
    flex-shrink: 0;
    background: var(--cream);
}

.why-item h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 19px;
    margin-bottom: 6px;
    color: var(--dark);
}

.why-visual {
    background: var(--dark);
    border-radius: 28px;
    padding: 50px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-visual::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: var(--brown-mid);
    opacity: 0.18;
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.why-visual h3 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    position: relative;
}

.why-visual p {
    color: rgba(255,255,255,0.75);
    position: relative;
    margin-bottom: 28px;
}

.why-visual .btn-primary {
    position: relative;
}

/* ---------- Team teaser (homepage) ---------- */
.team-teaser { background: var(--cream); }

.teaser-card {
    background: var(--white);
    border-radius: 26px;
    padding: 50px 50px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.teaser-avatars {
    display: flex;
}

.teaser-avatars .avatar {
    width: 66px;
    height: 66px;
    font-size: 20px;
    margin-left: -16px;
    border: 3px solid var(--white);
}

.teaser-avatars .avatar:first-child { margin-left: 0; }

.teaser-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* .cta-banner styling now lives in assets/css/components.css since the
   component is shared across pages that don't load home.css. */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .about-section .wrap,
    .why-section .wrap {
        grid-template-columns: 1fr;
    }

    .why-visual { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-visual { min-height: 320px; }
}

@media (max-width: 900px) {
    .teaser-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }
    .teaser-avatars { justify-content: center; }
    .teaser-avatars .avatar:first-child { margin-left: -16px; }
    .teaser-links { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .trust-bar .wrap { justify-content: center; text-align: center; }
}
