/* ============ AquaKem — Municipal Water & Process Solutions ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.ak {
  --paper: #ffffff;
  --paper-2: #f0f7ff;
  --paper-3: #e8f4ff;
  --line: #dbe8f5;
  --line-soft: #eaf0f8;
  --blue: #007BFF;
  --blue-deep: #0056c7;
  --blue-bright: #3399FF;
  --blue-soft: #eef4ff;
  --gold: #FFC000;
  --gold-soft: #fff3cc;
  --gold-deep: #e6ac00;
  --ink: #333333;
  --ink-dim: #666666;
  --red: #ef4444;
  --orange: #f5a524;
  --green: #16a34a;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
.ak h1, .ak h2, .ak h3, .ak h4 { font-family: Arial, Helvetica, sans-serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.ak p { margin: 0; }
.ak em { font-style: normal; color: var(--gold); }
.ak a { text-decoration: none; color: inherit; }
.ak img { max-width: 100%; display: block; }

.ak-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ak-eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.ak-eyebrow .bar { width: 56px; height: 2px; background: var(--gold); }
.ak-eyebrow .txt { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }

.ak-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s, transform .2s; border: none; cursor: pointer; }
.ak-btn:hover { background: var(--gold-deep); transform: translateY(-1px); }
.ak-btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; font-size: 14px; transition: border-color .2s, background .2s; }
.ak-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }


/* Hero */
.ak-hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 80px; background: linear-gradient(135deg, #007BFF 0%, #0056c7 60%, #003f9e 100%); }
.ak-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .ak-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.ak-hero h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); margin-top: 24px; }
.ak-hero .lede { margin-top: 28px; max-width: 576px; color: rgba(255,255,255,.85); font-size: 18px; line-height: 1.6; }
.ak-hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.ak-hero-img-wrap { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); }
.ak-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (min-width: 1024px) { .ak-hero-img-wrap img { aspect-ratio: auto; height: 480px; } }
.ak-hero-badge { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; padding: 6px 12px; border-radius: 4px; }

.ak-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 560px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.25); }
.ak-stat .v { font-size: 30px; font-weight: 700; color: var(--gold); }
.ak-stat .l { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; text-transform: uppercase; letter-spacing: .15em; }

/* Section */
.ak-section { padding: 96px 0; }
.ak-section.alt { background: var(--paper-2); }
.ak-section-head { text-align: center; max-width: 768px; margin: 0 auto; }
.ak-section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 16px 0 20px; color: var(--blue-deep); }
.ak-section-head p { color: var(--ink-dim); font-size: 18px; line-height: 1.6; }

/* Fade-in on scroll */
.ak-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ak-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Two-card intro grid (Local Presence) */
.ak-duo { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 768px) { .ak-duo { grid-template-columns: repeat(2, 1fr); } }
.ak-duo-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ak-duo-card:hover { border-color: var(--blue); box-shadow: 0 20px 60px -30px rgba(0,123,255,.5); transform: translateY(-4px); }
.ak-duo-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; font-size: 20px; }
.ak-duo-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--blue-deep); }
.ak-duo-card p { color: var(--ink-dim); line-height: 1.7; margin-bottom: 14px; }
.ak-duo-card p:last-child { margin-bottom: 0; }

/* Two col */
.ak-two { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .ak-two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ak-two.rev .ak-two-media { order: -1; }
@media (min-width: 768px) { .ak-two.rev .ak-two-media { order: 2; } }
.ak-two h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 16px 0 24px; color: var(--blue-deep); }
.ak-two h3 { font-size: 20px; color: var(--blue-deep); margin-bottom: 10px; }
.ak-two .block + .block { margin-top: 28px; }
.ak-two p { color: var(--ink-dim); line-height: 1.7; margin-bottom: 20px; }
.ak-two ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ak-two li { display: flex; gap: 12px; color: var(--ink-dim); line-height: 1.6; }
.ak-two li .chk { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
.ak-two li strong { color: var(--ink); }
.ak-img-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,123,255,.08); }
.ak-img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.ak-img-frame.circle { border-radius: 50%; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; box-shadow: 0 20px 50px -20px rgba(0,86,199,.4); }
.ak-img-frame.circle img { aspect-ratio: 1/1; }

/* Cards */
.ak-cards { display: grid; gap: 24px; margin-top: 64px; }
@media (min-width: 768px) { .ak-cards { grid-template-columns: repeat(3, 1fr); } }
.ak-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 12px; padding: 32px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ak-card:hover { box-shadow: 0 20px 60px -30px rgba(0,123,255,.5); transform: translateY(-4px); }
.ak-card-icon { font-size: 26px; margin-bottom: 20px; }
.ak-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--blue-deep); }
.ak-card p { color: var(--ink-dim); line-height: 1.6; }

/* Media cards (Membrane Maintenance) */
.ak-media-cards { display: grid; gap: 24px; margin-top: 64px; }
@media (min-width: 768px) { .ak-media-cards { grid-template-columns: repeat(3, 1fr); } }
.ak-media-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ak-media-card:hover { box-shadow: 0 20px 60px -30px rgba(0,123,255,.5); transform: translateY(-4px); }
.ak-media-card img { width: 100%; height: 190px; object-fit: cover; }
.ak-media-card .cap { padding: 18px 20px; font-weight: 600; color: var(--blue-deep); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ak-media-card .cap .n { font-family: monospace; color: var(--gold-deep); font-weight: 700; }

/* Table */
.ak-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 48px; }
.ak-table-head { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr; background: var(--blue-deep); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.ak-table-head > div { padding: 18px 24px; }
.ak-table-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr; border-top: 1px solid var(--line); }
.ak-table-row:nth-child(even) { background: var(--paper-2); }
.ak-table-row > div { padding: 20px 24px; }
.ak-table-row .prog { font-weight: 700; color: var(--blue-deep); }
.ak-table-row .desc { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .ak-table-head { display: none; }
  .ak-table-row { display: block; padding: 16px 24px; grid-template-columns: 1fr; }
  .ak-table-row > div { padding: 8px 0; }
  .ak-table-row > div::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-deep); font-weight: 700; margin-bottom: 4px; }
}

/* Chart */
.ak-chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin-top: 48px; }
.ak-bar-row { margin-bottom: 24px; }
.ak-bar-row:last-child { margin-bottom: 0; }
.ak-bar-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.ak-bar-label .pct { font-family: monospace; font-weight: 700; }
.ak-bar-track { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.ak-bar-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(.22,1,.36,1); }
.ak-bar-fill.red { background: linear-gradient(90deg, #f87171, var(--red)); }
.ak-bar-fill.orange { background: linear-gradient(90deg, #fbbf24, var(--orange)); }
.ak-bar-fill.green { background: linear-gradient(90deg, #4ade80, var(--green)); }
.ak-chart-note { color: var(--ink-dim); font-style: normal; font-size: 15px; line-height: 1.6; margin-top: 24px; text-align: center; }

/* Timeline */
.ak-timeline { position: relative; margin-top: 72px; }
.ak-timeline-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ak-timeline-track::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--line); }
.ak-step { position: relative; text-align: center; padding-top: 44px; }
.ak-step .marker { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); display: grid; place-items: center; font-family: monospace; font-size: 12px; font-weight: 700; color: var(--blue-deep); }
.ak-step h3 { font-size: 17px; color: var(--blue-deep); margin-bottom: 10px; }
.ak-step p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) {
  .ak-timeline-track { grid-template-columns: 1fr; gap: 40px; }
  .ak-timeline-track::before { top: 0; bottom: 0; left: 14px; right: auto; width: 2px; height: auto; }
  .ak-step { text-align: left; padding-top: 0; padding-left: 48px; }
  .ak-step .marker { top: 0; left: 14px; transform: translateX(-50%); }
}
