/* HNP Corporate Site Styles - 2010 Professional Utility Aesthetic */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #222222;
  background-color: #f0f2f5;
}
a { color: #003366; text-decoration: none; }
a:hover { color: #0055a5; text-decoration: underline; }
a:visited { color: #003366; }

/* Top utility bar - 2010 style */
#utility-bar {
  background-color: #002244;
  color: #cccccc;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid #001122;
}
#utility-bar .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#utility-bar a { color: #aaccff; margin-left: 12px; font-size: 11px; }
#utility-bar a:hover { color: #ffffff; }

/* Main header */
#header {
  background-color: #ffffff;
  border-bottom: 3px solid #003366;
  padding: 8px 0;
}
#header .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
#logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
#logo-area img { height: 82px; width: auto; border: 1px solid #ccc; }
#site-title h1 {
  margin: 0;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #003366;
  text-transform: uppercase;
}
#site-title .subtitle {
  font-size: 12px;
  color: #555555;
  margin-top: -2px;
  font-weight: normal;
}
#site-title .tagline {
  font-size: 11px;
  color: #006633;
  font-style: italic;
}

/* Primary navigation - classic horizontal */
#nav {
  background: linear-gradient(to bottom, #003366, #002244);
  border-bottom: 2px solid #001122;
  overflow: hidden;
}
#nav .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}
#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 34px;
  align-items: center;
}
#nav ul::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#nav li { margin: 0; padding: 0; flex: 0 0 auto; }
#nav li a {
  display: block;
  padding: 0 18px;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 34px;
  border-right: 1px solid #004488;
  white-space: nowrap;
}
#nav li a:hover {
  background-color: #005599;
  color: #ffffff;
  text-decoration: none;
}
#nav li:last-child a { border-right: none; }

/* Employee portal link styling - obvious yet corporate/obscure */
.employee-link {
  background-color: #4a4a4a !important;
  color: #ffcc00 !important;
  font-size: 11px !important;
  padding: 0 14px !important;
}
.employee-link:hover {
  background-color: #662222 !important;
  color: #ffdd66 !important;
}

/* Hero section */
#hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #001122;
  margin-bottom: 18px;
}
#hero video,
#hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.welcome-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin: 8px 0 14px;
  border: 1px solid #bbccdd;
  display: block;
}
#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,20,50,0.55), rgba(0,10,30,0.65));
  display: flex;
  align-items: center;
}
#hero-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  color: #ffffff;
}
#hero-content h2 {
  font-size: 32px;
  margin: 0 0 6px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  letter-spacing: 1px;
}
#hero-content p {
  font-size: 15px;
  margin: 0;
  max-width: 620px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
#hero-stats {
  margin-top: 14px;
  display: flex;
  gap: 22px;
  font-size: 12px;
}
#hero-stats .stat {
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
}
#hero-stats .stat strong { color: #aaddff; }

/* Main content container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
}
#main {
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 18px 22px;
  margin-bottom: 18px;
}

/* News / blog callout - 2010 corporate news box */
.news-featured {
  border: 1px solid #003366;
  background: #f8f9fa;
  padding: 14px 16px;
  margin: 16px 0;
}
.news-featured .label {
  display: inline-block;
  background: #003366;
  color: #ffffff;
  font-size: 10px;
  padding: 2px 8px;
  margin-bottom: 6px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.news-featured h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  color: #002244;
}
.news-featured .meta {
  font-size: 11px;
  color: #666666;
  margin-bottom: 6px;
}
.news-featured p { margin: 0 0 8px; font-size: 13px; }
.news-featured a { font-weight: bold; font-size: 12px; }

/* Stats grid */
.stats-grid {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.stat-box {
  flex: 1;
  background: #f4f6f9;
  border: 1px solid #bbccdd;
  padding: 10px;
  text-align: center;
}
.stat-box .value {
  font-size: 22px;
  font-weight: bold;
  color: #003366;
  line-height: 1.1;
}
.stat-box .label {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Section headings */
h2.section {
  font-size: 16px;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 3px;
  margin-top: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Generic content */
p { margin: 0 0 10px 0; }
ul { margin: 6px 0 12px 18px; padding: 0; }
ul li { margin-bottom: 3px; }

/* Two column layout helper */
.two-col {
  display: flex;
  gap: 20px;
}
.two-col > div { flex: 1; }

/* Footer - 2010 corporate with important disclaimer */
#footer {
  background-color: #002244;
  color: #99aabb;
  font-size: 10px;
  padding: 12px 0;
  border-top: 3px solid #003366;
}
#footer .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
#footer .disclaimer {
  max-width: 620px;
  line-height: 1.35;
  font-size: 9.5px;
}
#footer .links a {
  color: #aaccff;
  margin-left: 8px;
  white-space: nowrap;
}
#footer .links a:hover { color: #ffffff; }

/* Form styles (for contact/login) */
form label { display: block; font-weight: bold; margin-top: 8px; font-size: 12px; }
form input[type="text"],
form input[type="password"],
form textarea {
  width: 100%;
  max-width: 340px;
  padding: 5px 7px;
  border: 1px solid #888888;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
form input[type="submit"] {
  background: #003366;
  color: white;
  border: 1px solid #001122;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}
form input[type="submit"]:hover { background: #004488; }

/* Warning / notice boxes */
.warning-box {
  background: #fff3cd;
  border: 1px solid #ffcc00;
  color: #664d03;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
}
.warning-box strong { color: #8b0000; }
.danger-box {
  background: #f8d7da;
  border: 2px solid #b71c1c;
  color: #721c24;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
  font-weight: 600;
}

/* Industrial control room styles (for later page) */
.control-body {
  background: #1a1f26;
  color: #c0c8d0;
  font-family: "Lucida Console", "Courier New", monospace;
}
.control-panel {
  background: #2c333d;
  border: 3px solid #555f6b;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}
.panel-header {
  background: #11161c;
  color: #ffdd66;
  padding: 6px 12px;
  font-size: 13px;
  border-bottom: 2px solid #555f6b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-offline {
  color: #ff4444;
  font-weight: bold;
  text-shadow: 0 0 4px #ff0000;
}
.gauge {
  background: #0f1419;
  border: 2px solid #444c58;
  padding: 8px;
  text-align: center;
  font-size: 11px;
}
.gauge .value { font-size: 18px; color: #88ffaa; }

/* Table styles for 2010 data look */
table.data {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}
table.data th, table.data td {
  border: 1px solid #aabbbb;
  padding: 5px 8px;
  font-size: 12px;
  text-align: left;
}
table.data th {
  background: #003366;
  color: #ffffff;
  font-weight: bold;
}
table.data tr:nth-child(even) { background: #f4f6f9; }

.clear { clear: both; }
.center { text-align: center; }
.muted { color: #666666; font-size: 11px; }

/* Mobile adjustments - preserve 2010 aesthetic, prevent navbar text wrap/break.
   Nav becomes horizontally scrollable on small screens (classic fixed-site pattern).
   No full responsive redesign; just holds form without ugly wrapping. */
@media (max-width: 720px) {
  #nav .container {
    padding: 0;
  }
  #nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #nav li a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  /* Light header tweaks so logo+title don't explode on narrow phones */
  #header .container {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  #logo-area img {
    height: 58px;
  }
  #site-title h1 {
    font-size: 18px;
    letter-spacing: 0.3px;
  }
  #site-title .subtitle,
  #site-title .tagline {
    font-size: 10px;
  }

  /* Utility bar stacks gracefully without breaking */
  #utility-bar .container {
    flex-direction: column;
    gap: 2px;
    text-align: center;
    font-size: 10px;
  }
  #utility-bar .container > span:last-child {
    margin-top: 1px;
  }
}