/*
Theme Name: Binnz Publisher
Template: generatepress
Version: 1.0.0
Description: Custom editorial theme for Binnz.
*/

:root{
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --soft:#f8fafc;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --card:#ffffff;
  --max:1180px;
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.bz-wrap{width:min(var(--max),calc(100% - 32px));margin:auto}

.bz-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.bz-header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:28px;
}
.bz-logo{
  font-size:29px;
  font-weight:900;
  color:var(--blue);
  letter-spacing:-1.6px;
}
.bz-nav{display:flex;align-items:center;gap:20px;font-weight:650;font-size:15px}
.bz-nav a:hover{color:var(--blue)}
.bz-search{margin-left:auto}
.bz-search input{
  width:210px;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:0;
}

.bz-hero{
  background:
    radial-gradient(circle at 10% 20%,#dbeafe 0,transparent 35%),
    linear-gradient(180deg,#fff,#f8fbff);
  border-bottom:1px solid var(--line);
  padding:76px 0 64px;
}
.bz-hero-inner{max-width:860px}
.bz-kicker{
  display:inline-block;
  color:var(--blue);
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:13px;
}
.bz-hero h1{
  margin:0;
  max-width:820px;
  font-size:clamp(42px,7vw,76px);
  line-height:1.02;
  letter-spacing:-3.5px;
}
.bz-hero p{
  max-width:720px;
  margin:22px 0 0;
  color:var(--muted);
  font-size:19px;
}

.bz-section{padding:58px 0}
.bz-section.soft{background:var(--soft)}
.bz-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:24px;
}
.bz-section-head h2{
  margin:0;
  font-size:31px;
  letter-spacing:-1.2px;
}
.bz-section-head p{margin:4px 0 0;color:var(--muted)}
.bz-link{color:var(--blue);font-weight:750}

.bz-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.bz-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:.2s ease;
}
.bz-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 38px rgba(15,23,42,.08);
}
.bz-card-media{
  aspect-ratio:16/9;
  background:#eaf0f9;
  overflow:hidden;
}
.bz-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.bz-card-body{padding:20px}
.bz-card-cat{
  color:var(--blue);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.bz-card h3{
  margin:8px 0 9px;
  font-size:21px;
  line-height:1.28;
  letter-spacing:-.5px;
}
.bz-card-excerpt{
  color:var(--muted);
  font-size:14px;
  margin:0;
}
.bz-card-meta{
  margin-top:14px;
  color:#94a3b8;
  font-size:12px;
}

.bz-cats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.bz-cat{
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  background:#fff;
  font-weight:750;
}
.bz-cat:hover{border-color:#bfdbfe;color:var(--blue)}

.bz-page-hero{
  padding:55px 0 26px;
  border-bottom:1px solid var(--line);
}
.bz-page-hero h1{
  margin:0;
  font-size:clamp(36px,6vw,58px);
  letter-spacing:-2px;
  line-height:1.08;
}
.bz-page-hero p{color:var(--muted);max-width:760px}

.bz-content{
  width:min(820px,calc(100% - 32px));
  margin:42px auto 70px;
}
.bz-content h2{
  margin-top:38px;
  font-size:30px;
  letter-spacing:-1px;
}
.bz-content h3{margin-top:28px;font-size:23px}
.bz-content p,.bz-content li{font-size:17px}
.bz-content a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.bz-content blockquote{
  margin:28px 0;
  padding:18px 22px;
  border-left:4px solid var(--blue);
  background:var(--soft);
  border-radius:0 12px 12px 0;
}

.bz-article{
  width:min(860px,calc(100% - 32px));
  margin:54px auto 78px;
}
.bz-article-cat{
  color:var(--blue);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:13px;
}
.bz-article h1{
  margin:10px 0 15px;
  font-size:clamp(40px,6vw,68px);
  line-height:1.05;
  letter-spacing:-2.5px;
}
.bz-deck{
  color:var(--muted);
  font-size:20px;
  margin:0 0 19px;
}
.bz-byline{
  color:#64748b;
  font-size:14px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}
.bz-featured{
  margin:28px 0;
  border-radius:18px;
  overflow:hidden;
}
.bz-article-content p,
.bz-article-content li{font-size:18px}
.bz-article-content h2{
  font-size:32px;
  letter-spacing:-1px;
  margin-top:44px;
}
.bz-article-content h3{font-size:24px;margin-top:30px}
.bz-article-content a{color:var(--blue);text-decoration:underline}

.bz-empty{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:28px;
  color:var(--muted);
  background:#fff;
}

.bz-footer{
  background:#0f172a;
  color:#cbd5e1;
  padding:52px 0 28px;
}
.bz-footer-top{
  display:grid;
  grid-template-columns:1.2fr 2fr;
  gap:40px;
}
.bz-footer-brand{
  color:#fff;
  font-size:29px;
  font-weight:900;
}
.bz-footer p{color:#94a3b8}
.bz-footer-menu ul{
  list-style:none;
  padding:0;
  margin:0;
  columns:3;
}
.bz-footer-menu li{margin-bottom:10px}
.bz-footer-menu a:hover{color:#fff}
.bz-footer-bottom{
  margin-top:35px;
  padding-top:22px;
  border-top:1px solid #1e293b;
  color:#64748b;
  font-size:13px;
}

@media(max-width:900px){
  .bz-grid{grid-template-columns:repeat(2,1fr)}
  .bz-cats{grid-template-columns:repeat(2,1fr)}
  .bz-search{display:none}
}
@media(max-width:680px){
  .bz-header-inner{min-height:64px}
  .bz-nav{display:none}
  .bz-hero{padding:55px 0 45px}
  .bz-hero h1{letter-spacing:-2px}
  .bz-grid{grid-template-columns:1fr}
  .bz-cats{grid-template-columns:1fr}
  .bz-footer-top{grid-template-columns:1fr}
  .bz-footer-menu ul{columns:2}
}

/* ---- Phase 3 polish ---- */

.bz-menu{
  display:flex;
  align-items:center;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}

.bz-menu li{
  list-style:none;
  margin:0;
  padding:0;
}

.bz-menu a{
  display:block;
  white-space:nowrap;
}

.bz-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
}

.bz-menu-toggle span{
  display:block;
  width:100%;
  height:2px;
  margin:5px 0;
  background:var(--ink);
  border-radius:10px;
}

.bz-mobile-menu{
  border-top:1px solid var(--line);
  background:#fff;
  padding:13px 0 24px;
}

.bz-mobile-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}

.bz-mobile-menu li{
  border-bottom:1px solid #f1f5f9;
}

.bz-mobile-menu a{
  display:block;
  padding:14px 2px;
  font-size:16px;
  font-weight:700;
}

.bz-mobile-search{
  display:flex;
  gap:8px;
  margin-top:18px;
}

.bz-mobile-search input{
  flex:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
}

.bz-mobile-search button{
  border:0;
  border-radius:11px;
  background:var(--blue);
  color:#fff;
  padding:0 17px;
  font-weight:750;
}

.bz-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:27px;
}

.bz-trust-row span{
  border:1px solid #dbeafe;
  background:rgba(255,255,255,.72);
  color:#475569;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:650;
}

.bz-lead-story{
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  margin-bottom:28px;
}

.bz-lead-story > a{
  display:grid;
  grid-template-columns:1.15fr 1fr;
}

.bz-lead-media{
  min-height:370px;
  background:#eaf1fb;
}

.bz-lead-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.bz-lead-fallback,
.bz-card-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 20% 20%,#dbeafe,transparent 35%),
    linear-gradient(135deg,#eef5ff,#dbeafe);
  color:var(--blue);
  font-weight:900;
}

.bz-lead-fallback{
  min-height:370px;
  font-size:110px;
}

.bz-card-fallback{
  font-size:66px;
}

.bz-lead-copy{
  padding:42px;
  align-self:center;
}

.bz-lead-copy h3{
  margin:10px 0 14px;
  font-size:clamp(29px,4vw,45px);
  line-height:1.08;
  letter-spacing:-1.4px;
}

.bz-lead-copy p{
  color:var(--muted);
  font-size:16px;
}

.bz-more-grid{
  margin-top:10px;
}

.bz-empty-large{
  max-width:720px;
}

.bz-empty-large h3{
  margin-top:0;
  color:var(--ink);
  font-size:23px;
}

.bz-cat{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.bz-cat span{
  color:var(--muted);
  font-size:13px;
  font-weight:450;
  line-height:1.45;
}

.bz-standard{
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px;
  background:#fff;
}

.bz-standard > span{
  color:var(--blue);
  text-transform:uppercase;
  letter-spacing:.07em;
  font-size:12px;
  font-weight:850;
}

.bz-standard h3{
  font-size:22px;
  margin:8px 0 10px;
}

.bz-standard p{
  margin:0;
  color:var(--muted);
}

.bz-article-header{
  max-width:850px;
}

.bz-byline{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
}

.bz-standards-note{
  margin-top:45px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:25px 0;
  color:var(--muted);
}

.bz-standards-note strong{
  display:block;
  color:var(--ink);
  margin-bottom:6px;
}

.bz-standards-note p{
  margin:0 0 8px;
}

.bz-standards-note a{
  color:var(--blue);
  font-weight:700;
}

.bz-404{
  padding:100px 0 120px;
}

.bz-404 .bz-wrap{
  max-width:760px;
}

.bz-404 h1{
  margin:9px 0 15px;
  font-size:clamp(43px,7vw,72px);
  line-height:1;
  letter-spacing:-2.5px;
}

.bz-404 p{
  color:var(--muted);
  font-size:18px;
  max-width:650px;
}

.bz-404-search{
  display:flex;
  max-width:570px;
  margin-top:27px;
}

.bz-404-search input{
  flex:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px 0 0 12px;
  padding:14px;
}

.bz-404-search button{
  border:0;
  background:var(--blue);
  color:#fff;
  border-radius:0 12px 12px 0;
  padding:0 22px;
  font-weight:750;
}

.bz-home-button{
  display:inline-block;
  margin-top:18px;
  color:var(--blue);
  font-weight:750;
}

@media(max-width:1100px){

  .bz-nav{
    gap:13px;
    font-size:13px;
  }

  .bz-menu{
    gap:13px;
  }

  .bz-search input{
    width:175px;
  }
}

@media(max-width:820px){

  .bz-nav,
  .bz-search{
    display:none;
  }

  .bz-menu-toggle{
    display:block;
    margin-left:auto;
  }

  .bz-hero{
    padding:52px 0 48px;
  }

  .bz-hero h1{
    font-size:clamp(42px,11vw,58px);
    line-height:1.02;
    letter-spacing:-2px;
  }

  .bz-hero p{
    font-size:17px;
    line-height:1.6;
  }

  .bz-lead-story > a{
    grid-template-columns:1fr;
  }

  .bz-lead-media,
  .bz-lead-fallback{
    min-height:230px;
  }

  .bz-lead-copy{
    padding:25px;
  }

  .bz-footer-menu ul{
    columns:2;
  }
}

@media(max-width:480px){

  .bz-wrap{
    width:min(var(--max),calc(100% - 34px));
  }

  .bz-logo{
    font-size:27px;
  }

  .bz-hero h1{
    font-size:43px;
    letter-spacing:-1.6px;
  }

  .bz-kicker{
    font-size:12px;
  }

  .bz-section{
    padding:45px 0;
  }

  .bz-section-head{
    align-items:flex-start;
  }

  .bz-section-head h2{
    font-size:29px;
  }

  .bz-link{
    margin-top:5px;
  }

  .bz-article{
    margin-top:40px;
  }

  .bz-article h1{
    font-size:42px;
    letter-spacing:-1.6px;
  }

  .bz-article-content p,
  .bz-article-content li{
    font-size:17px;
  }

  .bz-footer{
    padding-top:42px;
  }

  .bz-footer-menu ul{
    columns:2;
    column-gap:28px;
  }
}
