/* ==========================================================================
   Engineered Fluid Process (Fluids Pro) — site stylesheet
   Plain CSS, no framework. Brand: black / red / white, Helvetica.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #111;
  --text: #222;
  --muted: #555;
  --line: #e5e5e5;
  --bg-soft: #f3f3f3;
  --white: #fff;
  --red: #fe0000;        /* brand accent (lines, headings) */
  --red-dark: #d80000;   /* buttons: keeps white text readable */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1140px;
  --gutter: 20px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font: 700 13px/1.2 var(--font);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--red { background: var(--red-dark); color: var(--white); }
.btn--red:hover { background: var(--black); color: var(--white); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--red-dark); }
.on-dark .btn--red:hover, .btn--red.on-dark:hover { background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }

.topbar { background: var(--red); color: var(--white); font-size: 12px; }
.topbar__inner { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 28px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 12px; height: 12px; fill: currentColor; flex: none; }

.navbar { background: var(--black); }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; }
.brand img { width: 170px; height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 14px;
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-contact { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 3px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 767px) {
  .topbar { display: none; }
  .brand img { width: 130px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-top: 1px solid #222;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { padding: 14px var(--gutter); }
  .site-nav a::after { left: var(--gutter); right: auto; width: 40px; bottom: 8px; }
  .site-nav .nav-contact { display: block; }
  .navbar { position: relative; }
}

/* ---------- Generic sections ---------- */
.section { padding: 90px 0; }
.section--tight { padding: 50px 0; }
.section--black { background: var(--black); color: #ddd; }
.section--black h2, .section--black h3 { color: var(--white); }
.section--soft { background: var(--bg-soft); }
.section-title { font-size: clamp(30px, 4vw, 44px); }
.center { text-align: center; }

/* Background image sections with dark overlay */
.bg-image { position: relative; background-size: cover; background-position: center; color: var(--white); isolation: isolate; }
.bg-image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; }
.bg-image h1, .bg-image h2, .bg-image h3 { color: var(--white); }
.bg-image--heavy::before { background: rgba(0,0,0,.72); }

/* Hero / page banner */
.hero { padding: 150px 0 130px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 75px); font-weight: 700; margin-bottom: .25em; }
.hero__lead { font-size: clamp(17px, 2vw, 24px); margin: 0 auto 1.6em; max-width: 760px; }
.page-banner { padding: 90px 0; text-align: center; }
.page-banner h1 { font-size: clamp(38px, 5.5vw, 65px); margin: 0; }

/* Two-column layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) {
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 40px; }
  .split .order-first-mobile { order: -1; }
}

/* Corner frame decoration: two L-shaped corners (top-left + bottom-right) */
.frame { position: relative; padding: 40px; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 90px; height: 90px; pointer-events: none;
  border: 0 solid var(--frame-color, var(--red));
}
.frame::before { top: 0; left: 0; border-top-width: 6px; border-left-width: 6px; }
.frame::after { right: 0; bottom: 0; border-bottom-width: 6px; border-right-width: 6px; }
.frame--black { --frame-color: var(--black); }
.frame--white { --frame-color: var(--white); }
.frame--img { padding: 14px; }
.frame--img img { width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (max-width: 600px) { .frame { padding: 28px 22px; } .frame--img { padding: 10px; } .frame::before, .frame::after { width: 60px; height: 60px; } }

.text-block h2 { font-size: clamp(30px, 4vw, 44px); }
.text-block p, .text-block li { font-size: 15px; }

/* ---------- Logo strips ---------- */
.logo-strip { padding: 30px 0; }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 40px; align-items: center; }
.logo-strip li { display: flex; justify-content: center; }
.logo-strip a { display: block; transition: opacity .2s, transform .2s; }
.logo-strip a:hover { opacity: .8; transform: translateY(-2px); }
.logo-strip img { max-height: 90px; width: auto; max-width: 100%; }
.logo-strip--dark { background: var(--black); }
.logo-strip--dark img { max-height: 70px; }
@media (max-width: 700px) { .logo-strip ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: var(--white); padding: 34px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin: 0; }
.cta-band__btn { min-width: 200px; }
@media (max-width: 600px) { .cta-band__inner { justify-content: center; text-align: center; } }

.questions { padding: 70px 0; text-align: center; }
.questions h2 { font-size: clamp(30px, 4vw, 44px); }

/* ---------- Toggle list (home "Solutions And Services") ---------- */
.toggles { margin: 0 0 30px; }
.toggle { border-bottom: 1px solid var(--line); }
.toggle summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 10px; color: var(--red-dark); font-size: 15px;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary::after {
  content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent var(--red); transition: transform .2s;
}
.toggle[open] summary::after { transform: rotate(-90deg); }
.toggle summary:hover { color: var(--black); }
.toggle p { padding: 0 10px 16px; margin: 0; color: var(--muted); }

/* ---------- Accordion (services "Why Us?") ---------- */
.accordion { margin-top: 26px; border: 1px solid #ddd; }
.accordion details + details { border-top: 1px solid #333; }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: var(--black); color: var(--white); padding: 12px 16px; font-size: 14px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; font-weight: 700; font-size: 18px; line-height: 1; width: 12px; }
.accordion details[open] summary::before { content: "\2212"; }
.accordion summary:hover { background: #222; }
.accordion p { padding: 16px; margin: 0; color: var(--muted); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: #111; }
.carousel__track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn:hover { background: var(--red-dark); }
.carousel__btn svg { width: 14px; height: 14px; fill: currentColor; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.carousel__thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; aspect-ratio: 4 / 3; overflow: hidden; }
.carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel__thumb:hover { opacity: .85; }
.carousel__thumb[aria-current="true"] { opacity: 1; border-color: var(--red); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--white); color: var(--text); padding: 28px; display: flex; gap: 22px; align-items: center; }
.service-card__icon { flex: none; width: 36px; height: 36px; fill: var(--black); }
.service-card h3 { color: var(--red-dark) !important; font-size: 17px; font-weight: 400; margin-bottom: .5em; }
.service-card p { font-size: 13px; margin: 0; }

/* Who do we serve */
.serve-grid { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.serve-grid svg { width: 46px; height: 46px; fill: var(--white); margin: 0 auto 14px; display: block; }
.serve-grid h3 { font-size: 18px; font-weight: 400; }
@media (max-width: 760px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
.serve-note { max-width: 720px; margin: 0 auto; text-align: center; font-size: 17px; }

/* ---------- Ministries flip cards (about) ---------- */
.flip-grid { list-style: none; padding: 0; margin: 30px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flip-grid { grid-template-columns: 1fr; } }
.flip { perspective: 1000px; height: 230px; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 2px solid #333; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.flip__front { background: var(--white); cursor: pointer; }
.flip__front img { max-height: 90px; width: auto; }
.flip__front .flip__name { font-size: 17px; color: var(--ink); }
.flip__back { background: var(--black); color: var(--white); transform: rotateY(180deg); }
.flip__back h3 { color: var(--white); font-size: 18px; }
.flip__back p { font-size: 13px; margin-bottom: 14px; }
.tap-hint { display: none; font-size: 20px; font-weight: 400; color: var(--muted); }
@media (hover: none) { .tap-hint { display: block; } }

/* ---------- Portfolio ---------- */
.portfolio-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
@media (max-width: 860px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .portfolio-grid { grid-template-columns: 1fr; } }
.project { text-align: center; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.project h2 { color: var(--red-dark); font-size: 22px; font-weight: 400; margin-bottom: .2em; }
.project p { margin-bottom: 14px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox__caption { color: var(--white); text-align: center; margin: 10px 0 0; }
.lightbox__close {
  position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--black); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-strip { background: var(--black); color: var(--white); padding: 18px 0; }
.contact-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-strip li { display: flex; justify-content: center; }
.contact-strip a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.contact-strip a:hover { text-decoration: underline; }
.contact-strip svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (max-width: 760px) { .contact-strip ul { grid-template-columns: 1fr; } .contact-strip li { justify-content: flex-start; } }

.contact-intro h2 { font-size: clamp(32px, 4vw, 46px); color: #333; }
.contact-intro .sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field .req { color: var(--red-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 8px; border: 0; border-bottom: 2px solid #c9c9c9; background: #fafafa;
  border-radius: 2px 2px 0 0; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--red-dark); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { margin: 0; font-size: 14px; }
.form__status.is-success { color: #137333; }
.form__status.is-error { color: var(--red-dark); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Privacy / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose a { color: var(--red-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 50px 0 30px; font-size: 13px; }
.footer__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid #333; }
.footer__logo img { width: 110px; margin-bottom: 14px; }
.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li { margin-bottom: 6px; }
.footer__contact a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__contact a:hover { color: var(--red); }
.footer__contact svg { width: 13px; height: 13px; fill: var(--red); flex: none; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; text-align: right; }
.footer__nav a { color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 700; line-height: 2; }
.footer__nav a:hover, .footer__nav a[aria-current="page"] { color: var(--red); }
.footer__bottom { text-align: center; padding-top: 22px; }
.footer__bottom p { margin: 0 0 12px; }
.footer__legal { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; font-size: 11px; }
.footer__legal a { color: var(--white); text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
@media (max-width: 600px) { .footer__nav ul { text-align: left; } }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(40px, 6vw, 70px); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal-pending { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }
