/* FG Fegan: shared styles (Tailwind Play CDN handles utilities) */
:root { --brand: #089649; --brand-dark: #008F4A; --char: #353839; --char-900: #232627; --mist: #E4E4E4; --tint: #E8F5EE; }
html { scroll-behavior: smooth; }
body { font-size: 1.0625rem; overflow-x: hidden; }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.grecaptcha-badge { visibility: hidden; }

/* Type scale */
.h-hero { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6.8rem); line-height: .92; letter-spacing: -.035em; }
.h-display { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(2.4rem, 1.5rem + 4vw, 4.8rem); line-height: .98; letter-spacing: -.03em; }
.t-2 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.028em; }
.t-3 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.hero-em { font-style: italic; font-weight: 900; }
.lead-quote { font-family: Archivo, sans-serif; font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; padding-left: 1.25rem; border-left: 6px solid var(--brand); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--brand); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.navbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(53,56,57,.08); transition: box-shadow .3s; }
.site-header.is-scrolled .navbar { box-shadow: 0 10px 30px -12px rgba(35,38,39,.25); }
.site-header .topbar { transition: margin .3s; }
.site-header.is-scrolled .topbar { margin-top: -2.25rem; }
.nav-link { position: relative; padding: .6rem .9rem; font-weight: 600; font-size: .95rem; color: var(--char); border-radius: .375rem; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; background: var(--brand); transform: scaleX(0) skewX(-20deg); transform-origin: left; transition: transform .25s; }
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1) skewX(-20deg); }
.mega-panel { position: absolute; left: 50%; top: 100%; width: min(760px, 90vw); transform: translate(-50%, 10px); background: #fff; border-radius: .75rem; padding: 1.75rem; box-shadow: 0 30px 60px -20px rgba(35,38,39,.35); border-top: 4px solid var(--brand); opacity: 0; visibility: hidden; transition: all .2s; }
.mega:hover .mega-panel, .mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-link { display: flex; gap: .6rem; align-items: center; padding: .45rem .5rem; border-radius: .375rem; font-size: .93rem; font-weight: 500; transition: background .15s, color .15s; }
.mega-link:hover { background: var(--tint); color: var(--brand-dark); }
.mobile-menu { background: var(--char-900); color: #fff; max-height: calc(100svh - 72px); overflow-y: auto; }
.m-link { display: block; padding: 1rem 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details[open] > summary svg { transform: rotate(180deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; font-weight: 600; border-radius: .375rem; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s; min-height: 48px; }
.btn svg { transition: transform .2s; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(8,150,73,.7); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 30px -10px rgba(8,150,73,.85); }
.btn-dark { background: var(--char-900); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--char); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand-dark); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow svg { transition: transform .2s; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid #d5d8d8; border-radius: 999px; font-weight: 500; font-size: .95rem; background: #fff; transition: border-color .2s, background .2s, transform .2s; }
.chip:hover { border-color: var(--brand); background: var(--tint); transform: translateY(-2px); }
.chip-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.chip-dark:hover { background: var(--brand); border-color: var(--brand); }
.tag-slant { display: inline-block; background: var(--brand); color: #fff; padding: .35rem .9rem; transform: skewX(-14deg); }

/* Hero */
.hero-shade-home { background: linear-gradient(90deg, rgba(35,38,39,.92) 0%, rgba(35,38,39,.72) 45%, rgba(35,38,39,.15) 100%), linear-gradient(0deg, rgba(35,38,39,.85) 0%, transparent 45%); }
.hero-panel { position: absolute; top: 0; bottom: 0; right: -10%; width: 38%; background: linear-gradient(160deg, rgba(8,150,73,.0), rgba(8,150,73,.28)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.hero-bar { position: absolute; top: 0; bottom: 0; right: 26%; width: 18px; background: var(--brand); transform: skewX(-14deg); opacity: .95; }
.hero-img { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.cert-pill { display: inline-grid; place-items: center; background: #fff; border-radius: .375rem; padding: .2rem .35rem; }
.page-hero .hero-shade { background: linear-gradient(90deg, rgba(35,38,39,.94) 0%, rgba(35,38,39,.75) 50%, rgba(35,38,39,.3) 100%); }
.hero-slash { position: absolute; right: 12%; top: 0; bottom: 0; width: 14px; background: var(--brand); transform: skewX(-14deg); }
.hero-slash::after { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 6px; background: rgba(255,255,255,.5); }
@media (max-width: 767px) { .hero-bar { display: none; } .hero-slash { right: 4%; width: 8px; } .hero-slash::after { display: none; } .hero-panel { display: none; } }

/* Intro collage */
.intro-frame { position: relative; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.intro-float { position: absolute; right: -4%; bottom: -10%; width: 46%; aspect-ratio: 4/3; border: 8px solid #fff; box-shadow: 0 30px 60px -20px rgba(35,38,39,.45); overflow: hidden; }
@media (max-width: 767px) { .intro-float { right: 0; bottom: -14%; width: 52%; border-width: 5px; } }
.intro-frame + .intro-float { }

/* Slashes and stripes */
.stats-slash { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 62%, rgba(8,150,73,.18) 62% 74%, transparent 74%); }
.stat { border-left: 3px solid var(--brand); padding-left: 1.25rem; }
.cta-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(105deg, transparent 0 60px, rgba(255,255,255,.05) 60px 120px); }
.footer-slash { position: absolute; right: -5%; top: 0; bottom: 0; width: 40%; background: linear-gradient(105deg, transparent 0 20%, rgba(8,150,73,.08) 20%); }

/* Bento tiles */
.tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: .75rem; background: var(--char-900); color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,38,39,.95) 0%, rgba(35,38,39,.4) 50%, rgba(35,38,39,.05) 100%); z-index: -1; transition: background .3s; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--brand); transition: width .4s; }
.tile:hover::after { width: 100%; }
.tile-body { padding: 1.5rem 1.6rem 1.75rem; display: block; }
.tile-kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9fe0bc; }
.tile-title { display: block; font-family: Archivo, sans-serif; font-weight: 900; letter-spacing: -.025em; line-height: 1; margin-top: .5rem; }
.tile-text { display: block; margin-top: .75rem; color: rgba(255,255,255,.8); line-height: 1.55; }

/* Process */
.step { position: relative; background: #fff; border: 1px solid var(--mist); border-radius: .75rem; padding: 1.75rem 1.5rem; transition: transform .3s, box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(35,38,39,.35); border-color: var(--brand); }
.step-num { position: absolute; right: 1.25rem; top: 1rem; font-family: Archivo, sans-serif; font-weight: 900; font-style: italic; font-size: 2.6rem; color: var(--tint); line-height: 1; }
.step-ic { display: inline-grid; place-items: center; width: 3rem; height: 3rem; background: var(--brand); color: #fff; transform: skewX(-10deg); border-radius: .25rem; }
.step-ic svg { transform: skewX(10deg); }

/* Work strip */
.work-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 420px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; max-width: 80rem; margin: 0 auto; }
.work-card { position: relative; scroll-snap-align: start; aspect-ratio: 4/3; overflow: hidden; border-radius: .75rem; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work-card:hover img { transform: scale(1.06); }
.work-cap { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(0deg, rgba(35,38,39,.95), transparent); }

/* Sectors */
.sector { background: #fff; border-left: 4px solid var(--brand); padding: 1rem 1.1rem; font-family: Archivo, sans-serif; font-weight: 700; border-radius: 0 .5rem .5rem 0; transition: transform .2s, box-shadow .2s; }
.sector:hover { transform: translateX(4px); box-shadow: 0 10px 24px -14px rgba(35,38,39,.4); }
.sectors-dark .sector { background: rgba(255,255,255,.06); color: #fff; }

.client-logo { display: grid; place-items: center; height: 88px; padding: .75rem; border: 1px solid var(--mist); border-radius: .5rem; background: #fff; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.client-logo img { max-height: 3.5rem; object-fit: contain; }

.value-card { border: 1px solid var(--mist); border-radius: .75rem; padding: 1.5rem; transition: border-color .2s, transform .2s; }
.value-card:hover { border-color: var(--brand); transform: translateY(-3px); }

/* Services list */
.svc-row { display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem 0; transition: padding .25s; }
.svc-row:hover { padding-left: .5rem; }
.svc-row-img { width: 6.5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border-radius: .5rem; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-row:hover .svc-row-img img { transform: scale(1.1); }
.svc-row-arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--mist); flex-shrink: 0; transition: all .25s; }
.svc-row:hover .svc-row-arrow { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 640px) { .svc-row-img { width: 4.5rem; height: 4rem; } .svc-row-arrow { display: none; } }

/* Service pages */
.list-block { background: #F6F7F7; border-radius: .75rem; padding: 1.75rem; border-top: 4px solid var(--brand); }
.tick { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.45; }
.side-cta { background: var(--char-900); color: #fff; border-radius: .75rem; padding: 1.75rem; position: relative; overflow: hidden; }
.side-cta::before { content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 90px; background: var(--brand); transform: skewX(-14deg); opacity: .25; }
.side-cta-ic { position: relative; display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--brand); border-radius: .375rem; }
.side-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: .375rem; font-weight: 500; transition: background .15s, color .15s; }
.side-link:hover { background: var(--tint); color: var(--brand-dark); }
.side-link.is-active { background: var(--brand); color: #fff; }
.pn { display: block; padding: 2rem 1.5rem; transition: background .2s; }
.pn:hover { background: #F6F7F7; }
.pn-title { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); letter-spacing: -.02em; margin-top: .35rem; transition: color .2s; }

/* Gallery */
.g-item { position: relative; }
.g-btn { position: relative; display: block; width: 100%; overflow: hidden; border-radius: .75rem; aspect-ratio: 4/3; background: var(--char-900); cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-btn:hover img { transform: scale(1.07); }
.g-zoom { position: absolute; right: .9rem; top: .9rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 999px; opacity: 0; transform: scale(.8); transition: all .25s; }
.g-btn:hover .g-zoom, .g-btn:focus-visible .g-zoom { opacity: 1; transform: none; }
.gallery .g-item { display: flex; flex-direction: column; }
.gallery figcaption { padding: .75rem .25rem 0; }
@media (min-width: 768px) {
  .gallery .g-item .g-btn { aspect-ratio: auto; flex: 1; min-height: 0; }
  .gallery { grid-auto-rows: 260px; }
  .gallery .g-item.md\:row-span-2 .g-btn { }
}
.g-item.is-hidden { display: none !important; }
.filter { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid #d5d8d8; font-weight: 600; font-size: .9rem; transition: all .2s; min-height: 44px; }
.filter:hover { border-color: var(--brand); }
.filter.is-on { background: var(--char-900); color: #fff; border-color: var(--char-900); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20,22,23,.94); display: grid; place-items: center; padding: 4rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1200px, 92vw); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: .5rem; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; font-family: Archivo, sans-serif; font-weight: 700; }
.lightbox button { position: absolute; color: #fff; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .2s; }
.lightbox button:hover { background: var(--brand); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; } }

/* Contact & forms */
.contact-card { border-radius: .75rem; padding: 1.75rem; }
.form-shell { border-radius: .9rem; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(35,38,39,.45); border: 1px solid var(--mist); background: #fff; }
.form-head { background: var(--brand); color: #fff; padding: 2rem 1.5rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .form-head { padding: 2.5rem; } }
.form-head::after { content: ""; position: absolute; right: 8%; top: 0; bottom: 0; width: 14px; background: rgba(255,255,255,.25); transform: skewX(-14deg); box-shadow: 30px 0 0 rgba(255,255,255,.12); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid #cfd3d3; border-radius: .45rem; padding: .8rem .9rem; font: inherit; background: #fff; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(8,150,73,.15); }
.field .is-invalid, .field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: .5rem; font-weight: 500; }
.form-msg[hidden] { display: none; }
.form-ok { background: var(--tint); color: #06703A; border-left: 4px solid var(--brand); }
.form-err { background: #fdecea; color: #8e2a1f; border-left: 4px solid #c0392b; }

.social { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.social:hover { background: var(--brand); transform: translateY(-2px); }
.social-light { background: var(--tint); color: var(--brand-dark); }
.social-light:hover { color: #fff; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.35); }
.callbar-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; color: #fff; font-weight: 700; padding-bottom: env(safe-area-inset-bottom); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
