/* ==========================================================================
   Platinum Fire Systems - custom additions (hand-written, not Nicepage output)
   Loaded on every page after nicepage.css and the page stylesheet.
   Brand red: #8d2020 (Nicepage "custom-color-3"). Headings: Roboto Condensed.
   ========================================================================== */
:root { --pfs-red: #8d2020; --pfs-red-dark: #6e1818; --pfs-grey: #f2f2f2; --pfs-text: #111111; }

/* ---- Placeholders: deliberately loud so they cannot be missed ---- */
.pfs-placeholder {
  background: #fff3b0; color: #5c4400; border: 1px dashed #c9a400;
  padding: 0 4px; border-radius: 3px; font-weight: 600; font-style: normal;
}
.pfs-placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff8d6; color: #5c4400; border: 2px dashed #c9a400; border-radius: 4px;
  min-height: 180px; padding: 20px; font-weight: 600; margin: 0; box-sizing: border-box; width: 100%;
}

/* ---- Layout for hand-built sections ---- */
.pfs-section { padding: 40px 0 30px; }
.pfs-section.pfs-grey { background: var(--pfs-grey); }
.pfs-sheet { width: 1140px; max-width: calc(100% - 40px); margin: 0 auto; }
.pfs-cols { display: flex; gap: 40px; align-items: flex-start; }
.pfs-main { flex: 1 1 auto; min-width: 0; }
.pfs-aside { flex: 0 0 300px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pfs-aside img { display: block; width: 100%; height: auto; border: 1px solid #ddd; }
.pfs-aside a.pfs-rfq img { width: 253px; border: 3px solid #404040; }

.pfs-section h1, .pfs-section h2, .pfs-section h3, .pfs-section h4 {
  font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-weight: 700;
  color: var(--pfs-red); line-height: 1.2; margin: 0 0 12px;
}
.pfs-section h1 { font-size: 1.75rem; }
.pfs-section h2 { font-size: 1.375rem; margin-top: 28px; }
.pfs-section h2:first-child, .pfs-section h1 + h2 { margin-top: 0; }
.pfs-section h3 { font-size: 1.125rem; margin-top: 20px; }
.pfs-section p, .pfs-section li { font-family: 'Open Sans', sans-serif; font-size: 1rem; line-height: 1.5; color: var(--pfs-text); }
.pfs-section p { margin: 0 0 14px; }
.pfs-section ul { margin: 0 0 16px; padding-left: 22px; }
.pfs-section li { margin-bottom: 6px; }
.pfs-section a { color: var(--pfs-red); }
.pfs-lead { font-size: 1.0625rem !important; }

/* Cards (systems / services overview) */
.pfs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 10px 0 10px; }
.pfs-card {
  display: block; background: #fff; border: 1px solid #ddd; border-top: 4px solid var(--pfs-red);
  padding: 16px 18px; text-decoration: none !important; color: var(--pfs-text) !important; transition: box-shadow .2s;
}
.pfs-card:hover, .pfs-card:focus { box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pfs-card h3 { margin: 0 0 8px !important; font-size: 1.0625rem !important; }
.pfs-card p { margin: 0 !important; font-size: .9375rem !important; }
.pfs-card .pfs-more { display: inline-block; margin-top: 10px; color: var(--pfs-red); font-weight: 700; font-size: .875rem; text-transform: uppercase; }

/* Why-choose-us points */
.pfs-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 30px; }
.pfs-points h3 { margin-top: 0; }

/* CTA band */
.pfs-cta { background: var(--pfs-red); color: #fff; text-align: center; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.pfs-cta h2 { color: #fff !important; margin: 0 0 10px; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-size: 1.5rem; font-weight: 700; }
.pfs-cta p { color: #fff !important; margin: 0 0 18px; font-family: 'Open Sans', sans-serif; }
.pfs-btn {
  display: inline-block; background: #fff; color: var(--pfs-red) !important; font-weight: 700; text-transform: uppercase;
  padding: 12px 26px; margin: 4px 6px 4px 0; text-decoration: none !important; border: 2px solid #fff; font-family: 'Roboto Condensed', sans-serif; letter-spacing: .5px;
}
.pfs-cta .pfs-btn { margin: 4px 6px; }
.pfs-btn:hover, .pfs-btn:focus { background: transparent; color: #fff !important; }
.pfs-btn-red { background: var(--pfs-red); color: #fff !important; border-color: var(--pfs-red); }
.pfs-btn-red:hover, .pfs-btn-red:focus { background: #fff; color: var(--pfs-red) !important; }

/* Contact page */
.pfs-contact-details { background: var(--pfs-grey); border-left: 4px solid var(--pfs-red); padding: 18px 20px; width: 100%; box-sizing: border-box; }
.pfs-contact-details h2 { margin-top: 0 !important; font-size: 1.125rem !important; }
.pfs-contact-details p { margin: 0 0 10px; font-size: .9375rem !important; }
.pfs-contact-details a { font-weight: 600; word-break: break-word; }
.pfs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; position: relative; }
.pfs-form .pfs-full { grid-column: 1 / -1; }
.pfs-form label { display: block; font-family: 'Open Sans', sans-serif; font-weight: 600; font-size: .9375rem; margin-bottom: 4px; }
.pfs-form input, .pfs-form select, .pfs-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #bbb; font-family: 'Open Sans', sans-serif; font-size: 1rem; background: #fff; color: #111;
}
.pfs-form input:focus, .pfs-form select:focus, .pfs-form textarea:focus { outline: 2px solid var(--pfs-red); border-color: var(--pfs-red); }
.pfs-form textarea { min-height: 140px; resize: vertical; }
.pfs-form button { cursor: pointer; font-size: 1rem; }
.pfs-form-note { font-size: .875rem !important; color: #555 !important; }
.pfs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Completed projects captions */
.pfs-tile { position: relative; }
.pfs-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 8px 10px; z-index: 2;
  background: rgba(0,0,0,.72); color: #fff !important; font-family: 'Open Sans', sans-serif; font-size: .8125rem !important; line-height: 1.3; text-align: left;
}
.pfs-caption strong { display: block; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-size: .9375rem; }
.pfs-caption .pfs-placeholder { font-size: .6875rem; font-weight: 600; display: inline-block; margin-top: 3px; }

/* Request-a-quote link wrapper on existing Nicepage pages (keeps original layout) */
a.pfs-rfq-link { display: block; text-decoration: none; }
a.pfs-rfq-link:focus { outline: none; }
a.pfs-rfq-link:focus img { outline: 3px solid var(--pfs-red); outline-offset: 2px; }

/* ---- Expanded footer ---- */
.pfs-footer { background: var(--pfs-red); color: #fff; padding: 22px 0 0; }
.pfs-footer a { color: #fff; }
.pfs-footer .pfs-footer-cta {
  font-family: 'Roboto', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 1.5rem; line-height: 1.2; text-align: center; margin: 0 0 16px;
}
.pfs-footer .pfs-footer-cta a { text-decoration: none; }
.pfs-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 80px; margin: 0 auto 22px; max-width: 900px; }
.pfs-logos img { display: block; height: 60px; width: auto; max-width: 200px; object-fit: contain; }
.pfs-footer-cols {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 24px; text-align: left;
  border-top: 1px solid rgba(255,255,255,.3); padding: 20px 0;
}
.pfs-footer h2 { font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: #fff; }
.pfs-footer p, .pfs-footer li { font-family: 'Open Sans', sans-serif; font-size: .875rem; line-height: 1.5; margin: 0 0 6px; color: #fff; }
.pfs-footer ul { list-style: none; margin: 0; padding: 0; }
.pfs-footer a:hover, .pfs-footer a:focus { text-decoration: underline; }
.pfs-footer .pfs-placeholder { font-size: .8125rem; }
.pfs-copyright { background: var(--pfs-red-dark); color: #fff; text-align: center; padding: 10px 20px; font-size: .8125rem; font-family: 'Open Sans', sans-serif; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .pfs-cols { flex-direction: column; }
  .pfs-aside { flex-basis: auto; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pfs-aside > img { width: calc(50% - 10px); }
  .pfs-aside a.pfs-rfq { width: 100%; display: flex; justify-content: center; }
  .pfs-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .pfs-section h1 { font-size: 1.375rem; }
  .pfs-aside > img { width: 100%; }
  .pfs-form { grid-template-columns: 1fr; }
  .pfs-footer .pfs-footer-cta { font-size: 1rem; }
  .pfs-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; justify-items: center; max-width: 360px; }
  .pfs-logos img { height: 40px; width: 100%; max-width: 100%; object-fit: contain; }
  .pfs-footer-cols { grid-template-columns: 1fr; }
  .pfs-caption { font-size: .75rem !important; }
}

/* Normalise footer link text size (nicepage.css sizes bare li/a elements larger) */
.pfs-footer ul li, .pfs-footer ul li a, .pfs-footer p a { font-size: .875rem !important; line-height: 1.5 !important; font-family: 'Open Sans', sans-serif !important; }

/* ---- Address + location map (Contact page / footer) ---- */
address.pfs-address { font-style: normal; font-family: 'Open Sans', sans-serif; font-size: .9375rem; line-height: 1.5; margin: -6px 0 10px; color: var(--pfs-text); }
.pfs-footer address.pfs-address { color: #fff; font-size: .875rem; margin: 0 0 6px; }
.pfs-map {
  position: relative; width: 100%; height: 0; padding-bottom: 42%; min-height: 320px; overflow: hidden;
  border: 1px solid #ccc; border-top: 4px solid var(--pfs-red); background: #e5e3df;
}
.pfs-map iframe, .pfs-map .pfs-map-fallback, .pfs-map .pfs-map-fallback img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block;
}
.pfs-map .pfs-map-fallback img { object-fit: cover; }
.pfs-map iframe { z-index: 1; }
.pfs-map-actions { margin-top: 16px !important; }
@media (max-width: 575px) { .pfs-map { padding-bottom: 90%; min-height: 280px; } }

/* Who We Are: project list in two columns, "At a Glance" facts box */
.pfs-list-2col { columns: 2; column-gap: 30px; }
.pfs-list-2col li { break-inside: avoid; }
.pfs-facts p { line-height: 1.4; }
@media (max-width: 575px) { .pfs-list-2col { columns: 1; } }

/* Contact form: on-page status after Formspree AJAX submit */
.pfs-form-status { padding: 16px 20px; margin-top: 10px; border-left: 4px solid var(--pfs-red); background: var(--pfs-grey); }
.pfs-form-status.pfs-ok { border-left-color: #2e7d32; }
.pfs-form-status h2 { margin-top: 0 !important; }
.pfs-form-status:focus { outline: none; }
.pfs-form button[disabled] { opacity: .7; cursor: wait; }
.pfs-form[hidden], .pfs-form-status[hidden] { display: none !important; }

/* Header (tablets and phones only; desktop 1200px and up is unchanged):
   the tagline is reflowed below the logo row instead of overlapping the logo and buttons,
   and the menu (hamburger) button sits beside the phone/contact buttons so nothing overlaps. */
@media (max-width: 991px) {
  .u-header .u-menu-1 { margin: -60px 0 0 calc(100% - 214px) !important; }
  .u-header .u-btn-1 { margin-top: -59px !important; }
  .u-header .u-group-1 { width: auto !important; min-height: 0 !important; margin: 10px 10px 12px !important; }
  .u-header .u-container-layout-1 { padding: 6px 12px !important; }
  .u-header .u-text-1 { font-size: 1.05rem !important; margin: 0 auto !important; line-height: 1.3; }
}
/* Small laptops (992-1199px): the tagline box overlapped the logo; start it after the logo. */
@media (min-width: 992px) and (max-width: 1199px) {
  .u-header .u-group-1 { width: calc(100% - 425px) !important; margin-left: 252px !important; margin-right: 0 !important; }
  .u-header .u-container-layout-1 { padding-left: 10px !important; padding-right: 10px !important; }
  .u-header .u-text-1 { font-size: 1.05rem !important; margin-left: auto !important; margin-right: auto !important; }
}
@media (max-width: 575px) {
  .u-header .u-image-1 { width: 185px !important; height: 63px !important; margin-top: 8px !important; }
  .u-header .u-menu-1 { margin: 20px 0 0 calc(100% - 44px) !important; }
  .u-header .u-btn-1 { margin-top: -119px !important; }
  .u-header .u-group-1 { margin: 10px 54px 12px 10px !important; }
  .u-header .u-text-1 { font-size: 0.95rem !important; }
}

/* Older Systems and Services pages: body text in Open Sans (was Arial) to match the rest of the site */
body.u-body .u-font-arial.u-custom-font { font-family: "Open Sans", Arial, sans-serif !important; }

/* SEO round (27 Oct 2026): the main page heading on Services/Systems pages is now an <h1>; keep its original h4/h5 look */
h1.pfs-h1-as-h4.u-text { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0; }
h1.pfs-h1-as-h5.u-text { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0; }
