/* ============================================================
   TEPA - Tippah Electric Power Association
   style.css  —  Updated 2026
   Main site stylesheet (index, deposits, rates, contacts, etc.)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --red:        #c0000e;
  --red-dark:   #8b0000;
  --red-light:  #e8303a;
  --black:      #111111;
  --dark:       #1e1e1e;
  --mid:        #3a3a3a;
  --gray:       #5c5c5c;
  --silver:     #a0a0a0;
  --border:     #d4d4d4;
  --bg-light:   #f7f6f4;
  --white:      #ffffff;
  --blue:       #1a5fa8;
  --blue-hover: #0d3f73;

  --font-display: 'Bitter', Georgia, serif;
  --font-body:    'Source Sans 3', Arial, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,.14);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --radius:     4px;
  --radius-lg:  8px;

  --nav-h:      50px;
  --content-w:  960px;
  --right-w:    220px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { border: none; max-width: 100%; height: auto; display: block; }
label { display: block; }

/* ── Base ──────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black) url(img/bg.jpg) center/cover fixed;
  color: var(--dark);
  font: 400 1rem/1.6 var(--font-body);
  padding: 20px 0 40px;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; transition: color .18s; }
a:hover { color: var(--red); text-decoration: underline; }

h1,h2,h3 { font-family: var(--font-display); color: var(--black); line-height: 1.25; }
h1 { font-size: 2rem; font-weight: 700; padding: 8px 0 4px; }
h2 { font-size: 1.45rem; font-weight: 600; padding: 6px 0 4px; }
h3 { font-size: 1.15rem; font-weight: 700; padding: 4px 0 2px; }
h1 a { text-decoration: none; color: inherit; }
h1 a:hover { text-decoration: underline; }
h2 a { color: var(--blue); }

p { padding: 3px 0 10px; }
li { line-height: 1.65; }
ul { padding: 0 0 1em 1.5em; }
small, .small { font-size: .875rem; }
big  { font-size: 1.1em; }

blockquote {
  background: url('img/quote.gif') no-repeat left top;
  display: block;
  font: italic 1.05em var(--font-display);
  padding-left: 28px;
  color: var(--mid);
}

form, table { margin-bottom: 1.2em; }

/* ── Wrapper / Container ───────────────────────────────────── */
#wrapper {
  background: var(--white);
  margin: 0 auto;
  width: min(var(--content-w), 96vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#container {
  background: var(--white);
  border-top: 3px solid var(--red);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
  width: 100%;
}

/* Wide variant used by some pages */
#wrapper1 {
  background: var(--white);
  margin: 0 auto;
  width: min(1100px, 96vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#container1 {
  background: var(--white);
  border-top: 3px solid var(--red);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
  width: 100%;
}

/* ── Title / Header area ───────────────────────────────────── */
.title {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.title h1 {
  color: var(--black);
  font-size: 1.4rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title h1 img { display: inline-block; vertical-align: middle; }

.title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.header {
  border-top: 2px solid var(--red);
  background: var(--dark);
  height: 200px;
}

/* ── Navigation ────────────────────────────────────────────── */
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--dark);
  min-height: var(--nav-h);
  border-bottom: 3px solid var(--red);
  gap: 2px;
  padding: 4px 8px;
}

.navigation a {
  color: #e0e0e0;
  padding: 10px 14px;
  line-height: 1.2;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.navigation a:hover,
.navigation a#active {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

/* ── Main two-column layout ────────────────────────────────── */
.main#two-columns {
  background: var(--white);
}

.col2 {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}

.col2 .left {
  flex: 1 1 0;
  min-width: 0;
  float: none;
}

.col2 .right {
  width: var(--right-w);
  flex-shrink: 0;
  float: none;
}

.col2 .right .content {
  background: var(--bg-light);
  border-left: 1px solid var(--border);
  min-height: 100%;
}

/* ── Content ───────────────────────────────────────────────── */
.content { padding: 22px 24px; }
.right .content { padding: 16px 14px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 14px 20px;
  font-size: .875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 2px solid var(--red);
}

.footer .left  { color: #aaa; }
.footer .right { text-align: right; }
.footer a { color: #ddd; }
.footer a:hover { color: var(--white); text-decoration: underline; }

/* ── Block list (sidebar nav) ──────────────────────────────── */
ul.block {
  border-top: 2px solid var(--red);
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.block li {
  border-bottom: 1px solid var(--border);
  list-style: none;
  transition: background .15s;
}

.block li a, .block li em {
  color: var(--dark);
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, color .15s;
}

.block li a span { font-weight: 700; color: var(--red); }
.block li em {
  font-size: .82rem;
  font-style: normal;
  color: var(--gray);
  padding-top: 0;
}

.block li a:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.right .block, .right .block li { border-color: var(--border); }
.right .block li a:hover { background: var(--dark); color: var(--white); }

/* ── Events / Helpful Links ────────────────────────────────── */
.events { color: var(--mid); }
.events h2 { color: var(--black); }
.events a:hover { background: var(--dark); color: #fff; }

/* ── Buttons ───────────────────────────────────────────────── */
.button1 {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font: 700 1rem var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}
.button1:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.button1:active { transform: translateY(0); background: var(--red-light); }

.button2 {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font: 700 1rem var(--font-body);
  text-decoration: none;
  border: 2px solid var(--blue-hover);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}
.button2:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.button2:active { transform: translateY(0); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery td { vertical-align: top; text-align: center; }
.gallery em { display: block; }

/* ── Misc helpers ──────────────────────────────────────────── */
.clear, .clearer { clear: both; }
.clearer { font-size: 0; line-height: 0; height: 0; }
.left  { float: left; }
.right { float: right; }
.bottomleft {
  color: var(--white);
  text-align: center;
  font: 700 2rem var(--font-body);
}

/* ── Tables (rates, deposits, etc.) ───────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin-bottom: 1.4em;
}
table th {
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table tr:nth-child(even) td { background: var(--bg-light); }
table tr:hover td { background: #eef3f9; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 780px) {
  body { padding: 0; }

  #wrapper, #wrapper1 {
    width: 100%;
    border-radius: 0;
  }

  .col2 { flex-direction: column; }
  .col2 .right { width: 100%; border-top: 2px solid var(--border); }
  .col2 .right .content { border-left: none; min-height: unset; }

  .title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .navigation {
    justify-content: flex-start;
    padding: 4px;
  }
  .navigation a {
    padding: 8px 10px;
    font-size: .8rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}

@media (max-width: 500px) {
  .navigation { flex-direction: column; align-items: stretch; }
  .navigation a { text-align: center; padding: 12px 8px; border-radius: 0; }
  .button1, .button2 { font-size: .875rem; padding: 9px 18px; }
}
