/* All Aluminum & Screening — global styles */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F5F8FA;color:#0E2530;font-family:'Public Sans',system-ui,-apple-system,sans-serif}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
a.link{color:#005A7C;font-weight:700}
a.link:hover{opacity:.82}

/* Accessibility: skip link */
.skip{position:absolute;left:-9999px;top:0;background:#005A7C;color:#fff;padding:12px 18px;z-index:100;font-weight:700;border-radius:0 0 8px 0}
.skip:focus{left:0}
:focus-visible{outline:3px solid #005A7C;outline-offset:2px}

/* Header nav */
nav a{color:inherit;font-weight:600}
nav a:not([style*="background:var(--accent)"]):hover{background:#EEF4F7;opacity:1}

/* Hover lift used on cards and buttons */
.lift{transition:transform .25s ease, box-shadow .25s ease}
.lift:hover{transform:translateY(-4px)}

/* Blog / service card image zoom */
.card img{transition:transform .5s ease}
.card:hover img{transform:scale(1.04)}

/* Article prose */
.prose p{font-size:17.5px;line-height:1.75;color:#33454F;margin:0 0 20px}
.prose h2{font-family:'Archivo',sans-serif;font-weight:800;font-size:29px;line-height:1.2;color:#0E2530;margin:40px 0 14px}
.prose h3.sub{font-family:'Archivo',sans-serif;font-weight:700;font-size:21px;line-height:1.25;color:#0E2530;margin:28px 0 12px}
.prose ul,.prose ol{margin:0 0 22px;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;counter-reset:n}
.prose li{font-size:17px;line-height:1.65;color:#33454F;display:flex;gap:12px}
.prose ul li:before{content:"\25A0";color:#005A7C;font-size:11px;line-height:1.9;flex-shrink:0}
.prose ol li{counter-increment:n}
.prose ol li:before{content:counter(n);background:#E8F0F4;color:#005A7C;font-weight:800;font-size:13px;min-width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.prose a{color:#005A7C;font-weight:700}
.prose a:hover{opacity:.8}

/* FAQ disclosure */
details.faq{background:#fff;border:1px solid #DFE8ED;border-radius:16px;overflow:hidden;box-shadow:0 4px 12px rgba(14,37,48,.04)}
details.faq summary{cursor:pointer;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::marker{content:""}
details.faq summary h3{font-size:17px;font-weight:700;margin:0;color:#0E2530;line-height:1.35}
details.faq[open] summary{background:#F7FAFC}
details.faq[open] summary .plus{transform:rotate(45deg)}
details.faq .plus{font-size:24px;font-weight:400;line-height:1;color:#005A7C;flex-shrink:0;transition:transform .25s ease}
details.faq p{font-size:15px;line-height:1.7;color:#51636D;margin:0;padding:0 24px 22px}

/* Gallery — fixed-aspect grid. Each tile reserves its box before the image
   loads, so lazy-loaded photos cannot reflow the layout. */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gitem{position:relative;border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(14,37,48,.08);background:#E8F0F4;aspect-ratio:4/3}
.gitem img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.gitem:hover img{transform:scale(1.05)}
.gcap{position:absolute;left:0;right:0;bottom:0;padding:30px 14px 12px;background:linear-gradient(transparent,rgba(6,22,30,.85));color:#fff;font-weight:600;font-size:13px;opacity:0;transition:opacity .25s ease}
.gitem:hover .gcap{opacity:1}

/* Gallery filter chips */
.chip{font-family:inherit;cursor:pointer;font-weight:700;font-size:14px;padding:10px 18px;border-radius:999px;transition:all .2s ease;background:#fff;color:#0E2530;border:1.5px solid #DFE8ED}
.chip:hover{border-color:#005A7C}
.chip.is-active{background:#005A7C;color:#fff;border-color:#005A7C;box-shadow:0 8px 18px rgba(0,90,124,.28)}

/* Forms */
.fld{width:100%;font-family:inherit;font-size:15px;color:#0E2530;background:#fff;border:1.5px solid #DFE8ED;border-radius:12px;padding:13px 15px;outline:none;transition:border-color .2s ease}
.fld:focus{border-color:#005A7C}
.fld::placeholder{color:#9CACB4}
.lbl{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:#0E2530}
.req{color:#A81830}

/* Form result banners */
.form-banner{max-width:1136px;margin:26px auto 6px;padding:20px 24px;border-radius:16px;font-size:16.5px;line-height:1.6;
  display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;box-shadow:0 10px 26px rgba(14,37,48,.10);outline:none}
.form-banner strong{font-family:'Archivo',sans-serif;font-weight:800;font-size:18px}
@media (max-width:760px){.form-banner{margin:16px 16px 4px;padding:16px 18px;font-size:15.5px}}
.form-banner a{color:inherit;font-weight:800;text-decoration:underline}
.form-banner--ok{background:#E8F4EC;border:1px solid #BBDCC8;color:#14522F}
.form-banner--err{background:#FBEAED;border:1px solid #EFC3CC;color:#7A1122}

/* Footer links — override the global a.link colour, which is tuned for light
   backgrounds and reads too dark against the footer. Inline colours (the white
   bold phone number) still win, as intended. */
footer a.link,
footer a:not([style*="color"]){color:#D4E3EA;font-weight:500}
footer a.link:hover,
footer a:not([style*="color"]):hover{color:#FFFFFF;opacity:1}

/* Responsive: collapse the multi-column layouts on smaller screens */
@media (max-width:1024px){
  [style*="grid-template-columns:1fr 340px"]{grid-template-columns:1fr !important}
  [style*="grid-template-columns:repeat(4,1fr)"]{grid-template-columns:repeat(2,1fr) !important}
  [style*="grid-template-columns:repeat(5,1fr)"]{grid-template-columns:repeat(3,1fr) !important}
  [style*="column-count:3"]{column-count:2 !important}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  aside[style*="sticky"]{position:static !important}
}
@media (max-width:760px){
  [style*="grid-template-columns:1.05fr 1fr"],
  [style*="grid-template-columns:1.15fr 1fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"]{grid-template-columns:1fr !important}
  [style*="column-count:2"],[style*="column-count:3"]{column-count:1 !important}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  h1{font-size:34px !important}
  h2{font-size:26px !important}
  [style*="padding:44px 48px"]{padding:28px 22px !important}
}

/* ---------- Mobile menu ---------- */
.menu-toggle{display:none;align-items:center;justify-content:center;width:46px;height:46px;flex-shrink:0;
  background:#fff;border:1.5px solid #DFE8ED;border-radius:12px;cursor:pointer;padding:0;transition:border-color .2s ease}
.menu-toggle:hover{border-color:#005A7C}
.menu-bars{display:block;width:20px;height:14px;position:relative}
.menu-bars i{position:absolute;left:0;right:0;height:2px;background:#0E2530;border-radius:2px;transition:transform .25s ease,opacity .2s ease}
.menu-bars i:nth-child(1){top:0}
.menu-bars i:nth-child(2){top:6px}
.menu-bars i:nth-child(3){top:12px}
.menu-toggle.is-open .menu-bars i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle.is-open .menu-bars i:nth-child(2){opacity:0}
.menu-toggle.is-open .menu-bars i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.nav-call{display:none}

@media (max-width:760px){
  /* the nav becomes a dropdown panel under the sticky bar */
  header nav{
    display:none !important;
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:2px !important;
    background:#fff;
    border-top:1px solid #DFE8ED;
    border-bottom:1px solid #DFE8ED;
    padding:10px 16px 16px;
    box-shadow:0 18px 34px rgba(14,37,48,.14);
    max-height:calc(100vh - 80px);
    overflow-y:auto;
    z-index:60;
  }
  header nav.is-open{display:flex !important}
  header nav a{
    display:flex;align-items:center;
    min-height:48px;                 /* comfortable tap target */
    padding:12px 14px !important;
    font-size:16px !important;
    border-radius:10px !important;
    border-bottom:1px solid #F0F4F7;
  }
  header nav a:last-of-type{border-bottom:0}
  header nav .nav-call{
    display:flex;justify-content:center;
    margin-top:10px;background:#005A7C;color:#fff;font-weight:800;
    border-bottom:0;border-radius:999px !important;
  }
  .menu-toggle{display:flex}
  /* keep the bar tidy: logo, CTA, burger */
  header > div{gap:10px !important;position:relative}
  header a[href^="tel:"]{display:none !important}
  html.nav-open{overflow:hidden}
}
@media (max-width:400px){
  header img{height:40px !important}
  header a[href="/contact/"]{padding:10px 13px !important;font-size:13px !important}
}
