/* ===========================================================
   Fluid Process UK — Design System
   Brand: Navy (industrial/trust) + Teal (fluid/water) on light neutral
   Fonts: Manrope (display) / Inter (body)
=========================================================== */

:root {
  --navy-deep: #071D33;
  --navy: #0B2E4F;
  --navy-light: #143F63;
  --teal: #0FB9C4;
  --teal-dark: #0A8E97;
  --teal-light: #E4F8F9;
  --bg: #F5F8F9;
  --white: #FFFFFF;
  --ink: #10202C;
  --muted: #5B6B75;
  --border: #E1E8EA;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-md: 0 10px 30px rgba(11, 46, 79, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 29, 51, 0.16);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--navy-deep); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--teal); background: var(--teal); color: var(--navy-deep); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 249, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  height: 40px;
  width: 52px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name span { display: block; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--teal-dark); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 0 auto; transition: 0.25s; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px 20px;
}
.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm.hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: url('../img/hero-facility.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
  padding: 160px 0 140px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,29,51,0.96) 0%, rgba(7,29,51,0.88) 32%, rgba(7,29,51,0.55) 58%, rgba(7,29,51,0.18) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--white); margin: 14px 0 20px; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }
.reveal-delay-3.in-view { transition-delay: 0.36s; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.72); }
.bg-navy .product-card h3 { color: var(--navy); }
.bg-navy .product-card p { color: var(--muted); }

/* ---------- Mission pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card h3 { margin-bottom: 10px; }

/* ---------- Partner strip ---------- */
.partner-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
@media (max-width: 800px) { .partner-strip { grid-template-columns: 1fr; text-align: left; } }
.partner-strip h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* ---------- Cards: services / products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 700px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Services marquee (slow auto-scroll) ---------- */
.services-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.services-marquee::before, .services-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.services-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(245,248,249,0)); }
.services-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(245,248,249,0)); }
.services-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: services-scroll 42s linear infinite;
}
.services-marquee:hover .services-track { animation-play-state: paused; }
.services-track .service-card { flex: 0 0 340px; }
@keyframes services-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .services-track { animation: none; }
}

.service-card, .product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card { cursor: pointer; }
.service-card:hover, .product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.card-icon svg { width: 30px; height: 30px; color: var(--teal); }

/* ---------- Photo thumbnails (mission pillars / services) ---------- */
.card-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Item-cleaned collage (homepage product cards) ---------- */
.card-collage {
  display: flex;
  gap: 2px;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.card-collage img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; display: block; }

/* ---------- Homepage product cards: horizontal split layout ---------- */
.product-card-home {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px;
}
.product-card-home .card-body { padding: 0; gap: 8px; flex: 1; }
.product-card-home .product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: 160px;
  height: 130px;
}
.product-card-home .product-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  object-fit: contain;
}
/* Source photos carry different amounts of built-in whitespace; these
   per-item corrections keep the container sizes reading as consistent. */
.product-visual img.v-tank { transform: scale(0.82); }
.product-visual img.v-ibc { transform: scale(1.18); }
.product-visual img.v-drum { transform: scale(1.08); }
.product-visual img.v-bins { transform: scale(1); }
.product-visual img.v-water { transform: scale(1.1); }
@media (max-width: 560px) {
  .product-card-home { flex-direction: column; align-items: stretch; }
  .product-card-home .product-visual { width: 100%; height: 150px; }
}
.item-caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}
.service-card ul, .product-card ul { color: var(--muted); padding-left: 18px; font-size: 0.92rem; }
.service-card ul li, .product-card ul li { margin-bottom: 6px; }

.product-card .product-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  text-transform: uppercase;
}
.card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--teal-dark); }

/* ---------- ROI teaser / CTA bands ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 10px; max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-icon {
  height: 50px;
  width: 64px;
  background: var(--white);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name span { color: var(--teal); }
.footer-brand p { color: rgba(255,255,255,0.65); margin: 16px 0 14px; max-width: 320px; }
.footer-basca-link { color: var(--teal); font-weight: 700; font-family: var(--font-head); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.7); margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { padding: 24px 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-deep); color: var(--white); padding: 70px 0 60px; }
.page-hero h1 { color: var(--white); margin-top: 12px; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 600px; margin-top: 14px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- ROI calculator ---------- */
.roi-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .roi-layout { grid-template-columns: 1fr; } }

.roi-form, .roi-results {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.roi-results { position: sticky; top: 110px; background: var(--navy-deep); color: var(--white); }
.roi-results h3 { color: var(--white); }

.field-group { margin-bottom: 26px; }
.field-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.field-group label .field-value { color: var(--teal-dark); }
.field-group input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
}
.field-group input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.result-row:last-of-type { border-bottom: none; }
.result-row .label { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.result-row .value { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--teal); }
.result-total {
  margin-top: 20px;
  padding: 22px;
  background: rgba(15, 185, 196, 0.12);
  border: 1px solid rgba(15, 185, 196, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
}
.result-total .value { font-size: 2.4rem; display: block; color: var(--teal); }
.result-total .label { color: rgba(255,255,255,0.75); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.roi-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-detail { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-detail .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail .icon svg { width: 22px; height: 22px; color: var(--teal-dark); }
.contact-detail h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.contact-detail p, .contact-detail a { color: var(--muted); font-size: 0.95rem; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--bg);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}
.form-success.show { display: block; }

.map-graphic { border-radius: var(--radius-lg); overflow: hidden; margin-top: 26px; border: 1px solid var(--border); }
