/* TradesmanIreland homepage ([ti_home]). Phone first; wider from 760px and 1024px. */

.tihome {
  --ink: #111111;
  --yellow: #F3B800;
  --yellow-hi: #FFCF2E;
  --paper: #ffffff;
  --wash: #F6F5F1;
  --line: #D4D6DD;
  --soft: #575757;
  --focus: 0 0 0 3px rgba(243, 184, 0, .55);
  box-sizing: border-box;
  width: 100%;
  color: var(--ink);
  font-family: var(--e-global-typography-text-font-family, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.tihome *, .tihome *::before, .tihome *::after { box-sizing: border-box; }
.tihome .tihome-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tihome ul, .tihome ol { list-style: none; margin: 0; padding: 0; }
.tihome li { margin: 0; }
.tihome a { color: var(--ink); text-decoration: none; }
.tihome a:focus-visible, .tihome select:focus-visible, .tihome button:focus-visible { outline: 0; box-shadow: var(--focus); }

.tihome h1 { margin: 0 0 14px; padding: 0; max-width: 16ch; font-size: clamp(34px, 9.6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.tihome h2 { margin: 0 0 20px; padding: 0; font-size: clamp(24px, 5.6vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.tihome h3 { margin: 0 0 16px; padding: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: inherit; }

.tihome .tihome-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px;
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-align: center; border-radius: 12px; border: 2px solid transparent;
}
.tihome .tihome-btn-go { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tihome .tihome-btn-go:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); color: var(--ink); }
.tihome .tihome-btn-line, .tihome .tihome-btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.tihome .tihome-btn-line:hover, .tihome .tihome-btn-ghost:hover { background: #fff; color: var(--ink); }
.tihome .tihome-acts { display: flex; flex-direction: column; gap: 10px; }

/* ---------- hero ---------- */

.tihome .tihome-hero { background: var(--ink); color: #fff; padding: 36px 0 30px; border-bottom: 8px solid var(--yellow); }
.tihome .tihome-lede { margin: 0 0 24px; max-width: 52ch; font-size: 18px; line-height: 1.5; color: #D6D6D6; }

.tihome .tihome-search { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px; background: var(--paper); border-radius: 18px; box-shadow: 6px 6px 0 var(--yellow); }
.tihome .tihome-search label { display: block; margin: 0; }
.tihome .tihome-search label span { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.tihome .tihome-search select {
  width: 100%; height: 54px; margin: 0; padding: 0 40px 0 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 2px solid var(--ink); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
.tihome .tihome-search button { height: 54px; margin: 0; padding: 0 30px; font: inherit; font-size: 17px; font-weight: 600; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; }
.tihome .tihome-search button:hover { background: #2B2B2B; }

.tihome .tihome-proof { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid #3A3A3A; font-size: 15px; color: #D6D6D6; }
.tihome .tihome-proof strong { margin-right: 4px; font-size: 21px; font-weight: 600; color: var(--yellow); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */

.tihome .tihome-sec { padding: 40px 0; background: var(--paper); }
.tihome .tihome-sec-soft { background: var(--wash); }
.tihome .tihome-two { display: grid; gap: 28px; }
.tihome .tihome-more { margin: 18px 0 0; }
.tihome .tihome-more a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.tihome .tihome-more a::after { content: " \2192"; }
.tihome .tihome-note { margin: 16px 0 0; max-width: 46ch; color: var(--soft); }

.tihome .tihome-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tihome .tihome-tiles a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; min-height: 96px; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); transition: transform .12s, box-shadow .12s; }
.tihome .tihome-tiles a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }
.tihome .tihome-tiles strong { font-size: 16px; line-height: 1.25; font-weight: 600; overflow-wrap: break-word; }
.tihome .tihome-tiles span { font-size: 14px; color: var(--soft); }

.tihome .tihome-how { padding: 24px 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); }
.tihome .tihome-how-dark { background: var(--ink); color: #fff; }
.tihome .tihome-how ol { counter-reset: step; display: grid; gap: 14px; margin: 0 0 22px; }
.tihome .tihome-how li { position: relative; padding: 4px 0 0 48px; min-height: 36px; color: var(--soft); counter-increment: step; }
.tihome .tihome-how li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-weight: 600; }
.tihome .tihome-how li strong { color: var(--ink); font-weight: 600; }
.tihome .tihome-how-dark li { color: #D6D6D6; }
.tihome .tihome-how-dark li strong { color: #fff; }
.tihome .tihome-how .tihome-btn { width: 100%; }

.tihome .tihome-people { display: grid; gap: 10px; }
.tihome .tihome-people a { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tihome .tihome-people a:hover { border-color: var(--ink); }
.tihome .tihome-people img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--wash); }
.tihome .tihome-people span { min-width: 0; }
.tihome .tihome-people strong, .tihome .tihome-jobs strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.tihome .tihome-people em, .tihome .tihome-jobs em { display: block; margin-top: 2px; font-size: 15px; font-style: normal; color: var(--soft); }

.tihome .tihome-jobs li { border-top: 1px solid var(--line); }
.tihome .tihome-jobs li:last-child { border-bottom: 1px solid var(--line); }
.tihome .tihome-jobs a { display: block; padding: 14px 28px 14px 0; position: relative; }
.tihome .tihome-jobs a::after { content: "\2192"; position: absolute; right: 2px; top: 14px; font-size: 18px; }
.tihome .tihome-jobs a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.tihome .tihome-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tihome .tihome-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; }
.tihome .tihome-chips a:hover { background: var(--yellow); }
.tihome .tihome-chips span { font-size: 14px; font-weight: 500; color: var(--soft); }
.tihome .tihome-chips a:hover span { color: var(--ink); }

.tihome .tihome-tool { display: block; padding: 22px 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 5px 5px 0 var(--yellow); transition: transform .12s, box-shadow .12s; }
.tihome .tihome-tool:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--yellow); }
.tihome .tihome-tool strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.tihome .tihome-tool span { display: block; margin: 8px 0 14px; color: var(--soft); }
.tihome .tihome-tool em { font-style: normal; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }

.tihome .tihome-end { padding-top: 8px; }
.tihome .tihome-plain { margin: 0 0 28px; padding: 14px 16px; max-width: 78ch; border-left: 4px solid var(--ink); background: var(--wash); color: var(--soft); }
.tihome .tihome-plain strong { color: var(--ink); }
.tihome .tihome-cta { display: grid; gap: 20px; padding: 26px 20px; background: var(--ink); color: #fff; border-radius: 18px; border-left: 8px solid var(--yellow); }
.tihome .tihome-cta h2 { margin: 0 0 4px; color: #fff; }
.tihome .tihome-cta p { margin: 0; color: #D6D6D6; }

@media (min-width: 760px) {
  .tihome .tihome-in { padding: 0 24px; }
  .tihome .tihome-hero { padding: 64px 0 44px; }
  .tihome .tihome-lede { font-size: 20px; }
  .tihome .tihome-search { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 18px; max-width: 860px; }
  .tihome .tihome-acts { flex-direction: row; flex-wrap: wrap; }
  .tihome .tihome-sec { padding: 60px 0; }
  .tihome .tihome-two { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .tihome .tihome-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tihome .tihome-people { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tihome .tihome-how { padding: 30px 28px; }
  .tihome .tihome-how .tihome-btn { width: auto; }
  .tihome .tihome-end { padding-top: 12px; }
  .tihome .tihome-cta { grid-template-columns: 1fr auto; align-items: center; padding: 34px 36px; }
}
@media (min-width: 1024px) {
  .tihome .tihome-people { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .tihome .tihome-tiles a, .tihome .tihome-tool { transition: none; }
  .tihome .tihome-tiles a:hover, .tihome .tihome-tool:hover { transform: none; }
}
