/* DentaVista — header styles */
:root {
        --header-primary: #3fa0ce;
        --header-primary-light: #5bb6df;
        --header-secondary: #1f2a33;
        --header-accent: #3fa0ce;
        --header-accent-600: #3fa0ce;
        --header-white: #ffffff;
        --header-gray: #5b7185;
        --header-light-bg: #edf4f8;
        --header-line: #e6eef2;
    }

    /* ===== Wrapper ===== */
    .lc-header {
        position: absolute; top: 0; left: 0; right: 0; z-index: 9999;
        font-family: 'Inter', system-ui, sans-serif;
        transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    }
    .lc-header--transparent { background: transparent; }
    .lc-header--scrolled {
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(18px);
        box-shadow: 0 6px 30px rgba(31, 42, 51, .08);
    }
    .lc-header--scrolled .lc-topbar { display: none; }

    /* ===== Topbar ===== */
    .lc-topbar {transition: opacity .3s ease; }
    .lc-topbar__container {
        max-width: 1400px; margin: 0 auto; padding: 9px 30px;
        display: flex; justify-content: space-between; align-items: center; gap: 16px;
    }
    .lc-topbar__usps { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; margin-left: auto; }
    .lc-topbar__usp {
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 12.5px; font-weight: 600; color: var(--header-secondary);
        text-decoration: none;
    }
    .lc-topbar__usp--link:hover { color: var(--header-primary); }
    .lc-topbar__usp svg { width: 14px; height: 14px; color: var(--header-primary); }
    .lc-topbar__divider { width: 1px; height: 12px; background: rgba(31, 42, 51, .15); }
    .lc-topbar__contact { display: flex; align-items: center; gap: 18px; }

    /* ===== Main row ===== */
    .lc-header__main { padding: 16px 0; transition: padding .3s ease; }
    .lc-header--scrolled .lc-header__main { padding: 10px 0; }
    .lc-header__container {
        position: relative;
        max-width: 1400px; margin: 0 auto; padding: 0 30px;
        display: flex; justify-content: space-between; align-items: center; gap: 18px;
    }

    /* Logo */
    .lc-header__logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; z-index: 10; }
    .lc-header__logo-img { height: 46px; width: auto; display: block; transition: height .3s ease; }
    .lc-header--scrolled .lc-header__logo-img { height: 38px; }
    .lc-mobile__head .lc-header__logo-img { height: 38px; }
    @media (max-width: 600px) { .lc-header__logo-img { height: 38px; } }
    .lc-header__logo-mark {
        width: 42px; height: 42px; border-radius: 13px; flex: none;
        display: flex; align-items: center; justify-content: center;
        color: #fff; background: var(--header-primary);
        box-shadow: 0 10px 22px -8px rgba(63, 160, 206, .6);
    }
    .lc-header__logo-mark svg { width: 24px; height: 24px; }
    .lc-header__logo-text { font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--header-secondary); line-height: 1; }
    .lc-header__logo-text span { color: var(--header-primary); }
    .lc-header__logo-sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--header-gray); margin-top: 3px; }

    /* Nav */
    .lc-header__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
    .lc-header__nav-item { position: static; }
    .lc-header__nav-link {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 11px 13px; font-size: 14.5px; font-weight: 600;
        color: var(--header-secondary); text-decoration: none;
        border-radius: 10px; transition: color .25s ease; position: relative;
    }
    .lc-header__nav-link svg.lc-caret { width: 11px; height: 11px; transition: transform .3s ease; }
    .lc-header__nav-item:hover .lc-header__nav-link svg.lc-caret { transform: rotate(180deg); }

    /* Animated underline that grows in on hover */
    .lc-header__nav-link::after {
        content: ''; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
        background: var(--header-primary); border-radius: 2px;
        transform: scaleX(0); transform-origin: left center;
        transition: transform .3s ease;
    }
    .lc-header__nav-link:hover,
    .lc-header__nav-item:hover .lc-header__nav-link,
    .lc-header__nav-link:hover::after,
    .lc-header__nav-item:hover .lc-header__nav-link::after,
    .lc-header__nav-link--active::after { transform: scaleX(1); }
    @media (prefers-reduced-motion: reduce) {
        .lc-header__nav-link::after { transition: none; }
    }

    /* ===== Mega menu (columns) ===== */
    .lc-megamenu {
        position: absolute; top: calc(100% + 14px);
        background: #fff; border: 1px solid var(--header-line);
        border-radius: 20px; box-shadow: 0 30px 80px rgba(31, 42, 51, .16);
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s;
        pointer-events: none; z-index: 200; padding: 26px 28px;
    }
    .lc-megamenu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
    .lc-header__nav-item:hover .lc-megamenu {
        opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
    }
    .lc-megamenu--center { left: 50%; transform: translateX(-50%) translateY(8px); }
    .lc-header__nav-item:hover .lc-megamenu--center { transform: translateX(-50%) translateY(0); }
    .lc-megamenu--left { left: 30px; }
    .lc-megamenu--right { right: 30px; }
    .lc-megamenu--w2 { width: min(580px, 94vw); }
    .lc-megamenu--w3 { width: min(820px, 94vw); }
    .lc-megamenu--w5 { width: min(1180px, 95vw); }

    .lc-megamenu__inner { display: grid; gap: 10px 26px; }
    .lc-megamenu--w2 .lc-megamenu__inner { grid-template-columns: repeat(2, 1fr); }
    .lc-megamenu--w3 .lc-megamenu__inner { grid-template-columns: repeat(3, 1fr); }
    .lc-megamenu--w5 .lc-megamenu__inner { grid-template-columns: repeat(5, 1fr); }

    .lc-megamenu__col-title {
        display: flex; align-items: center; gap: 8px;
        font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
        color: var(--header-secondary); margin: 0 0 10px; padding-bottom: 9px;
        border-bottom: 1px solid var(--header-line);
    }
    .lc-megamenu__col-title svg { width: 16px; height: 16px; color: var(--header-primary); flex: none; }
    .lc-megamenu__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
    .lc-megamenu__links a {
        position: relative; display: inline-flex; align-items: center; padding: 7px 10px;
        font-size: 13.5px; font-weight: 500; color: var(--header-gray); text-decoration: none;
        transition: color .25s ease;
    }
    .lc-megamenu__links a::after {
        content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px;
        background: var(--header-primary); border-radius: 2px;
        transform: scaleX(0); transform-origin: left center; transition: transform .3s ease;
    }
    .lc-megamenu__links a:hover { color: var(--header-primary); }
    .lc-megamenu__links a:hover::after { transform: scaleX(1); }
    @media (prefers-reduced-motion: reduce) { .lc-megamenu__links a::after { transition: none; } }

    .lc-megamenu__foot {
        grid-column: 1 / -1; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--header-line);
        display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    }
    .lc-megamenu__foot-text { font-size: 13.5px; color: var(--header-gray); }
    .lc-megamenu__foot-text strong { color: var(--header-secondary); }
    .lc-megamenu__foot-link {
        display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
        color: var(--header-primary); text-decoration: none; transition: gap .25s ease;
    }
    .lc-megamenu__foot-link:hover { gap: 11px; }
    .lc-megamenu__foot-link svg { width: 15px; height: 15px; }

    /* ===== Actions ===== */
    .lc-header__actions { display: flex; align-items: center; gap: 12px; }
    .lc-header__cta {
        display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px;
        font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; border-radius: 12px;
        background: var(--header-primary);
        box-shadow: 0 12px 28px -10px rgba(63, 160, 206, .5);
        transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
        white-space: nowrap;
    }
    .lc-header__cta:hover { transform: translateY(-2px); background: var(--header-primary-light); box-shadow: 0 18px 36px -10px rgba(63, 160, 206, .6); }
    .lc-header__cta svg { width: 16px; height: 16px; transition: transform .3s ease; }
    .lc-header__cta:hover svg { transform: translateX(3px); }

    .lc-header__mobile-toggle {
        display: none; width: 46px; height: 46px; flex-direction: column; gap: 5px;
        align-items: center; justify-content: center; background: var(--header-light-bg);
        border: none; border-radius: 12px; cursor: pointer;
    }
    .lc-header__mobile-toggle span { width: 21px; height: 2px; border-radius: 2px; background: var(--header-secondary); transition: all .3s ease; }
    .lc-header__mobile-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .lc-header__mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
    .lc-header__mobile-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* ===== Mobile drawer ===== */
    .lc-mobile { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
    .lc-mobile.is-active { visibility: visible; }
    .lc-mobile__overlay { position: absolute; inset: 0; background: rgba(31, 42, 51, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
    .lc-mobile.is-active .lc-mobile__overlay { opacity: 1; }
    .lc-mobile__panel {
        position: absolute; top: 0; right: 0; width: min(420px, 100%); height: 100%;
        background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
        display: flex; flex-direction: column;
    }
    .lc-mobile.is-active .lc-mobile__panel { transform: none; }
    .lc-mobile__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--header-line); }
    .lc-mobile__close { width: 42px; height: 42px; border: none; border-radius: 11px; background: var(--header-light-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .lc-mobile__close svg { width: 20px; height: 20px; color: var(--header-secondary); }
    .lc-mobile__nav { padding: 12px 18px; flex: 1; }
    .lc-mobile__item { border-bottom: 1px solid #f1f5f9; }
    .lc-mobile__row {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 15px 6px; font-size: 16px; font-weight: 700; color: var(--header-secondary);
        text-decoration: none; cursor: pointer;
    }
    .lc-mobile__row svg { width: 18px; height: 18px; color: var(--header-gray); transition: transform .3s ease; }
    .lc-mobile__item.is-open > .lc-mobile__row svg { transform: rotate(180deg); color: var(--header-primary); }
    .lc-mobile__sub { display: none; padding: 0 6px 12px; }
    .lc-mobile__item.is-open > .lc-mobile__sub { display: block; }
    .lc-mobile__subtitle { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--header-primary); margin: 12px 0 6px; }
    .lc-mobile__sublink { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--header-gray); text-decoration: none; }
    .lc-mobile__sublink:hover { background: var(--header-light-bg); color: var(--header-primary); }
    .lc-mobile__cta { margin: 8px 22px 16px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px; border-radius: 13px; font-weight: 700; color: #fff; text-decoration: none; background: var(--header-primary); }
    .lc-mobile__cta svg { width: 18px; height: 18px; }
    .lc-mobile__contact { padding: 16px 22px 26px; border-top: 1px solid var(--header-line); display: grid; gap: 10px; }
    .lc-mobile__contact a { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--header-secondary); text-decoration: none; }
    .lc-mobile__contact svg { width: 18px; height: 18px; color: var(--header-primary); }

    /* ===== Light header (inner pages over a dark hero) ===== */
    /* Topbar */
    .lc-header--light .lc-topbar__usp { color: #fff; }
    .lc-header--light .lc-topbar__usp svg { color: #fff; }
    .lc-header--light .lc-topbar__usp--link:hover { color: var(--header-primary-light); }
    .lc-header--light .lc-topbar__divider { background: rgba(255, 255, 255, .28); }
    /* Main nav */
    .lc-header--light .lc-header__nav-link { color: #fff; }
    .lc-header--light .lc-header__nav-link:hover,
    .lc-header--light .lc-header__nav-link--active { color: #fff; }
    .lc-header--light .lc-header__nav-link::after { background: #fff; }
    /* Logo text (when the text logo is used instead of the image) */
    .lc-header--light .lc-header__logo-text { color: #fff; }
    .lc-header--light .lc-header__logo-text span { color: var(--header-primary-light); }
    .lc-header--light .lc-header__logo-sub { color: rgba(255, 255, 255, .75); }

    /* ===== Responsive ===== */
    @media (max-width: 1180px) {
        .lc-header__nav-link { padding: 10px 10px; font-size: 13.5px; }
        .lc-megamenu--w5 { width: 96vw; }
    }
    @media (max-width: 1024px) {
        .lc-header__nav, .lc-topbar { display: none; }
        .lc-header__mobile-toggle { display: flex; }
    }
    @media (max-width: 600px) {
        .lc-header__container, .lc-topbar__container { padding-left: 18px; padding-right: 18px; }
        .lc-header__logo-sub { display: none; }
    }
