/* Homepage (index.html) sections that replace the old banner, team, reviews
   and featured-treatments blocks. Every rule is scoped to .home sections so
   nothing here touches the rest of the page or the inner pages. */
.home {
    --navy: #032a6d;
    --blue: #306da4;
    --coral: #e87170;
    --coral-dark: #c94f4e;
    --ink: #2b3438;
    --text: #465055;
    --tint: #f3f6fb;
    --line: #dde3ec;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(3, 42, 109, .08);
    color: var(--text);
    font: 400 18px/1.6 Heebo, system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: left;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home h1, .home h2, .home h3 {
    font-family: "Lexend Deca", system-ui, sans-serif;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 .5em;
    text-transform: none;
    letter-spacing: -.01em;
}
.home h2 { font-size: clamp(26px, 3.2vw, 38px); }
.home p { margin: 0 0 1em; }
.home img { max-width: 100%; height: auto; display: block; }
.home a { color: var(--blue); }
.home a:hover { color: var(--navy); }
.home :focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.home ul { list-style: none; margin: 0; padding: 0; }
.home li { margin: 0; padding: 0; }
.home li::before { content: none; }

.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.h-section { padding: clamp(56px, 7vw, 96px) 0; }
.h-section--tint { background: var(--tint); }
.h-section--navy { background: var(--navy); color: #dfe7f3; }
.home.h-section--navy h2 { color: #fff; }
.home.h-section--navy p { color: #dfe7f3; }
.h-center { text-align: center; margin-top: 32px; }

.home .h-eyebrow {
    font: 500 14px/1.3 "Lexend Deca", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--coral-dark);
    margin: 0 0 12px;
}
.home.h-section--navy .h-eyebrow { color: #f4a3a2; }
.h-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.h-head p:last-child { margin-bottom: 0; }

/* Buttons */
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.h-actions--center { justify-content: center; margin-top: 40px; }
.home .h-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 12px 26px; border-radius: 999px;
    font: 500 17px/1.2 "Lexend Deca", sans-serif; text-decoration: none;
    border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.home .h-btn--primary { background: var(--coral-dark); color: #fff; }
.home .h-btn--primary:hover { background: var(--navy); color: #fff; }
.home .h-btn--ghost { border-color: var(--navy); color: var(--navy); }
.home .h-btn--ghost:hover { background: var(--navy); color: #fff; }
.home .h-btn--light { background: #fff; color: var(--navy); }
.home .h-btn--light:hover { background: var(--coral); color: #fff; }
.home .h-btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.home .h-btn--ghost-light:hover { background: #fff; color: var(--navy); }
.home .h-link { font-weight: 500; text-decoration: none; color: var(--blue); }
.home .h-link:hover { text-decoration: underline; }

/* Hero (replaces the old banner carousel and "Why Choose Us" block) */
.h-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.h-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.home.h-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 20px; }
.h-hero__kicker { display: block; font-size: 18px; letter-spacing: .02em; color: var(--blue); margin-bottom: 6px; }
.h-hero__quote { margin: 0 0 22px; padding: 0 0 0 18px; border-left: 4px solid var(--coral); }
.home .h-hero__quote p { font-size: 18px; font-style: italic; color: var(--ink); margin-bottom: 8px; }
.h-hero__quote cite { font: 500 15px "Lexend Deca", sans-serif; font-style: normal; color: var(--navy); }
.h-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.home .h-reasons li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; }
.home .h-reasons li::before {
    content: "" !important; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23306da4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
    box-shadow: 0 0 0 1px var(--line);
}
.home .h-reasons a { color: var(--ink); text-decoration: none; }
.home .h-reasons a:hover { color: var(--blue); text-decoration: underline; }
.h-hero__media { margin: 0; }
.h-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }

/* Services: "What brings you in?" with photos */
.h-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home .h-svc {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.home .h-svc:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.h-svc img { order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.h-svc__need { font: 400 19px/1.3 "Lexend Deca", sans-serif; color: var(--navy); padding: 16px 18px 4px; }
.h-svc__name { font-size: 15px; color: var(--blue); padding: 0 18px 16px; margin-top: auto; }
.h-svc__name::after { content: " \2192"; }
.home .h-svc--urgent { border-color: #f3c3c2; }
.home .h-svc--urgent .h-svc__name { color: var(--coral-dark); }
.home .h-svc--all { background: var(--navy); border-color: var(--navy); justify-content: center; }
.home .h-svc--all .h-svc__need { font-size: 24px; }
.home .h-svc--all .h-svc__need, .home .h-svc--all .h-svc__name { color: #fff; margin-top: 0; }

/* Dentists */
.h-docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.home .h-doc { display: flex; flex-direction: column; text-decoration: none; color: var(--text); height: 100%; }
.h-doc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); margin-bottom: 14px; transition: transform .2s; }
.home .h-doc:hover img { transform: scale(1.02); }
.h-doc__name { font: 400 18px/1.3 "Lexend Deca", sans-serif; color: var(--navy); }
.home .h-doc:hover .h-doc__name { text-decoration: underline; }
.h-doc__role { font-size: 15px; color: var(--coral-dark); margin-top: 4px; }
.h-doc__lang { font-size: 14px; margin-top: 2px; }

/* Reviews */
.h-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-review { margin: 0; height: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.h-stars { color: #ffc65c; letter-spacing: 3px; font-size: 18px; }
.h-review blockquote { margin: 12px 0 18px; font-size: 18px; color: #fff; flex: 1; }
.h-review figcaption { font-size: 15px; color: #b9c6dc; }

/* Responsive */
@media (max-width: 1100px) {
    .h-services, .h-docs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .h-hero__grid { grid-template-columns: 1fr; }
    .h-reviews { grid-template-columns: 1fr; }
    .h-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .h-hero__media { order: -1; }
    .h-reasons { grid-template-columns: 1fr; }
    .h-docs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .h-head { text-align: left; }
    .home .h-btn { flex: 1 1 100%; }
    /* services become compact rows: thumbnail left, text right */
    .h-services { grid-template-columns: 1fr; gap: 10px; }
    .home .h-svc { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; min-height: 84px; }
    .h-svc img { grid-row: 1 / 3; width: 96px; height: 0; min-height: 100%; aspect-ratio: auto; }
    .h-svc__need { font-size: 17px; padding: 12px 14px 0; align-self: end; }
    .h-svc__name { font-size: 14px; padding: 2px 14px 12px; }
    .home .h-svc--all { grid-template-columns: 1fr; }
    .home .h-svc--all .h-svc__need { font-size: 19px; }
}
@media (max-width: 420px) {
    .h-wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .home * { transition: none !important; }
}

/* Credential logo strip (Invisalign, Fotona, DOCS) under the hero */
.banner-logos {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 24px clamp(40px, 7vw, 96px);
    max-width: 1160px; margin: 0 auto; padding: 28px 20px;
    border: 0; border-top: 1px solid #dde3ec; border-bottom: 1px solid #dde3ec;
    background: #fff;
}
.banner-logos img { display: block; width: auto; max-width: 100%; margin: 0 !important; }
.banner-logos img[src*="pearl"] { height: 120px; }
.banner-logos img[src*="fotona"] { height: 64px; }
.banner-logos img[src*="docs"] { height: 100px; }
@media (max-width: 600px) {
    .banner-logos { gap: 20px 28px; padding: 20px 16px; }
    .banner-logos img[src*="pearl"] { height: 96px; }
    .banner-logos img[src*="fotona"] { height: 46px; }
    .banner-logos img[src*="docs"] { height: 78px; }
}

/* FAQ, location and closing call-to-action */
.h-wrap--narrow { max-width: 860px; }
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq details:first-child { border-top: 1px solid var(--line); }
.h-faq summary {
    list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
    font: 400 19px/1.35 "Lexend Deca", sans-serif; color: var(--navy);
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
    content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font-size: 28px; line-height: 1; color: var(--coral-dark); transition: transform .2s;
}
.h-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.h-faq details p { padding: 0 0 20px; margin: 0; }

.h-loc { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.home .h-loc h2 { font-size: clamp(26px, 3.2vw, 38px); }
.h-loc address { font-style: normal; font-size: 19px; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.h-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.h-hours dt { font-weight: 500; color: var(--ink); }
.h-hours dd { margin: 0; }
.h-loc__map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

.h-cta { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #dfe7f3; text-align: center; padding: clamp(56px, 7vw, 88px) 0; }
.home.h-cta h2 { color: #fff; }
.home.h-cta p { color: #dfe7f3; }

@media (max-width: 900px) {
    .h-loc { grid-template-columns: 1fr; }
    .h-loc__map iframe { height: 320px; }
}

/* Special offers: rounded cards instead of square coupons */
.h-offers { padding: clamp(40px, 5vw, 64px) 0; }
.h-offers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1040px; }
.home .h-offer {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 24px;
    padding: 28px 30px; border-radius: 24px; text-decoration: none;
    background: linear-gradient(135deg, var(--navy) 0%, #12458f 100%); color: #dfe7f3;
    box-shadow: 0 10px 30px rgba(3, 42, 109, .18);
    transition: transform .18s, box-shadow .18s;
}
.home .h-offer::after { /* soft decorative circle */
    content: ""; position: absolute; z-index: -1; right: -70px; top: -70px;
    width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07);
}
.home .h-offer--alt { background: linear-gradient(135deg, #c94f4e 0%, #e87170 100%); color: #fff; box-shadow: 0 10px 30px rgba(201, 79, 78, .25); }
.home .h-offer:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(3, 42, 109, .24); color: #fff; }
.h-offer__badge {
    flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
    background: #fff; color: var(--coral-dark);
    font: 500 22px/1 "Lexend Deca", sans-serif; text-transform: uppercase; letter-spacing: .04em;
    box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
.h-offer--alt .h-offer__badge { color: var(--navy); }
.h-offer__body { display: flex; flex-direction: column; gap: 4px; }
.h-offer__kicker { font: 500 13px/1.3 "Lexend Deca", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.h-offer__title { font: 400 24px/1.2 "Lexend Deca", sans-serif; color: #fff; }
.h-offer__text { font-size: 16px; line-height: 1.45; }
.h-offer__cta { margin-top: 8px; font: 500 15px "Lexend Deca", sans-serif; color: #fff; }
.h-offer__cta::after { content: " \2192"; transition: margin .15s; }
.home .h-offer:hover .h-offer__cta::after { margin-left: 4px; }
@media (max-width: 860px) {
    .h-offers__grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 420px) {
    .home .h-offer { gap: 16px; padding: 22px 20px; border-radius: 20px; }
    .h-offer__badge { width: 68px; height: 68px; font-size: 17px; }
    .h-offer__title { font-size: 21px; }
}

/* ---------- Flexible Payment Options: rounded cards like the offers ---------- */
#finances .flex-ed { gap: 28px; padding: 0 16px; }
#finances .flex-ed > a {
    flex: 1 1 0;
    max-width: 479px;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate; /* keeps the image inside the rounded corners in Safari */
    box-shadow: 0 10px 30px rgba(3, 42, 109, .16);
    transition: transform .2s, box-shadow .2s;
}
#finances .flex-ed > a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(3, 42, 109, .24); }
#finances .flex-ed figure { margin: 0; }
#finances .flex-ed img { display: block; width: 100%; height: auto; }
#finances .flex-ed div { padding: 16px 12px; font-size: 16px; }
#finances .flex-ed > span { border: 6px solid #fff; box-shadow: 0 6px 18px rgba(3, 42, 109, .18); }
@media (max-width: 1080px) {
    #finances .flex-ed > span { width: 92px; height: 92px; font-size: 42px; }
    #finances .flex-ed h3 { font-size: 21px; padding: 0 56px 0 16px; box-sizing: border-box; }
    #finances .flex-ed > a:nth-of-type(2) h3 { padding: 0 16px 0 56px; }
}
/* Phones: stacked cards with the button floating over the photo as a pill */
@media (max-width: 701px) {
    #finances .flex-ed { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    #finances .flex-ed > a { flex: none; width: 100%; max-width: 480px; border-radius: 20px; }
    #finances .flex-ed figure { margin: 0 -100px; }
    #finances .flex-ed div { border-radius: 999px; padding: 14px 24px; bottom: 28px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
    #finances .flex-ed h3 { bottom: 96px; }
    #finances .flex-ed > a:nth-of-type(2) h3 { bottom: 116px; } /* its button wraps to two lines */
    #finances .flex-ed > span { width: 66px; height: 66px; font-size: 30px; border-width: 4px; }
}
