/* SUPPLY.training — homepage styles ("depo tabelası" direction).
   Scoped to body.home so no other page changes. Tokens come from the logistics world:
   container green, pallet-board grey, label white, ADR orange, stencil ink. */

@font-face{font-family:"Barlow Condensed";font-weight:700;font-style:normal;font-display:swap;
  src:url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}

body.home{
  --green:#14403A; --green-deep:#0E2F2B; --green-ink:#1D5A50;
  --ground:#EEF0EA; --label:#FFFFFF; --ink:#1C2626; --signal:#F5802B;
  --rule:#C5CBC2; --muted:#4F5C58;
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  margin:0; background:var(--ground); color:var(--ink); font:400 16px/1.55 var(--body);
}
body.home *,body.home *::before,body.home *::after{box-sizing:border-box}
body.home ::selection{background:var(--signal);color:var(--ink)}
body.home :is(a,button,input):focus-visible{outline:3px solid var(--signal);outline-offset:2px}

/* shared header / footer, recoloured for the homepage only */
body.home .sx-bar{max-width:1120px;padding:0 24px}
body.home a.sx-logo{font:700 30px/1 var(--display);letter-spacing:.2px;color:var(--green)}
body.home a.sx-logo span{color:var(--signal)}
body.home nav.sx-nav a:hover{color:var(--green-ink)}
body.home nav.sx-nav a[aria-current="page"]{color:var(--green-ink);box-shadow:inset 0 -2px 0 var(--signal)}
body.home footer.sx-footer{background:var(--green-deep);padding-left:24px;padding-right:24px}
body.home .sx-foot,body.home .sx-legal{max-width:1072px}

.h-wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* hero: the working form is the hero */
.h-hero{background:var(--green);color:#fff}
.h-hero .h-wrap{padding-top:64px;padding-bottom:44px}
.h-hero h1{margin:0 0 18px;font:700 clamp(52px,7.4vw,96px)/.95 var(--display);letter-spacing:-.01em;text-wrap:balance}
.h-h1-sub{display:block;margin-top:12px;font-size:clamp(26px,3.2vw,40px);line-height:1.1;letter-spacing:.005em;color:#A9CBC2}
.h-lead{margin:0 0 34px;max-width:56ch;text-wrap:pretty;font-size:18.5px;line-height:1.55;color:#D5E3DE}

/* the three tools: equal rows, stacked */
.h-tools{margin:0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.35)}
.h-tools li{border-bottom:1px solid rgba(255,255,255,.35)}
.h-tools a{display:grid;grid-template-columns:52px minmax(0,1.15fr) minmax(0,1fr) 132px;gap:6px 28px;align-items:center;
  margin:0 -16px;padding:22px 16px;color:#fff;text-decoration:none;transition:background-color .18s,color .18s}
.h-tools a:hover{background:var(--label);color:var(--ink)}
.h-ico{width:48px;height:48px;color:var(--signal);grid-row:span 1}
.h-tools .t{font:700 clamp(30px,3.4vw,42px)/1 var(--display)}
.h-tools .d{font-size:15.5px;line-height:1.5;color:#D5E3DE;transition:color .18s}
.h-tools a:hover .d{color:var(--muted)}
.h-tools .go{justify-self:end;font-weight:600;font-size:15px;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.h-tools a:hover .go{color:var(--green-ink)}
.h-tools a:focus-visible{outline-offset:-3px}

.h-under{margin:14px 0 0;font-size:14.5px;color:#E3EEEA}

/* the one authored moment: a live problem search, with example questions typed into the box */
.h-ask{margin:0 0 30px;max-width:760px}
.h-ask label{display:block;margin:0 0 8px;font:600 15px/1.3 var(--body);color:#E3EEEA}
.h-askbox{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 18px;background:var(--label);border-radius:6px;
  box-shadow:inset 0 0 0 2px transparent;transition:box-shadow .15s}
.h-askbox:focus-within{box-shadow:inset 0 0 0 3px var(--signal)}
.h-askbox input:focus-visible{outline:0}
.h-askbox svg{width:22px;height:22px;flex:none;color:var(--green-ink)}
.h-askbox input{flex:1;min-width:0;height:56px;border:0;outline:0;background:transparent;color:var(--ink);font:400 17px/1.2 var(--body)}
.h-askbox input::placeholder{color:#5D6A66}
.h-hits{margin-top:8px;background:var(--label);border-radius:6px;color:var(--ink)}
.h-hits:empty{display:none}
.h-hits a{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:13px 18px;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--rule)}
.h-hits a:last-child{border-bottom:0}
.h-hits a:hover,.h-hits a:focus-visible{background:var(--ground);outline:none}
.h-hits a:focus-visible{box-shadow:inset 0 0 0 3px var(--signal)}
.h-hits strong{font-weight:600}
.h-hits span{flex:none;font-size:13.5px;color:var(--muted)}
.h-hits p{margin:0;padding:14px 18px;color:var(--muted);font-size:15px}
.h-hits p a{display:inline;padding:0;border:0;color:var(--green-ink);font-weight:600;text-decoration:underline}

/* sections */
.h-sec{padding:56px 0 8px}
.h-sec:last-of-type{padding-bottom:72px}
.h-sec h2{margin:0 0 8px;font:700 44px/1.05 var(--display);text-wrap:balance}
.h-intro{margin:0 0 22px;color:var(--muted);max-width:62ch;text-wrap:pretty}

.h-rows{border-top:3px solid var(--ink);margin:0;padding:0;list-style:none}
.h-rows li{border-bottom:1px solid var(--rule)}
.h-rows a{color:var(--ink);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 140px;gap:6px 32px;align-items:baseline;
  margin:0 -12px;padding:20px 12px;text-decoration:none;transition:background-color .15s}
.h-rows a:hover{background:var(--label)}
.h-rows .q{font:700 32px/1.08 var(--display);text-wrap:balance}
.h-rows .d{color:var(--muted);font-size:15.5px}
.h-rows .m{justify-self:end;text-align:right;font-size:14px;font-weight:600;color:var(--green-ink)}
.h-topics{margin:22px 0 0;font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.h-topics a{display:inline-block;margin:0 18px 6px 0;color:var(--ink);font-weight:600;
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.h-topics a:hover{color:var(--green-ink)}
.h-more{margin:18px 0 0}
.h-more a{font-weight:600;color:var(--green-ink);text-underline-offset:3px}


@media (max-width:1023px){
  .h-tools a{grid-template-columns:48px minmax(0,1fr);gap:4px 20px;align-items:start}
  .h-ico{grid-row:1/4}
  .h-tools .go{justify-self:start;margin-top:6px}
}
@media (max-width:767px){
  body.home .sx-bar{padding:0 18px}
  body.home footer.sx-footer{padding-left:18px;padding-right:18px}
  .h-wrap{padding:0 18px}
  .h-hero .h-wrap{padding-top:40px;padding-bottom:36px}
  .h-lead{font-size:17px;margin-bottom:26px}
  .h-tools a{margin:0 -18px;padding:20px 18px;grid-template-columns:40px minmax(0,1fr);gap:4px 16px}
  .h-ico{width:40px;height:40px}
  .h-askbox{padding:0 14px}
  .h-askbox input{font-size:16px}
  .h-sec h2{font-size:38px}
  .h-rows a{grid-template-columns:1fr;gap:6px;margin:0;padding:18px 0}
  .h-rows a:hover{background:transparent}
  .h-rows .m{justify-self:start;text-align:left}
}
@media (prefers-reduced-motion:reduce){body.home *{transition:none!important}}

/* =====================================================================================
   Design polish, 1 Nov 2026: depth in the hero, a proof strip, and three different
   section shapes (rows, cards, tiles) so the page has rhythm instead of one list repeated.
   ===================================================================================== */

/* hero: the container yard photo sits behind the headline, drained to the green, fading out before the tool rows */
.h-hero{position:relative;isolation:isolate;overflow:hidden;box-shadow:inset 0 -3px 0 var(--signal)}
.h-hero::before{content:"";position:absolute;z-index:-2;inset:0 0 auto 0;height:min(78%,640px);pointer-events:none;
  background:url(/assets/hero-port-home.jpg) center 35%/cover no-repeat;opacity:.27;filter:grayscale(1) contrast(1.15);mix-blend-mode:luminosity;
  -webkit-mask-image:linear-gradient(180deg,#000 30%,transparent 100%);mask-image:linear-gradient(180deg,#000 30%,transparent 100%)}
.h-hero::after{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg,var(--green) 0 34%,rgba(20,64,58,.72) 70%,rgba(20,64,58,.5) 100%),
    radial-gradient(700px 340px at 100% 0%,rgba(255,255,255,.10),transparent 60%)}
.h-hero .h-wrap{padding-top:72px}
.h-hero h1{text-shadow:0 2px 24px rgba(0,0,0,.18)}
.h-askbox{box-shadow:0 18px 40px -18px rgba(0,0,0,.55),inset 0 0 0 2px transparent}
.h-askbox:focus-within{box-shadow:0 18px 40px -18px rgba(0,0,0,.55),inset 0 0 0 3px var(--signal)}
.h-tools{position:relative}
.h-tools a{border-radius:10px}
.h-tools a:active{background:#E6EBE5}

/* proof strip: four facts on the label-white band under the hero */
.h-proof{background:var(--label);border-bottom:1px solid var(--rule)}
.h-proof ul{max-width:1120px;margin:0 auto;padding:0 24px;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.h-proof li{padding:22px 24px 22px 0;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:start;border-left:1px solid var(--rule);padding-left:22px}
.h-proof li:first-child{border-left:0;padding-left:0}
.h-proof svg{width:26px;height:26px;color:var(--signal);grid-row:span 2;margin-top:2px}
.h-proof strong{font:700 22px/1 var(--display);color:var(--green);letter-spacing:.005em}
.h-proof span{font-size:14px;line-height:1.4;color:var(--muted)}

/* case studies as cards: numbered, with the category as a small label */
.h-cards{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.h-cards a{position:relative;display:flex;flex-direction:column;gap:10px;min-height:250px;padding:24px 24px 22px;background:var(--label);
  border:1px solid #DCE2DB;border-radius:14px;color:var(--ink);text-decoration:none;box-shadow:0 1px 2px rgba(20,64,58,.05);
  transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s,border-color .2s}
.h-cards a:hover{transform:translateY(-3px);border-color:#B7C5BE;box-shadow:0 18px 32px -16px rgba(20,64,58,.32),0 2px 6px rgba(20,64,58,.06)}
.h-cards a:active{transform:translateY(-1px);transition-duration:.08s}
.h-cards .n{font:700 44px/1 var(--display);color:#B04E15;letter-spacing:-.01em}
.h-cards .q{font:700 26px/1.1 var(--display);text-wrap:balance}
.h-cards .d{color:var(--muted);font-size:14.5px;line-height:1.5;flex:1}
.h-cards .m{display:inline-block;align-self:flex-start;font:600 12px/1 var(--body);letter-spacing:.03em;color:var(--green-ink);background:#E7EEEA;border-radius:6px;padding:5px 8px}
.h-cards .go{font-weight:600;font-size:14.5px;color:var(--green-ink);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}

/* courses, events, resources, common issues: four flat tiles with an arrow */
.h-tiles{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.h-tiles a{display:flex;flex-direction:column;gap:8px;padding:22px 22px 20px;min-height:170px;background:var(--label);border:1px solid #DCE2DB;border-radius:14px;
  color:var(--ink);text-decoration:none;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s,border-color .2s}
.h-tiles a:hover{transform:translateY(-3px);border-color:#B7C5BE;box-shadow:0 18px 32px -16px rgba(20,64,58,.32)}
.h-tiles a:active{transform:translateY(-1px);transition-duration:.08s}
.h-tiles .q{font:700 25px/1.08 var(--display)}
.h-tiles .d{color:var(--muted);font-size:14.5px;line-height:1.5;flex:1}
.h-tiles .m{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14.5px;color:var(--green-ink)}
.h-tiles .m::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.h-tiles a:hover .m::after{transform:rotate(45deg) translate(2px,-2px)}

/* who is behind it: one dark band with the author line, before the footer */
.h-author{background:var(--green);color:#fff;box-shadow:inset 0 3px 0 var(--signal)}
.h-author .h-wrap{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px 48px;align-items:center;padding-top:44px;padding-bottom:44px}
.h-author h2{margin:0 0 10px;font:700 36px/1.05 var(--display);text-wrap:balance}
.h-author p{margin:0;color:#D5E3DE;font-size:16px;line-height:1.55;max-width:58ch;text-wrap:pretty}
.h-author .h-sig{justify-self:end;display:grid;gap:10px;padding:22px 24px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.05);max-width:360px}
.h-author .h-sig strong{font:700 24px/1 var(--display);color:#fff}
.h-author .h-sig span{font-size:14px;color:#D5E3DE}
.h-author .h-sig a{color:#fff;font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.h-author .h-sig a:hover{color:var(--signal)}
.h-sec:last-of-type{padding-bottom:64px}

@media (max-width:1023px){
  .h-proof ul{grid-template-columns:1fr 1fr}
  .h-proof li:nth-child(3){border-left:0;padding-left:0}
  .h-proof li:nth-child(-n+2){border-bottom:1px solid var(--rule)}
  .h-cards,.h-tiles{grid-template-columns:1fr 1fr}
}
@media (max-width:767px){
  .h-hero .h-wrap{padding-top:44px}
  .h-hero::before{display:none}
  .h-proof ul{grid-template-columns:1fr;padding:6px 18px}
  .h-proof li{border-left:0;padding:14px 0;border-bottom:1px solid var(--rule)}
  .h-proof li:last-child{border-bottom:0}
  .h-cards,.h-tiles{grid-template-columns:1fr;gap:12px}
  .h-cards a{min-height:0}
  .h-tiles a{min-height:0}
  .h-author .h-wrap{grid-template-columns:1fr;padding-top:36px;padding-bottom:36px}
  .h-author .h-sig{justify-self:stretch;max-width:none}
}
@media (prefers-reduced-motion:reduce){.h-cards a:hover,.h-tiles a:hover{transform:none}}
