/* ========= GLOBAL: remove top gap ========= */
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }

/* ========= HOME HERO: keep previous good banner ========= */
/* Only target index hero by using .home-hero wrapper (we will add this in index.html) */
.home-hero{
  max-width:1100px;
  margin: 18px auto 8px;
  padding: 0 18px;
}

.home-hero .hero-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
}

.home-hero .hero-card img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display:block;
}

@media (max-width: 720px){
  .home-hero .hero-card img{ height: 240px; }
}

.home-hero .hero-overlay{
  position:absolute;
  inset:0;
  /* dark gradient so text is readable */
  background: linear-gradient(90deg, rgba(9,12,20,.88) 0%, rgba(9,12,20,.68) 52%, rgba(9,12,20,.25) 100%);
}

.home-hero .hero-content{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  padding: 22px 26px;
}

.home-hero .hero-text{
  max-width: 560px;
  color:#fff;
}

.home-hero .hero-text h1{
  margin:0 0 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: .1px;
}

.home-hero .hero-text p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.5;
}

.home-hero .hero-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* IMPORTANT: these classes are ONLY for hero buttons */
.home-hero .btn-hero-primary,
.home-hero .btn-hero-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid transparent;
}

.home-hero .btn-hero-primary{
  background:#ff6a00;
  color:#fff;
  box-shadow: 0 12px 30px rgba(255,106,0,.25);
}
.home-hero .btn-hero-primary:hover{ filter: brightness(.98); }

.home-hero .btn-hero-secondary{
  background: rgba(255,255,255,.94);
  color:#111827;
  border-color: rgba(255,255,255,.25);
}
.home-hero .btn-hero-secondary:hover{ background:#fff; }

/* ========= TOOL PAGES: fix black buttons (scoped only to .tool-page) ========= */
.tool-page button,
.tool-page input[type="submit"],
.tool-page .btn,
.tool-page .button{
  background:#ff6a00 !important;
  color:#fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  box-shadow: 0 12px 30px rgba(255,106,0,.18);
}

/* Secondary buttons in tool pages (Save/Reset) - if they have classes */
.tool-page button.secondary,
.tool-page .btn.secondary,
.tool-page .btn-secondary{
  background: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: none !important;
}

/* ========= TOOL HERO BLUE BANNER: reduce height WITHOUT touching home ========= */
/* only apply to tool pages */
.tool-page .tool-hero,
.tool-page .tools-hero,
.tool-page .page-hero,
.tool-page .hero-banner{
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
