/* ==========================================================================
   KALTECH — Global Mill Relining Experts
   Faithful rebuild of kaltechglobal.net (Avada theme)
   Palette: charcoal #29292a · panels #3e3e3e · gold accent #c0954e
   Fonts:   Lato (display headings, light 300) · PT Sans (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces (dark) */
  --bg:       #29292a;   /* page background */
  --panel:    #3e3e3e;   /* content boxes */
  --panel-2:  #363638;   /* alt box */
  --panel-3:  #212122;   /* darkest band / header / footer */
  --line:     #505152;   /* box borders on dark */
  --line-2:   #4a4a4c;

  /* Gold accent */
  --gold:       #c0954e;
  --gold-soft:  #cda968;
  --gold-dim:   #8c7038;

  /* Text */
  --text:    #d6d6d6;   /* body copy on dark */
  --text-dim:#9e9e9e;   /* muted */
  --white:   #ffffff;
  --heading: #f3f3f3;

  /* Type — the original's display text is thin Lato; PT Sans for body */
  --font-display: "Antic Slab", Georgia, serif;   /* live Avada heading font */   /* big headings + hero (light 300) */
  --font-head: "Antic Slab", Georgia, serif;       /* numbers / names / labels (400) */
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 2rem);
  --radius: 3px;
  --header-h: 84px;   /* slim Latam-style banner — nav sits higher on the page */
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --t: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 17px; /* customer: larger type site-wide */ }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }   /* wrapper is layout-transparent so <img> styles still apply */
/* Chrome gives <source> display:block — inside a display:contents <picture>
   each <source> becomes an EMPTY grid/flex item, silently shoving the real
   <img> into the wrong cell. This one line is what "photos not side by side"
   was on the review. */
source { display: none; }
a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-soft); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- Typography ----------
   Original: large display headings are thin Lato Light (sans); body is PT Sans. */
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.2; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.3; }
h3, h4, h5 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(1.9rem, 2.7vw, 2.35rem); }
h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: #eaeaea; }
.lead { font-size: 1.18rem; color: #c8c8c8; font-weight: 400; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container-wide { max-width: 1340px; }
.container-narrow { max-width: 880px; }
.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.section--mist { background: var(--panel-2); }
.section--ink { background: var(--panel-3); }
.section--brand { background: var(--panel-3); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.items-center { align-items: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Section heading block */
.section-head { max-width: 780px; margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .2em; font-weight: 700;
  font-size: .74rem; color: var(--gold); display: inline-block; margin-bottom: .7rem;
}
.section-head h2 { margin-bottom: .55rem; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

/* gold underline accent under a heading (mimics the theme's separators) */
.rule-gold { height: 2px; width: 60px; background: var(--gold); border: 0; margin: 1rem 0 0; }
.center .rule-gold { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  padding: .85rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all var(--t); line-height: 1;
}
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: #20180a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); color: #20180a; }
.btn-amber { background: var(--gold); color: #20180a; border-color: var(--gold); }
.btn-amber:hover { background: var(--gold-soft); color: #20180a; }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #20180a; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.15); }
.btn-ghost:hover { background: #fff; color: #20180a; border-color: #fff; }
.btn-gray { background: #565658; color: #fff; border-color: #6a6a6c; }
.btn-gray:hover { background: #656567; color: #fff; }
.btn-lg { padding: 1rem 2.1rem; font-size: .9rem; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   HEADER — transparent over the hero, solid on scroll
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* Latam-style banner, in grey to match the theme (Sept review, Home item 1) */
  background: #2d2d2d; border-bottom: 1px solid #3e3e3e; }
body { padding-top: var(--header-h); }
.topbar { display: none; }   /* original has no top utility bar */

.navbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; flex: none; }   /* never let the nav squeeze the logo */
/* Corrected logo: white knockout art for the dark banner, no box. */
.brand img { height: 46px; width: auto; max-width: none; flex: none; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: #fff; width: 46px; height: 46px; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* Primary nav */
.primary-nav > ul { list-style: none; display: flex; align-items: stretch; gap: 1.45rem; padding: 0; margin: 0; }
.primary-nav li { position: relative; }
.navbar .container { max-width: min(94%, 1400px); }
.primary-nav { margin-right: auto; margin-left: 1.6rem; }   /* nav beside the logo; CTA pushed right */
.header-cta { flex: none; }
.primary-nav > ul > li > a { display: flex; align-items: center; gap: .3rem; height: var(--header-h);
  font-family: var(--font-head); font-size: 15px; color: #fff; white-space: nowrap;
  border-top: 3px solid transparent; transition: color var(--t), border-color var(--t); }
.primary-nav > ul > li > a .caret { display: none; }   /* live shows no dropdown arrows */
/* gold active/hover indicator line, like the original */
/* live nav has no underline element — grey text + 3px top border only */
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.has-children:hover > a { color: #9e9e9e; }
.primary-nav > ul > li.current > a { color: #9e9e9e; border-top-color: #9e9e9e; }
.primary-nav .caret { width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }

/* Dropdowns */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--panel-3); border: 1px solid var(--line-2); border-top: 2px solid var(--gold);
  box-shadow: var(--shadow); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 110;
}
.primary-nav li.has-children:hover > .dropdown,
.primary-nav li.has-children:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: .55rem .8rem; font-size: .85rem; color: #cfcfcf; font-weight: 400; text-transform: none; letter-spacing: 0; }
.dropdown li a:hover { background: #2d2d2e; color: var(--gold); }
.dropdown .group-label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: var(--gold-dim); padding: .6rem .8rem .25rem; }

.header-cta { display: inline-flex; }

/* ==========================================================================
   HERO (home) — full image, centered thin heading
   ========================================================================== */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: clamp(460px, 64vh, 600px);
  display: flex; align-items: center; text-align: center;
  /* no top padding: the slider image must reach y=0 so the transparent
     header floats over the photo, exactly as on the live site */
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.16), rgba(20,20,22,.10) 45%, rgba(25,25,27,.55)); }
.hero .container { padding-block: clamp(2rem, 6vw, 4rem); }
.hero__inner { max-width: 960px; margin-inline: auto; }
.hero h1 { color: #fff; font-family: "Lato", sans-serif; font-weight: 300; font-size: clamp(1.9rem, 4.3vw, 3.15rem); letter-spacing: .03em; text-shadow: 0 2px 16px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.6); margin-bottom: 1rem; }
.hero__sub { font-size: 1.2rem; color: #ececec; max-width: 60ch; margin: 0 auto 1.8rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-bottom: 1.6rem; }
.hero__pillars span { font-family: var(--font-head); letter-spacing: .04em; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }
.hero__pillars span::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* Slogan ribbon */
.ribbon { background: var(--panel-3); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: center; }
.ribbon .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.8rem; padding-block: 1rem; }
.ribbon p { font-family: var(--font-head); letter-spacing: .04em; font-size: 1.15rem; margin: 0; color: var(--heading); }
.ribbon .sep { color: var(--gold); }

/* Statement bar (home: bordered box + button) */
.statement p { font-size: 1.1rem; color: var(--heading); margin: 0; font-family: var(--font-body); }

/* Gold section-header bar (mimics the theme's "EFFICIENCY=..." headers) */
.barhead { border-left: 3px solid var(--gold); padding: .3rem 0 .3rem 1rem; margin: 2rem 0 1rem; }
.barhead h2, .barhead h3 { margin: 0; }

/* ==========================================================================
   BOXES / CARDS
   ========================================================================== */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--t), transform var(--t);
  display: flex; flex-direction: column; height: 100%; color: var(--text);
}
.card:hover { border-color: var(--gold); }
a.card:hover { transform: translateY(-3px); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: #2c2c2d; border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .45rem; color: var(--heading); }
.card__body p { color: var(--text-dim); font-size: .95rem; }
.card__link { margin-top: auto; padding-top: 1rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; display: inline-flex; gap: .4rem; }

/* simple centred box (Safely / Efficiently / On Time) */
.box { background: #3e3e3e; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.box.center { text-align: center; }
.box h3 { color: var(--heading); }

/* mill-type tiles (About): gold round icon + centred label */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; }
.tile .ico { width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 50%; background: rgba(192,149,78,.12); border: 1px solid var(--gold-dim); color: var(--gold); display: grid; place-items: center; }
.tile .ico svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.1rem; margin: 0; }

/* image rows / photo strips used on several pages */
.img-row { display: grid; gap: .8rem; }
.img-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
.img-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.img-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-row img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line-2); aspect-ratio: 4/3; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr 1fr; } .img-row.cols-5, .img-row.cols-3 { grid-template-columns: 1fr 1fr; } .img-row.cols-2 { grid-template-columns: 1fr; } }

/* Mill / service chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { background: var(--panel); color: #e2e2e2; border: 1px solid var(--line); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; padding: .5rem 1rem; border-radius: 999px; }

/* Feature (icon) blocks */
.feature .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(192,149,78,.12); color: var(--gold); margin-bottom: 1rem; border: 1px solid var(--gold-dim); }
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .45rem; font-size: 1.2rem; color: var(--heading); }
.feature p { color: var(--text-dim); }

/* Numbered list */
.numbered { list-style: none; padding: 0; display: grid; gap: 1rem; }
.numbered li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.numbered .num { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #20180a; }
.numbered h3 { margin-bottom: .35rem; color: var(--heading); }
.numbered p { color: var(--text-dim); margin: 0; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat .label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--text-dim); margin-top: .5rem; }

/* ==========================================================================
   TESTIMONIALS — static three-column boxes
   ========================================================================== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
/* Live-style testimonials: light grey speech bubble with a pointer, the
   citation sitting outside beneath it. */
.tslide { display: flex; flex-direction: column; }
.tslide blockquote {
  position: relative; background: #949494; color: #fff; border-radius: 3px;
  font-size: .92rem; font-style: italic; border: 0; padding: 1.3rem 1.4rem; margin: 0 0 1.5rem; flex: 1;
}
.tslide blockquote p { margin: 0 0 .75em; }
.tslide blockquote p:last-child { margin-bottom: 0; }
.tslide blockquote::after {
  content: ""; position: absolute; top: 100%; left: 2rem;
  border: 11px solid transparent; border-top-color: #949494; border-left-color: #949494;
}
.tslide .cite { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding-top: 0; }
.tslide .cite .ico { width: 34px; height: 34px; border-radius: 50%; background: #2c2c2d; border: 1px solid var(--gold-dim); display: grid; place-items: center; color: var(--gold); flex: none; }
.tslide .cite .ico svg { width: 18px; height: 18px; }
.tslide .cite .name { font-family: var(--font-body); font-weight: 700; color: var(--heading); font-size: .82rem; line-height: 1.3; }
.tslide .cite .org { color: var(--text-dim); font-size: .78rem; }
.tdots { display: none; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* Members mirror the live site: an uncropped portrait photo (capped so the
   wider 2-up columns don't balloon it), then name/role/bio — no card chrome. */
.member { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.member__photo { aspect-ratio: 3/4; max-width: 340px; background: #2c2c2d; display: grid; place-items: center; color: #5a5a5c; overflow: hidden; border: 1px solid var(--line-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__photo svg { width: 60px; height: 60px; opacity: .6; }
.member__body { padding: 1.1rem 0 0; }
.member__body .name { font-family: var(--font-head); font-size: 1.45rem; color: var(--heading); }
.member__body .role { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin-bottom: .6rem; }
.member__body p { color: var(--text-dim); font-size: .97rem; margin: 0 0 .6rem; }
.member__body p:last-child { margin-bottom: 0; }
/* Team layout variants to mirror the live site: 4 people = 2×2, 5 people = 2-then-3 */
.team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.layout-2-3 { grid-template-columns: repeat(6, 1fr); }
.team-grid.layout-2-3 > .member:nth-child(-n+2) { grid-column: span 3; }
.team-grid.layout-2-3 > .member:nth-child(n+3) { grid-column: span 2; }
/* US head office: top pair sized down and centred in their halves (Sept 27 review) */
.team-grid.layout-2-3 > .member:nth-child(-n+2) { width: 100%; max-width: 380px; justify-self: center; }
/* Arizona: chief on top, centred, his text in a column under the photo; three below */
.team-grid.layout-1-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid.layout-1-3 > .member:first-child { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; text-align: center; }
.team-grid.layout-1-3 > .member:first-child .member__photo { max-width: 380px; margin-inline: auto; }
@media (max-width: 820px) {
  .team-grid.layout-2-3, .team-grid.layout-1-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid.layout-2-3 > .member { grid-column: auto; justify-self: start; }
}
@media (max-width: 520px) {
  .team-grid.cols-2, .team-grid.layout-2-3, .team-grid.layout-1-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   OFFICES
   ========================================================================== */
.office-region { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-size: .85rem; font-weight: 700; margin: 2rem 0 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.office { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.office h3 { font-size: 1.1rem; margin-bottom: .15rem; color: var(--heading); }
.office .loc { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; color: var(--gold); margin-bottom: .55rem; }
.office address { font-style: normal; color: var(--text-dim); font-size: .9rem; line-height: 1.6; }
.office address a { color: inherit; }
.office .ph { display: block; margin-top: .45rem; color: var(--white); font-weight: 700; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { display: grid; gap: 1.05rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field label { display: block; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; color: var(--text); margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 1rem; background: #2c2c2d; color: #eee; transition: border-color var(--t); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a7a7c; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--text-dim); }

/* CTA panel */
.cta-panel { border: 2px solid var(--gold); background: var(--panel-3); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.cta-panel h2 { color: var(--white); margin-bottom: .6rem; }
.cta-panel p { color: var(--text); max-width: 60ch; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Responsive video */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Employment big buttons */
.bigbtn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.bigbtn { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: border-color var(--t), transform var(--t); }
.bigbtn:hover { border-color: var(--gold); transform: translateY(-3px); }
.bigbtn .flag { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--gold); }
.bigbtn .t { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); }
.bigbtn .go { margin-top: .4rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }

.pill-note { display: inline-block; background: rgba(192,149,78,.14); color: var(--gold-soft); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding: .3rem .75rem; border-radius: 999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #2d2d2d; border-top: 12px solid #403f3f; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-2); }
.site-footer .f-logo { height: 56px; width: auto; background: #fff; padding: 6px 10px; display: inline-block; margin-bottom: 1.1rem; }
.site-footer .f-about { font-size: .92rem; max-width: 44ch; }
.f-pillars { font-family: var(--font-head); letter-spacing: .05em; color: #cfcfcf; font-size: 1rem; margin-top: .8rem; }
.f-pillars b { color: var(--gold); font-weight: 400; }
.f-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
.f-quick h4 { grid-column: 1/-1; color: var(--white); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .3rem; }
.f-quick a { color: var(--text-dim); font-size: .9rem; }
.f-quick a:hover { color: var(--gold); }

/* footer office directory */
/* Match the public site's Asia / Latin America / Canada / U.S. columns. */
.site-footer .container { max-width: min(94%, 1400px); }
.footer-offices { padding: 2.2rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-region-block { min-width: 0; }
.footer-offices .reg { font-family: var(--font-body); font-weight: 400; text-transform: uppercase; color: #cfcfcf; font-size: .75rem; margin: 0 0 1.8rem; }
.footer-region-block .foff-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.footer-country, .foff.foff-country .lc { display: block; color: #b8b8b8; font-size: .75rem; text-transform: uppercase; margin: 0 0 1rem; }
.foff { font-size: .75rem; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.foff .nm { color: var(--white); font-weight: 400; font-size: .9rem; display: block; margin-bottom: .2rem; }
.foff .lc { display: block; color: var(--white); font-size: .85rem; }
.foff .nm + .lc { margin-top: .85rem; }
.foff-country + .foff-country { border-top: 1px solid #666; padding-top: 1.25rem; }
.footer-country + .foff-grid .foff-country { border-top: 1px solid #666; padding-top: 1.25rem; }
.footer-country + .foff-grid .foff-country .lc { text-transform: none; color: var(--white); font-size: .9rem; }
.foff address { font-style: normal; color: var(--text-dim); }
.foff a { color: var(--text-dim); }
.foff a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid #4b4c4d; padding-block: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: #7e7e80; }
.footer-bottom a { color: var(--text-dim); }
.social { display: flex; gap: .7rem; }
.social a { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; color: #cfcfcf; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #20180a; }
.social svg { width: 17px; height: 17px; }

/* ==========================================================================
   UTIL
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #20180a; padding: .7rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* Content wrap on the darker area; the fixed banner offset lives on <body>. */
main { background: #242424; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .foff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; }
}

/* Narrower desktop windows: tighten the nav so it stays on one line beside the full logo. */
@media (max-width: 1240px) and (min-width: 961px) {
  .primary-nav { margin-left: 1rem; }
  .primary-nav > ul { gap: 1rem; }
  .primary-nav > ul > li > a { font-size: 14px; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .brand img { height: 40px; }
  .primary-nav { margin-left: .8rem; }
  .primary-nav > ul { gap: .75rem; }
  .primary-nav > ul > li > a { font-size: 13px; }
  .header-cta { padding: .45rem .8rem; font-size: .75rem; }
}

/* Keep in step with the matchMedia query in js/main.js. */
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  /* Phones: the logo scales down (keeping its proportions) so the menu
     button and Contact button always keep their full size on screen. */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img { height: auto; width: auto; max-width: 100%; max-height: 46px; min-width: 0; }
  .nav-toggle, .header-cta { flex: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-cta { padding: .4rem .8rem; min-height: 38px; font-size: .8rem; }
  .site-header { background: var(--panel-3); }   /* solid on mobile for legibility */

  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--panel-3);
    padding: 1rem var(--gut) 3rem; overflow-y: auto; transform: translateX(100%);
    transition: transform var(--t); visibility: hidden;
  }
  body.nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav > ul > li > a { height: auto; padding: .9rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
  .primary-nav .caret { margin-left: auto; }
  .primary-nav > ul > li > a .caret { display: block; }   /* mobile accordion keeps them */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-top: 0; background: transparent; padding: 0 0 .6rem .4rem; max-height: 0; overflow: hidden; transition: max-height var(--t); }
  .primary-nav li.has-children.open > .dropdown { max-height: 1400px; }
  .primary-nav li.has-children:hover > .dropdown { opacity: 1; }
  .dropdown li a { padding: .5rem .4rem; }
  .primary-nav li.has-children.open > a .caret { transform: rotate(-135deg); }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .foff-grid { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .bigbtn-grid { grid-template-columns: 1fr; }
  .statement { flex-direction: column; align-items: flex-start; text-align: left; }
  .page-hero .container { align-items: flex-start; }
}

@media (max-width: 520px) {
  .team-grid, .foff-grid, .footer-offices { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Live page-top titles: Antic Slab with a thin yellow rule beneath;
   in-body section titles use the subtle grey variant. */
.title-line { padding-bottom: .55rem; border-bottom: 1px solid var(--gold); margin-bottom: 1.3rem; }
.title-line--dim { border-bottom-color: #3e3e3e; }

/* The home statement sits on its own grey band, the box outlined in yellow (live). */
.statement-band { background: #383838; }
.statement { border: 1px solid var(--gold); background: transparent;
  padding: 1.4rem 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* Live relining page: warm grey content band with dark tile titles. */
.section--warm { background: #5f5a58; }
.section--warm .tile h3 { color: #262626; }
.tile { text-align: center; }
.tile .ico { width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 50%;
  background: #3e3e3e; border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; }

/* ==========================================================================
   HERO SLIDER (home) — the live site's rotating fusion slider, dependency-free
   ========================================================================== */
.hero-slider { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hero-slide.is-active { position: relative; inset: auto; width: 100%; opacity: 1; visibility: visible; transition: opacity .8s ease;
  /* the active slide must fill the hero band, not shrink to its caption */
  min-height: clamp(460px, 64vh, 600px); }
.hero-slide .container { width: 100%; }
.hero-slide .hero__inner h1 { background: rgba(30,30,32,.42); display: inline-block; padding: .35em .8em; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(30,30,32,.45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background var(--t), border-color var(--t); }
.hero-nav:hover { background: var(--gold); border-color: var(--gold); color: #221c10; }
.hero-nav.prev { left: clamp(.5rem, 2vw, 1.5rem); }
.hero-nav.next { right: clamp(.5rem, 2vw, 1.5rem); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 3;
  display: flex; justify-content: center; gap: .55rem; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #d8d8d8;
  background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--gold); border-color: var(--gold); }
@media (max-width: 640px) { .hero-nav { display: none; } }

/* ==========================================================================
   FLIP BOXES — the live site's Avada "flippers"
   ========================================================================== */
.flips { display: grid; gap: 1.3rem; }
.flips.grid-3 { grid-template-columns: repeat(3, 1fr); }
.flips.grid-2 { grid-template-columns: repeat(2, 1fr); }
.flip { perspective: 1100px; cursor: pointer; }
.flip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.flip__inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .5s ease; }
.flip:hover .flip__inner, .flip.is-flipped .flip__inner, .flip:focus-visible .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem 1.4rem; min-height: 108px; }
.flip__front { background: #3e3e3e; border: 1px solid var(--line); }
.flip__front h3 { color: #fff; margin: 0; font-weight: 300; font-size: 1.3rem; }
.flip__front .sub { color: #aaa9a9; font-size: .85rem; margin: .45rem 0 0; }
.flip__front .ico { width: 54px; height: 54px; margin-bottom: .9rem; border-radius: 50%;
  background: #3e3e3e; border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; }
.flip__front .ico svg { width: 26px; height: 26px; animation: kt-spin 9s linear infinite; }
@keyframes kt-spin { to { transform: rotate(360deg); } }
.flip__back { background: #9e9e9e; color: #2c2c2d; transform: rotateY(180deg); }
.flip__back h4 { color: #111; margin: 0 0 .6rem; font-weight: 400; font-size: 1.15rem; }
.flip__back p { font-size: .88rem; margin: 0 0 .65em; color: #2c2c2d; }
.flip__back p:last-child { margin-bottom: 0; }
/* Home flippers: backside descriptions in all caps (Sept review) */
.flips--caps .flip__back h4 { text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 820px) { .flips.grid-3, .flips.grid-2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   IMAGE CAROUSEL (services, sentinel) — the live fusion image carousel
   ========================================================================== */
.carousel { position: relative; }
.carousel__track { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: .4rem; }
/* Size the imgs themselves: after wrap_webp() the <picture> wrappers are
   display:contents, so the imgs are the real flex items. */
.carousel__track img { flex: 0 0 calc((100% - 3.2rem) / 5); width: calc((100% - 3.2rem) / 5);
  scroll-snap-align: start; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line-2); }
.carousel--contain .carousel__track img { object-fit: contain; background: #fff; padding: .5rem; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(30,30,32,.85); color: var(--gold); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; }
.carousel__btn:hover { background: var(--gold); color: #221c10; border-color: var(--gold); }
.carousel__btn.prev { left: -12px; }
.carousel__btn.next { right: -12px; }
@media (max-width: 820px) { .carousel__track img { flex-basis: calc((100% - 1.6rem) / 3); width: calc((100% - 1.6rem) / 3); } }
@media (max-width: 520px) { .carousel__track img { flex-basis: calc((100% - .8rem) / 2); width: calc((100% - .8rem) / 2); } }

/* About: the live page's two modest photos, side by side at every width */
.img-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: clamp(.8rem, 2.5vw, 1.6rem); justify-content: center; }
.img-duo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line-2); }

/* Split with a modest media column (live consulting/relining layout) */
/* Split layouts (photo beside text). The base block was accidentally deleted
   along with the old page-title band — its loss is why photos stopped
   embedding beside text on the product/relining/consulting pages. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.split.reverse .split__media { order: 2; }
.split__media img { border: 1px solid var(--line-2); width: 100%; object-fit: cover; }
.split__media.contain img { border: 0; }
.split__body h2 { margin-bottom: 1rem; }
@media (max-width: 820px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split__media { order: 0; } }

.split.media-sm { grid-template-columns: minmax(220px, 320px) 1fr; align-items: start; }
@media (max-width: 820px) { .split.media-sm { grid-template-columns: 1fr; } .split.media-sm .split__media { max-width: 320px; } }

/* Why Kaltech: divided columns with an icon above each pillar (Sept review) */
.grid-3.divided > * + * { border-left: 1px solid #3e3e3e; padding-left: clamp(1rem, 2.5vw, 1.8rem); }
@media (max-width: 820px) {
  .grid-3.divided > * + * { border-left: 0; border-top: 1px solid #3e3e3e; padding-left: 0; padding-top: 1.4rem; }
}
.pillar-ico { width: 54px; height: 54px; margin-bottom: .9rem; border-radius: 50%;
  background: #3e3e3e; border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; }

/* Training: rules that break up the long read (Sept review: "add white lines") */
.prose hr { border: 0; border-top: 1px solid #55555a; margin: 1.8rem 0; }

/* Employment: banner photo with the two big application buttons */
.banner-photo { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.banner-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border: 1px solid var(--line-2); }
.employment-column { min-width: 0; }
.employment-notice { margin-top: 1.2rem; overflow-wrap: anywhere; }
.report-actions { margin-block: 1.5rem; }
.report-preview { display: block; width: 100%; height: 75vh; min-height: 26rem; margin-bottom: 1.5rem; border: 1px solid var(--line); background: var(--panel-3); }
.report-preview > p { padding: 1rem; }

/* Click-to-play video facade (In Action).
   The poster fills the same 16/9 .video-embed box the iframe will occupy, so
   nothing shifts when the real player is swapped in on click. */
.video-facade__link { position: absolute; inset: 0; display: block; cursor: pointer; }
.video-facade__link img { width: 100%; height: 100%; object-fit: cover; }
.video-facade__link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.video-facade__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; display: grid; place-items: center;
  width: clamp(62px, 9vw, 88px); aspect-ratio: 1;
  border: 2px solid var(--gold); border-radius: 50%;
  background: rgba(41,41,42,.62); color: var(--gold);
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.video-facade__play svg { width: 46%; height: 46%; margin-left: 8%; }
.video-facade__link:hover .video-facade__play,
.video-facade__link:focus-visible .video-facade__play {
  background: var(--gold); color: #221c10; transform: translate(-50%, -50%) scale(1.07);
}
.video-facade__cap {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 1.5rem clamp(1rem, 3vw, 1.8rem) clamp(.9rem, 2.5vw, 1.3rem);
  display: flex; flex-direction: column; gap: .15rem;
  font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--gold);
}
.video-facade__cap em {
  font-style: normal; font-weight: 400; text-transform: none;
  letter-spacing: .01em; font-size: .95rem; color: #fff;
}
.video-facade__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Once the real player is in, the facade is gone for good. */
.video-embed.is-playing .video-facade__link { display: none; }

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