/* ==========================================================================
   Baja Pool Plaster - company & resource pages (Contact, About, Blog hub)
   Loaded after baja-pages.css on every rebuilt inner page. Nothing here hides
   content until JavaScript runs.
   ========================================================================== */

/* Contact: form + details ------------------------------------------------*/
:is(.elementor-page, .bp-landing) .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}
:is(.elementor-page, .bp-landing) .estimate-form--contact { padding: clamp(24px, 3.2vw, 44px); border-top: 4px solid var(--pool-400); scroll-margin-top: calc(var(--hdr-stuck, 84px) + 16px); }
:is(.elementor-page, .bp-landing) .estimate-form--contact h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); margin-bottom: 8px; }
:is(.elementor-page, .bp-landing) .estimate-form--contact .form-intro { font-size: 15.5px; line-height: 1.6; margin-bottom: 26px; }
:is(.elementor-page, .bp-landing) .contact-aside { display: grid; gap: 18px; }
/* Contact aside: sticky on the main page scroll when it fits below the header;
   taller than the viewport (.is-long, baja-home.js) it simply scrolls with the
   page. No inner scrollbar, no separately sticky card. */
@media (min-width: 961px) {
  :is(.elementor-page, .bp-landing) .contact-aside { position: sticky; top: calc(var(--hdr-stuck, 84px) + 24px); align-self: start; }
  :is(.elementor-page, .bp-landing) .contact-aside.is-long { position: static; }
}
:is(.elementor-page, .bp-landing) .contact-card {
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: clamp(18px, 1.9vw, 24px);
  background: linear-gradient(160deg, #0D3B58 0%, #082A40 100%);
  color: #D5E6F0;
}
:is(.elementor-page, .bp-landing) .contact-card p { margin: 0; }
:is(.elementor-page, .bp-landing) .contact-card__label { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pool-300); }
:is(.elementor-page, .bp-landing) .contact-card__phone { margin-top: 6px !important; }
:is(.elementor-page, .bp-landing) .contact-card__phone a { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; color: #FFFFFF; }
:is(.elementor-page, .bp-landing) .contact-list { margin: 18px 0 0; }
:is(.elementor-page, .bp-landing) .contact-list > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
:is(.elementor-page, .bp-landing) .contact-list dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9FC3D8; padding-top: 2px; }
:is(.elementor-page, .bp-landing) .contact-list dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: #FFFFFF; overflow-wrap: anywhere; }
:is(.elementor-page, .bp-landing) .contact-list a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
:is(.elementor-page, .bp-landing) .contact-next {
  margin: 0;
  padding: clamp(20px, 2.2vw, 26px);
  border-radius: clamp(18px, 1.9vw, 24px);
  border: 1px solid rgba(10, 118, 190, .18);
  background: #FFFFFF;
}
@media (max-width: 960px) { :is(.elementor-page, .bp-landing) .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { :is(.elementor-page, .bp-landing) .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Estimates form (Gravity Forms #2, legacy markup) restyled - the form itself
   is unchanged. Selectors carry the wrapper classes twice so they outweigh
   GF's legacy stylesheet. */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper { margin: 0; max-width: none; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper form { margin: 0; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gform_fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0; padding: 0; list-style: none;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gform_fields li.gfield {
  grid-column: 1 / -1;
  margin: 0; padding: 0; width: auto; max-width: none; clear: none;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gform_fields li.gfield:is(.gfield--type-phone, .gfield--type-email, .gfield--type-date, .gfield--type-time) { grid-column: span 1; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield_label {
  display: block; margin: 0 0 8px; padding: 0;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; color: #4E6B7D;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield_required { color: #C2410C; margin-left: 2px; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .top_label div.ginput_container { margin-top: 0; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_complex { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_complex > span,
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_complex span:is(.ginput_left, .ginput_right, .ginput_full, .name_first, .name_last) {
  flex: 1 1 180px; width: auto; max-width: none; float: none; margin: 0; padding: 0; display: flex; flex-direction: column;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_complex span.ginput_full { flex-basis: 100%; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform-field-label--type-sub,
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_complex label {
  order: 2; margin: 6px 0 0; padding: 0; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5E7888;
}
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper .ginput_container :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea) {
  width: 100%; min-height: 52px; margin: 0; padding: 12px 15px;
  border-radius: var(--radius-sm); border: 1px solid rgba(21, 56, 74, .18); background: #F3F9FD;
  color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; box-shadow: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper .ginput_container :is(input, select, textarea):focus {
  outline: none; border-color: var(--pool-400); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(34, 169, 224, .2);
}
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper textarea { height: 130px; min-height: 130px; resize: vertical; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23617989' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
}
/* Date with its calendar button inside the field */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .ginput_container_date { position: relative; display: block; }
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper .ginput_container_date input { padding-right: 52px; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform-datepicker-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--pool-ink); cursor: pointer; display: grid; place-items: center;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform-datepicker-toggle:hover { background: rgba(10, 130, 208, .1); }
/* Time: HH : MM AM/PM on one row */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield--type-time .clear-multi { display: flex; align-items: center; gap: 8px; width: 100%; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield--type-time .ginput_container_time { display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; max-width: none; margin: 0; padding: 0; float: none; flex: 1 1 0; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield--type-time .ginput_container_time i { font-style: normal; font-weight: 700; color: #4E6B7D; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield--type-time .gfield_time_ampm { flex: 1.2 1 0; }
/* Section headings -> small labelled dividers */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper li.gsection {
  margin: 8px 0 -6px; padding: 20px 0 0; border: 0; border-top: 1px solid rgba(10, 118, 190, .16);
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gsection_title {
  margin: 0; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pool-ink);
}
/* Checkboxes -> tappable pills (the real inputs stay in the DOM for keyboard + screen readers) */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li.gchoice { position: relative; margin: 0; padding: 0; overflow: visible; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 9px 16px;
  max-width: none; width: auto; border-radius: var(--radius-pill); border: 1px solid rgba(21, 56, 74, .2);
  background: #FFFFFF; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li label::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid rgba(21, 56, 74, .35); background: #FFFFFF;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li label:hover { border-color: var(--pool-500); }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li input:checked + label { background: var(--accent-soft, #E1F0FA); border-color: var(--pool-500); color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li input:checked + label::before {
  border-color: var(--pool-500); background: var(--pool-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gfield_checkbox li input:focus-visible + label { outline: 3px solid rgba(34, 169, 224, .45); outline-offset: 2px; }
/* Submit */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform_footer { margin: 26px 0 0; padding: 0; }
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper .gform_footer .gform_button {
  width: 100%; min-height: 56px; margin: 0; padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  background: var(--pool-400); color: #04222A; box-shadow: 0 10px 26px -12px rgba(10, 130, 208, .6);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper .gform_footer .gform_button:hover { background: #3FBAEC; transform: translateY(-2px); }
/* Validation + confirmation (the form's own messages, restyled) */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper div.validation_error,
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform_validation_errors {
  margin: 0 0 18px; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid rgba(194, 65, 12, .35);
  background: rgba(255, 190, 120, .12); color: #9A3412; font-size: 14px; font-weight: 600; text-align: left;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper li.gfield.gfield_error { background: none; border: 0; }
body.elementor-page .bp-gf--legacy .gform_wrapper.gform_legacy_markup_wrapper li.gfield_error :is(input, select, textarea) { border-color: #C2410C; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .validation_message { margin-top: 6px; padding: 0; font-size: 13px; color: #B42318; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_confirmation_message {
  padding: 26px; border-radius: var(--radius-md); background: var(--accent-soft, #E1F0FA); border: 1px solid rgba(10, 130, 208, .3);
  font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); text-align: center;
}
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gfield--type-textarea .ginput_container { width: 100%; }
@media (max-width: 640px) {
  :is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper ul.gform_fields li.gfield:is(.gfield--type-phone, .gfield--type-email, .gfield--type-date, .gfield--type-time) { grid-column: 1 / -1; }
}

/* Service links + chips ---------------------------------------------------*/
:is(.elementor-page, .bp-landing) .svc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
:is(.elementor-page, .bp-landing) .svc-links a {
  display: grid; gap: 6px; height: 100%; padding: 20px 52px 20px 22px; position: relative;
  border-radius: 18px; border: 1px solid rgba(10, 118, 190, .18); background: #FFFFFF; color: var(--ink);
  box-shadow: 0 16px 36px -32px rgba(9, 60, 92, .5);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
:is(.elementor-page, .bp-landing) .svc-links a::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--pool-ink); -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat;
}
:is(.elementor-page, .bp-landing) .svc-links a:hover { border-color: rgba(10, 130, 208, .45); transform: translateY(-2px); }
:is(.elementor-page, .bp-landing) .svc-links b { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
:is(.elementor-page, .bp-landing) .svc-links span { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1024px) { :is(.elementor-page, .bp-landing) .svc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { :is(.elementor-page, .bp-landing) .svc-links { grid-template-columns: minmax(0, 1fr); } }
:is(.elementor-page, .bp-landing) .chip-list-wrap { margin-top: 26px; }
:is(.elementor-page, .bp-landing) .chip-list__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4E6B7D; }
:is(.elementor-page, .bp-landing) .chip-list, :is(.elementor-page, .bp-landing) .city-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:is(.elementor-page, .bp-landing) .chip-list li, :is(.elementor-page, .bp-landing) .city-pills li {
  padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(10, 118, 190, .22);
  background: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
:is(.elementor-page, .bp-landing) .prose ul.city-pills { display: flex; gap: 8px; margin: 16px 0; }
:is(.elementor-page, .bp-landing) .prose ul.city-pills li { padding: 7px 14px; }
:is(.elementor-page, .bp-landing) .prose ul.city-pills li::before { content: none; }

/* Contact: service area block */
@media (min-width: 961px) { :is(.elementor-page, .bp-landing) .editorial--area { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; } }
:is(.elementor-page, .bp-landing) .area-shot { aspect-ratio: 4 / 5; }
@media (max-width: 960px) { :is(.elementor-page, .bp-landing) .area-shot { aspect-ratio: 16 / 10; } }

/* Closing band ------------------------------------------------------------*/
:is(.elementor-page, .bp-landing) .cta-band__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
:is(.elementor-page, .bp-landing) .cta-band__copy { max-width: 640px; }
:is(.elementor-page, .bp-landing) .cta-band h2 { font-size: clamp(28px, 3.2vw, 42px); color: #FFFFFF; }
:is(.elementor-page, .bp-landing) .cta-band .sh-lede { margin-top: 14px; color: var(--text-muted); font-size: 18px; }
:is(.elementor-page, .bp-landing) .cta-band .sh-lede a { color: var(--pool-300); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:is(.elementor-page, .bp-landing) .cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { :is(.elementor-page, .bp-landing) .cta-band__actions, :is(.elementor-page, .bp-landing) .cta-band__actions .elementor-widget-button, :is(.elementor-page, .bp-landing) .cta-band__actions .elementor-button { width: 100%; } }

/* About: timeline -----------------------------------------------------------*/
:is(.elementor-page, .bp-landing) .tl { position: relative; list-style: none; margin: clamp(30px, 3.6vw, 48px) 0 0; padding: 0; }
:is(.elementor-page, .bp-landing) .tl::before { content: ""; position: absolute; left: 186px; top: 10px; bottom: 30px; width: 2px; background: linear-gradient(180deg, rgba(99, 221, 216, .5), rgba(99, 221, 216, .12)); }
:is(.elementor-page, .bp-landing) .tl__item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 56px; padding-bottom: clamp(28px, 3vw, 40px); }
:is(.elementor-page, .bp-landing) .tl__item::before {
  content: ""; position: absolute; left: 181px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--pool-300); box-shadow: 0 0 0 6px rgba(99, 221, 216, .16);
}
:is(.elementor-page, .bp-landing) .tl__when { text-align: right; font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--pool-300); }
:is(.elementor-page, .bp-landing) .tl__body h3 { font-size: clamp(19px, 1.7vw, 22px); color: #FFFFFF; margin-bottom: 8px; }
:is(.elementor-page, .bp-landing) .tl__body p { margin: 0; max-width: 68ch; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 760px) {
  :is(.elementor-page, .bp-landing) .tl::before { left: 6px; }
  :is(.elementor-page, .bp-landing) .tl__item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 34px; }
  :is(.elementor-page, .bp-landing) .tl__item::before { left: 1px; top: 6px; }
  :is(.elementor-page, .bp-landing) .tl__when { text-align: left; }
}
:is(.elementor-page, .bp-landing) #how-we-work .stat-row { margin-top: clamp(24px, 3vw, 36px); }

/* Blog hub -------------------------------------------------------------------*/
:is(.elementor-page, .bp-landing) .topic-nav ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
:is(.elementor-page, .bp-landing) .topic-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 118, 190, .25); background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: 15px;
}
:is(.elementor-page, .bp-landing) .topic-nav a:hover { border-color: var(--pool-500); color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .guide-group { margin-top: clamp(40px, 4.6vw, 64px); scroll-margin-top: calc(var(--hdr-stuck, 84px) + 16px); }
:is(.elementor-page, .bp-landing) .guide-group .head-row { margin-bottom: clamp(20px, 2.4vw, 30px); }
:is(.elementor-page, .bp-landing) .guide-group .section-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
:is(.elementor-page, .bp-landing) .guides__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { :is(.elementor-page, .bp-landing) .guides__grid--2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1080px) and (min-width: 761px) {
  :is(.elementor-page, .bp-landing) .guides__grid--2 .guide-card:nth-child(3) { grid-column: auto; flex-direction: column; }
  :is(.elementor-page, .bp-landing) .guides__grid--2 .guide-card:nth-child(3) .guide-card__media.elementor-widget { width: auto; aspect-ratio: 3 / 2; }
}
/* Articles: UAE Basic Posts cards restyled to the site's card language */
:is(.elementor-page, .bp-landing) .posts-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
:is(.elementor-page, .bp-landing) .posts-tools button {
  min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid rgba(10, 118, 190, .25);
  background: #FFFFFF; color: var(--ink); font: 600 15px/1.2 var(--font-body); cursor: pointer;
}
:is(.elementor-page, .bp-landing) .posts-tools button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #FFFFFF; }
:is(.elementor-page, .bp-landing) .posts-tools button:focus-visible { outline: 3px solid rgba(34, 169, 224, .45); outline-offset: 2px; }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-card {
  display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden;
  border-radius: clamp(18px, 1.9vw, 22px); border: 1px solid rgba(10, 118, 190, .18); background: #FFFFFF;
  box-shadow: 0 18px 40px -34px rgba(9, 60, 92, .5);
}
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-card[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-image { margin: 0; }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-image a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800, #0C3550); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-image img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s var(--ease); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-card:hover .hfe-post-image img { transform: scale(1.04); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-card:not(:has(.hfe-post-image))::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--pool-500), var(--pool-300)); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-content { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(18px, 2vw, 24px); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-meta { order: -1; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5E7888; }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-title { margin: 0; font-family: var(--font-display); font-size: clamp(17.5px, 1.4vw, 19.5px); font-weight: 700; line-height: 1.32; letter-spacing: -.02em; }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-title a { color: var(--ink); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-title a:hover { color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-post-excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
:is(.elementor-page, .bp-landing) .bp-posts .hfe-read-more {
  display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 6px; min-height: 36px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pool-ink);
}
:is(.elementor-page, .bp-landing) .bp-posts .hfe-read-more::after { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat; }
@media (max-width: 1024px) { :is(.elementor-page, .bp-landing) .bp-posts .hfe-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { :is(.elementor-page, .bp-landing) .bp-posts .hfe-posts-grid { grid-template-columns: minmax(0, 1fr); } }
:is(.elementor-page, .bp-landing) .posts-more { display: grid; justify-items: center; gap: 12px; margin-top: 30px; text-align: center; }
:is(.elementor-page, .bp-landing) .posts-count { margin: 0; font-size: 14px; color: #5E7888; }
:is(.elementor-page, .bp-landing) .posts-more .btn-more {
  min-height: 52px; padding: 0 30px; border-radius: var(--radius-pill); border: 1px solid rgba(21, 56, 74, .26);
  background: #FFFFFF; color: var(--ink); font: 700 14.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
:is(.elementor-page, .bp-landing) .posts-more .btn-more:hover { border-color: var(--pool-500); color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .posts-more .btn-more[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .posts-other { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); }
:is(.elementor-page, .bp-landing) .posts-other a { color: var(--pool-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:is(.elementor-page, .bp-landing) #services-help .svc-links-wrap { margin-top: 4px; }

/* Fixes after first review ------------------------------------------------*/
:is(.elementor-page, .bp-landing) .cta-band .cta-band__grid { flex-direction: row; }
:is(.elementor-page, .bp-landing) .cta-band .cta-band__actions { flex-direction: row; }
@media (max-width: 760px) { :is(.elementor-page, .bp-landing) .cta-band .cta-band__grid, :is(.elementor-page, .bp-landing) .cta-band .cta-band__actions { flex-direction: column; align-items: stretch; } }
/* Calendar icon drawn in CSS (the dashicons font isn't loaded for visitors) */
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform-datepicker-toggle .dashicons { display: none; }
:is(.elementor-page, .bp-landing) .bp-gf--legacy .gform_legacy_markup_wrapper .gform-datepicker-toggle::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.elementor-page, .bp-landing) .guides--editorial .guides__grid--2 .guide-card__media.elementor-widget { aspect-ratio: 16 / 8; }

/* Blog hub (page 465), 2026-09-28: server-rendered cards from the mu-plugin
   baja-blog-hub.php - featured articles, the filterable article grid and the
   compact news list, in the same card language as the rest of the site. */
:is(.elementor-page, .bp-landing) .bp-card {
  position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden;
  border-radius: clamp(18px, 1.9vw, 22px); border: 1px solid rgba(10, 118, 190, .18); background: #FFFFFF;
  box-shadow: 0 18px 40px -34px rgba(9, 60, 92, .5);
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}
:is(.elementor-page, .bp-landing) .bp-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(9, 60, 92, .55); }
:is(.elementor-page, .bp-landing) .bp-card[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .bp-card__media { display: block; flex: none; aspect-ratio: 1320 / 780; overflow: hidden; background: var(--navy-800, #0C3550); }
:is(.elementor-page, .bp-landing) .bp-card__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s var(--ease, ease); }
:is(.elementor-page, .bp-landing) .bp-card:hover .bp-card__media img { transform: scale(1.04); }
/* No featured image in WordPress: a plain pool-blue panel, never a stand-in photo */
:is(.elementor-page, .bp-landing) .bp-card__media--none {
  display: flex; align-items: flex-end; padding: 18px 20px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(99, 200, 240, .55), transparent 60%), linear-gradient(140deg, #0B3F5E 0%, #0A6FB4 62%, #22A9E0 100%);
}
:is(.elementor-page, .bp-landing) .bp-card__media--none span { font: 700 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
:is(.elementor-page, .bp-landing) .bp-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(18px, 2vw, 24px); }
:is(.elementor-page, .bp-landing) .bp-card__topic { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .bp-card__title { margin: 0; font-family: var(--font-display); font-size: clamp(17.5px, 1.4vw, 19.5px); font-weight: 700; line-height: 1.32; letter-spacing: -.02em; overflow-wrap: anywhere; }
:is(.elementor-page, .bp-landing) .bp-card__title a { color: var(--ink); }
:is(.elementor-page, .bp-landing) .bp-card__title a:hover { color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .bp-card__excerpt {
  margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:is(.elementor-page, .bp-landing) .bp-card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; min-height: 36px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pool-ink);
}
:is(.elementor-page, .bp-landing) .bp-card__more span { transition: transform .25s var(--ease, ease); }
:is(.elementor-page, .bp-landing) .bp-card:hover .bp-card__more span { transform: translateX(3px); }

/* Featured: four cards, 2 x 2. The article images carry their title as text, so
   every card image keeps the images own ratio (about 1320 x 780) and is never cropped. */
:is(.elementor-page, .bp-landing) .bp-featured {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px); margin-top: clamp(28px, 3vw, 42px);
}
:is(.elementor-page, .bp-landing) .bp-featured .bp-card__body { padding: clamp(20px, 2.2vw, 28px); }
:is(.elementor-page, .bp-landing) .bp-featured .bp-card__title { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.26; }
:is(.elementor-page, .bp-landing) .bp-featured .bp-card__excerpt { font-size: 16px; }
@media (max-width: 640px) { :is(.elementor-page, .bp-landing) .bp-featured { grid-template-columns: minmax(0, 1fr); } }

/* Filters + grid + show more */
:is(.elementor-page, .bp-landing) .bp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
:is(.elementor-page, .bp-landing) .bp-filters[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .bp-filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1px solid rgba(10, 118, 190, .25); background: #FFFFFF;
  color: var(--ink); font: 600 15px/1.2 var(--font-body); cursor: pointer;
}
:is(.elementor-page, .bp-landing) .bp-filters button span { min-width: 24px; padding: 3px 7px; border-radius: var(--radius-pill); background: #E6F4FC; font-size: 12.5px; font-weight: 700; color: var(--pool-ink); text-align: center; }
:is(.elementor-page, .bp-landing) .bp-filters button[aria-pressed="true"] { background: var(--navy-900, #062A3F); border-color: var(--navy-900, #062A3F); color: #FFFFFF; }
:is(.elementor-page, .bp-landing) .bp-filters button[aria-pressed="true"] span { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
:is(.elementor-page, .bp-landing) .bp-filters button:focus-visible,
:is(.elementor-page, .bp-landing) .bp-more__btn:focus-visible { outline: 3px solid rgba(34, 169, 224, .45); outline-offset: 2px; }
:is(.elementor-page, .bp-landing) .bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
@media (max-width: 1024px) { :is(.elementor-page, .bp-landing) .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { :is(.elementor-page, .bp-landing) .bp-grid { grid-template-columns: minmax(0, 1fr); } }
:is(.elementor-page, .bp-landing) .bp-more { display: grid; justify-items: center; gap: 12px; margin-top: 30px; text-align: center; }
:is(.elementor-page, .bp-landing) .bp-count { margin: 0; font-size: 14px; color: #5E7888; }
:is(.elementor-page, .bp-landing) .bp-count:empty { display: none; }
:is(.elementor-page, .bp-landing) .bp-more__btn {
  min-height: 52px; padding: 0 30px; border-radius: var(--radius-pill); border: 1px solid rgba(21, 56, 74, .26);
  background: #FFFFFF; color: var(--ink); font: 700 14.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
:is(.elementor-page, .bp-landing) .bp-more__btn[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .bp-more__btn:hover { border-color: var(--pool-500); color: var(--pool-ink); }

/* News: dated posts as a quiet list, not as feature cards */
:is(.elementor-page, .bp-landing) .bp-news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
:is(.elementor-page, .bp-landing) .bp-news li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
:is(.elementor-page, .bp-landing) .bp-news li[hidden] { display: none; }
:is(.elementor-page, .bp-landing) .bp-news a { font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
:is(.elementor-page, .bp-landing) .bp-news a:hover { color: var(--pool-ink); }
:is(.elementor-page, .bp-landing) .bp-news time { flex: none; font-size: 13.5px; color: #5E7888; white-space: nowrap; }
@media (max-width: 640px) { :is(.elementor-page, .bp-landing) .bp-news li { flex-direction: column; gap: 4px; } }
:is(.elementor-page, .bp-landing) .bp-more--news { justify-items: start; margin-top: 22px; }
/* Phones: the topic chips stay on one row that scrolls inside its own box (the page does not scroll sideways) */
@media (max-width: 640px) {
  :is(.elementor-page, .bp-landing) .bp-filters { flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 28px 8px 2px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  :is(.elementor-page, .bp-landing) .bp-filters::-webkit-scrollbar { display: none; }
  :is(.elementor-page, .bp-landing) .bp-filters button { flex: none; min-height: 42px; padding: 7px 13px; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
}
