/* Sunderland Home Grown redesign: footer.
   Generated by scripts/build-duda.mjs from the files in duda/. Edit those, not this file. */
/* ---------- 6. Footer ---------- */
html #dm .dmInner div.dmFooter {
  background-color: var(--shg-forest) !important;
  background-image: none !important;
  color: #fff;
}
html #dm .dmInner div.dmFooter::before {
  background-color: transparent !important;
  opacity: 0 !important;
}
html #dm .dmInner div.dmFooter :is(p, div, span, li, h1, h2, h3, h4, h5, h6, b, strong) { color: #fff !important; font-family: var(--shg-font) !important; }
html #dm .dmInner div.dmFooter a {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: var(--shg-gold) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: FOOTER, ALL DEVICES (editor-safe)
   Where: Developer Mode > CSS > "…AFFECTS ALL DEVICES" (or linked via footer.css)
   How:   paste at the very END of that panel, after the menu files.

   Editor-safe: every rule targets the CLASS ON THE WIDGET ITSELF (which Duda keeps)
   and styles whatever is inside it. Duda's text editor rewrites a widget's inner HTML
   (adds <span>/<font> with inline styles, drops inner classes), so nothing here relies
   on the inner markup. Editing text, links or pictures in the editor keeps the design.
   ===================================================================== */

/* The footer bar: forest green, full width, no old padding or overlay */
html #dm .dmInner div.dmFooter {
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--shg-forest) !important;
  background-image: none !important;
}
html #dm .dmInner div.dmFooter::before { opacity: 0 !important; background: transparent !important; }

html #dm .shg-footer.shg-footer {
  max-width: 88rem;
  margin: 0 auto;
  padding: 112px 40px 0;
  text-align: left !important;
  color: #fff;
}
/* Duda rows and columns: let the footer's own grid decide the widths */
html #dm .shg-footer.shg-footer .dmRespRow {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
}
html #dm .shg-footer.shg-footer .dmRespColsWrapper {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
html #dm .shg-footer.shg-footer .dmRespCol {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Every text widget in the footer, and everything Duda puts inside it ---------- */
html #dm .shg-footer.shg-footer .dmNewParagraph {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  color: #fff !important;
  font-family: var(--shg-font) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
}
/* Whatever tags the editor adds inside (span, font, div, p, h1-h6, b…) follow the widget */
html #dm .shg-footer.shg-footer .dmNewParagraph * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  text-align: inherit !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph :is(b, strong) { font-weight: 700 !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph + .dmNewParagraph { margin-top: 16px !important; }

/* ---------- Brand: the name, built large ---------- */
html #dm .shg-footer.shg-footer .shg-footer__brand .dmRespColsWrapper {
  grid-template-columns: 2fr 1fr;
  align-items: end;
  gap: 40px;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__name {
  font-size: clamp(2.75rem, 6.6vw, 6.25rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__name * { font-weight: 700 !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__tagline {
  margin-top: 24px !important;
  max-width: 38ch !important;
  color: var(--shg-leaf-pale) !important;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem) !important;
  line-height: 1.35 !important;
}
html #dm .shg-footer.shg-footer .shg-footer__mark .imageWidget {
  width: 100% !important;
  max-width: 384px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}
html #dm .shg-footer.shg-footer .shg-footer__mark img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
}

/* ---------- Columns: headings, link lists, opening times, contact ---------- */
html #dm .shg-footer.shg-footer .shg-footer__nav { margin-top: 96px !important; }
html #dm .shg-footer.shg-footer .shg-footer__nav .dmRespColsWrapper {
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1.4fr));
  gap: 40px;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__heading {
  margin-bottom: 12px !important;
  color: var(--shg-gold) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__heading * { font-weight: 700 !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__heading + .dmNewParagraph { margin-top: 0 !important; }

/* Every footer link: white, underlined, big enough to tap */
html #dm .shg-footer.shg-footer a {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, 0.35) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  overflow-wrap: anywhere;
  transition: text-decoration-color .15s ease;
}
html #dm .shg-footer.shg-footer a:hover { text-decoration-color: var(--shg-gold) !important; }
html #dm .shg-footer.shg-footer a:focus-visible {
  outline: 3px solid var(--shg-gold) !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}
/* Link lists: each link on its own line, 44px tall, whatever line breaks the editor keeps */
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__links a {
  display: flex !important;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__links br { display: none !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__contact a { min-height: 36px; }

/* ---------- Supported by ---------- */
html #dm .shg-footer.shg-footer .shg-footer__support {
  margin-top: 80px !important;
  padding: 40px 40px 0 !important;
  background-color: #0E2615 !important;
  border-radius: 3rem 0.375rem 0 0;
}
html #dm .shg-footer.shg-footer .shg-footer__support-tiles {
  padding: 24px 40px 40px !important;
  background-color: #0E2615 !important;
  border-radius: 0 0 3rem 0.375rem;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__support-heading {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem) !important;
  font-weight: 700 !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__support-heading * { font-weight: 700 !important; }
html #dm .shg-footer.shg-footer .shg-footer__support-tiles .dmRespColsWrapper {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
html #dm .shg-footer.shg-footer .shg-footer__tile {
  display: flex !important;
  align-items: flex-end;
  min-height: 112px !important;
  padding: 16px !important;
  border-radius: 1.5rem 0.25rem;
  background-color: var(--shg-forest-700);
}
html #dm .shg-footer.shg-footer .shg-footer__tile--logo {
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
html #dm .shg-footer.shg-footer .shg-footer__tile .imageWidget {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
html #dm .shg-footer.shg-footer .shg-footer__tile img {
  display: block;
  max-height: 64px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0 !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__tile-text {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__tile-text * { font-weight: 700 !important; }

/* ---------- Bottom line ---------- */
html #dm .shg-footer.shg-footer .shg-footer__base { padding: 32px 0 40px !important; }
html #dm .shg-footer.shg-footer .shg-footer__base .dmRespColsWrapper {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__copy { color: var(--shg-leaf-pale) !important; font-size: 15px !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__legal { font-size: 15px !important; text-align: right !important; }
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__legal a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
}
html #dm .shg-footer.shg-footer .dmNewParagraph.shg-footer__legal a + a { margin-left: 24px !important; }

/* ===== Desktop and tablet ===== */
/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: FOOTER, DESKTOP AND TABLET
   Where: Developer Mode > CSS > "…AFFECTS DESKTOP AND TABLET DEVICES"
   How:   paste at the very END of that panel.
   Desktop uses the all-devices layout. This file only adjusts tablets
   and small laptops (under 1280px wide).
   ===================================================================== */

/* Small laptops: tighter side padding */
@media screen and (max-width: 1279px) {
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer { padding: 96px 32px 0; }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespColsWrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1.3fr));
    gap: 32px;
  }
}

/* Tablets (768px to 1023px): three link columns on one row,
   opening times and "Find us" side by side underneath; logos three across */
@media screen and (max-width: 1023px) {
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer { padding: 80px 32px 0; }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__brand .dmRespColsWrapper {
    grid-template-columns: 1fr 220px;
    gap: 32px;
  }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav { margin-top: 72px !important; }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespColsWrapper {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 32px;
  }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespCol:nth-child(-n + 3) { grid-column: span 2; }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespCol:nth-child(n + 4) { grid-column: span 3; }
  html body:not(.dmMobileBody) #dm .shg-footer.shg-footer.shg-footer .shg-footer__support-tiles .dmRespColsWrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Mobile ===== */
/* =====================================================================
   SUNDERLAND HOME GROWN REDESIGN: FOOTER, MOBILE
   Where: Developer Mode > CSS > "…AFFECTS MOBILE DEVICES"
   How:   paste at the very END of that panel.
   Layout on phones: name and leaves stacked, link lists two across,
   opening times and "Find us" full width, logos two across.
   ===================================================================== */

html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer { padding: 64px 16px 0; }

/* Brand: name, tagline, then a smaller leaves graphic */
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__brand .dmRespColsWrapper {
  grid-template-columns: 1fr;
  gap: 32px;
}
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .dmNewParagraph.shg-footer__name { font-size: 44px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .dmNewParagraph.shg-footer__tagline { font-size: 20px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__mark .imageWidget {
  max-width: 200px !important;
  margin: 0 !important;
}

/* Links two across; opening times and "Find us" full width */
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav { margin-top: 56px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespColsWrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__nav .dmRespCol:nth-child(n + 4) { grid-column: 1 / -1; }

/* Supported by: tighter box, logos two across */
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__support {
  margin-top: 56px !important;
  padding: 24px 20px 0 !important;
}
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__support-tiles { padding: 16px 20px 24px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__support-tiles .dmRespColsWrapper {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__tile { min-height: 96px !important; padding: 14px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__tile img { max-height: 48px !important; }
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .dmNewParagraph.shg-footer__tile-text { font-size: 16px !important; }

/* Bottom line stacked */
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .shg-footer__base .dmRespColsWrapper {
  grid-template-columns: 1fr;
  gap: 4px;
}
html body.dmMobileBody #dm .shg-footer.shg-footer.shg-footer .dmNewParagraph.shg-footer__legal { text-align: left !important; }
