/* Section system: every top-level block is a band with its own background, a divider and one vertical rhythm. */

/* Elementor pages that opt in (landing and About): alternating white and light bands, content centred at 1200px */
.gmc-sections .elementor > .e-con {
  width: 100% !important; max-width: none !important; margin: 0 !important; box-sizing: border-box;
  padding: clamp(32px, 4.5vw, 56px) max(20px, calc((100% - 1200px) / 2)) !important;
  background-color: #fff; border-top: 1px solid var(--gmc-border);
}
.gmc-sections .elementor > .e-con:nth-child(odd) { background-color: #e8eef5; }
.gmc-sections .elementor > .e-con:first-child { border-top: 0; }

/* The hero keeps its own navy gradient, on every page that has it */
.gmc-sections .elementor > .e-con.elementor-element-e4e23fa {
  background:
    radial-gradient(60% 50% at 85% 0%, rgb(62 207 127 / .18), transparent 70%),
    radial-gradient(120% 120% at 50% -10%, var(--gmc-navy-2) 0%, var(--gmc-navy) 45%, var(--gmc-ink) 100%);
  border-top: 0; align-items: center;
}
.gmc-sections .elementor-element-e4e23fa .elementor-heading-title { color: #fff !important; }
.gmc-sections .elementor-element-e4e23fa .elementor-widget-text-editor, .gmc-sections .elementor-element-e4e23fa .elementor-widget-text-editor *,
.gmc-sections .elementor-element-e4e23fa li { color: #c5d8ea !important; }
.gmc-sections .elementor-element-e4e23fa .elementor-button { background-color: var(--gmc-green-2) !important; color: var(--gmc-ink) !important; border-radius: 999px; }

/* Blocks inside a band fill the band's content width (they were 74% wide with auto margins) */
.gmc-sections .elementor > .e-con:not(.elementor-element-e4e23fa) > .e-con { width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Tighter gaps: Elementor's 50px spacers and per-block padding were stacking up */
.gmc-sections .elementor-widget-spacer .elementor-spacer-inner { height: 4px !important; }
.gmc-sections .elementor > .e-con > .e-con { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Section headings: one size, centred, with the green rule */
.gmc-sections .elementor-widget-heading { text-align: center; }
.gmc-sections .elementor > .e-con:not(.elementor-element-e4e23fa) .elementor-widget-heading .elementor-heading-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--gmc-navy); text-align: center;
}
.gmc-sections .elementor > .e-con:not(.elementor-element-e4e23fa) .elementor-widget-heading .elementor-heading-title::after {
  content: ""; display: block; width: 2.5rem; height: 3px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2));
}

/* Images: contained and rounded instead of edge to edge */
.gmc-sections .elementor-widget-image img { max-width: 100%; height: auto; border-radius: var(--gmc-radius); }
.gmc-sections .elementor-element-318be35 img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* The designed HTML blocks (categories, packages) already centre themselves; drop their extra outer padding */
.gmc-sections .ath-cats, .gmc-sections .ath-fleet { padding-top: 0 !important; padding-bottom: 0 !important; background: transparent !important; }

/* Reading pages: section titles written as bold text become real headings with a divider */
.gmc-sec {
  margin: 2.25rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--gmc-border);
  font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gmc-navy);
}
.gmc-sec:first-child, .gmc-sec:first-of-type { margin-top: 1.5rem; }
body.has-gmc-hero .elementor-widget-text-editor h2 { border-top: 1px solid var(--gmc-border); padding-top: 1.5rem; }
body.has-gmc-hero .elementor-widget-text-editor h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

@media (max-width: 768px) {
  .gmc-sections .elementor > .e-con { padding: 32px 16px !important; }
}

.gmc-sections .stats-container-large { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Client logo grid */
.gmc-clients { width: 100%; }
.gmc-clients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gmc-clients__grid li {
  display: flex; align-items: center; justify-content: center; height: 84px; padding: 12px; background: #fff;
  border: 1px solid var(--gmc-border); border-radius: var(--gmc-radius); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gmc-clients__grid li:hover { border-color: var(--gmc-green); box-shadow: var(--gmc-shadow); transform: translateY(-1px); }
.gmc-clients__grid img { display: block; max-width: 100%; height: auto; border-radius: 0 !important; aspect-ratio: auto !important; }
.gmc-clients.is-collapsed .gmc-clients__grid { max-height: calc(5 * 96px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.gmc-clients__more {
  display: block; margin: 20px auto 0; padding: 11px 26px; border-radius: 999px; border: 1px solid var(--gmc-navy); background: #fff; color: var(--gmc-navy);
  font-family: var(--gmc-font); font-weight: 600; font-size: .9rem; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.gmc-clients__more:hover { background: var(--gmc-navy); color: #fff; }
@media (max-width: 600px) { .gmc-clients__grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; } .gmc-clients__grid li { height: 72px; padding: 8px; } .gmc-clients.is-collapsed .gmc-clients__grid { max-height: calc(6 * 80px); } }
.gmc-clients button.gmc-clients__more { background: #fff !important; color: var(--gmc-navy) !important; border: 1px solid var(--gmc-navy) !important; text-transform: none !important; letter-spacing: 0 !important; width: auto; }
.gmc-clients button.gmc-clients__more:hover { background: var(--gmc-navy) !important; color: #fff !important; }

/* Accreditations: intro band + certificates band */
body.page-template-default.gmc-sections .elementor-element-07ceb2c, .gmc-sections .elementor-element-07ceb2c * { color: var(--gmc-navy) !important; }
.gmc-sections .elementor-element-07ceb2c { text-align: center; font-size: 1.15rem; line-height: 1.7; max-width: 820px; margin: 0 auto; }
.gmc-sections .elementor-element-07ceb2c strong { color: var(--gmc-green) !important; }
.gmc-sections .elementor-element-c091708 .elementor-widget-image img {
  border: 1px solid var(--gmc-border); box-shadow: var(--gmc-shadow); background: #fff; border-radius: var(--gmc-radius);
}
.gmc-sections .elementor-element-c091708 { gap: 28px; }

/* Reviews: a swipeable carousel on phones and small tablets (the three-column grid squeezed them to ~100px) */
.gmc-reviews__dots { display: none; }
@media (max-width: 820px) {
  .e-con-inner.gmc-reviews, .e-con-inner:has(> .elementor-widget .comm-testimonial) {
    display: flex !important; flex-wrap: nowrap !important; gap: 14px !important; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 20px 14px !important; margin: 0 -20px; width: calc(100% + 40px) !important; max-width: none !important; box-sizing: border-box;
  }
  .e-con-inner.gmc-reviews::-webkit-scrollbar { display: none; }
  .e-con-inner.gmc-reviews > .elementor-widget, .e-con-inner:has(> .elementor-widget .comm-testimonial) > .elementor-widget {
    flex: 0 0 86% !important; width: 86% !important; max-width: 420px; scroll-snap-align: center; margin: 0 !important;
  }
  .gmc-reviews .comm-testimonial { height: 100%; box-sizing: border-box; }
  .gmc-reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .gmc-reviews__dots span { width: 8px; height: 8px; border-radius: 999px; background: #c4d1dc; transition: width .2s, background .2s; }
  .gmc-reviews__dots span.is-on { width: 22px; background: var(--gmc-green); }
}

/* Client grid: explicit column counts. With auto-fill, Chrome sized the widget as if the grid had one column once
   expanded, leaving thousands of pixels of white space under the logos. */
.gmc-clients__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1199px) { .gmc-clients__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gmc-clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gmc-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 340px) { .gmc-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Best Sellers slider: readable text over the photo, brand buttons, sensible size on phones */
.gmc-sections .elementor-widget-slides { border-radius: var(--gmc-radius); overflow: hidden; }
.gmc-sections .elementor-widget-slides .swiper-slide-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(7 28 48 / .82) 0%, rgb(7 28 48 / .5) 48%, rgb(7 28 48 / .08) 100%);
}
.gmc-sections .elementor-widget-slides .swiper-slide-contents { position: relative; z-index: 1; max-width: 640px; text-align: left; }
.gmc-sections .elementor-widget-slides .elementor-slide-heading {
  color: #fff !important; font-size: clamp(1.6rem, 3.2vw, 2.6rem) !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.12 !important; margin-bottom: 8px;
}
.gmc-sections .elementor-widget-slides .elementor-slide-description {
  color: #d5e2ee !important; font-size: clamp(.95rem, 1.6vw, 1.15rem) !important; line-height: 1.45 !important; margin-bottom: 18px;
}
.gmc-sections .elementor-widget-slides .elementor-slide-button {
  background: var(--gmc-green-2) !important; color: var(--gmc-ink) !important; border: 0 !important; border-radius: 999px !important; font-weight: 700; padding: 10px 22px;
}
.gmc-sections .elementor-widget-slides .elementor-swiper-button {
  width: 40px; height: 40px; border-radius: 999px; background: rgb(255 255 255 / .16); color: #fff; display: flex; align-items: center; justify-content: center;
}
.gmc-sections .elementor-widget-slides .elementor-swiper-button svg, .gmc-sections .elementor-widget-slides .elementor-swiper-button i { color: #fff; fill: #fff; width: 18px; height: 18px; font-size: 18px; }
.gmc-sections .elementor-widget-slides .swiper-pagination-bullet { background: #fff; opacity: .5; }
.gmc-sections .elementor-widget-slides .swiper-pagination-bullet-active { background: var(--gmc-green-2); opacity: 1; }
@media (max-width: 768px) {
  .gmc-sections .elementor-widget-slides .elementor-main-swiper, .gmc-sections .elementor-widget-slides .swiper-slide, .gmc-sections .elementor-widget-slides .swiper-slide-inner { height: 360px !important; }
  .gmc-sections .elementor-widget-slides .swiper-slide-inner { padding: 0 !important; align-items: flex-end !important; }
  .gmc-sections .elementor-widget-slides .swiper-slide-inner::before { background: linear-gradient(0deg, rgb(7 28 48 / .9) 0%, rgb(7 28 48 / .55) 55%, rgb(7 28 48 / .1) 100%); }
  .gmc-sections .elementor-widget-slides .swiper-slide-contents { padding: 0 20px 44px; max-width: none; width: 100%; box-sizing: border-box; }
  .gmc-sections .elementor-widget-slides .elementor-slide-heading { font-size: 1.5rem !important; }
  .gmc-sections .elementor-widget-slides .elementor-swiper-button { width: 34px; height: 34px; }
}
@media (max-width: 768px) { .gmc-sections .elementor-widget-slides .elementor-swiper-button { display: none; } }
