/* ==========================================================================
   Noolays Salt Producer Cooperative — Clean Production Stylesheet (v16)
   Deep-Navy & Coastal-Mineral Palette · Colored Card System · Zero Dead CSS
   ========================================================================== */

:root {
  --navy-dark: #0b2545;
  --navy: #13315c;
  --teal-dark: #0b4a56;
  --teal: #0e5b66;
  --ink: #0f1e2e;
  --ink-body: #142232;
  --ink-soft: #36495c;
  --sand: #e8eef5;
  --ice-bg: #c4dbf4;
  --ice-bdr: #7aa6d4;
  --aqua-bg: #bae4df;
  --aqua-bdr: #5cb0a8;
  --indigo-bg: #c8d6f3;
  --indigo-bdr: #7d96cb;
  --slate-border: #adbfd4;
  --wa-green: #12733c;
  --shadow-sm: 0 6px 18px rgba(11, 37, 69, 0.09);
  --shadow-md: 0 14px 32px rgba(11, 37, 69, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: #f7f9fc;
  color: var(--ink-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

[id] {
  scroll-margin-top: 86px;
}

img, svg, figure, table {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-dark);
}

h1, h2, h3, h4 {
  color: var(--navy-dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h2 { font-size: clamp(1.42rem, 2.5vw, 2.02rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.26rem); }

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.wrap.narrow {
  max-width: 820px;
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
}

section {
  padding: 58px 0;
}

@media (max-width: 680px) {
  section { padding: 42px 0; }
}

.section-sand {
  background: var(--sand);
  border-top: 1px solid #d5dfe9;
  border-bottom: 1px solid #d5dfe9;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: #dbe8f6;
  border: 1px solid #adc6e2;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-sand .eyebrow {
  background: #d6eeec;
  border-color: #8fc4be;
  color: #083842;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  color: var(--ink-soft);
  line-height: 1.62;
  margin-bottom: 18px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy-dark);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}

/* ==========================================================================
   Site Header & Responsive Navigation (Zero Topbar)
   ========================================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #cfd9e4;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.05);
}

header.site .wrap {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #c6d4e3;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .brand-sub { white-space: normal; font-size: 0.68rem; }
}

nav.menu {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

nav.menu a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.menu a:hover {
  background: #e2ecf7;
  color: var(--navy-dark);
}

nav.menu a.active {
  background: var(--navy-dark);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: #dbe8f6;
  border: 1.5px solid #9ab9dc;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 1081px) and (max-width: 1240px) {
  nav.menu a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }
  .brand-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }
  nav.menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
    box-shadow: 0 16px 32px rgba(11, 37, 69, 0.16);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  nav.menu.open {
    display: flex;
  }
  nav.menu a {
    padding: 12px 14px;
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 0.88rem; }
  .tgl-text { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-outline:hover {
  background: #e6eff9;
  color: var(--navy-dark);
}

.btn-ghost {
  background: rgba(11, 37, 69, 0.72);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
}
.btn-ghost:hover {
  background: rgba(11, 37, 69, 0.9);
  border-color: #ffffff;
  color: #ffffff;
}

/* ==========================================================================
   Homepage Hero — Habulay River Background
   ========================================================================== */
section.hero {
  position: relative;
  padding: 54px 0 58px;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: #16334a;
  background-image: url("../img/habulay-home-hero-v2.jpg");
  background-size: cover;
  background-position: center 24%;
  color: #ffffff;
}

section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 37, 69, 0.50), rgba(11, 37, 69, 0.40));
  pointer-events: none;
}

section.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-panel {
  max-width: 590px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e6f0fb;
  background: rgba(11, 37, 69, 0.78);
  border: 1px solid rgba(205, 224, 245, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

section.hero h1 {
  color: #ffffff;
  font-size: clamp(2.05rem, 3.8vw, 3.05rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(6, 20, 38, 0.42);
}

section.hero .hero-sub {
  color: #eef5fc;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.56;
  margin-bottom: 24px;
  max-width: 52ch;
}

section.hero .btn-primary {
  background: #ffffff;
  color: var(--navy-dark);
  border-color: #ffffff;
}
section.hero .btn-primary:hover {
  background: #e6f0fb;
  border-color: #e6f0fb;
  color: var(--navy-dark);
}

@media (max-width: 680px) {
  section.hero {
    min-height: 560px;
    padding: 64px 0;
    background-position: center 24%;
    text-align: center;
  }
  section.hero .hero-panel { margin: 0 auto; }
  section.hero .hero-sub { margin-left: auto; margin-right: auto; }
  section.hero::after { background: rgba(11, 37, 69, 0.48); }
  section.hero .btn-row .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Subpage Banner Header
   ========================================================================== */
section.page-head {
  background: linear-gradient(135deg, #0b2545 0%, #13315c 60%, #0e5b66 100%);
  color: #ffffff;
  padding: 44px 0 46px;
  border-bottom: 4px solid #8bb5df;
}

section.page-head .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  color: #eaf3fc;
}

section.page-head h1 {
  color: #ffffff;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #dce9f7;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  font-weight: 500;
  max-width: 68ch;
  margin: 0;
}

/* ==========================================================================
   Homepage 4-Card Colored Benchmark Strip
   ========================================================================== */
section.stats {
  background: #eaf0f7;
  border-bottom: 1px solid #cbd8e6;
  padding: 28px 0;
}

.stats .grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.stats .cell {
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  border: 1.5px solid var(--ice-bdr);
  background: var(--ice-bg);
  box-shadow: var(--shadow-sm);
}

.stats .cell:nth-child(1) {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border-color: #0b2545;
}
.stats .cell:nth-child(2) {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border-color: #0b4a56;
}
.stats .cell:nth-child(3) {
  background: linear-gradient(145deg, #163b6b 0%, #1f4f8a 100%);
  border-color: #163b6b;
}
.stats .cell:nth-child(4) {
  background: linear-gradient(145deg, #125563 0%, #1a6d7e 100%);
  border-color: #125563;
}

.stats .cell:nth-child(5) {
  background: linear-gradient(145deg, #163b6b 0%, #1f4f8a 100%);
  border-color: #163b6b;
}

.stats .num {
  font-size: clamp(1.32rem, 2.1vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 5px;
}

.stats .lbl {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dcebf9;
}

.stats .cell:nth-child(1) .num,
.stats .cell:nth-child(2) .num,
.stats .cell:nth-child(3) .num,
.stats .cell:nth-child(4) .num {
  color: #ffffff;
}

.stats .cell:nth-child(1) .lbl { color: #d4e4f7; }
.stats .cell:nth-child(2) .lbl { color: #d2f0ee; }
.stats .cell:nth-child(3) .lbl { color: #dceafa; }
.stats .cell:nth-child(4) .lbl { color: #d6f3f0; }

@media (max-width: 920px) {
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .stats .grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Layout Grids & Universal Colored Card System (100% Colored Cards)
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Default Colored Card (Rich Ice-Blue) */
.card {
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--ink-body);
  box-shadow: var(--shadow-sm);
}

.card .kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.card h3 {
  color: var(--navy-dark);
  margin-bottom: 8px;
}

/* Automatic harmonious color alternation inside multi-card grids (excluding explicit dark feature cards) */
.grid-2 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-3 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-3 > .card:nth-child(5):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-4 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-4 > .card:nth-child(4):not(.card-navy):not(.card-teal):not(.card-invest),
.card.card-aqua {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top-color: var(--teal);
}
.grid-2 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest) .kicker,
.grid-3 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest) .kicker,
.grid-3 > .card:nth-child(5):not(.card-navy):not(.card-teal):not(.card-invest) .kicker,
.grid-4 > .card:nth-child(2):not(.card-navy):not(.card-teal):not(.card-invest) .kicker,
.grid-4 > .card:nth-child(4):not(.card-navy):not(.card-teal):not(.card-invest) .kicker,
.card.card-aqua .kicker {
  color: #08444f;
}

.grid-3 > .card:nth-child(3):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-3 > .card:nth-child(6):not(.card-navy):not(.card-teal):not(.card-invest),
.grid-4 > .card:nth-child(3):not(.card-navy):not(.card-teal):not(.card-invest),
.card.card-indigo {
  background: var(--indigo-bg);
  border-color: var(--indigo-bdr);
  border-top-color: #1e3f78;
}

/* Deep Navy & Deep Mineral Teal Dark Feature Cards */
.card.card-invest,
.card.card-navy {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border-color: #0b2545;
  border-top: 4px solid #6ea8e5;
  color: #e8f0fa;
}
.card.card-invest h3,
.card.card-navy h3 {
  color: #ffffff;
}
.card.card-invest .kicker,
.card.card-navy .kicker {
  color: #bad6f5;
}
.card.card-invest p,
.card.card-navy p {
  color: #e5eef9;
}

.card.card-teal {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border-color: #0b4a56;
  border-top: 4px solid #7ad1c9;
  color: #e6f5f6;
}
.card.card-teal h3 {
  color: #ffffff;
}
.card.card-teal .kicker {
  color: #bfece8;
}
.card.card-teal p {
  color: #e4f4f5;
}

/* ==========================================================================
   Homepage Guided Directory Grid (Balanced 3x2 + Full-Width 7th Banner Card)
   ========================================================================== */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink-body);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dir-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.dir-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.dir-card h3 {
  margin: 0 0 8px;
  color: var(--navy-dark);
  font-size: 1.18rem;
}

.dir-card p {
  margin: 0 0 16px;
  color: #24374a;
  font-size: 0.95rem;
  line-height: 1.54;
}

.dir-cta {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rich colors across all 7 directory cards */
.dir-card:nth-child(1) {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border-color: #0b2545;
  border-top-color: #6ea8e5;
}
.dir-card:nth-child(1) .dir-num { color: #bad6f5; }
.dir-card:nth-child(1) h3,
.dir-card:nth-child(1) .dir-cta { color: #ffffff; }
.dir-card:nth-child(1) p { color: #e4eef9; }

.dir-card:nth-child(2),
.dir-card:nth-child(5) {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top-color: var(--teal);
}
.dir-card:nth-child(2) .dir-num,
.dir-card:nth-child(5) .dir-num { color: #08444f; }

.dir-card:nth-child(3),
.dir-card:nth-child(6) {
  background: var(--indigo-bg);
  border-color: var(--indigo-bdr);
  border-top-color: #1e3f78;
}

.dir-card:nth-child(4) {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border-color: #0b4a56;
  border-top-color: #7ad1c9;
}
.dir-card:nth-child(4) .dir-num { color: #bfece8; }
.dir-card:nth-child(4) h3,
.dir-card:nth-child(4) .dir-cta { color: #ffffff; }
.dir-card:nth-child(4) p { color: #e4f4f5; }

/* 7th Card spans full row cleanly on desktop — zero orphan space! */
.dir-card:nth-child(7) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #bfd9f4;
  background-image: linear-gradient(135deg, #bfd9f4 0%, #b5e3de 100%);
  border-color: #6ea4cc;
  border-top: 4px solid var(--navy-dark);
}
.dir-card:nth-child(7) p {
  margin-bottom: 0;
  max-width: 68ch;
}
.dir-card:nth-child(7) .dir-cta {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 10px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card:nth-child(7) {
    flex-direction: column;
    align-items: flex-start;
  }
  .dir-card:nth-child(7) .dir-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Tables (Tinted Colored Rows & Zero Horizontal Clipping on Phones)
   ========================================================================== */
.table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #9ab8d8;
  box-shadow: var(--shadow-sm);
  background: #edf3fa;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  border-bottom: 1px solid #c5d6e8;
}

th {
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:nth-child(odd) td {
  background: #cfe2f6;
}

tbody tr:nth-child(even) td {
  background: #dceaf8;
}

tbody tr.hl td {
  background: #b2e1db;
  color: #072931;
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 680px) {
  .table-wrap {
    overflow-x: visible;
  }
  .table-wrap table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 9px 8px;
    font-size: 0.83rem;
    line-height: 1.38;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Survey Basis Callout & Process Flow Pills (/project)
   ========================================================================== */
.prelim-callout {
  background: var(--aqua-bg);
  border: 1.5px solid var(--aqua-bdr);
  border-left: 6px solid var(--teal);
  border-radius: 12px;
  padding: 16px 20px;
}

.prelim-callout .prelim-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #08444f;
  margin-bottom: 4px;
}

.prelim-callout p {
  margin: 0;
  color: #10242a;
  font-weight: 500;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow span {
  background: var(--navy-dark);
  border: 1.5px solid var(--navy-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.87rem;
  padding: 7px 14px;
  border-radius: 999px;
}

.flow span:nth-of-type(even) {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.flow i {
  font-style: normal;
  font-weight: 800;
  color: var(--navy);
}

/* ==========================================================================
   Colored Photo, Survey Map & Evaporation Plate Cards (1fr Uncropped Mobile)
   ========================================================================== */
figure.photo {
  margin: 0;
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

figure.photo img {
  width: 100%;
  display: block;
}

figure.photo figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #1c3146;
  font-weight: 500;
}

/* 6 Survey Maps (/project) */
.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.map-grid figure {
  margin: 0;
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-grid figure:nth-child(even) {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top-color: var(--teal);
}

.map-grid a.lb {
  display: block;
  background: #d8e8f8;
  padding: 10px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.16);
}

.map-grid figure:nth-child(even) a.lb {
  background: #d0ece9;
}

.map-grid img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 6px;
}

.map-grid figcaption {
  padding: 15px 18px;
  font-size: 0.91rem;
  color: #1a2d40;
  line-height: 1.5;
}

.map-grid figcaption strong {
  display: block;
  color: var(--navy-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

@media (max-width: 680px) {
  .map-grid { grid-template-columns: 1fr; gap: 20px; }
  .map-grid a.lb { padding: 0; }
  .map-grid img { height: auto; border-radius: 0; }
}

/* 4 Evaporation Crystal Plates (/evaporation-test — Balanced 2x2 Desktop, 1fr Mobile) */
.evap-photo-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.evap-photo-card {
  margin: 0;
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.evap-photo-card:nth-child(2),
.evap-photo-card:nth-child(3) {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top-color: var(--teal);
}

.evap-photo-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.evap-photo-body {
  padding: 16px 18px;
}

.evap-plate-id {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}

.evap-photo-body h3 {
  margin-bottom: 6px;
}

.evap-photo-body figcaption {
  font-size: 0.92rem;
  color: #1f3347;
}

@media (max-width: 680px) {
  .evap-photo-showcase { grid-template-columns: 1fr; }
  .evap-photo-card img { height: auto; object-fit: contain; }
}

/* Optical Crystal Loupe & Solar Pond Yield Calculator (/evaporation-test) */
.macro-inspector {
  background-color: #c2daf3;
  background-image: linear-gradient(135deg, #c2daf3 0%, #b8e3de 100%);
  border: 1.5px solid #75a5cf;
  border-top: 4px solid var(--navy-dark);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.macro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.loupe-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--navy-dark);
  cursor: crosshair;
}

.loupe-stage img {
  width: 100%;
  display: block;
}

.loupe-lens {
  display: none;
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.45);
  pointer-events: none;
  background-repeat: no-repeat;
}

.loupe-stage.active .loupe-lens {
  display: block;
}

.loupe-hint {
  font-size: 0.84rem;
  color: #21374d;
  font-weight: 600;
  margin-top: 8px;
}

.macro-specs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mspec {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border: 1px solid #0b2545;
  border-left: 4px solid #78b5f2;
  border-radius: 10px;
  padding: 13px 16px;
  color: #e6eff9;
}

.mspec:nth-child(even) {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border-color: #0b4a56;
  border-left-color: #7cd6ce;
  color: #e4f4f5;
}

.mspec strong {
  display: block;
  color: #ffffff;
  margin-bottom: 3px;
}

.calc-box {
  background: #cadef4;
  border: 1.5px solid #7aa4d1;
  border-top: 4px solid var(--navy-dark);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.calc-controls {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.preset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  background: #b0cdf0;
  color: var(--navy-dark);
  border: 1.5px solid #6f98c7;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}

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

.cout {
  background: var(--aqua-bg);
  border: 1.5px solid var(--aqua-bdr);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 18px;
}

.cout:first-child {
  background: var(--ice-bg);
  border-color: var(--ice-bdr);
  border-top-color: var(--navy-dark);
}

.cout.primary {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border-color: #0b2545;
  border-top: 4px solid #6ea8e5;
  color: #ffffff;
}

.cout-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f3a52;
  margin-bottom: 6px;
}

.cout.primary .cout-lbl {
  color: #c6dcf5;
}

.cout-num {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.cout.primary .cout-num {
  color: #ffffff;
}

.cout-note {
  font-size: 0.83rem;
  color: #243b50;
}

.cout.primary .cout-note {
  color: #dce9f8;
}

@media (max-width: 820px) {
  .macro-grid,
  .calc-controls,
  .calc-outputs {
    grid-template-columns: 1fr;
  }
  .macro-inspector,
  .calc-box {
    padding: 18px;
  }
}

/* ==========================================================================
   4 Official PDF Document Cards (/resource — All Colored)
   ========================================================================== */
.docgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doccard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  padding: 24px;
  border: 1.5px solid var(--ice-bdr);
  background: var(--ice-bg);
  box-shadow: var(--shadow-sm);
}

.doccard:nth-child(1) {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  border-color: #0b2545;
  color: #e6eff9;
}
.doccard:nth-child(2) {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border-color: #0b4a56;
  color: #e4f4f5;
}
.doccard:nth-child(3) {
  background: var(--ice-bg);
  border-color: var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
}
.doccard:nth-child(4) {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top: 4px solid var(--teal);
}

.doccard-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 37, 69, 0.12);
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.doccard:nth-child(1) .doccard-badge,
.doccard:nth-child(2) .doccard-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.doccard:nth-child(1) h3,
.doccard:nth-child(2) h3 {
  color: #ffffff;
}

.doccard:nth-child(1) p { color: #e4eef9; }
.doccard:nth-child(2) p { color: #e2f3f4; }

.docmeta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  margin: 14px 0 12px;
  opacity: 0.88;
}

.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--navy-dark);
  color: #ffffff;
}
.btn-doc:hover {
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
}

.doccard:nth-child(1) .btn-doc,
.doccard:nth-child(2) .btn-doc {
  background: #ffffff;
  color: var(--navy-dark);
}
.doccard:nth-child(1) .btn-doc:hover,
.doccard:nth-child(2) .btn-doc:hover {
  background: #e6f0fb;
  color: var(--navy-dark);
}

@media (max-width: 680px) {
  .docgrid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Field Photo Gallery (/gallery — Colored Cards, 1fr Uncropped on Mobile)
   ========================================================================== */
.pro-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gcard {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 4px solid var(--navy-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.gcard:nth-child(2),
.gcard:nth-child(5) {
  background: var(--aqua-bg);
  border-color: var(--aqua-bdr);
  border-top-color: var(--teal);
}

.gcard:nth-child(3),
.gcard:nth-child(6) {
  background: var(--indigo-bg);
  border-color: var(--indigo-bdr);
  border-top-color: #1e3f78;
}

.gcard-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.gcard-link img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.gcard:hover .gcard-link img {
  transform: scale(1.03);
}

.gcard-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 37, 69, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.gcard-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.gcard-body {
  padding: 16px 18px;
}

.gcard-body h3 {
  margin-bottom: 6px;
}

.gcard-body figcaption {
  font-size: 0.91rem;
  color: #1f3347;
}

@media (max-width: 960px) {
  .pro-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pro-gallery-grid { grid-template-columns: 1fr; }
  .gcard-link img { height: auto; object-fit: contain; }
}

/* Full-screen Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 22, 42, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lb-overlay img {
  max-width: min(92vw, 1140px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.lb-overlay figcaption {
  color: #eef4fb;
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 72ch;
}

.lb-close,
.lb-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close { top: 18px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: fixed;
  top: 22px;
  left: 22px;
  color: #dce9f7;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact Cards, Scannable QR Box & Enquiry Form (/contact)
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-card-exec {
  background: linear-gradient(145deg, #0b2545 0%, #13315c 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.contact-card-exec h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bad6f5;
  margin-bottom: 8px;
}

.contact-rows {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.contact-row-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.contact-row-lbl {
  font-weight: 700;
  color: #cfe2f7;
  min-width: 112px;
}

.contact-card-exec a {
  color: #ffffff;
  font-weight: 700;
}

.exec-leader-box {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 16px 18px;
  line-height: 1.55;
}

.contact-card-site {
  background: var(--aqua-bg);
  border: 1.5px solid var(--aqua-bdr);
  border-top: 5px solid var(--teal);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.contact-card-site .contact-card-kicker {
  color: #08444f;
}

.site-meta-box {
  background: linear-gradient(145deg, #0b4a56 0%, #0e5b66 100%);
  border: 1px solid #0b4a56;
  border-left: 4px solid #7cd6ce;
  color: #eaf6f6;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 14px;
}

.site-meta-box strong {
  color: #ffffff;
}

.lang-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.lang-pill {
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.qr-inline-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #d5efec;
  border: 1.5px solid #59aba3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
}

.qr-inline-box img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #cbd8e6;
  padding: 4px;
  background: #ffffff;
}

@media (max-width: 860px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
}

/* Enquiry Form */
form.card {
  background: var(--ice-bg);
  border: 1.5px solid var(--ice-bdr);
  border-top: 5px solid var(--navy-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 16px;
}

.label-text {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #8eb1d6;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink-body);
  font-family: inherit;
  font-size: 0.96rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(19, 49, 92, 0.25);
  border-color: var(--navy-dark);
}

.check-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d6e7f8;
  border: 1.5px solid #7ca7d5;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
}

.check-row label:nth-child(even) {
  background: #cdece8;
  border-color: #63b2aa;
}

@media (max-width: 600px) {
  .check-row { grid-template-columns: 1fr; }
}

.form-note {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #cdece8;
  border: 1.5px solid var(--teal);
  color: var(--ink-body);
}

.form-note.show {
  display: block;
}

.form-note.form-error {
  border-color: #b42318;
  background: #fef3f2;
  color: #7a271a;
}

/* ==========================================================================
   Sequential Next-Page Navigation Band
   ========================================================================== */
.next-page-band {
  background: #e9eff6;
  border-top: 1px solid #cbd8e6;
  padding: 42px 0;
}

.next-page-card {
  background: linear-gradient(135deg, #0b2545 0%, #13315c 62%, #0e5b66 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.next-page-meta {
  max-width: 620px;
}

.next-page-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfe3f7;
  margin-bottom: 6px;
}

.next-page-card h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.3vw, 1.68rem);
}

.next-page-card p {
  margin: 0;
  color: #e6eff9;
  font-size: 0.97rem;
}

.next-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.next-page-card .btn-next-main {
  background: #ffffff;
  color: var(--navy-dark);
  border: 2px solid #ffffff;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.next-page-card .btn-next-main:hover {
  background: #e6f0fb;
  color: var(--navy-dark);
}

.next-page-card .btn-prev-sub {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.next-page-card .btn-prev-sub:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 760px) {
  .next-page-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .next-page-actions { width: 100%; }
  .next-page-card .btn-next-main,
  .next-page-card .btn-prev-sub {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Institutional Footer & Floating WhatsApp Action Button
   ========================================================================== */
footer.site {
  background: #081c36;
  color: #d9e5f2;
  padding: 52px 0 36px;
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.9fr 1.35fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.foot-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

footer.site .foot-h {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

footer.site a {
  color: #dce9f8;
  text-decoration: none;
  line-height: 1.85;
}
footer.site a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.foot-contact-list div {
  margin-bottom: 4px;
}

.foot-exec-divider {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.55;
}

.foot-note {
  margin: 18px 0 0;
  font-size: 0.83rem;
  color: #aebfd4;
}

@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .foot-grid { grid-template-columns: 1fr; }
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 950;
  background: var(--wa-green);
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(18, 115, 60, 0.36);
}
.wa-float:hover {
  background: #0e5c30;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 680px) {
  .wa-float { position: static; display: flex; width: max-content; margin: 16px auto; padding: 11px 18px; }
  .wa-float span { display: inline; }
}

@media print {
  header.site, .next-page-band, .wa-float { display: none; }
}
