/* Blackout Essentials — theme styles */

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--text-base);
  line-height:var(--leading-body);
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--color-link);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-0.005em;
  line-height:var(--leading-tight);
  color:var(--be-night);
  margin:0 0 var(--space-4);
}
h1{font-weight:900;font-size:var(--text-h1);letter-spacing:-0.01em}
h2{font-size:var(--text-h2)}
h3{font-size:var(--text-h3)}
h4{font-family:var(--font-body);font-weight:600;font-size:var(--text-h4);margin:0 0 var(--space-3)}
p{margin:0 0 var(--space-4);max-width:var(--measure)}
ul,ol{margin:0 0 var(--space-4);padding-left:1.25rem;max-width:var(--measure)}
.eyebrow{
  font-family:var(--font-mono);
  font-weight:500;
  font-size:var(--text-xs);
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--be-lantern-ink);
  margin:0 0 var(--space-3);
}

.be-container{
  width:min(100% - 48px, var(--container));
  margin-inline:auto;
}
@media (max-width:480px){
  .be-container{width:min(100% - 32px, var(--container))}
  h2{font-size:1.75rem}
  h3{font-size:1.375rem}
}

/* Announcement */
.be-announce{
  background:var(--be-lantern);
  color:var(--be-night);
  text-align:center;
  font-family:var(--font-body);
  font-size:var(--text-sm);
  padding:10px 16px;
}
.be-announce a{color:inherit;font-weight:600}

/* Header */
.be-header{
  background:var(--be-night);
  color:var(--be-on-dark);
  position:sticky;
  top:0;
  z-index:100;
}
.be-header__inner{
  display:flex;
  align-items:center;
  gap:var(--space-5);
  min-height:72px;
  padding-block:12px;
}
.site-logo img{height:40px;width:auto}
.site-logo--mobile{display:none}
@media (max-width:720px){
  .site-logo--desktop{display:none}
  .site-logo--mobile{display:inline-flex}
  .site-logo img{height:32px}
}

.be-nav{display:flex;align-items:center;gap:var(--space-5);margin-left:auto}
.be-menu{
  display:flex;gap:var(--space-5);list-style:none;margin:0;padding:0;
}
.be-menu a{
  font-family:var(--font-display);
  font-weight:800;
  font-size:15px;
  color:var(--be-on-dark);
  text-decoration:none;
}
.be-menu a:hover{color:var(--be-lantern);text-decoration:none}
.be-icons{display:flex;align-items:center;gap:var(--space-4)}
.be-icons a{
  color:var(--be-on-dark);
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;position:relative;
}
.be-icons a:hover{color:var(--be-lantern);text-decoration:none}
.cart-count{
  position:absolute;top:4px;right:0;
  background:var(--be-lantern);color:var(--be-night);
  font-family:var(--font-mono);font-size:11px;font-weight:500;
  min-width:18px;height:18px;border-radius:var(--radius-pill);
  display:inline-flex;align-items:center;justify-content:center;padding:0 4px;
}
.be-nav-toggle{
  display:none;background:transparent;border:0;color:var(--be-on-dark);
  min-width:44px;min-height:44px;cursor:pointer;
}
@media (max-width:960px){
  .be-nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .be-menu{
    display:none;position:absolute;left:0;right:0;top:100%;
    background:var(--be-night);flex-direction:column;padding:16px 24px 24px;gap:16px;
    border-top:1px solid #2A3946;
  }
  .be-menu.is-open{display:flex}
  .be-nav{position:static;margin-left:auto}
}

.icon{width:24px;height:24px;flex:none;vertical-align:middle;color:inherit}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-display);font-weight:800;font-size:16px;letter-spacing:0.01em;
  padding:14px 24px;border-radius:var(--radius);border:2px solid transparent;
  cursor:pointer;text-decoration:none;line-height:1.2;min-height:44px;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.btn:hover{text-decoration:none}
.btn--primary{background:var(--be-lantern);color:var(--be-night)}
.btn--primary:hover{background:var(--be-lantern-hover);color:var(--be-night)}
.btn--primary:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.btn--secondary{background:transparent;border-color:var(--be-night);color:var(--be-night)}
.btn--secondary:hover{background:var(--be-mist)}
.btn--secondary.on-dark{border-color:var(--be-on-dark);color:var(--be-on-dark)}
.btn--secondary.on-dark:hover{background:rgba(233,238,240,.08)}
.btn-row{display:flex;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-5)}

/* Hero */
.be-hero{
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(240,168,48,.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(240,168,48,.08), transparent 50%),
    var(--be-night);
  color:var(--be-on-dark);
  padding:var(--space-8) 0 var(--space-9);
  position:relative;overflow:hidden;
}
.be-hero h1{color:var(--be-on-dark);max-width:16ch}
.be-hero h1 .accent{color:var(--be-lantern)}
.be-hero p{color:var(--be-on-dark-muted);font-size:var(--text-lg);max-width:48ch}
.be-hero .eyebrow{color:var(--be-lantern)}

/* Sections */
.be-section{padding:var(--space-8) 0}
.be-section--mist{background:var(--be-mist)}
.be-section--white{background:var(--be-white)}
.be-section--night{background:var(--be-night);color:var(--be-on-dark)}
.be-section--night h2,.be-section--night h3{color:var(--be-on-dark)}
.be-section--night p{color:var(--be-on-dark-muted)}
.be-section__head{margin-bottom:var(--space-6)}
.be-section__head p{color:var(--be-slate)}

/* Category grid */
.be-cat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--space-5);
}
@media (max-width:960px){.be-cat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.be-cat-grid{grid-template-columns:1fr}}
.be-cat{
  background:var(--be-white);
  border:1px solid var(--be-line);
  border-radius:var(--radius);
  padding:var(--space-5);
  text-decoration:none;color:inherit;
  transition:box-shadow .2s ease, transform .2s ease;
}
.be-cat:hover{box-shadow:var(--shadow-2);transform:translateY(-2px);text-decoration:none}
.be-cat__icon{
  width:48px;height:48px;border-radius:50%;
  background:var(--be-night);color:var(--be-lantern);
  display:inline-flex;align-items:center;justify-content:center;margin-bottom:var(--space-4);
}
.be-cat__icon .icon{width:24px;height:24px}
.be-cat h3{font-size:1.125rem;margin-bottom:var(--space-2)}
.be-cat p{font-size:var(--text-sm);color:var(--be-slate);margin:0;max-width:none}

/* Outage types */
.be-outage-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-5);
}
@media (max-width:720px){.be-outage-grid{grid-template-columns:1fr}}
.be-outage{
  padding:var(--space-5);border-left:3px solid var(--be-lantern);background:var(--be-white);
  border-radius:0 var(--radius) var(--radius) 0;
}
.be-outage h3{margin-bottom:var(--space-2);font-size:1.25rem}
.be-outage p{margin:0;color:var(--be-slate);max-width:none}
.be-outage a{font-weight:600}

/* Trust */
.be-trust{
  display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-5);
}
@media (max-width:960px){.be-trust{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.be-trust{grid-template-columns:1fr}}
.be-trust article h3{font-size:1.125rem;margin-bottom:var(--space-2)}
.be-trust article p{margin:0;font-size:var(--text-sm);color:var(--be-slate);max-width:none}

/* Lead magnet */
.be-lead{
  display:grid;grid-template-columns:1.2fr 1fr;gap:var(--space-7);align-items:center;
}
@media (max-width:800px){.be-lead{grid-template-columns:1fr}}
.be-lead__form{
  background:rgba(233,238,240,.06);
  border:1px solid #2A3946;
  border-radius:var(--radius-lg);
  padding:var(--space-6);
}
.be-lead__form label{
  display:block;font-family:var(--font-mono);font-size:var(--text-xs);
  letter-spacing:0.08em;text-transform:uppercase;color:var(--be-on-dark-muted);margin-bottom:8px;
}
.be-lead__form input[type="email"]{
  width:100%;padding:14px 16px;border-radius:var(--radius);border:1px solid #2A3946;
  background:var(--be-night);color:var(--be-on-dark);font:inherit;margin-bottom:var(--space-4);
}
.be-lead__form input:focus{outline:none;box-shadow:var(--focus-ring);border-color:var(--be-lantern)}
.be-lead__note{font-size:var(--text-sm);color:var(--be-on-dark-muted);margin:var(--space-3) 0 0}

/* Content pages */
.be-page-hero{
  background:var(--be-night);color:var(--be-on-dark);padding:var(--space-7) 0;
}
.be-page-hero h1{color:var(--be-on-dark)}
.be-page-hero p{color:var(--be-on-dark-muted);margin:0}
.be-content{
  padding:var(--space-8) 0;
  background:var(--be-white);
}
.be-content .entry-content{max-width:70ch}
.be-content .entry-content > *:first-child{margin-top:0}
.be-content table{width:100%;border-collapse:collapse;margin:0 0 var(--space-5);font-size:var(--text-sm)}
.be-content th,.be-content td{border-bottom:1px solid var(--be-line);padding:12px 8px;text-align:left;vertical-align:top}
.be-content th{color:var(--be-slate);font-weight:600}
.be-content td:last-child{font-family:var(--font-mono);font-weight:500}

/* WooCommerce light overrides */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-5);list-style:none;padding:0;margin:0}
@media (max-width:960px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
.woocommerce ul.products li.product{
  background:var(--be-white);border:1px solid var(--be-line);border-radius:var(--radius);
  padding:var(--space-4);margin:0!important;width:auto!important;float:none!important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--font-body);font-weight:600;font-size:18px;color:var(--be-night);
}
.woocommerce ul.products li.product .price{
  font-family:var(--font-display);font-weight:800;font-size:20px;color:var(--be-night);
}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce span.onsale{
  background:var(--be-lantern)!important;color:var(--be-night)!important;
  font-family:var(--font-display)!important;font-weight:800!important;
  border-radius:var(--radius)!important;border:0!important;
}
.woocommerce span.onsale{background:var(--be-alert)!important;color:var(--be-white)!important}

/* Footer */
.be-footer{
  background:var(--be-night);color:var(--be-on-dark-muted);padding:var(--space-8) 0 var(--space-6);
}
.be-footer__grid{
  display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:var(--space-6);margin-bottom:var(--space-7);
}
@media (max-width:800px){.be-footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.be-footer__grid{grid-template-columns:1fr}}
.be-footer__brand img{height:64px;width:auto;margin-bottom:var(--space-4)}
.be-footer__brand .tagline{color:var(--be-lantern);font-family:var(--font-display);font-weight:800;margin:0}
.be-footer h4{color:var(--be-on-dark);font-family:var(--font-display);font-weight:800;font-size:15px;margin-bottom:var(--space-4)}
.be-footer ul{list-style:none;padding:0;margin:0}
.be-footer li{margin-bottom:10px}
.be-footer a{color:var(--be-on-dark-muted);text-decoration:none}
.be-footer a:hover{color:var(--be-lantern)}
.be-footer__trust{
  display:flex;flex-wrap:wrap;gap:var(--space-5);padding-top:var(--space-5);
  border-top:1px solid #2A3946;align-items:center;
}
.be-footer__trust span{display:inline-flex;align-items:center;gap:8px;font-size:var(--text-sm)}
.be-footer__copy{margin-top:var(--space-5);font-size:var(--text-sm)}

/* Motion */
@keyframes be-fade-up{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
.be-hero__inner,.be-cat,.be-outage,.be-trust article{
  animation:be-fade-up .55s ease both;
}
.be-cat:nth-child(2){animation-delay:.05s}
.be-cat:nth-child(3){animation-delay:.1s}
.be-cat:nth-child(4){animation-delay:.15s}
.be-cat:nth-child(5){animation-delay:.2s}
.be-cat:nth-child(6){animation-delay:.25s}
.be-cat:nth-child(7){animation-delay:.3s}
.be-cat:nth-child(8){animation-delay:.35s}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;
  overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;
}
