/*
Theme Name: Centalion Brand
Theme URI: https://centalionbrand.oversquare.com
Author: Oversquare
Author URI: https://oversquare.com
Description: Online brand guidelines for Centalion. Sticky contents nav, one long scroll, one section per chapter.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: centalion-brand
*/

/* ------------------------------------------------------------------
   ABC ARIZONA FLARE — WEB FONT SLOT
   Licensed web font (Dinamo). Files live in /fonts in this theme.
------------------------------------------------------------------ */
@font-face {
  font-family: "ABC Arizona Flare";
  src: url("fonts/ABCArizonaFlare-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "ABC Arizona Flare";
  src: url("fonts/ABCArizonaFlare-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}


:root {
  --black: #14130E;
  --orange: #ED6200;
  --white: #FFFFFF;
  --grey-50: #F4F3EF;
  --grey-200: #DEDCD5;
  --grey-500: #8A877E;
  --grey-700: #4A4840;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "ABC Arizona Flare", Georgia, serif;
  --heading-weight: 400;
  --nav-w: 300px;
  --gutter: clamp(24px, 6vw, 96px);
  /* The Flare: square with concave sides, 68px grid */
  --flare-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68' viewBox='0 0 68 68'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M32 32 C33.33 32.33 34.67 32.33 36 32 C35.67 33.33 35.67 34.67 36 36 C34.67 35.67 33.33 35.67 32 36 C32.33 34.67 32.33 33.33 32 32 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  /* One continuous Flare grid behind every dark section, so dots line up across joins */
  background: var(--black) var(--flare-grid);
  -webkit-font-smoothing: antialiased;
}
html { margin-top: 0 !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

/* ---------------- Layout ---------------- */
.site { display: flex; min-height: 100vh; }

.brand-nav {
  position: sticky; top: 0;
  flex: 0 0 var(--nav-w);
  height: 100vh;
  overflow-y: auto;
  background: var(--black);
  color: var(--white);
  padding: 40px 32px;
  display: flex; flex-direction: column;
}
.brand-nav__logo { display: block; text-decoration: none; margin-bottom: 48px; }
.brand-nav__logo img { width: 150px; }
.brand-nav__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-500); margin: 0 0 16px; }

.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc > li { margin-bottom: 6px; }
.toc a {
  display: flex; gap: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  padding: 4px 0;
  font-size: 15px;
  transition: color .15s;
}
.toc a:hover { color: var(--white); }
.toc a .num { color: var(--grey-500); min-width: 24px; font-variant-numeric: tabular-nums; }
.toc ul { padding-left: 36px; display: none; }
.toc ul a { font-size: 14px; }
.toc li.is-open > ul { display: block; }
.toc a.is-active { color: var(--orange); }
.toc a.is-active .num { color: var(--orange); }
.toc .soon { font-size: 11px; color: var(--grey-500); margin-left: auto; }

.brand-nav__foot { margin-top: auto; padding-top: 40px; font-size: 13px; color: var(--grey-500); }
.brand-nav__foot a { color: rgba(255,255,255,0.72); text-decoration: none; }

.brand-main { flex: 1; min-width: 0; background: var(--white); }

/* ---------------- Sections ---------------- */
.chapter-cover {
  background: var(--white);
  color: var(--black);
  min-height: 92vh;
  padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}
.chapter-cover .big-num { font-family: var(--font-heading); font-size: clamp(96px, 14vw, 200px); line-height: 1; margin: 0; }
.chapter-cover h2 { font-size: clamp(48px, 7vw, 110px); margin: 0 0 32px; }
.chapter-cover .contents { color: var(--grey-700); font-size: 18px; line-height: 1.8; margin: 0; padding: 0; list-style: none; }
.chapter-cover.is-soon .soon-tag { display: inline-block; align-self: flex-start; margin-top: 24px; border: 1px solid var(--orange); color: var(--orange); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }

.gp {
  background: var(--white);
  padding: 112px var(--gutter);
}
.sub-num { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; color: var(--orange); margin: 0; }
.gp--dark .sub-num { color: var(--orange); }
.mini-label { font-size: 15px; font-weight: 500; color: var(--grey-700); margin: 32px 0 0; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--grey-700); margin: 0 0 12px; }
.eyebrow::after { content: ""; display: block; width: 40px; height: 2px; background: var(--orange); margin-top: 12px; }
.gp h3 { font-size: clamp(40px, 5vw, 72px); margin: 12px 0 40px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); max-width: 760px; }
.lead p { margin: 0 0 1em; }
.note { font-size: 14px; color: var(--grey-500); margin-top: 16px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--grey-50); padding: 28px; }
.card .n { font-size: 14px; font-weight: 500; color: var(--orange); }
.card h4 { font-size: 24px; margin: 12px 0 10px; }
.card p { font-size: 16px; margin: 0; color: var(--grey-700); }

/* Moving as one: dark panel */
.gp--dark { background: var(--black) var(--flare-grid); color: var(--white); }
.gp--dark .eyebrow { color: rgba(255,255,255,0.72); }
.attributes { display: flex; flex-direction: column; gap: 12px; }
.attributes div { border: 1px solid #3a382f; padding: 20px 24px; font-family: var(--font-heading); font-size: 26px; }
.attributes div::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--orange); margin-right: 14px; vertical-align: middle; clip-path: path("M0 0 C3.3 .8 6.7 .8 10 0 C9.2 3.3 9.2 6.7 10 10 C6.7 9.2 3.3 9.2 0 10 C.8 6.7 .8 3.3 0 0 Z"); }

/* Artwork panels */
.panel {
  background: var(--grey-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; min-height: 240px; position: relative;
}
.panel--dark { background: var(--black) var(--flare-grid); color: var(--white); }
.panel__label { position: absolute; top: 16px; left: 20px; font-size: 13px; font-weight: 500; color: var(--grey-700); }
.panel--dark .panel__label { color: rgba(255,255,255,0.72); }
.panel--white { background: var(--white); border: 1px solid var(--grey-200); }
.panel--tall { min-height: 460px; }
.panel--wordmark { min-height: 340px; margin-top: 40px; }
.art { display: block; }
.art--h { width: 78%; max-width: 460px; }
.art--s { height: 128px; width: auto; }
.art--shield { height: 110px; width: auto; }
.art--shield-lg { height: 260px; width: auto; }
.art--wordmark { width: 70%; max-width: 760px; }

.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-grid .wide { grid-column: 1 / -1; }

.clearspace { border: 1px dashed var(--orange); background: #FCEBDD; padding: 32px; }
.clearspace__inner { background: var(--white); padding: 36px; display: flex; justify-content: center; }
.clearspace__inner .art--h { width: 100%; max-width: 420px; }
.min-sizes { display: flex; align-items: center; gap: 32px; margin-top: 16px; }
.logo-grid--versions { margin-top: 40px; }
.logo-grid--versions .panel { min-height: 260px; }

.misuse-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.misuse { background: var(--grey-50); }
.misuse .art-box { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 0 20px; }
.misuse .art-box > img { width: 70%; }
.misuse .art-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--orange) 50%, transparent calc(50% + 1px)); opacity: .9; }
.misuse p { font-size: 14px; margin: 0; padding: 12px 16px 16px; color: var(--grey-700); }
.misuse--stretch .art-box > img { transform: scale(1.25, 0.7); }
.misuse--rotate .art-box > img { transform: rotate(-18deg); }
.misuse--busy .art-box { background: repeating-linear-gradient(45deg, #c9c5b8 0 8px, #8f8b7e 8px 16px); }
.misuse--recolour .art-box > img { filter: hue-rotate(180deg) saturate(1.4); }
.misuse--effects .art-box > img { filter: drop-shadow(5px 6px 4px rgba(0,0,0,.45)); }
.misuse--outline .art-box > img { filter: drop-shadow(1px 0 0 #14130E) drop-shadow(-1px 0 0 #14130E) drop-shadow(0 1px 0 #14130E) drop-shadow(0 -1px 0 #14130E); }
.rearrange { display: flex; align-items: center; gap: 10px; width: 75%; }
.rearrange__wm { width: 76%; }
.rearrange__sh { width: 13%; }
.retype { display: flex; align-items: center; gap: 8px; }
.retype img { height: 34px; width: auto; }
.retype span { font-family: Georgia, serif; font-style: italic; font-size: 30px; }

/* ---------------- Round 2 ---------------- */
/* Welcome flows straight into How to use */
.gp--flow-b { min-height: 0; padding-bottom: 32px; }
.gp--flow-t { padding-top: 32px; }

/* Chapter opener with a full-bleed photograph */
.chapter-cover--hero { color: var(--white); overflow: hidden; background: var(--black); }
.chapter-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; max-width: none; }
.chapter-cover--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,19,14,.88) 0%, rgba(20,19,14,.55) 32%, rgba(20,19,14,0) 60%); }
.chapter-cover--hero > *:not(.chapter-cover__img) { position: relative; z-index: 1; }
.chapter-cover--hero .contents { color: rgba(255,255,255,.82); }

.two-col--mid { align-items: center; }
.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption, .cad figcaption, .chart-demo figcaption { font-size: 13px; color: var(--grey-500); margin-top: 10px; }
.gp--dark figcaption { color: rgba(255,255,255,.6); }

/* CAD drawings */
.cad { margin: 0 0 40px; background: var(--white); border: 1px solid var(--grey-200); padding: 24px; }
.cad svg { width: 100%; height: auto; display: block; overflow: visible; }
.cad--sizes svg { max-width: 440px; }
.cad--flare { max-width: 520px; }

/* Logo on photography */
.logo-grid--versions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-example { position: relative; margin-top: 16px; aspect-ratio: 2 / 1; overflow: hidden; background: #0d1a2b; }
.photo-example__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; max-width: none; }
.photo-example__logo { position: absolute; top: 7%; right: 5%; width: 26%; min-width: 120px; }
.photo-example .panel__label { color: rgba(255,255,255,.8); }

/* Colour */
.core-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.swatch { background: var(--white); border: 1px solid var(--grey-200); }
.gp--dark .swatch { background: #1d1c16; border-color: #3a382f; }
.swatch__chip { height: 120px; position: relative; color: var(--white); }
.swatch__chip.is-light { color: var(--black); }
.swatch__chip span { position: absolute; top: 10px; left: 12px; font-size: 13px; font-weight: 500; }
.swatch--core .swatch__chip { height: 260px; }
.swatch .swatch__chip[style*="#FFFFFF"] { border-bottom: 1px solid var(--grey-200); }
.swatch__info { padding: 12px 14px 14px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.55; color: var(--grey-700); }
.gp--dark .swatch__info { color: rgba(255,255,255,.7); }
.swatch__info strong { font-weight: 500; font-size: 15px; color: var(--black); margin-bottom: 2px; }
.gp--dark .swatch__info strong { color: var(--white); }
.swatch--core .swatch__info strong { font-family: var(--font-heading); font-weight: 400; font-size: 24px; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.swatch-grid .swatch__chip { height: 84px; }
.swatch-grid--pop { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.ribbon { display: flex; height: 36px; margin-top: 32px; }
.ribbon span { flex: 1; }
.balance { display: flex; height: 200px; }
.balance div { position: relative; }
.balance span { position: absolute; bottom: 10px; left: 12px; font-size: 13px; font-weight: 500; }
.mini-label--dark { color: rgba(255,255,255,.7); }
.rules { margin: 0; padding: 0; list-style: none; font-size: 18px; }
.rules li { padding: 14px 0 14px 28px; border-top: 1px solid var(--grey-200); position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 10px; background: var(--orange); clip-path: path("M0 0 C3.3 .8 6.7 .8 10 0 C9.2 3.3 9.2 6.7 10 10 C6.7 9.2 3.3 9.2 0 10 C.8 6.7 .8 3.3 0 0 Z"); }
.chart-demo { margin: 0; background: var(--grey-50); padding: 24px; }
.chart-demo svg { width: 100%; height: auto; }

/* Typography */
.specimen { border-top: 1px solid var(--grey-200); padding-top: 24px; }
.gp--dark .specimen { border-color: #3a382f; }
.specimen__big { font-size: clamp(120px, 14vw, 200px); line-height: 1; margin: 0 0 16px; color: var(--orange); }
.specimen--arizona .specimen__big, .specimen--arizona .specimen__set { font-family: var(--font-heading); }
.specimen--dm .specimen__big { font-family: var(--font-body); font-weight: 400; }
.specimen__set { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; margin: 0 0 24px; }
.specimen__weights { font-size: 18px; margin: 0; }
.specimen__weights span { color: var(--grey-500); }
.dm-weights span { color: inherit; display: inline-block; min-width: 9em; }
.hierarchy { margin-top: 24px; border-top: 1px solid var(--grey-200); }
.hierarchy__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--grey-200); align-items: baseline; }
.hierarchy__tag { font-size: 14px; font-weight: 500; color: var(--grey-700); }
.hierarchy__tag em { font-style: normal; font-weight: 400; color: var(--grey-500); }
.hierarchy p { margin: 0; }
.h-display { font-family: var(--font-heading); font-size: clamp(48px, 6vw, 88px); line-height: 1.02; }
.h-head { font-family: var(--font-heading); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.h-sub { font-weight: 500; font-size: 22px; line-height: 1.3; }
.h-body { font-size: 18px; max-width: 640px; }
.h-cap { font-size: 13px; color: var(--grey-500); }
.emphasis-demo p, .compose__head { font-family: var(--font-heading); font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; margin: 0; }
.emphasis-demo span, .compose__head span { color: var(--orange); }

/* Graphic elements */
.grid-demo { min-height: 360px; background-color: var(--black); border: 1px solid #3a382f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23ffffff' fill-opacity='0.35' d='M17 17 C19 17.5 21 17.5 23 17 C22.5 19 22.5 21 23 23 C21 22.5 19 22.5 17 23 C17.5 21 17.5 19 17 17 Z'/%3E%3C/svg%3E"); }
.compose { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; background: var(--black) var(--flare-grid); color: var(--white); overflow: hidden; padding: 6% 6%; display: flex; flex-direction: column; justify-content: center; }
.compose__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.compose__head { position: relative; max-width: 55%; }
.compose__logo { position: absolute; right: 5%; bottom: 7%; width: 22%; min-width: 110px; }

/* Governance */
.card-grid--stack { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { border-top: 2px solid var(--orange); padding-top: 20px; font-size: 16px; color: rgba(255,255,255,.75); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; color: var(--orange); font-weight: 500; }
.steps li span { display: block; font-family: var(--font-heading); font-size: 28px; color: var(--white); margin: 8px 0 8px; }
.callout { margin: 0; font-family: var(--font-heading); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; border-left: 3px solid var(--orange); padding-left: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; max-width: 820px; font-size: 18px; }
.checklist li { padding: 16px 0 16px 44px; border-top: 1px solid var(--grey-200); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 22px; height: 22px; border: 1.5px solid var(--orange); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 21px; width: 7px; height: 11px; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Resources */
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.res-head .lead p { margin-bottom: 0; }
.btn { display: inline-block; background: var(--orange); color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; padding: 14px 22px; }
.btn:hover { background: #d45800; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.dl { border: 1px solid var(--grey-200); display: flex; flex-direction: column; }
.dl__art { height: 200px; background: var(--grey-50); display: flex; align-items: center; justify-content: center; padding: 32px; }
.dl__art--dark { background: var(--black) var(--flare-grid); }
.dl__art img { max-height: 100%; max-width: 80%; width: auto; }
.dl__body { padding: 18px 20px 20px; }
.dl__body h4 { font-size: 22px; margin: 0 0 4px; }
.dl__body p { font-size: 14px; color: var(--grey-700); margin: 0 0 14px; min-height: 2.9em; }
.dl__links { display: flex; gap: 8px; }
.dl__links a { font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--black); padding: 6px 12px; }
.dl__links a:hover { background: var(--black); color: var(--white); }
.contact-card { border: 1px solid #3a382f; padding: 32px; }
.contact-card__label { font-size: 13px; color: var(--grey-500); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .1em; }
.contact-card__name { font-family: var(--font-heading); font-size: 30px; margin: 0; }

/* Cover */
.cover {
  background: var(--black) var(--flare-grid);
  color: var(--white);
  min-height: 100vh;
  padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cover__brand img { width: 220px; }
.cover h1 { font-size: clamp(64px, 11vw, 168px); margin: 0; }

/* ---------------- Mobile ---------------- */
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site { display: block; }
  .brand-nav {
    position: sticky; top: 0; z-index: 20;
    height: auto; flex: none; width: 100%;
    padding: 14px 16px;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  }
  .brand-nav__logo { margin: 0; }
  .brand-nav__logo img { width: 120px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid #3a382f; color: var(--white);
    font: 500 14px var(--font-body); padding: 8px 14px; cursor: pointer;
  }
  .brand-nav__menu { display: none; width: 100%; max-height: 70vh; overflow-y: auto; padding-top: 20px; }
  .brand-nav.is-open .brand-nav__menu { display: block; }
  .brand-nav__foot { display: none; }
  .toc ul { display: block; }
  :root { --gutter: 16px; }
  .gp { padding: 80px 16px; min-height: 0; }
  .chapter-cover { min-height: 80vh; }
  .two-col, .card-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .misuse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: minmax(0, 1fr); }
  html { scroll-padding-top: 72px; }
  .cover__brand { display: none; }
  .brand-nav__menu { padding-right: 8px; }
  .gp--flow-b { padding-bottom: 24px; }
  .gp--flow-t { padding-top: 24px; }
  .logo-grid--versions, .core-grid, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .swatch-grid, .swatch-grid--pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch--core .swatch__chip { height: 140px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hierarchy__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cad { padding: 14px; }
  .compose { aspect-ratio: 4 / 5; }
  .compose__head { max-width: 100%; }
  .photo-example__logo { width: 40%; }
  .ribbon { height: 24px; }
  .balance { flex-direction: column; height: 300px; }
  .balance span { bottom: auto; top: 6px; }
}
