/* ==========================================================================
   Site footer (2026) — template-parts/footer-2026.php

   Self-contained: the same footer closes every page, so it carries its own
   tokens, measure (1316px, fluid gutter) and resets instead of leaning on
   home.css or the design-page inline styles.
   ========================================================================== */

.rh-footer {
  --rhf-ink: #2b2c27;
  --rhf-accent: #c05c15;
  --rhf-accent-dark: #a84f11;
  --rhf-cream: #fcf7f3;
  --rhf-gray: #454545;
  --rhf-muted: #7a7870;
  --rhf-line: #e0d8d0;
  --rhf-gutter: clamp(20px, 4.3vw, 62px);

  position: relative;
  z-index: 1;
  padding: clamp(60px, 6vw, 88px) 0 28px;
  background: var(--rhf-cream);
  color: var(--rhf-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.rh-footer *,
.rh-footer *::before,
.rh-footer *::after { box-sizing: border-box; }
.rh-footer a { color: inherit; text-decoration: none; }
.rh-footer a:hover { opacity: 1; }
.rh-footer p { margin: 0; }
.rh-footer img { display: block; max-width: 100%; }
.rh-footer nav { display: flex; }

.rh-footer__wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--rhf-gutter);
}

/* --- Call to action ------------------------------------------------------ */

.rh-footer__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5.5vw, 80px);
  margin-bottom: 56px;
}

.rh-footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--rhf-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rh-footer__eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.rh-footer__title {
  max-width: 640px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.rh-footer__actions { display: flex; flex: none; flex-wrap: wrap; gap: 14px; }

.rh-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 14px 30px;
  border: 0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rh-footer__btn--primary { background: var(--rhf-accent); color: #fff; }
.rh-footer__btn--primary:hover { background: var(--rhf-accent-dark); color: #fff; }
.rh-footer__btn--outline { background: transparent; color: var(--rhf-accent); box-shadow: inset 0 0 0 1px var(--rhf-accent); }
.rh-footer__btn--outline:hover { background: var(--rhf-accent); color: #fff; }
.rh-footer__btn:focus-visible { outline: 2px solid var(--rhf-accent); outline-offset: 3px; }

/* --- Directory ------------------------------------------------------------- */

.rh-footer__dir {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 64px;
  border-top: 1px solid var(--rhf-line);
}

.rh-footer__logo { display: inline-block; margin-bottom: 20px; }
.rh-footer__logo img { width: 178px; height: auto; }
.rh-footer__brand p { max-width: 300px; margin-bottom: 28px; color: var(--rhf-gray); font-size: 15px; line-height: 1.7; }

.rh-footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rh-footer__contact a { font-weight: 500; transition: color 0.2s ease; }
.rh-footer__contact a:hover { color: var(--rhf-accent); }
.rh-footer__contact span { color: var(--rhf-muted); }

.rh-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.rh-footer__social a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #c8c0b8;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease;
}

.rh-footer__social a:hover { border-color: var(--rhf-ink); }

.rh-footer__col { display: flex; flex-direction: column; gap: 12px; }
.rh-footer__heading { margin-bottom: 8px; color: var(--rhf-muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.rh-footer__col a { font-size: 15px; transition: color 0.2s ease; }
.rh-footer__col a:hover { color: var(--rhf-accent); }

/* --- Proof strip ------------------------------------------------------------ */

.rh-footer__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0 32px;
  border-top: 1px solid var(--rhf-line);
}

.rh-footer__proof-item { display: flex; flex-direction: column; gap: 8px; }
.rh-footer__proof-label { color: var(--rhf-muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.rh-footer__proof-row { display: flex; align-items: center; gap: 12px; }
.rh-footer__proof-big { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.rh-footer__stars { display: flex; gap: 2px; }
.rh-footer__proof-desc { color: var(--rhf-gray); font-size: 13px; }

.rh-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--rhf-ink);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Bottom line ------------------------------------------------------------ */

.rh-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rhf-line);
  color: var(--rhf-muted);
  font-size: 12px;
}

.rh-footer__bottom a { transition: color 0.2s ease; }
.rh-footer__bottom a:hover { color: var(--rhf-ink); }

/* --- Widths ------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .rh-footer__dir { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .rh-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .rh-footer__cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .rh-footer__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-footer__dir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 820px) {
  .rh-footer { padding-top: 56px; }
  .rh-footer__cta { margin-bottom: 36px; }
  .rh-footer__actions { width: 100%; }
  .rh-footer__btn { height: 52px; padding: 12px 22px; font-size: 13px; }
  .rh-footer__title { font-size: clamp(28px, 7.5vw, 34px); }
  .rh-footer__dir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 36px 0 40px; }
  .rh-footer__brand p { margin-bottom: 20px; font-size: 14px; }
  .rh-footer__col { gap: 10px; }
  .rh-footer__col a { font-size: 14px; }
  .rh-footer__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 0 24px; }
  .rh-footer__proof-big { font-size: 24px; }
  .rh-footer__proof-desc { font-size: 12px; }
  .rh-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
