/* ==========================================================================
   Footer template part — footer.html
   .g2rd-footer-modern
   ========================================================================== */

.g2rd-footer-modern {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--wp--preset--color--secondary) 16%, transparent), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, var(--wp--preset--color--blue-dark) 0%, var(--wp--preset--color--blue-soft) 58%, #111827 100%) !important;
  color: var(--wp--preset--color--white);
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 24%, transparent);
}

.g2rd-footer-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.g2rd-footer-modern > * {
  position: relative;
  z-index: 1;
}

.g2rd-footer-wrap {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto !important;
  padding: 4rem 0 2rem;
}

.g2rd-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.g2rd-footer-card {
  min-height: 265px;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 28%, transparent);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  text-align: center;
}

.g2rd-footer-card .wp-block-image {
  margin: 0 auto 1.25rem;
}

.g2rd-footer-card img {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 38px rgba(0, 0, 0, 0.24));
}

.g2rd-footer-card p {
  color: color-mix(in srgb, var(--wp--preset--color--white) 76%, transparent) !important;
  line-height: 1.7;
}

.g2rd-footer-title {
  margin-bottom: 1.25rem !important;
  color: var(--wp--preset--color--secondary) !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g2rd-footer-modern .wp-block-navigation {
  justify-content: center !important;
  width: 100%;
}

.g2rd-footer-modern .wp-block-navigation__container {
  align-items: center !important;
  gap: 0.35rem;
}

.g2rd-footer-modern .wp-block-navigation-item__content {
  width: fit-content;
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--wp--preset--color--white) 84%, transparent) !important;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.g2rd-footer-modern .wp-block-navigation-item__content:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.g2rd-footer-actions {
  gap: 0.75rem;
}

.g2rd-footer-actions .wp-block-button__link {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
  padding: 0.88rem 1.2rem !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.g2rd-footer-account .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--wp--preset--color--secondary) 24%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  color: var(--wp--preset--color--white) !important;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 42%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 42px rgba(0, 0, 0, 0.18);
}

.g2rd-footer-account .wp-block-button__link::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, var(--wp--preset--color--white) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 82%, var(--wp--preset--color--white) 0 34%, transparent 35%),
    linear-gradient(135deg, var(--wp--preset--color--secondary), #f1d0ad);
  box-shadow: 0 0 18px color-mix(in srgb, var(--wp--preset--color--secondary) 55%, transparent);
}

.g2rd-footer-contact .wp-block-button__link {
  background: var(--wp--preset--color--secondary) !important;
  color: #111827 !important;
  border: 1px solid var(--wp--preset--color--secondary);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent);
}

.g2rd-footer-actions .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.g2rd-footer-contact-list {
  margin-top: 1rem;
}

.g2rd-footer-contact-list p {
  margin: 0 0 0.75rem 0;
  color: color-mix(in srgb, var(--wp--preset--color--white) 76%, transparent) !important;
}

.g2rd-footer-contact-list a {
  color: var(--wp--preset--color--white) !important;
  text-decoration: none;
}

.g2rd-footer-contact-list a:hover {
  color: var(--wp--preset--color--secondary) !important;
}

.g2rd-footer-separator {
  width: 100%;
  max-width: 1320px;
  margin: 3rem auto 0 !important;
  border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 24%, transparent) !important;
}

.g2rd-footer-bottom {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto !important;
  padding: 1.35rem 0 1.5rem;
  gap: 1rem;
}

.g2rd-footer-bottom p {
  margin: 0;
  color: color-mix(in srgb, var(--wp--preset--color--white) 64%, transparent) !important;
}

.g2rd-footer-bottom a {
  color: var(--wp--preset--color--white) !important;
  text-decoration: none;
  font-weight: 700;
}

.g2rd-footer-bottom a:hover {
  color: var(--wp--preset--color--secondary) !important;
}

.g2rd-footer-modern .wp-block-social-links {
  gap: 0.6rem;
}

.g2rd-footer-modern .wp-social-link {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 34%, transparent);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: var(--wp--preset--color--white) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.g2rd-footer-modern .wp-social-link:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent) !important;
  border-color: color-mix(in srgb, var(--wp--preset--color--secondary) 70%, transparent);
}

.g2rd-footer-modern .wp-social-link svg {
  fill: var(--wp--preset--color--white) !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 950px) {
  .g2rd-footer-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .g2rd-footer-card {
    min-height: auto;
  }

  .g2rd-footer-bottom {
    flex-direction: column;
    justify-content: center !important;
    text-align: center;
  }

  .g2rd-footer-actions .wp-block-button,
  .g2rd-footer-actions .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}
