/* ==========================================================================
   Webtypely — Thirteenth theme (Dental Clinic)
   Clean, clinical, trustworthy. Teal + navy on white with soft mint surfaces.
   ========================================================================== */

:root {
    --c-primary: #0f7c90;
    --c-primary-dark: #0a5f6f;
    --c-primary-soft: #e3f3f5;
    --c-accent: #3cc6b8;
    --c-navy: #0b2340;
    --c-navy-2: #12355c;
    --c-text: #1d2b3a;
    --c-muted: #566779;
    --c-border: #dce8ed;
    --c-bg: #ffffff;
    --c-bg-soft: #f3f9fa;
    --c-white: #ffffff;

    --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(11, 35, 64, 0.06);
    --shadow: 0 12px 32px rgba(11, 35, 64, 0.08);
    --shadow-lg: 0 24px 60px rgba(11, 35, 64, 0.14);

    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--c-navy);
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 1000;
    background: var(--c-navy);
    color: var(--c-white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--c-white); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .8em 1.5em;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; white-space: normal; }

.btn--primary {
    background: var(--c-primary);
    color: var(--c-white);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--c-primary) 28%, transparent);
}
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-white); }

.btn--outline { border-color: var(--c-border); color: var(--c-navy); background: var(--c-white); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn--light { background: var(--c-white); color: var(--c-primary-dark); }
.btn--light:hover { color: var(--c-navy); box-shadow: var(--shadow); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--c-white); }
.btn--ghost-light:hover { border-color: var(--c-white); background: rgba(255, 255, 255, .1); color: var(--c-white); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
}
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow--back:hover i { transform: translateX(-4px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: var(--c-primary-soft);
    padding: .45em 1em;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ---------- Top bar ---------- */

.topbar {
    background: var(--c-navy);
    color: rgba(255, 255, 255, .82);
    font-size: .86rem;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
}
.topbar__info,
.topbar__social { display: flex; align-items: center; gap: 22px; }
.topbar__social { gap: 14px; }
.topbar a,
.topbar span { color: inherit; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--c-white); }
.topbar i { color: var(--c-accent); }
.topbar__phone { font-weight: 600; color: var(--c-white) !important; }

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--c-border); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.logo { min-width: 0; }
.logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-navy); }
.logo__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: var(--c-white);
}
.logo__text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
    display: block;
    padding: .5em .85em;
    border-radius: 999px;
    color: var(--c-text);
    font-weight: 500;
    font-size: .96rem;
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--c-primary); background: var(--c-primary-soft); }
.nav__cta { padding: .7em 1.25em; font-size: .92rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    padding: 0 11px;
    background: var(--c-primary-soft);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle__bar {
    width: 24px;
    display: block;
    height: 2px;
    background: var(--c-navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--c-bg-soft); }

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head p { color: var(--c-muted); font-size: 1.06rem; }
.section-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    margin-bottom: 40px;
}
.section-head--row h2 { margin: 0; }

.lead { font-size: 1.08rem; color: var(--c-muted); }
.prose { color: var(--c-muted); font-size: 1.04rem; }
.prose h2,
.prose h3,
.prose h4 { color: var(--c-navy); margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose a { text-decoration: underline; }

.image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--c-primary-soft), color-mix(in srgb, var(--c-primary) 18%, #ffffff));
    color: var(--c-primary);
    font-size: 3.5rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 72px 0 120px;
    background:
        radial-gradient(1000px 500px at 85% 10%, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--c-primary) 8%, transparent), transparent 60%),
        linear-gradient(180deg, var(--c-bg-soft) 0%, #ffffff 100%);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
}
.hero h1 { margin-bottom: .45em; }
.hero__text { font-size: 1.12rem; color: var(--c-muted); max-width: 540px; }
.hero__text p:last-child { margin-bottom: 0; }
/* Editor content may carry inline colors meant for dark heroes in other themes; keep it readable here. */

.hero__text [style*="color"],
.prose [style*="color"] { color: inherit !important; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 34px; }

.hero__media { position: relative; }
.hero__image {
    position: relative;
    aspect-ratio: 4 / 4.4;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-primary-soft);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
    content: "";
    position: absolute;
    inset: -22px -22px auto auto;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-accent) 2px, transparent 2.5px) 0 0 / 16px 16px;
    opacity: .5;
    z-index: -1;
}
.hero__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.hero__badge i {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 1.3rem;
}
.hero__badge strong { display: block; font-family: var(--font-heading); color: var(--c-navy); font-size: 1.1rem; line-height: 1.2; }
.hero__badge span { font-size: .82rem; color: var(--c-muted); }
.hero__badge--top { top: 12%; left: -36px; }
.hero__badge--bottom { bottom: 10%; right: -24px; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Quick info ---------- */

.quick-info { position: relative; margin-top: -64px; z-index: 2; }
.quick-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 0;
}
.quick-info__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 30px;
    color: var(--c-text);
    border-right: 1px solid var(--c-border);
}
.quick-info__item:last-child { border-right: 0; }
a.quick-info__item:hover { background: var(--c-bg-soft); color: var(--c-text); }
.quick-info__item > i {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-white);
    font-size: 1.3rem;
}
.quick-info__item span { display: block; font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.quick-info__item strong { display: block; font-family: var(--font-heading); color: var(--c-navy); font-size: 1.02rem; line-height: 1.35; }

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon {
    display: grid;
    place-items: center;
    width: 68px; height: 68px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 1.9rem;
    overflow: hidden;
    transition: background .3s, color .3s;
}
.service-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card:hover .service-card__icon { background: var(--c-primary); color: var(--c-white); }
.service-card p { color: var(--c-muted); flex: 1; }

/* ---------- About split ---------- */

.about-split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 72px;
}
.about-split__media { position: relative; }
.about-split__media > img,
.about-split__media > .image-fallback {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.about-split--page { align-items: start; }
.about-split--page .about-split__media { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Why choose us ---------- */

/* ---------- Statistics ---------- */

.stats {
    background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 55%, var(--c-primary-dark) 100%);
    color: var(--c-white);
    padding: 64px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stats__item { padding: 8px; }
.stats__item + .stats__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.stats__item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--c-white);
    line-height: 1.1;
}
.stats__item span { color: rgba(255, 255, 255, .78); font-size: .98rem; }

/* ---------- Before & After / cards ---------- */

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--c-text); }
.case-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body { padding: 22px 24px 24px; }
.case-card__body h3 { margin-bottom: .3em; }
.case-card__body p { color: var(--c-muted); font-size: .95rem; margin: 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-primary-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__img .image-fallback { min-height: 0; }
.card__price,
.card__date {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .4em .95em;
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-navy);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .88rem;
    box-shadow: var(--shadow-sm);
}
.card__price { background: var(--c-primary); color: var(--c-white); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card__title { font-size: 1.2rem; margin-bottom: .45em; }
.card__title a { color: var(--c-navy); }
.card__title a:hover { color: var(--c-primary); }
.card__body p { color: var(--c-muted); font-size: .96rem; flex: 1; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 64px 20px;
    color: var(--c-muted);
    text-align: center;
    border: 2px dashed var(--c-border);
    border-radius: var(--radius-lg);
}
.empty-state i { font-size: 2.2rem; color: var(--c-primary); }

/* ---------- CTA ---------- */

.cta { padding: 0 0 96px; }
.section--soft + .cta,
.stats + .cta { padding-top: 96px; }
.cta__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px 60px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 260px at 100% 0%, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 60%),
        linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
    color: var(--c-white);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta__box h2 { color: var(--c-white); margin-bottom: .35em; }
.cta__box p { color: rgba(255, 255, 255, .86); margin: 0; max-width: 540px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Contact ---------- */

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch;
}
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--c-text); }
.info-list i { color: var(--c-primary); font-size: 1.15rem; line-height: 1.5; }
.info-list--lg { gap: 22px; margin: 8px 0 32px; }
.info-list--lg li > i {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    line-height: 1;
}
.info-list--lg span {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.info-list--lg div { font-weight: 600; color: var(--c-navy); }

.contact-split__map {
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--c-bg-soft);
}
.contact-split__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-placeholder {
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    background:
        linear-gradient(color-mix(in srgb, var(--c-bg-soft) 92%, transparent), color-mix(in srgb, var(--c-bg-soft) 92%, transparent)),
        repeating-linear-gradient(45deg, var(--c-border) 0 1px, transparent 1px 22px);
}
.map-placeholder i { font-size: 2.6rem; color: var(--c-primary); }
.map-placeholder p { font-weight: 600; color: var(--c-navy); max-width: 320px; }

.contact-page { display: grid; gap: 48px; }
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 26px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    color: var(--c-text);
    transition: transform .3s var(--ease), box-shadow .3s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--c-text); }
.contact-card i {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 1.3rem;
}
.contact-card span { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.contact-card strong { font-family: var(--font-heading); color: var(--c-navy); font-size: 1.05rem; line-height: 1.4; word-break: break-word; }

.contact-split--form { grid-template-columns: 1.1fr 1fr; }
.form-card {
    padding: 44px 42px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
}
.form-card > p { color: var(--c-muted); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: .88rem; font-weight: 600; color: var(--c-navy); }
.form input,
.form textarea {
    width: 100%;
    padding: .85em 1em;
    font: inherit;
    color: var(--c-text);
    background: var(--c-bg-soft);
    border: 1.5px solid var(--c-border);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: var(--c-white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 14%, transparent);
}
.form .btn { justify-self: start; }
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: #c0392b; background: #fff7f6; }
.form__error { color: #b42318; font-size: .84rem; font-weight: 500; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: .95rem;
}
.form__alert i { font-size: 1.15rem; line-height: 1.4; }
.form__alert--success { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.form__alert--error { background: #fdecea; color: #b42318; }
.form-card { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 34px 30px 30px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 6px; right: 26px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-primary-soft);
}
.testimonial__stars { display: flex; gap: 3px; margin-bottom: 14px; color: #f5b000; }
.testimonial blockquote { flex: 1; margin: 0 0 24px; color: var(--c-text); font-size: 1.02rem; white-space: pre-line; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong { display: block; font-family: var(--font-heading); color: var(--c-navy); }
.testimonial figcaption span { display: block; font-size: .86rem; color: var(--c-muted); }
.testimonial .avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: var(--c-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
}
.section--soft + .section--soft { padding-top: 0; }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.team-card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card__photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--c-primary-soft), color-mix(in srgb, var(--c-primary) 18%, #ffffff));
    overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initial {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--c-primary);
}
.team-card__body { padding: 20px 22px 24px; }
.team-card__body h3 { margin-bottom: .2em; }
.team-card__role { margin: 0 0 .6em; color: var(--c-primary); font-weight: 600; font-size: .95rem; }
.team-card__bio {
    margin: 0;
    color: var(--c-muted);
    font-size: .93rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.team-more { margin-top: 32px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow .25s, border-color .25s;
}
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-navy);
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: var(--radius); }
.faq__item summary i {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    transition: transform .25s var(--ease), background .25s, color .25s;
}
.faq__item[open] summary i { transform: rotate(45deg); background: var(--c-primary); color: var(--c-white); }
.faq__answer { padding: 0 24px 22px; color: var(--c-muted); white-space: pre-line; }
.faq__more { margin-top: 28px; text-align: center; }

/* ---------- Working hours ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    margin-top: 4px;
    padding: .25em .75em;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}
.status-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-badge--open { background: #e6f6ee; color: #0f6b4c; }
.status-badge--open .status-badge__dot { box-shadow: 0 0 0 3px rgba(18, 128, 92, .2); }
.status-badge--closed { background: #fdecea; color: #a1281c; }
.status-badge--open .status-badge__dot { background: #12805c; }
.status-badge--closed .status-badge__dot { background: #c0392b; }

.hours {
    margin-top: 8px;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
}
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.hours__head h3 { display: flex; align-items: center; gap: .5em; margin: 0; font-size: 1.05rem; }
.hours__head h3 i { color: var(--c-primary); }
.hours__head .status-badge { margin-top: 0; }

.hours-list { margin: 0; display: grid; gap: 6px; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.hours-list div:last-child { border-bottom: 0; }
.hours-list dt { color: var(--c-muted); }
.hours-list dd { margin: 0; font-weight: 600; color: var(--c-navy); white-space: nowrap; }
.hours-list .is-today { margin: 0 -10px; padding: 6px 10px; border-radius: 8px; border-bottom-color: transparent; background: var(--c-primary-soft); }
.hours-list .is-today dt,
.hours-list .is-today dd { color: var(--c-primary-dark); font-weight: 700; }

/* Card label rules (".quick-info__item span", ".contact-card span") must not restyle the badge. */
.quick-info__item .status-badge,
.contact-card .status-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.quick-info__item .status-badge--open,
.contact-card .status-badge--open { color: #0f6b4c; }
.quick-info__item .status-badge--closed,
.contact-card .status-badge--closed { color: #a1281c; }
.quick-info__item .status-badge__dot,
.contact-card .status-badge__dot { display: block; width: 8px; height: 8px; }
.contact-card .hours-list { margin-top: 12px; width: 100%; font-size: .92rem; }
.contact-card .hours-list div { gap: 10px; }

.side-card__hours { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.side-card__hours .hours-list { margin-top: 12px; font-size: .92rem; }

.footer .hours-list div { border-bottom-color: rgba(255, 255, 255, .1); padding: 4px 0; }
.footer .hours-list dt { color: rgba(255, 255, 255, .62); }
.footer .hours-list dd { color: var(--c-white); font-weight: 500; }

/* ---------- Page header ---------- */

.page-header {
    position: relative;
    padding: 72px 0 64px;
    background:
        radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--c-accent) 35%, transparent), transparent 60%),
        linear-gradient(120deg, var(--c-navy), var(--c-navy-2));
    color: var(--c-white);
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    right: 6%; bottom: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .05);
}
.page-header h1 { color: var(--c-white); margin: 0; max-width: 820px; }
.page-header__text { margin-top: 16px; max-width: 700px; color: rgba(255, 255, 255, .82); font-size: 1.06rem; }
.page-header__text p:last-child { margin-bottom: 0; }
.page-header__text a { color: var(--c-accent); }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .7);
}
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--c-white); }
.breadcrumb i { font-size: .7rem; }
.breadcrumb [aria-current] { color: var(--c-accent); }

/* ---------- Detail ---------- */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}
.detail__img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    background: var(--c-primary-soft);
}
.detail__img img { width: 100%; max-height: 520px; object-fit: cover; }
.detail__price {
    display: inline-block;
    margin: 0 0 12px;
    padding: .35em 1em;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}
.detail__meta { display: flex; align-items: center; gap: .5em; color: var(--c-muted); font-size: .92rem; margin-bottom: 8px; }
.detail__main .link-arrow--back { margin-top: 24px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card {
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    background: var(--c-white);
    border: 1px solid var(--c-border);
}
.side-card h3 { margin-bottom: .5em; }
.side-card--accent {
    display: grid;
    gap: 12px;
    background: linear-gradient(150deg, var(--c-primary-dark), var(--c-primary));
    border: 0;
    color: var(--c-white);
    box-shadow: var(--shadow);
}
.side-card--accent h3 { color: var(--c-white); margin: 0; }
.side-card--accent p { color: rgba(255, 255, 255, .85); margin: 0 0 6px; font-size: .96rem; }
.side-card__icon { font-size: 2rem; color: var(--c-accent); }

/* ---------- Partners ---------- */

.partners__title {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-muted);
    letter-spacing: .04em;
    margin-bottom: 28px;
}
.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 48px;
}
.partners a { display: block; }
.partners img {
    max-height: 56px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .3s, opacity .3s;
}
.partners a:hover img,
.partners a:focus-visible img { filter: none; opacity: 1; }

/* ---------- Footer ---------- */

.footer {
    background: var(--c-navy);
    color: rgba(255, 255, 255, .72);
    padding-top: 80px;
    font-size: .96rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer__grid--hours { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
.footer h3 { color: var(--c-white); font-size: 1.05rem; margin-bottom: 1.1em; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--c-white); }
.footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-white) !important;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact i { color: var(--c-accent); line-height: 1.6; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--c-white);
    transition: background .2s;
}
.footer__social a:hover { background: var(--c-primary); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--c-accent); }

/* ---------- Floating UI ---------- */

.back-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--c-white); background: var(--c-primary-dark); }

.mobile-bar { display: none; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .nav { gap: 16px; }
    .nav__list a { padding: .5em .6em; font-size: .92rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    :root { --header-h: 68px; }
    .section { padding: 72px 0; }
    .cta { padding-bottom: 72px; }
    .section--soft + .cta,
.stats + .cta { padding-top: 72px; }

    .topbar__info span { display: none; }

    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 20px 24px;
        background: var(--c-white);
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__list a { padding: .8em 1em; font-size: 1rem; border-radius: 12px; }
    .nav__cta { width: 100%; padding: .9em 1.2em; }

    .hero { padding: 48px 0 104px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__media { max-width: 520px; margin: 0 auto; width: 100%; }
    .hero__badge--top { left: -8px; }
    .hero__badge--bottom { right: -8px; }

    .about-split { grid-template-columns: 1fr; gap: 48px; }
    .about-split__media { max-width: 520px; }
    .about-split--page .about-split__media { position: relative; top: 0; }

    .case-grid,
.card-grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .stats__item:nth-child(3) { border-left: 0; }

    .cta__box { flex-direction: column; align-items: flex-start; padding: 44px 36px; }

    .contact-split,
.contact-split--form { grid-template-columns: 1fr; }

    .detail { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    .quick-info__item { border-right: 0; border-bottom: 1px solid var(--c-border); }
    .quick-info__item:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
    .faq__item summary { padding: 16px 18px; font-size: 1rem; }
    .faq__answer { padding: 0 18px 18px; }
    .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .testimonial-grid { grid-template-columns: 1fr; }
    body { font-size: 15.5px; padding-bottom: 68px; }
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head--row { flex-direction: column; align-items: flex-start; }

    .topbar__info { display: none; }
    .topbar__inner { justify-content: center; }

    .hero__actions .btn { width: 100%; }
    .hero__image { border-radius: 140px 140px var(--radius-lg) var(--radius-lg); }
    .hero__badge { padding: 10px 14px; }
    .hero__badge i { width: 38px; height: 38px; font-size: 1.1rem; }
    .hero__badge--top { top: 6%; }

    .quick-info { margin-top: -56px; }
    .quick-info__item { padding: 20px 22px; }

    .case-grid,
.card-grid { grid-template-columns: 1fr; }

    .stats { padding: 48px 0; }
    .stats__item + .stats__item { border-left: 0; }

    .cta__box { padding: 36px 24px; }
    .cta__actions,
.cta__actions .btn { width: 100%; }

    .form-card { padding: 30px 22px; }
    .form__row { grid-template-columns: 1fr; }
    .form .btn { width: 100%; }

    .page-header { padding: 52px 0 46px; }

    .footer { padding-top: 56px; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; }

    .back-to-top { bottom: 84px; right: 16px; }

    .mobile-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 95;
        display: flex;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--c-white);
        border-top: 1px solid var(--c-border);
        box-shadow: 0 -8px 24px rgba(11, 35, 64, .08);
    }
    .mobile-bar a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45em;
        padding: .75em .5em;
        border-radius: 12px;
        background: var(--c-primary-soft);
        color: var(--c-primary-dark);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: .92rem;
    }
    .mobile-bar a.mobile-bar__primary { background: var(--c-primary); color: var(--c-white); }
}

/* ==========================================================================
   Language switcher (partials.language_switcher; renders nothing on one-language sites)
   ========================================================================== */
.nav__list .wt-lang a {
    padding: .4em .55em;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.nav__list li:not(.wt-lang) + .wt-lang { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--c-border); }
.nav__list .wt-lang a:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.nav__list .wt-lang a[aria-current] { color: var(--c-primary); background: var(--c-primary-soft); }

@media (max-width: 991px) {
    .nav__list { flex-direction: row; flex-wrap: wrap; }
    .nav__list > li { flex: 0 0 100%; }
    .nav__list > li.wt-lang { flex: 0 0 auto; margin-top: 8px; }
    .nav__list li:not(.wt-lang) + .wt-lang { margin-left: 0; padding-left: 0; border-left: 0; }
    .nav__list .wt-lang a { padding: .6em .95em; font-size: .86rem; border-radius: 10px; }
}

/* The switcher makes the bar wider: keep link labels on one line, and when the header carries it, switch to the
   slide-out menu below 1280px instead of 992px so a long site name and a full menu still fit. */
.header:has(.wt-lang) .nav__list a { white-space: nowrap; }
@media (min-width: 1280px) {
    .header:has(.wt-lang) .nav { gap: 18px; }
    .header:has(.wt-lang) .nav__list li:not(.wt-lang) a { padding: .5em .7em; }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .header:has(.wt-lang) .nav-toggle { display: flex; }
    .header:has(.wt-lang) .nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px max(20px, calc((100% - var(--container)) / 2 + 20px)) 24px;
        background: var(--c-white);
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        display: none;
    }
    .header:has(.wt-lang) .nav.is-open { display: flex; }
    .header:has(.wt-lang) .nav__list { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 2px; }
    .header:has(.wt-lang) .nav__list > li { flex: 0 0 100%; }
    .header:has(.wt-lang) .nav__list > li.wt-lang { flex: 0 0 auto; margin-top: 8px; }
    .header:has(.wt-lang) .nav__list li:not(.wt-lang) + .wt-lang { margin-left: 0; padding-left: 0; border-left: 0; }
    .header:has(.wt-lang) .nav__list a { padding: .8em 1em; font-size: 1rem; border-radius: 12px; }
    .header:has(.wt-lang) .nav__list .wt-lang a { padding: .6em .95em; font-size: .86rem; border-radius: 10px; }
    .header:has(.wt-lang) .nav__cta { width: 100%; padding: .9em 1.2em; }
}
