/*
Theme Name: Deseret Power
Theme URI: https://deseretpower.com
Author: Deseret Power
Author URI: https://deseretpower.com
Description: Official theme for Deseret Power Electric Cooperative
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: deseret-power
*/

/* ── CSS VARIABLES ── */
:root {
  --crimson:    #8B1A1A;
  --maroon:     #6B0F0F;
  --dark-red:   #4A0A0A;
  --accent:     #C0392B;
  --grey-dark:  #2C2C2C;
  --grey-mid:   #5A5A5A;
  --grey-light: #9A9A9A;
  --grey-pale:  #E8E6E4;
  --grey-bg:    #F3F1EF;
  --white:      #FAFAF8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--grey-dark);
  font-weight: 400;
  line-height: 1.7;
}

/* ── NAV ── */
nav.site-nav {
  background: var(--dark-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}
.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }

/* WordPress menu */
ul#site-navigation {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
ul#site-navigation li a {
  display: block;
  padding: 0 1.1rem;
  height: 64px;
  line-height: 64px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
ul#site-navigation li a:hover,
ul#site-navigation li.current-menu-item a,
ul#site-navigation li.current_page_item a {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--grey-pale);
  border-bottom: 1px solid #d8d5d2;
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  color: var(--grey-mid);
}
.breadcrumb a { color: var(--crimson); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: var(--grey-light); }

/* ── HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark-red) 0%, var(--crimson) 55%, var(--maroon) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.page-hero.grey-hero {
  background: linear-gradient(135deg, #787878 0%, #8a8a8a 55%, #808080 100%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; position: relative;
}
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; margin-bottom: 0.6rem; position: relative;
}
.page-hero .hero-sub {
  color: rgba(255,255,255,0.75); font-size: 1rem; font-weight: 300;
  max-width: 620px; margin: 0 auto; position: relative;
}

/* ── MAIN CONTENT AREA ── */
.site-main { min-height: 60vh; }

.page-wrap {
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.page-wrap.full-width {
  grid-template-columns: 1fr;
}

/* ── SECTION STYLES ── */
.content-section { padding: 4.5rem 2rem; }
.content-section.alt-bg { background: var(--grey-bg); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
h2.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 1.2rem; line-height: 1.2;
}
h2.section-title.grey { color: #444444; }
.divider {
  width: 52px; height: 3px; background: var(--accent);
  margin-bottom: 1.8rem; border-radius: 2px;
}

/* ── SIDEBAR CARDS ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--grey-pale);
  border-top: 3px solid var(--crimson); border-radius: 4px;
  padding: 1.4rem;
}
.card h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #444444;
  margin-bottom: 1rem;
}
.card p { font-size: 0.875rem; color: var(--grey-mid); margin-bottom: 0.75rem; line-height: 1.6; }
.card a { color: var(--crimson); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.card a:hover { text-decoration: underline; }

.info-row {
  display: flex; gap: 0.5rem; font-size: 0.875rem;
  margin-bottom: 0.65rem; color: var(--grey-mid); align-items: flex-start;
}
.info-row svg { flex-shrink: 0; margin-top: 3px; color: var(--crimson); }
.info-row a { color: var(--crimson); text-decoration: none; }
.info-row a:hover { text-decoration: underline; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: 4px; border: 1px solid var(--grey-pale); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--crimson); color: #fff; }
thead th {
  padding: 0.85rem 1.2rem; text-align: left;
  letter-spacing: 0.07em; font-size: 0.78rem;
  text-transform: uppercase; font-weight: 600;
}
tbody tr { border-bottom: 1px solid var(--grey-pale); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(139,26,26,0.04); }
td { padding: 0.85rem 1.2rem; color: var(--grey-mid); vertical-align: middle; }
td:first-child { font-weight: 600; color: var(--grey-dark); }

/* ── DOCUMENT DOWNLOAD BUTTON ── */
.dl-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--crimson); color: #fff; text-decoration: none;
  padding: 0.3rem 0.75rem; border-radius: 3px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s; white-space: nowrap;
}
.dl-btn:hover { background: var(--maroon); color: #fff; }

/* ── COOP CARDS ── */
.coop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 0.5rem;
}
a.coop-card { text-decoration: none; color: inherit; }
.coop-card {
  background: #fff; border: 1px solid var(--grey-pale);
  border-top: 3px solid var(--crimson); border-radius: 4px;
  padding: 1.2rem 1.2rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.coop-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.coop-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--grey-dark); margin-bottom: 0.3rem; }
.coop-card p { font-size: 0.8rem; color: var(--grey-light); }
.coop-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; margin-right: 0.4rem; }

/* ── PILLARS ── */
.pillars { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-num {
  background: var(--crimson); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 1.1rem;
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
}
.pillar-body h4 { font-size: 0.95rem; font-weight: 600; color: var(--grey-dark); margin-bottom: 0.25rem; }
.pillar-body p { font-size: 0.875rem; color: var(--grey-mid); line-height: 1.6; }

/* ── JOB LISTINGS ── */
.jobs-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.job-card {
  background: #fff; border: 1px solid var(--grey-pale);
  border-left: 4px solid var(--accent); border-radius: 4px;
  padding: 1.2rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; transition: box-shadow 0.2s, transform 0.2s;
}
.job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.job-title {
  font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.04em; color: #444444; margin-bottom: 0.25rem;
}
.job-meta { font-size: 0.8rem; color: var(--grey-light); display: flex; gap: 1rem; flex-wrap: wrap; }
.job-tag {
  display: inline-block; background: var(--grey-bg);
  border: 1px solid var(--grey-pale); border-radius: 2px;
  font-size: 0.72rem; padding: 0.2rem 0.55rem;
  color: var(--grey-mid); letter-spacing: 0.05em; text-transform: uppercase;
}
.apply-btn {
  flex-shrink: 0; background: var(--crimson); color: #fff;
  text-decoration: none; padding: 0.5rem 1.1rem; border-radius: 3px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s; white-space: nowrap;
}
.apply-btn:hover { background: var(--maroon); }

.jobs-btn {
  display: inline-block; margin-top: 1.5rem;
  background: var(--crimson); color: #fff; text-decoration: none;
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 2rem; border-radius: 3px; transition: background 0.2s;
}
.jobs-btn:hover { background: var(--dark-red); color: #fff; }

.no-jobs-msg { color: var(--grey-mid); font-style: italic; margin-top: 1rem; }

/* ── ENVIRONMENTAL DOCS ── */
.doc-section { margin-bottom: 2.5rem; }
.doc-section h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #444444;
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grey-pale);
}
.ccr-note {
  background: rgba(139,26,26,0.06); border-left: 4px solid var(--crimson);
  border-radius: 0 4px 4px 0; padding: 1rem 1.2rem;
  margin-bottom: 2.5rem; font-size: 0.9rem; color: var(--grey-mid);
}
.ccr-note a { color: var(--crimson); }

/* ── TRANSMISSION ── */
.standards-block {
  margin-top: 2rem; background: var(--grey-bg);
  border: 1px solid var(--grey-pale); border-radius: 4px; padding: 1.5rem;
}
.standards-block h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: #444444;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grey-pale);
}
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.doc-list a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--grey-dark); text-decoration: none; font-size: 0.9rem;
  padding: 0.5rem 0.85rem; background: #fff;
  border: 1px solid var(--grey-pale); border-left: 3px solid var(--accent);
  border-radius: 3px; width: 100%; transition: background 0.15s, border-color 0.15s;
}
.doc-list a:hover { background: var(--grey-pale); border-left-color: var(--crimson); color: var(--crimson); }

/* ── COOPS NOTE ── */
.coops-note {
  margin-top: 2.5rem; padding: 1.5rem;
  background: rgba(139,26,26,0.06); border-left: 4px solid var(--crimson);
  border-radius: 0 4px 4px 0;
}
.coops-note p { color: var(--grey-mid); font-size: 0.9rem; }

/* ── IMG PLACEHOLDER ── */
.img-placeholder {
  background: var(--grey-pale); border: 2px dashed var(--grey-light);
  border-radius: 4px; height: 200px; display: flex;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: var(--grey-light); font-size: 0.8rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark-red); color: rgba(255,255,255,0.6);
  text-align: center; padding: 1.8rem 2rem;
  font-size: 0.82rem; letter-spacing: 0.03em;
}
.site-footer strong {
  font-family: 'Oswald', sans-serif; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ── RESPONSIVE ── */
.hamburger { display: none !important; }

@media (max-width: 768px) {
	[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
	
  .page-wrap { grid-template-columns: 1fr; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }
		
  .hamburger {
    display: block !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    padding: 8px !important;
    line-height: 1 !important;
	-webkit-appearance: none !important;
	  appearance: none: !important;
	  border-radius: 0 !important;
	  box-shadow: none !important;
	  outline: none !important;
  }
  #site-navigation {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-red);
    z-index: 99;
    padding: 1rem 0;
  }
  #site-navigation.open {
    display: block !important;
  }
  #site-navigation ul {
    flex-direction: column;
    height: auto;
  }
  #site-navigation ul li {
    height: auto;
    width: 100%;
  }
  #site-navigation ul li a {
    height: auto;
    padding: 0.85rem 2rem;
    width: 100%;
  }
}
