/* ==========================================================================
   Tradis 2026 — design system
   Palette, type and components from the approved design. Deliberately
   single-theme: this represents the client's site as designed, so there is
   no dark variant.
   ========================================================================== */

:root{
  --forest:#0B2A1E;
  --forest-2:#123A2A;
  --ink:#08150F;

  /* Three brasses, because one cannot do all three jobs.
     --brass       fills and borders, and text on forest (6.2:1 — passes)
     --brass-deep  hover state for filled elements
     --brass-text  text on bone or white (5.3:1 — passes)
     Brass at #C4A052 on bone is 2.2:1, which fails AA badly at the small
     uppercase sizes the eyebrow and arrow links use. */
  --brass:#C4A052;
  --brass-deep:#A8873F;
  --brass-text:#7A5F20;

  --bone:#F2F0E9;
  --white:#FFFFFF;
  --slate:#5E6B63;
  --rule:#DFDCD1;
  --on-forest:rgba(255,255,255,.78);
  --rule-forest:rgba(255,255,255,.14);

  --maxw:1240px;
  --gutter:clamp(1.25rem,4vw,2.5rem);
  --section-y:clamp(3.5rem,8vw,6.5rem);
  --header-h:72px;

  --f-display:"Source Serif 4",Georgia,"Times New Roman",serif;
  --f-body:"Inter","Helvetica Neue",Arial,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

.tradis-page *{box-sizing:border-box}

.tradis-page{
  margin:0;
  background:var(--bone);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .tradis-page *{animation:none!important;transition:none!important}
}

.tradis-page img{max-width:100%;height:auto}

.tradis-page a{color:var(--forest);text-underline-offset:2px}
.tradis-page a:focus-visible,
.tradis-page button:focus-visible,
.tradis-page input:focus-visible,
.tradis-page select:focus-visible,
.tradis-page textarea:focus-visible,
#tradis-main:focus-visible{
  outline:2px solid var(--brass-deep);
  outline-offset:3px;
}

/* Focus must never be invisible on the dark bands. */
.tradis-section--forest a:focus-visible,
.tradis-section--forest button:focus-visible,
.tradis-header a:focus-visible,
.tradis-header button:focus-visible,
.tradis-footer a:focus-visible{
  outline-color:var(--brass);
}

.tradis-shell{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}

.tradis-skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--forest);color:#fff;padding:.75rem 1.25rem;
}
.tradis-skip:focus{left:.5rem;top:.5rem}

/* Anchor clearance for the sticky header. Scoped to the things that are
   actually anchor targets — a blanket [id] rule also hits every form field
   and changes where validation errors scroll to.

   56px, not 24px: anchors sit on the heading, but the section's eyebrow
   label sits above it. At 24px the visitor landed with the label sliced in
   half by the header, which reads as a broken jump rather than an arrival.
   See settleHash() in tradis.js for the other half of this. */
.tradis-page :is(h1,h2,h3,h4,section,article,header,main)[id]{
  scroll-margin-top:calc(var(--header-h) + 56px);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.tradis-page h1,.tradis-page h2,.tradis-page h3,.tradis-page h4{
  font-family:var(--f-display);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.012em;
  text-wrap:balance;
  margin:0 0 .6em;
}

.tradis-page h1{font-size:clamp(2.3rem,6vw,4rem);font-weight:700;letter-spacing:-.02em}
.tradis-page h2{font-size:clamp(1.75rem,3.6vw,2.6rem)}
.tradis-page h3{font-size:clamp(1.15rem,2vw,1.4rem)}
.tradis-page h4{font-size:1.05rem;font-family:var(--f-body);font-weight:600;letter-spacing:0}

.tradis-page p{margin:0 0 1.1em}
.tradis-page p:last-child{margin-bottom:0}

.tradis-eyebrow{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--brass-text);
  margin:0 0 1.1rem;
}
/* On forest the lighter brass has plenty of contrast and reads better. */
.tradis-section--forest .tradis-eyebrow,
.tradis-hero .tradis-eyebrow{color:var(--brass)}

.tradis-lede{
  font-family:var(--f-display);
  font-size:clamp(1.08rem,2.2vw,1.35rem);
  line-height:1.5;
  color:var(--slate);
  max-width:54ch;
}
.tradis-section--forest .tradis-lede{color:var(--on-forest)}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.tradis-btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--f-body);font-size:.92rem;font-weight:600;
  letter-spacing:.01em;
  padding:.85rem 1.6rem;
  border:1px solid transparent;border-radius:2px;
  text-decoration:none;cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}

.tradis-page a.tradis-btn--brass{background:var(--brass);color:var(--ink);border-color:var(--brass)}
.tradis-page a.tradis-btn--brass:hover{background:var(--brass-deep);border-color:var(--brass-deep);color:var(--ink)}

.tradis-page a.tradis-btn--ghost{background:transparent;color:var(--forest);border-color:var(--forest)}
.tradis-page a.tradis-btn--ghost:hover{background:var(--forest);color:var(--bone)}

.tradis-page a.tradis-btn--on-forest{background:transparent;color:var(--bone);border-color:var(--rule-forest)}
.tradis-page a.tradis-btn--on-forest:hover{background:var(--bone);color:var(--forest);border-color:var(--bone)}

/* Arrow link — the three "Invest / Develop / Connect" columns */
.tradis-page a.tradis-arrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--f-body);font-weight:600;font-size:.92rem;
  color:var(--brass-text);text-decoration:none;
}
.tradis-section--forest a.tradis-arrow{color:var(--brass)}
.tradis-page a.tradis-arrow::after{content:"\2192";transition:transform .18s ease}
.tradis-page a.tradis-arrow:hover{text-decoration:underline}
.tradis-page a.tradis-arrow:hover::after{transform:translateX(4px)}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.tradis-header{
  position:sticky;top:0;z-index:100;
  background:var(--forest);
  border-bottom:1px solid var(--rule-forest);
}

/* Admin bar clearance. Core makes #wpadminbar position:absolute below
   600px, so it scrolls away and the header must sit at the very top. */
.admin-bar .tradis-header{top:32px}
@media screen and (max-width:782px){.admin-bar .tradis-header{top:46px}}
@media screen and (max-width:600px){.admin-bar .tradis-header{top:0}}

.tradis-header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  min-height:var(--header-h);
}

.tradis-wordmark{
  font-family:var(--f-display);font-size:1.3rem;font-weight:700;
  color:var(--bone);text-decoration:none;letter-spacing:.01em;
}
.tradis-page a.tradis-wordmark{color:var(--bone)}

.tradis-header__logo{display:flex;align-items:center;flex-shrink:0}
.tradis-header__logo-img{max-height:38px;width:auto;display:block}

/* The brand lockup: brass monogram, then the type. The type inherits its
   size from .tradis-wordmark so the header and the footer can differ. */
.tradis-brand{display:inline-flex;align-items:center;gap:11px}
.tradis-brand__mark{height:30px;width:auto;flex:none}
.tradis-brand__type{display:block;line-height:1;letter-spacing:.02em}
.tradis-brand__type small{
  display:block;margin-top:4px;
  font-family:var(--f-body);font-size:9px;font-weight:500;
  letter-spacing:.28em;text-transform:uppercase;color:var(--brass);
}

/* The nav is a flex row on desktop. Without this the CTA button is a block
   element and stacks under the menu, doubling the header height. */
.tradis-header__nav{
  display:flex;align-items:center;gap:clamp(1rem,2.4vw,2rem);
}

.tradis-nav__list{
  display:flex;align-items:center;gap:clamp(1rem,2.4vw,2rem);
  list-style:none;margin:0;padding:0;
}
.tradis-nav__list a{
  font-size:.9rem;font-weight:500;color:var(--on-forest);
  text-decoration:none;padding-block:.4rem;display:inline-block;
  border-bottom:1px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.tradis-page .tradis-nav__list a:hover,
.tradis-page .tradis-nav__list .current-menu-item > a{
  color:var(--bone);border-bottom-color:var(--brass);
}

/* Sub-menus. depth is unrestricted, so a client-added child item renders
   rather than silently vanishing. */
.tradis-nav__list .sub-menu{
  list-style:none;margin:0;padding:.5rem 0;
  position:absolute;min-width:13rem;
  background:var(--forest-2);border:1px solid var(--rule-forest);
  display:none;z-index:110;
}
.tradis-nav__list li{position:relative}
.tradis-nav__list li:hover > .sub-menu,
.tradis-nav__list li:focus-within > .sub-menu{display:block}
.tradis-nav__list .sub-menu a{padding:.45rem 1rem;width:100%;border-bottom:0}
/* The rightmost item's dropdown would otherwise run off the viewport. */
.tradis-nav__list > li:last-child .sub-menu{right:0}

.tradis-nav-empty{
  color:var(--brass);font-family:var(--f-mono);font-size:.75rem;margin:0;
}

.tradis-header__cta{flex-shrink:0}

.tradis-burger{
  display:none;background:none;border:0;padding:.5rem;cursor:pointer;
  color:var(--bone);
}
.tradis-burger span{
  display:block;width:22px;height:2px;background:currentColor;margin:4px 0;
}

@media (max-width:900px){
  .tradis-burger{display:block;order:3}
  .tradis-header__nav{
    display:none;position:absolute;left:0;right:0;top:100%;
    flex-direction:column;align-items:flex-start;gap:1rem;
    background:var(--forest-2);border-bottom:1px solid var(--rule-forest);
    padding:1rem var(--gutter) 1.5rem;
    /* The panel hangs off a sticky header, so it does not scroll with the
       page. Without these, a long menu on a landscape phone puts its lower
       items permanently out of reach. */
    max-height:calc(100dvh - var(--header-h));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .tradis-header__nav.is-open{display:flex}
  .tradis-nav__list{flex-direction:column;align-items:flex-start;gap:.35rem;width:100%}
  .tradis-nav__list a{display:block;padding-block:.6rem;width:100%}
  .tradis-nav__list .sub-menu{position:static;display:block;border:0;background:transparent;padding:0 0 0 1rem}
  .tradis-header__inner{position:relative}
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.tradis-section{padding-block:var(--section-y)}
.tradis-section--bone{background:var(--bone)}
.tradis-section--white{background:var(--white)}
.tradis-section--forest{background:var(--forest);color:var(--bone)}
.tradis-section--forest h2,
.tradis-section--forest h3,
.tradis-section--forest h4{color:var(--bone)}
.tradis-section--forest p{color:var(--on-forest)}

.tradis-section__head{margin-bottom:clamp(2rem,4vw,3rem);max-width:62ch}

.tradis-titleband h1{color:var(--bone)}

.tradis-cta__body{max-width:46ch}
.tradis-cta__action{margin-top:1.75rem}
.tradis-cta__place{margin:1.75rem 0 0}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.tradis-hero{
  position:relative;
  background:var(--forest);
  color:var(--bone);
  overflow:hidden;
}
.tradis-hero__media{position:absolute;inset:0}
.tradis-hero__media img{width:100%;height:100%;object-fit:cover;display:block}
.tradis-hero__media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(11,42,30,.94) 0%,rgba(11,42,30,.82) 45%,rgba(11,42,30,.55) 100%);
}
.tradis-hero__inner{
  position:relative;
  padding-block:clamp(4rem,11vw,8.5rem);
  max-width:46rem;
}
.tradis-hero h1{color:var(--bone)}
.tradis-hero p{color:var(--on-forest);font-size:clamp(1rem,1.8vw,1.15rem);max-width:44ch}
.tradis-hero__actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2rem}

.tradis-hero__strip{
  position:relative;
  display:flex;flex-wrap:wrap;gap:.6rem 2rem;
  padding-block:1.1rem;
  border-top:1px solid var(--rule-forest);
  font-family:var(--f-mono);font-size:.75rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--on-forest);
}

/* --------------------------------------------------------------------------
   Card grids — businesses, industries, markets
   -------------------------------------------------------------------------- */

.tradis-grid{display:grid;gap:1px;background:var(--rule)}
.tradis-grid--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.tradis-grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}
.tradis-grid--4{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}

/* Explicit column counts.
 *
 * auto-fit is right when the item count is unknown, but the homepage grids
 * have a KNOWN count — six business cards, eight sector tiles — and auto-fit
 * can settle on a column count that does not divide it. Because this grid
 * draws its hairlines with gap:1px over a background, a short final row does
 * not read as whitespace: the background shows through as grey blocks.
 *
 * These counts divide both 6 and 8 at every breakpoint: 3 or 4, then 2, then 1.
 */
.tradis-grid--cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tradis-grid--cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tradis-grid--cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1000px){
  .tradis-grid--cols-3,
  .tradis-grid--cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .tradis-grid--cols-2,
  .tradis-grid--cols-3,
  .tradis-grid--cols-4{grid-template-columns:minmax(0,1fr)}
}

.tradis-card{
  background:var(--white);
  padding:clamp(1.4rem,2.5vw,2rem);
  display:flex;flex-direction:column;gap:.6rem;
  text-decoration:none;color:inherit;
  transition:background-color .18s ease;
}
.tradis-page a.tradis-card{color:inherit}
.tradis-page a.tradis-card:hover{background:#FBFAF6}
.tradis-page a.tradis-card:hover .tradis-card__title{color:var(--brass-text)}

/* .tradis-page qualifier is load-bearing: .tradis-page img sets height:auto,
   which is more specific than a bare class and silently cancelled the
   height here — logos rendered at full size. The slot keeps every card's
   title on the same baseline whatever shape the logo is. */
.tradis-page .tradis-card__logoslot{display:flex;align-items:center;height:44px;margin-bottom:.4rem}
.tradis-page .tradis-card__logo{
  max-height:44px;max-width:150px;height:auto;width:auto;
  object-fit:contain;object-position:left center;margin-bottom:.4rem;
}
.tradis-card__title{font-family:var(--f-display);font-size:1.2rem;font-weight:600;margin:0}
.tradis-card__meta{
  font-family:var(--f-mono);font-size:.7rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--slate);margin:0;
}
.tradis-card p{font-size:.94rem;color:var(--slate);margin:0}

/* Alternating image/text rows stack in DOM order on mobile, so a row that
   reads image-then-text is followed by one that reads text-then-image —
   putting two photographs back to back and stranding a heading away from
   its picture. Below the stacking breakpoint the heading always comes
   first and its image follows it.

   :has() is doing the work; where it is unsupported nothing is reordered
   and the layout is exactly what it was, which is the right failure. */
@media (max-width:781px){
  .tradis-page .wp-block-columns > .wp-block-column:has(figure,img){order:2}
}

.tradis-card--feature{grid-column:span 2}
@media (max-width:760px){.tradis-card--feature{grid-column:span 1}}

/* Insights: archive paging, and the way back from a single post. Kadence's
   stylesheet is still loaded on these URLs, so both are stated explicitly
   rather than left to inherit whatever it decides a link looks like. */
.tradis-page .tradis-pagination{margin-top:2.5rem}
.tradis-page .tradis-pagination .page-numbers{
  font-family:var(--f-mono);font-size:.8rem;letter-spacing:.08em;
  padding:.45rem .7rem;color:var(--slate);text-decoration:none;
}
.tradis-page .tradis-pagination a.page-numbers:hover{color:var(--brass-text)}
.tradis-page .tradis-pagination .page-numbers.current{color:var(--ink);font-weight:600}
/* .tradis-page qualifier needed: .tradis-page p sets the margin shorthand,
   which is more specific than a bare class and zeroes the top. */
.tradis-page .tradis-postnav{margin-top:2.5rem}

/* Photographic tiles — the sector mosaic */
.tradis-tile{
  position:relative;display:block;text-decoration:none;
  aspect-ratio:4/3;max-width:100%;overflow:hidden;background:var(--forest);
}
.tradis-tile img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .4s ease;
}
.tradis-tile:hover img{transform:scale(1.04)}
.tradis-tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(8,21,15,.85) 0%,rgba(8,21,15,.25) 55%,rgba(8,21,15,.05) 100%);
}
.tradis-tile__label{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:1.1rem 1.2rem;
  font-family:var(--f-display);font-size:1.05rem;font-weight:600;
  color:#fff;line-height:1.25;
}

/* --------------------------------------------------------------------------
   Numbered columns — Invest. Develop. Connect.
   -------------------------------------------------------------------------- */

.tradis-steps{
  display:grid;gap:clamp(1.75rem,4vw,3rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
}
.tradis-step__num{
  font-family:var(--f-mono);font-size:.8rem;letter-spacing:.14em;
  color:var(--brass-text);display:block;margin-bottom:.9rem;
  padding-bottom:.9rem;
  /* --rule, not --rule-forest: on a light ground a white 14% rule is
     invisible. The forest variant is applied below where it belongs. */
  border-bottom:1px solid var(--rule);
}
.tradis-section--forest .tradis-step__num{
  color:var(--brass);border-bottom-color:var(--rule-forest);
}
.tradis-step h3{margin-bottom:.5rem}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.tradis-footer{background:var(--ink);color:var(--on-forest);padding-block:clamp(3rem,6vw,4.5rem) 2rem}
.tradis-page .tradis-footer a{color:var(--on-forest);text-decoration:none}
.tradis-page .tradis-footer a:hover{color:var(--bone);text-decoration:underline}

.tradis-footer__top{
  display:grid;gap:2.5rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));
  padding-bottom:2.5rem;border-bottom:1px solid var(--rule-forest);
}
.tradis-footer__brand .tradis-wordmark{font-size:1.15rem}
.tradis-footer__blurb{margin-top:1rem;font-size:.9rem;max-width:30ch}

.tradis-page .tradis-footer__heading{
  font-family:var(--f-mono);font-size:.7rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--brass);margin:0 0 1rem;font-weight:500;
  line-height:1.4;
}

.tradis-footer__list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;font-size:.92rem}
/* Footer menus are unrestricted depth too, so a nested item must not fall
   back to UA defaults — disc bullets and a 40px indent inside a grid. */
.tradis-footer__list .sub-menu{
  list-style:none;margin:.4rem 0 0;padding:0 0 0 .9rem;
  display:grid;gap:.4rem;
  border-left:1px solid var(--rule-forest);
}
.tradis-footer__contact{display:grid;gap:.55rem;font-size:.92rem;font-style:normal}

.tradis-footer__bottom{
  display:flex;flex-wrap:wrap;gap:.75rem 1.75rem;justify-content:space-between;
  padding-top:1.75rem;font-size:.82rem;
}
.tradis-footer__legal{display:flex;flex-wrap:wrap;gap:1.25rem}

/* --------------------------------------------------------------------------
   Editor content
   Copy typed into the page body inherits these, so edits in the block editor
   come out styled without anyone touching a class name.

   The measure is applied to text elements by name, NOT to every child of
   .tradis-content. A blanket `> *` cap crushes any full-width Elementor
   section or wide block to 68ch and cuts its background off mid-page.
   -------------------------------------------------------------------------- */

.tradis-content > :is(p,ul,ol,h2,h3,h4,blockquote,figcaption){max-width:68ch}
.tradis-content ul,.tradis-content ol{padding-left:1.25rem}
.tradis-content li{margin-bottom:.4rem}
.tradis-content blockquote{
  margin:2rem 0;padding-left:1.25rem;
  border-left:2px solid var(--brass);
  font-family:var(--f-display);font-size:1.15rem;color:var(--forest);
}

/* Content links must be distinguishable by more than colour. Kadence's
   reset removes link underlines, and --forest on --ink is 1.2:1 — the same
   near-black green to the eye. Declared here rather than inherited. */
.tradis-content a:not(.tradis-btn):not(.tradis-card){
  text-decoration:underline;
  text-decoration-thickness:1px;
  color:var(--brass-text);
}

/* alignwide/alignfull stop at the shell rather than breaking out to 100vw.
   The viewport-width trick needs a page-level overflow clip to stop the
   scrollbar causing a horizontal scroll, and a page-level clip means a wide
   table can never be scrolled to — a reflow failure and silent data loss.
   Full-bleed bands belong to the canvas template's own sections. */
.tradis-content > :is(.alignwide,.alignfull){max-width:none;width:100%}

/* Wide content that genuinely cannot reflow scrolls in its own container. */
.tradis-content :is(table,.wp-block-table,pre){display:block;overflow-x:auto;max-width:100%}

.tradis-content > *:last-child{margin-bottom:0}

/* --------------------------------------------------------------------------
   Full-canvas template
   The homepage is built entirely from blocks, with no .tradis-shell wrapper,
   so that its sections can run edge to edge. Stray top-level text would
   otherwise sit flush against the viewport with no gutter at all — these
   rules give it a sane measure without constraining sections or groups.
   -------------------------------------------------------------------------- */

.tradis-canvas > :is(p,h1,h2,h3,h4,ul,ol,blockquote,figure){
  max-width:min(68ch,var(--maxw));
  margin-inline:auto;
  padding-inline:var(--gutter);
}
