/* ============================================================
   Hexar Solutions — Redesign 2026 (B2B Professional Rework)
   Design tokens & components.
   ============================================================ */

:root{
  --hex-orange:#E9653A; --hex-orange-hover:#C84F26; --hex-ink:#0d0d0d;
  --hex-body:#33302d; --hex-muted:#5f5a56; --hex-bg:#f7f6f3;
  --hex-border:#e8e5e0; --hex-tint:#fdf1ec; --hex-white:#fff;
  --hex-numeral:#efece7;
  --hex-font:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

body{ font-family:var(--hex-font); color:var(--hex-body); line-height:1.6; background:var(--hex-white); }
h1,h2,h3,h4,h5,h6,p,a,li,.site-nav,.nav-cta,button,input,textarea,select{ font-family:var(--hex-font); }
h1,h2,h3{ color:var(--hex-ink); font-weight:800; letter-spacing:-0.02em; }
a{ color:var(--hex-orange); text-decoration:none; }
a:hover{ color:var(--hex-orange-hover); }
::selection{ background:var(--hex-orange); color:#fff; }

/* ---------- Watermark ---------- */
.hex-watermark{ position:fixed; top:-14%; right:-14%; width:1500px; max-width:100vw;
  transform:rotate(-16deg); opacity:.06; pointer-events:none; z-index:1; user-select:none; display:block; }

/* ---------- Sticky Nav ---------- */
.site-nav{ display:flex; align-items:center; justify-content:space-between; gap:32px;
  padding:14px 24px; border-bottom:1px solid var(--hex-border); position:sticky; top:0;
  background:#fff; z-index:50; flex-wrap:nowrap; }
.site-nav .nav-brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.site-nav .nav-brand img{ display:block; }
.site-nav .nav-brand .nav-mark{ height:26px; width:auto; }
.site-nav .nav-brand .nav-wordmark{ height:22px; width:auto; max-width:150px; object-fit:contain; }
/* Theme style.css forces height:auto which collapses 22px-high wordmark to 0 width,
   and legacy rule '.nav-hex, .nav-wordmark{display:none}' hides it entirely (old nav was logo-only). */
.site-nav .nav-brand .nav-wordmark{ display:block !important; height:22px !important; width:auto !important; min-width:110px; object-fit:contain; }

/* ---------- Hero split images: theme img{height:auto} collapses absolute-positioned hero photo.
   Design requires the photo to fill its column (position:absolute; inset:0). ----------
   IMPORTANT: only exempt absolute/fill hero images from max-width — every other design
   image (cards, grids, recent-work) keeps max-width:100% so it stays inside its card. */
.hexar-flagship .page-body section div[style*="inset:0"] img,
.hexar-flagship .page-body section div[style*="overflow:hidden"] img,
.hexar-flagship .entry-content section div[style*="inset:0"] img,
.hexar-flagship .entry-content section div[style*="overflow:hidden"] img{
  position:absolute; inset:0; width:100% !important; height:100% !important; object-fit:cover; display:block; max-width:none !important;
}
/* Images inside bordered 4:3 cards (Why Hexar, recent work, etc.) must FILL their card,
   not exceed it: width constrained by the card, height by aspect-ratio. */
.hexar-flagship .page-body section div[style*="aspect-ratio"] img,
.hexar-flagship .entry-content section div[style*="aspect-ratio"] img{
  position:absolute; inset:0; width:100% !important; height:100% !important; object-fit:cover; display:block; max-width:none !important;
}
/* aspect-ratio cards must be positioning contexts for the absolute-fill img above */
.hexar-flagship .page-body section div[style*="aspect-ratio"],
.hexar-flagship .entry-content section div[style*="aspect-ratio"]{
  position:relative; overflow:hidden;
}
/* Theme rule 'section > *:not(.page-shell){max-width;margin:auto}' breaks the design's
   full-bleed split sections (grid item collapses to 0). Neutralize inside flagship pages.
   Home uses .entry-content (front-page.php); inner pages use .page-body. */
.hexar-flagship .page-body section > *:not(.page-shell),
.hexar-flagship .entry-content section > *:not(.page-shell){
  max-width:none; margin-left:0; margin-right:0;
}
.site-nav .nav-links{ display:flex; gap:28px; list-style:none; margin:0; padding:0;
  flex:1; justify-content:center; min-width:0; }
.site-nav .nav-links a{ color:var(--hex-ink); font-weight:600; font-size:13px;
  text-transform:uppercase; letter-spacing:.06em; }
.site-nav .nav-links li.is-active a,
.site-nav .nav-links .current-menu-item a,
.site-nav .nav-links a.is-active{ color:var(--hex-orange); }
.site-nav .nav-right{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.site-nav .nav-phone{ color:var(--hex-ink); font-weight:700; font-size:14px; white-space:nowrap; }
.site-nav .nav-cta{ background:var(--hex-orange); color:#fff; border-radius:8px; padding:10px 20px;
  font-weight:700; font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.site-nav .nav-cta:hover{ background:var(--hex-orange-hover); color:#fff; }
@media(max-width:1240px){ .site-nav .nav-links{ gap:16px; } .site-nav .nav-links a{ font-size:11px; } }
@media(max-width:1080px){ .site-nav .nav-phone{ display:none; } }
@media(max-width:980px){ .site-nav .nav-links{ display:none; } }

/* ---------- Page shell overrides (ONLY flagship redesigned pages use full-bleed sections) ---------- */
body.hexar-flagship .page-shell,
body.hexar-flagship .page-body,
body.hexar-flagship .entry-content{
  max-width:none !important; padding:0 !important; margin:0 !important;
}
body.hexar-flagship .page-head{ display:none; } /* redesigned pages carry their own H1 */
body.hexar-flagship .page-body > * { max-width:none; padding:0; margin:0; }
body.hexar-flagship .page-article, body.hexar-flagship .page-article > *{ /* reset card look */
  background:transparent; border:0; box-shadow:none;
}

/* ---------- Shared ---------- */
.hex-eyebrow{ display:inline-flex; align-items:center; gap:12px; color:var(--hex-orange);
  font-weight:700; font-size:13px; letter-spacing:.2em; text-transform:uppercase; margin-bottom:16px; }
.hex-eyebrow::before{ content:""; width:32px; height:2px; background:var(--hex-orange); display:inline-block; }

/* ---------- Cards ---------- */
.hex-card{ background:#fff; border:1px solid var(--hex-border);
  border-top:2px solid var(--hex-orange); border-radius:8px; padding:28px 26px; }
.hex-card h3{ font-size:1.02rem; font-weight:700; margin:0 0 8px; color:var(--hex-ink); }
.hex-card p{ font-size:.92rem; color:var(--hex-muted); margin:0; }

/* ---------- Buttons ---------- */
.hex-btn,.hex-cta{ display:inline-block; background:var(--hex-orange); color:#fff;
  border-radius:8px; padding:14px 26px; font-weight:700; font-size:13px;
  letter-spacing:.06em; text-transform:uppercase; }
.hex-btn:hover,.hex-cta:hover{ background:var(--hex-orange-hover); color:#fff; }

/* ---------- CTA band ---------- */
.hex-cta-band{ position:relative; background:var(--hex-ink); overflow:hidden; padding:56px 40px; }
.hex-cta-band::after{ content:""; position:absolute; top:0; right:0; bottom:0; width:48%;
  background:var(--hex-orange); clip-path:polygon(30% 0,100% 0,100% 100%,0% 100%); }
.hex-cta-band .hex-cta-inner{ position:relative; z-index:2; max-width:1280px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.hex-cta-band h3{ color:#fff; margin:0 0 6px; font-size:1.4rem; font-weight:800; }
.hex-cta-band p{ color:rgba(255,255,255,.75); margin:0; }
.hex-cta-band .hex-cta-phone{ color:#fff; font-size:1.3rem; font-weight:800; }
.hex-cta-band .hex-cta{ background:var(--hex-ink); color:#fff; }

/* ---------- Licence band ---------- */
.hex-licence-band{ background:var(--hex-ink); color:#fff; padding:76px 40px; }
.hex-licence-band h2{ color:#fff; font-size:clamp(1.8rem,3vw,2.2rem); margin:0 0 40px; letter-spacing:-.02em; font-weight:800; }
.hex-licence-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.hex-licence{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.14);
  border-radius:10px; padding:26px 16px; text-align:center; }
.hex-licence .lic-state{ font-size:1.6rem; font-weight:800; color:var(--hex-orange); margin-bottom:6px; }
.hex-licence .lic-no{ color:rgba(255,255,255,.65); font-size:.8rem; font-weight:600; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--hex-bg); border-top:3px solid var(--hex-orange); padding:56px 40px 24px; margin-top:0; }
.hex-footer-grid{ max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; }
.hex-footer-grid .f-brand-name{ font-size:1.1rem; font-weight:800; color:var(--hex-ink); letter-spacing:-.01em; }
.hex-footer-grid .f-brand-name em{ color:var(--hex-orange); font-style:normal; }
.hex-footer-grid h4{ color:var(--hex-ink); font-size:.85rem; text-transform:uppercase;
  letter-spacing:.12em; margin:0 0 16px; font-weight:700; }
.hex-footer-grid a{ display:block; color:var(--hex-body); font-size:.9rem; margin-bottom:10px; }
.hex-footer-grid a:hover{ color:var(--hex-orange); }
.hex-footer-grid .f-blurb{ color:var(--hex-body); font-size:.9rem; margin:12px 0 12px; }
.hex-footer-grid .f-abn{ color:var(--hex-muted); font-size:.85rem; margin-bottom:12px; }
.lic-pills{ display:flex; flex-wrap:wrap; gap:6px; }
.lic-pill{ background:#fff; color:var(--hex-body); border:1px solid var(--hex-border);
  border-radius:6px; padding:3px 10px; font-size:.7rem; font-weight:600; white-space:nowrap; }
.hex-footer-bottom{ max-width:1280px; margin:40px auto 0; padding-top:20px;
  border-top:1px solid var(--hex-border); display:flex; justify-content:space-between; flex-wrap:wrap;
  gap:12px; color:var(--hex-muted); font-size:.82rem; }
.hex-footer-bottom a{ display:inline; color:var(--hex-muted); margin:0; }
.hex-footer-bottom a:hover{ color:var(--hex-orange); }

/* ---------- Redesign page sections inside page-body (h2/h3 spacing reset) ---------- */
body.hexar-flagship .page-body h2{ margin:0; }
body.hexar-flagship .page-body h3{ margin:0; }
body.hexar-flagship .page-body img{ border-radius:0; margin:0; }

/* ---------- Responsive grids for the redesign sections ---------- */
.hexar-redesign .hex-licence-grid{ grid-template-columns:repeat(5,1fr); }
@media(max-width:900px){
  .hex-licence-grid{ grid-template-columns:repeat(2,1fr); }
  .hex-footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  body{ } 
}

/* ---------- CF7 form inside redesign card ---------- */
body.hexar-redesign .page-body .wpcf7{ font-family:var(--hex-font); }
body.hexar-redesign .page-body .wpcf7 input[type=text],
body.hexar-redesign .page-body .wpcf7 input[type=tel],
body.hexar-redesign .page-body .wpcf7 input[type=email],
body.hexar-redesign .page-body .wpcf7 select,
body.hexar-redesign .page-body .wpcf7 textarea{
  width:100%; background:#fff; color:var(--hex-ink); border:1px solid var(--hex-border);
  border-radius:8px; padding:14px 16px; font-size:.94rem; font-family:inherit; margin-bottom:16px;
}
body.hexar-redesign .page-body .wpcf7 input[type=submit]{
  background:var(--hex-orange); color:#fff; border:0; border-radius:8px; padding:14px 28px;
  font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; width:100%;
}
body.hexar-redesign .page-body .wpcf7 input[type=submit]:hover{ background:var(--hex-orange-hover); }
/* Watermark must sit BEHIND content: give flagship sections their own stacking context */
.hexar-flagship .page-body section, .hexar-flagship .entry-content section{ position:relative; z-index:2; }
