/**
 * TRC — Modern site footer
 * Brand: #74131d → #ef2428
 */

.trc-footer.footer-section {
  --trc-ft-maroon: #74131d;
  --trc-ft-red: #ef2428;
  --trc-ft-ink: #0f172a;
  --trc-ft-font: "Clash Display", "Segoe UI", system-ui, sans-serif;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0 0 clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(145deg, var(--trc-ft-maroon) 0%, #922228 45%, var(--trc-ft-red) 100%);
  color: #fff;
}

.trc-home .footer-section.trc-footer {
  background-color: transparent !important;
  background-image: linear-gradient(145deg, var(--trc-ft-maroon) 0%, #922228 45%, var(--trc-ft-red) 100%) !important;
}

/* Ambient */
.trc-footer__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.trc-footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.trc-footer__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(239, 36, 40, 0.45);
}

.trc-footer__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: rgba(0, 0, 0, 0.35);
}

.trc-footer__grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.trc-footer__container {
  position: relative;
  z-index: 2;
  padding-left: clamp(1.25rem, 4.5vw, 4.5rem);
  padding-right: clamp(1.25rem, 4.5vw, 4.5rem);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */
.trc-footer__cta {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.trc-footer__cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 24px;
  /* Solid panel — readable white type on deep maroon (not glass-on-red) */
  background: #5c0f17;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .trc-footer__cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.trc-footer__cta-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 0.92;
}

.trc-footer__cta-title {
  font-family: var(--trc-ft-font);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: #ffffff !important;
}

.trc-footer__cta-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 34rem;
}

.trc-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.trc-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border-radius: 999px;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.trc-footer__btn--primary {
  color: var(--trc-ft-maroon) !important;
  -webkit-text-fill-color: var(--trc-ft-maroon);
  background: #fff !important;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}

.trc-footer__btn--primary:hover,
.trc-footer__btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.4);
  color: var(--trc-ft-maroon) !important;
  -webkit-text-fill-color: var(--trc-ft-maroon);
  background: #fff !important;
}

/* Override .trc-home .footer-section a { color: white } from style.css */
.trc-home .footer-section.trc-footer a.trc-footer__btn--primary,
.trc-home .footer-section.trc-footer a.trc-footer__btn--primary:hover,
.trc-home .footer-section.trc-footer a.trc-footer__btn--primary:focus-visible {
  color: var(--trc-ft-maroon) !important;
  -webkit-text-fill-color: var(--trc-ft-maroon);
}

.trc-footer__btn--ghost {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.trc-footer__btn--ghost:hover,
.trc-footer__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  transform: translateY(-2px);
}

.trc-home .footer-section.trc-footer a.trc-footer__btn--ghost,
.trc-home .footer-section.trc-footer a.trc-footer__btn--ghost:hover,
.trc-home .footer-section.trc-footer a.trc-footer__btn--ghost:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

/* Main grid */
.trc-footer__main {
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trc-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .trc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .trc-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
}

.trc-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Brand */
.trc-footer__logo img {
  display: block;
  max-width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.trc-footer__logo a:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.trc-footer__tagline {
  margin: 1.1rem 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 22rem;
}

/* Headings */
.trc-footer__heading {
  font-family: var(--trc-ft-font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

/* Links */
.trc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trc-footer__links li {
  margin-bottom: 0.15rem;
}

.trc-footer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    padding-left 0.25s ease,
    border-color 0.2s ease;
}

.trc-footer__links a i {
  font-size: 0.75rem;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.trc-footer__links a:hover {
  color: #fff !important;
  padding-left: 6px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.trc-footer__links a:hover i {
  opacity: 1;
  transform: translate(0, 0);
}

/* Contact cards */
.trc-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.trc-footer__contact-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .trc-footer__contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
  }
}

.trc-footer__contact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--trc-ft-red) 0%, var(--trc-ft-maroon) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trc-footer__contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

.trc-footer__contact-value {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

a.trc-footer__contact-value {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
}

a.trc-footer__contact-value:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Social */
.trc-footer__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trc-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    border-color 0.2s ease;
}

.trc-footer__social-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.trc-footer__social-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Bottom bar */
.trc-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.trc-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  flex: 1 1 auto;
  min-width: 12rem;
}

.trc-footer__legal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trc-footer__legal a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.trc-footer__legal a:hover {
  color: #fff !important;
}

.trc-footer__legal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.trc-footer__back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--trc-ft-red) 0%, #c41e22 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trc-footer__back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45);
}

.trc-footer__back-top.is-visible {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .trc-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .trc-footer__legal {
    order: 2;
  }

  .trc-footer__back-top {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* Override legacy theme footer rules */
.trc-footer.footer-section .widget-title,
.trc-footer.footer-section h3.trc-footer__heading {
  color: rgba(255, 255, 255, 0.55) !important;
}

.trc-home .footer-section.trc-footer h1,
.trc-home .footer-section.trc-footer h2,
.trc-home .footer-section.trc-footer h3,
.trc-home .footer-section.trc-footer p,
.trc-home .footer-section.trc-footer a,
.trc-home .footer-section.trc-footer li {
  /* inherit from trc-footer */
}

@media (prefers-reduced-motion: reduce) {
  .trc-footer__btn:hover,
  .trc-footer__social-link:hover,
  .trc-footer__contact-card:hover,
  .trc-footer__back-top:hover,
  .trc-footer__logo a:hover img {
    transform: none;
  }
}
