/* Great Website Now polish: footer, mega menu and heading fixes, shared by every copied site. */

:root { --gwn-accent: var(--ss-footer-color, #1f2937); --gwn-accent-ink: var(--ss-footer-text-color, #fff); }

/* ---------- headings ---------- */
.gwn-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- footer ---------- */
/* the original sites' footer rules (centered, inline lists) don't apply inside the new footer */
.gwnf, .gwnf * { box-sizing: border-box; }
.gwnf { text-align: left !important; }
.gwnf .gwnf__nav { display: grid !important; }
.gwnf ul, .gwnf li { display: block !important; text-align: inherit !important; margin-left: 0; padding-left: 0; float: none !important; }
.gwnf p, .gwnf div, .gwnf nav { text-align: inherit !important; }
.gwnf .gwnf__rows li { display: flex !important; }
.gwnf .gwnf__social { display: flex !important; }
.gwnf .gwnf__bottom-in { display: flex !important; }
.gwnf { --gwnf-pad: clamp(20px, 4vw, 40px); color: var(--gwnf-ink, var(--ss-footer-text-color, #fff)); font-size: 15px; line-height: 1.6; text-align: left; }
.gwnf a { color: inherit; text-decoration: none; }
.gwnf a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gwnf svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.gwnf__wrap { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 var(--gwnf-pad); }

.gwnf__cta { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 5%, transparent); }
.gwnf__cta-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.gwnf__cta-title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 700; color: var(--gwnf-head, var(--ss-footer-headings-color, inherit)); font-family: var(--ss-title-font-family, inherit); }
.gwnf__cta-text { margin: 6px 0 0; opacity: .82; }
.gwnf__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gwnf__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: transform .15s ease, background-color .15s ease; }
.gwnf__btn:hover { text-decoration: none !important; transform: translateY(-1px); }
.gwnf__btn--solid { background: currentColor; }
.gwnf__btn--solid { color: var(--gwnf-bg, var(--ss-footer-color, #1f2937)) !important; background: var(--gwnf-ink, var(--ss-footer-text-color, #fff)); }
.gwnf__btn--line { border: 2px solid color-mix(in srgb, currentColor 55%, transparent); }
.gwnf__btn--line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.gwnf__main { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr) minmax(270px, 1fr); gap: 44px; padding-top: 52px; padding-bottom: 44px; }
.gwnf__logo { display: inline-block; line-height: 0; }
.gwnf img { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.gwnf__logo img { display: block; max-width: 200px; max-height: 84px; width: auto; height: auto; }
.gwnf__logo--card { background: #fff; padding: 12px 16px; border-radius: 14px; }
.gwnf__logo--card-dark { background: #111827; padding: 12px 16px; border-radius: 14px; }
.gwnf__logo--round img { border-radius: 12px; }
.gwnf__name { font-size: 22px; font-weight: 700; }
.gwnf__about { margin: 16px 0 0; opacity: .82; max-width: 36ch; }
.gwnf__social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.gwnf__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: background-color .15s ease; }
.gwnf__social a:hover { background: color-mix(in srgb, currentColor 14%, transparent); text-decoration: none; }
.gwnf__social i { font-size: 16px; }

.gwnf__nav { display: grid; gap: 28px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.gwnf__nav--2 { --cols: 2; }
.gwnf__nav--3 { --cols: 3; }
.gwnf__title { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; color: var(--gwnf-head, var(--ss-footer-headings-color, inherit)); }
.gwnf__title--gap { margin-top: 26px; }
.gwnf ul { list-style: none; margin: 0; padding: 0; }
.gwnf__links li { margin: 0 0 9px; break-inside: avoid; }
.gwnf .gwnf__links--split { columns: 2; column-gap: 32px; display: block !important; }
.gwnf .gwnf__links--split li { display: block !important; }
.gwnf__links a { opacity: .9; }
.gwnf__rows li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.gwnf__rows svg { margin-top: 3px; opacity: .75; }
.gwnf__rows a, .gwnf__rows span { overflow-wrap: anywhere; }
.gwnf__hours li { margin: 0 0 6px; opacity: .9; }

.gwnf__bottom { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 13px; }
.gwnf__bottom-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; padding-top: 18px; padding-bottom: 20px; text-align: center; opacity: .85; }
.gwnf__bottom-in span + span::before { content: "|"; margin: 0 12px; opacity: .5; }

@media (max-width: 960px) {
  .gwnf__main { grid-template-columns: 1fr 1fr; }
  .gwnf__brand { grid-column: 1 / -1; }
  .gwnf__nav { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .gwnf { text-align: center !important; }
  .gwnf__cta-in { flex-direction: column; text-align: center; padding-top: 28px; padding-bottom: 28px; }
  .gwnf__cta-actions { justify-content: center; width: 100%; }
  .gwnf__btn { justify-content: center; flex: 1 1 100%; }
  .gwnf__main { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 32px; }
  .gwnf__about { margin-left: auto; margin-right: auto; }
  .gwnf__social { justify-content: center; }
  .gwnf__nav { --cols: 1; gap: 24px; }
  .gwnf__nav--2, .gwnf__nav--3 { --cols: 2; }
  .gwnf__rows li { justify-content: center; }
  .gwnf__bottom-in { flex-direction: column; }
  .gwnf__bottom-in span + span::before { content: none; }
}

/* ---------- mega menu (desktop) ---------- */
.gwn-mega__name, .gwn-mega__desc, .gwn-mega__title, .gwn-mega__lede { display: block; }
@media (min-width: 968px) {
  .primary-navigation .page-listing > li.gwn-mm > ul.gwn-mega {
    display: none; box-sizing: border-box; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: min(var(--gwn-mega-w, 720px), calc(100vw - 32px)); margin: 0; padding: 0; z-index: 1000;
    background: #fff !important; color: #1f2937; text-align: left; white-space: normal; line-height: 1.4;
    border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08);
    grid-template-columns: 240px 1fr; overflow: hidden; font-size: 15px;
  }
  .primary-navigation .page-listing > li.gwn-mm > ul.gwn-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .primary-navigation .page-listing > li.gwn-mm.open > ul.gwn-mega { display: grid; animation: gwn-mega-in .16s ease-out; }
  @keyframes gwn-mega-in { from { opacity: 0; margin-top: 6px; } to { opacity: 1; margin-top: 0; } }
  .gwn-mega > li { display: block !important; padding: 0 !important; line-height: 1.4 !important; font-size: 15px !important; margin: 0 !important; }
  .gwn-mega > li.gwn-mega__intro { padding: 26px 24px !important; display: flex !important; }
  .gwn-mega > li.gwn-mega__items { padding: 14px !important; display: grid !important; }
  .gwn-mega__intro { grid-row: 1 / span 20; padding: 26px 24px !important; background: var(--gwn-accent, #1f2937); color: var(--gwn-accent-ink, #fff); display: flex !important; flex-direction: column; gap: 10px; }
  .gwn-mega__intro a { color: inherit !important; }
  .gwn-mega__title { font-size: 20px; font-weight: 700; line-height: 1.25; font-family: var(--ss-title-font-family, inherit); }
  .gwn-mega__lede { font-size: 14px; opacity: .85; }
  .gwn-mega__all { margin-top: auto; font-weight: 700; font-size: 14px; }
  .gwn-mega__all::after { content: " ›"; }
  .gwn-mega__call { font-size: 14px; font-weight: 700; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
  .gwn-mega__items { padding: 14px !important; display: grid !important; grid-template-columns: repeat(var(--gwn-mega-cols, 1), minmax(0, 1fr)); gap: 4px; align-content: start; }
  .gwn-mega__items a { display: block !important; padding: 12px 14px; border-radius: 10px; color: #1f2937 !important; text-decoration: none !important; transition: background-color .12s ease; }
  .gwn-mega__items a:hover, .gwn-mega__items a:focus-visible { background: color-mix(in srgb, var(--gwn-accent, #1f2937) 8%, #fff); }
  .gwn-mega__items a.active .gwn-mega__name { text-decoration: underline 2px; text-underline-offset: 4px; }
  .gwn-mega__name { font-weight: 700; font-size: 15px; color: #111827; }
  .gwn-mega__desc { margin-top: 3px; font-size: 13px; color: #4b5563; }
  .gwn-mega__items div { background: transparent !important; padding: 0 !important; }
}
/* phones and small tablets: the same links as a simple list inside the slide-out menu */
@media (max-width: 967px) {
  .gwn-mega__intro, .gwn-mega__desc { display: none !important; }
  .gwn-mega__items { display: block; padding: 0; }
  .gwn-mega__items a { display: block; padding: 6px 0; }
}

/* ---------- headings on phones: whole words, no letters spilling onto the next line ---------- */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 480px) {
  .posts h1, .posts .post--title h1 { font-size: clamp(30px, 10.5vw, 52px) !important; line-height: 1.1 !important; }
}

.gwn-nowrap { white-space: nowrap; }

/* ---------- mega menu on WordPress copies (desktop menu only) ---------- */
@media (min-width: 992px) {
  .wp-site li.gwn-mm { position: relative; }
  .wp-site li.gwn-mm > ul.gwn-mega {
    display: none !important; box-sizing: border-box; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: min(var(--gwn-mega-w, 640px), calc(100vw - 32px)); margin: 0; padding: 0 !important; z-index: 1000; list-style: none;
    background: #fff !important; color: #1f2937; text-align: left; white-space: normal; line-height: 1.4; text-transform: none; letter-spacing: normal;
    border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08);
    grid-template-columns: 230px 1fr; overflow: hidden; font-size: 15px; visibility: visible !important; opacity: 1 !important; height: auto !important;
  }
  .wp-site li.gwn-mm > ul.gwn-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .wp-site li.gwn-mm:hover > ul.gwn-mega, .wp-site li.gwn-mm:focus-within > ul.gwn-mega { display: grid !important; animation: gwn-mega-in .16s ease-out; }
  .wp-site .gwn-mega > li { display: block !important; float: none !important; width: auto !important; margin: 0 !important; border: 0 !important; background: none; }
  .wp-site .gwn-mega > li.gwn-mega__intro { text-align: left !important; align-items: flex-start; padding: 24px 22px !important; background: var(--gwn-accent, #1f2937) !important; color: var(--gwn-accent-ink, #fff); display: flex !important; flex-direction: column; gap: 10px; }
  .wp-site .gwn-mega__intro a { color: inherit !important; padding: 0 !important; background: none !important; font-size: inherit; line-height: 1.35; text-transform: none !important; letter-spacing: normal !important; }
  .wp-site .gwn-mega__title { font-size: 19px !important; font-weight: 700; }
  .wp-site .gwn-mega__lede { font-size: 14px; opacity: .85; }
  .wp-site .gwn-mega__all { margin-top: auto; font-weight: 700; font-size: 14px !important; }
  .wp-site .gwn-mega__all::after { content: " ›"; }
  .wp-site .gwn-mega__call { font-size: 14px !important; font-weight: 700; padding-top: 12px !important; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
  .wp-site .gwn-mega > li.gwn-mega__items { padding: 12px !important; display: grid !important; grid-template-columns: repeat(var(--gwn-mega-cols, 1), minmax(0, 1fr)); gap: 4px; align-content: start; }
  .wp-site .gwn-mega__items a { display: block !important; padding: 12px 14px !important; border-radius: 10px; color: #1f2937 !important; background: none !important; text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.35 !important; font-size: 15px !important; }
  .wp-site .gwn-mega__items a:hover, .wp-site .gwn-mega__items a:focus-visible { background: color-mix(in srgb, var(--gwn-accent, #1f2937) 8%, #fff) !important; }
  .wp-site .gwn-mega__name { font-weight: 700; color: #111827; }
  .wp-site .gwn-mega__desc { margin-top: 3px; font-size: 13px; color: #4b5563; }
}
