/* ═══════════════════════════════════════════════════════════════════
   LAC site footer (includes/site-footer-1..4.php)
   Self-contained: linked from the footer itself, so it also works on
   pages that do not load lac-frame.css.
   ═══════════════════════════════════════════════════════════════════ */
html body footer.lacf {
  --lacf-green: #10AC84; --lacf-green-dark: #0E9673; --lacf-text: #B8BEBC; --lacf-dim: #A3AAA8; --lacf-fill: #0B7F62; --lacf-fill-dark: #096B53; --lacf-line: rgba(255,255,255,.08);
  position: relative; display: block; overflow: hidden; isolation: isolate; margin: 0; padding: 0;
  background: #111 !important; color: var(--lacf-text); font-size: 15px; line-height: 1.6;
  box-shadow: inset 0 3px 0 0 var(--lacf-green);
}
html body footer.lacf::before { /* soft green glow, same language as the page heroes */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 92% 100%, rgba(16,172,132,.18), rgba(16,172,132,0) 70%);
}
html body footer.lacf::after { /* faint Canada map */
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -3%; bottom: -28%; width: 600px; height: 420px;
  background: url("/assets/images/canada-map.svg") center / contain no-repeat; opacity: .07;
}
/* the "One Country" call-to-action band on many pages overlaps the top of the footer */
html body :is(.lac-cta-section, section:has(.overlap-99, .getin-touch-wrap)) ~ footer.lacf .lacf-main { padding-top: 112px; }
html body footer.lacf * { box-sizing: border-box; }
html body footer.lacf .lacf-wrap { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ── main area ── */
html body footer.lacf .lacf-main { padding: 64px 0 44px; }
html body footer.lacf .lacf-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.05fr 1.45fr; gap: 44px; align-items: start; }
html body footer.lacf .lacf-h {
  font-family: 'Poppins', sans-serif !important; font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .12em; text-transform: uppercase;
  color: #fff !important; margin: 4px 0 18px !important; padding: 0 !important; line-height: 1.3 !important; border: 0 !important;
}
html body footer.lacf .lacf-h::before, html body footer.lacf .lacf-h::after { display: none !important; }
html body footer.lacf p { color: var(--lacf-text) !important; margin: 0; font-size: .92rem; line-height: 1.65; }
html body footer.lacf ul { list-style: none; margin: 0; padding: 0; }
html body footer.lacf :is(nav, .lacf-col, .lacf-brand, .lacf-news, .lacf-legal-links) { margin: 0; padding-left: 0; padding-right: 0; float: none; }
html body footer.lacf .lacf-news { padding: 24px 24px 22px; }
html body footer.lacf a { text-decoration: none !important; transition: color .15s, background .15s, border-color .15s, transform .15s; }

/* brand */
html body footer.lacf .lacf-brand-top { display: flex; flex-direction: column; gap: 22px; }
html body footer.lacf .lacf-logo img { display: block; width: 150px; max-width: 100%; height: auto; }
html body footer.lacf .lacf-about { margin-top: 18px; max-width: 330px; }
html body footer.lacf .lacf-social { display: flex; flex-wrap: wrap; gap: 8px; order: 3; }
html body footer.lacf .lacf-brand-top { order: 1; }
html body footer.lacf .lacf-brand { display: flex; flex-direction: column; }
html body footer.lacf .lacf-brand .lacf-about { order: 2; }
html body footer.lacf .lacf-social a {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--lacf-line); color: #D8DCDB !important; font-size: 17px; line-height: 1;
}
html body footer.lacf .lacf-social a:hover { background: var(--lacf-fill); border-color: var(--lacf-fill); color: #fff !important; transform: translateY(-2px); }
html body footer.lacf .lacf-social svg { width: 17px !important; height: 17px !important; min-width: 0 !important; min-height: 0 !important; display: block !important; vertical-align: middle !important; overflow: visible; }
html body footer.lacf .lacf-social svg path { fill: currentColor !important; }
html body footer.lacf .lacf-social i { color: inherit !important; }

/* links + contact */
html body footer.lacf .lacf-links li + li, html body footer.lacf .lacf-contact li + li { margin-top: 10px; }
html body footer.lacf :is(.lacf-links, .lacf-contact, .lacf-legal) a { font-family: inherit !important; font-weight: 400 !important; letter-spacing: 0 !important; }
html body footer.lacf .lacf-links a { color: var(--lacf-text) !important; font-size: .95rem; }
html body footer.lacf .lacf-links a:hover { color: #fff !important; }
html body footer.lacf .lacf-contact a { display: inline-flex; align-items: center; gap: 12px; color: var(--lacf-text) !important; font-size: .95rem; word-break: break-word; }
html body footer.lacf .lacf-contact a i {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16,172,132,.12); color: var(--lacf-green) !important; font-size: .85rem;
}
html body footer.lacf .lacf-contact a:hover { color: #fff !important; }

/* newsletter card */
html body footer.lacf .lacf-news { background: rgba(255,255,255,.04); border: 1px solid var(--lacf-line); border-radius: 22px; padding: 24px 24px 22px; }
html body footer.lacf .lacf-news .lacf-h { margin-bottom: 8px !important; }
html body footer.lacf .lacf-news > p { font-size: .88rem; margin-bottom: 16px; }
html body footer.lacf .lacf-form { margin: 0; text-align: left; }
html body footer.lacf .lacf-fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
html body footer.lacf #newsletter input[type="text"], html body footer.lacf #newsletter input[type="email"] {
  width: 100% !important; height: 46px !important; margin: 0 !important; padding: 0 18px !important; border-radius: 999px !important;
  background: rgba(0,0,0,.35) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; font-size: .92rem !important; box-shadow: none !important;
}
html body footer.lacf #newsletter input::placeholder { color: #9AA19F !important; }
html body footer.lacf #newsletter input:focus { outline: 0 !important; border-color: var(--lacf-green) !important; box-shadow: 0 0 0 3px rgba(16,172,132,.2) !important; }
html body footer.lacf .lacf-actions { display: flex; gap: 10px; margin-top: 10px; align-items: stretch; }
html body footer.lacf .lacf-lang { display: inline-flex; flex: 0 0 auto; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); margin: 0; }
html body footer.lacf .lacf-lang label { position: relative; margin: 0 !important; cursor: pointer; display: inline-flex; }
html body footer.lacf .lacf-lang input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; }
html body footer.lacf .lacf-lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 36px; padding: 0 10px; border-radius: 999px; font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 600; color: var(--lacf-text); transition: background .15s, color .15s; }
html body footer.lacf .lacf-lang input:checked + span { background: var(--lacf-fill); color: #fff; }
html body footer.lacf .lacf-lang input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
html body footer.lacf .lacf-btn {
  flex: 1 1 auto; height: 46px; border: 0; border-radius: 999px; cursor: pointer; padding: 0 18px;
  background: var(--lacf-fill) !important; color: #fff !important; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 22px rgba(11,127,98,.25); transition: background .15s, transform .15s;
}
html body footer.lacf .lacf-btn:hover { background: var(--lacf-fill-dark) !important; transform: translateY(-1px); }
html body footer.lacf .lacf-btn::before, html body footer.lacf .lacf-btn::after { display: none !important; }

/* ── legal bar ── */
html body footer.lacf .lacf-legal { border-top: 1px solid var(--lacf-line); background: rgba(0,0,0,.25); padding: 16px 0; }
html body footer.lacf .lacf-legal-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 28px; flex-wrap: wrap; }
html body footer.lacf .lacf-legal-main { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--lacf-dim); line-height: 1.55; }
html body footer.lacf .lacf-copy { color: #E4E7E6; font-weight: 600; white-space: nowrap; }
html body footer.lacf .lacf-reg strong { color: #C9CECC; font-weight: 600; letter-spacing: .03em; }
html body footer.lacf .lacf-legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .8rem; }
html body footer.lacf .lacf-legal-links a { color: var(--lacf-text) !important; }
html body footer.lacf .lacf-legal-links a:hover { color: #fff !important; }

/* ── tablet ── */
@media (max-width: 1100px) {
  html body footer.lacf .lacf-grid { grid-template-columns: 1.4fr .9fr 1.1fr; gap: 36px 32px; }
  html body footer.lacf .lacf-news { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 28px; align-items: center; }
  html body footer.lacf .lacf-news .lacf-h, html body footer.lacf .lacf-news > p { grid-column: 1; }
  html body footer.lacf .lacf-news .lacf-form { grid-column: 2; grid-row: 1 / span 2; }
  html body footer.lacf .lacf-fields { grid-template-columns: 1fr 1fr; }
}

/* ── phone: compact ── */
@media (max-width: 767px) {
  html body footer.lacf { font-size: 14px; }
  html body footer.lacf::after { width: 380px; height: 270px; right: -90px; bottom: -40px; }
  html body :is(.lac-cta-section, section:has(.overlap-99, .getin-touch-wrap)) ~ footer.lacf .lacf-main { padding-top: 66px; }
  html body footer.lacf .lacf-news { padding: 18px 16px 16px; }
  html body footer.lacf .lacf-main { padding: 34px 0 22px; }
  html body footer.lacf .lacf-wrap { padding: 0 16px; }
  html body footer.lacf .lacf-grid { grid-template-columns: 1fr; gap: 22px; }
  /* logo left, socials right, one row; the long description is left out on phones */
  html body footer.lacf .lacf-brand-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  html body footer.lacf .lacf-logo img { width: 104px; }
  html body footer.lacf .lacf-social { gap: 6px; justify-content: flex-end; }
  html body footer.lacf .lacf-social a { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  html body footer.lacf .lacf-social svg { width: 15px !important; height: 15px !important; }
  html body footer.lacf .lacf-about { display: none; }
  /* newsletter first after the logo, compact */
  html body footer.lacf .lacf-news { order: 2; display: block; padding: 18px 16px 16px; border-radius: 18px; }
  html body footer.lacf .lacf-news .lacf-h { margin-bottom: 4px !important; }
  html body footer.lacf .lacf-news > p { font-size: .82rem; margin-bottom: 12px; }
  html body footer.lacf .lacf-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  html body footer.lacf #newsletter input[type="text"], html body footer.lacf #newsletter input[type="email"] { height: 42px !important; padding: 0 14px !important; font-size: 16px !important; }
  html body footer.lacf .lacf-actions { gap: 8px; margin-top: 8px; }
  html body footer.lacf .lacf-lang span { height: 32px; min-width: 38px; }
  html body footer.lacf .lacf-btn { height: 42px; }
  /* links and contact as wrapping pills */
  html body footer.lacf .lacf-links { order: 3; }
  html body footer.lacf .lacf-contact { order: 4; }
  html body footer.lacf .lacf-links .lacf-h, html body footer.lacf .lacf-contact .lacf-h { margin-bottom: 10px !important; font-size: .7rem !important; }
  html body footer.lacf .lacf-links ul, html body footer.lacf .lacf-contact ul { display: flex; flex-wrap: wrap; gap: 8px; }
  html body footer.lacf .lacf-links li + li, html body footer.lacf .lacf-contact li + li { margin-top: 0; }
  html body footer.lacf .lacf-links a, html body footer.lacf .lacf-contact a {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: .84rem;
    background: rgba(255,255,255,.05); border: 1px solid var(--lacf-line); color: #DADEDD !important;
  }
  html body footer.lacf .lacf-contact a { padding-left: 6px; }
  html body footer.lacf .lacf-contact a i { flex-basis: 24px; width: 24px; height: 24px; border-radius: 50%; font-size: .7rem; }
  /* legal bar: centred, small */
  html body footer.lacf .lacf-legal { padding: 14px 0 16px; }
  html body footer.lacf .lacf-legal-inner, html body footer.lacf .lacf-legal-main { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  html body footer.lacf .lacf-legal-main { font-size: .78rem; line-height: 1.55; }
  html body footer.lacf .lacf-legal-links { justify-content: center; gap: 2px 14px; font-size: .8rem; margin-top: 6px; }
}
@media (max-width: 399px) {
  /* name and email stacked: side by side they are only ~120px wide on screen */
  html body footer.lacf .lacf-fields { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  html body footer.lacf .lacf-social a { width: 30px; height: 30px; }
}

/* ── call-to-action band just above the footer: compact on phones ── */
@media (max-width: 767px) {
  html body .lac-cta-section .lac-cta-wrap { min-height: 0 !important; border-radius: 18px !important; }
  html body .lac-cta-section .lac-cta-inner { padding: 18px 18px 16px !important; margin: 0 !important; }
  html body .lac-cta-section .lac-cta-inner > [class*="col-"] { padding: 0 !important; }
  html body .lac-cta-section .lac-cta-heading { font-size: 1.05rem !important; line-height: 1.3 !important; margin-bottom: 2px !important; }
  html body .lac-cta-section .lac-cta-sub { font-size: .8rem !important; }
  html body .lac-cta-section .lac-cta-btn { margin-top: 12px !important; width: 100% !important; flex-direction: row !important; gap: 6px; min-height: 0; padding: 10px 16px !important; border-radius: 999px !important; }
  html body .lac-cta-section .lac-cta-btn-sub { display: none !important; }
  html body .getin-touch-wrap { padding: 20px 18px !important; border-radius: 18px !important; }
  html body .getin-touch-wrap .getin-touch-title h2 { font-size: 1.1rem !important; line-height: 1.3 !important; text-align: left !important; }
  html body .getin-touch-wrap .getin-touch-btn { text-align: left !important; margin-top: 12px; }
  html body .getin-touch-wrap .getin-touch-btn .thm-btn { width: 100%; justify-content: center; padding: 10px 16px !important; }
}

/* ── Quick links / Reach us: open columns on desktop, collapsible rows on phones ── */
html body footer.lacf details.lacf-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; outline: 0; }
html body footer.lacf details.lacf-acc > summary::-webkit-details-marker { display: none; }
html body footer.lacf details.lacf-acc > summary i { display: none; }
@media (max-width: 767px) {
  html body footer.lacf .lacf-grid { gap: 0; }
  html body footer.lacf .lacf-news { margin-bottom: 14px; }
  html body footer.lacf details.lacf-acc { border-top: 1px solid var(--lacf-line); }
  html body footer.lacf details.lacf-acc + details.lacf-acc { border-bottom: 1px solid var(--lacf-line); }
  html body footer.lacf details.lacf-acc > summary { cursor: pointer; margin: 0 !important; padding: 15px 2px !important; font-size: .74rem !important; }
  html body footer.lacf details.lacf-acc > summary i { display: inline-block; color: var(--lacf-green); font-size: .75rem; transition: transform .2s; }
  html body footer.lacf details.lacf-acc[open] > summary i { transform: rotate(180deg); }
  html body footer.lacf details.lacf-acc > summary:focus-visible { outline: 2px solid var(--lacf-green); outline-offset: 2px; border-radius: 6px; }
  html body footer.lacf details.lacf-acc[open] > :not(summary) { padding-bottom: 16px; }
  html body footer.lacf .lacf-brand { margin-bottom: 18px; }
}

/* Subscribe button: deeper green so the white text is readable (WCAG AA 5:1; the brand green gives 2.9:1).
   Needs the #newsletter id to outrank the older rule in lac-frame.css. */
html body footer.lacf #newsletter button.lacf-btn { background: var(--lacf-fill) !important; }
html body footer.lacf #newsletter button.lacf-btn:hover { background: var(--lacf-fill-dark) !important; }
