/* Lee Woodlands Group: theme layer.
   The page design (layout, spacing, type, colour, borders, backgrounds, motion) is built in Elementor and lives in
   Site Settings (Global Colours / Global Fonts) and each element's own settings. This file only carries what
   Elementor cannot: the site shell (header and footer, because Theme Builder is not licensed), the dynamic
   insight cards, the 404 template, and a few small fallbacks. */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/source-serif-4-var.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2'); }

:root {
  --lwg-ink: #0E1722;
  --lwg-ink-2: #172433;
  --lwg-burgundy: #6B2430;
  --lwg-burgundy-dark: #511B25;
  --lwg-burgundy-deep: #3A1018;
  --lwg-rose: #E2B3BB;
  --lwg-bone: #F4F1EB;
  --lwg-white: #FFFFFF;
  --lwg-stone: #D8D2C7;
  --lwg-slate: #3F4B5B;
  --lwg-muted: #5A6676;

  --lwg-serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --lwg-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --lwg-max: 1240px;
  --lwg-gutter: clamp(20px, 4.4vw, 64px);
  --lwg-section: clamp(64px, 8.5vw, 120px);
  --sbw: 0px;
  --lwg-edge: max(var(--lwg-gutter), calc((100vw - var(--sbw) - var(--lwg-max)) / 2));
  --lwg-radius: 2px;
}

/* ---------- Base ---------- */
body.lwg { margin: 0; background: var(--lwg-bone); color: var(--lwg-ink); font-family: var(--lwg-sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.lwg a { color: inherit; }
.lwg img { max-width: 100%; height: auto; }
.lwg :focus-visible { outline: 2px solid var(--lwg-burgundy); outline-offset: 3px; }
.lwg .lwg-engagements :focus-visible, .lwg .lwg-founder :focus-visible, .lwg .lwg-closing :focus-visible, .lwg .lwg-footer :focus-visible, .lwg-footer :focus-visible { outline-color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lwg-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--lwg-ink); color: #fff; padding: 10px 16px; border-radius: var(--lwg-radius); text-decoration: none; }
.lwg-skip:focus { top: 12px; }

/* Hello Elementor resets pink button hover states; neutralise for our controls */
.lwg button.lwg-nav__toggle, .lwg button.lwg-nav__toggle:hover, .lwg button.lwg-nav__toggle:focus { background: none; color: var(--lwg-ink); }
.lwg button.lwg-menu-btn, .lwg button.lwg-menu-btn:hover, .lwg button.lwg-menu-btn:focus { background: none; color: var(--lwg-ink); border-color: var(--lwg-stone); }

/* ---------- Header ---------- */
.lwg-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--lwg-stone); }
.admin-bar .lwg-header { top: 32px; }
.lwg-header__inner { max-width: calc(var(--lwg-max) + 2 * var(--lwg-gutter)); margin: 0 auto; padding: 0 var(--lwg-gutter); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lwg-header__logo { display: block; flex: none; width: clamp(176px, 17vw, 244px); line-height: 0; }
.lwg-header__logo img { width: 100%; height: auto; display: block; }
.lwg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 38px); }
.lwg-nav__item { position: relative; margin: 0; }
.lwg-nav__link, .lwg-nav__toggle { font: 500 15px/1 var(--lwg-sans); letter-spacing: .01em; color: var(--lwg-ink); text-decoration: none; background: none; border: 0; padding: 12px 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.lwg-nav__link::after, .lwg-nav__toggle::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 6px; height: 1px; background: var(--lwg-burgundy); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.lwg-nav__link:hover::after, .lwg-nav__toggle:hover::after, .lwg-nav__item.is-current > .lwg-nav__link::after, .lwg-nav__item.is-current > .lwg-nav__toggle::after { transform: scaleX(1); }
.lwg-nav__chev { transition: transform .2s ease; }
.lwg-nav__toggle[aria-expanded="true"] .lwg-nav__chev { transform: rotate(180deg); }
.lwg-nav__item--cta .lwg-nav__link { background: var(--lwg-burgundy); color: #fff; padding: 15px 24px; border-radius: var(--lwg-radius); transition: background-color .18s ease; }
.lwg-nav__item--cta .lwg-nav__link::after { display: none; }
.lwg-nav__item--cta .lwg-nav__link:hover { background: var(--lwg-burgundy-dark); }
.lwg-nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -18px; top: calc(100% + 8px); min-width: 260px; background: #fff; border: 1px solid var(--lwg-stone); border-top: 2px solid var(--lwg-burgundy); box-shadow: 0 12px 30px rgba(14, 23, 34, .1); }
.lwg-nav__sub[hidden] { display: none; }
/* Invisible bridge across the gap between the button and the menu, so the pointer never leaves the hover area */
.lwg-nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.lwg-nav__sub .lwg-nav__link { display: block; padding: 12px 22px; width: 100%; font-weight: 400; }
.lwg-nav__sub .lwg-nav__link::after { display: none; }
.lwg-nav__sub .lwg-nav__link:hover { background: var(--lwg-bone); color: var(--lwg-burgundy); }
.lwg-menu-btn { display: none; }

@media (max-width: 960px) {
  .admin-bar .lwg-header { top: 46px; }
  .lwg-header__inner { min-height: 78px; flex-wrap: wrap; }
  .lwg-header__logo { width: 190px; }
  .lwg-menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--lwg-stone); border-radius: var(--lwg-radius); padding: 0 14px; min-height: 44px; font: 500 15px/1 var(--lwg-sans); color: var(--lwg-ink); cursor: pointer; }
  .lwg-menu-btn__bars { display: grid; gap: 5px; }
  .lwg-menu-btn__bars i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .is-open .lwg-menu-btn__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .is-open .lwg-menu-btn__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .lwg-nav { display: none; flex-basis: 100%; padding: 4px 0 22px; }
  .is-open .lwg-nav { display: block; }
  .lwg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .lwg-nav__item { border-top: 1px solid var(--lwg-stone); }
  .lwg-nav__link, .lwg-nav__toggle { padding: 15px 2px; font-size: 16px; width: 100%; justify-content: space-between; }
  .lwg-nav__toggle { pointer-events: none; color: var(--lwg-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 4px; }
  .lwg-nav__chev, .lwg-nav__link::after, .lwg-nav__toggle::after { display: none; }
  .lwg-nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; background: transparent; }
  .lwg-nav__sub .lwg-nav__link { padding: 11px 2px; }
  .lwg-nav__item--cta { border-top: 0; padding-top: 14px; }
  .lwg-nav__item--cta .lwg-nav__link { justify-content: center; padding: 16px 22px; }
}

/* Elementor's Site Settings button style (padding, radius, colours) also targets plain <button> elements.
   Re-assert the header controls at higher specificity so the Menu and Services buttons keep their own sizing. */
.lwg-header .lwg-nav__toggle { padding: 12px 2px; border: 0; border-radius: 0; background: none; min-height: 0; }
.lwg-header .lwg-menu-btn { padding: 0 14px; min-height: 44px; border-radius: var(--lwg-radius); }
@media (max-width: 960px) {
  .lwg-header .lwg-nav__toggle { padding: 15px 2px 4px; }
}
@media (max-width: 380px) {
  .lwg-header__logo { width: 160px; }
  .lwg-header__inner { gap: 12px; }
}
@media (max-width: 340px) {
  .lwg-header__logo { width: 140px; }
  .lwg-header .lwg-menu-btn { padding: 0 10px; }
}

/* ---------- Insight cards (shortcode output; Elementor free has no Posts widget) ---------- */
.lwg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px); }
.lwg-card { display: flex; flex-direction: column; border-top: 2px solid var(--lwg-ink); padding-top: 22px; }
.lwg-card__media { display: block; margin-bottom: 22px; overflow: hidden; order: 1; }
.lwg-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .5s ease; }
.lwg-card:hover .lwg-card__media img { transform: scale(1.025); }
.lwg-card__meta { order: 2; margin: 0 0 12px; font: 600 12px/1.4 var(--lwg-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lwg-burgundy); }
.lwg-card__title { order: 3; margin: 0 0 20px; font: 500 clamp(21px, 2vw, 26px)/1.22 var(--lwg-serif); letter-spacing: -.008em; }
.lwg-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.lwg-card__title a:hover, .lwg-card__title a:focus-visible { background-size: 100% 1px; }
.lwg-card__excerpt { order: 4; margin: 0 0 20px; font-size: 16px; line-height: 1.62; color: var(--lwg-slate); }
.lwg-card__more { order: 5; margin-top: auto; align-self: flex-start; font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lwg-card__more:hover { color: var(--lwg-burgundy); }
@media (max-width: 900px) {
  .lwg-cards { grid-template-columns: 1fr; gap: 40px; }
  .lwg-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 28px; align-items: start; }
  .lwg-card__media { grid-column: 1; grid-row: 1 / 5; margin-bottom: 0; }
  .lwg-card__meta, .lwg-card__title, .lwg-card__excerpt, .lwg-card__more { grid-column: 2; }
  .lwg-card__more { margin-top: 0; justify-self: start; }
}
@media (max-width: 560px) {
  .lwg-card { display: flex; }
  .lwg-card__media { margin-bottom: 22px; }
  .lwg-card__more { margin-top: auto; }
}

/* ---------- Footer ---------- */
.lwg-footer { background: var(--lwg-ink); color: rgba(244, 241, 235, .86); }
.lwg-footer__inner { width: min(var(--lwg-max), 100% - 2 * var(--lwg-gutter)); margin: 0 auto; padding: clamp(52px, 6vw, 88px) 0 clamp(40px, 4.4vw, 60px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 44px clamp(24px, 3.4vw, 64px); }
.lwg-footer__logo { display: block; width: 270px; max-width: 100%; margin-bottom: 28px; line-height: 0; }
.lwg-footer__logo img { width: 100%; height: auto; }
.lwg-footer__brand p { margin: 0; max-width: 25em; font-size: 16px; line-height: 1.65; color: rgba(244, 241, 235, .82); }
.lwg-footer__head { margin: 0 0 18px; font: 600 12px/1.4 var(--lwg-sans); letter-spacing: .16em; color: var(--lwg-rose); }
.lwg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lwg-footer__list a { text-decoration: none; font-size: 16px; color: #fff; border-bottom: 1px solid transparent; overflow-wrap: anywhere; }
.lwg-footer__list a:hover { border-color: currentColor; }
.lwg-footer__legal { width: min(var(--lwg-max), 100% - 2 * var(--lwg-gutter)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: rgba(244, 241, 235, .66); }
.lwg-footer__legal p { margin: 0; }
.lwg-footer__legal .lwg-footer__list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lwg-footer__legal .lwg-footer__list a { font-size: 14px; color: rgba(244, 241, 235, .78); }
@media (max-width: 860px) { .lwg-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lwg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .lwg-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .lwg * { transition: none !important; } .lwg-card:hover .lwg-card__media img { transform: none; } }

/* ---------- Fallbacks for Elementor widget limits ---------- */
/* Image Carousel: centre logos of different proportions in equal slots */
.lwg .elementor-image-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; min-height: 72px; }
.lwg .elementor-image-carousel .swiper-slide-image { width: auto; max-width: 100%; max-height: 52px; object-fit: contain; }

@keyframes lwgRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* ---------- 404 ---------- */
.lwg-404 { background: var(--lwg-bone); }
.lwg-404__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: clamp(520px, 44vw, 660px); }
.lwg-404__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: clamp(56px, 7vw, 104px); padding-left: var(--lwg-edge); padding-right: clamp(28px, 5vw, 88px); }
.lwg-404__code { margin: 0; font: 500 clamp(96px, 15vw, 210px)/.85 var(--lwg-serif); letter-spacing: -.04em; color: var(--lwg-burgundy); }
.lwg-404__title { margin: 28px 0 0; font: 500 clamp(30px, 3.4vw, 46px)/1.12 var(--lwg-serif); letter-spacing: -.012em; text-wrap: balance; }
.lwg-404__lede { margin: 20px 0 0; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--lwg-slate); }
.lwg-404__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lwg .lwg-404__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px; border: 1px solid var(--lwg-burgundy); border-radius: var(--lwg-radius); background: var(--lwg-burgundy); color: #fff; font: 500 15px/1 var(--lwg-sans); letter-spacing: .01em; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.lwg .lwg-404__btn:hover, .lwg .lwg-404__btn:focus-visible { background: var(--lwg-burgundy-dark); border-color: var(--lwg-burgundy-dark); color: #fff; }
.lwg .lwg-404__btn--outline { background: transparent; color: var(--lwg-ink); border-color: var(--lwg-ink); }
.lwg .lwg-404__btn--outline:hover, .lwg .lwg-404__btn--outline:focus-visible { background: var(--lwg-ink); border-color: var(--lwg-ink); color: #fff; }
.lwg-404__paths { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--lwg-stone); }
.lwg-404__paths span { font: 600 12px/1.4 var(--lwg-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lwg-muted); }
.lwg-404__paths a { font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lwg-404__paths a:hover { color: var(--lwg-burgundy); }
.lwg-404__media { position: relative; overflow: hidden; min-height: 280px; background: #d9d6cf; }
.lwg-404__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .lwg-404__text > * { animation: lwgRise .9s cubic-bezier(.2, .6, .2, 1) both; }
  .lwg-404__text > :nth-child(2) { animation-delay: .08s; } .lwg-404__text > :nth-child(3) { animation-delay: .16s; }
  .lwg-404__text > :nth-child(4) { animation-delay: .24s; } .lwg-404__text > :nth-child(5) { animation-delay: .32s; }
}
@media (max-width: 860px) {
  .lwg-404__inner { grid-template-columns: 1fr; min-height: 0; }
  .lwg-404__text { padding: clamp(44px, 9vw, 64px) var(--lwg-gutter) 48px; }
  .lwg-404__media { min-height: 0; aspect-ratio: 16 / 10; }
}
