/* ==========================================================================
   RK Reno - Pilot Hero & Editorial Media System
   Task 70: Professional main pages, keyword-led cost posts & recovery
   Cascade-Safe Specificity Overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Commercial Pilot Hero (.rk-pilot-hero)
   High specificity overrides to defeat body[data-rk-visual=studio] defaults
   -------------------------------------------------------------------------- */
body[data-rk-visual=studio] .rk-pilot-hero,
.rk-pilot-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  max-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #071d30;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  body[data-rk-visual=studio] .rk-pilot-hero,
  .rk-pilot-hero {
    min-height: auto;
    max-height: none;
    padding: 44px 0 36px 0;
  }
}

/* Background Media & Visual Scrim */
.rk-pilot-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rk-pilot-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rk-pilot-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 29, 48, 0.94) 0%,
    rgba(12, 35, 64, 0.88) 45%,
    rgba(12, 35, 64, 0.55) 80%,
    rgba(7, 29, 48, 0.40) 100%
  );
  z-index: 2;
}

@media (max-width: 767px) {
  .rk-pilot-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(7, 29, 48, 0.96) 0%,
      rgba(12, 35, 64, 0.90) 65%,
      rgba(7, 29, 48, 0.82) 100%
    );
  }
}

/* Content Container & Typography (Readable Light Text Over Dark Scrim) */
.rk-pilot-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rk-pilot-hero__content {
  max-width: 680px;
}

/* Eyebrow - Bright High Contrast Orange */
body[data-rk-visual=studio] .rk-pilot-hero .rk-pilot-hero__eyebrow,
.rk-pilot-hero p.rk-pilot-hero__eyebrow,
.rk-pilot-hero .rk-pilot-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb923c !important; /* Tailwind orange-400, contrast 8.5:1 on navy */
  margin: 0 0 12px 0;
}

/* H1 Heading - Pure White Over Dark Scrim (Contrast > 14:1) */
body[data-rk-visual=studio] .rk-pilot-hero h1.rk-pilot-hero__title,
body[data-rk-visual=studio] .rk-pilot-hero .rk-pilot-hero__title,
.rk-pilot-hero h1.rk-pilot-hero__title,
.rk-pilot-hero .rk-pilot-hero__title {
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  margin: 0 0 16px 0 !important;
  text-transform: none !important;
}

/* Intro Paragraph - Light Slate Over Dark Scrim (Contrast > 9:1) */
body[data-rk-visual=studio] .rk-pilot-hero p.rk-pilot-hero__intro,
body[data-rk-visual=studio] .rk-pilot-hero .rk-pilot-hero__intro,
.rk-pilot-hero p.rk-pilot-hero__intro,
.rk-pilot-hero .rk-pilot-hero__intro {
  font-size: clamp(1.05rem, 1.25vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important; /* Tailwind slate-200 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin: 0 0 24px 0 !important;
  max-width: 60ch;
}

/* Call to Action Actions */
.rk-pilot-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__wa-btn,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__wa-btn,
.rk-pilot-hero a.rk-pilot-hero__wa-btn,
.rk-editorial-hero a.rk-editorial-hero__wa-btn,
.rk-pilot-hero__wa-btn,
.rk-editorial-hero__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #147d52 !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__wa-btn:hover,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__wa-btn:hover,
.rk-pilot-hero a.rk-pilot-hero__wa-btn:hover,
.rk-editorial-hero a.rk-editorial-hero__wa-btn:hover,
.rk-pilot-hero__wa-btn:hover,
.rk-editorial-hero__wa-btn:hover {
  background: #116b46 !important;
  transform: translateY(-2px);
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__wa-btn:focus-visible,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__wa-btn:focus-visible,
.rk-pilot-hero a.rk-pilot-hero__wa-btn:focus-visible,
.rk-editorial-hero a.rk-editorial-hero__wa-btn:focus-visible,
.rk-pilot-hero__wa-btn:focus-visible,
.rk-editorial-hero__wa-btn:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__tel-btn,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__tel-btn,
.rk-pilot-hero a.rk-pilot-hero__tel-btn,
.rk-editorial-hero a.rk-editorial-hero__tel-btn,
.rk-pilot-hero__tel-btn,
.rk-editorial-hero__tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1 !important;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  padding: 10px 14px;
  transition: color 0.2s ease;
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__tel-btn:hover,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__tel-btn:hover,
.rk-pilot-hero a.rk-pilot-hero__tel-btn:hover,
.rk-editorial-hero a.rk-editorial-hero__tel-btn:hover,
.rk-pilot-hero__tel-btn:hover,
.rk-editorial-hero__tel-btn:hover {
  color: #ffffff !important;
}

body[data-rk-visual=studio] .rk-pilot-hero a.rk-pilot-hero__tel-btn:focus-visible,
body[data-rk-visual=studio] .rk-editorial-hero a.rk-editorial-hero__tel-btn:focus-visible,
.rk-pilot-hero a.rk-pilot-hero__tel-btn:focus-visible,
.rk-editorial-hero a.rk-editorial-hero__tel-btn:focus-visible,
.rk-pilot-hero__tel-btn:focus-visible,
.rk-editorial-hero__tel-btn:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
}

/* Trust Badges in Hero */
.rk-pilot-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  color: #e2e8f0;
}

.rk-pilot-hero__trust > li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.rk-pilot-hero__trust > li::marker {
  content: "";
}

.rk-pilot-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rk-pilot-hero__trust-item svg {
  color: #f58220;
}

/* --------------------------------------------------------------------------
   2. Restrained Benchmark Rate Strip (Immediately Below Hero)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   2. Restrained Benchmark Rate Strip (Immediately Below Hero)
   -------------------------------------------------------------------------- */
.rk-hero-rate-strip {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rk-hero-rate-strip__container {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rk-hero-rate-strip__rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rk-hero-rate-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rk-hero-rate-strip__label {
  display: block;
  color: #52606d;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.rk-hero-rate-strip__value {
  display: block;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.rk-hero-rate-strip__value strong {
  font-weight: 700;
}

.rk-hero-rate-strip__note {
  margin-top: 12px;
  color: #52606d;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .rk-hero-rate-strip__rates {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   3. Editorial Guide Hero Overrides (Cost Articles)
   Ensures background gradient, white text, and cover frame always render cleanly
   -------------------------------------------------------------------------- */
.rk-editorial-hero {
  background: linear-gradient(135deg, #071d30 0%, #0c2340 60%, #123258 100%) !important;
  padding: 56px 0 !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.rk-editorial-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

@media (max-width: 900px) {
  .rk-editorial-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.rk-editorial-hero__copy {
  display: flex;
  flex-direction: column;
}

.rk-editorial-hero .rk-theme-eyebrow {
  color: #f58220 !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

body[data-rk-visual=studio] .rk-editorial-hero h1.rk-editorial-hero__title,
.rk-editorial-hero h1.rk-editorial-hero__title,
.rk-editorial-hero .rk-editorial-hero__title {
  color: #ffffff !important;
  font-size: clamp(2rem, 3.8vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 16px 0 !important;
}

.rk-editorial-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd8e8 !important;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.rk-editorial-hero__meta strong {
  color: #ffffff !important;
}

body[data-rk-visual=studio] .rk-editorial-hero p.rk-editorial-hero__lead,
.rk-editorial-hero p.rk-editorial-hero__lead,
.rk-editorial-hero .rk-editorial-hero__lead {
  color: #d1dced !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
  margin: 0 0 24px 0 !important;
  max-width: 58ch;
}

.rk-editorial-hero__frame {
  aspect-ratio: 4/5 !important;
  border-radius: 20px !important;
  max-height: 560px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 900px) {
  .rk-editorial-hero__frame {
    max-height: 380px !important;
    margin-inline: auto;
  }
}

.rk-editorial-hero__img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   4. Explanatory Graphics & Trade Sequencing
   -------------------------------------------------------------------------- */
.rk-sequence-section {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 36px 0;
}

.rk-sequence-header {
  margin-bottom: 24px;
}

.rk-sequence-title {
  font-size: 1.35rem !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.rk-sequence-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.rk-sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  position: relative;
}

.rk-sequence-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.rk-sequence-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.rk-sequence-card__title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.rk-sequence-card__desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Prefers-Reduced-Motion Overrides
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rk-pilot-hero,
  .rk-pilot-hero *,
  .rk-hero-rate-strip *,
  .rk-sequence-section * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   6. Targeted Title Casing & Accessible Skip Link
   -------------------------------------------------------------------------- */
.rk-editorial-hero h1.rk-editorial-hero__title {
  text-transform: none !important;
}

/* Accessible Skip Navigation Link: visually hidden until keyboard focus, clearly visible when focused */
.rk-skip-link {
  position: fixed !important;
  top: -120px !important;
  left: 1rem !important;
  z-index: 99999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1.25rem !important;
  background-color: #0b2447 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 2px solid #f47a20 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s !important;
}

.rk-skip-link:focus,
.rk-skip-link:focus-visible {
  top: 1rem !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 3px solid #f47a20 !important;
  outline-offset: 2px !important;
}
