/*
Theme Name: Hexar Child
Theme URI: https://new.hexar.co/
Description: Hexar Solutions custom child theme of Twenty Twenty-Five. White surfaces with Hexar orange (#E9653A) accents in a clean, airy Kardex-style layout.
Author: Hexar Solutions
Template: twentytwentyfive
Version: 1.3.2
Text Domain: hexar-child
*/

/* ==========================================================================
   HEXAR · Kardex-style v1.2 — white + orange-accent
   ========================================================================== */

:root{
  --base:#ffffff;
  --soft:#F6F7F9;
  --ink:#1A1F24;
  --ink-2:#3C4858;
  --ink-3:#6B7785;
  --line:#E5E8EC;
  --accent:#E9653A;
  --accent-2:#C84F26;
  --accent-soft:rgba(233,101,58,.10);
  --shadow-sm: 0 1px 3px rgba(20,30,45,.05);
  --shadow: 0 6px 24px rgba(20,30,45,.08), 0 1px 3px rgba(20,30,45,.05);
  --shadow-lg: 0 14px 36px rgba(20,30,45,.10), 0 2px 6px rgba(20,30,45,.05);
  --radius: 14px;
  --radius-pill: 999px;
  --container: 1200px;
  --container-padding: 32px;
}

*{ box-sizing:border-box; }
html, body { background: var(--base); color: var(--ink-2); margin:0; padding:0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- typography ---- */
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { color: var(--ink-2); margin: 0 0 1em; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; display: block; }
.u { color: var(--accent); }

/* ---- containers / sections ---- */
.page-shell { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 8vw, 110px) 0; }
section.alt, section.soft { background: var(--soft); }
section.dark { background: var(--ink); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color:#fff; }
section.dark p { color: rgba(255,255,255,.85); }
section.dark a { color: var(--accent); }

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.site-nav .page-shell { display: flex; align-items: center; gap: 32px; padding: 0; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.nav-brand:hover { color: var(--ink); }
.nav-hex {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(233,101,58,.25);
}
.nav-wordmark { font-size: 1.1rem; letter-spacing: .08em; }
.nav-wordmark .u { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.nav-links a, .nav-links li > span { color: var(--ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; position: relative; padding: 6px 0; display: inline-block; }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.current { color: var(--accent); }
.nav-links a.current::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav-phone:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(233,101,58,.25);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(233,101,58,.30); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-ghost, .btn-white {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(233,101,58,.25); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(233,101,58,.30); }

.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 26px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-white { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-white:hover { background: var(--soft); }

/* ==========================================================================
   HERO  (white surface, charcoal headline, orange accent line)
   ========================================================================== */
.hero { background: #fff; position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; }
.hero-grad, .hero-grid, .hero-scan { display: none; }  /* turn off the dark gradient layers from the old theme */
.hero .page-shell { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 2px; background: var(--accent);
}
.hero-eyebrow span { color: var(--accent); }

.hero-h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; color: var(--ink); margin: 0 0 24px; letter-spacing: -.02em; }
.hero-h1 .acc { color: var(--accent); }
.hero-h1 .dim { color: var(--ink-3); }

.hero-rule { width: 80px; height: 3px; background: var(--accent); border: 0; margin: 0 0 28px; }

.hero-desc { color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; max-width: 60ch; margin: 0 0 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-n { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.hstat-l { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

.hero-right { display: none; } /* hide the orange chat-mockup column for a cleaner hero */

/* Signature animated orange line down the hero (Kardex-style accent) */
.hero::before {
  content: ""; position: absolute; right: 8%; top: 0; width: 2px; height: 70%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .6;
  animation: hexarLine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hexarLine {
  0%   { transform: translateY(-60%); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: translateY(80%); opacity: 0; }
}

/* ==========================================================================
   KARDEX P1 RIBBON  (white card with orange border, not a band)
   ========================================================================== */
.kardex-strip {
  background: #fff !important;
  border: 0 !important;
  padding: 0 0 60px;
}
.kardex-strip .page-shell { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.kardex-badge {
  display: inline-flex; align-items: center; gap: 16px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
}
.kb-icon {
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
}
.kb-strong { color: var(--ink); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.kb-sub { color: var(--ink-3); font-size: .8rem; }

.k-divider { width: 2px; height: 30px; background: var(--line); display: inline-block; }
.kardex-note { color: var(--ink-2); font-size: .92rem; font-style: normal; max-width: 380px; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.sec-h2 { color: var(--ink); margin: 0 0 16px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
.sec-intro { color: var(--ink-2); max-width: 65ch; font-size: 1.05rem; margin: 0 0 48px; }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card, .service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.svc-card:hover, .service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.svc-num {
  color: var(--ink-3);
  font-weight: 700; font-size: .78rem; letter-spacing: .12em;
}
.svc-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.svc-card h3 { color: var(--ink); margin: 4px 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.svc-card p { color: var(--ink-2); margin: 0; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.svc-tag, .chip {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ==========================================================================
   ABOUT / CREDENTIALS (about-grid)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--soft); }
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-img-grad { display: none; }
.about-img-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); color: #fff; }
.about-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}

.credentials-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.badge-stack { display: flex; flex-direction: column; gap: 14px; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { color: var(--ink-2); padding-left: 28px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem;
}

/* ==========================================================================
   LICENCES / STATES
   ========================================================================== */
.lic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 800px) { .lic-grid { grid-template-columns: repeat(2, 1fr); } }
.lic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.lic-state { font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -.01em; margin-bottom: 6px; }
.lic-num { color: var(--ink-3); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.lic-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.lic-pill {
  background: var(--soft); color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px; font-size: .7rem; font-weight: 600;
}

/* ==========================================================================
   CTA BAND  (24/7 BREAKDOWN — single dark slab, the one anchor)
   ========================================================================== */
.cta-band {
  background: var(--ink); color: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
}
.cta-band .page-shell { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-num { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.cta-num:hover { color: var(--accent); }

/* ==========================================================================
   CONTACT  (ready to talk — soft grey)
   ========================================================================== */
.contact-grid {
  background: var(--soft);
  border-radius: 0;
  padding: clamp(56px, 6vw, 80px) 0;
}
section.contact-section { background: var(--soft); }
.contact-grid .page-shell { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid .page-shell { grid-template-columns: 1fr; } }

.ci { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci:last-of-type { border-bottom: 0; }
.ci-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci strong { color: var(--ink); display: block; font-size: .92rem; }
.ci span { color: var(--ink-2); font-size: .9rem; }

.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,101,58,.15);
}
textarea { min-height: 120px; resize: vertical; }

.form-submit { width: 100%; margin-top: 8px; }
.form-note { color: var(--ink-3); font-size: .85rem; margin-top: 14px; text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer, footer {
  background: var(--soft);
  color: var(--ink-2);
  border-top: 3px solid var(--accent);
  padding: 56px 24px 24px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.f-brand-name { color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; margin-bottom: 12px; }
.f-brand-name .u { color: var(--accent); }
.f-brand p { color: var(--ink-2); font-size: .9rem; margin: 0 0 14px; }
.f-abn { color: var(--ink-3); font-size: .85rem; }

.f-col h4 {
  color: var(--ink);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 16px;
  font-weight: 700;
}
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-col a { color: var(--ink-2); font-size: .92rem; }
.f-col a:hover { color: var(--accent); }

.f-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--ink-3);
  font-size: .82rem;
}
.f-bottom a { color: var(--ink-3); }
.f-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   PAGE TEMPLATE (page.php)
   ========================================================================== */
.page-head { background: var(--soft); padding: clamp(60px, 8vw, 90px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-title, .page-title-xl { color: var(--ink); margin: 0 0 12px; }
.page-title-xl { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.page-lede { color: var(--ink-2); font-size: 1.1rem; max-width: 65ch; margin: 0; }
.page-meta { color: var(--ink-3); font-size: .85rem; margin-top: 16px; text-transform: uppercase; letter-spacing: .12em; }
.page-body { padding: clamp(48px, 6vw, 80px) 0; }
.page-body p, .page-body li { color: var(--ink-2); font-size: 1.02rem; }
.page-body h2 { margin: 2em 0 .6em; }
.page-body h3 { margin: 1.6em 0 .4em; }
.page-body img { border-radius: var(--radius); margin: 1em 0; }
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-body a:hover { color: var(--accent-2); }
.page-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0; }

/* ==========================================================================
   ARCHIVE / BLOG
   ========================================================================== */
.archive-list { display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
.archive-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.archive-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.archive-item-meta { color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.archive-item-title { margin: 8px 0 10px; }
.archive-item-title a { color: var(--ink); }
.archive-item-title a:hover { color: var(--accent); }
.archive-item-excerpt { color: var(--ink-2); margin: 0; }

.page-pagination { text-align: center; margin-top: 40px; }
.page-numbers {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-2); margin: 0 4px;
}
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   404
   ========================================================================== */
.page-404 { text-align: center; padding: 100px 24px; }
.page-404 h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--accent); margin: 0 0 20px; }
.page-404 p { color: var(--ink-2); margin: 0 0 28px; }

/* ==========================================================================
   CHAT WIDGET (hide for cleaner look — re-enable later if needed)
   ========================================================================== */
.chat-widget { position:fixed; bottom:24px; right:24px; z-index:9999; width:380px; font-family:system-ui,sans-serif; }

/* ==========================================================================
   FILTER ROW ON PAGES (small responsive niceties)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav .page-shell { justify-content: space-between; }
  .hero-stats { gap: 24px; }
  .hstat-n { font-size: 1.6rem; }
}


/* ==========================================================================
   v1.2.1 PATCHES — container / footer / dark-band / hero polish
   ========================================================================== */

/* CONTAINER — apply max-width + horizontal padding to every direct child of every section.
   The front-page template has no .page-shell wrapper, so we constrain children directly. */
section { padding-left: var(--container-padding); padding-right: var(--container-padding); }
section > .page-shell { max-width: var(--container); margin: 0 auto; padding: 0; }
section > *:not(.page-shell) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.kardex-strip { padding-left: var(--container-padding); padding-right: var(--container-padding); }
.kardex-strip > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* The contact section uses .contact-grid which itself sets background. Constrain its children. */
.contact-grid {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.contact-grid > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.contact-grid .page-shell { max-width: var(--container); margin: 0 auto; }

/* DARK BAND adjustments — when section has .dark, override surface colours but keep cards visible */
section.dark { background: var(--ink); color: #fff; }
section.dark .sec-label { color: var(--accent); }
section.dark .sec-label::before { background: var(--accent); }
section.dark .sec-h2 { color: #fff; }
section.dark .sec-intro { color: rgba(255,255,255,.78); }

/* STATE LICENCE CARDS inside dark band — light cards on dark surface */
section.dark .lic-card, section.dark .lic-grid > * {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
section.dark .lic-card:hover { border-color: var(--accent); background: rgba(255,255,255,.10); }
section.dark .lic-state { color: var(--accent); }
section.dark .lic-num { color: rgba(255,255,255,.7); }
section.dark .lic-pill { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.18); }

/* CTA BAND (24/7 breakdown) — already dark; ensure inner content centres */
.cta-band { padding-left: var(--container-padding); padding-right: var(--container-padding); }
.cta-band > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* HERO — content area constrained */
.hero { padding-left: var(--container-padding); padding-right: var(--container-padding); }
.hero > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* FOOTER — fix link stacking (links were rendering inline because no display:block was set) */
.footer-grid { padding-left: 0; padding-right: 0; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: block; }
.f-col ul li { display: block; margin-bottom: 10px; }
.f-col ul li a { display: inline-block; padding: 2px 0; }

/* Footer columns: if links are siblings of each other (not in <ul>), still stack them */
.f-col > a { display: block; padding: 4px 0; }
.f-col p { margin: 4px 0; }

/* Footer brand: stack licence pills */
.f-brand .lic-pills, .f-brand + div .lic-pills, .lic-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* HERO STATS — proper spacing */
.hero-stats { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.hstat { min-width: 120px; }

/* SECTION HEADERS — ensure they don't go full width when followed by grid */
.sec-label, .sec-h2, .sec-intro { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* HERO ANIMATED LINE — make sure it's positioned within the constrained area */
.hero { position: relative; }
.hero::before {
  left: auto;
  right: max(8%, calc((100vw - var(--container)) / 2 + 32px));
}

/* ABOUT GRID — constrained */
.about-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* SVC GRID — constrained */
.svc-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* LIC GRID — constrained */
.lic-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* PAGE-HEAD on inner pages — constrained */
.page-head > *, .page-body > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--container-padding); padding-right: var(--container-padding); }
.page-head, .page-body { padding-left: 0; padding-right: 0; }

/* MOBILE — proper stacking and padding */
@media (max-width: 768px) {
  :root { --container-padding: 20px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-stats { gap: 20px; }
  .hstat-n { font-size: 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: .72rem; }
  .nav-phone { font-size: .85rem; }
  .nav-wordmark { font-size: .95rem; }
  .site-nav .page-shell { gap: 12px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-secondary, .btn-ghost, .btn-white { padding: 12px 22px; font-size: .76rem; }
  .svc-grid { gap: 16px; }
  .svc-card { padding: 24px 20px; }
  .about-grid { gap: 32px; }
  .lic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta-band .page-shell, .cta-band > * { flex-direction: column; align-items: flex-start; gap: 16px; }
  .contact-grid .page-shell { grid-template-columns: 1fr; gap: 32px; }
  .form-wrap { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .f-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .lic-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hstat { min-width: 0; }
}


/* ==========================================================================
   v1.2.2 PATCHES — header centring, cta-band layout, dark section centring
   ========================================================================== */

/* HEADER (.site-nav is a <nav>, not a section) — centre its direct children */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 100%;
  padding: 18px var(--container-padding);
}
.site-nav > * {
  /* Children flow horizontally; first child = brand, then nav-links, then nav-right */
}
/* Add a wrapper limit by giving the nav an inner max-width */
.site-nav::before, .site-nav::after { content: none; }
@media (min-width: 901px) {
  .site-nav {
    padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
    padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  }
}

.nav-brand { flex-shrink: 0; }
.nav-links { flex: 1; justify-content: center; }
.nav-right { flex-shrink: 0; }

/* CTA BAND (24/7 BREAKDOWN) — is a div, not a section. Style it as a flex band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 100%;
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.cta-band > div:first-child { flex: 1; min-width: 280px; }
.cta-band h3 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band .cta-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-num { color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }

/* DARK SECTION (LICENSED NATIONALLY) content centring — was edge-to-edge before */
section.dark {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}
section.dark > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
section.dark .lic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}
section.dark .lic-card {
  padding: 32px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  transition: border-color .2s, transform .2s, background .2s;
}
section.dark .lic-card:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(255,255,255,.10); }
section.dark .lic-state { color: var(--accent); font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
section.dark .lic-num { color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .04em; }

/* HERO — apply same edge-aware padding */
.hero {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}
.hero > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.hero-content { margin: 0 auto 0 0; max-width: 720px; }
.hero-stats { max-width: 720px; margin: 48px auto 0 0; }

/* All SECTIONS get edge-aware padding for consistent centring */
section:not(.dark) {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}
section:not(.dark) > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* KARDEX P1 RIBBON — proper edge-aware padding */
.kardex-strip {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}
.kardex-strip > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* CONTACT GRID — same treatment */
.contact-grid {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}

/* FOOTER — match centring */
.site-footer, footer {
  padding-left: max(var(--container-padding), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--container-padding), calc((100vw - var(--container)) / 2));
}
.footer-grid { max-width: var(--container); margin: 0 auto; padding: 0; }
.f-bottom { max-width: var(--container); margin: 40px auto 0; padding-left: 0; padding-right: 0; }

/* MOBILE PATCHES */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav { gap: 12px; padding: 12px var(--container-padding); }
  .nav-cta { padding: 8px 14px; font-size: .72rem; }
  .nav-phone { font-size: .82rem; }
  .nav-wordmark { font-size: .9rem; }
  .nav-hex { width: 30px; height: 30px; font-size: .9rem; }
  .cta-band { padding-left: var(--container-padding); padding-right: var(--container-padding); flex-direction: column; align-items: flex-start; gap: 16px; }
  section.dark .lic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  section.dark .lic-card { padding: 20px 14px; }
  section.dark .lic-state { font-size: 1.4rem; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (max-width: 600px) {
  section.dark .lic-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .hstat { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid .page-shell { grid-template-columns: 1fr; gap: 32px; }
}


/* ============ v1.3.0: REAL HEXAR LOGO PNG ============ */
.nav-logo{
  display:block;
  height:34px;
  width:auto;
  max-width:260px;
  object-fit:contain;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:0;
  text-decoration:none;
}
/* Keep H-tile + wordmark hidden if any old markup still references them */
.nav-hex,.nav-wordmark{display:none !important}

@media(max-width:600px){
  .nav-logo{height:28px;max-width:180px}
}

/* ==========================================================================
   HEXAR BLOG — Industry Intelligence Hub
   ========================================================================== */

/* ---- Hero Banner ---- */
.hexar-blog-hero {
  background: #0d0d0d;
  padding: 120px 24px 100px;
  text-align: center;
}
.hexar-blog-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hexar-blog-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
.hexar-blog-hero h2 {
  color: #f5f5f5;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1em;
}
.hexar-blog-tagline {
  color: #f47b20;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 2em;
}
.hexar-blog-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons (reuse across blog) ---- */
.hexar-btn-primary {
  display: inline-block;
  background: #f47b20;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hexar-btn-primary:hover { background: #c84e1a; transform: translateY(-2px); }

.hexar-btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hexar-btn-outline:hover { background: #fff; color: #0d0d0d !important; transform: translateY(-2px); }

/* ---- Grid Section ---- */
.hexar-blog-grid-section {
  background: #f7f7f7;
  padding: 100px 24px;
}
.hexar-blog-grid-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.hexar-blog-grid-header h2 {
  color: #0d0d0d;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 0.5em;
}
.hexar-blog-grid-sub {
  color: #444;
  font-size: 18px;
  line-height: 1.7;
}

/* ---- Post Card Grid ---- */
.hexar-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .hexar-blog-grid { grid-template-columns: 1fr; }
}

/* ---- Individual Card ---- */
.hexar-blog-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.hexar-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}
.hexar-blog-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e5e5e5;
}
.hexar-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hexar-blog-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hexar-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hexar-blog-cat {
  background: rgba(244,123,32,0.12);
  color: #f47b20;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}
.hexar-blog-date {
  color: #888;
  font-weight: 500;
}
.hexar-blog-card-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #0d0d0d;
}
.hexar-blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.hexar-blog-card-title a:hover { color: #f47b20; }
.hexar-blog-card-excerpt {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}
.hexar-blog-card-link {
  color: #f47b20;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.hexar-blog-card-link:hover { color: #c84e1a; }

.hexar-blog-empty {
  text-align: center;
  color: #888;
  font-size: 18px;
  grid-column: 1 / -1;
  padding: 60px 0;
}

/* ---- Pagination ---- */
.hexar-blog-pagination {
  text-align: center;
  margin-top: 60px;
}
.hexar-blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hexar-blog-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  color: #0d0d0d;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hexar-blog-pagination .page-numbers.current,
.hexar-blog-pagination .page-numbers:hover {
  background: #f47b20;
  color: #fff;
  border-color: #f47b20;
}

/* ---- Closing CTA ---- */
.hexar-blog-cta {
  background: #f47b20;
  padding: 100px 24px;
  text-align: center;
}
.hexar-blog-cta h2 {
  color: #0d0d0d;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto 0.6em;
}
.hexar-blog-cta p {
  color: #0d0d0d;
  font-size: 17px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2em;
}
.hexar-blog-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hexar-btn-cta-dark {
  display: inline-block;
  background: #0d0d0d;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hexar-btn-cta-dark:hover { background: #333; transform: translateY(-2px); }

.hexar-btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: #0d0d0d !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 2px solid #0d0d0d;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hexar-btn-cta-outline:hover { background: #0d0d0d; color: #fff !important; transform: translateY(-2px); }

/* ---- Single Post Styling ---- */
.single .page-shell { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.single .page-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: #0d0d0d; margin-bottom: 0.3em; }
.single .page-body { font-size: 17px; line-height: 1.75; color: #333; }
/* ── Chat Widget ────────────────────────────────────── */
.chat-head { display:flex; align-items:center; justify-content:space-between; background:#0d0d0d; color:#fff; padding:14px 18px; border-radius:12px 12px 0 0; cursor:pointer; }
.chat-head-left { display:flex; align-items:center; gap:10px; }
.chat-av { width:36px; height:36px; background:#f47b20; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; }
.chat-head-text { display:flex; flex-direction:column; }
.chat-head-text strong { font-size:14px; }
.chat-head-text span { font-size:11px; opacity:0.7; }
#chat-wrap { background:#fff; border-radius:0 0 12px 12px; box-shadow:0 10px 40px rgba(0,0,0,0.2); overflow:hidden; }
#chat-chev { transition:transform 0.2s; }
@media (max-width:480px) { .chat-widget { width:calc(100vw - 20px); right:10px; bottom:10px; } }
