:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-border: #e2e8f0;
    --color-text: #111827;
    --color-text-muted: #64748b;
    --color-primary: #111827;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-white: #ffffff;
    --font-heading: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-full: 999px;
    --container: 72rem;
    --transition: 180ms ease;
    --shadow-soft: 0 18px 40px rgb(15 23 42 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 1rem; left: 1rem; z-index: 1000; padding: 0.75rem 1rem;
    background: var(--color-primary); color: var(--color-white); border-radius: var(--radius-sm);
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.15rem; border-radius: var(--radius-full);
    font-family: var(--font-heading); font-weight: 600; line-height: 1;
    border: 1px solid transparent; transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: var(--color-white); box-shadow: 0 10px 24px var(--color-accent-soft); }
.btn--ghost {
    background: transparent; color: var(--color-text); border-color: var(--color-border);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--color-bg-soft); }
.btn--large { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn--small { padding: 0.55rem 1rem; font-size: 0.875rem; }

.site-nav-toggle {
    display: none; border: 1px solid var(--color-border); background: var(--color-white);
    border-radius: var(--radius-full); padding: 0.55rem 1rem; font-family: var(--font-heading);
    font-weight: 600; cursor: pointer;
}
.site-nav a.is-active, .site-nav__parent.is-active, .site-nav__group.is-active > .site-nav__parent {
    color: var(--color-accent);
}
.site-nav__group { position: relative; }
.site-nav__parent {
    display: inline-flex; align-items: center; gap: 0.35rem; color: var(--color-text-muted); font-weight: 500;
}
.site-nav__parent::after {
    content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-0.1rem);
}
.site-nav__dropdown {
    position: absolute; top: calc(100% + 0.75rem); left: 0; min-width: 18rem;
    padding: 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-white); box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden;
    transform: translateY(0.35rem); transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.site-nav__group:hover .site-nav__dropdown, .site-nav__group.is-open .site-nav__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__dropdown-section + .site-nav__dropdown-section { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--color-border); }
.site-nav__dropdown-link { display: block; font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.35rem; }
.site-nav__dropdown-link:hover { color: var(--color-accent); }
.site-nav__dropdown-sub { padding-left: 0.75rem; }
.site-nav__dropdown-sub li + li { margin-top: 0.35rem; }
.site-nav__dropdown-sub a { color: var(--color-text-muted); font-size: 0.875rem; }
.site-nav__dropdown-sub a:hover { color: var(--color-accent); }

.site-header {
    position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92);
    border-bottom: 1px solid var(--color-border); backdrop-filter: blur(12px);
}
.site-header__inner {
    min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.site-brand__logo { max-height: 4.5rem; width: auto; max-width: min(300px, 58vw); object-fit: contain; object-position: left center; }
.site-brand__name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--color-text-muted); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--color-text); }

.hero {
    position: relative; padding: 5rem 0 4.5rem; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at top right, var(--color-accent-soft), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    background-size: cover;
    background-position: center;
}
.hero--has-image .hero__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgb(255 255 255 / 0.92) 0%, rgb(255 255 255 / 0.72) 42%, rgb(255 255 255 / 0.35) 100%);
}
.hero--has-image .hero__content,
.hero--has-image .hero__panel {
    position: relative;
    z-index: 1;
}
.hero--has-image .hero__inner {
    grid-template-columns: minmax(0, 42rem);
}
.intro-showcase {
    margin: 2.75rem 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 21 / 9;
}
.intro-showcase img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section__lead {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin: 0 0 1.25rem;
    max-width: 36rem;
}
.hero__inner {
    position: relative;
    display: grid;
    gap: 2.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.hero__content { max-width: 42rem; display: grid; gap: 1rem; }
.hero__eyebrow {
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--color-accent);
}
.hero__title {
    font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05; letter-spacing: -0.03em;
}
.hero__subtitle { color: var(--color-text-muted); font-size: 1.0625rem; }
.hero__badges {
    display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.25rem;
}
.hero__badges li {
    padding: 0.45rem 0.85rem; border-radius: var(--radius-full);
    background: rgb(255 255 255 / 0.85); border: 1px solid var(--color-border);
    font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted);
}
.hero__panel { display: flex; justify-content: center; }
.hero__panel-card {
    width: min(100%, 22rem); padding: 1.5rem; border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.95), rgb(248 250 252 / 0.95));
    border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
}
.hero__panel-label {
    display: inline-block; margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent);
}
.hero__panel-card strong {
    display: block; font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem;
}
.hero__panel-card p { color: var(--color-text-muted); font-size: 0.9375rem; }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--color-bg-soft); }
.section--cta { padding: 4rem 0; background: var(--color-bg-soft); }
.section__header { margin-bottom: 2rem; }
.section__eyebrow {
    margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-accent);
}
.section__title {
    font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}
.section__split {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
}
.section__split--about { align-items: center; }
.about__media {
    margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
}
.about__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.section__body { color: var(--color-text-muted); }
.section__body p + p { margin-top: 1rem; }

.about__location {
    margin-top: 0.75rem; color: var(--color-text-muted); font-weight: 600;
}
.about__body {
    padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    background: var(--color-white); box-shadow: var(--shadow-soft);
}

.card-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.card {
    padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-white); box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
}
.card h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.card--service { position: relative; padding-top: 2.75rem; min-height: 100%; }
.card--service p { margin-top: 0.65rem; color: var(--color-text-muted); font-size: 0.9375rem; }
.card__index {
    position: absolute; top: 1rem; left: 1rem; font-family: var(--font-heading);
    font-size: 0.75rem; font-weight: 700; color: var(--color-accent);
}

.gallery-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.gallery-grid__item {
    margin: 0; overflow: hidden; border-radius: var(--radius-md);
    border: 1px solid var(--color-border); aspect-ratio: 4 / 3; background: var(--color-bg-soft);
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.testimonial {
    margin: 0; padding: 1.5rem; border-radius: var(--radius-md);
    border: 1px solid var(--color-border); background: var(--color-white);
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
}
.testimonial p {
    color: var(--color-text-muted); font-size: 1rem;
}
.testimonial p::before { content: "“"; color: var(--color-accent); font-weight: 700; }
.testimonial footer {
    margin-top: 1rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    padding: 0.25rem 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item div {
    color: var(--color-text-muted);
    padding-bottom: 1rem;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
}

.about__block + .about__block {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.about__block h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
}

.about__block-body {
    color: var(--color-text-muted);
}

.about__block-body p + p {
    margin-top: 0.75rem;
}

.cta-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    flex-wrap: wrap; padding: 2.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.cta-banner__title {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em;
}
.cta-banner__body { margin-top: 0.5rem; color: var(--color-text-muted); max-width: 36rem; }

.contact-lines { display: grid; gap: 0.75rem; margin-top: 1rem; color: var(--color-text-muted); }
.contact-lines a { color: var(--color-accent); font-weight: 600; }
.contact-card {
    padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    background: var(--color-white); box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-family: var(--font-heading); margin-bottom: 0.75rem; }
.contact-card p { color: var(--color-text-muted); margin-bottom: 1.25rem; }

.site-footer {
    border-top: 1px solid var(--color-border); padding: 2.5rem 0; background: #fff;
}
.site-footer__inner { display: grid; gap: 1rem; }
.site-footer__brand p { margin-top: 0.5rem; color: var(--color-text-muted); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.page-hero {
    padding: 4rem 0 2rem; background: linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
    border-bottom: 1px solid var(--color-border);
}
.page-hero--compact { padding: 3rem 0 1.5rem; }
.page-hero__title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em; margin-top: 0.35rem;
}
.page-hero__subtitle { margin-top: 0.75rem; color: var(--color-text-muted); max-width: 40rem; }

.section__header--split {
    display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.section__split--service { grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.8fr); }

.stat-grid { display: grid; gap: 0.85rem; }
.stat-card {
    padding: 1rem 1.1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border);
    background: var(--color-white); box-shadow: 0 10px 24px rgb(15 23 42 / 0.04);
}
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; }
.stat-card span { color: var(--color-text-muted); font-size: 0.875rem; }

.service-sidebar {
    padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    background: var(--color-white); box-shadow: var(--shadow-soft);
}
.service-sidebar h2 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.85rem; }
.service-sidebar li + li { margin-top: 0.55rem; }
.service-sidebar a { color: var(--color-text-muted); font-weight: 500; }
.service-sidebar a:hover { color: var(--color-accent); }

.contact-grid {
    display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.contact-card--primary {
    background: linear-gradient(145deg, rgb(255 255 255 / 0.98), rgb(248 250 252 / 0.98));
}

.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card--wide { min-height: 100%; }
.card--link a { display: block; color: inherit; height: 100%; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card__link {
    display: inline-flex; margin-top: 1rem; color: var(--color-accent); font-weight: 600; font-size: 0.875rem;
}
.card__sublist { margin-top: 0.85rem; color: var(--color-text-muted); font-size: 0.875rem; }
.card__sublist li + li { margin-top: 0.35rem; }

.site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer__links a { color: var(--color-text-muted); font-weight: 500; }
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__copy { grid-column: 1 / -1; }

body.sector-dental {
    --color-accent: #0d9488;
    --color-accent-hover: #0f766e;
}
body.sector-dental .hero__bg {
    background:
        radial-gradient(circle at top right, rgb(13 148 136 / 0.18), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
body.sector-dental .btn--primary { box-shadow: 0 10px 24px rgb(13 148 136 / 0.22); }

.hero__visual {
    margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; max-height: 28rem;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

.section__header--center { text-align: center; max-width: 40rem; margin-inline: auto; }
.section--stats { background: var(--color-bg-soft); border-block: 1px solid var(--color-border); }

.stat-grid--home {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
}
.stat-card--premium {
    text-align: center; padding: 1.5rem 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card--premium:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.stat-card--premium strong {
    font-size: clamp(1.5rem, 3vw, 2rem); color: var(--color-accent); margin-bottom: 0.35rem;
}

.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
    background: var(--color-accent-soft); color: var(--color-accent);
    font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.85rem;
}
.card--service .card__icon { position: static; margin-bottom: 0.75rem; }
.card--service { padding-top: 1.25rem; }
.card--feature h3 { margin-top: 0; }

.reference-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.reference-card {
    padding: 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--color-border);
    background: var(--color-white); box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}
.reference-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.reference-card__index {
    display: inline-block; margin-bottom: 0.65rem; font-family: var(--font-heading);
    font-size: 0.75rem; font-weight: 700; color: var(--color-accent);
}
.reference-card h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.reference-card p { margin-top: 0.5rem; color: var(--color-text-muted); font-size: 0.9375rem; }

.cta-banner__content { max-width: 42rem; }
.cta-banner__contact {
    display: grid; gap: 0.65rem; margin-top: 1.25rem; color: var(--color-text-muted);
}
.cta-banner__contact li { display: grid; gap: 0.15rem; }
.cta-banner__contact span {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--color-accent);
}
.cta-banner__contact a { color: var(--color-text); font-weight: 600; }
.cta-banner__contact em { font-style: normal; opacity: 0.7; }

.contact-grid--premium { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.contact-form-card label { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.contact-form-card label span { font-size: 0.875rem; font-weight: 600; }
.contact-form-card input,
.contact-form-card textarea {
    width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font: inherit; background: var(--color-bg-soft);
}
.contact-form-card__hint { color: var(--color-text-muted); margin-bottom: 1rem; }
.contact-map-placeholder {
    min-height: 280px; border-radius: var(--radius-md); border: 1px dashed var(--color-border);
    background: var(--color-bg-soft); display: grid; place-items: center;
    color: var(--color-text-muted); font-weight: 600;
}
.contact-map-embed {
    border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--color-border); background: var(--color-bg-soft);
}
.contact-map-embed__frame {
    display: block; width: 100%; height: 280px; border: 0;
}
.contact-map-card__link { margin-top: 0.75rem; }
.contact-map-card__link a { color: var(--color-accent); font-weight: 600; }
.contact-map-card__address { margin-top: 0.85rem; color: var(--color-text-muted); }

.card--link { transition: transform var(--transition), box-shadow var(--transition); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

@media (max-width: 959px) {
    .site-nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
        align-items: stretch; padding: 1rem; background: var(--color-white);
        border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
    }
    .site-header--open .site-nav { display: flex; }
    .site-nav__dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: 0; padding: 0.5rem 0 0 0.75rem; min-width: 0;
    }
    .site-header__inner { position: relative; flex-wrap: wrap; }
}

@media (max-width: 720px) {
    .site-nav { gap: 0.75rem; }
    .hero { padding-top: 3.5rem; }
    .hero__panel { display: none; }
    .cta-banner { padding: 2.5rem 0; }
    .section__header--split { align-items: start; }
}

.reference-card__media { margin: 0 0 0.75rem; border-radius: 0.75rem; overflow: hidden; }
.reference-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.reference-card__placeholder {
    display: grid; place-content: center; min-height: 120px; border: 2px dashed rgb(99 102 241 / .25);
    border-radius: 0.75rem; color: #64748b; font-size: 0.875rem; background: rgb(248 250 252);
}
.about__metric { display: grid; gap: 0.25rem; margin-bottom: 1rem; }
.about__metric strong { font-size: 2rem; color: var(--color-accent); }
.about__timeline-item { border-left: 2px solid var(--color-accent); padding-left: 1rem; margin-bottom: 1rem; }
.about__timeline-item time { font-weight: 700; color: var(--color-accent); }
.about__list { margin: 0.5rem 0 1rem; padding-left: 1.1rem; }
