/* ============================================================
   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; }
/* ---------- EV Score Your Quote tool ---------- */
body.hexar-flagship.page-score-your-quote, body.page-id-917 .page-body{ margin:0; padding:0; }
body.hexar-flagship.page-score-your-quote, body.page-id-917 .page-head{ display:none; }

.evs-hero{ max-width:900px; margin:0 auto; padding:56px 24px 8px; background:transparent; }
.evs-hero .evs-eyebrow{
  display:inline-flex; align-items:center; gap:12px; color:#E9653A;
  font-weight:700; font-size:13px; letter-spacing:.2em; text-transform:uppercase; margin-bottom:16px;
}
.evs-hero .evs-dash{ width:32px; height:2px; background:#E9653A; display:inline-block; }
.evs-h1{
  font-family:'Barlow Condensed',sans-serif; font-size:40px; font-weight:800;
  letter-spacing:-0.02em; color:#0d0d0d; margin:0 0 16px;
}
.evs-lede{ font-size:16px; line-height:1.6; color:#5f5a56; margin:0 0 8px; max-width:640px; }
.evs-lede em{ font-style:normal; color:#0d0d0d; font-weight:600; }

/* Sticky score bar */
.evy-sticky{
  position:sticky; top:0; z-index:20; background:#0d0d0d; color:#fff;
  padding:12px 24px; display:flex; align-items:center; gap:20px;
}
.evy-sticky .evy-back{
  color:rgba(255,255,255,.6); font-size:13px; font-weight:600; text-decoration:none !important; flex-shrink:0;
}
.evy-sticky .evy-sticky-label{
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(255,255,255,.6); white-space:nowrap;
}
.evy-sticky .evy-track{ flex:1; display:flex; align-items:center; gap:14px; min-width:120px; }
.evy-track{ height:8px; background:rgba(255,255,255,.14); border-radius:4px; overflow:hidden; flex:1; }
.evy-track .evy-fill{ height:100%; background:#E9653A; border-radius:4px; transition:width .3s; }
.evy-result-track{ height:10px; border-radius:5px; background:rgba(255,255,255,.12); overflow:hidden; margin:0 0 20px; }
.evy-result-track .evy-fill{ height:100%; background:#E9653A; }
.evy-sticky-score{ font-size:14px; font-weight:800; white-space:nowrap; }
.evy-vs{ color:rgba(255,255,255,.3); font-size:13px; }
.evy-hexar{ font-size:14px; font-weight:800; color:#E9653A; white-space:nowrap; }

/* Questions */
.evy-questions{
  max-width:900px; margin:0 auto; padding:32px 24px 24px;
  display:flex; flex-direction:column; gap:16px;
}
.evy-q{
  background:#fff; border:1px solid #e8e5e0; border-top:2px solid #E9653A;
  border-radius:8px; padding:26px 28px;
}
.evy-q-head{ display:flex; gap:16px; align-items:flex-start; margin-bottom:20px; }
.evy-q-num{
  flex-shrink:0; width:32px; height:32px; border-radius:6px; background:#efece7;
  color:#0d0d0d; font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center;
}
.evy-q-title{ margin:0 0 4px; font-size:17px; font-weight:700; color:#0d0d0d; }
.evy-q-sub{ margin:0; font-size:13.5px; color:#5f5a56; line-height:1.5; }
.evy-q-cols{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.evy-yours-label, .evy-hex-label{
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:#5f5a56; margin-bottom:10px;
}
.evy-yesno{ display:flex; gap:10px; }
.evy-btn{
  border-radius:8px; font-weight:700; font-size:13px; letter-spacing:.04em;
  text-transform:uppercase; cursor:pointer; font-family:inherit;
}
.evy-yes, .evy-no{ flex:1; padding:12px; border:2px solid #e8e5e0; background:#fff; color:#5f5a56; }
.evy-yes.is-yes{ border-color:#E9653A; background:#E9653A; color:#fff; }
.evy-no.is-no{ border-color:#33302d; background:#33302d; color:#fff; }
.evy-hex-card{
  border:1px solid #fdf1ec; background:#fdf1ec; border-radius:8px; padding:12px 14px;
  display:flex; gap:10px; align-items:flex-start;
}
.evy-hex-check{ color:#E9653A; font-weight:800; font-size:16px; line-height:1.2; }
.evy-hex-yes{ font-weight:800; font-size:13px; color:#0d0d0d; letter-spacing:.02em; }
.evy-hex-proof{ font-size:13px; color:#33302d; line-height:1.4; margin-top:2px; }
.evy-hex-answer{ min-height:20px; }

/* Result */
.evy-result{
  max-width:900px; margin:0 auto; padding:0 24px 88px;
}
.evy-result-card{
  background:#0d0d0d; border-radius:8px; padding:44px 40px;
}
.evy-result-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:24px;
}
.evy-result-head h2{ color:#fff; font-family:'Barlow Condensed',sans-serif; font-size:30px; font-weight:800; margin:0; }
.evy-score-readout{ display:flex; align-items:baseline; gap:8px; }
.evy-rscore-other{ color:#fff; font-size:32px; font-weight:800; }
.evy-rhexar{ color:#E9653A; font-size:32px; font-weight:800; }
.evy-rsub{ color:rgba(255,255,255,.45); font-size:14px; }
.evy-rdot{ color:rgba(255,255,255,.3); font-size:14px; }
.evy-narrative{ color:rgba(255,255,255,.75); font-size:15px; line-height:1.6; margin:0 0 32px; max-width:640px; }
.evy-result-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.evy-btn-primary{ background:#E9653A; color:#fff; padding:15px 28px; text-decoration:none; display:inline-block; border:0; }
.evy-btn-primary:hover{ background:#C84F26; color:#fff; }
.evy-btn-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.3); padding:15px 28px; }
.evy-btn-text{ background:transparent; color:rgba(255,255,255,.7); border:0; padding:15px 4px; font-size:13px; }
.evy-contact{
  margin-top:24px; padding-top:24px; border-top:1px solid rgba(255,255,255,.14);
  display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:12px;
}
.evy-contact input{
  background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.2);
  border-radius:8px; padding:12px 14px; font-size:13px; font-family:inherit;
}
.evy-send{ border:0; }
.evy-contact-done{ color:#fff; font-size:14px; margin:24px 0 0; }

/* Print summary */
.evy-print{ display:none; }

@media print{
  @page{ size:A4; margin:10mm; }
  body{ background:#fff !important; }
  .evy-sticky, .evy-result, .evy-questions, .evs-hero, .site-footer, header, nav, .page-head{ display:none !important; }
  .evy-print{ display:block !important; padding:4px; font-size:10px; color:#33302d; }
  .evy-print-head{ display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid #E9653A; padding-bottom:8px; margin-bottom:12px; }
  .evy-print-head span:first-child{ font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:16px; color:#0d0d0d; }
  .evy-print-head span:last-child{ font-size:9.5px; color:#5f5a56; }
  .evy-print-score{ display:flex; align-items:baseline; gap:4px; margin-bottom:10px; }
  .evy-print-other{ font-size:22px; font-weight:800; color:#0d0d0d; }
  .evy-print-hexar{ font-size:22px; font-weight:800; color:#E9653A; }
  .evy-print-sub{ font-size:10px; color:#5f5a56; }
  .evy-print-narr{ font-size:10px; line-height:1.4; color:#33302d; margin:0 0 12px; }
  .evy-print-rows{ column-count:2; column-gap:22px; }
  .evy-print-row{ break-inside:avoid; padding:5px 0; border-bottom:1px solid #e8e5e0; font-size:9.5px; line-height:1.35; }
  .evy-print-h{ color:#E9653A; }
  .evy-print-foot{ margin-top:14px; padding-top:10px; border-top:1px solid #e8e5e0; font-size:9.5px; color:#5f5a56; }
}
/* ---------- Mobile: Score Your Quote quiz ---------- */
@media (max-width: 760px){
  .evy-q-cols{ grid-template-columns: 1fr !important; gap: 14px; }
  .evy-q{ padding: 18px 16px !important; }
  .evy-q-title{ font-size: 16px !important; }
  .evy-sticky{ flex-wrap: wrap; gap: 10px; padding: 10px 14px !important; }
  .evy-sticky .evy-track{ min-width: 100%; order: 3; }
  .evs-hero{ padding: 40px 20px 8px !important; }
  .evs-h1{ font-size: 30px !important; }
  .evy-result-actions{ flex-direction: column; }
  .evy-result-actions .evy-btn-primary{ text-align: center; }
}
/* ---------- Mobile: EV page CTA band + hero grid ---------- */
@media (max-width: 760px){
  .page-id-13 .page-body section[style*="grid-template-columns:1.15fr 1fr"]{
    grid-template-columns: 1fr !important; min-height: 0 !important; padding: 40px 24px;
  }
  .page-id-13 .page-body section[style*="overflow:hidden"]{
    padding: 40px 24px !important;
  }
  .page-id-13 .page-body section[style*="overflow:hidden"] > div[style*="display:flex"]{
    flex-direction: column !important; align-items: flex-start !important; gap: 18px;
  }
  .page-id-13 .page-body section[style*="overflow:hidden"] h3{ font-size: 1.25rem !important; }
  .page-id-13 .page-body section[style*="padding:80px 40px"]{ padding: 48px 24px !important; }
  .page-id-13 .page-body div[style*="grid-template-columns:repeat(3,1fr)"]{
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Site-wide mobile fixes ---------- */
@media (max-width: 760px){
  html, body{ overflow-x: hidden; }
  .hex-watermark{ width: 900px !important; top: -10% !important; right: -30% !important; }
  /* collapse any 2/3-col inline grid sections on phones */
  .page-body div[style*="grid-template-columns:1.15fr 1fr"],
  .page-body div[style*="grid-template-columns:1fr 1fr"],
  .page-body div[style*="grid-template-columns:repeat(2"],
  .page-body div[style*="grid-template-columns:repeat(3"],
  .entry-content div[style*="grid-template-columns:1.15fr 1fr"],
  .entry-content div[style*="grid-template-columns:1fr 1fr"],
  .entry-content div[style*="grid-template-columns:repeat(2"],
  .entry-content div[style*="grid-template-columns:repeat(3"]{
    grid-template-columns: 1fr !important;
  }
  /* CF7 contact grid stacks */
  .hexar-cf7-grid{ grid-template-columns: 1fr !important; width: 100% !important; max-width: 100% !important; }
  /* keep fixed-width inline sections inside viewport */
  .page-body section[style*="padding:80px 40px"],
  .entry-content section[style*="padding:80px 40px"]{ padding: 48px 20px !important; }
  .page-body section[style*="max-width:1280px"],
  .entry-content section[style*="max-width:1280px"]{ max-width: 100% !important; }
  img{ max-width: 100%; height: auto; }
}
