/* ==========================================================================
   FOOTER — redesign (site-wide). Pure CSS restyle of the existing footer
   blocks; no markup/CMS changes. Compact, original lime-green palette with
   soft colourful orbs. Loaded after style.css.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

footer .main-footer-region {
  --ink: #0f243e;
  --lime: #a6cf37;
  --lime-soft: #d0e892;
  --green-deep: #3d6208;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 0;
  background: linear-gradient(135deg, #dbeeaa 0%, var(--lime-soft) 45%, #c3e07a 100%);
  color: var(--ink);
  font-family: var(--sans);
}
footer .main-footer-region * { box-sizing: border-box; }

/* ----- Orbs: glossy spheres in brand greens + a touch of teal and sun ------ */
footer .main-footer-region::before,
footer .main-footer-region::after,
footer .main-footer-region .container::before,
footer .main-footer-region .container::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
/* big lime sphere, top right (replaces the old white-lines graphic) */
footer .main-footer-region::after {
  background-image: radial-gradient(circle at 32% 28%, #ecf8c4 0%, #b9dc57 38%, #8fbf1f 100%);
  top: -9rem;
  right: -5rem;
  left: auto;
  bottom: auto;
  width: 19rem;
  height: 19rem;
  opacity: 0.85;
  box-shadow: 0 30px 60px -20px rgba(100, 150, 10, 0.45);
  background-size: auto;
  background-position: center;
}
/* soft white glow, bottom left */
footer .main-footer-region::before {
  bottom: -9rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 68%);
}
/* small teal sphere */
footer .main-footer-region .container::before {
  top: -1.25rem;
  right: 24%;
  width: 3.25rem;
  height: 3.25rem;
  background: radial-gradient(circle at 30% 28%, #d9fbef 0%, #52cfae 55%, #2aa88a 100%);
  box-shadow: 0 10px 20px -8px rgba(30, 150, 120, 0.5);
}
/* small sun-yellow sphere */
footer .main-footer-region .container::after {
  bottom: 7rem;
  left: 42%;
  width: 2.1rem;
  height: 2.1rem;
  background: radial-gradient(circle at 30% 28%, #fff6c4 0%, #f6d44a 60%, #e5b81f 100%);
  box-shadow: 0 8px 16px -6px rgba(200, 150, 0, 0.5);
}

footer .main-footer-region .container {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "logo"
    "about"
    "info"
    "links"
    "social"
    "copy";
  gap: 0;
  align-items: start;
  max-width: 1200px;
  padding: 0 1.5rem;
}
@media (min-width: 1000px) {
  footer .main-footer-region .container {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.5fr) minmax(0, 1.6fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    grid-template-areas:
      "logo   links info"
      "about  links info"
      "social copy  copy";
  }
}
footer .main-footer-region .container > * { position: relative; z-index: 3; }

/* Reset geometry inherited from the old footer grid */
footer .main-footer-region .container > .footer-logo,
footer .main-footer-region .container > .footer-about-qims,
footer .main-footer-region .container > .footer-quick-links,
footer .main-footer-region .container > .footer-important-info,
footer .main-footer-region .container > .footer-social-icons,
footer .main-footer-region .container > .footer-copyright {
  align-self: start;
  justify-self: stretch;
  width: auto;
}
footer .main-footer-region .container > .footer-logo { grid-area: logo; }
footer .main-footer-region .container > .footer-about-qims { grid-area: about; }
footer .main-footer-region .container > .footer-quick-links { grid-area: links; }
footer .main-footer-region .container > .footer-important-info { grid-area: info; }
footer .main-footer-region .container > .footer-social-icons { grid-area: social; }
footer .main-footer-region .container > .footer-copyright { grid-area: copy; }

/* ----- Brand ------------------------------------------------------------- */
footer .main-footer-region .footer-logo div:has(> img) {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(15, 36, 62, 0.45);
}
footer .main-footer-region .footer-logo img { width: 100%; height: 100%; object-fit: contain; }
footer .main-footer-region .footer-about-qims { margin-top: 1.1rem; }
footer .main-footer-region .footer-about-qims p {
  width: auto;
  max-width: 28rem;
  margin: 0;
  font: 500 0.98rem/1.7 var(--sans);
  letter-spacing: 0;
  color: rgba(15, 36, 62, 0.82);
}

/* ----- Quick links ------------------------------------------------------- */
footer .main-footer-region .footer-quick-links { margin-top: 2rem; }
@media (min-width: 1000px) {
  footer .main-footer-region .footer-quick-links { margin-top: 0; }
}
footer .main-footer-region .footer-quick-links > h2,
footer .main-footer-region .footer-important-info .main-wrapper > .heading,
footer .main-footer-region .footer-important-info .main-wrapper > .heading div {
  margin: 0 0 0.9rem;
  font: 800 0.72rem/1.2 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
}
footer .main-footer-region .footer-quick-links > ul { margin: 0; padding: 0; list-style: none; }
footer .main-footer-region .footer-quick-links > ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font: 700 1rem/1.3 var(--sans);
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.3s var(--ease);
}
footer .main-footer-region .footer-quick-links > ul li a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
footer .main-footer-region .footer-quick-links > ul li a:hover,
footer .main-footer-region .footer-quick-links > ul li a:focus-visible {
  color: var(--green-deep);
  text-decoration: none;
  gap: 0.8rem;
}
footer .main-footer-region .footer-quick-links > ul li a:hover::after,
footer .main-footer-region .footer-quick-links > ul li a:focus-visible::after { opacity: 1; transform: none; }

/* ----- Contact details (2 x 2 glass cards) ------------------------------- */
footer .main-footer-region .footer-important-info { margin-top: 2rem; }
@media (min-width: 1000px) {
  footer .main-footer-region .footer-important-info { margin-top: 0; }
}
footer .main-footer-region .footer-important-info > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
}
footer .main-footer-region .footer-important-info .main-wrapper {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  align-items: center;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background-color 0.3s ease, box-shadow 0.35s ease;
}
footer .main-footer-region .footer-important-info .main-wrapper:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px -20px rgba(15, 36, 62, 0.45);
}
footer .main-footer-region .footer-important-info .main-wrapper > .icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px -8px rgba(15, 36, 62, 0.4);
}
footer .main-footer-region .footer-important-info .main-wrapper > .icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}
footer .main-footer-region .footer-important-info .main-wrapper > .heading,
footer .main-footer-region .footer-important-info .main-wrapper > .heading div {
  grid-column: 2;
  margin: 0;
}
footer .main-footer-region .footer-important-info .main-wrapper > .data {
  grid-column: 2;
  max-width: none;
}
footer .main-footer-region .footer-important-info .main-wrapper > .data p {
  margin: 0;
  font: 600 0.95rem/1.45 var(--sans);
  letter-spacing: 0;
  color: var(--ink);
}

/* ----- Bottom bar -------------------------------------------------------- */
footer .main-footer-region .footer-social-icons,
footer .main-footer-region .footer-copyright {
  margin-top: 1.75rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid rgba(15, 36, 62, 0.16);
  font: 600 0.85rem/1.5 var(--sans);
  color: rgba(15, 36, 62, 0.7);
}
footer .main-footer-region .footer-copyright p { margin: 0; letter-spacing: 0; }
footer .main-footer-region .footer-copyright { text-align: left; }
@media (min-width: 1000px) {
  footer .main-footer-region .footer-copyright { text-align: right; }
}
@media (max-width: 999px) {
  footer .main-footer-region .footer-social-icons { padding-bottom: 0.25rem; }
  footer .main-footer-region .footer-copyright { margin-top: 0; border-top: 0; padding-top: 0.5rem; }
}
footer .main-footer-region .footer-social-icons ul.linkicon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer .main-footer-region .footer-social-icons ul.linkicon::before {
  content: "Follow us";
  margin: 0 0.8rem 0 0;
  font: 800 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
}
footer .main-footer-region .footer-social-icons ul.linkicon a.linkicon__item {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
footer .main-footer-region .footer-social-icons ul.linkicon a.linkicon__item:hover,
footer .main-footer-region .footer-social-icons ul.linkicon a.linkicon__item:focus-visible {
  background: var(--ink);
  color: var(--lime);
  transform: translateY(-3px);
}
footer .main-footer-region .footer-social-icons ul.linkicon a.linkicon__item:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
footer .main-footer-region .footer-social-icons .linkicon__icon { font-size: 0.95rem; }

@media (max-width: 999px) {
  /* keep the decorative orbs from crowding small screens */
  footer .main-footer-region::after { width: 13rem; height: 13rem; top: -6.5rem; right: -4rem; }
  footer .main-footer-region .container::before { right: 12%; }
  footer .main-footer-region .container::after { left: auto; right: 10%; bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  footer .main-footer-region * { transition: none !important; }
}
