/* --------------------------------------------------------------------------
   aef-styles.css   American Energy Security Framework (WordPress)
   All classes are prefixed with "aef-" to avoid conflicts with the
   active theme's own styles.
   Loaded only on pages using the Energy Framework Landing Page template.
   -------------------------------------------------------------------------- */

/* -- Tokens --------------------------------------------------------------- */
:root {
  --aef-bg:          #060D2C;
  --aef-panel:       rgba(255,255,255,0.05);
  --aef-border:      rgba(255,255,255,0.09);
  --aef-accent:      #4EB5E8;
  --aef-accent-glow: rgba(78,181,232,0.15);
  --aef-footer-bg:   #c7c9c7;
  --aef-white:       #ffffff;
  --aef-body:       #333333;
  --aef-sub:         rgba(255,255,255,0.55);
  --aef-faint:       rgba(255,255,255,0.15);

  --aef-font-head: 'din-2014-narrow', 'DIN Next Pro Narrow', sans-serif;
  --aef-font-body: 'din-2014', 'DIN Next Pro', sans-serif;
}

/* -- Full-page reset scoped to this template ------------------------------ */
/* Target the body class WordPress adds when this template is active */
body.aef-page {
  background: var(--aef-bg) !important;
  color: var(--aef-white) !important;
  font-family: var(--aef-font-body), sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

/* Hide any theme wrappers that persist outside get_header/get_footer */
body.aef-page #page,
body.aef-page #masthead,
body.aef-page #colophon,
body.aef-page .site-header,
body.aef-page .site-footer,
body.aef-page .wp-site-blocks > header,
body.aef-page .wp-site-blocks > footer {
  display: none !important;
}

/* Ensure our template fills the viewport correctly even if the theme
   adds a wrapper element after <body> */
body.aef-page > :not(#wpadminbar):not(script):not(style):not(.aef-nav):not(.aef-hero):not(.aef-context):not(.aef-pillars):not(.aef-cta):not(.aef-footer) {
  display: block;
}
/* Box-sizing baseline for all AEF elements */
.aef-nav,  .aef-nav *,
.aef-hero, .aef-hero *,
.aef-context, .aef-context *,
.aef-pillars, .aef-pillars *,
.aef-cta, .aef-cta *,
.aef-footer, .aef-footer * {
  box-sizing: border-box;
}

/* -- Shared helpers -------------------------------------------------------- */
.aef-glass {
  background: var(--aef-panel);
  border: 1px solid var(--aef-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.aef-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--aef-accent), transparent);
}

.aef-section-heading {
  font-family: var(--aef-font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aef-white);
  line-height: 1.1;
  margin: 1rem 0 1rem;
}

.aef-body-text {
  font-family: var(--aef-font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--aef-sub);
  margin: 0;
}

/* -- Nav ------------------------------------------------------------------- */
.aef-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,13,44,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--aef-border);
}

/* Shift nav below the WP admin bar when logged in (32px desktop, 46px mobile) */
body.admin-bar .aef-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .aef-nav { top: 46px; }
}

.aef-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.aef-nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.aef-nav-logo-text {
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aef-white);
  margin-left: 1rem;
}

.aef-nav-pills {
  display: flex;
  gap: 4px;
}

.aef-nav-pill {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--aef-border);
  background: transparent;
  color: var(--aef-sub);
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.aef-nav-pill.active,
.aef-nav-pill:hover {
  border-color: rgba(78,181,232,0.45);
  background: rgba(78,181,232,0.10);
  color: var(--aef-accent);
}

/* -- Hero ------------------------------------------------------------------- */
.aef-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(56px + 6rem) 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--aef-white);
}


body.admin-bar .aef-hero { padding-top: calc(56px + 32px + 6rem); }
@media screen and (max-width: 782px) {
  body.admin-bar .aef-hero { padding-top: calc(56px + 46px + 6rem); }
}

.aef-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, var(--aef-accent-glow) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 90%, rgba(78,181,232,0.05) 0%, transparent 55%);
}

.aef-hero-content {
  position: relative;
  max-width: 1200px;
}

.aef-hero-body {
  font-family: var(--aef-font-body);
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--aef-body);
  max-width: 1200px;
  margin: 3rem auto 3rem auto;
}

.aef-hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.aef-hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--aef-border);
  background: var(--aef-bg);
  backdrop-filter: blur(10px);
  color: var(--aef-white);
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.aef-hero-card:hover {
  border-color: rgba(78,181,232,0.35);
  background: rgba(78,181,232,0.08);
  color:var(--aef-bg);
}

.aef-hero-card-num {
  font-family: var(--aef-font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--aef-accent);
}

.aef-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.aef-scroll-label {
  font-family: var(--aef-font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aef-body);
}

.aef-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--aef-accent), transparent);
}

/* -- Context --------------------------------------------------------------- */
.aef-context {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #091228 0%, #060D2C 100%);
  border-top: 1px solid var(--aef-border);
}

.aef-context-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.aef-context-glass {
  padding: 2rem 2.2rem;
}

.aef-context-pull-quote {
  font-family: var(--aef-font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aef-white);
  line-height: 1.2;
  margin: 0 0 1.4rem;
}

/* -- Pillars --------------------------------------------------------------- */
.aef-pillars {
  padding: 6rem 2rem 7rem;
  background: var(--aef-bg);
}

.aef-pillars-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.aef-pillars-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.aef-pillars-header .aef-section-heading {
  margin: 10px 0 0 0;
}

.aef-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}

.aef-tab {
  padding: 1.2rem 1rem;
  background: var(--aef-panel);
  border: 1px solid var(--aef-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
}

.aef-tab.active {
  background: linear-gradient(135deg, rgba(78,181,232,0.10), rgba(78,181,232,0.04));
  border-color: rgba(78,181,232,0.35);
}

.aef-tab-eyebrow {
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aef-faint);
  margin-bottom: 5px;
  transition: color 0.18s;
}

.aef-tab.active .aef-tab-eyebrow {
  color: var(--aef-accent);
}

.aef-tab-label {
  font-family: var(--aef-font-head);
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--aef-sub);
  transition: color 0.18s;
}

.aef-tab.active .aef-tab-label {
  color: var(--aef-white);
}

.aef-panel {
  border-radius: 0 0 16px 16px;
  border-top: 2px solid var(--aef-accent) !important;
}

.aef-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 2.8rem 2.5rem;
}

.aef-panel-bignum {
  font-family: var(--aef-font-head);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 0.8;
  color: var(--aef-accent-glow);
  margin-bottom: -0.6rem;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aef-panel-heading {
  font-family: var(--aef-font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aef-white);
  line-height: 1.0;
  margin: 0 0 1.2rem;
}

.aef-panel-desc {
  margin-top: 1rem !important;
  margin-bottom: 1.8rem !important;
}

.aef-progress-dots {
  display: flex;
  gap: 7px;
}

.aef-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: var(--aef-faint);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.aef-dot.active {
  width: 22px;
  background: var(--aef-accent);
}

.aef-actions-eyebrow {
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aef-accent);
  margin-bottom: 0.9rem;
}

.aef-actions-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aef-action-item {
  border-radius: 10px;
  border: 1px solid var(--aef-border);
  background: transparent;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}

.aef-action-item.open {
  border-color: rgba(78,181,232,0.25);
  background: rgba(78,181,232,0.06);
}

.aef-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.aef-action-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--aef-faint);
  transition: background 0.18s;
}

.aef-action-item.open .aef-action-dot {
  background: var(--aef-accent);
}

.aef-action-title {
  flex: 1;
  font-family: var(--aef-font-head);
  font-weight: 600;
  font-size: 2rem;
  color: var(--aef-white);
  line-height: 1.5;
}

.aef-action-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aef-action-item.open .aef-action-chevron {
  transform: rotate(180deg);
}

.aef-action-body {
  display: none;
  font-family: var(--aef-font-body);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--aef-sub);
  margin: 0;
  padding: 0 16px 13px 35px;
}

.aef-action-item.open .aef-action-body {
  display: block;
}

/* Intro paragraph inside an expanded accordion item */
.aef-action-intro {
  margin: 0 0 0.75rem;
  font-family: var(--aef-font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--aef-sub);
}

/* Bullet list inside an expanded accordion item */
.aef-action-bullets {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aef-action-bullets li {
  font-family: var(--aef-font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--aef-sub);
  padding-left: 0.25rem;
}

.aef-action-bullets li::marker {
  color: var(--aef-accent);
}

/* -- CTA -------------------------------------------------------------------- */
.aef-cta {
  padding: 6rem 2rem;
  border-top: 1px solid var(--aef-border);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #060D2C 0%, #040A22 100%);
}

.aef-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 50% 110%, var(--aef-accent-glow) 0%, transparent 60%);
}

.aef-cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.aef-cta-heading {
  font-family: var(--aef-font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aef-white);
  line-height: 1.0;
  margin: 10px 0 29px 0;
}

.aef-cta-body {
  font-family: var(--aef-font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 0 0 5rem;
}

.aef-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, var(--aef-accent) 0%, #2B7DB8 100%);
  color: var(--aef-white);
  font-family: var(--aef-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(78,181,232,0.35);
  transition: box-shadow 0.2s, transform 0.15s;
}

.aef-cta-btn:hover {
  box-shadow: 0 12px 40px rgba(78,181,232,0.5);
  transform: translateY(-1px);
}

/* -- Footer ---------------------------------------------------------------- */
.aef-footer {
  background: #040A22 ;
  border-top: 1px solid #B0C4BD;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.aef-footer .logo-container img {
  width: 200px;
  height: auto;
}
.aef-footer .col-2 p,
.aef-footer .col-2 a,
.aef-footer .col-2 .privacy {
  font-size:0.9rem;
  color:var(--aef-white);
}
.aef-footer .col-2 .privacy:hover {
  color:var(--aef-white);
  text-decoration: underline;
}
@media screen and (min-width:992px) {
  .aef-footer .wrap {
    display:grid;
    align-items: center;
    grid-template-columns: 20% 80%;
    gap:2rem;
  }
  .aef-footer .col-2 {
    border-left: 1px solid #B0C4BD;
    padding-left:2rem;
  }
}
@media screen and (max-width:991px) {
  .aef-footer .wrap {
    display:flex;
    flex-direction: column;
 }
 .aef-nav-pills {
  display:none;
 }
}
.aef-footer .social-nav {
  list-style-type: none;
  display: flex;
  flex-direction:row;
  align-items: center;
  margin: 2rem 0;
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.btn-social {
  display: inline-block;
  margin: 0 5px;
  text-align: center;
}
.fab {
  font-size: 20px;
  color: var(--aef-white);
  border: 2px var(--aef-white) solid;
  border-radius: 50px;
  padding: 10px;
  height: 50px;
  width: 50px;
  align-content: center;
}
.fab:hover {
  color: var(--aef-bg);
  background-color: var(--aef-white);
}

/* Factsheet download link inside an accordion body */
.aef-factsheet-link {
  display: inline-block;
  margin: 1rem auto;
  text-decoration: none;
}
 
.aef-factsheet-link .aef-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 1rem;
}

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 640px) {
  .aef-nav-logo-text { display: none; }
  .aef-tab-bar { grid-template-columns: 1fr; }
  .aef-tab {
    border-radius: 8px;
    border-bottom: 1px solid var(--aef-border);
    margin-bottom: 3px;
  }
  .aef-tab.active { border-color: rgba(78,181,232,0.35); }
  .aef-panel { border-radius: 16px; }
  .aef-panel-grid { padding: 1.8rem 1.2rem; }
  .aef-footer .social-nav {flex-direction: row;flex-wrap: wrap;}
  .aef-footer .wrap > div:first-child {
    text-align: center;
  }
}