/* CMS integration only. The original theme owns typography, palette, spacing,
   header, footer, buttons, cards and responsive layout. */
/* Keep the original desktop header; solid, consistently sized compact header below its menu breakpoint. */
@media(max-width: 1199px) {
    body.cms-theme { padding-top: var(--cms-header-height, 76px); }
    body.cms-theme #header .navbar { background: var(--header-bg-color, #f5f5f5); opacity: 1 !important; transform: none !important; padding: 14px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
    .cms-theme #header .container.header { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 0; width: 100%; }
    .cms-theme #header .navbar-brand { margin: 0; flex-shrink: 0; }
    .cms-theme #header .navbar-brand img { width: 175px; max-width: 100%; height: auto; }
    .cms-theme #header .navbar-nav.toggle { margin-left: auto; flex-shrink: 0; }
    .cms-theme #header .navbar-nav.toggle .nav-link { padding: 10px; }
    .cms-theme #header .navbar-nav.action { flex-shrink: 0; }
    .cms-theme #header .navbar-nav.action .nav-item { margin: 0 !important; }
    .cms-theme #header .navbar-nav.action .btn { white-space: nowrap; padding: 10px 16px; }
}
@media(max-width: 575px) {
    body.cms-theme #header .navbar { padding: 12px 15px; }
    .cms-theme #header .container.header { gap: 6px; }
    .cms-theme #header .navbar-brand img { width: 145px; }
    .cms-theme #header .navbar-nav.action .btn { padding: 9px 12px; font-size: .875rem; }
    .cms-theme #header .navbar-nav.action .btn .icon-rocket { display: none; }
}
@media(max-width: 359px) {
    .cms-theme #header .navbar-brand img { width: 120px; }
    .cms-theme #header .navbar-nav.action .btn { padding: 9px; font-size: .8125rem; }
}
.cms-theme #menu .modal-dialog { width: min(420px, 100%); max-width: 100%; margin: 0 0 0 auto; min-height: 100vh; }
.cms-theme #menu .modal-content.full { min-height: 100vh; min-height: 100dvh; max-height: 100dvh; background: var(--header-bg-color, #f5f5f5); color: var(--primary-t-color); }
.cms-theme #menu .modal-header { padding: 20px 24px; flex-shrink: 0; cursor: pointer; }
.cms-theme #menu .modal-body.menu { display: block; overflow-y: auto; padding: 16px 24px; }
.cms-theme #menu .menu > .row { margin: 0; }
.cms-theme #menu .menu .items { width: 100%; margin: 0; text-align: left !important; }
.cms-theme #menu .cms-mobile-list { display: block; width: 100%; padding: 0; }
.cms-theme #menu .cms-mobile-list > .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; width: 100%; border-bottom: 1px solid rgba(0,0,0,.1); }
.cms-theme #menu .cms-mobile-list > .nav-item > .nav-link { grid-column: 1; padding: 16px 0; text-align: left; font-size: 1.0625rem; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; color: inherit; }
.cms-theme #menu .cms-menu-expander { grid-column: 2; grid-row: 1; min-width: 44px; min-height: 44px; margin: 0; padding: 10px; color: inherit; }
.cms-theme #menu .cms-mobile-list > .nav-item > .dropdown-menu { grid-column: 1 / -1; position: static; float: none; width: 100%; min-width: 0; padding: 0 0 12px 16px; margin: 0; text-align: left; }
.cms-theme #menu .dropdown-menu .nav-item { display: block; }
.cms-theme #menu .dropdown-menu .nav-link { display: block; padding: 10px 0; font-size: .9375rem; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; color: inherit; }
.cms-rich-editor-content { width: 100%; min-width: 0; }
.cms-rich-editor-content p, .cms-rich-editor-content li { white-space: normal; }
.cms-single-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.cms-single-form .form-control { width: 100%; margin-bottom: 20px; }
.cms-single-form textarea { min-height: 130px; }
.cms-single-form select[multiple] { min-height: 125px; }
.cms-single-form .cms-form-status { white-space: normal; }
.cms-quote-dialog { border: 0; border-radius: 4px; width: min(740px, 94vw); max-height: 90vh; overflow: auto; padding: 32px; background: var(--hero-bg-color, #f5f5f5); color: var(--primary-p-color); }
.cms-quote-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.cms-quote-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cms-quote-heading h2 { font-size: 2rem; margin: 0; }
.cms-quote-close { background: transparent; color: inherit; border: 1px solid currentColor; padding: 6px 12px; cursor: pointer; }
@media(max-width: 575px) { .cms-quote-dialog { padding: 22px; } .cms-quote-heading h2 { font-size: 1.5rem; } }
.cms-theme main { overflow: clip; }
.cms-theme .cms-page-heading { font-size: 2.5rem; }
.cms-theme .cms-card-image { width: 100%; height: 180px; object-fit: contain; margin-bottom: 1.5rem; }
.cms-theme .cms-cta-image { max-width: 600px; height: auto; }
.cms-theme .cms-rich-text { overflow-wrap: anywhere; }
.cms-theme .cms-faq { padding: 0; margin-bottom: 1rem; }
.cms-theme .cms-faq summary { cursor: pointer; font-weight: 600; }
.cms-theme .cms-process .list-group-item { background: transparent; border: 0; }
.cms-theme .cms-contact-form .step-group[hidden],
.cms-theme .cms-contact-form .step-title[hidden],
.cms-theme .cms-contact-form .gallery[hidden] { display: none !important; }
.cms-theme .cms-contact-form .step-group { width: 100%; }
.cms-theme .cms-contact-form .step-group:not([hidden]) { display: block; }
.cms-theme .cms-menu-expander,
.cms-theme .cms-menu-group { background: transparent; border: 0; color: inherit; cursor: pointer; }
.cms-theme .cms-menu-expander { padding: 0 4px; margin-left: -10px; }
.cms-theme .navbar-nav.items > .dropdown { display: inline-flex; align-items: center; }
.cms-theme .navbar-nav.items > .dropdown > .nav-link { padding-right: 8px; }
.cms-theme .navbar-nav.items > .dropdown > .dropdown-menu { top: 100%; }
.cms-theme .menu .dropdown-menu { position: static; }
.cms-theme .dropdown.show > .dropdown-menu { display: block; visibility: visible; opacity: 1; transform: none; }
.cms-theme .cms-form-status { margin-top: 1rem; }
.cms-preview [data-cms-section]:hover { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.cms-preview [data-cms-section] { cursor: pointer; }
@media (min-width: 1200px) {
    .cms-theme .navbar-nav.items > .dropdown:focus-within > .dropdown-menu { display: block; visibility: visible; opacity: 1; }
}
@media (max-width: 1199px) {
    .cms-theme .menu .cms-menu-expander { margin-left: 0; padding: 10px; }
    .cms-theme .menu .navbar-nav.items > .dropdown { display: block; }
}
@media (max-width: 767px) {
    .cms-theme .cms-page-heading { font-size: 2rem; }
    .cms-theme .cms-contact-form .gallery { margin-top: 2rem; }
}
