/* EMMG responsive refinement layer — preserves the existing theme and assets */
:root{--emmg-green:#39a935;--emmg-dark:#17191b;--emmg-text:#30343a;--emmg-light:#f5f7f8}
html{scroll-behavior:smooth} body{overflow-x:hidden;color:var(--emmg-text)} img{max-width:100%;height:auto} .container{width:min(1200px,94%)}
a,button{transition:color .2s ease,background-color .2s ease,border-color .2s ease,transform .2s ease}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #78c96f;outline-offset:3px}
#masthead{position:relative;z-index:1000} #site-navigation{display:flex;align-items:center;gap:14px} #site-navigation .menu{min-width:0} #site-navigation .menu ul{list-style:none} #site-navigation .menu>ul{display:flex;align-items:center;flex-wrap:wrap} #site-navigation .menu li{position:relative} #site-navigation .menu li>a{display:block} #site-navigation .menu li>ul{display:none;position:absolute;top:100%;left:0;min-width:230px;max-width: min(320px,90vw);padding:8px 0;margin:0;background:#fff;box-shadow:0 12px 28px #0002;border-top:3px solid var(--emmg-green);z-index:1100} #site-navigation .menu li>ul li>ul{top:0;left:100%} #site-navigation .menu li:hover>ul,#site-navigation .menu li:focus-within>ul,#site-navigation .menu li.submenu-open>ul{display:block} #site-navigation .menu li>ul a{padding:11px 16px;line-height:1.35;white-space:normal;color:#24282c} #site-navigation .menu li>ul a:hover,#site-navigation .menu li>ul a:focus{background:var(--emmg-light);color:var(--emmg-green)} .emmg-submenu-toggle{border:0;background:transparent;color:inherit;padding:8px 10px;cursor:pointer;font-size:16px} #site-navigation .menu li.has-submenu>a{padding-right:28px} #site-navigation .menu li.has-submenu>.emmg-submenu-toggle{position:absolute;right:0;top:0}
/* prominent responsive hero headline */ #rev_slider_4_1 .tp-caption strong{color:var(--emmg-green)!important} .site-main .section-title .title{line-height:1.2} .ttm-btn:hover{transform:translateY(-2px)}
@media (max-width:1199px){#site-navigation{gap:5px} #site-navigation .menu>ul{flex-wrap:wrap} #site-navigation .menu li>a{font-size:13px}}
@media (max-width:991px){#site-navigation{display:block} #site-navigation .ttm-menu-toggle{display:block!important} #site-navigation .menu{display:none;width:100%;max-height:72vh;overflow-y:auto;background:#fff;box-shadow:0 10px 22px #0002} #site-navigation:has(#menu-toggle-form:checked) .menu{display:block} #site-navigation .menu>ul{display:block;padding:8px 0;margin:0} #site-navigation .menu li{display:block;width:100%} #site-navigation .menu li>a{padding:12px 48px 12px 16px!important;border-bottom:1px solid #e8e8e8;font-size:14px;color:#24282c} #site-navigation .menu li>ul,#site-navigation .menu li>ul li>ul{position:static;display:none;width:100%;max-width:none;min-width:0;box-shadow:none;border-top:0;border-left:3px solid var(--emmg-green);padding:0 0 0 10px;margin:0;background:#f7f8f8} #site-navigation .menu li.submenu-open>ul{display:block} #site-navigation .menu li>ul a{padding:11px 16px!important} #site-navigation .menu li.has-submenu>.emmg-submenu-toggle{top:2px;right:5px;width:40px;height:40px} #site-navigation .header-btn{display:none} .ttm-header-wrap .container,.ttm-stickable-header-w .container{width:96%} .tp-caption{max-width:90vw!important} }
@media (max-width:767px){h1{font-size:clamp(30px,8vw,42px)!important;line-height:1.12!important} h2{line-height:1.2} .container{width:92%} .ttm-row{padding-top:38px!important;padding-bottom:38px!important} .res-991-pr-0{padding-right:0!important} .ttm-topbar-wrapper .top-contact li{display:inline-block;margin:3px 7px 3px 0} .site-main .row>[class*="col-"]{margin-bottom:18px} footer .widget-area{padding-top:25px} }
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Final refinements: brochure aligned right, clean menu label, readable page text */
.ttm-header-wrap .header-btn, #masthead .header-btn { margin-left:auto !important; float:right !important; }
.ttm-header-wrap .header-btn a, #masthead .header-btn a { white-space:nowrap; }
#site-navigation .menu > ul > li > a::before,
#site-navigation .menu > ul > li > a::after { content:none !important; display:none !important; }
#site-navigation .menu li.has-submenu > .emmg-submenu-toggle { display:none !important; }
body { color:#000 !important; }
body p, body li, body td, body th, body label, body .ttm-text, body .text, body .entry-content,
body .entry-content p, body .entry-content li, body .ttm-list, body .ttm-fid-title,
body .ttm-fid-contents, body .breadcrumb, body .breadcrumb-item { color:#000 !important; font-size:calc(100% + 2px); }
@media (max-width:991px) {
  .ttm-header-wrap .header-btn, #masthead .header-btn { float:none !important; margin:12px 0 12px auto !important; text-align:right !important; }
  #site-navigation .menu > ul > li > a::before,
  #site-navigation .menu > ul > li > a::after { content:none !important; display:none !important; }
}

/* Latest requested adjustment: brochure button on the LEFT side of navigation */
.ttm-header-wrap #site-navigation,
#masthead #site-navigation { justify-content:flex-start !important; }
.ttm-header-wrap #site-navigation > .header-btn,
#masthead #site-navigation > .header-btn {
  order:-1 !important;
  margin-left:0 !important;
  margin-right:14px !important;
  float:none !important;
  align-self:center !important;
  text-align:left !important;
}
/* Remove any theme-generated arrow/caret beside Working Sectors */
#site-navigation .menu > ul > li > a::before,
#site-navigation .menu > ul > li > a::after,
#site-navigation .menu > ul > li.has-submenu > a::before,
#site-navigation .menu > ul > li.has-submenu > a::after,
#site-navigation .menu > ul > li > .emmg-submenu-toggle,
#site-navigation .menu > ul > li > .dropdown-toggle,
#site-navigation .menu > ul > li > .caret { display:none !important; content:none !important; }
@media (max-width:991px) {
  .ttm-header-wrap #site-navigation > .header-btn,
  #masthead #site-navigation > .header-btn { margin:10px 0 10px 0 !important; text-align:left !important; }
}


/* Latest fixes: white service-card text on the dark homepage background */
.featured-icon-box.style3 .featured-content,
.featured-icon-box.style3 .featured-title h5,
.featured-icon-box.style3 .featured-desc,
.featured-icon-box.style3 .featured-desc p {
  color: #ffffff !important;
}

/* Place the brochure button after the navigation (to the right of Contact) */
@media (min-width: 992px) {
  #site-navigation { display: flex !important; align-items: center !important; justify-content: flex-end !important; }
  #site-navigation .ttm-menu-toggle { order: 0 !important; }
  #site-navigation nav.menu { order: 1 !important; flex: 1 1 auto !important; }
  #site-navigation > .header-btn { order: 2 !important; margin: 0 0 0 16px !important; float: none !important; flex: 0 0 auto !important; text-align: right !important; }
}
@media (max-width: 991px) {
  #site-navigation > .header-btn { display: none !important; }
}


/* Definitive desktop header layout: logo left, navigation, then brochure at far right */
@media (min-width: 992px) {
  #site-header-menu .site-header-menu-inner > .container,
  #site-header-menu .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }
  #site-header-menu .site-branding {
    flex: 0 0 auto !important;
    margin-right: 10px !important;
  }
  #site-header-menu #site-navigation {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
  }
  #site-header-menu #site-navigation nav.menu {
    order: 1 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    margin-left: auto !important;
  }
  #site-header-menu #site-navigation nav.menu > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  #site-header-menu #site-navigation > .header-btn {
    order: 2 !important;
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 8px !important;
    float: none !important;
    text-align: right !important;
  }
  #site-header-menu #site-navigation .ttm-menu-toggle { order: 0 !important; }
}
@media (max-width: 991px) {
  #site-header-menu .site-header-menu-inner > .container,
  #site-header-menu .container { display: block !important; }
}

/* Accessibility/readability fix: white text over dark/photo backgrounds throughout all pages */
body,
body p, body li, body td, body th, body label,
body .ttm-text, body .text, body .entry-content,
body .entry-content p, body .entry-content li,
body .ttm-list, body .ttm-fid-title, body .ttm-fid-contents,
body .section-title, body .section-title h1, body .section-title h2,
body .section-title h3, body .section-title h4, body .section-title h5,
body .ttm-row:not(.ttm-bgcolor-white) p,
body .ttm-bgcolor-darkgrey, body .ttm-bgcolor-darkgrey p,
body .ttm-bgcolor-darkgrey li, body .ttm-bgcolor-darkgrey h1,
body .ttm-bgcolor-darkgrey h2, body .ttm-bgcolor-darkgrey h3,
body .ttm-bgcolor-darkgrey h4, body .ttm-bgcolor-darkgrey h5,
body .ttm-bgimage, body .ttm-bgimage p, body .ttm-bgimage li,
body .ttm-bgimage h1, body .ttm-bgimage h2, body .ttm-bgimage h3,
body .ttm-bgimage h4, body .ttm-bgimage h5,
body .featured-icon-box .featured-content,
body .featured-icon-box .featured-title h5,
body .featured-icon-box .featured-desc,
body .featured-icon-box .featured-desc p {
  color: #fff !important;
}
/* Preserve readable text on white dropdowns, form fields, and light cards */
#site-navigation .menu li > ul,
#site-navigation .menu li > ul a { color: #24282c !important; }
input, select, textarea { color: #222 !important; background-color: #fff; }

/* Corrected text colors per latest request: body text black; footer text white only. */
body, body p, body li, body td, body th, body label,
body .ttm-text, body .text, body .entry-content,
body .entry-content p, body .entry-content li,
body .ttm-list, body .ttm-fid-title, body .ttm-fid-contents,
body .section-title, body .section-title h1, body .section-title h2,
body .section-title h3, body .section-title h4, body .section-title h5,
body .ttm-row:not(.ttm-bgcolor-darkgrey) p,
body .ttm-bgimage p, body .ttm-bgimage li,
body .featured-icon-box .featured-content,
body .featured-icon-box .featured-title h5,
body .featured-icon-box .featured-desc,
body .featured-icon-box .featured-desc p {
  color: #000 !important;
}
/* Footer is the only area with white text. */
footer, footer p, footer li, footer td, footer th, footer label,
footer a, footer span, footer strong, footer h1, footer h2,
footer h3, footer h4, footer h5, footer h6,
footer .widget, footer .widget-title, footer .widget-title h3,
footer .text, footer .ttm-text, footer .footer-nav-menu,
footer .footer-nav-menu a, footer .social-icons a,
.first-footer, .first-footer p, .first-footer li, .first-footer a,
.first-footer span, .first-footer h1, .first-footer h2,
.first-footer h3, .first-footer h4, .first-footer h5,
.second-footer, .second-footer p, .second-footer li,
.second-footer a, .second-footer span, .second-footer h1,
.second-footer h2, .second-footer h3, .second-footer h4,
.second-footer h5, .second-footer h6 {
  color: #fff !important;
}
/* Keep white dropdowns and form fields readable. */
#site-navigation .menu li > ul,
#site-navigation .menu li > ul a { color: #24282c !important; }
input, select, textarea { color: #222 !important; background-color: #fff; }


/* Mobile nested navigation: allow each submenu level to open and remain visible. */
@media (max-width: 1199px), (hover: none) {
  #site-navigation .menu li.has-submenu > ul { display: none !important; position: static !important; visibility: visible !important; opacity: 1 !important; transform: none !important; width: 100% !important; min-width: 0 !important; box-shadow: none !important; }
  #site-navigation .menu li.has-submenu.submenu-open > ul { display: block !important; }
  #site-navigation .menu li.has-submenu > .emmg-submenu-toggle { display: inline-flex !important; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border: 0; background: transparent; color: #222; font-size: 20px; cursor: pointer; touch-action: manipulation; }
  #site-navigation .menu li.has-submenu > a { max-width: calc(100% - 48px); }
  #site-navigation .menu li.has-submenu.submenu-open > .emmg-submenu-toggle { transform: rotate(180deg); }
  #site-navigation .menu li.has-submenu > ul > li > ul { margin-left: 0 !important; }
}
.emmg-logbook-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:28px auto 36px; padding:0 15px; }
.emmg-logbook-cta a { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:12px 22px; border-radius:6px; font-weight:700; text-decoration:none !important; color:#fff !important; box-sizing:border-box; }
.emmg-logbook-cta .emmg-cta-call { background:#0877bd; }
.emmg-logbook-cta .emmg-cta-whatsapp { background:#168b45; }
.emmg-logbook-cta a:focus-visible { outline:3px solid #222; outline-offset:3px; }
@media (max-width: 575px) { .emmg-logbook-cta { gap:10px; } .emmg-logbook-cta a { flex:1 1 145px; padding:12px 10px; } }
