/* Shared header: site-owned layout, independent of legacy float rules. */
.defne-header .header-upper { background: var(--color-surface); padding: 0; }
.defne-header .header-top-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.defne-header .header-brand { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; color: var(--color-tone-163f32); }
.defne-header .brand-logo { display: block; width: 106px; height: 132px; object-fit: contain; flex: 0 0 auto; }
.defne-header .brand-description { display: flex; flex-direction: column; gap: 6px; }
.defne-header .brand-service { font-family: 'Open Sans', sans-serif; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.defne-header .brand-detail { font-size: 13px; line-height: 1.5; color: var(--color-tone-61736b); }
.defne-header .header-utilities { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-width: 0; }
.defne-header .utility-link { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--color-tone-42564d); white-space: nowrap; }
.defne-header .utility-link > .fa { color: var(--color-tone-18895a); font-size: 19px; width: 21px; text-align: center; }
.defne-header .utility-link:hover { color: var(--color-tone-007db5); }
.defne-header .header-social { display: flex; align-items: center; gap: 7px; border-left: 1px solid var(--color-tone-e5ece8); padding-left: 20px; }
.defne-header .header-social a { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid var(--color-tone-e1e9e5); border-radius: 50%; color: var(--color-tone-61736b); font-size: 13px; }
.defne-header .header-social a:hover { color: var(--color-surface); background: var(--color-tone-18895a); border-color: var(--color-tone-18895a); }
.defne-header :is(.header-lower, .sticky-header) { background: var(--color-primary); border: 0; }
.defne-header .nav-outer { display: flex; align-items: center; justify-content: space-between; padding: 0; background: transparent; }
.defne-header :is(.header-lower, .sticky-header) .main-menu { float: none; flex: 1 1 auto; }
.defne-header :is(.header-lower, .sticky-header) .navbar-collapse { padding: 0; }
.defne-header :is(.header-lower, .sticky-header) .navigation { display: flex; float: none; }
.defne-header :is(.header-lower, .sticky-header) .navigation::before, .defne-header :is(.header-lower, .sticky-header) .navigation::after, .defne-header .nav-outer::before, .defne-header .nav-outer::after, .defne-header :is(.header-lower, .sticky-header) .navigation > li::after { display: none; }
.defne-header :is(.header-lower, .sticky-header) .navigation > li { float: none; margin: 0; border: 0; }
.defne-header :is(.header-lower, .sticky-header) .navigation > li > a { padding: 22px 19px; color: var(--color-surface); font-size: 13px; line-height: 20px; font-weight: 600; background: transparent; }
.defne-header :is(.header-lower, .sticky-header) .navigation > li:hover > a, .defne-header :is(.header-lower, .sticky-header) .navigation > li.current > a { color: var(--color-surface); background: rgba(255,255,255,.12); }
.defne-header .btn-outer { position: static; float: none; width: auto; flex: 0 0 auto; margin-left: 20px; background: transparent; }
.defne-header .btn-outer::before { display: none; }
.defne-header .btn-outer .quote-btn { display: inline-flex; align-items: center; gap: 20px; padding: 12px 22px; background: var(--color-surface); color: var(--color-primary); border-radius: 6px; font-size: 12px; line-height: 20px; font-weight: 700; }
.defne-header .btn-outer .quote-btn:hover { background: var(--color-tone-e7f3ed); color: var(--color-tone-104c34); }
.defne-header .sticky-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.defne-header .sticky-brand { display: flex; align-items: center; gap: 12px; color: var(--color-primary); font-size: 18px; font-weight: 700; white-space: nowrap; }
.defne-header .sticky-brand img { display: block; width: 45px; height: 56px; object-fit: contain; }
.defne-header .sticky-header .main-menu { float: none; }
.defne-header .sticky-header .navigation > li > a { font-size: 12px; padding: 24px 15px; }
.defne-header a:focus-visible, .defne-header button:focus-visible { outline: 3px solid var(--color-tone-00a8db); outline-offset: 3px; }
@media (max-width: 1199px) {
    .defne-header .header-top-row { gap: 20px; }
    .defne-header .brand-logo { width: 92px; height: 115px; }
    .defne-header .brand-service { font-size: 18px; }
    .defne-header .brand-detail { font-size: 12px; }
    .defne-header .header-utilities { gap: 18px; }
    .defne-header .header-social { display: none; }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li > a { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 900px) {
    .defne-header .header-top-row { flex-direction: column; gap: 18px; padding-top: 12px; padding-bottom: 18px; }
    .defne-header .header-utilities { justify-content: center; gap: 32px; width: 100%; }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li > a { font-size: 11px; padding-left: 10px; padding-right: 10px; }
    .defne-header .btn-outer { margin-left: 10px; }
    .defne-header .btn-outer .quote-btn { padding: 10px 14px; gap: 12px; font-size: 11px; }
}
@media (max-width: 767px) {
    .defne-header .brand-logo { width: 80px; height: 100px; }
    .defne-header .brand-service { font-size: 18px; }
    .defne-header .header-utilities { gap: 8px; }
    .defne-header .utility-link { flex: 1; flex-direction: column; gap: 6px; font-size: 10px; text-align: center; white-space: normal; }
    .defne-header .utility-link > .fa { font-size: 17px; }
    .defne-header .nav-outer { position: relative; min-height: 60px; display: block; }
    .defne-header :is(.header-lower, .sticky-header) .navbar-header { display: block; float: none; width: 100%; padding: 0 135px 0 0; text-align: left; }
    .defne-header .main-menu .navbar-header .navbar-toggle { display: flex; align-items: center; gap: 12px; float: none; margin: 9px 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; color: var(--color-surface); background: transparent; }
    .defne-header .toggle-label { font-size: 12px; line-height: 18px; font-weight: 600; }
    .defne-header .toggle-bars { display: grid; gap: 4px; }
    .defne-header .main-menu .navbar-header .navbar-toggle .icon-bar { margin: 0; width: 19px; height: 2px; background: var(--color-surface); }
    .defne-header :is(.header-lower, .sticky-header) .navbar-collapse { border: 0; box-shadow: none; margin: 0; max-height: none; }
    .defne-header :is(.header-lower, .sticky-header) .navigation { display: block; margin: 0; background: var(--color-primary); }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li { border-top: 1px solid rgba(255,255,255,.15); }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li > a { padding: 14px 12px; font-size: 12px; }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li > ul { background: var(--color-tone-125437); border: 0; }
    .defne-header :is(.header-lower, .sticky-header) .navigation > li > ul > li > a { color: var(--color-surface); }
    .defne-header .btn-outer { position: absolute; top: 10px; right: 0; left: auto; margin: 0; width: auto !important; height: auto !important; }
    .defne-header .btn-outer .quote-btn { padding: 10px 14px !important; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .defne-header a { transition: none; } }

/* The compact header uses the same navigation skin as the main header. */
.defne-header .sticky-header { background: var(--color-primary); border-bottom: 1px solid var(--color-primary-strong); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.defne-header .sticky-header-row { min-height: 70px; }
.defne-header .sticky-brand { color: var(--color-surface); }
.defne-header .sticky-brand img { background: var(--color-surface); border-radius: 4px; padding: 3px; }
.defne-header .sticky-header .navigation > li::after { display: none; }

.defne-header .sticky-header .submenu-toggle { color: var(--color-surface); }
