:root {
  --ink: #092123;
  --ink-2: #173f43;
  --muted: #637a78;
  --paper: #f7fbf8;
  --white: #fff;
  --teal: #063b3f;
  --teal-2: #0b5c60;
  --green: #26a66a;
  --mint: #dff7ea;
  --lime: #d9f174;
  --blue: #67d4ff;
  --amber: #f0bf59;
  --line: rgba(9, 33, 35, 0.12);
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 70px rgba(9, 33, 35, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(38, 166, 106, 0.15), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(103, 212, 255, 0.12), transparent 32%),
    var(--paper);
  font-family: Lato, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: Montserrat, Lato, sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 { max-width: 980px; font-size: clamp(3rem, 7.8vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.85rem); }
p { overflow-wrap: anywhere; }

.loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 16px;
  color: var(--teal);
}

.loader span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(6, 59, 63, 0.14);
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px clamp(16px, 4vw, 54px);
}

.nav-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(247, 251, 248, 0.8);
  box-shadow: 0 14px 46px rgba(9, 33, 35, 0.09);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled .nav-row {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(9, 33, 35, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, #062f32, #11a76b);
  font-family: League Spartan, Montserrat, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(6, 59, 63, 0.24);
}

.brand-word {
  display: block;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1;
}

.brand-q {
  display: inline-block;
  margin: 0 -1px;
  color: var(--green);
  font-family: "League Spartan", Quicksand, Montserrat, sans-serif;
  font-size: 1.16em;
  transform: translateY(1px);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: Lato, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.nav-link {
  position: relative;
  border: 0;
  background: none;
  color: #173f43;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.partner-link {
  display: grid;
  line-height: 1.05;
}

.partner-link small {
  color: var(--green);
  font-size: 0.68rem;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #018061);
  box-shadow: 0 14px 34px rgba(6, 59, 63, 0.22);
  font-weight: 900;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
}

.mega-menu {
  position: absolute;
  left: clamp(16px, 4vw, 54px);
  right: clamp(16px, 4vw, 54px);
  top: 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-shell {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.mega-intro {
  padding: 24px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(6, 59, 63, 0.94), rgba(13, 99, 89, 0.9)),
    url("assets/isbr-plant-4.jpg") center/cover;
}

.mega-intro span, .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mega-intro span { color: var(--lime); }
.mega-intro h3 { margin-bottom: 14px; }
.mega-intro p { color: rgba(255, 255, 255, 0.78); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mega-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(9, 33, 35, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbf8);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mega-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 166, 106, 0.36);
  box-shadow: 0 16px 38px rgba(9, 33, 35, 0.1);
}

.mega-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--teal);
  background: linear-gradient(135deg, var(--mint), #eaf8ff);
  font-size: 1.2rem;
  font-weight: 900;
}

.mega-copy strong, .mega-copy small {
  display: block;
}

.mega-copy strong { line-height: 1.15; }
.mega-copy small { margin-top: 5px; color: var(--muted); font-size: 0.78rem; line-height: 1.28; }
.mega-cta { color: var(--green); font-size: 0.78rem; font-weight: 900; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 148px clamp(18px, 5vw, 76px) 70px;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-bg img { object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 35, 38, 0.94), rgba(4, 35, 38, 0.66) 55%, rgba(4, 35, 38, 0.25)),
    linear-gradient(0deg, rgba(4, 35, 38, 0.78), transparent 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
}

.hero .eyebrow { color: var(--lime); }
.hero-lede { max-width: 850px; color: rgba(255, 255, 255, 0.86); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }

.hero-actions, .card-actions, .brochure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button, .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover, .mini-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(6, 59, 63, 0.18); }
.button.primary { background: linear-gradient(135deg, var(--green), #03856a); }
.button.secondary { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.42); }
.button.dark, .button.secondary.dark { color: var(--teal); background: var(--white); border-color: transparent; }
.button.slim { min-height: 42px; padding: 10px 14px; }
.secondary-dark { background: var(--ink-2); }
.mini-btn { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: 0.8rem; }
.mini-btn.ghost { color: var(--teal); background: var(--mint); }

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.hero-panel span { color: var(--lime); font-weight: 900; }
.hero-panel strong { display: block; margin: 10px 0; font-family: Montserrat, sans-serif; font-size: 4rem; line-height: 1; }
.hero-panel p { color: rgba(255, 255, 255, 0.78); }
.panel-metric { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.panel-metric b { font-size: 1.35rem; }
.panel-metric small { color: rgba(255, 255, 255, 0.7); text-align: right; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-height: 146px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.86);
}

.stats strong {
  display: block;
  color: var(--teal);
  font-family: Montserrat, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.stats span { display: block; margin-top: 10px; color: var(--muted); font-weight: 900; }

.section, .band, .partner-section, .contact-section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 960px;
  margin-bottom: 36px;
}

.section-heading p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.solutions-list {
  display: grid;
  gap: 22px;
}

.solution-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  min-height: 380px;
  border: 1px solid rgba(9, 33, 35, 0.09);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 60px rgba(9, 33, 35, 0.08);
}

.solution-media {
  position: relative;
  min-height: 100%;
  background: #eaf4ef;
}

.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-media.isbr-collage {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #eaf4ef, #f7fbf8);
}

.solution-media.isbr-collage img {
  min-height: 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(9, 33, 35, 0.1);
}

.solution-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.86);
  font-size: 1.5rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.solution-body {
  padding: clamp(24px, 4vw, 44px);
}

.solution-body p { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip-row span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.spec-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfefb;
}

.spec-grid strong, .spec-grid small { display: block; }
.spec-grid small { margin-top: 6px; color: var(--muted); }

.band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 47, 50, 0.98), rgba(7, 88, 78, 0.94)),
    url("assets/isbr-plant-2.jpg") center/cover fixed;
}

.band .eyebrow { color: var(--lime); }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.glass-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.glass-card strong { font-family: Montserrat, sans-serif; font-size: 1.1rem; }
.glass-card p { color: rgba(255, 255, 255, 0.78); }

.blog-section { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(223,247,234,0.5)); }
.blog-grid { display: grid; gap: 22px; }
.featured-article {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) 1fr;
  gap: 28px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.featured-article img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}

.article-meta, .author {
  color: var(--green);
  font-weight: 900;
}

.technical-article {
  margin-top: 34px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
}

.article-callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.article-callouts strong {
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  color: var(--teal);
  background: linear-gradient(135deg, var(--mint), #f7fff8);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.process-step {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.process-step span { color: var(--green); font-weight: 900; }
.process-step strong { display: block; margin-top: 8px; }

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.comparison-table > div:last-child { border-bottom: 0; }
.comparison-table b, .comparison-table span {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.comparison-table b:last-child, .comparison-table span:last-child { border-right: 0; }
.comparison-table b { background: var(--teal); color: var(--white); }
.comparison-table span { color: var(--muted); }

.article-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.article-columns section {
  padding: 20px;
  border-radius: 18px;
  background: #f7fbf8;
}

.partner-section { padding-top: 0; }
.partner-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 59, 63, 0.96), rgba(4, 121, 91, 0.92)),
    url("assets/oxyclear-50gph.png") right center/contain no-repeat;
  box-shadow: var(--shadow);
}

.partner-card .eyebrow { color: var(--lime); }
.partner-card p { max-width: 760px; color: rgba(255, 255, 255, 0.78); }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 0.58fr);
  gap: clamp(28px, 6vw, 80px);
  color: var(--white);
  background: #082426;
}

.contact-section .eyebrow { color: var(--amber); }
.contact-section p { color: rgba(255, 255, 255, 0.78); }

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-methods a, .contact-methods span {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  padding: 13px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.lead-form option { color: var(--ink); }
.lead-form textarea { resize: vertical; }

.form-status {
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 900;
}

.form-status.success {
  color: #dff7ea;
  background: rgba(38, 166, 106, 0.2);
}

.form-status.error {
  color: #ffe8e8;
  background: rgba(210, 70, 70, 0.22);
}

.referral-form {
  max-width: 760px;
  margin-top: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 76px);
  background: #06191a;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer .brand-word { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--mint); text-decoration: none; font-weight: 900; }

.referral-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: min(340px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  backdrop-filter: blur(18px);
}

.referral-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.referral-toast > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--white);
  background: var(--green);
}

.referral-toast strong, .referral-toast small { display: block; }
.referral-toast small { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .mega-shell { grid-template-columns: 1fr; }
  .mega-grid, .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav, .header-cta { display: none; }
  .nav-row { grid-template-columns: auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav.is-open {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open .nav-link { padding: 12px; text-align: left; }
}

@media (max-width: 860px) {
  h1 { font-size: clamp(2.65rem, 14vw, 4.5rem); }
  .hero-grid, .solution-card, .featured-article, .contact-section, .site-footer, .partner-card {
    grid-template-columns: 1fr;
  }
  .stats, .article-callouts, .process-flow, .article-columns, .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-media { min-height: 280px; }
  .mega-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 10px; }
  .brand { min-width: 0; }
  .brand-word { font-size: 0.92rem; }
  .hero { padding: 126px 18px 54px; }
  .hero-actions .button, .card-actions .button, .brochure-actions, .brochure-actions .mini-btn { width: 100%; }
  .stats, .article-callouts, .process-flow, .article-columns, .spec-grid, .advantage-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table { font-size: 0.86rem; }
  .comparison-table > div { grid-template-columns: 0.75fr 1fr 1fr; min-width: 620px; }
  .comparison-table { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
