/* =========================================================
   Dr Hlokwe T Dental Studio
   Theme layer on top of Bootstrap 5.3 — colours, type, a few details.
   ========================================================= */

:root {
    /* Logo colours */
    --navy: #2e3094;        /* logo dark blue */
    --sky: #01adef;         /* logo sky blue */
    --teal: #16a999;        /* logo teal */
    --gold: #cfab6b;        /* logo gold */
    /* Deeper shades of the logo colours, for small text (readable on white) */
    --navy-ink: #1e1f63;
    --teal-text: #0b7d71;
    --sky-text: #0072b1;
    --gold-text: #9a7533;
    /* Soft tints */
    --teal-soft: #e5f6f4;
    --sky-soft: #e6f7fe;
    --cream: #faf8f4;
    --sand: #f1ece3;
    --ink: #242838;
    --muted: #5d6273;
    --line: #e6e1d8;
    --wa: #1fa855;
    --wa-dark: #128c7e;

    --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --heading-font: "Raleway", "Segoe UI", sans-serif;
    --nav-font: "Lato", "Segoe UI", sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--cream);
    --bs-primary: var(--navy);
    --bs-primary-rgb: 46, 48, 148;
    --bs-link-color: var(--sky-text);
    --bs-link-color-rgb: 0, 114, 177;
    --bs-link-hover-color: var(--navy);
    --bs-link-hover-color-rgb: 46, 48, 148;
    --bs-border-color: var(--line);
    --bs-border-radius: .5rem;
    --bs-border-radius-lg: .75rem;
    --bs-secondary-color: var(--muted);
}

body { font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 84px; }
@media (min-width: 992px) { html { scroll-padding-top: 122px; } }

h1, h2, h3, .serif {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.005em;
}
h4, h5, h6 { font-weight: 700; color: var(--navy); }
.display-5 { font-weight: 800; line-height: 1.12; }
.display-6 { font-weight: 700; }
.lead { color: var(--muted); font-size: 1.15rem; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }

.kicker {
    font-family: var(--nav-font); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal-text); margin-bottom: .75rem;
}
.section { padding: 5.5rem 0; }
.bg-white-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-sand { background: var(--sand); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--nav-font); font-weight: 700; border-radius: .5rem; padding: .7rem 1.35rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-primary {
    --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy-ink); --bs-btn-hover-border-color: var(--navy-ink);
    --bs-btn-active-bg: var(--navy-ink); --bs-btn-active-border-color: var(--navy-ink);
}
.btn-outline-primary {
    --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy);
}
.btn-whatsapp {
    --bs-btn-color: #fff; --bs-btn-bg: var(--wa); --bs-btn-border-color: var(--wa);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--wa-dark); --bs-btn-hover-border-color: var(--wa-dark);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--wa-dark); --bs-btn-active-border-color: var(--wa-dark);
}
.btn:focus-visible { box-shadow: 0 0 0 .2rem rgba(207,171,107,.45); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow i { font-size: .8em; margin-left: .3rem; transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Topbar & navbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand img { height: 56px; width: auto; }
.site-nav .nav-link {
    position: relative; font-family: var(--nav-font); font-weight: 700; color: var(--ink);
    padding: .6rem .9rem !important;
}
.site-nav .nav-link::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem;
    height: 2px; background: var(--teal);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--navy); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
@media (max-width: 991.98px) {
    .site-nav .nav-link::after { right: auto; width: 32px; }
    .site-nav .navbar-collapse { padding-bottom: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 30% center; border-radius: .75rem; }
.hero-quote {
    position: absolute; left: -2rem; bottom: 2rem; max-width: 300px;
    background: #fff; border: 1px solid var(--line); border-radius: .75rem;
    padding: 1rem 1.15rem; font-size: .95rem; box-shadow: 0 10px 30px -18px rgba(46,48,148,.45);
}
.hero-quote .stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }
@media (max-width: 991.98px) { .hero-quote { position: relative; z-index: 1; left: auto; bottom: auto; max-width: none; margin: -2rem 1rem 0; } }
.hero-places { font-size: .95rem; color: var(--muted); }
.hero-places i { color: var(--teal); }

/* =========================================================
   Enhancements
   ========================================================= */
.site-nav { transition: box-shadow .25s ease; }
.site-nav.scrolled { box-shadow: 0 6px 20px -14px rgba(46,48,148,.45); }

/* Hero: soft background band + offset frame behind the photo */
.hero {
    background:
        linear-gradient(90deg, transparent 0 58%, var(--sand) 58% 100%);
}
@media (max-width: 991.98px) { .hero { background: var(--cream); } }
.hero-photo::before {
    content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 2px solid var(--teal); border-radius: .75rem; opacity: .35; z-index: 0;
}
.hero-photo picture { position: relative; z-index: 1; display: block; }
.hero-photo img { box-shadow: 0 24px 50px -30px rgba(46,48,148,.6); }
.hero-quote { z-index: 2; }
@media (max-width: 991.98px) { .hero-photo::before { inset: .75rem -.5rem -.5rem .75rem; } }

.hero-facts li { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; color: var(--navy-ink); }
.hero-facts i {
    width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal-text); font-size: .85rem;
}

/* Quick strip hover */
.quick-strip .col-md-4 { transition: background .2s; }
.quick-strip .col-md-4:hover { background: var(--cream); }

/* About: framed photo + pull quote */
.framed { position: relative; }
.framed::before {
    content: ""; position: absolute; inset: -1.25rem 1.25rem 1.25rem -1.25rem;
    background: var(--sand); border-radius: .75rem; z-index: 0;
}
.framed picture { position: relative; z-index: 1; display: block; }
@media (max-width: 991.98px) { .framed::before { inset: -.75rem .75rem .75rem -.75rem; } }
.pull-quote { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; }
.pull-quote blockquote { font-family: var(--heading-font); font-style: italic; font-size: 1.2rem; color: var(--navy-ink); line-height: 1.5; }
.pull-quote figcaption { font-size: .9rem; color: var(--muted); }

/* Treatments as soft panels */
.treatment {
    background: var(--cream); border: 1px solid var(--line); border-radius: .75rem;
    padding: 2rem 1.75rem; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.treatment:hover { border-color: rgba(22,169,153,.45); box-shadow: 0 18px 40px -28px rgba(46,48,148,.5); transform: translateY(-3px); }
.treatment ul { flex: 1; }
.treatment .t-icon {
    width: 3rem; height: 3rem; border-radius: .6rem; display: grid; place-items: center;
    background: var(--navy); color: #fff; font-size: 1.2rem; margin-bottom: 1.1rem;
}
.treatment h3 { border-bottom-color: var(--line) !important; }
.treatment ul li { position: relative; padding-left: 1.5rem !important; }
.treatment ul li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: .6rem; font-size: .75rem; color: var(--teal);
}
.treatment ul li:last-child { border-bottom: 0 !important; }

/* Practice cards */
.practice-card { border-top: 4px solid var(--teal) !important; transition: box-shadow .2s, transform .2s; }
.practice-card:hover { box-shadow: 0 18px 40px -28px rgba(46,48,148,.5); transform: translateY(-3px); }

/* Reviews: give the quotes a little breathing room on white */
.quote-card { padding-top: .25rem; padding-bottom: .25rem; }

/* Booking card header tint */
.booking-card { border-radius: .75rem; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .treatment:hover, .practice-card:hover { transform: none; }
}

/* Quick contact strip */
.quick-strip .col-md-4 + .col-md-4 { border-left: 1px solid var(--line); }
@media (max-width: 767.98px) { .quick-strip .col-md-4 + .col-md-4 { border-left: 0; border-top: 1px solid var(--line); } }
.quick-strip .label { display: block; font-size: .8rem; color: var(--muted); }
.quick-strip a { font-weight: 700; color: var(--navy-ink); text-decoration: none; font-size: 1.1rem; }
.quick-strip a:hover { color: var(--sky-text); }
.quick-strip i { color: var(--teal); font-size: 1.2rem; width: 1.5rem; }

/* ---------- About ---------- */
.about-photo { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; border-radius: .75rem; }
.focus-list li { padding: .35rem 0; }
.focus-list i { color: var(--teal); margin-right: .55rem; }

/* ---------- Treatments ---------- */
.treatment h3 { font-size: 1.45rem; padding-bottom: .9rem; border-bottom: 2px solid var(--sky); margin-bottom: .5rem; }
.treatment ul li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Booking ---------- */
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 2.75rem; margin-bottom: 1.1rem; }
.steps-list li::before {
    content: counter(s); position: absolute; left: 0; top: .1rem;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--teal-soft); color: var(--teal-text); font-weight: 800; font-size: .9rem;
    display: grid; place-items: center;
}
.mascot { width: 104px; height: auto; }
.booking-card { border-color: var(--line); }
.booking-card .card-header { background: var(--cream); border-bottom-color: var(--line); }
.booking-card .nav-tabs .nav-link { font-weight: 700; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .9rem 1.1rem; }
.booking-card .nav-tabs .nav-link.active { color: var(--navy); background: transparent; border-bottom-color: var(--teal); }
.booking-card .nav-tabs { border-bottom: 0; }
.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.form-control, .form-select { padding: .65rem .85rem; border-color: #d9d3c7; }
.form-control:focus, .form-select:focus { border-color: var(--sky); box-shadow: 0 0 0 .2rem rgba(1,173,239,.15); }

.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message {
    display: none; border-radius: .5rem; padding: .75rem 1rem; font-size: .95rem; margin-bottom: 1rem;
}
.php-email-form .loading { background: var(--sky-soft); color: var(--navy); }
.php-email-form .error-message { background: #fdecec; color: #a2271c; }
.php-email-form .sent-message { background: #e8f6ed; color: #17663a; }
.php-email-form .d-block { display: block !important; }

/* ---------- Testimonials ---------- */
.quote-card { border-left: 3px solid var(--teal); padding-left: 1.4rem; }
.quote-card blockquote p { font-family: var(--heading-font); font-size: 1.2rem; line-height: 1.55; color: var(--navy-ink); }
.quote-card figcaption { font-size: .95rem; color: var(--muted); }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* ---------- Practices ---------- */
.practice-card { border-color: var(--line); }
.practice-card .card-body { display: flex; flex-direction: column; }
.practice-card address { flex: 1; color: var(--muted); font-style: normal; }
.practice-card .area { font-size: .85rem; color: var(--teal-text); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.faq .accordion-button { font-weight: 700; color: var(--navy-ink); background: transparent; padding: 1.15rem 0; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--teal-text); }
.faq .accordion-button:focus { box-shadow: none; outline: 2px solid rgba(1,173,239,.35); outline-offset: 2px; }
.faq .accordion-item { background: transparent; border-color: var(--line); }
.faq .accordion-body { padding: 0 0 1.25rem; color: var(--muted); }

/* ---------- Closing banner ---------- */
.closing { background: var(--navy); color: rgba(255,255,255,.85); border-radius: .75rem; overflow: hidden; }
.closing h2 { color: #fff; }
.closing picture { display: block; height: 100%; }
.closing img { display: block; width: 100%; height: 100%; min-height: 280px; max-height: 460px; object-fit: cover; object-position: center 25%; }

/* ---------- Contact page ---------- */
.page-head { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { font-size: .9rem; }
.breadcrumb a { text-decoration: none; }
.contact-list .list-group-item { background: transparent; padding: 1.1rem 0; border-color: var(--line); }
.contact-list .label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-list .value { color: var(--ink); text-decoration: none; }
.contact-list a.value:hover { color: var(--sky-text); }
.contact-list address { margin: 0; color: var(--ink); }
.contact-list .practice + .practice { margin-top: .9rem; }
.contact-list .practice strong { font-weight: 700; color: var(--navy-ink); }
.map-frame { border: 0; width: 100%; height: 100%; }
.map-pills .nav-link { color: var(--muted); font-weight: 700; border-radius: .5rem; }
.map-pills .nav-link.active { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer h2 { font-family: var(--bs-body-font-family); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-logo { height: 64px; background: #fff; border-radius: .5rem; padding: 4px; }
.site-footer .f-label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: .5rem; margin-right: .4rem; }
.site-footer .social a:hover { border-color: var(--gold); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 22px; z-index: 1045;
    width: 46px; height: 46px; border-radius: .5rem;
    display: grid; place-items: center; background: var(--navy); color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal); color: #fff; }
@media (max-width: 767.98px) { .back-to-top { right: 14px; bottom: 18px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

@media (max-width: 575.98px) {
    .hero .btn-lg { width: 100%; justify-content: center; }
    .hero-facts { gap: .75rem 1.25rem !important; }
    .hero-facts li { font-size: .9rem; }
}

/* ---------- Reviews as a comment thread ---------- */
.comments { display: grid; gap: 1.25rem; }
.comment { display: flex; gap: .9rem; align-items: flex-start; }
.comment .avatar {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff;
}
.comment .avatar.a1 { background: var(--navy); }
.comment .avatar.a2 { background: var(--teal); }
.comment .avatar.a3 { background: var(--gold); }
.comment .bubble {
    position: relative; flex: 1;
    background: var(--cream); border: 1px solid var(--line);
    border-radius: 0 .9rem .9rem .9rem; padding: .9rem 1.15rem 1rem;
}
.comment .bubble::before {
    content: ""; position: absolute; left: -9px; top: -1px;
    border-top: 12px solid var(--line); border-left: 9px solid transparent;
}
.comment .bubble::after {
    content: ""; position: absolute; left: -7px; top: 0;
    border-top: 11px solid var(--cream); border-left: 8px solid transparent;
}
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .35rem; }
.comment-head strong { color: var(--navy-ink); }
.comment-head .stars { color: var(--gold); font-size: .8rem; letter-spacing: 1px; }
.comment p { color: var(--ink); line-height: 1.6; }
.comment:nth-child(even) { margin-left: 2.5rem; }
@media (max-width: 575.98px) { .comment:nth-child(even) { margin-left: 0; } }

/* ---------- Menu toggle: bars when closed, X when open ---------- */
.menu-toggle {
    position: relative; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--line) !important; border-radius: .5rem; background: #fff;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle:focus { box-shadow: none; }
.menu-toggle:focus-visible { box-shadow: 0 0 0 .2rem rgba(1,173,239,.3); }
.menu-toggle .bar {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy-ink);
    transition: transform .28s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy) !important; }
.menu-toggle[aria-expanded="true"] .bar { background: #fff; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Review dropdown */
.review-menu { border-color: var(--line); border-radius: .6rem; padding: .4rem; min-width: 260px; }
.review-menu .dropdown-header { font-family: var(--nav-font); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.review-menu .dropdown-item { border-radius: .4rem; padding: .55rem .75rem; font-weight: 500; }
.review-menu .dropdown-item:hover, .review-menu .dropdown-item:focus { background: var(--teal-soft); color: var(--navy-ink); }

/* =========================================================
   Hero carousel
   ========================================================= */
.hero-carousel .carousel-item { position: relative; min-height: 640px; background: var(--navy); }
.hero-carousel .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .slide-shade { position: absolute; inset: 0; }
.slide-right .slide-shade { background: linear-gradient(270deg, rgba(46,48,148,.92) 0%, rgba(46,48,148,.78) 38%, rgba(46,48,148,.15) 70%, rgba(46,48,148,0) 100%); }
.slide-left .slide-shade  { background: linear-gradient(90deg,  rgba(46,48,148,.92) 0%, rgba(46,48,148,.78) 38%, rgba(46,48,148,.15) 70%, rgba(46,48,148,0) 100%); }
.hero-carousel .slide-content {
    position: relative; z-index: 2; min-height: 640px;
    display: flex; align-items: center; padding-top: 3rem; padding-bottom: 4.5rem;
}
.slide-right .slide-content { justify-content: flex-end; }
.hero-carousel .slide-text { max-width: 560px; color: rgba(255,255,255,.88); }
.hero-carousel .slide-text h1, .hero-carousel .slide-text h2 { color: #fff; }
.hero-carousel .kicker { color: #9ee8de; }  /* light tint of the logo teal, readable on dark blue */
.hero-carousel .slide-lead { font-size: 1.15rem; line-height: 1.65; color: rgba(255,255,255,.85); }
.hero-carousel .slide-note a { color: #fff; }
.hero-carousel .hero-facts li { color: #fff; }
.hero-carousel .hero-facts i { background: rgba(255,255,255,.14); color: #9ee8de; }
.hero-carousel .btn-outline-light { --bs-btn-hover-color: var(--navy-ink); }
.hero-carousel .btn-light { --bs-btn-color: var(--navy-ink); }

.hero-carousel .carousel-indicators { margin-bottom: 1.5rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 2px; border: 0; opacity: .45; }
.hero-carousel .carousel-indicators .active { opacity: 1; background: #fff; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 6%; opacity: 1; z-index: 3; }
.hero-carousel .ctrl {
    width: 46px; height: 46px; border-radius: .5rem; display: grid; place-items: center;
    background: rgba(255,255,255,.14); color: #fff; border: 0;
    transition: background .2s;
}
.hero-carousel .carousel-control-prev:hover .ctrl, .hero-carousel .carousel-control-next:hover .ctrl { background: rgba(255,255,255,.3); }
@media (max-width: 1199.98px) { .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; } }

/* Phones: photo on top, text below on navy (keeps faces visible) */
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item { min-height: 0; }
    .hero-carousel picture { display: block; }
    .hero-carousel .slide-img { position: static; height: 300px; }
    .slide-right .slide-img { object-position: 18% 30% !important; }
    .slide-left .slide-img { object-position: 62% 25% !important; }
    .slide-right .slide-shade, .slide-left .slide-shade {
        inset: auto 0 auto 0; top: 220px; height: 80px;
        background: linear-gradient(180deg, rgba(46,48,148,0) 0%, var(--navy) 100%);
    }
    .hero-carousel .slide-content { min-height: 0; display: block; padding-top: 1.25rem; padding-bottom: 3.5rem; }
    .hero-carousel .display-5 { font-size: 1.9rem; }
    .hero-carousel .slide-lead { font-size: 1rem; }
    .hero-carousel .btn-lg { width: 100%; }
    .hero-carousel .carousel-indicators { margin-bottom: 1.1rem; }
}

/* Top bar lives inside the sticky header so both stay visible while scrolling */
.site-nav .topbar { border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav.scrolled .topbar { padding-top: .35rem !important; padding-bottom: .35rem !important; }
.site-nav .topbar { transition: padding .2s ease; }

/* =========================================================
   Animations & transitions
   ========================================================= */
:root { --ease: cubic-bezier(.22,.61,.36,1); }

/* Scroll-in reveal (only when JS is running) */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .framed.reveal { transform: translateX(-24px); }
.anim .framed.reveal.in { transform: none; }
.anim .closing.reveal { transform: scale(.98); }
.anim .closing.reveal.in { transform: none; }

/* Hero carousel: slow zoom on the photo + staggered text entrance */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-carousel .carousel-item.active .slide-img { animation: kenburns 9s ease-out both; }
.hero-carousel .carousel-item.active .slide-text > * { animation: riseIn .8s var(--ease) both; }
.hero-carousel .carousel-item.active .slide-text > *:nth-child(1) { animation-delay: .15s; }
.hero-carousel .carousel-item.active .slide-text > *:nth-child(2) { animation-delay: .3s; }
.hero-carousel .carousel-item.active .slide-text > *:nth-child(3) { animation-delay: .45s; }
.hero-carousel .carousel-item.active .slide-text > *:nth-child(4) { animation-delay: .6s; }
.hero-carousel .carousel-item.active .slide-text > *:nth-child(5) { animation-delay: .75s; }
.hero-carousel .carousel-item { overflow: hidden; }
.carousel-fade .carousel-item { transition-duration: .9s; }
.hero-carousel .carousel-indicators [data-bs-target] { transition: opacity .3s, width .3s var(--ease); }
.hero-carousel .carousel-indicators .active { width: 48px; }

/* Buttons */
.btn { transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(46,48,148,.55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-whatsapp i.fa-whatsapp { transition: transform .3s var(--ease); }
.btn-whatsapp:hover i.fa-whatsapp { transform: rotate(-12deg) scale(1.12); }

/* Links */
a { transition: color .2s; }
.link-arrow { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 2px; }
.link-arrow:hover { background-size: 100% 1px; }

/* Photos: gentle zoom on hover */
.framed picture { overflow: hidden; border-radius: .75rem; }
.framed img, .closing img { transition: transform 1.2s var(--ease); }
.framed:hover img, .closing:hover img { transform: scale(1.04); }
.closing { overflow: hidden; }

/* Cards & comments */
.comment .bubble { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.comment:hover .bubble { transform: translateX(4px); border-color: rgba(22,169,153,.35); box-shadow: 0 12px 26px -20px rgba(46,48,148,.5); }
.comment .avatar { transition: transform .3s var(--ease); }
.comment:hover .avatar { transform: scale(1.08); }
.treatment .t-icon { transition: transform .35s var(--ease), background .25s; }
.treatment:hover .t-icon { transform: rotate(-8deg) scale(1.08); background: var(--teal); }
.quick-strip i { transition: transform .3s var(--ease); }
.quick-strip .col-md-4:hover i { transform: scale(1.2); }
.steps-list li::before { transition: background .25s, color .25s, transform .3s var(--ease); }
.steps-list li:hover::before { background: var(--teal); color: #fff; transform: scale(1.1); }

/* FAQ */
.faq .accordion-button { transition: color .2s, padding-left .25s var(--ease); }
.faq .accordion-button:hover { padding-left: .35rem; }

/* Dropdown fade/slide */
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-menu.show { animation: dropIn .2s var(--ease); }

/* Booking tabs: Bootstrap fade, a touch slower */
.booking-card .tab-pane.fade { transition: opacity .35s ease; }
.booking-card .nav-tabs .nav-link { transition: color .2s, border-color .25s; }

/* Contact map cross-fade */
.map-frame { transition: opacity .3s ease; }
.map-frame.is-switching { opacity: 0; }
.map-pills .nav-link { transition: background .2s, color .2s; }

/* Mobile menu items slide in */
@keyframes menuItem { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) {
    #mainMenu.show .nav-item, #mainMenu.collapsing .nav-item { animation: menuItem .35s var(--ease) both; }
    #mainMenu .nav-item:nth-child(2) { animation-delay: .04s; }
    #mainMenu .nav-item:nth-child(3) { animation-delay: .08s; }
    #mainMenu .nav-item:nth-child(4) { animation-delay: .12s; }
    #mainMenu .nav-item:nth-child(5) { animation-delay: .16s; }
    #mainMenu .nav-item:nth-child(6) { animation-delay: .2s; }
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
    .anim .reveal { opacity: 1 !important; transform: none !important; }
    .hero-carousel .carousel-item.active .slide-img,
    .hero-carousel .carousel-item.active .slide-text > * { animation: none !important; }
    .btn:hover, .comment:hover .bubble, .framed:hover img, .closing:hover img { transform: none !important; }
}

/* White request / message forms */
.booking-card, main .card.shadow-sm { --bs-card-bg: #fff; background: #fff; }
.booking-card .card-header { background: #fff; }
.booking-card .form-control, .booking-card .form-select,
main .card.shadow-sm .form-control, main .card.shadow-sm .form-select { background-color: #fff; }

/* Bootstrap heading-size helpers default to a lighter weight; match the rest */
.h3, .h4, .h5, .h6 { font-family: var(--heading-font); font-weight: 700; color: var(--navy); }

/* Practice cards: white */
.practice-card { --bs-card-bg: #fff; background: #fff; }

/* Back-to-top: logo teal so it stands out on the blue footer */
.back-to-top { background: var(--teal); box-shadow: 0 6px 16px -6px rgba(30,31,99,.5); }
.back-to-top:hover { background: var(--navy-ink); }

/* ---------- Footer lines ---------- */
.site-footer { position: relative; }
.site-footer::before {   /* logo-colour strip along the top */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--sky) 0 40%, var(--teal) 40% 75%, var(--gold) 75% 100%);
}
.site-footer h2 { position: relative; padding-bottom: .7rem; margin-bottom: 1.1rem; }
.site-footer h2::after {   /* short underline under each heading */
    content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold);
}
@media (min-width: 992px) {   /* vertical dividers between columns */
    .footer-cols > [class*="col-"] + [class*="col-"] { border-left: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 991.98px) {
    .footer-cols > [class*="col-"] + [class*="col-"] { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; }
    .footer-cols > .col-6:nth-child(3) { border-top: 1px solid rgba(255,255,255,.14); }
}
.site-footer .list-unstyled li + li { border-top: 1px dashed rgba(255,255,255,.12); padding-top: .6rem; }
.site-footer .list-unstyled li.mb-2 { margin-bottom: .6rem !important; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.18); }

.site-footer a[href^="mailto:"] { word-break: break-all; }

/* Footer: centred on tablets and phones */
@media (max-width: 991.98px) {
    .site-footer .footer-cols, .site-footer .bottom .container { text-align: center; }
    .site-footer .f-logo { display: block; margin-left: auto; margin-right: auto; }
    .site-footer .social { display: flex; justify-content: center; }
    .site-footer .social a:last-child { margin-right: 0; }
    .site-footer h2::after { left: 50%; transform: translateX(-50%); }
    .site-footer .bottom .container { align-items: center; }
    .footer-cols > .col-6:nth-child(3) { border-top: 0; }
}

@media (max-width: 991.98px) {
    .site-footer .bottom .container { flex-direction: column !important; justify-content: center !important; }
}
