/* ==========================================================================
   RADMED SERVICES STRIP AND FOOTER
   ========================================================================== */

:root {
  --footer-blue: #007ead;
  --footer-blue-dark: #006a93;
  --footer-navy: #164366;
  --footer-text: #20262b;
  --footer-muted: #56616a;
  --footer-border: #e3eaee;
  --footer-white: #ffffff;
}


/* ==========================================================================
   SERVICES SECTION ABOVE FOOTER
   ========================================================================== */

.footer-services {
  padding: 50px 0 48px;
  color: var(--footer-white);
  background: var(--footer-blue);
}

.footer-services .container,
.reference-footer .container {
  width: min(100% - 40px, 1480px);
  max-width: 1480px;
  margin-inline: auto;
}

.footer-services-heading {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 34px;
  text-align: center;
}

.footer-services-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.footer-services-heading p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* The eyebrow will disappear when its admin field is left empty. */
.footer-services-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--footer-white);
  font-size: 0.875rem;
}

.footer-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 28px;
}

.footer-service-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 185px;
  padding: 24px 24px 26px 20px;
  color: #232b32;
  background: var(--footer-white);
  border-radius: 30px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.footer-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 59, 87, 0.16);
}

.footer-service-card:focus-visible {
  outline: 3px solid var(--footer-white);
  outline-offset: 6px;
  box-shadow: inset 0 0 0 3px #153e63;
}

.footer-service-icon {
  display: block;
  width: 46px;
  height: 46px;
  color: var(--footer-blue);
}

.footer-service-icon svg,
.footer-service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-service-copy {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.footer-service-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.55vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.footer-service-copy p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.footer-services-action {
  margin-top: 30px;
  text-align: center;
}

.footer-services-action a {
  display: inline-block;
  padding: 10px 18px;
  color: var(--footer-white);
  font-size: 1rem;
  text-underline-offset: 5px;
}


/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */

.site-footer.reference-footer {
  padding-top: 42px;
  color: var(--footer-text);
  background: var(--footer-white);
  font-size: 0.98rem;
}

.footer-columns {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(0, 0.75fr)
    minmax(0, 1.1fr);
  align-items: start;
  gap: 38px;
  padding-bottom: 34px;
}


/* ==========================================================================
   FOOTER IDENTITY AND LOGO
   ========================================================================== */

.footer-identity {
  min-width: 0;
  text-align: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  color: #133f69;
  text-decoration: none;
}

.footer-logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.footer-wordmark {
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.footer-tagline {
  max-width: 620px;
  margin: 12px auto 20px;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 26px;
  color: var(--footer-white);
  background: #202020;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact-button:hover {
  color: var(--footer-white);
  background: var(--footer-navy);
  text-decoration: none;
}


/* ==========================================================================
   FOOTER HEADINGS
   ========================================================================== */

.reference-footer h2 {
  margin: 0 0 22px;
  color: var(--footer-blue);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}


/* ==========================================================================
   QUICK LINKS
   ========================================================================== */

.footer-quick-links {
  min-width: 0;
  text-align: center;
}

.footer-quick-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-quick-links li {
  margin: 0;
  padding: 0;
}

.footer-quick-links a {
  display: inline-block;
  padding: 5px 4px;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}


/* ==========================================================================
   CONTACT INFORMATION
   ========================================================================== */

.footer-contact-info {
  min-width: 0;
}

.footer-contact-info address {
  margin: 0;
  font-style: normal;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 12px;
}

.footer-contact-row svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: #244767;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-row a,
.footer-contact-row span {
  min-width: 0;
  padding-block: 2px;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-opening-hours {
  margin: 10px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-social-link {
  display: inline-block;
  padding-block: 6px;
}


/* ==========================================================================
   LINKS AND ACCESSIBILITY
   ========================================================================== */

.reference-footer a:not(.footer-contact-button):hover {
  color: var(--footer-blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reference-footer a:focus-visible {
  outline: 3px solid var(--footer-blue);
  outline-offset: 5px;
  border-radius: 3px;
}


/* ==========================================================================
   COPYRIGHT AND DEVELOPER ROW
   ========================================================================== */

.footer-bottom {
  border-top: 1px solid var(--footer-border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding-block: 13px;
  color: var(--footer-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-copyright-text {
  min-width: 0;
  text-align: left;
}

.footer-developer {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--footer-muted);
  font-size: inherit;
  text-align: right;
}

.footer-developer a {
  color: var(--footer-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.footer-developer a:hover {
  color: var(--footer-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1050px) {
  .footer-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-columns {
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 0.75fr)
      minmax(0, 1fr);
    gap: 28px;
  }

  .footer-contact-row {
    gap: 10px;
  }
}


/* ==========================================================================
   SMALL TABLET
   ========================================================================== */

@media (max-width: 760px) {
  .site-footer.reference-footer {
    padding-top: 36px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 30px;
  }

  .footer-identity {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .footer-logo-link {
    min-height: 72px;
  }

  .footer-logo-image {
    max-height: 120px;
  }

  .reference-footer h2 {
    margin-bottom: 18px;
  }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 680px) {
  .footer-services {
    padding-block: 40px;
  }

  .footer-services .container,
  .reference-footer .container {
    width: min(100% - 28px, 1480px);
  }

  .footer-services-heading {
    margin-bottom: 28px;
  }

  .footer-services-heading h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .footer-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-service-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 0;
    padding: 22px 20px 24px 18px;
    border-radius: 26px;
  }

  .footer-service-icon {
    width: 40px;
    height: 40px;
  }

  .footer-service-copy h3 {
    font-size: 1.4rem;
  }

  .site-footer.reference-footer {
    padding-top: 34px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: auto;
    padding-block: 13px;
    text-align: center;
  }

  .footer-copyright-text,
  .footer-developer {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-identity,
  .footer-quick-links,
  .footer-contact-info {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .footer-contact-info h2 {
    text-align: center;
  }

  .footer-contact-row {
    justify-content: flex-start;
  }

  .footer-wordmark {
    font-size: 2.5rem;
  }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .footer-services,
  .reference-footer {
    display: none !important;
  }
}
