/*
Theme Name: GeneratePress Child (Kelstone)
Template: generatepress
Version: 1.0
*/

/* Hide GeneratePress default header */
.site-header{
  display:none !important;
}

/* ============ HEADER ============ */

.topbar{
  width:100%;
  margin:0;
  padding:0;
  background-image:url("https://kelstoneindustries.com/p/wp-content/uploads/2026/02/Header-Backgrund-Repeating-pattern.png");
  background-repeat:repeat;
  background-size:auto;
  border-bottom:1px solid rgba(255,255,255,.55);
}

.topbar-inner{
  width:100%;
  margin:0;
  padding:0;
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  line-height:0;
  font-size:0;
}

.topbar-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* shared image behavior */
.header-banner{
  display:block;
  height:auto;
  width:100%;
  object-fit:contain;
}

/* default: compact banner */
.banner-compact{
  width:min(860px,100%);
  max-width:860px;
}

/* wide hidden by default */
.banner-wide{
  display:none;
  width:min(1900px,100%);
  max-width:1900px;
}

/* swap to wide when room */
@media (min-width:880px){
  .banner-compact{ display:none; }
  .banner-wide{ display:block; }
}

/* mobile Safari fix */
@media (hover:none) and (pointer:coarse){
  .banner-wide{ display:none !important; }
  .banner-compact{ display:block !important; }

  .topbar{
    background-image:none !important;
    background-color:#fff !important;
  }
}

/* mobile Safari fix */
@media (hover:none) and (pointer:coarse){
  .banner-wide{ display:none !important; }
  .banner-compact{ display:block !important; }

  .topbar{
    background-image:none !important;
    background-color:#fff !important;
  }
}

/* ===============================
   GLOBAL BRAND SYSTEM
   =============================== */

:root{
  --ks-blue:#1f73c8;
  --ks-blue-2:#2b86e3;
  --ks-ink:#0f172a;
  --ks-muted:#475569;
  --ks-accent:#8b1f2d;
  --ks-bg:#ffffff;
}

/* Base typography */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ks-ink);
  background: var(--ks-bg);
  line-height: 1.6;
  font-size: 18px;
}

/* Headings */
h1, h2, h3, h4, h5, h6{
  color: var(--ks-ink);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .6em;
}

h1{ font-size: 42px; }
h2{ font-size: 32px; }
h3{ font-size: 24px; }

/* Paragraph spacing */
p{
  margin-bottom: 1.2em;
  color: var(--ks-muted);
}

/* Links */
a{
  color: var(--ks-blue);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover{
  color: var(--ks-blue-2);
}

/* Buttons */
button,
input[type="submit"],
.wp-block-button__link{
  background: var(--ks-blue);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s ease, transform .1s ease;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover{
  background: var(--ks-blue-2);
  transform: translateY(-1px);
}

/* Content width refinement */
.site-main{
  padding-top: 40px;
  padding-bottom: 60px;
}

