/* Exact Engineers website styles. Most layout styles are written inline on each element in index.html. */
body{margin:0;background:#FFFFFF}
a{color:#D7141A}a:hover{color:#A50E13}
input,select,textarea{font:inherit}
input:focus,select:focus,textarea:focus,a:focus-visible,button:focus-visible{outline:3px solid #FF1C1C;outline-offset:2px}
.ee-slide{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:eeFade 30s infinite;display:block}
.ee-s1{animation-delay:0s}.ee-s2{animation-delay:5s}.ee-s3{animation-delay:10s}.ee-s4{animation-delay:15s}.ee-s5{animation-delay:20s}.ee-s6{animation-delay:25s}
@keyframes eeFade{0%{opacity:0}3%{opacity:1}17%{opacity:1}20%{opacity:0}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){.ee-slide{animation:none}.ee-s1{opacity:1}}

/* Quote form: thank-you panel */
.ee-thanks{background:#F5F5F5;border-top:4px solid #FF1C1C;padding:40px;display:flex;flex-direction:column;gap:12px}
.ee-thanks[hidden]{display:none}
@media (max-width: 900px){.ee-hero-accent{display:none}}
.ee-form-note{grid-column:1/-1;margin:0;font-size:14px;color:#404040}

/* Header: stays on screen while scrolling */
.ee-header{position:sticky;top:0;z-index:50}
.ee-navcall{display:none}
html{scroll-behavior:smooth}
section[id]{scroll-margin-top:90px}

/* Mobile: compact header + sticky call/quote bar */
.ee-mobilebar{display:none}
@media (max-width: 760px){
  .ee-header img{height:44px !important}
  .ee-navlink{display:none}
  .ee-navcall{display:inline-flex;font-size:15px}
  .ee-nav{gap:14px !important}
  .ee-nav a[href="#quote"]{display:none !important}
  .ee-mobilebar{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:60;box-shadow:0 -4px 16px rgba(0,0,0,.25)}
  .ee-mobilebar a{display:flex;align-items:center;justify-content:center;min-height:56px;font-weight:800;text-decoration:none;font-size:16px}
  .ee-mb-call{background:#141414;color:#FFFFFF}
  .ee-mb-quote{background:#D7141A;color:#FFFFFF}
  footer{padding-bottom:56px}
}

/* Gallery: click to enlarge */
.ee-gal{cursor:zoom-in;transition:transform .25s ease, filter .25s ease}
.ee-gal:hover{filter:brightness(1.06)}
.ee-lightbox{position:fixed;inset:0;z-index:100;background:rgba(10,10,10,.97);display:flex;align-items:center;justify-content:center;padding:24px}
.ee-lightbox[hidden]{display:none}
.ee-lb-fig{margin:0;max-width:min(1200px,100%);display:flex;flex-direction:column;gap:12px}
.ee-lb-fig img{max-width:100%;max-height:80vh;object-fit:contain;display:block;border-bottom:4px solid #FF1C1C}
.ee-lb-fig figcaption{color:#FFFFFF;font-weight:700;font-size:18px}
.ee-lightbox,.ee-mobilebar{font-family:'Archivo',system-ui,sans-serif}
.ee-lightbox button{background:none;border:none;color:#FFFFFF;cursor:pointer;font-family:inherit;line-height:1}
.ee-lightbox .ee-lb-close{position:absolute;top:12px;right:18px;font-size:44px;padding:6px 12px}
.ee-lightbox .ee-lb-prev,.ee-lightbox .ee-lb-next{font-size:64px;padding:12px 16px}
.ee-lightbox button:hover{color:#FF1C1C}
@media (max-width: 760px){.ee-lightbox .ee-lb-prev,.ee-lightbox .ee-lb-next{position:absolute;bottom:16px;font-size:52px}.ee-lightbox .ee-lb-prev{left:16px}.ee-lightbox .ee-lb-next{right:16px}}

/* Quote form: spam trap, errors, upload progress */
.ee-hp{position:absolute !important;left:-10000px;width:1px;height:1px;overflow:hidden}
.ee-form-error{grid-column:1/-1;margin:0;padding:12px 14px;background:#FDECEC;border-left:4px solid #D7141A;color:#7A0B0F;font-weight:600}
.ee-form-error[hidden]{display:none}
.ee-progress{grid-column:1/-1;height:8px;background:#E5E5E5}
.ee-progress span{display:block;height:100%;width:0;background:#D7141A;transition:width .2s}
button[disabled]{opacity:.7;cursor:wait !important}

/* Hide the form once it has been sent (inline display:grid would otherwise override [hidden]) */
#quote-form[hidden]{display:none !important}

/* ---------- Phones only: same design, tighter layout (desktop unchanged) ---------- */
@media (max-width: 760px){
  .ee-header > div{padding-top:10px !important;padding-bottom:10px !important}
  /* Hero: less empty space, photos straight under the heading */
  .ee-hero{flex-direction:column !important;align-items:stretch !important;gap:20px !important;padding:32px 20px 36px !important}
  .ee-hero-text{display:contents !important}
  .ee-hero-tags{order:1;font-size:11px !important;letter-spacing:.1em !important;line-height:1.7}
  .ee-hero-h1{order:2;font-size:44px !important}
  .ee-hero-media{order:3;flex:none !important;width:100%}
  .ee-hero-media > div{padding:8px !important;box-shadow:8px 8px 0 #000 !important}
  .ee-hero-lead{order:4;font-size:17px !important;line-height:1.55 !important}
  .ee-hero-ctas{order:5}
  .ee-hero-ctas > a{flex:1 1 auto;justify-content:center}
  .ee-hero-call{display:none !important}   /* the bottom bar already has Call */
  /* Section spacing a bit tighter on phones */
  section > div[style*="padding: 88px 24px"]{padding-top:56px !important;padding-bottom:56px !important}
}
