/* ================================================================
   Location and role pages (location-page.php, role-page.php) — every
   migrated /location/ and /roles/ page. Shared components; role-only
   bits are at the end.
   Scoped under .tc-loc / body.tc-location-page. Same brand system as the
   OHLA and Hire Talent landing pages: navy #132965, blue #0065E4,
   dark navy #0D2747. Headings: Oakes Grotesk, weight 400.

   The reset is limited to text elements (not `.tc-lp *` like the other
   landing pages) so shared shortcode components (e.g. the app CTA) keep
   their own styles.
   ================================================================ */

.tc-loc,
.tc-loc *,
.tc-loc *::before,
.tc-loc *::after {
  box-sizing: border-box;
}

.tc-loc :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd) {
  margin: 0;
  padding: 0;
}

body.tc-location-page {
  background: #fff;
  overflow-x: hidden;
}

.tc-loc {
  --navy:   #132965;
  --blue:   #0065E4;
  --ink:    #14223B;
  --muted:  #4A586E;
  --dark:   #0D2747;
  --light:  #F3F7FD;
  --border: #E2E8F0;
  font-family: 'Oakes Grotesk', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
}

.tc-loc ul, .tc-loc ol { list-style: none; }
.tc-loc img { max-width: 100%; display: block; }

.tc-loc h1,
.tc-loc h2,
.tc-loc h3 {
  font-family: 'Oakes Grotesk', system-ui, sans-serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.tc-loc h2 { font-size: clamp(28px, 3.4vw, 40px); }
.tc-loc h3 { font-size: 20px; }

/* Inline links: a soft underline in the link colour; on hover a full-colour
   line sweeps in from the left. Works on white (blue links) and on the blue
   intro band (white links) because both lines use currentColor. */
.tc-loc p a,
.tc-loc dd a,
.tc-loc-richtext a,
.tc-loc .tc-faq__a a {
  color: var(--blue);
  text-decoration: none !important;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat,
    linear-gradient(color-mix(in srgb, currentColor 30%, transparent), color-mix(in srgb, currentColor 30%, transparent)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s ease;
}
.tc-loc p a:hover,
.tc-loc p a:focus-visible,
.tc-loc dd a:hover,
.tc-loc dd a:focus-visible,
.tc-loc-richtext a:hover,
.tc-loc-richtext a:focus-visible,
.tc-loc .tc-faq__a a:hover,
.tc-loc .tc-faq__a a:focus-visible { background-size: 100% 2px, 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .tc-loc p a,
  .tc-loc dd a,
  .tc-loc-richtext a,
  .tc-loc .tc-faq__a a { transition: none; }
}


/* ---- Shared: icons, buttons, section shell ---- */
.tc-loc .tc-icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.tc-loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oakes Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 99px;
  padding: 18px 30px;
  border: 1px solid var(--blue);
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.tc-loc .tc-loc-btn--primary { background: var(--blue); color: #fff !important; }
.tc-loc .tc-loc-btn--primary:hover,
.tc-loc .tc-loc-btn--primary:focus { background: transparent; color: var(--blue) !important; }

.tc-loc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue) !important;
  font-size: 15px;
  text-decoration: underline !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: text-decoration-color .25s ease;
}
.tc-loc-link:hover, .tc-loc-link:focus-visible { text-decoration-color: currentColor !important; }

.tc-loc-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tc-loc-section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 40px;
}

.tc-loc-section__head--row {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.tc-loc-section__head--row > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ---- Hero ---- */
.tc-loc-hero {
  padding: 64px 5% 72px;
}

.tc-loc-hero__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.tc-loc-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tc-loc-hero h1 { font-size: clamp(32px, 4.2vw, 48px); }

.tc-loc-hero__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
}

.tc-loc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.tc-loc-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 24px;
}


/* ---- Intro + stats (blue full-bleed) ---- */
.tc-loc-intro {
  background: var(--blue);
  color: #fff;
  padding: 96px 5%;
}

.tc-loc-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.tc-loc-intro__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tc-loc-intro h2 { color: #fff; }
.tc-loc-intro .tc-loc-richtext { display: flex; flex-direction: column; gap: 16px; }
.tc-loc-intro p,
.tc-loc-intro li { font-size: 17px; line-height: 1.6; color: #EAF2FF; }
.tc-loc-intro .tc-loc-richtext ul { list-style: disc; padding-left: 20px; }
.tc-loc-intro a { color: #fff !important; }

/* No figures: single column, readable line length. */
.tc-loc-intro--solo .tc-loc-intro__inner { grid-template-columns: 1fr; max-width: 760px; }

.tc-loc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tc-loc-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-loc-stat__num {
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1;
  color: #fff;
}
.tc-loc-stat__label {
  font-size: 14px;
  line-height: 1.45;
  color: #CFE2FF;
}


/* ---- Areas ---- */
.tc-loc-areas {
  padding: 104px 5%;
}

.tc-loc-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tc-loc-area {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 120px;
}
.tc-loc-area:target { border-color: var(--blue); }
.tc-loc-area p { font-size: 16px; line-height: 1.6; color: var(--muted); }


/* ---- Trades (dark) ---- */
.tc-loc-trades {
  background: var(--dark);
  padding: 96px 5%;
}
.tc-loc-trades h2 { color: #fff; }

.tc-loc-trades__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tc-loc-trades__list a,
.tc-loc-trades__list li > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  color: #fff !important;
  text-decoration: none !important;
}
.tc-loc-trades__list a { transition: color .25s ease, border-color .25s ease; }
.tc-loc-trades__list a .tc-icon { color: rgba(255, 255, 255, 0.6); }
/* Hover: text and arrow turn light blue (brand 50% blue); no fill. */
.tc-loc-trades__list a:hover,
.tc-loc-trades__list a:focus-visible { color: #66A3F1 !important; border-color: rgba(102, 163, 241, 0.55); }
.tc-loc-trades__list a:hover .tc-icon,
.tc-loc-trades__list a:focus-visible .tc-icon { color: #66A3F1; }

/* Long lists (e.g. every location for a common trade): plain links in four columns. */
.tc-loc-trades__list--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; }
.tc-loc-trades__list--compact a {
  padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; font-size: 15px;
}
@media (max-width: 900px) { .tc-loc-trades__list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Up-right arrows nudge towards where the link goes. */
.tc-loc-link .tc-icon,
.tc-loc-trades__list a .tc-icon { transition: transform .25s ease, color .25s ease; }
.tc-loc-link:hover .tc-icon,
.tc-loc-link:focus-visible .tc-icon,
.tc-loc-trades__list a:hover .tc-icon,
.tc-loc-trades__list a:focus-visible .tc-icon { transform: translate(3px, -3px); }

@media (prefers-reduced-motion: reduce) {
  .tc-loc-link,
  .tc-loc-trades__list a,
  .tc-loc-link .tc-icon,
  .tc-loc-trades__list a .tc-icon { transition: none; }
}



/* ---- Projects ---- */
.tc-loc-projects {
  padding: 104px 5%;
  background: var(--light);
}

.tc-loc-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tc-loc-project {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 24px;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tc-loc-project:hover,
.tc-loc-project:focus {
  box-shadow: 0 12px 32px rgba(19, 41, 101, 0.12);
  transform: translateY(-2px);
}
.tc-loc-project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 6px;
}
.tc-loc-project h3 { font-size: 18px; padding: 0 20px; }


/* ---- How we work ---- */
.tc-loc-how {
  padding: 104px 5%;
}

.tc-loc-how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tc-loc-how__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  background: var(--light);
}
.tc-loc-how__card h3 { font-size: 18px; }
.tc-loc-how__card p { font-size: 15px; line-height: 1.55; color: var(--muted); }



/* ---- FAQ (same component as the register / OHLA pages) ---- */
.tc-loc .tc-faq {
  background: var(--light);
  padding: 104px 5%;
}

.tc-loc .tc-faq__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6.5fr;
  gap: 80px;
  align-items: start;
}

.tc-loc .tc-faq__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.tc-loc .tc-faq__heading { font-size: clamp(30px, 3.6vw, 44px); }

.tc-loc .tc-faq__item { border-bottom: 1px solid var(--blue); }
.tc-loc .tc-faq__item:first-child { border-top: 1px solid var(--blue); }

.tc-loc .tc-faq__q {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 20px 0 !important;
  margin: 0;
  font-family: 'Oakes Grotesk', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--navy) !important;
  text-align: left !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  cursor: pointer;
}

.tc-loc .tc-faq__q-text { min-width: 0; overflow-wrap: break-word; }

.tc-loc .tc-faq__chevron {
  color: var(--navy);
  transition: transform .35s ease;
}
.tc-loc .tc-faq__item--open .tc-faq__chevron { transform: rotate(180deg); }

.tc-loc .tc-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.tc-loc .tc-faq__item--open .tc-faq__a { max-height: 400px; }
.tc-loc .tc-faq__a-inner { padding-bottom: 24px; }
.tc-loc .tc-faq__a-inner { display: flex; flex-direction: column; gap: 12px; }
.tc-loc .tc-faq__a p,
.tc-loc .tc-faq__a li { font-size: 16px; line-height: 1.55; color: var(--navy); }
.tc-loc .tc-faq__a ul { list-style: disc; padding-left: 20px; }


/* ---- Role pages ---- */
.tc-role-duties {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 28px;
}
.tc-role-duties h3 { color: #fff; margin-bottom: 14px; }
.tc-role-duties ul { display: flex; flex-direction: column; gap: 10px; }
.tc-role-duties li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #EAF2FF;
}
.tc-role-duties li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7FB0FF;
}

.tc-role-tickets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tc-role-ticket {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tc-role-ticket h3 { font-size: 18px; }
.tc-role-ticket p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.tc-role-where__label {
  color: #C7D3E8 !important;
  font-size: 14px !important;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  margin: 8px 0 14px !important;
}
.tc-loc-trades__list + .tc-role-where__label { margin-top: 32px !important; }


/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .tc-loc-projects__grid,
  .tc-loc-how__grid { grid-template-columns: repeat(2, 1fr); }
  .tc-loc-trades__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .tc-loc-hero { padding: 40px 5% 56px; }
  .tc-loc-hero__grid,
  .tc-loc-intro__inner { grid-template-columns: 1fr; gap: 40px; }

  .tc-loc-intro,
  .tc-loc-areas,
  .tc-loc-trades,
  .tc-loc-projects,
  .tc-loc-how,
  .tc-loc .tc-faq { padding-top: 64px; padding-bottom: 64px; }

  .tc-loc-areas__grid,
  .tc-role-tickets { grid-template-columns: 1fr; }

  .tc-loc-section__head--row { flex-direction: column; align-items: flex-start; }

  .tc-loc .tc-faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .tc-loc .tc-faq__left { position: static; }
}

@media (max-width: 600px) {
  .tc-loc-projects__grid,
  .tc-loc-how__grid,
  .tc-loc-trades__list,
  .tc-loc-stats { grid-template-columns: 1fr; }

  .tc-loc-hero__ctas { flex-direction: column; align-items: stretch; }
  .tc-loc-hero__ctas .tc-loc-btn { width: 100%; }
}


/* ---- Sector pages: sub-sector cards (parent sectors) ---- */
.tc-sector-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tc-sector-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color .25s ease;
}
.tc-sector-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tc-sector-card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.tc-sector-card h3 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 20px; }
.tc-sector-card h3 .tc-icon { flex: none; margin-top: 2px; color: var(--blue); transition: transform .25s ease; }
.tc-sector-card__text { font-size: 16px; line-height: 1.55; color: var(--muted); }
.tc-sector-card:hover,
.tc-sector-card:focus-visible { border-color: var(--blue); }
.tc-sector-card:hover h3,
.tc-sector-card:focus-visible h3 { color: var(--blue); }
.tc-sector-card:hover .tc-icon,
.tc-sector-card:focus-visible .tc-icon { transform: translate(3px, -3px); }
@media (max-width: 960px) { .tc-sector-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tc-sector-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tc-sector-card, .tc-sector-card .tc-icon { transition: none; } }

/* Area card that has its own page (e.g. Parramatta on Western Sydney). */
.tc-loc-area__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink) !important; text-decoration: none !important; }
.tc-loc-area__link .tc-icon { color: var(--blue); transition: transform .25s ease; }
.tc-loc-area__link:hover,
.tc-loc-area__link:focus-visible { color: var(--blue) !important; }
.tc-loc-area__link:hover .tc-icon,
.tc-loc-area__link:focus-visible .tc-icon { transform: translate(3px, -3px); }
