
/* ==========================================================================
   HEADER — rebuilt 23 Nov (a later style.css replacement wiped the earlier block)
   Layout: crest+tagline left, nav centre, phone right. Top bar scrolls away.
   ========================================================================== */
#top-bar-wrap { position: static !important; z-index: auto !important; }
#top-bar-wrap .top-bar-inner { display: flex !important; justify-content: center !important; align-items: center; }
#top-bar-wrap .top-bar-left { width: 100% !important; text-align: center !important; }
#top-bar-wrap .top-bar-right { display: none !important; }
#top-bar-wrap .topbar-content { display: inline-block; font-size: 18px !important; letter-spacing: .2px; }

#site-header.fixed-scroll { position: sticky !important; top: 0; z-index: 9999; }
#site-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px;
  min-height: 210px;
  padding-top: 10px;
  padding-bottom: 10px;
}
#site-logo { order: 1; flex: 0 0 auto; display: flex !important; flex-direction: column !important; align-items: center !important; }
#site-logo #site-logo-inner img { width: auto !important; max-width: none !important; height: 190px !important; max-height: none !important; }
.ppm-header-tagline {
  display: block !important;
  order: 2;
  width: 100% !important;
  margin: -6px 0 0 0 !important;
  font-family: "Roboto Slab", Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.3px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: uppercase;
  color: #D4B471 !important;
  white-space: nowrap;
}
#site-navigation-wrap { order: 2; flex: 1 1 auto; display: flex !important; justify-content: center !important; }
#site-header .after-header-content { order: 3; flex: 0 0 auto; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
#site-header .ppm-phone-label { display: block !important; font-size: 14px !important; color: #F8F9FA !important; letter-spacing: .3px; margin: 0 0 2px !important; }
#site-header .ppm-header-phone { display: block !important; font-size: 24px !important; line-height: 1.1 !important; font-weight: 700 !important; color: #C5A866 !important; white-space: nowrap; }

/* Shrunk (sticky) state */
.is-sticky #site-header-inner { min-height: 68px !important; padding-top: 2px; padding-bottom: 2px; }
.is-sticky #site-logo #site-logo-inner img { height: 56px !important; }
.is-sticky .ppm-header-tagline { display: none !important; }
.is-sticky #site-header .ppm-phone-label { font-size: 11px !important; }
.is-sticky #site-header .ppm-header-phone { font-size: 18px !important; }
.is-sticky #site-navigation-wrap { font-size: 15px; }

@media (max-width: 1024px) {
  #site-header-inner { min-height: 150px; }
  #site-logo #site-logo-inner img { height: 130px !important; }
  .ppm-header-tagline { font-size: 13px !important; letter-spacing: 1.1px !important; }
  #site-header .ppm-header-phone { font-size: 20px !important; }
}
@media (max-width: 768px) {
  #site-header-inner { min-height: 104px; gap: 12px; }
  #site-logo #site-logo-inner img { height: 92px !important; }
  .ppm-header-tagline { font-size: 10px !important; letter-spacing: .9px !important; margin-top: -4px !important; }
  #site-header .ppm-phone-label { display: none !important; }
  #site-header .ppm-header-phone { font-size: 17px !important; }
  .is-sticky #site-header-inner { min-height: 56px !important; }
  .is-sticky #site-logo #site-logo-inner img { height: 40px !important; }
}

/* Sticky has to be fixed: OceanWP's sticky wrapper is exactly header-height, so position:sticky
   has no travel. A spacer keeps the layout from jumping. */
#site-header.fixed-scroll { position: static !important; }
#site-header.is-sticky,
body.is-sticky #site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}
body.is-sticky #site-header-sticky-wrapper { min-height: 68px !important; }
@media (max-width: 768px) {
  body.is-sticky #site-header-sticky-wrapper { min-height: 56px !important; }
}

/* Footer (OceanWP widgets) */
#footer-widgets { padding: 56px 0 40px; }
#footer-widgets .footer-box { text-align: left; }
#footer-widgets .footer-widget .widget-title,
#footer-widgets h4 { font-size: 15px !important; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 16px; }
#footer-widgets, #footer-widgets p, #footer-widgets li { font-size: 15px; line-height: 1.7; }
#footer-widgets a { text-decoration: none; }
#footer-widgets a:hover, #footer-widgets a:focus { }
#footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; }
#footer-bottom #copyright { font-size: 13px; }
#footer-bottom #copyright a { }
@media (max-width: 768px) {
  #footer-widgets { padding: 40px 0 24px; }
  #footer-widgets .footer-box { text-align: center; margin-bottom: 28px; }
}

/* ===== EMERGENCY FIX 23 Nov 09:45 — neutralise the returned mega-menu CSS and logo overflow ===== */
/* The crest container was height-constrained, so the 190px logo overflowed and the tagline cut through it. */
#site-logo { height: auto !important; min-height: 0 !important; overflow: visible !important; }
#site-logo #site-logo-inner { height: auto !important; }
#site-logo #site-logo-inner img { display: block !important; }

/* Phone block: both lines centred on each other. */
#site-header .after-header-content,
#site-header .after-header-content-inner { text-align: center !important; }
#site-header .after-header-content-inner .ppm-phone-label { text-align: center !important; }
#site-header .after-header-content-inner .ppm-header-phone { text-align: center !important; }

/* Mobile header: centred crest, no desktop nav, no phone block. */
@media (max-width: 768px) {
  #site-header-inner { min-height: 132px !important; align-items: center !important; justify-content: center !important; position: relative; }
  #site-navigation-wrap { display: none !important; }
  #site-header .after-header-content { display: none !important; }
  #site-logo { margin: 0 auto !important; }
  #site-logo #site-logo-inner img { height: 118px !important; }
  .ppm-header-tagline { margin-top: -2px !important; }
  .oceanwp-mobile-menu-icon { display: flex !important; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 768px) and (min-width: 481px) {
  #site-logo #site-logo-inner img { height: 108px !important; }
}

/* ===== FIX 23 Nov 09:55 — container width, footer rules, mobile images ===== */
#site-header-inner {
  width: 100% !important;
  max-width: 1440px !important;
  box-sizing: border-box !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
@media (max-width: 768px) {
  #site-header-inner { width: 100% !important; max-width: 100% !important; padding-left: 14px !important; padding-right: 14px !important; }
}

/* Footer: strip blue rules/markers/underlines next to every item */
#footer-widgets, #footer-widgets * { border-left: 0 !important; border-right: 0 !important; box-shadow: none !important; }
#footer-widgets ul, #footer-widgets ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#footer-widgets li { list-style: none !important; border: 0 !important; padding-left: 0 !important; margin-left: 0 !important; }
#footer-widgets li::before, #footer-widgets li::marker, #footer-widgets p::before { content: none !important; display: none !important; }
#footer-widgets a { text-decoration: none !important; border-bottom: 0 !important; }
#footer-widgets a:hover, #footer-widgets a:focus { }
#footer-bottom a { text-decoration: none !important; border-bottom: 0 !important; }

/* Mobile: never crop card images */
@media (max-width: 768px) {
  .elementor-widget-image img, .elementor-image img, .elementor-widget-image-box img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* Phone block: force the label and number onto the same centre line (measured 44px apart). */
#site-header .after-header-content-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
}
#site-header .after-header-content-inner .ppm-phone-label {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  text-align: center !important;
}
#site-header .after-header-content-inner .ppm-header-phone {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  text-align: center !important;
}

/* Footer alignment — Terry wants it centred. */
#footer-widgets .footer-box,
#footer-widgets .footer-box * { text-align: center !important; }
#footer-widgets .widget-title { text-align: center !important; }
#footer-widgets ul, #footer-widgets ol { display: inline-block !important; text-align: center !important; }
#footer-widgets li { text-align: center !important; }
#footer-bottom, #footer-bottom #copyright { text-align: center !important; }

#footer-widgets .footer-box .widget-title, #footer-widgets .footer-widget .widget-title, #footer-widgets h4 { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 768px) {
  #top-bar-wrap .topbar-content { font-size: 16px !important; line-height: 1.35 !important; padding: 8px 14px !important; display: block !important; }
  #top-bar-wrap .top-bar-inner { padding: 0 !important; }
  #top-bar-wrap { padding: 0 !important; }
}

@media (max-width: 768px) {
  #top-bar-wrap, #top-bar, #top-bar-wrap .top-bar-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
  #top-bar-wrap .topbar-content { font-size: 19px !important; line-height: 1.28 !important; padding: 7px 12px !important; display: block !important; }
  .is-sticky .oceanwp-mobile-menu-icon,
  .is-sticky .oceanwp-mobile-menu-icon .mobile-menu { height: 40px !important; min-height: 0 !important; display: flex !important; align-items: center !important; }
  .is-sticky .oceanwp-mobile-menu-icon .oceanwp-text { height: 40px !important; line-height: 40px !important; }
}

#site-header-sticky-wrapper { height: auto !important; }
body.is-sticky #site-header-sticky-wrapper { height: 68px !important; }
@media (max-width: 768px) {
  body.is-sticky #site-header-sticky-wrapper { height: 56px !important; }
}

@media (max-width: 768px) {
  #site-header-inner { position: relative !important; }
  #site-header .after-header-content { display: flex !important; position: absolute !important; left: 12px !important; top: 50% !important; transform: translateY(-50%) !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; text-align: left !important; width: auto !important; margin: 0 !important; padding: 0 !important; z-index: 3; }
  #site-header .ppm-phone-label { display: block !important; font-size: 11px !important; line-height: 1.2 !important; margin: 0 0 1px !important; color: #A3A7AC !important; }
  #site-header .ppm-header-phone { display: block !important; font-size: 14px !important; line-height: 1.2 !important; white-space: nowrap !important; color: #C5A866 !important; }
}

@media (max-width: 768px) {
  #site-header .after-header-content,
  #site-header .after-header-content-inner,
  #site-header .ppm-header-phone { height: auto !important; }
  #site-header .after-header-content-inner {
    width: auto !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  #site-header #site-logo { position: relative !important; left: -6px !important; }
  #site-header .after-header-content { right: auto !important; }
  body #site-header .ppm-header-phone {
    height: 16.8px !important;
    max-height: 16.8px !important;
    font-size: 14px !important;
    line-height: 16.8px !important;
  }
}

body:not(.is-sticky) #site-header.fixed-scroll { position: relative !important; }

@media (max-width: 768px) {
  #site-header .ppm-header-phone::before,
  #site-header .after-header-content-inner .ppm-header-phone::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #site-header .after-header-content { top: 50% !important; transform: translateY(-50%) !important; align-items: flex-start !important; }
  #site-header .after-header-content-inner { flex-direction: column !important; align-items: flex-start !important; text-align: left !important; gap: 1px !important; }
  #site-header .ppm-phone-label { font-size: 10px !important; line-height: 1.2 !important; }
  #site-header .ppm-header-phone { font-size: 14px !important; line-height: 1.2 !important; display: block !important; }
  body.is-sticky #site-header .ppm-header-phone { font-size: 14px !important; }
}

@media (max-width: 768px) {
  .elementor-element-260ce03 { gap: 10px !important; row-gap: 10px !important; }
  .elementor-element-260ce03 > .elementor-element { margin-top: 0 !important; margin-bottom: 0 !important; }
}
