/* ==========================================================================
   Rotes & Roses — Regional Flagship Service Page Layout (rr-regional-flagship.css)
   Distinct from City Service Hubs (city-service-pages.css) while sharing the
   same dark-first + warm-paper light tokens, Manrope / DM Serif Display type,
   and #D9163E / #F0486D / #A3141C crimson accent grammar.
   ========================================================================== */

:root {
  --rf-accent-ink: #F0486D;
  --rf-surface-1: hsl(var(--card));
  --rf-surface-2: hsl(var(--secondary));
  --rf-line: hsl(var(--border));
  --rf-radius: 1.15rem;
}

html[data-theme="light"] {
  --rf-accent-ink: #A3141C;
}

.rf-wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .rf-wrap {
    padding-inline: 2rem;
  }
}

/* --- 1. Flagship Cinematic Hero + Bottom Price Ledger --- */
.rf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--rf-line);
  background: hsl(var(--background));
}

.rf-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  opacity: 0.42;
  pointer-events: none;
}

html[data-theme="light"] .rf-hero__bg {
  opacity: 0.18;
}

.rf-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(96deg, hsl(var(--background)) 0%, hsl(var(--background) / 0.88) 48%, hsl(var(--background) / 0.32) 100%),
    linear-gradient(180deg, hsl(var(--background) / 0.25) 0%, hsl(var(--background) / 0.92) 100%);
}

.rf-hero__inner {
  position: relative;
  padding-block: 3.25rem 2.25rem;
}

@media (min-width: 768px) {
  .rf-hero__inner {
    padding-block: 4.5rem 2.75rem;
  }
}

.rf-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-accent-ink);
  margin: 0 0 0.9rem;
}

.rf-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: end;
}

@media (min-width: 768px) {
  .rf-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
  }
}

@media (max-width: 767px) {
  .rf-hero__grid {
    gap: 1.25rem;
  }

  .rf-hero__grid > div:first-child {
    display: contents;
  }

  .rf-hero__grid .rf-hero__title {
    order: 1;
  }

  .rf-hero__grid > div:last-child {
    order: 2;
  }

  .rf-hero__grid .rf-hero__actions {
    order: 3;
    margin-top: 0.25rem;
  }
}

.rf-hero__title {
  margin: 0;
  font-family: var(--font-heading), serif;
  font-size: clamp(2.55rem, 5.4vw, 4.65rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.rf-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.rf-hero__lead a {
  color: var(--rf-accent-ink);
  text-underline-offset: 4px;
}

.rf-hero__lead a:hover {
  text-decoration: underline;
}

.rf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

/* Bottom 3-tier ledger anchored inside hero */
.rf-ledger {
  position: relative;
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rf-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.rf-ledger__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid var(--rf-line);
  background: hsl(var(--card) / 0.82);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.rf-ledger__item:hover {
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
}

.rf-ledger__item--featured {
  border-color: hsl(var(--accent) / 0.75);
}

.rf-ledger__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-accent-ink);
}

.rf-ledger__name {
  font-family: var(--font-heading), serif;
  font-size: 1.35rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.rf-ledger__price {
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

.rf-ledger__price strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

/* --- 2. Regional Jumpbar uses shared .cs-jumpbar from city-service-pages.css --- */

/* --- 3. Section Rhythm & Editorial Cards --- */
.rf-section {
  padding-block: 4rem;
  border-bottom: 1px solid var(--rf-line);
  scroll-margin-top: 11.5rem;
}

main section[id] {
  scroll-margin-top: 11.5rem;
}

@media (min-width: 640px) {
  .rf-section {
    padding-block: 5.25rem;
  }
}

.rf-section--alt {
  background: var(--rf-surface-2);
}

.rf-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .rf-head {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 2.5rem;
  }
}

.rf-h2 {
  margin: 0;
  font-family: var(--font-heading), serif;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 0.98;
  color: hsl(var(--foreground));
}

.rf-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.rf-pillars {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rf-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rf-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rf-pillar {
  padding: 1.5rem;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-1);
}

.rf-pillar__num {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rf-accent-ink);
  margin-bottom: 0.65rem;
}

.rf-pillar h3 {
  margin: 0;
  font-family: var(--font-heading), serif;
  font-size: 1.45rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.rf-pillar p {
  margin: 0.7rem 0 0;
  font-size: 0.89rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* --- 4. Review Quote Strip --- */
.rf-quote {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-line);
  overflow: hidden;
  box-shadow: inset 3px 0 0 hsl(var(--accent));
  background: var(--rf-surface-1);
  max-width: 48rem;
}

.rf-quote blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: hsl(var(--foreground));
}

.rf-quote figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.rf-quote figcaption a {
  color: var(--rf-accent-ink);
  text-underline-offset: 4px;
}

/* --- 5. Accordion FAQ --- */
.rf-faq-list {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.rf-faq {
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-1);
  overflow: hidden;
}

.rf-faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading), serif;
  font-size: 1.25rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.rf-faq > summary::-webkit-details-marker {
  display: none;
}

.rf-faq > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-sans), sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rf-accent-ink);
  transition: transform 0.16s ease;
}

.rf-faq[open]:not(.is-closing) > summary::after {
  transform: rotate(45deg);
}

.rf-faq > summary:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: -2px;
}

.rf-faq__body {
  padding: 0 1.35rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.rf-faq__body a {
  color: var(--rf-accent-ink);
  text-underline-offset: 4px;
  font-weight: 600;
}

.rf-faq-more {
  margin-top: 1.25rem;
}

.rf-faq-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-1);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.rf-faq-more > summary::-webkit-details-marker {
  display: none;
}

.rf-faq-more > summary:hover {
  border-color: hsl(var(--accent));
}

.rf-faq-more > summary:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

.rf-faq-more > summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rf-accent-ink);
  transition: transform 0.16s ease;
}

.rf-faq-more[open]:not(.is-closing) > summary::after {
  transform: rotate(45deg);
}

.rf-faq-more[open] > summary {
  margin-bottom: 1rem;
}

.rf-faq-more .rf-faq-grid,
.rf-faq-more .rf-faq-list {
  margin-top: 0;
}

/* --- Progressive-Enhancement Scroll-Triggered Stagger Reveals (Regional Flagship) --- */
html.cs-anim-ready .rf-card,
html.cs-anim-ready .rf-pillar,
html.cs-anim-ready .rf-faq,
html.cs-anim-ready .rf-hub-card,
html.cs-anim-ready .rf-quote,
html.cs-anim-ready .rr-svc-card,
html.cs-anim-ready .booking-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--cs-stagger, 0) * 55ms),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--cs-stagger, 0) * 55ms),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

html.cs-anim-ready .rf-card.is-revealed,
html.cs-anim-ready .rf-pillar.is-revealed,
html.cs-anim-ready .rf-faq.is-revealed,
html.cs-anim-ready .rf-hub-card.is-revealed,
html.cs-anim-ready .rf-quote.is-revealed,
html.cs-anim-ready .rr-svc-card.is-revealed,
html.cs-anim-ready .booking-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.cs-anim-ready .rf-card,
  html.cs-anim-ready .rf-pillar,
  html.cs-anim-ready .rf-faq,
  html.cs-anim-ready .rf-hub-card,
  html.cs-anim-ready .rf-quote,
  html.cs-anim-ready .rr-svc-card,
  html.cs-anim-ready .booking-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- 6. North County Coverage Router --- */
.rf-hubs {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rf-hubs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rf-hubs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rf-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-1);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.rf-hub-card:hover {
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
}

.rf-hub-card__city {
  font-family: var(--font-heading), serif;
  font-size: 1.45rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
}

.rf-hub-card__note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.rf-hub-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rf-accent-ink);
}

.rf-nearby {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.rf-nearby__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-right: 0.35rem;
}

.rf-nearby a {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-1);
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rf-nearby a:hover {
  border-color: hsl(var(--accent));
  color: var(--rf-accent-ink);
}
