/* ============================================================
   MECO — Design tokens
   Palette: control-panel navy + amber warning-stripe + cool gray
   ============================================================ */

:root {
  --ink: #241010;
  --ink-2: #5C1014;
  --surface-red: #8F0E12;
  --surface-red-2: #6C0A0D;
  --spark: #C9A227;
  --spark-dark: #A6821C;
  --alert: #B31217;
  --slate: #6B6B6B;
  --bg: #F5F4F2;
  --surface: #FFFFFF;
  --line: #E3E0DD;
  --ok: #8A8A8A;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;

  --shadow-sm:
    0 1px 2px rgba(11, 37, 69, .06),
    0 1px 1px rgba(11, 37, 69, .04);

  --shadow-md:
    0 6px 20px rgba(11, 37, 69, .10);

  --container: 1120px;
}


/* ============================================================
   GLOBAL
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: var(--font-body);

  color: var(--ink);

  background: var(--bg);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);

  margin: 0 auto;

  padding: 0 24px;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);

  font-weight: 800;

  line-height: 1.15;

  letter-spacing: -0.01em;

  margin: 0 0 .5em;
}

.eyebrow {
  font-family: var(--font-mono);

  font-size: .75rem;

  letter-spacing: .12em;

  text-transform: uppercase;

  color: var(--spark-dark);

  font-weight: 600;
}

p {
  margin: 0 0 1em;

  color: var(--slate);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-family: var(--font-body);

  font-weight: 700;

  font-size: .95rem;

  padding: 12px 22px;

  border-radius: var(--radius);

  border: 2px solid transparent;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--spark);

  outline-offset: 2px;
}

.btn-primary {
  background: var(--spark);

  color: var(--ink);
}

.btn-primary:hover {
  background: var(--spark-dark);

  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;

  border-color: rgba(255, 255, 255, .5);

  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;

  background: rgba(255, 255, 255, .08);
}

.btn-dark {
  background: var(--surface-red);

  color: #fff;
}

.btn-dark:hover {
  background: var(--surface-red-2);

  transform: translateY(-1px);
}

/* ============================================================
   ADMIN ACTION BUTTONS
   ============================================================ */

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}


/* Remove form spacing inside action buttons */
.admin-actions form {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}


/* All action buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  min-width: 60px;

  box-sizing: border-box;

  padding: 0 12px;

  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;

  border-radius: var(--radius);

  text-decoration: none;

  cursor: pointer;
  white-space: nowrap;

  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease,
    transform .15s ease;
}


/* ============================================================
   EDIT
   ============================================================ */

.admin-edit-btn {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}

.admin-edit-btn:hover {
  background: var(--ink);
  color: #fff !important;
}


/* ============================================================
   VIEW FILE
   ============================================================ */

.admin-view-btn {
  background: var(--surface-red);
  color: #fff !important;
  border: 1px solid var(--surface-red);
}

.admin-view-btn:hover {
  background: var(--surface-red-2);
  color: #fff !important;
  transform: translateY(-1px);
}


/* ============================================================
   DELETE
   ============================================================ */

.admin-delete-btn {
  background: #fff;
  color: var(--alert) !important;
  border: 1px solid var(--alert);
}

.admin-delete-btn:hover {
  background: var(--alert);
  color: #fff !important;
}


/* Make the actual button follow the same sizing */
button.admin-action-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}


/* ============================================================
   TOP UTILITY STRIP
   ============================================================ */

.topbar {
  background: var(--surface-red);

  color: #E4D9D9;

  font-family: var(--font-mono);

  font-size: .78rem;
}

.topbar .container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-top: 8px;

  padding-bottom: 8px;

  flex-wrap: wrap;

  gap: 6px;
}

.topbar a {
  color: #E4D9D9;
}

.topbar .outage-line {
  color: var(--spark);

  font-weight: 600;
}

.topbar .outage-line a {
  color: var(--spark);
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

header.site-header {
  background: var(--spark);

  border-bottom: 1px solid var(--ink);

  position: sticky;

  top: 0;

  z-index: 50;
}


/*
   IMPORTANT:
   The regular .container is 1120px.

   The header gets a wider 1360px container so that
   the logo/company name and navigation have enough room.
*/

.site-header .nav-wrap {
  max-width: 1360px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 24px;

  gap: 28px;

  min-height: 94px;
}


/* ============================================================
   BRAND / LOGO
   ============================================================ */

.brand {
  display: flex;

  align-items: center;

  gap: 14px;

  flex-shrink: 0;

  text-decoration: none;
}

.brand-mark {
  width: 73px;

  height: 73px;

  flex: 0 0 72px;

  display: grid;

  place-items: center;

  overflow: hidden;

  /*
     Transparent because the MECO PNG already contains
     the circular logo/background.
  */

  background: transparent;

  padding: 0;

  border-radius: 0;
}

.brand-mark img {
  width: 73px;

  height: 73px;

  max-width: none;

  object-fit: contain;

  display: block;
}


/* ============================================================
   COMPANY NAME
   ============================================================ */

.brand>span:last-child {
  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;
}

.brand-name {
  display: block;

  font-family: var(--font-display);

  font-weight: 900;

  font-size: 1.15rem;

  color: var(--ink);

  line-height: 1.05;

  letter-spacing: -.02em;

  white-space: nowrap;
}

.brand-tag {
  display: block;

  margin-top: 5px;

  font-family: var(--font-mono);

  font-size: .72rem;

  color: var(--ink-2);

  letter-spacing: .08em;

  text-transform: uppercase;
}


/* ============================================================
   MAIN NAVIGATION
   ============================================================ */

nav.main-nav {
  margin-left: auto;

  flex: 1 1 auto;

  display: flex;

  justify-content: flex-end;

  min-width: 0;
}

nav.main-nav ul {
  list-style: none;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 2px;

  margin: 0;

  padding: 0;

  white-space: nowrap;
}

nav.main-nav li {
  position: relative;

  margin: 0;

  padding: 0;
}

nav.main-nav a.nav-link {
  display: block;

  padding: 10px 10px;

  font-family: var(--font-body);

  font-weight: 700;

  font-size: .84rem;

  line-height: 1.2;

  color: var(--ink-2);

  border-radius: var(--radius);

  white-space: nowrap;

  transition:
    background .15s ease,
    color .15s ease;
}

nav.main-nav a.nav-link:hover,
nav.main-nav li.has-dropdown:hover>a.nav-link {
  background: var(--bg);

  color: var(--ink);
}


/* ============================================================
   DROPDOWN MENU
   ============================================================ */

li.has-dropdown {
  position: relative;
  /* required so .dropdown positions correctly */
}

.dropdown {
  display: none;

  position: absolute;

  top: 100%;

  left: 0;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  box-shadow: var(--shadow-md);

  min-width: 220px;

  padding: 6px;

  z-index: 100;
}

li.has-dropdown:hover .dropdown,
li.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;

  padding: 9px 12px;

  font-size: .86rem;

  font-weight: 600;

  border-radius: 4px;

  color: var(--ink-2);

  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--bg);

  color: var(--ink);
}


/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */

.nav-toggle {
  display: none;

  background: none;

  border: none;

  cursor: pointer;

  padding: 8px;

  flex-shrink: 0;
}

.nav-toggle span {
  display: block;

  width: 25px;

  height: 2px;

  background: var(--ink);

  margin: 5px 0;
}

.nav-cta {
  margin-left: 8px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%,
      rgba(245, 166, 35, .16),
      transparent 60%),
    linear-gradient(180deg,
      var(--surface-red) 0%,
      var(--surface-red-2) 100%);

  color: #fff;

  padding: 76px 0 64px;

  position: relative;

  overflow: hidden;
}

.hero::after {
  content: '';

  position: absolute;

  inset: 0;

  background-image:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .035) 0 1px,
      transparent 1px 64px);

  pointer-events: none;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.1fr .9fr;

  gap: 40px;

  align-items: center;

  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);

  color: #fff;

  margin-bottom: .4em;
}

.hero h1 .hl {
  color: var(--spark);
}

.hero p.lead {
  color: #E4D9D9;

  font-size: 1.05rem;

  max-width: 46ch;
}

.hero-actions {
  display: flex;

  gap: 12px;

  margin-top: 24px;

  flex-wrap: wrap;
}


/* ============================================================
   METER READOUT CARD
   ============================================================ */

.meter-card {
  background: rgba(255, 255, 255, .06);

  border: 1px solid rgba(255, 255, 255, .16);

  border-radius: 10px;

  padding: 22px;

  backdrop-filter: blur(2px);
}

.meter-card .eyebrow {
  color: var(--spark);
}

.meter-readout {
  font-family: var(--font-mono);

  font-size: 2.1rem;

  letter-spacing: .04em;

  color: #fff;

  margin: 6px 0 2px;
}

.meter-sub {
  font-family: var(--font-mono);

  font-size: .78rem;

  color: #C9B8B8;
}

.meter-divider {
  height: 1px;

  background: rgba(255, 255, 255, .14);

  margin: 16px 0;
}

.meter-row {
  display: flex;

  justify-content: space-between;

  font-size: .85rem;

  color: #E4D9D9;

  padding: 4px 0;
}

.meter-row b {
  color: #fff;

  font-family: var(--font-mono);
}


/* ============================================================
   BREAKER SWITCH QUICK LINKS
   ============================================================ */

.breaker-panel {
  padding: 0;

  margin-top: -46px;

  position: relative;

  z-index: 5;
}

.breaker-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;
}

.breaker {
  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 10px;

  box-shadow: var(--shadow-md);

  padding: 18px 16px;

  display: flex;

  align-items: center;

  gap: 14px;

  transition:
    transform .15s ease,
    border-color .15s ease;
}

.breaker:hover {
  transform: translateY(-3px);

  border-color: var(--spark);
}

.breaker:hover .toggle-nub {
  transform: translateY(3px);

  background: var(--spark);
}

.toggle {
  width: 20px;

  height: 34px;

  border-radius: 4px;

  background: var(--ink);

  position: relative;

  flex-shrink: 0;
}

.toggle-nub {
  position: absolute;

  left: 3px;

  top: 3px;

  width: 14px;

  height: 14px;

  border-radius: 3px;

  background: var(--ok);

  transition:
    transform .15s ease,
    background .15s ease;
}

.breaker-label {
  font-weight: 700;

  font-size: .9rem;

  color: var(--ink);
}

.breaker-sub {
  font-family: var(--font-mono);

  font-size: .72rem;

  color: var(--slate);
}


/* ============================================================
   SECTIONS
   ============================================================ */

section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;

  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}


/* ============================================================
   TWO COLUMN
   ============================================================ */

.two-col {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 48px;

  align-items: center;
}


/* ============================================================
   ABOUT IMAGE
   ============================================================ */

.about-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: transparent;
  line-height: 0;
}

.about-figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 10%;
}


/* ============================================================
   MAP
   ============================================================ */

.about-map-frame {
  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border: 5px solid #8F0E12;

  border-radius: 15px;

  box-sizing: border-box;

  box-shadow: var(--shadow-md);
}

.about-map {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;

  cursor: zoom-in;
}

.about-map-frame:hover .about-map {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {

  .about-map {
    transition: none;
  }

  .about-map-frame:hover .about-map {
    transform: none;
  }
}


/* ============================================================
   STATS
   ============================================================ */

.stat-row {
  display: flex;

  gap: 28px;

  margin-top: 28px;

  flex-wrap: wrap;
}

.stat b {
  display: block;

  font-family: var(--font-mono);

  font-size: 1.7rem;

  color: var(--ink);
}

.stat span {
  font-size: .8rem;

  color: var(--slate);
}


/* ============================================================
   CARDS
   ============================================================ */

.card-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

/* ============================================================
   NOTICE FILTERS
   ============================================================ */

.notice-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}


/* ============================================================
   NOTICE FILTER BUTTONS
   ============================================================ */

.notice-filters .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 12px 22px;

  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;

  color: var(--ink-2) !important;
  background: var(--surface) !important;

  border: 2px solid var(--line) !important;
  border-radius: var(--radius);

  cursor: pointer;
  white-space: nowrap;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .15s ease;
}

/* Hover */
.notice-filters .btn:hover {
  background: #F5EAEA !important;
  color: var(--surface-red) !important;
  border-color: var(--surface-red) !important;
}

/* Active category */
.notice-filters .btn.active,
.notice-filters .btn[aria-selected="true"] {
  background: var(--surface-red) !important;
  color: #FFFFFF !important;
  border-color: var(--surface-red) !important;
}

/* Keyboard focus */
.notice-filters .btn:focus-visible {
  outline: 3px solid var(--spark);
  outline-offset: 2px;
}

/* Mobile notice filters */
@media (max-width: 600px) {
  .notice-filters .btn {
    min-height: 44px;
    padding: 9px 13px;
    font-size: .82rem;
  }
}



/* ============================================================
   NOTICE CARD
   ============================================================ */

.notice-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;

  min-height: 92px;
  margin-bottom: 12px;
}


/* ============================================================
   NOTICE CARD ACTION
   ============================================================ */

.notice-card-action {
  margin-top: 18px;
}


/* ============================================================
   NOTICE PAGINATION
   ============================================================ */

.notice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 42px;

  flex-wrap: wrap;
}


/* Previous / Next */

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 0 15px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--surface);
  color: var(--ink);

  font-size: .82rem;
  font-weight: 700;

  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
}


.pagination-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}


/* Page number container */

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Page number */

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--surface);
  color: var(--ink);

  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;

  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
}


.pagination-number:hover {
  background: var(--bg);
  border-color: var(--ink);
}


/* Active page */

.pagination-number.active {
  background: var(--surface-red);
  border-color: var(--surface-red);
  color: #fff;
}


/* Dots */

.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 40px;

  color: var(--slate);

  font-weight: 700;
}


/* ============================================================
   NO NOTICES
   ============================================================ */

.notice-empty {
  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: 10px;

  padding: 40px;

  text-align: center;
}


.notice-empty h3 {
  margin-bottom: 8px;
}


.notice-empty p {
  margin: 0;
}


/* ============================================================
   NOTICE RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

  .notice-pagination {
    margin-top: 32px;
  }

}


@media (max-width: 600px) {

  .notice-filters {
    gap: 6px;
  }


  .notice-filters .btn {
    font-size: .82rem;
    padding: 9px 13px;
  }


  .notice-pagination {
    gap: 5px;
  }


  .pagination-btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: .76rem;
  }


  .pagination-number {
    width: 36px;
    height: 38px;
  }


  .pagination-dots {
    width: 22px;
  }


  .notice-empty {
    padding: 30px 20px;
  }

}

.card {
  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 10px;

  padding: 22px;

  box-shadow: var(--shadow-sm);
}

.card .tag {
  display: inline-block;

  font-family: var(--font-mono);

  font-size: .68rem;

  text-transform: uppercase;

  letter-spacing: .06em;

  padding: 3px 8px;

  border-radius: 4px;

  margin-bottom: 10px;
}

.tag-outage {
  background: #F6DEDD;

  color: var(--alert);
}

.tag-rate {
  background: #F5EAC7;

  color: var(--spark-dark);
}

.tag-erc {
  background: #E9E6E4;

  color: var(--ink-2);
}

.tag-general {
  background: #EFEAE0;

  color: #5A5A5A;
}

.card h3 {
  font-size: 1.05rem;

  margin-bottom: 8px;
}

.card p {
  font-size: .9rem;

  margin-bottom: 12px;
}

.card .card-date {
  font-family: var(--font-mono);

  font-size: .72rem;

  color: var(--slate);
}

.read-more {
  font-weight: 700;

  font-size: .85rem;

  color: var(--ink-2);

  border-bottom: 2px solid var(--spark);
}


/* ============================================================
   RATE TABLE
   ============================================================ */

.rate-table {
  width: 100%;

  border-collapse: collapse;

  background: var(--surface);

  border-radius: 10px;

  overflow: hidden;

  box-shadow: var(--shadow-sm);
}

.rate-table th,
.rate-table td {
  padding: 14px 18px;

  text-align: left;

  border-bottom: 1px solid var(--line);
}

.rate-table th {
  font-family: var(--font-mono);

  font-size: .72rem;

  text-transform: uppercase;

  letter-spacing: .06em;

  color: var(--slate);

  background: var(--bg);
}

.rate-table td.num {
  font-family: var(--font-mono);

  font-weight: 700;

  color: var(--ink);
}

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

/* ============================================================
   RATE INFO CARDS SPACING
   ============================================================ */

.rate-table-wrapper {
  margin-bottom: 32px;
}


/* ============================================================
   FORMS
   ============================================================ */

.form-panel {
  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 32px;

  box-shadow: var(--shadow-sm);

  max-width: 640px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;

  font-weight: 700;

  font-size: .85rem;

  margin-bottom: 6px;

  color: var(--ink);
}

.form-row .hint {
  font-size: .78rem;

  color: var(--slate);

  margin-top: 4px;
}

.form-grid-2 {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

input,
select,
textarea {
  width: 100%;

  font-family: var(--font-body);

  font-size: .95rem;

  padding: 11px 13px;

  border: 1.5px solid var(--line);

  border-radius: var(--radius);

  background: var(--bg);

  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: var(--spark);

  background: #fff;
}

textarea {
  resize: vertical;

  min-height: 110px;
}


/* ============================================================
   ALERTS
   ============================================================ */

.alert-box {
  border-radius: var(--radius);

  padding: 14px 16px;

  font-size: .9rem;

  margin-bottom: 20px;

  border: 1px solid transparent;
}

.alert-success {
  background: #EFEAE0;

  color: #7A5C10;

  border-color: #E3CE84;
}

.alert-error {
  background: #F6DEDD;

  color: #7A0D10;

  border-color: #E8B3B1;
}


/* ============================================================
   BILL RESULT
   ============================================================ */

.bill-result {
  background: var(--surface-red);

  color: #fff;

  border-radius: 12px;

  padding: 28px;

  margin-top: 24px;
}

.bill-result .amount {
  font-family: var(--font-mono);

  font-size: 2.4rem;

  color: var(--spark);
}

.bill-result .row {
  display: flex;

  justify-content: space-between;

  padding: 8px 0;

  border-bottom: 1px solid rgba(255, 255, 255, .12);

  font-size: .9rem;
}

.bill-result .row:last-child {
  border-bottom: none;
}

.status-pill {
  display: inline-block;

  padding: 3px 10px;

  border-radius: 20px;

  font-size: .72rem;

  font-family: var(--font-mono);

  text-transform: uppercase;
}

.status-unpaid {
  background: #F5EAC7;

  color: var(--spark-dark);
}

.status-paid {
  background: #EFEAE0;

  color: #5A5A5A;
}

.status-overdue {
  background: #F6DEDD;

  color: var(--alert);
}


/* ============================================================
   EMERGENCY BAND
   ============================================================ */

.emergency-band {
  background: var(--spark);

  color: var(--ink);

  padding: 34px 0;
}

.emergency-band .container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 16px;
}

.emergency-band h3 {
  color: var(--ink);

  margin: 0 0 4px;

  font-size: 1.15rem;
}

.emergency-band .numbers {
  font-family: var(--font-mono);

  font-size: .95rem;

  display: flex;

  gap: 18px;

  flex-wrap: wrap;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
  background: var(--surface-red);

  color: #D8CACA;

  padding: 56px 0 24px;

  margin-top: 40px;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;

  gap: 32px;
}

.footer-grid h4 {
  color: #fff;

  font-size: .95rem;

  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;

  margin: 0;

  padding: 0;
}

.footer-grid li {
  margin-bottom: 9px;

  font-size: .88rem;
}

.footer-grid a:hover {
  color: var(--spark);
}

.footer-brand p {
  color: #C2AFAF;

  font-size: .88rem;

  max-width: 30ch;
}

.social-row {
  display: flex;

  gap: 10px;

  margin-top: 14px;
}

.social-row a {
  width: 34px;

  height: 34px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, .22);

  display: grid;

  place-items: center;

  font-size: .8rem;
}

.social-row a:hover {
  border-color: var(--spark);

  color: var(--spark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);

  margin-top: 40px;

  padding-top: 20px;

  font-size: .8rem;

  color: #A98F8F;

  display: flex;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;
}


/* ============================================================
   RESPONSIVE — 1050px
   ============================================================ */

@media (max-width: 1050px) {

  .site-header .nav-wrap {
    gap: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 62px;

    height: 62px;

    flex-basis: 62px;
  }

  .brand-mark img {
    width: 62px;

    height: 62px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: .66rem;
  }

  nav.main-nav a.nav-link {
    padding: 9px 7px;

    font-size: .76rem;
  }
}


/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */

@media (max-width: 900px) {

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .breaker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .site-header .nav-wrap {
    min-height: 80px;
  }

  .brand-mark {
    width: 58px;

    height: 58px;

    flex-basis: 58px;
  }

  .brand-mark img {
    width: 58px;

    height: 58px;
  }

  .brand-name {
    font-size: .95rem;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE 760px
   ============================================================ */

@media (max-width: 760px) {

  .site-header .nav-wrap {
    min-height: 68px;

    padding: 7px 24px;

    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 54px;

    height: 54px;

    flex-basis: 54px;
  }

  .brand-mark img {
    width: 54px;

    height: 54px;
  }

  .brand-name {
    font-size: .85rem;

    white-space: normal;

    line-height: 1.05;
  }

  .brand-tag {
    font-size: .62rem;

    margin-top: 3px;
  }

  .nav-toggle {
    display: block;
  }

  nav.main-nav {
    position: fixed;

    top: 0;

    right: -100%;

    width: 78%;

    max-width: 320px;

    height: 100vh;

    background: var(--surface);

    box-shadow: -8px 0 24px rgba(0, 0, 0, .15);

    transition: right .25s ease;

    padding: 80px 24px 24px;

    overflow-y: auto;

    z-index: 100;
  }

  nav.main-nav.open {
    right: 0;
  }

  nav.main-nav ul {
    flex-direction: column;

    align-items: stretch;

    gap: 2px;

    white-space: normal;
  }

  nav.main-nav a.nav-link {
    padding: 12px 14px;

    font-size: .9rem;

    white-space: normal;
  }

  .dropdown {
    position: static;

    box-shadow: none;

    border: none;

    display: none;

    padding: 0 0 0 10px;

    min-width: 0;
  }

  li.has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 10px 14px;
  }

  .nav-cta {
    display: none;
  }

  .breaker-panel {
    margin-top: 24px;
  }

  .breaker-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .emergency-band .container {
    flex-direction: column;

    align-items: flex-start;
  }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 420px) {

  .container {
    padding-left: 16px;

    padding-right: 16px;
  }

  .site-header .nav-wrap {
    padding-left: 16px;

    padding-right: 16px;
  }

  .brand-mark {
    width: 48px;

    height: 48px;

    flex-basis: 48px;
  }

  .brand-mark img {
    width: 48px;

    height: 48px;
  }

  .brand-name {
    font-size: .78rem;
  }

  .brand-tag {
    font-size: .58rem;
  }
}

/* ============================================================
   MECO — BILLING INQUIRY
   ============================================================ */

.billing-hero {
  padding: 56px 0 42px;
}

.billing-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}

.billing-hero .lead {
  max-width: 760px;
}


/* ============================================================
   BILLING SECTION
   ============================================================ */

.billing-section {
  padding: 0 0 70px;
}


/* ============================================================
   BILLING PANEL
   ============================================================ */

.billing-panel {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   BILLING IFRAME
   ============================================================ */

.billing-iframe {
  display: block;

  width: 100%;
  height: 900px;

  border: 0;
  margin: 0;
  padding: 0;

  background: #ffffff;
}


/* ============================================================
   BILLING NOTE
   ============================================================ */

.billing-note {
  margin-top: 20px;
  padding: 18px 22px;

  background: #f5f4f2;

  border-left: 4px solid var(--spark);

  border-radius: 6px;

  color: var(--ink);
}

.billing-note strong {
  display: block;
  margin-bottom: 5px;

  font-size: 0.95rem;
}

.billing-note p {
  margin: 0;

  font-size: 0.9rem;
  line-height: 1.6;

  color: #5c1014;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

  .billing-iframe {
    height: 950px;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .billing-hero {
    padding: 42px 0 30px;
  }

  .billing-section {
    padding-bottom: 50px;
  }

  .billing-panel {
    border-radius: 8px;
  }

  .billing-iframe {
    height: 1050px;
  }

  .billing-note {
    padding: 15px 17px;
  }

}

/* ============================================================
   Payment Channel
   ============================================================ */
.payment-channel-frame {
  width: 80%;
  /* Make the image smaller */
  max-width: 850px;
  /* Prevent it from becoming too large */
  margin: 0 auto;
  /* Center it */
  overflow: hidden;
  border: 4px solid #8F0E12;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.payment-channel {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */

nav.main-nav {
  margin-left: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
}

nav.main-nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

nav.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;

  padding: 10px 11px;

  font-family: var(--font-body);
  font-weight: 700;
  font-size: .84rem;
  line-height: 1.2;

  color: var(--ink-2);
  border-radius: var(--radius);

  white-space: nowrap;

  transition:
    background .18s ease,
    color .18s ease;
}

nav.main-nav a.nav-link:hover,
nav.main-nav li.has-dropdown:hover>a.nav-link,
nav.main-nav li.has-dropdown.open>a.nav-link {
  background: var(--bg);
  color: var(--ink);
}


/* ============================================================
   DROPDOWN
   ============================================================ */

li.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;

  top: calc(100% + 7px);
  left: 0;

  width: 235px;
  min-width: 235px;

  padding: 7px;

  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: 9px;

  box-shadow:
    0 10px 30px rgba(11, 37, 69, .14),
    0 2px 6px rgba(11, 37, 69, .06);

  z-index: 100;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);

  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;
}

/* Small pointer */
.dropdown::before {
  content: "";

  position: absolute;

  top: -6px;
  left: 22px;

  width: 10px;
  height: 10px;

  background: var(--surface);

  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);

  transform: rotate(45deg);
}

/* Desktop hover */
li.has-dropdown:hover>.dropdown,
li.has-dropdown:focus-within>.dropdown,
li.has-dropdown.open>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;

  min-height: 42px;

  padding: 9px 12px;

  font-size: .86rem;
  font-weight: 600;

  color: var(--ink-2);

  border-radius: 6px;

  white-space: nowrap;

  transition:
    background .15s ease,
    color .15s ease,
    padding-left .15s ease;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--bg);
  color: var(--ink);
  padding-left: 16px;
}


/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */

.nav-toggle {
  display: none;

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  background: transparent;

  border: 1px solid rgba(36, 16, 16, .25);
  border-radius: 7px;

  cursor: pointer;

  padding: 8px;

  flex-shrink: 0;
}

.nav-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  background: var(--ink);

  margin: 3px 0;

  border-radius: 2px;

  transition:
    transform .2s ease,
    opacity .2s ease;
}


/* ============================================================
   TABLET + MOBILE NAVIGATION
   Use hamburger from 1000px downward
   ============================================================ */

@media (max-width: 1000px) {

  .site-header .nav-wrap {
    min-height: 76px;
    gap: 14px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 110;
  }

  /* Hamburger -> X */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav.main-nav {
    position: fixed;

    top: 0;
    right: -100%;

    width: min(88vw, 360px);
    height: 100dvh;

    margin: 0;

    display: block;

    background: var(--surface);

    box-shadow: -10px 0 35px rgba(0, 0, 0, .18);

    padding: 90px 18px 28px;

    overflow-y: auto;
    overscroll-behavior: contain;

    transition: right .25s ease;

    z-index: 100;
  }

  nav.main-nav.open {
    right: 0;
  }

  nav.main-nav ul {
    display: flex;

    flex-direction: column;

    align-items: stretch;
    justify-content: flex-start;

    gap: 4px;

    width: 100%;
  }

  nav.main-nav li {
    width: 100%;
  }

  nav.main-nav a.nav-link {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    font-size: .95rem;

    border-radius: 7px;

    white-space: normal;
  }

  nav.main-nav a.nav-link:hover,
  nav.main-nav li.has-dropdown:hover>a.nav-link {
    background: var(--bg);
  }


  /* Mobile/tablet dropdown */

  .dropdown {
    position: static;

    width: 100%;
    min-width: 0;

    margin-top: 2px;

    padding: 4px 0 5px 12px;

    background: transparent;

    border: 0;

    border-left: 2px solid var(--spark);

    border-radius: 0;

    box-shadow: none;

    opacity: 0;
    visibility: hidden;

    max-height: 0;

    overflow: hidden;

    transform: none;

    transition:
      max-height .25s ease,
      opacity .2s ease,
      visibility .2s ease;
  }

  .dropdown::before {
    display: none;
  }

  li.has-dropdown.open>.dropdown {
    opacity: 1;
    visibility: visible;

    max-height: 400px;

    transform: none;
  }

  .dropdown a {
    min-height: 44px;

    padding: 10px 14px;

    font-size: .9rem;

    white-space: normal;
  }

  .dropdown a:hover,
  .dropdown a:focus-visible {
    padding-left: 18px;
  }

  .nav-cta {
    display: none;
  }
}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 600px) {

  .site-header .nav-wrap {
    min-height: 66px;
    padding: 7px 16px;
  }

  nav.main-nav {
    width: min(92vw, 340px);
    padding: 82px 15px 24px;
  }

  nav.main-nav a.nav-link {
    min-height: 50px;
    font-size: .94rem;
  }

  .dropdown a {
    min-height: 46px;
    font-size: .88rem;
  }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 420px) {

  nav.main-nav {
    width: 94vw;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
   CLEANUP / SHARED COMPONENTS
   ============================================================ */

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.emergency-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.emergency-message {
    color: var(--ink);
    margin: 0;
}

.footer-brand-name {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Notices dropdown toggle — match the other navigation links */
.nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 0;
    padding: 10px 11px;

    font-family: var(--font-body);
    font-weight: 700;
    font-size: .84rem;
    line-height: 1.2;

    color: var(--ink-2);
    background: transparent;
    border: 0;
    border-radius: var(--radius);

    cursor: pointer;
    white-space: nowrap;
    transition:
        background .18s ease,
        color .18s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
    background: var(--bg);
    color: var(--ink);
}

.nav-dropdown-toggle:focus-visible {
    outline: 2px solid var(--spark);
    outline-offset: 2px;
}

@media (max-width: 1050px) {
    .nav-dropdown-toggle {
        padding: 9px 7px;
        font-size: .76rem;
    }
}

@media (max-width: 1000px) {
    .nav-dropdown-toggle {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 12px 14px;
        font-size: .95rem;
        border-radius: 7px;
        white-space: normal;
    }

    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle:focus-visible {
        background: var(--bg);
        color: var(--ink);
    }
}

@media (max-width: 600px) {
    .nav-dropdown-toggle {
        min-height: 50px;
        font-size: .94rem;
    }
}

.field-invalid {
    border-color: #D64545 !important;
}

@media (max-width: 1000px) {
    .topbar-inner,
    .emergency-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ============================================================
   MECO — OUTAGE CONTACT / HOTLINE PAGE
   Matches the existing maroon and gold website theme
   ============================================================ */

.outage-contact-page {
    --oc-navy: var(--ink-2);
    --oc-blue: var(--surface-red);
    --oc-muted: var(--slate);

    background: var(--bg);
    color: var(--ink);
    padding-bottom: 60px;
}

.outage-contact-page .oc-hero {
    background: linear-gradient(
        125deg,
        var(--surface-red-2),
        var(--surface-red)
    );
    border-bottom: 5px solid var(--spark);
}

.outage-contact-page .oc-badge {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.outage-contact-page .oc-hero h1 {
    color: #fff;
}

.outage-contact-page .oc-hero p {
    color: #f4eaea;
}

.outage-contact-page .oc-mobile-heading h2,
.outage-contact-page .oc-section-heading,
.outage-contact-page .oc-number,
.outage-contact-page .oc-landline {
    color: var(--ink-2);
}

.outage-contact-page .oc-card {
    border-color: var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.outage-contact-page .oc-phone-icon {
    background: #f6e7e4;
    color: var(--surface-red);
}

.outage-contact-page .oc-contact {
    border-color: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.outage-contact-page .oc-contact:hover {
    border-color: var(--spark);
    box-shadow: var(--shadow-md);
}

.outage-contact-page .oc-call {
    background: var(--surface-red);
    color: #fff;
}

.outage-contact-page .oc-call:hover {
    background: var(--surface-red-2);
    color: var(--spark);
}

.outage-contact-page .oc-landline {
    background: var(--surface);
    border-color: var(--line);
    border-radius: var(--radius);
}

.outage-contact-page .oc-landline:hover {
    background: #f5eac7;
    border-color: var(--spark-dark);
}

.outage-contact-page .oc-landline span {
    color: var(--surface-red);
}

.outage-contact-page .oc-emergency {
    background: #fff9eb;
    border-color: #e3ce84;
    border-left-color: var(--spark-dark);
}

.outage-contact-page .oc-emergency h2 {
    color: #7a5c10;
}

.outage-contact-page .oc-warning-icon {
    background: #f5eac7;
    color: #7a5c10;
}

.outage-contact-page .oc-note {
    background: var(--surface);
    border-color: var(--line);
    border-left: 4px solid var(--spark);
    border-radius: var(--radius);
}

.outage-contact-page .oc-note strong {
    color: var(--ink-2);
}

/* Keyboard accessibility */
.outage-contact-page a:focus-visible {
    outline: 3px solid var(--spark-dark);
    outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .outage-contact-page .oc-hero {
        padding: 42px 18px 65px;
    }

    .outage-contact-page .oc-card {
        padding: 20px 16px;
    }

    .outage-contact-page .oc-number {
        font-size: 17px;
    }
}


/* Security / anti-spam honeypot: hidden from normal visitors, still submitted by simple bots. */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
