/* ==========================================================================
   Riley Phinisi — site footer.

   Written as plain CSS rather than Tailwind utilities: the theme ships a
   prebuilt tailwind.min.css, so any class not already in that bundle silently
   does nothing. Colours are all set explicitly because the theme's @layer base
   forces `p, span, li, b, i, strong, h1–h6 { color: #000 }` for the original
   light design.
   ========================================================================== */

.rp-foot {
  --f-gold: #c4a265;
  --f-gold-soft: #dcc08d;
  --f-line: rgba(196, 162, 101, 0.16);
  --f-text: #b8b3ab;
  --f-dim: #8b867f;
  --f-white: #ffffff;
  --f-shell: min(1240px, 100% - 2.5rem);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: #0a0a0a;
  color: var(--f-text);
  font-size: 15px;
  line-height: 1.65;
}

.rp-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 162, 101, 0.1), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(196, 162, 101, 0.06), transparent 46%),
    linear-gradient(180deg, #000 0%, #0a0a0a 30%, #0a0a0a 78%, #000 100%);
}

/* Hairline that separates the footer from the last section. */
.rp-foot::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--f-line), transparent);
}

.rp-foot :where(b, i, li, span, strong) {
  color: inherit;
}

.rp-foot__inner {
  width: var(--f-shell);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Top band — brand beside the sitemap
   -------------------------------------------------------------------------- */

.rp-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.45fr);
  gap: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.rp-foot__brand {
  max-width: 22rem;
}

.rp-foot__logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.rp-foot__logo img {
  display: block;
  height: 96px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.rp-foot__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--f-white);
}

.rp-foot__blurb {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--f-dim);
}

.rp-foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--f-gold);
  border-radius: 999px;
  background: rgba(196, 162, 101, 0.1);
  color: var(--f-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.rp-foot__cta:hover {
  background: var(--f-gold);
  color: #14100a;
  transform: translateY(-2px);
}

.rp-foot__cta:hover i {
  color: #14100a !important;
}

.rp-foot__cta i {
  font-size: 1.1rem;
  color: var(--f-gold) !important;
}

/* Contact list under the brand */
.rp-foot__contact {
  display: grid;
  gap: 0.7rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  list-style: none;
}

.rp-foot__contact li {
  margin: 0;
}

.rp-foot__contact a,
.rp-foot__contact span.rp-foot__static {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--f-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.rp-foot__contact a:hover {
  color: var(--f-gold);
}

.rp-foot__contact i {
  flex: none;
  font-size: 1.05rem;
  color: var(--f-gold) !important;
}

.rp-foot__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.rp-foot__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196, 162, 101, 0.32);
  border-radius: 50%;
  color: var(--f-gold);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.rp-foot__social a:hover {
  background: var(--f-gold);
  border-color: var(--f-gold);
  transform: translateY(-2px);
}

.rp-foot__social a:hover i {
  color: #14100a !important;
}

.rp-foot__social i {
  font-size: 1.1rem;
  color: var(--f-gold) !important;
}

/* --------------------------------------------------------------------------
   Sitemap columns
   -------------------------------------------------------------------------- */

.rp-foot__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}

.rp-foot__col h3 {
  position: relative;
  margin: 0 0 1.15rem;
  padding-bottom: 0.7rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--f-gold);
}

.rp-foot__col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--f-gold);
}

.rp-foot__col ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-foot__col li {
  margin: 0;
}

.rp-foot__col a {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--f-text);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.rp-foot__col a:hover {
  color: var(--f-gold);
  padding-left: 4px;
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.rp-foot__partners {
  padding-block: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--f-line);
  text-align: center;
}

.rp-foot__partners h3 {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-size: 0.74rem;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--f-dim);
}

.rp-foot__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  max-width: 940px;
  margin-inline: auto;
}

.rp-foot__logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  opacity: 0.62;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rp-foot__logos a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.rp-foot__logos img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.rp-foot__bottom {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--f-line);
}

.rp-foot__fleet {
  max-width: 62rem;
  margin: 0 auto 0.9rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--f-dim);
  text-align: center;
}

.rp-foot__fleet a {
  color: var(--f-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 162, 101, 0.4);
  transition: color 0.25s ease;
}

.rp-foot__fleet a:hover {
  color: var(--f-gold);
}

.rp-foot__fleet .sep {
  color: var(--f-gold);
  opacity: 0.5;
  padding-inline: 0.2rem;
}

.rp-foot__copy {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #6f6a63;
  text-align: center;
}

.rp-foot__copy a {
  color: #8b867f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rp-foot__copy a:hover {
  color: var(--f-gold);
}

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

@media (max-width: 1024px) {
  .rp-foot__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .rp-foot__brand {
    max-width: none;
  }

  .rp-foot__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .rp-foot {
    --f-shell: min(1240px, 100% - 2rem);
    text-align: center;
  }

  .rp-foot__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Two columns rather than one: a single centred stack ran the footer past
     2000px on a phone. The brand block above stays centred; the sitemap goes
     left-aligned so the two columns read as columns. */
  .rp-foot__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.25rem;
    text-align: left;
  }

  .rp-foot__col h3 {
    padding-bottom: 0.6rem;
  }

  .rp-foot__contact {
    justify-items: center;
  }

  .rp-foot__social {
    justify-content: center;
  }

  .rp-foot__cta {
    width: 100%;
    justify-content: center;
  }

  .rp-foot__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
