/* ════════════════════════════════════════════════════════════════
   ICCOM HydroGuard — Vertical Overrides  v2.1.0
   Loaded after portal-shared.css.

   This file ONLY contains HydroGuard-specific overrides:
     • Brand token remapping (--blue → teal palette)
     • HydroGuard navbar (.hg-nav)
     • HydroGuard footer (.hg-footer)
     • Mobile hamburger
     • Minor local additions

   DO NOT duplicate design tokens or components defined in
   portal-shared.css — edit that file to change the base system.
   ════════════════════════════════════════════════════════════════ */

/* ── HydroGuard brand token overrides ─────────────────────────── */
/* Remaps --blue (portal primary) to HydroGuard teal so all shared
   components (buttons, kpi-cards, table headers, focus rings, …)
   automatically pick up the vertical's accent colour.            */
:root {
  --blue:            #0A6E8A;   /* HydroGuard teal (replaces portal blue) */
  --iccom-blue:      #0A6E8A;
  --iccom-blue-light:#E0F4F8;

  /* Retained as aliases for templates that reference them directly */
  --teal:            #0A6E8A;
  --teal-light:      #2BC4C3;
  --water:           #0A6E8A;
  --water-light:     #14A3A8;
}

/* ── HydroGuard Navbar ─────────────────────────────────────────── */
.hg-nav {
  background: var(--navy); padding: 0; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hg-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 56px;
}
.hg-nav-brand {
  color: var(--white); text-decoration: none; font-weight: 800;
  font-size: 22px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px;
}
.hg-nav-brand span { color: var(--teal-light); }
.hg-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.hg-nav-links a {
  color: #B0C4D8; text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: all var(--transition);
}
.hg-nav-links a:hover,
.hg-nav-links a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.hg-nav-cta {
  background: var(--teal); color: var(--white); padding: 8px 18px;
  border-radius: 6px; text-decoration: none; font-weight: 700;
  font-size: 13px; transition: all var(--transition); white-space: nowrap;
}
.hg-nav-cta:hover { background: var(--teal-light); transform: translateY(-1px); }

/* ── Hamburger ─────────────────────────────────────────────────── */
.hg-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px; width: 28px;
}
.hg-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px; transition: all var(--transition);
}
.hg-hamburger.open span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px);  }
.hg-hamburger.open span:nth-child(2) { opacity: 0; }
.hg-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HydroGuard Footer ─────────────────────────────────────────── */
.hg-footer { background: var(--navy); color: #8899AA; padding: 48px 0 32px; }
.hg-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hg-footer-brand {
  font-size: 24px; font-weight: 800; color: var(--white);
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.hg-footer-brand span   { color: var(--teal-light); }
.hg-footer p            { font-size: 13px; line-height: 1.7; }
.hg-footer h4 {
  color: var(--white); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.hg-footer ul           { list-style: none; }
.hg-footer li           { padding: 3px 0; }
.hg-footer a            { color: #8899AA; text-decoration: none; font-size: 13px; transition: color var(--transition); }
.hg-footer a:hover      { color: var(--teal-light); }
.hg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 32px; padding-top: 24px;
  text-align: center; font-size: 12px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) { .hg-footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
  .hg-hamburger   { display: flex; }
  .hg-nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 16px 24px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .hg-nav-links.open { display: flex; }
  .hg-nav-links a    { padding: 10px 12px; font-size: 14px; }
  .hg-nav-cta        { margin-top: 8px; text-align: center; display: block; }
  .hg-footer-grid    { grid-template-columns: 1fr; }
}
