/* Framework Integration: site styles.
   Built on Bootstrap 5 (grid + utilities). Fonts and colors come from theme.css.
   Edit here or in Admin -> Site CSS. Per-page tweaks made in the visual editor
   are saved inside each page's <style data-page-css> block instead. */

/* ---------- base ---------- */
body {
  font-family: var(--fi-font-body);
  color: var(--fi-ink);
  background: var(--fi-white);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--fi-font-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: inherit;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: var(--fi-green); text-underline-offset: 3px; }
a:hover { color: var(--fi-navy); }
img { max-width: 100%; height: auto; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--fi-muted); max-width: 40rem; }
.eyebrow {
  font-family: var(--fi-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fi-green);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.mono { font-family: var(--fi-font-mono); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--fi-navy); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--fi-signal); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn-fi, .btn-fi-outline, .btn-fi-light {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--fi-font-heading); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: 4px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-fi { background: var(--fi-green); color: #fff; }
.btn-fi:hover { background: var(--fi-navy); color: #fff; }
.btn-fi-outline { border-color: var(--fi-navy); color: var(--fi-navy); }
.btn-fi-outline:hover { background: var(--fi-navy); color: #fff; }
.btn-fi-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-fi-light:hover { background: #fff; color: var(--fi-navy); border-color: #fff; }
.hero .btn-fi:hover, .cta-band .btn-fi:hover { background: #fff; color: var(--fi-navy); }
.btn-fi-sm { padding: .55rem 1rem; font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--fi-gray);
}
.site-header .navbar { padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fi-navy); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--fi-font-heading); font-weight: 700; font-size: 1.12rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--fi-font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fi-muted); margin-top: 3px; }
.site-header .nav-link {
  font-family: var(--fi-font-heading); font-weight: 600; font-size: .98rem;
  color: var(--fi-ink); padding: .5rem .85rem !important; position: relative;
}
.site-header .nav-link:hover { color: var(--fi-green); }
.site-header .nav-link[aria-current="page"] { color: var(--fi-green); }
@media (min-width: 992px) {
  .site-header .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -1.05rem; height: 3px; background: var(--fi-green); }
}
.navbar-toggler { border: 1px solid var(--fi-gray); border-radius: 4px; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--fi-navy);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero .eyebrow { color: var(--fi-signal); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--fi-signal); }
.hero .lead { color: #c5d0dd; margin: 1.4rem 0 2.2rem; }
.hero-art { max-width: 420px; margin-left: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--fi-font-mono); font-size: .82rem; color: #9fb0c4; list-style: none; padding-left: 0; }
.hero-meta li::before { content: "■"; color: var(--fi-signal); font-size: .55rem; margin-right: .55rem; vertical-align: 2px; }

/* ---------- coverage strip ---------- */
.coverage-strip { background: var(--fi-navy-2); color: #c5d0dd; font-family: var(--fi-font-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: 1rem 0; }
.coverage-strip .container { display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: center; }
.coverage-strip strong { color: #fff; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--fi-paper); }
.section-dark { background: var(--fi-navy); color: #fff; }
.section-dark .lead, .section-dark p { color: #c5d0dd; }
.section-dark .eyebrow { color: var(--fi-signal); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------- service cards ---------- */
.service-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--fi-gray);
  padding: 1.75rem; border-radius: 0; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.service-card:hover { border-top-color: var(--fi-green); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(13,27,46,.08); color: inherit; }
.service-card img { width: 44px; height: 44px; margin-bottom: 1.2rem; }
.service-card h3 { margin-bottom: .55rem; }
.service-card p { color: var(--fi-muted); font-size: .98rem; margin-bottom: 1rem; }
.service-card .more { margin-top: auto; font-family: var(--fi-font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fi-green); }

/* ---------- spec / tag lists ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--fi-gray); }
.spec-list li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--fi-gray); position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .7rem; height: 2px; background: var(--fi-green); }
.section-dark .spec-list, .section-dark .spec-list li { border-color: rgba(255,255,255,.12); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { font-family: var(--fi-font-mono); font-size: .8rem; padding: .35rem .7rem; border: 1px solid var(--fi-gray); border-radius: 2px; background: #fff; color: var(--fi-slate); }

/* ---------- split / feature ---------- */
.feature-img { width: 100%; border-radius: 2px; aspect-ratio: 3 / 2; object-fit: cover; }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--fi-gray); border: 1px solid var(--fi-gray); }
.diff-item { background: #fff; padding: 1.6rem; }
.diff-item .num { font-family: var(--fi-font-mono); font-size: .8rem; color: var(--fi-green); letter-spacing: .1em; }
.diff-item h3 { font-size: 1.12rem; margin: .5rem 0 .4rem; }
.diff-item p { color: var(--fi-muted); font-size: .96rem; margin: 0; }

/* ---------- sector cards ---------- */
.sector-card { height: 100%; background: #fff; border: 1px solid var(--fi-gray); display: flex; flex-direction: column; }
.sector-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sector-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.sector-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.sector-card p { color: var(--fi-muted); font-size: .96rem; margin: 0; }

/* ---------- lifecycle steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; counter-reset: step; }
.step { border-top: 2px solid rgba(255,255,255,.18); padding-top: 1.4rem; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 3rem; height: 2px; background: var(--fi-signal); }
.step .num { font-family: var(--fi-font-mono); font-size: .85rem; color: var(--fi-signal); }
.step h3 { margin: .5rem 0; }
.step p { font-size: .97rem; margin: 0; }

/* ---------- service detail rows (services page) ---------- */
.service-row { padding: 3rem 0; border-bottom: 1px solid var(--fi-gray); scroll-margin-top: 90px; }
.service-row:last-child { border-bottom: 0; }
.service-row img.icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.service-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.service-row p { color: var(--fi-muted); }

/* ---------- projects ---------- */
.project-card { height: 100%; border: 1px solid var(--fi-gray); background: #fff; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card .body { padding: 1.3rem 1.4rem 1.5rem; }
.project-card .meta { font-family: var(--fi-font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fi-green); }
.project-card h3 { font-size: 1.15rem; margin: .45rem 0; }
.project-card p { color: var(--fi-muted); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--fi-green); color: #fff;
  background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #fff; margin: .6rem 0 0; }
.cta-band .btn-fi { background: var(--fi-navy); color: #fff; }
.cta-band .btn-fi:hover { background: #fff; color: var(--fi-navy); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background-color: var(--fi-paper);
  background-image:
    linear-gradient(rgba(13,27,46,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,46,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--fi-gray);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 1.1rem; }

/* ---------- contact ---------- */
.contact-panel { background: #fff; border: 1px solid var(--fi-gray); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 3px; border-color: #c9d2dc; padding: .7rem .85rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--fi-green); box-shadow: 0 0 0 3px rgba(25,117,74,.2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 1rem 0; border-bottom: 1px solid var(--fi-gray); }
.info-list .label { display: block; font-family: var(--fi-font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fi-muted); margin-bottom: .2rem; }
.info-list a { color: var(--fi-ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--fi-green); }

/* ---------- footer ---------- */
.site-footer { background: var(--fi-navy); color: #aebbcb; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #8797ab; }
.site-footer h4 { font-family: var(--fi-font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #aebbcb; text-decoration: none; }
.site-footer a:hover { color: var(--fi-signal); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #8797ab; }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 .5rem; }
  .site-header .nav-cta { margin-top: .5rem; }
  .hero-art { margin: 3rem auto 0; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Phone-width side gutters: 16px instead of Bootstrap's 12px */
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

/* Hover: an outline ring around buttons (in addition to the color change) */
.btn-fi:hover, .btn-fi-outline:hover, .btn-fi-light:hover { outline: 2px solid var(--fi-green); outline-offset: 3px; }
.hero .btn-fi:hover, .hero .btn-fi-light:hover, .cta-band .btn-fi:hover, .section-dark .btn-fi:hover { outline-color: var(--fi-white); }

/* ==========================================================================
   Motion
   One authored moment: the hero "powers on" (label rule draws, headline rises
   out of a mask, then the service markers light up in sequence like status LEDs).
   Everything else is quiet: scroll reveals, header state, hover feedback.
   Per-element control lives in the admin (Settings → Animation), saved as
   data-animate / data-animate-delay. Reduced motion turns movement off.
   ========================================================================== */
:root { --fi-ease: cubic-bezier(.16, 1, .3, 1); }

/* Header state */
.site-header { transition: box-shadow .3s var(--fi-ease), background-color .3s; }
.site-header.is-scrolled { background: rgba(255,255,255,.985); box-shadow: 0 8px 24px rgba(13,27,46,.08); }

/* Hero entrance (runs from CSS alone, so it never waits on scripts) */
@keyframes fi-draw { from { transform: scaleX(0); } }
@keyframes fi-fade { from { opacity: 0; } }
@keyframes fi-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fi-unmask { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(0 0 -12% 0); } }
@keyframes fi-art { from { opacity: 0; transform: translateY(26px) scale(.98); } }
@keyframes fi-led { 0% { color: rgba(255,255,255,.16); } 55% { color: #b6ffd9; } 100% { color: var(--fi-signal); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow { animation: fi-fade .5s var(--fi-ease) both; }
  .hero .eyebrow::before { transform-origin: left center; animation: fi-draw .7s .1s var(--fi-ease) both; }
  .hero h1 { animation: fi-unmask .95s .15s var(--fi-ease) both; }
  .hero .lead { animation: fi-rise .7s .4s var(--fi-ease) both; }
  .hero .lead + * { animation: fi-rise .7s .52s var(--fi-ease) both; }
  .hero-art { animation: fi-art 1.1s .3s var(--fi-ease) both; }
  .hero-meta { animation: fi-fade .6s .7s both; }
  .hero-meta li::before { animation: fi-led .45s ease-out both; }
  .hero-meta li:nth-child(1)::before { animation-delay: .95s; }
  .hero-meta li:nth-child(2)::before { animation-delay: 1.1s; }
  .hero-meta li:nth-child(3)::before { animation-delay: 1.25s; }
  .hero-meta li:nth-child(4)::before { animation-delay: 1.4s; }
  .hero-meta li:nth-child(n+5)::before { animation-delay: 1.55s; }
}

/* Scroll reveals (classes added by site.js only when motion is allowed) */
.fi-anim { transition: opacity .7s var(--fi-ease), transform .8s var(--fi-ease), clip-path .9s var(--fi-ease); transition-delay: var(--fi-delay, 0ms); }
.fi-anim:not(.is-in) { opacity: 0; }
.fi-a-rise:not(.is-in) { transform: translateY(22px); }
.fi-a-zoom:not(.is-in) { transform: scale(.95); }
.fi-a-slide-left:not(.is-in) { transform: translateX(-40px); }
.fi-a-slide-right:not(.is-in) { transform: translateX(40px); }
.fi-a-reveal { transition-property: clip-path; }
.fi-a-reveal:not(.is-in) { opacity: 1; clip-path: inset(0 100% 0 0); }

/* Hover and press feedback: the hovered thing stays put, its parts respond */
.btn-fi, .btn-fi-outline, .btn-fi-light { transition: background .15s, color .15s, border-color .15s, outline-color .15s, transform .1s; }
.btn-fi:active, .btn-fi-outline:active, .btn-fi-light:active { transform: scale(.98); }
a.service-card:hover { transform: none; box-shadow: 0 16px 36px rgba(13,27,46,.10); }
.service-card img { transition: transform .4s var(--fi-ease); }
a.service-card:hover img { transform: translateY(-3px); }
.service-card .more { display: inline-block; transition: transform .25s var(--fi-ease), color .15s; }
a.service-card:hover .more { transform: translateX(5px); }
.project-card { overflow: hidden; }
.project-card img { transition: transform .7s var(--fi-ease); }
.project-card:hover img { transform: scale(1.035); }
.feature-img { transition: transform .7s var(--fi-ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fi-anim { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Visibility switches (admin: Edit → Animation & visibility → Show on) */
@media (max-width: 767.98px) { .fi-hide-phone { display: none !important; } }
@media (min-width: 768px) { .fi-hide-desktop { display: none !important; } }

/* ==========================================================================
   Pop-ups (admin: Site → Pop-ups). The card is designed in the editor;
   site.js adds the overlay, the close button and the open/close motion.
   ========================================================================== */
.fi-popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; overflow-y: auto;
  background: rgba(13, 27, 46, .62);
  opacity: 0; transition: opacity .25s var(--fi-ease);
}
.fi-popup-overlay.is-open { opacity: 1; }
.fi-popup-overlay.is-closing { opacity: 0; transition-duration: .18s; }
.fi-popup {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2.5rem); overflow-y: auto;
  margin: auto; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff; color: var(--fi-ink);
  box-shadow: 0 30px 80px rgba(13, 27, 46, .35);
}
.fi-popup--sm { max-width: 420px; }
.fi-popup--lg { max-width: 780px; }
.fi-popup:focus { outline: none; }
.fi-popup h1, .fi-popup h2, .fi-popup h3 { padding-right: 2rem; margin-bottom: .75rem; }
.fi-popup .lead { margin: 0 0 1.5rem; }
.fi-popup > :last-child { margin-bottom: 0; }
.fi-popup-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.5rem; }
.fi-popup-x {
  position: absolute; top: .6rem; right: .6rem; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--fi-muted); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.fi-popup-x:hover { background: var(--fi-paper); color: var(--fi-ink); }
.fi-popup-x:focus-visible { outline: 2px solid var(--fi-green); outline-offset: 2px; }
.fi-popup-x svg { width: 20px; height: 20px; }
html.fi-popup-open { overflow: hidden; }
.fi-popup-overlay .fi-popup { transform: translateY(18px) scale(.98); transition: transform .4s var(--fi-ease); }
.fi-popup-overlay.is-open .fi-popup { transform: none; }
.fi-popup-overlay.is-closing .fi-popup { transform: translateY(8px) scale(.99); transition-duration: .18s; }
@media (prefers-reduced-motion: reduce) { .fi-popup-overlay .fi-popup { transform: none !important; } }

/* ==========================================================================
   Refinements (Nov 25): quieter type and labels, one corner system,
   calmer bands. Your colors and fonts are unchanged; they come from theme.css.
   ========================================================================== */
:root { --fi-radius-control: 6px; --fi-radius-card: 8px; }

/* Type: size carries hierarchy, not heavy weight or tight tracking */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-weight: 600; letter-spacing: 0; }
h1 { letter-spacing: -0.01em; }

/* Small labels: normal capitalization, no wide tracking */
.eyebrow { font-family: var(--fi-font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.eyebrow::before { display: none; }
.brand-name small { font-family: var(--fi-font-body); font-weight: 400; letter-spacing: 0; text-transform: none; }
.coverage-strip { letter-spacing: 0; text-transform: none; }
.service-card .more { font-family: var(--fi-font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.project-card .meta { font-family: var(--fi-font-body); font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--fi-muted); }
.info-list .label { font-family: var(--fi-font-body); font-size: .85rem; letter-spacing: 0; text-transform: none; }
.site-footer h4 { font-family: var(--fi-font-heading); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.step .num { font-family: var(--fi-font-body); font-size: .9rem; font-weight: 500; }

/* Corners: one radius for controls, one for cards and images */
.btn-fi, .btn-fi-outline, .btn-fi-light, .form-control, .form-select, .tag-list li, .navbar-toggler { border-radius: var(--fi-radius-control); }
.service-card, .project-card, .feature-img, .contact-panel, .fi-popup { border-radius: var(--fi-radius-card); }
.project-card { overflow: hidden; }

/* Cards: a full hairline instead of a colored bar along the top */
.service-card { border: 1px solid var(--fi-gray); padding: 28px; transition: border-color .15s, box-shadow .2s; }
a.service-card:hover { border-color: #c9d2dc; }

/* Hero: plain navy behind a real photo of the work */
.hero { background-image: none; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--fi-radius-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.hero-meta { margin-top: 2rem; padding-top: 0; border-top: 0; font-family: var(--fi-font-body); font-size: .9rem; }

/* Call-to-action band: a light pause between the dark sections; green marks the action */
.cta-band { background: var(--fi-paper); color: var(--fi-ink); border-top: 1px solid var(--fi-gray); }
.cta-band h2 { color: var(--fi-ink); }
.cta-band p { color: var(--fi-muted); }
.cta-band .btn-fi { background: var(--fi-green); color: #fff; }
.cta-band .btn-fi:hover { background: var(--fi-navy); color: #fff; outline-color: var(--fi-green); }

/* Footer: the logo column stays, at a size that matches the rest */
.site-footer .feature-img { width: 96px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }

/* Pop-ups: no colored bar along the top */
.fi-popup { border-top: 0; }
.page-hero { background-image: none; }

/* ==========================================================================
   Redesign (Nov 25, pass 2): full-width photo hero, slimmer header,
   one type family (set in theme.css), spec-sheet grids, more breathing room.
   Earlier rules stay above; these come last so they win.
   ========================================================================== */

/* Type scale: size and color carry hierarchy */
body { font-size: 17px; line-height: 1.65; color: var(--fi-ink); }
h1, .h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
h2, .h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
h3, .h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--fi-muted); }

/* Header: slim bar, normal-size wordmark, quiet links */
.site-header { background: rgba(255, 255, 255, .97); }
.site-header .navbar { padding: 12px 0; min-height: 72px; }
.site-header .nav-link { font-family: var(--fi-font-body); font-size: 15px; font-weight: 500; color: var(--fi-ink); padding: 8px 14px !important; }
.site-header .nav-link:hover { color: var(--fi-ink); opacity: .7; }
.site-header .nav-link[aria-current="page"] { color: var(--fi-ink); }

/* Buttons: your green with dark text (readable on #5FA724), quiet secondary styles */
.btn-fi, .btn-fi-outline, .btn-fi-light { font-family: var(--fi-font-body); font-weight: 600; font-size: 1rem; padding: 13px 22px; border-width: 1px; }
.btn-fi { background: var(--fi-green); color: var(--fi-navy); border-color: var(--fi-green); }
.btn-fi:hover, .hero .btn-fi:hover, .cta-band .btn-fi:hover, .section-dark .btn-fi:hover { background: var(--fi-signal); border-color: var(--fi-signal); color: var(--fi-navy); }
.btn-fi-outline { background: transparent; color: var(--fi-ink); border-color: #c3ccd6; }
.btn-fi-outline:hover { background: transparent; color: var(--fi-ink); border-color: var(--fi-ink); }
.btn-fi-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-fi-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn-fi-sm { padding: 9px 16px; font-size: .95rem; }

/* Hero: the install photo fills the whole hero; the headline sits on the darkened left side */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(86vh, 820px); padding: 120px 0 96px; background: var(--fi-navy); overflow: hidden; }
.hero > .container { position: static; }
.hero .hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 60% center; border-radius: 0; box-shadow: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 27, 46, .95) 0%, rgba(13, 27, 46, .86) 36%, rgba(13, 27, 46, .35) 72%, rgba(13, 27, 46, .15) 100%); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 13ch; }
.hero .lead { font-size: 1.2rem; color: #c9d4e1; max-width: 34rem; margin: 24px 0 36px; }
.hero-meta { color: #aebbcb; margin-top: 40px; gap: 8px 28px; }
@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: 96px 0 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(13, 27, 46, .9) 0%, rgba(13, 27, 46, .82) 100%); }
}

/* Sections: more room between them, one header pattern */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.section-head:has(> .link-more) { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section-head:has(> .link-more) > :not(.link-more) { flex: 1 1 32rem; max-width: 46rem; }
.link-more { font-weight: 600; color: var(--fi-ink); text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 2px solid var(--fi-green); }
.link-more:hover { color: var(--fi-ink); border-bottom-color: var(--fi-ink); }

/* Services: one spec-sheet grid divided by hairlines instead of six separate boxes */
.row.g-4:has(> [class*="col"] > a.service-card) { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; border-top: 1px solid var(--fi-gray); border-left: 1px solid var(--fi-gray); }
.row.g-4:has(> [class*="col"] > a.service-card) > [class*="col"] { padding: 0; border-right: 1px solid var(--fi-gray); border-bottom: 1px solid var(--fi-gray); }
.row.g-4:has(> [class*="col"] > a.service-card) .service-card { height: 100%; border: 0; border-radius: 0; padding: 36px 32px; background: #fff; box-shadow: none; }
a.service-card:hover { background: var(--fi-paper); border-color: transparent; box-shadow: none; }
.service-card img { width: 32px; height: 32px; margin-bottom: 28px; }
.service-card h3 { margin-bottom: 8px; }
.service-card .more { color: var(--fi-ink); }
.row.g-4:has(> [class*="col"] > a.service-card) > .col-12 > .service-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 28px 32px; background: var(--fi-paper); text-align: left; }
.row.g-4:has(> [class*="col"] > a.service-card) > .col-12 > .service-card > * { margin: 0 !important; text-align: left !important; }

/* "Why Framework" grid: the same hairline language */
.diff-grid { gap: 0; border-top: 1px solid var(--fi-gray); border-left: 1px solid var(--fi-gray); background: #fff; }
.diff-item { padding: 28px; border: 0; border-right: 1px solid var(--fi-gray); border-bottom: 1px solid var(--fi-gray); border-radius: 0; background: #fff; }

/* Image cards (industries, projects): photo or icon tile on top, text below */
.project-card { border-color: var(--fi-gray); }
.project-card img { aspect-ratio: 3 / 2; }
.project-card .body { padding: 24px; }
.project-card h3 { font-size: 1.15rem; margin: 0 0 8px; }

/* Dark process section and the closing band */
.section-dark .lead, .section-dark p { color: #b9c5d3; }
.step .num { font-family: var(--fi-font-mono); color: var(--fi-signal); }
.cta-band { padding: 64px 0; }
.cta-band h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.section-head:has(> .link-more) { display: grid; grid-template-columns: minmax(0, 46rem) 1fr; column-gap: 48px; align-items: end; }
.section-head:has(> .link-more) > * { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
.section-head:has(> .link-more) > .link-more { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; }
@media (max-width: 767.98px) { .section-head:has(> .link-more) { grid-template-columns: 1fr; } .section-head:has(> .link-more) > .link-more { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; } }
.row.g-4:has(> [class*="col"] > a.service-card) > .col-12 > .service-card > h3 { flex: 0 0 auto; }
.row.g-4:has(> [class*="col"] > a.service-card) > .col-12 > .service-card > p { flex: 1 1 20rem; color: var(--fi-muted) !important; }
.row.g-4:has(> [class*="col"] > a.service-card) > .col-12 > .service-card > a { flex: 0 0 auto; }

/* Readable green for text on light backgrounds (your #5FA724 is ~3:1 on white; this shade is 5.3:1).
   Buttons, markers and green on navy keep the brighter brand green. */
:root { --fi-green-text: #3d7a12; }
a { color: var(--fi-green-text); }
.eyebrow { color: var(--fi-green-text); }
.info-list a:hover { color: var(--fi-green-text); }

/* Partner logo carousel (admin: Add → Sections → Partner logos).
   Still row by default (editor, reduced motion); site.js adds .is-moving to loop it. */
.partners .section-head { margin-bottom: 40px; }
.logo-marquee { --logo-h: 44px; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee[data-size="sm"] { --logo-h: 32px; }
.logo-marquee[data-size="lg"] { --logo-h: 60px; }
.logo-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 64px; padding: 0 24px; }
.partner-logo { display: block; height: var(--logo-h); width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partner-logo:hover { filter: none; opacity: 1; }
.logo-marquee.is-moving .logo-track { flex-wrap: nowrap; justify-content: flex-start; gap: 0; padding: 0; width: max-content; animation: fi-marquee var(--fi-marquee-dur, 40s) linear infinite; }
.logo-marquee.is-moving .partner-logo, .logo-marquee.is-moving .logo-track > * { margin-right: 64px; flex: 0 0 auto; }
.logo-marquee.is-moving[data-direction="right"] .logo-track { animation-direction: reverse; }
.logo-marquee.is-moving:hover .logo-track { animation-play-state: paused; }
@keyframes fi-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee.is-moving .logo-track { animation: none; } }

/* Hero on large screens: the photo sits to the right of the headline so its subject stays clear of the
   text shade. Its focal point can be moved per screen size in the admin (Edit → Focal point). */
@media (min-width: 992px) {
  .hero .hero-photo { left: 38%; width: 62%; object-position: 50% 50%; }
  .hero::before { background: linear-gradient(90deg, var(--fi-navy) 0%, var(--fi-navy) 38%, rgba(13, 27, 46, .7) 44%, rgba(13, 27, 46, .2) 56%, rgba(13, 27, 46, 0) 66%); }
}
