/*
 * Leader Guyana – Homepage Styles
 * page-home-lg.css  |  leader-child theme
 *
 * Tokens
 *   --blue      #00a8b5  LG primary
 *   --navy      #242f3a
 *   --navy-90   #1d2730
 *   --tint      #53606b
 *   --grey-text #6f6f6e
 * Font: Synthese / Arial / sans-serif
 */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --blue:       #00a8b5;
  --blue-dark:  #008a96;
  --blue-10:    rgba(0,168,181,.10);
  --navy:       #242f3a;
  --navy-90:    #1d2730;
  --navy-light: #354354;
  --tint:       #53606b;
  --grey-text:  #6f6f6e;
  --off-white:  #f4f6f8;
  --mid-grey:   #e2e6ea;
  --white:      #ffffff;
  --radius-sm:  4px;
  --radius-md:  8px;
  --shadow-card:  0 2px 16px rgba(36,47,58,.07), 0 1px 4px rgba(36,47,58,.05);
  --shadow-hover: 0 8px 32px rgba(0,168,181,.16), 0 2px 8px rgba(36,47,58,.08);
  --transition: 0.24s cubic-bezier(.4,0,.2,1);
  --font:       'Synthese', Arial, sans-serif;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ─── Buttons ────────────────────────────────────────────── */
/* Global .btn system now lives in header-styles.css — loaded on every page.
   Homepage-specific overrides only below if needed. */

/* ─── Shared typography ──────────────────────────────────── */
.lg-label {
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: .55rem;
}
.lg-section-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: .9rem;
}
.lg-section-body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.72;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.lg-hero {
  position: relative;
  background: var(--navy);
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(8rem, 14vw, 12rem);
  overflow: hidden; /* clips drill bit + any other elements at hero boundary */
  z-index: 1;
}

/* Diagonal cut at bottom — must be above drill bit */
.lg-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 122px;
  background: var(--off-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
  z-index: 10; /* above drill bit z-index:1 */
}

/* Cathedral bg image — right side, masked */
.lg-hero__bg-image {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
  pointer-events: none;
  z-index: 2; /* explicit — keeps image below ::after (z-index:10) diagonal */
  transform-origin: center center;
  animation: lgHeroDrift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes lgHeroDrift {
  0%   { transform: scale(1.06) translate(0%,   0%);   }
  100% { transform: scale(1.18) translate(-4%, 2.5%);  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-hero__bg-image { animation: none; transform: scale(1.06); }
}

/* Dot grid */
.lg-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* Teal glow */
.lg-hero__bg-glow {
  position: absolute;
  top: -10%; left: -5%;
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(0,168,181,.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: lgGlowPulse 7s ease-in-out infinite alternate;
}
@keyframes lgGlowPulse {
  from { opacity: .5; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.06); }
}

/* Hero inner — full width block, drill bit is absolute */
.lg-hero__inner {
  position: relative;
  z-index: 3;
  display: block;
}
.lg-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Drill bit — centre sits on right edge of screen */
.lg-hero__drillbit {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  transform-origin: center center;
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}
.lg-hero__drillbit {
  position: absolute;
  top: 50%;
  right: 0;
  /* Centre of icon sits on right edge — exactly 50% visible */
  transform: translate(50%, -50%);
  transform-origin: center center;
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}
.lg-drillbit-img {
  /* Large — overflow:hidden on .lg-hero clips bottom bleed */
  width: clamp(700px, 90vw, 1200px);
  height: auto;
  display: block;
  opacity: .15;
}

/* Eyebrow */
.lg-hero__eyebrow {
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
  border-left: 3px solid var(--blue);
  padding-left: .75rem;
  margin-bottom: 1.5rem;
  animation: lgFadeUp .65s ease both;
}

/* Headline — force white over any parent theme override */
.lg-hero__headline,
.lg-hero .lg-hero__inner .lg-hero__content h1,
section.lg-hero h1.lg-hero__headline {
  font-family: var(--font) !important;
  font-size: clamp(2.6rem, 5.5vw, 5rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
  max-width: 800px;
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
  animation: lgFadeUp .7s .1s ease both;
}
.lg-hero__headline em,
section.lg-hero h1.lg-hero__headline em {
  font-style: normal !important;
  color: #ffffff !important;
}

.lg-hero__sub {
  font-family: var(--font);
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.68);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
  animation: lgFadeUp .7s .18s ease both;
}

.lg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3.5rem;
  animation: lgFadeUp .7s .26s ease both;
}

/* Stats bar */
.lg-hero__stats {
  display: flex;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: lgFadeUp .7s .36s ease both;
}
.lg-hero__stat {
  display: flex;
  flex-direction: column;
  padding-right: 2.25rem;
}
.lg-hero__stat-num {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.lg-hero__stat-num sup {
  font-size: .5em;
  vertical-align: super;
  color: var(--blue);
}
.lg-hero__stat-label {
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-top: .3rem;
}
.lg-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.14);
  margin-right: 2.25rem;
  flex-shrink: 0;
}

@keyframes lgFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.lg-services {
  background: var(--off-white);
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
  position: relative;
  z-index: 0;
  margin-top: -2px;
}

/* Suppress any parent theme hr or border leaking between hero and services */
.lg-hero + * hr,
.lg-hero + hr,
.lg-services > hr,
.entry-content hr,
.page-content > hr:first-child {
  display: none !important;
}

/* Hide parent theme borders on the page wrapper */
.page-template-page-home-lg .entry-header,
.page-template-page-home-lg .entry-content > *:first-child {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Nuclear option — hide ALL hr elements on this template */
.page-template-page-home-lg hr,
body.page-template-page-home-lg hr {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.lg-services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.lg-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
#services .container {
  max-width: 1380px;
}

.lg-service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.85rem 1.65rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--mid-grey);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.lg-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(36,47,58,.35);
  border-color: transparent;
  background: var(--navy);
}
.lg-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(1);
  transform-origin: left;
  transition: background var(--transition), opacity var(--transition);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.lg-service-card:hover::before { background: var(--blue); }

.lg-service-card__number {
  position: absolute;
  top: 1.1rem; right: 1.3rem;
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0,168,181,.13);
  line-height: 1;
  user-select: none;
  transition: color var(--transition);
}
.lg-service-card:hover .lg-service-card__number { color: rgba(255,255,255,.18); }

.lg-service-card:hover .lg-service-card__title { color: #fff; }
.lg-service-card:hover .lg-service-card__body { color: rgba(255,255,255,.72); }
.lg-service-card:hover .lg-service-card__foot { border-top-color: rgba(255,255,255,.15); }
/* pill <li> has no styling — handled on the <a> child below */
.lg-service-card:hover .lg-service-card__link { color: var(--blue); }

.lg-service-card__title {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .55rem;
  transition: color var(--transition);
}
.lg-service-card__body {
  font-family: var(--font);
  font-size: .88rem;
  color: var(--grey-text);
  line-height: 1.65;
  margin-bottom: 0;
  transition: color var(--transition);
  flex: 1;
}
/* foot — fixed min-height so the divider top lands at the same Y across all cards.
   Value must exceed the tallest natural foot (card 2: 4 long pills wrapping to 3 rows
   + link + padding ≈ 11.5rem).  13rem gives comfortable headroom. */
.lg-service-card__foot {
  border-top: 1px solid var(--mid-grey);
  padding-top: 1rem;
  margin-top: 1.1rem;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.lg-service-card__subs {
  list-style: none;
  padding: 0; margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.lg-service-card__subs li {
  list-style: none;
  padding: 0;
  background: none;
  border: none;
}
.lg-service-card__subs li a {
  display: inline-block;
}
.lg-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: auto;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.lg-service-card__link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--transition); }
.lg-service-card__link:hover { color: #008a96; gap: .6rem; }
.lg-service-card__link:hover svg { transform: translateX(3px); }

/* On dark (inverted) card: link goes white so it reads clearly against navy */
.lg-service-card:hover .lg-service-card__link { color: #fff; }
/* Direct hover on the link itself while card is dark: turn LG blue */
.lg-service-card:hover .lg-service-card__link:hover { color: #00a8b5; gap: .6rem; }

/* ══════════════════════════════════════════════════════════
   WHY LG  —  navy, diagonal top cut
   ══════════════════════════════════════════════════════════ */
.lg-why {
  background: var(--navy);
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(5rem, 9vw, 8rem);
  position: relative;
  z-index: 0;
  margin-top: -2px;
  overflow: hidden;
}
.lg-why::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 122px;
  background: var(--off-white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.lg-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-sizing: border-box;
}
.lg-why__inner > * { min-width: 0; }
@media (max-width: 820px) {
  .lg-why__inner { grid-template-columns: 1fr; }
  .lg-why__circle { order: -1; }
}

.lg-why__copy .lg-label { color: var(--blue); }
.lg-why__title {
  font-family: var(--font);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.lg-why__body {
  font-family: var(--font);
  font-size: .96rem;
  color: rgba(255,255,255,.65);
  line-height: 1.78;
  margin-bottom: 1.6rem;
}
.lg-why__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.lg-why__list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-family: var(--font);
  font-size: .92rem;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}
.lg-why__list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: .15rem; }

/* ── Brand Circle ──────────────────────────────────────── */
.lg-why__circle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Arc SVG — centred with translate trick */
.lg-circle-arc {
  position: absolute;
  width: calc(clamp(300px, 38vw, 440px) + 80px);
  height: calc(clamp(300px, 38vw, 440px) + 80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.lg-why__circle-outer {
  position: relative;
  width: clamp(300px, 38vw, 440px);
  height: clamp(300px, 38vw, 440px);
  border-radius: 50%;
  background: var(--navy-90);
  border: 1.5px solid rgba(0,168,181,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.lg-why__circle-inner {
  /* Inscribed square of circle = diameter × 0.707
     At 440px diameter = ~311px usable. Pad to ~260px content width */
  padding: 1.25rem 2.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.lg-why__circle-label {
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: .75rem;
}
.lg-why__circle-headline {
  font-family: var(--font);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: .75rem;
}
.lg-why__circle-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.15);
  margin: .5rem 0;
}
/* Stats table — centred layout */
.lg-why__circle-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-top: .25rem;
}
.lg-why__circle-stat-num {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  padding: .3rem .5rem .3rem .5rem;
  white-space: nowrap;
  vertical-align: middle;
  width: 30%;
  text-align: right;
}
.lg-why__circle-stat-num sup {
  font-size: .5em;
  vertical-align: super;
}
.lg-why__circle-stat-text {
  font-family: var(--font);
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  line-height: 1.35;
  vertical-align: middle;
  padding: .3rem 0;
  text-align: left;
}
.lg-why__circle-table-rule td {
  padding: 0;
}

/* ══════════════════════════════════════════════════════════
   CONTRACTOR CARE STRIP
   ══════════════════════════════════════════════════════════ */
.lg-care-strip {
  background: linear-gradient(135deg, #00a8b5 0%, #0070b9 100%);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.lg-care-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lg-care-strip__text {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.lg-care-strip__text span { font-weight: 400; opacity: .88; }

/* ══════════════════════════════════════════════════════════
   SECTORS  —  straight edge, blue top rule
   ══════════════════════════════════════════════════════════ */
.lg-sectors {
  background: var(--white);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  position: relative;
  border-top: 3px solid var(--blue);
}
.lg-sectors__header { text-align: center; margin-bottom: 2rem; }
.lg-sectors__list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.lg-sector-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--mid-grey);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), color var(--transition);
  cursor: default;
}
.lg-sector-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 3px 12px rgba(0,168,181,.14);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   CTA  —  navy, blue top rule
   ══════════════════════════════════════════════════════════ */
.lg-cta {
  position: relative;
  background: var(--navy);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
  border-top: 3px solid var(--blue);
}
.lg-cta__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.lg-cta__inner { position: relative; z-index: 1; }
.lg-cta__title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .9rem;
}
.lg-cta__body {
  font-family: var(--font);
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.72;
}
.lg-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
/* Tablet: 2-col service grid */
@media (max-width: 880px) {
  .lg-services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: the Why-circle is smaller here, so shrink its text to fit cleanly */
@media (max-width: 1024px) {
  .lg-why__circle-outer { width: min(340px, 92vw); height: min(340px, 92vw); }
  .lg-circle-arc { width: calc(min(340px, 92vw) + 80px); height: calc(min(340px, 92vw) + 80px); }
  .lg-why__circle-inner { padding: 1rem 1.75rem; }
  .lg-why__circle-headline { font-size: .8rem; line-height: 1.35; margin-bottom: .6rem; }
  .lg-why__circle-stat-num { font-size: .95rem; padding: .25rem .4rem; }
  .lg-why__circle-stat-text { font-size: .62rem; line-height: 1.3; }
  .lg-why__circle-label { font-size: .55rem; margin-bottom: .5rem; }
}

@media (max-width: 620px) {
  .lg-hero::after { height: 60px; }
  .lg-hero__stats { flex-wrap: wrap; gap: 1.25rem; }
  .lg-hero__stat-divider { display: none; }
  .lg-services__grid { grid-template-columns: 1fr; }
  .lg-service-card__foot { min-height: 0; }
  .lg-hero__drillbit { display: none; }
  /* Small phones: drop the stats circle (no room) and ease the diagonal cut */
  .lg-why__circle { display: none; }
  .lg-why::before { height: 48px; }
  .lg-why__circle-outer { width: min(320px, 88vw); height: min(320px, 88vw); }
  .lg-circle-arc { width: calc(min(320px, 88vw) + 80px); height: calc(min(320px, 88vw) + 80px); }
  .lg-why__circle-inner { padding: 1rem 1.5rem; }
  .lg-why__circle-headline { font-size: .85rem; }
  .lg-why__circle-stat-num { font-size: .95rem; padding: .25rem .4rem; }
  .lg-why__circle-stat-text { font-size: .65rem; }
  .lg-why__circle-label { font-size: .55rem; margin-bottom: .5rem; }
  .lg-care-strip__inner { flex-direction: column; text-align: center; }
}

/* Small phones: stack CTA buttons full-width */
@media (max-width: 480px) {
  .lg-cta__actions,
  .lg-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .lg-cta__actions .btn,
  .lg-hero__actions .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-hero__bg-glow { animation: none !important; }
  .lg-hero__eyebrow,
  .lg-hero__headline,
  .lg-hero__sub,
  .lg-hero__actions,
  .lg-hero__stats { animation: none !important; opacity: 1; transform: none; }
}
/* ── Fully clickable service cards — add to END of page-home-lg.css ── */
a.lg-service-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important;
}
a.lg-service-card:hover {
    text-decoration: none !important;
}
a.lg-service-card .lg-service-card__link {
    pointer-events: none;
}

/* ── Icon variant cards (Version 2) ── */
.lg-service-card__icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(0,168,181,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    transition: background var(--transition);
}
.lg-service-card__icon {
    width: 26px;
    height: 26px;
    color: #00a8b5;
    transition: color var(--transition);
}
.lg-service-card:hover .lg-service-card__icon-wrap { background: rgba(255,255,255,.15); }
.lg-service-card:hover .lg-service-card__icon      { color: #fff; }

/* ── 2x2 grid variant (Version 3) ── */
.lg-services__grid--2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.lg-service-card--2x2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lg-service-card--2x2 .lg-service-card__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.lg-service-card--2x2 .lg-service-card__icon-wrap { margin-bottom: 0; }

/* ── Image variant cards ── */
.lg-service-card--img {
    padding: 3px 0 0; /* 3px top gives the ::before accent line room to show */
    overflow: hidden;
}
/* Photo wrap — rounded top corners, sits flush below accent line */
.lg-service-card--img .lg-service-card__photo-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 6px 6px 0 0;
}
.lg-service-card--img .lg-service-card__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transition: transform .5s ease;
}
.lg-service-card--img:hover .lg-service-card__photo {
    transform: scale(1.05);
}
/* Overlay — gradual bleed into card body */
.lg-service-card--img .lg-service-card__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(36,47,58,.05) 0%,
        rgba(36,47,58,.35) 60%,
        rgba(36,47,58,.78) 100%
    );
}
.lg-service-card--img .lg-service-card__body-wrap {
    padding: 1.4rem 1.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Number — stroke style, reduced shadow so light-bg images (e.g. In-Country) aren't overpowered */
.lg-service-card--img .lg-service-card__number {
    top: 1rem;
    right: 1rem;
    font-size: 3.5rem;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,.6);
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
/* Master title — larger than sub-service cards to reinforce parent/child hierarchy */
.lg-service-card--img .lg-service-card__title {
    margin-top: .25rem;
    font-size: 1.2rem;
}
.lg-service-card--img .lg-service-card__body {
    padding: 0;
}
.lg-service-card--img .lg-service-card__foot {
    margin-top: auto;
    padding: 0 1.5rem 1.5rem;
    min-height: 14rem;
    border-top: 1px solid var(--mid-grey);
    padding-top: 1rem;
    margin-top: 1rem;
    transition: border-color var(--transition);
}
/* Image card hover — white text on dark background */
.lg-service-card--img:hover .lg-service-card__title { color: #fff; }
.lg-service-card--img:hover .lg-service-card__body  { color: rgba(255,255,255,.72); }
.lg-service-card--img:hover .lg-service-card__foot  { border-top-color: rgba(255,255,255,.18); }
.lg-service-card--img:hover .lg-service-card__subs li { color: rgba(255,255,255,.82); }
.lg-service-card--img:hover .lg-service-card__link  { color: #fff; }
/* ══════════════════════════════════════════════════════════
   PILL LINKS  —  applies to all icon-card variants
   ══════════════════════════════════════════════════════════ */
.lg-service-card__subs a {
    display: inline-block;
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--tint);
    background: var(--off-white);
    border: 1px solid var(--mid-grey);
    border-radius: var(--radius-sm);
    padding: .25rem .7rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform .15s ease, box-shadow .15s ease;
}
.lg-service-card__subs a:hover,
.lg-service-card__subs a:focus {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,168,181,.30);
    outline: none;
}
/* Static specialism tags — shown until sub-sector pages exist (then swap <span> for <a>) */
.lg-service-card__subs span {
    display: inline-block;
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--tint);
    background: var(--off-white);
    border: 1px solid var(--mid-grey);
    border-radius: var(--radius-sm);
    padding: .25rem .7rem;
    white-space: normal;
    max-width: 100%;
}
.lg-service-card__subs a:focus:not(:focus-visible) {
    background: var(--off-white);
    border-color: var(--mid-grey);
    color: var(--tint);
    transform: none;
    box-shadow: none;
}
/* Pills on an inverted (hovered) card */
.lg-service-card:hover .lg-service-card__subs a {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.82);
}
.lg-service-card:hover .lg-service-card__subs a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,168,181,.4);
}

/* ── Title links ─────────────────────────────────────────── */
.lg-service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.lg-service-card__title a:hover {
    color: var(--blue);
}
/* On dark (inverted) card: title link goes white */
.lg-service-card:hover .lg-service-card__title a {
    color: #fff;
}
.lg-service-card:hover .lg-service-card__title a:hover {
    color: var(--blue);
}

/* Industries grid: 3 across (replaces 4-col services grid on LE home) */
/* minmax(0,1fr) lets the tracks shrink below content width so the 3 cards
   never overflow the viewport on tablet (plain 1fr can't shrink). */
.lg-industries__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Keep all three cards side-by-side down to tablet; stack only on phones */
@media (max-width: 620px) { .lg-industries__grid { grid-template-columns: 1fr; } }

/* ── Industries section: teal→blue gradient accents ───────────────── */
/* Eyebrow label keeps the gradient */
.lg-industries .lg-label {
    background-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #00a8b5;
}
/* Title: navy/black, matching the LG cards (the title sits in the light card
   body, so the old white was invisible). Hover behaviour below is unchanged. */
.lg-industries .lg-service-card__title a { text-decoration: none; }
.lg-industries .lg-service-card__title,
.lg-industries .lg-service-card__title a,
.lg-industries .lg-service-card--img .lg-service-card__title,
.lg-industries .lg-service-card--img .lg-service-card__title a {
    color: var(--navy);
    -webkit-text-fill-color: var(--navy);
}
/* Box hover → everything turns white */
.lg-industries .lg-service-card:hover .lg-service-card__title,
.lg-industries .lg-service-card:hover .lg-service-card__title a,
.lg-industries .lg-service-card:hover .lg-service-card__link {
    color: #ffffff; -webkit-text-fill-color: #ffffff;
}
/* Direct hover on the title text or Learn more → teal→blue gradient */
.lg-industries .lg-service-card__title a:hover,
.lg-industries .lg-service-card:hover .lg-service-card__title a:hover,
.lg-industries .lg-service-card__link:hover,
.lg-industries .lg-service-card:hover .lg-service-card__link:hover {
    background-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #00a8b5;
}
.lg-industries .lg-service-card__link:hover svg { -webkit-text-fill-color: initial; }
