/* Santa Gemma — header / footer full-width (local, sans CSS prod) */

body.sg-gp-chrome {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: #2d2d2d;
}

.sg-gp-chrome .site-header {
  display: none !important;
}

.sg-gp-chrome .site-footer .site-info,
.sg-gp-chrome .site-footer .footer-widgets {
  display: none !important;
}

/* ----- Header ----- */
.sg-site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: Poppins, system-ui, sans-serif;
}

.sg-header__bar {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sg-header__logo img {
  display: block;
  height: auto;
  width: 175px;
  max-width: 42vw;
}

.sg-header__nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-header__nav .menu > li {
  position: relative;
  margin: 0;
}

.sg-header__nav .menu > li > a {
  color: #2d2d2d;
  text-decoration: none;
  text-transform: none;
  line-height: 18px;
  letter-spacing: 2px;
  padding: 15px;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 200 !important;
  font-size: 0.8rem;
}

.sg-header__nav .menu > li:hover > a {
  font-weight: 500 !important;
}

.sg-header__nav .menu > li.current-menu-item > a,
.sg-header__nav .menu > li.current-menu-ancestor > a {
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sg-header__nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.sg-header__nav--desktop .menu > li:hover > .sub-menu,
.sg-header__nav--desktop .menu > li:focus-within > .sub-menu {
  display: block;
}

.sg-header__nav .sub-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #2d2d2d;
  text-decoration: none;
}

.sg-header__toggle {
  display: none;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  line-height: 0;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.sg-header__toggle:hover,
.sg-header__toggle:focus-visible {
  background: #f0f0f0;
  border-color: #ccc;
}

.sg-header__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 24px;
}

.sg-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.sg-site-header.is-menu-open .sg-header__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.sg-site-header.is-menu-open .sg-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.sg-site-header.is-menu-open .sg-header__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.sg-header__overlay {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.sg-header__panel {
  display: none;
}

body.sg-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

.sg-site-header {
  position: relative;
  z-index: 1000;
}

/* ----- Footer ----- */
.sg-site-footer {
  width: 100%;
  background: #fff;
  font-family: Poppins, system-ui, sans-serif;
  color: #2d2d2d;
  margin-top: 3rem;
}

.sg-footer__inner {
  padding: 3.5rem 2.5rem 2rem;
  max-width: 100%;
}

.sg-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.sg-footer__brand img {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.sg-footer__social {
  margin-top: 0.5rem;
}

.sg-footer__social a {
  display: inline-flex;
}

.sg-footer__social img {
  width: 22px;
  height: 22px;
}

.sg-footer__heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #020202;
}

.sg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-footer__links li {
  margin: 0 0 0.35rem;
}

.sg-footer__links a {
  color: #000;
  font-weight: 300;
  font-size: 0.95rem;
  text-decoration: none;
}

.sg-footer__links a:hover,
.sg-footer__links a:focus {
  text-decoration: none;
  opacity: 0.75;
}

.sg-footer__links--muted a {
  color: #666;
}

.sg-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.sg-footer__legal p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: #000;
}

/* ----- Mobile ----- */
@media (max-width: 1199px) {
  .sg-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }

  .sg-header__logo img {
    width: 150px;
  }

  .sg-header__nav--desktop {
    display: none;
  }

  .sg-header__toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .sg-header__toggle:hover,
  .sg-header__toggle:focus-visible {
    background: transparent;
    border-color: transparent;
  }

  .sg-header__overlay {
    display: none !important;
  }

  .sg-site-header.is-menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
  }

  .sg-header__panel {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100vw;
    min-height: 0;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .sg-site-header.is-menu-open .sg-header__panel {
    display: block;
  }

  .sg-header__nav--mobile .sub-menu {
    display: none !important;
    position: static;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    list-style: none;
  }

  .sg-header__nav--mobile .menu-item-has-children.is-submenu-open > .sub-menu,
  .sg-header__nav--mobile .menu > li.menu-item-has-children.is-submenu-open:hover > .sub-menu,
  .sg-header__nav--mobile .menu > li.menu-item-has-children.is-submenu-open:focus-within > .sub-menu {
    display: block !important;
  }

  .sg-header__panel .menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 0;
    margin: 0;
    max-width: none;
    width: 100%;
    text-align: center;
  }

  .sg-header__panel .menu > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sg-header__panel .menu > li:last-child {
    border-bottom: 0;
  }

  .sg-header__panel a,
  .sg-header__panel a:hover,
  .sg-header__panel a:focus,
  .sg-header__panel a:visited,
  .sg-header__panel a:active {
    color: #2d2d2d !important;
    text-decoration: none !important;
    box-shadow: none;
  }

  .sg-header__toggle:focus,
  .sg-header__sub-toggle:focus {
    outline: none;
  }

  .sg-header__toggle:focus-visible {
    outline: 2px solid #2d2d2d;
    outline-offset: 3px;
  }

  .sg-header__n1-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    max-width: 100%;
    padding: 0.15rem 0;
  }

  .sg-header__panel .menu > li > a,
  .sg-header__panel .sg-header__n1-row > a {
    font-size: clamp(1.35rem, 4.2vw, 1.6rem);
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 1.05rem 0;
    text-align: center;
    display: inline-block;
  }

  .sg-header__sub-toggle {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .sg-header__sub-toggle:hover,
  .sg-header__sub-toggle:focus-visible {
    background: rgba(45, 45, 45, 0.06);
  }

  .sg-header__sub-toggle:focus-visible {
    outline: 2px solid #2d2d2d;
    outline-offset: 2px;
  }

  .sg-header__sub-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #2d2d2d;
    border-bottom: 1.5px solid #2d2d2d;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.22s ease;
  }

  .sg-header__panel .menu > li.is-submenu-open .sg-header__sub-toggle::before {
    top: 54%;
    transform: translate(-50%, -30%) rotate(-135deg);
  }


  .sg-header__panel .sub-menu {
    width: 100%;
    padding: 0 0 0.85rem;
  }

  .sg-header__panel .sub-menu li {
    margin: 0;
    width: 100%;
    border: 0;
  }

  .sg-header__panel .sub-menu a {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 0.4rem 1rem;
    color: #6a6a6a !important;
    text-align: center;
  }

  .sg-header__panel .sub-menu a:hover,
  .sg-header__panel .sub-menu a:focus-visible {
    color: #2d2d2d !important;
  }

  .sg-header__panel .menu > li.current-menu-item > a,
  .sg-header__panel .menu > li.current-menu-ancestor > a,
  .sg-header__panel .sg-header__n1-row > a {
    font-weight: 700;
    color: #2d2d2d !important;
  }

  .sg-header__panel .sub-menu .current-menu-item > a {
    font-weight: 500;
    color: #2d2d2d !important;
  }

  .sg-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sg-footer__grid {
    grid-template-columns: 1fr;
  }

  .sg-footer__inner {
    padding-inline: 1.25rem;
  }
}
