/* ===== Tempotec – static site layout fixes ===== */

/* One content width everywhere: 1300px max / 90% of the screen (header, all sections, footer).
   Full-width sections (banner slider, map) stay edge to edge. */
#page-container .et_pb_section .et_pb_row,
#page-container .et_pb_section .et_pb_row.et_pb_row_fullwidth {
  width: 90% !important;
  max-width: 1300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#page-container .et-l--header .et_pb_section .et_pb_row,
#page-container .et-l--footer .et_pb_section .et_pb_row {
  width: 90% !important;
  max-width: 1300px !important;
}
#page-container .et_pb_fullwidth_section .et_pb_row {
  width: 100% !important;
  max-width: none !important;
}

/* form spam trap (hidden from people) + result message */
.pym-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pym-msg { display: none; margin: 0 0 18px; padding: 13px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.pym-msg.is-ok { background: #e8f6ec; color: #17602e; border: 1px solid #9bd3ab; }
.pym-msg.is-err { background: #fdecee; color: #9b1c2c; border: 1px solid #f1a9b3; }
.gform_wrapper .pym-tip { color: #c62828 !important; font-size: 13px; margin-top: 4px; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea { border-color: #ff6b81 !important; }


/* contact form on the blue background: readable placeholders */
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: #6b7a78 !important; opacity: 1 !important; }
/* long e-mail address never sticks out of its box on phones */
.et_pb_blurb_description, .et_pb_blurb_description a, .et-l--footer a { overflow-wrap: anywhere; }


/* "What is a + b?" spam check field */
.pym-sum { margin-top: 6px; }
.pym-sum .gfield_label { display: block !important; position: static !important; clip: auto !important; width: auto !important; height: auto !important; font-size: 15px; margin-bottom: 6px; color: #b4874f; }
.pym-sum input { max-width: 220px; }


/* ===== Tempotec ===== */
/* header keeps its original edge-to-edge design (black logo slash on the left); banner slider full width */
#page-container .et-l--header .et_pb_section .et_pb_row { width: 100% !important; max-width: none !important; }
#page-container .et_pb_section_0 > .et_pb_row_0 { width: 100% !important; max-width: none !important; }
/* desktop menu always on ONE line */
@media (min-width: 981px) {
  .et_pb_menu_0_tb_header .et-menu { flex-wrap: nowrap !important; white-space: nowrap; }
  .et_pb_menu_0_tb_header .et-menu > li { padding-left: 9px !important; padding-right: 9px !important; }
}
/* desktop header: "Call Us" / "Email Us" labels not cut at the top */
.et_pb_section_0_tb_header .et_pb_row_0_tb_header { padding-top: 8px !important; }
/* phone / tablet header: logo neatly inside the header bar, menu icon centred on the right, sticks to top */
@media (max-width: 980px) {
  .et_pb_section_1_tb_header { position: sticky; top: 0; z-index: 999; background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  #page-container .et_pb_section_1_tb_header .et_pb_row_2_tb_header.et_pb_row { width: 90% !important; max-width: 90% !important; padding: 8px 0 !important; }
  #page-container .et_pb_menu_1_tb_header { margin: 0 !important; width: 100% !important; }
  .et_pb_menu_1_tb_header .et_pb_menu_inner_container { display: flex !important; align-items: center; justify-content: space-between; }
  .et_pb_menu_1_tb_header .et_pb_menu__logo-wrap { flex: 0 0 auto; width: auto !important; margin: 0 !important; }
  .et_pb_menu_1_tb_header .et_pb_menu__logo img { width: 160px !important; max-width: 160px !important; height: auto !important; }
  .et_pb_menu_1_tb_header .et_pb_menu__wrap { flex: 0 0 auto; margin: 0 0 0 auto !important; }
  .et_pb_menu_1_tb_header .mobile_nav .mobile_menu_bar:before { font-size: 34px; color: #b4874f; }
  .et_pb_menu_1_tb_header .et_mobile_menu { width: 100vw; left: auto; right: -5.6vw; border-top: 3px solid #b4874f; }
}
@media (max-width: 767px) { .et_pb_menu_1_tb_header .et_pb_menu__logo img { width: 140px !important; } }
/* Radiator Valves + Key Features: 2 per row on phones (were tall single boxes) */
@media (max-width: 767px) {
  #page-container .et_pb_row_7, #page-container .et_pb_row_11 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
  #page-container .et_pb_row_7 > .et_pb_column, #page-container .et_pb_row_11 > .et_pb_column { width: auto !important; margin: 0 !important; }
  #page-container .et_pb_row_11 .et_pb_module { margin-bottom: 0 !important; }
}
