/* Millar Electrics: shared styles on top of Tailwind */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.grid > * { min-width: 0; }
.input { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
.grid-lines { background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 56px 56px; }
.grid-lines-bg { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; }
.eyebrow { font-family: Archivo, system-ui, sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #263a82; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: #eeab26; }
.h2 { font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em; color: #111b3d; }
.navlink { position: relative; color: #2e353e; padding: .4rem 0; transition: color .2s; }
.navlink:hover, .navlink[aria-current="page"] { color: #263a82; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: #eeab26; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }
.btn-spark, .btn-navy, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 9999px; padding: .95rem 1.6rem; font-family: Archivo, system-ui, sans-serif; font-weight: 700; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; min-height: 48px; }
.btn-spark { background: #eeab26; color: #111b3d; box-shadow: 0 10px 30px -10px rgba(238,171,38,.6); }
.btn-spark:hover { transform: translateY(-2px); background: #f3bb4a; }
.btn-navy { background: #263a82; color: #fff; }
.btn-navy:hover { transform: translateY(-2px); background: #1e2f6b; box-shadow: 0 12px 30px -12px rgba(38,58,130,.7); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #eeab26; color: #eeab26; }
button:disabled { opacity: .6; cursor: progress; transform: none !important; }
.input { width: 100%; border-radius: .9rem; border: 1.5px solid rgba(38,58,130,.18); background: #fff; padding: .8rem 1rem; color: #111b3d; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: #263a82; box-shadow: 0 0 0 4px rgba(38,58,130,.12); }
.dark-fields label { color: #fff; }
.dark-fields .input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.dark-fields .input::placeholder { color: rgba(255,255,255,.4); }
.dark-fields .input:focus { border-color: #eeab26; box-shadow: 0 0 0 4px rgba(238,171,38,.18); }
.dark-fields select.input option { color: #111b3d; }
.dark-fields input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.form-msg { display: flex; gap: .75rem; align-items: flex-start; border-radius: 1rem; padding: 1rem 1.15rem; font-weight: 500; }
.form-msg.ok { background: #e7f6ec; color: #14532d; border: 1px solid #a7dcb8; }
.form-msg.err { background: #fdecea; color: #7f1d1d; border: 1px solid #f5b5ae; }
.filter-btn { white-space: nowrap; border-radius: 9999px; border: 1.5px solid rgba(38,58,130,.2); padding: .6rem 1.2rem; font-weight: 600; color: #263a82; min-height: 44px; transition: all .2s; }
.filter-btn:hover { border-color: #263a82; }
.filter-btn[aria-pressed="true"] { background: #263a82; border-color: #263a82; color: #fff; }
.project-card[hidden] { display: none; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
#lightbox.open { display: flex; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
