/*
 * Site overrides (loaded after the original theme CSS on every page; see PageController::render()).
 * Font: Titillium Web, sans-serif — already the theme font.
 *
 * Desktop header: compact, boxed to the same 1140px column as the page content, with the logo bar and
 * the orange menu bar sharing one width and one left edge. Tablet/mobile keep the theme's own header.
 */
@media (min-width: 1025px) {
  /* One shared, centred width for both bars (matches the 1140px content column). */
  #header .elementor-element-7990d13,
  #header .elementor-element-ee860f1 {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Space above the boxed header so it floats clear of the top edge of the page. */
  #header .elementor-element-7990d13 { margin-top: 40px; }

  /* Remove the translucent full-width strip behind the logo row so the page shows either side of the boxed header. */
  #header .elementor-element-834a3c0 > .elementor-background-overlay { display: none; }

  /* Logo row: compact and vertically centred (was 162px tall). */
  #header .elementor-element-7990d13 > .elementor-container { min-height: 0; align-items: center; }
  #header .elementor-element-7990d13 .elementor-widget-wrap { padding-top: 0 !important; padding-bottom: 0 !important; align-items: center; }
  #header .elementor-element-6ebd0d6 > .elementor-widget-container { padding-top: 10px; padding-bottom: 10px; }
  #header .elementor-element-6ebd0d6 .module-logo { padding-top: 0 !important; padding-bottom: 0 !important; }
  #header .elementor-element-469c722,
  #header .elementor-element-469c722 .elementor-widget-container,
  #header .elementor-element-469c722 .d-flex,
  #header .elementor-element-469c722 .ld-module-search { height: auto !important; min-height: 0 !important; }

  /* Give the phone numbers room beside the logo now that the row is narrower. */
  #header .elementor-element-09eeb62 { width: 78%; }
  #header .elementor-element-b3ebf53 { width: 22%; }

  /* Menu bar: compact (was 100px tall), with a little breathing room above and below the links. */
  #header .elementor-element-ee860f1 > .elementor-container { min-height: 0; }
  #header .elementor-element-ee860f1 .elementor-widget-wrap { padding-top: 6px; padding-bottom: 6px; align-items: center; }
  /* "Home" lines up with the logo's left edge — top-level menu only (NOT the dropdown lists). */
  #header .elementor-element-ee860f1 #primary-nav > li:first-child > a { padding-left: 0; }

  /* Dropdowns. Keep them open while the pointer crosses the bar padding, and start them at the bar's bottom edge. */
  #header .elementor-element-ee860f1 #primary-nav > li.menu-item-has-children { position: relative; }
  #header .elementor-element-ee860f1 #primary-nav > li.menu-item-has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }
  #header .elementor-element-ee860f1 #primary-nav > li > .nav-item-children { margin-top: 6px; }
  /* Same left padding and height on every item (the theme gave the first item less), soft shadow, rounded bottom corners. */
  #header .elementor-element-ee860f1 #primary-nav .nav-item-children { min-width: 240px; padding: 10px 0 !important; border-radius: 0 0 8px 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
  #header .elementor-element-ee860f1 #primary-nav .nav-item-children > li > a { display: block; padding: 11px 24px !important; line-height: 1.3; }
  #header .elementor-element-63fb728 { margin-top: 0; }
}

/*
 * Footer call-to-action band ("To get in touch please call ..."): compact.
 * It was 173px tall — 100px of padding plus spacing under the numbers — for two lines of text.
 */
.elementor-element-1fccca3 > .e-con-inner { padding-top: 20px; padding-bottom: 20px; }
.elementor-element-1fccca3 .ld-fh-element { margin-bottom: 0; }

/*
 * Accordions (About: Vision / Mission / Core Values, and the FAQ pages): even spacing.
 * - title and +/- icon share one row and are vertically centred (the icon used to float near the top)
 * - the same left/right padding on titles and answers, so their text lines up
 * - no stray space under the last line of an answer; breathing room before whatever follows the accordion
 */
.elementor-accordion .elementor-tab-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; }
.elementor-accordion .elementor-tab-title .elementor-accordion-title { order: 1; flex: 1 1 auto; line-height: 1.2; }
.elementor-accordion .elementor-tab-title .elementor-accordion-icon { order: 2; float: none; margin: 0; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.elementor-accordion .elementor-tab-content { padding: 8px 28px 24px; }
.elementor-accordion .elementor-tab-content > :last-child { margin-bottom: 0; }
/* Space after the accordion: flex-container pages (About) and classic-section pages. */
.e-con-inner:has(> .elementor-widget-accordion) { padding-bottom: 50px; }
.elementor-top-section:has(.elementor-widget-accordion) { padding-bottom: 50px; }

@media (max-width: 767px) {
  .elementor-accordion .elementor-tab-title { padding: 14px 18px; }
  .elementor-accordion .elementor-tab-content { padding: 6px 18px 18px; }
}
