/* ==========================================================================
   Reyan Core — Header & Footer styles (scoped with .rf- prefix)
   ========================================================================== */
:root {
  --rf-ink: #1c1c1e;
  --rf-paper: #ffffff;
  --rf-muted: #6b6b73;
  --rf-orange: #f47b20;
  --rf-orange-2: #ff9a3d;
  --rf-radius: 18px;
  --rf-ease: cubic-bezier(.22, 1, .36, 1);
}

/* shared helpers */
.rf-container { width: min(1180px, 92%); margin-inline: auto; }
.rf-nav *, .rf-footer * { box-sizing: border-box; }

/* ---------- Buttons (header CTA) ---------- */
.rf-btn {
  display: inline-block; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700; font-size: .95rem; padding: 12px 26px; border-radius: 999px;
  cursor: pointer; border: none; line-height: 1.2;
  transition: transform .35s var(--rf-ease), box-shadow .35s var(--rf-ease), background .3s, color .3s;
}
.rf-btn--primary {
  background: linear-gradient(120deg, var(--rf-orange), var(--rf-orange-2));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(244, 123, 32, .7);
}
.rf-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -10px rgba(244, 123, 32, .85); color: #fff; }

/* ---------- Scroll progress ---------- */
.rf-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rf-orange), var(--rf-orange-2));
  z-index: 2000; transition: width .1s linear; pointer-events: none;
}

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */
.rf-nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  padding: 18px 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .35);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.rf-nav.rf-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px -16px rgba(0, 0, 0, .5);
  padding: 12px 0;
}
.rf-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.rf-brand { display: flex; align-items: center; gap: 10px; }
.rf-brand__logo { height: 42px; width: auto; display: block; transition: filter .4s; }
/* logo is naturally dark on the solid bar (inner pages); the home page inverts
   it to white over its dark hero via body.home rules in home.css */

/* menu (wp_nav_menu output lives inside .rf-nav__links) */
.rf-nav__links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.rf-nav__links li { position: relative; }
.rf-nav__links a {
  font-weight: 600; font-size: .95rem; color: var(--rf-ink);
  position: relative; transition: color .3s; text-decoration: none;
}
.rf-nav.rf-scrolled .rf-nav__links a { color: var(--rf-ink); }
.rf-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--rf-orange); transition: width .35s var(--rf-ease);
}
.rf-nav__links a:hover::after,
.rf-nav__links .current-menu-item > a::after { width: 100%; }
.rf-nav__links a:hover { color: var(--rf-orange); }

/* header CTA button sits after the menu */
.rf-nav__cta { display: inline-flex; }

/* hamburger */
.rf-nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.rf-nav__toggle span { width: 26px; height: 2px; background: var(--rf-ink); transition: .3s; display: block; }
.rf-nav.rf-scrolled .rf-nav__toggle span { background: var(--rf-ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.rf-footer {
  background: #0f0f11; color: rgba(255, 255, 255, .75);
  padding-top: 70px; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.rf-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.7fr; gap: 36px; padding-bottom: 50px;
}
.rf-footer .rf-brand { margin-bottom: 20px; }
.rf-brand__logo--light { filter: brightness(0) invert(1); }
/* Elementor's `.elementor-widget-container img { height:auto }` out-specifies the
   base .rf-brand__logo rule, so the footer SVG blows up to intrinsic size. Pin it. */
.rf-footer .rf-brand__logo { height: 54px !important; width: auto !important; max-width: 100%; }
.rf-footer__col h4 {
  color: #fff; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  margin: 0 0 18px; font-family: "Sora", sans-serif;
}
.rf-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rf-footer__col a, .rf-footer__col span, .rf-footer__col li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .92rem; margin-bottom: 12px; transition: color .3s; line-height: 1.4;
  color: rgba(255, 255, 255, .75); text-decoration: none;
}
.rf-footer__col a { word-break: break-word; }
.rf-footer__col a:hover { color: var(--rf-orange); }
/* contact links stay on a single line; email matches the other rows' size */
.rf-footer__col--contact a { word-break: normal; overflow-wrap: normal; white-space: nowrap; }
.rf-footer__col--contact .rf-footer-email { font-size: .92rem; }

.rf-socials { display: flex; gap: 16px; }
.rf-footer__brand .rf-socials { justify-content: flex-start; }
.rf-social {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .3s var(--rf-ease), background .3s;
}
.rf-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); transition: transform .3s var(--rf-ease); }
.rf-social:hover { background: var(--rf-orange); transform: translateY(-4px) scale(1.05); }
.rf-socials--sm { gap: 12px; }
.rf-socials--sm .rf-social { width: 38px; height: 38px; }
.rf-socials--sm .rf-social img { width: 15px; height: 15px; }
/* the generic `.rf-footer__col a` rule (flex/flex-start/margin) was knocking the
   social icons to the top-left of their circle — re-center them. */
.rf-footer__brand a.rf-social { display: grid; place-items: center; gap: 0; margin: 0; line-height: 0; }

.rf-ic { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: .65; flex: 0 0 auto; margin-top: 4px; }

.rf-footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; }
.rf-footer__bar p { font-size: .85rem; text-align: center; color: rgba(255, 255, 255, .5); margin: 0; }
.rf-footer__bar a { color: var(--rf-orange); text-decoration: none; }
.rf-footer__bar a.rf-credit { color: inherit; } /* match surrounding muted text — visible but low-key */

/* ==========================================================================
   FLOATING "FIND US" SOCIAL RAIL (fixed right edge, all pages)
   ========================================================================== */
.rf-social-float {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 900;
  display: flex; flex-direction: column; align-items: center; gap: 13px; pointer-events: none;
}
.rf-social-float > * { pointer-events: auto; }
.rf-social-float__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--rf-muted); font-family: "Plus Jakarta Sans", system-ui, sans-serif; margin-bottom: 4px;
}
.rf-social-float__line { width: 1px; height: 34px; background: rgba(120, 120, 128, .5); margin-bottom: 4px; }
.rf-social-float__icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #f4f1ec; border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
  transition: transform .3s var(--rf-ease), background .3s, box-shadow .3s;
}
.rf-social-float__icon img { width: 17px; height: 17px; filter: brightness(0); opacity: .78; transition: filter .3s, opacity .3s; }
.rf-social-float__icon:hover { background: var(--rf-orange); transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(244, 123, 32, .65); }
.rf-social-float__icon:hover img { filter: brightness(0) invert(1); opacity: 1; }
@media (max-width: 900px) { .rf-social-float { display: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .rf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .rf-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* mobile drawer */
  .rf-nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px);
    background: var(--rf-ink); padding: 110px 32px;
    transform: translateX(100%); transition: transform .4s var(--rf-ease);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .6); overflow-y: auto;
  }
  .rf-nav__links.rf-open { transform: none; }
  .rf-nav__links ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .rf-nav__links a { color: #fff !important; font-size: 1.15rem; }
  .rf-nav__cta { margin-top: 8px; }
  .rf-nav__toggle { display: flex; z-index: 1100; }

  .rf-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .rf-footer { padding-top: 50px; }
  .rf-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .rf-brand__logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-nav, .rf-nav__links, .rf-scroll-progress { transition: none; }
}
