/* =====================================================================
   Firetrace Ductwork - look update (1 Dec 2026)
   ---------------------------------------------------------------------
   1. Header: logo and menu on one row on laptop screens too (was 1560px+ only)
   2. Headings: one style everywhere - bold capitals, same sizes and colours as before

   TO UNDO: delete the line
       <link rel="stylesheet" href="css/look.css?v=1" id="look-update">
   from each page (it sits just before </head>). Nothing else was changed for this.
   ===================================================================== */

/* ---------- 1. Header on one row (laptops, 1200px wide and up) ---------- */
@media (min-width: 1200px) and (max-width: 1559px) {
    header .header-inner, header { flex-wrap: nowrap; }
    header #mainNav { flex: 1 1 auto; width: auto; order: 2; margin-left: 36px; }
    header #mainNav > ul { justify-content: space-between; width: 100%; flex-wrap: nowrap; column-gap: 12px; }
    nav.main-nav > ul > li > a { padding-left: 0; padding-right: 0; }
    header #mainNav > ul > li.nav-delivery { display: none; }
    .logo img { height: 46px; max-height: 46px; }
}
/* Smaller laptops: the Search button shows its icon only, so everything fits */
@media (min-width: 1200px) and (max-width: 1365px) {
    header .site-search-toggle span { display: none; }
    header #mainNav { margin-left: 28px; }
    nav a { font-size: 12.5px; }
}

/* Narrowest laptops (1200-1279px): a little less space between the menu items */
@media (min-width: 1200px) and (max-width: 1279px) {
    header #mainNav { margin-left: 20px; }
    header #mainNav > ul { column-gap: 8px; }
    .logo img { height: 42px; max-height: 42px; }
}

/* ---------- 2. Headings: bold capitals everywhere ----------
   Leaves alone: the footer, the privacy policy text (written as a normal document),
   and the homepage banner title (sentence case on purpose). */
:is(h1, h2, h3, h4):not(footer *):not(.policy *):not(#siteSearchPanel *) {
    font-weight: 700 !important;
}
:is(h2, h3, h4):not(footer *):not(.policy *):not(#siteSearchPanel *) {
    text-transform: uppercase !important;
    letter-spacing: 0.4px;
}

/* =====================================================================
   Quick fixes (1 Dec, second round)
   ===================================================================== */

/* ---------- 3. Wide screens (1560px+): menu items a little closer together ----------
   They were spread across all the space right of the logo; now the menu is capped
   and sits on the right, so the gaps are about 40px instead of 55-60px. */
@media (min-width: 1560px) {
    header #mainNav > ul { max-width: 1240px; margin-left: auto; }
}

/* ---------- 4. Smoke Control: text starts at the top of each box, beside its diagram ---------- */
@media (min-width: 900px) {
    .smoke-type .smoke-text { align-self: start; }
}

/* ---------- 5. Homepage red strip: bigger icons and text, no empty red underneath ----------
   The banner above already shrinks to leave room for the whole strip (a script measures it),
   so the strip stays fully visible on the first screen even with a taskbar showing. */
@media (min-width: 992px) {
    .quickfacts-strip { padding: 26px 0 30px; }
    .quickfacts-item svg { width: 44px; height: 44px; margin-bottom: 12px; }
    .quickfacts-item p { font-size: 14.5px; letter-spacing: 0.5px; }
    /* dashed arrows between the icons, re-centred on the bigger icons */
    .quickfacts-item:not(:last-child)::before { top: 21.25px; left: calc(50% + 36px); width: calc(100% - 72px); }
    .quickfacts-item:not(:last-child)::after { top: 16px; left: calc(50% + 36px); width: calc(100% - 56px); }
}

/* ---------- 6. Accreditation logos: similar visual size ----------
   Wide logos (Firesafe, ADCAS) are a bit shorter and tall/round ones (ASFP, FSB) a bit taller,
   so none looks tiny next to the others. Everything scales down together on smaller screens. */
/* Each logo takes only the width it needs (they used to get equal slots, so wide logos overlapped on phones) */
.accreditation-strip { --u: min(1px, calc((90vw - 80px) / 560)); }
.accreditation-inner .accreditation-logo { flex: 0 0 auto; }
/* Phones: two rows (FSB + Firesafe, then ADCAS + ASFP + ISO) so the logos stay a readable size */
@media (max-width: 599px) {
    .accreditation-strip { --u: min(0.8px, calc((90vw - 40px) / 330)); padding-bottom: 38px; }
    .accreditation-inner { flex-wrap: wrap; justify-content: center; column-gap: 26px; row-gap: 22px; }
    .accreditation-logo--cert .cert-number { width: max-content; white-space: nowrap; font-size: 9px; }
}
.accreditation-logo img[src*="firesafe.png"] { height: calc(44 * var(--u)); }
.accreditation-logo img[src*="adcas.png"]    { height: calc(48 * var(--u)); }
.accreditation-logo img[src*="iso9001"]      { height: calc(60 * var(--u)); }
.accreditation-logo img[src*="fsb.png"]      { height: calc(72 * var(--u)); }
.accreditation-logo img[src*="asfp.png"]     { height: calc(86 * var(--u)); }

/* ---------- 7. About page: left-aligned text (justified text left uneven gaps between words) ---------- */
.about-main p { text-align: left; }

/* ---------- 8. Footer: "VAT number ..." starts its own line (with the policy links), so "55." is never left on its own.
   The line break is in the page itself (class "ft-vat-break"); on phones it is ignored and the text wraps normally. */
@media (max-width: 767px) { footer .footer-bottom br.ft-vat-break { display: none; } }

/* ---------- 9. Homepage Services card ----------
   Was: an AI welding photo under an 82% red layer, which came out pink.
   Now: a real Firetrace workshop photo under a dark layer, red line on top like the other cards,
   links lined up with the text above, each with a small red arrow. */
.services-box {
    background: #1a1a1a url('../assets/Showcase-HD/workshop-ducts-sharp.jpg') center / cover no-repeat;
    border-top: 4px solid #d32f2f;
}
.services-box::before { background: linear-gradient(160deg, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.80) 55%, rgba(14,14,14,0.62) 100%); }
.services-box p { color: #e6e6e6; }
.services-box ul { padding-left: 0; list-style: none; }
.services-box li { border-bottom-color: rgba(255,255,255,0.18); }
.services-box li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.services-box li a::after { content: "\2192"; color: #ff5a5a; font-weight: 700; transition: transform .2s ease; }
.services-box li a:hover { text-decoration: none; color: #ffd6d6; }
.services-box li a:hover::after { transform: translateX(4px); }
.services-box .read-more { background: #d32f2f; color: #fff; }
.services-box .read-more:hover { background: #fff; color: #d32f2f; }

/* ---------- 10. Projects page lists: newspaper-style columns ----------
   Was a grid of rows, so one name that wrapped onto two lines (e.g. Westfield Shopping Centre)
   made its whole row taller and left gaps beside it. Now each column flows on its own and
   the list reads down each column, then on to the next. */
.project-grid { display: block; column-count: 1; column-gap: 28px; }
@media (min-width: 560px) { .project-grid { column-count: 2; } }
@media (min-width: 900px) { .project-grid { column-count: 3; } }
.project-grid .project-card { break-inside: avoid; -webkit-column-break-inside: avoid; }

/* ---------- 11. No blue on hover ----------
   Bootstrap turns every link blue on hover unless the site says otherwise.
   These links/buttons only changed their background or underline, so the blue showed through. */
.usp-cta-btn:hover, .usp-cta-btn:focus-visible, .usp-cta-tile:hover .usp-cta-btn { color: #fff; }

/* ---------- 12. Services page: three slanted photos ----------
   The gaps were already the same white as the page, but the soft grey shadow round the whole
   picture made the page beside it look grey, so the gaps looked brighter. No shadow now, and the
   gaps are see-through, so they are always exactly the page colour. */
.main-content .triptych, .triptych { box-shadow: none; background: transparent; }
/* Each photo has its own light shadow that follows its slanted edges (also into the gaps between them) */
.main-content .triptych, .triptych { overflow: visible; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.14)); }

/* ---------- 13. Social section slideshow: opens full screen (js/gallery.js) ---------- */
.social-slides.ftg-clickable { cursor: zoom-in; }
.social-slides.ftg-clickable:focus-visible { outline: 3px solid #d32f2f; outline-offset: 3px; }
/* mouse only: the photo showing zooms in gently while the pointer is over the slideshow */
@media (hover: hover) and (pointer: fine) {
    .social-slides.ftg-clickable img { transition: opacity 1.2s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
    .social-slides.ftg-clickable:hover img.is-active { transform: scale(1.04); }
}

html.ftg-lock, html.ftg-lock body { overflow: hidden; }
.ftg { position: fixed; inset: 0; z-index: 5000; display: none; background: rgba(10,10,10,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff;
    grid-template-rows: auto 1fr auto; -webkit-tap-highlight-color: transparent; }
.ftg.is-open { display: grid; animation: ftg-in .25s ease; }
@keyframes ftg-in { from { opacity: 0; } to { opacity: 1; } }
.ftg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.ftg-count { font-size: 14px; font-weight: 600; letter-spacing: .5px; min-width: 60px; font-variant-numeric: tabular-nums; }
.ftg-tip { font-size: 12.5px; color: rgba(255,255,255,.6); text-align: center; }
.ftg-zoomed .ftg-tip { visibility: hidden; }
@media (hover: none) { .ftg-tip::after { content: " \00b7  swipe for more"; } }
.ftg-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 70px; min-height: 0; touch-action: pan-y; }
.ftg-zoomed .ftg-stage { touch-action: none; }
.ftg-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
    cursor: zoom-in; user-select: none; -webkit-user-select: none; transition: opacity .25s ease; }
.ftg-img.ftg-fade { opacity: 0; }
.ftg-zoomed .ftg-img { cursor: zoom-out; border-radius: 0; }
.ftg-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.10); border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.ftg-btn:hover { background: #d32f2f; }
.ftg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ftg-close { width: 44px; height: 44px; }
.ftg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; z-index: 2; }
.ftg-nav:hover { transform: translateY(-50%) scale(1.06); }
.ftg-prev { left: 14px; } .ftg-next { right: 14px; }
.ftg-zoomed .ftg-nav { opacity: 0; pointer-events: none; }
.ftg-thumbs { display: flex; justify-content: center; gap: 8px; padding: 14px 16px 18px; overflow-x: auto; }
.ftg-thumb { flex: 0 0 auto; width: 74px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden;
    background: #222; cursor: pointer; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.ftg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftg-thumb:hover { opacity: .9; }
.ftg-thumb.is-active { opacity: 1; border-color: #d32f2f; }
.ftg-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 699px) {
    .ftg-stage { padding: 0 8px; }
    .ftg-nav { width: 38px; height: 38px; background: rgba(0,0,0,.5); }
    .ftg-nav:hover { transform: translateY(-50%); }
    .ftg-prev { left: 12px; } .ftg-next { right: 12px; }
    .ftg-thumb { width: 56px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ftg.is-open { animation: none; } .ftg-img { transition: none !important; } }

/* ---------- 14. Slideshow now has 16 photos: slightly smaller dots so they fit neatly;
   viewer thumbnails scroll sideways when they don't all fit ---------- */
.social-slides-dots { gap: 6px; flex-wrap: wrap; padding: 0 16px; }
.social-slides-dots button { width: 7px; height: 7px; }
.ftg-thumbs { justify-content: safe center; }
