/* ==========================================================================
   Royal Home Flooring — Service Areas Page
   Dark cinematic page system with video hero + Bridgeview coverage map
   ========================================================================== */

.rhf-service-areas-page {
  --rhf-sa-text: #ffffff;
  --rhf-sa-text-soft: rgba(255, 255, 255, 0.84);
  --rhf-sa-text-muted: rgba(255, 255, 255, 0.66);
  --rhf-sa-line: rgba(255, 255, 255, 0.14);
  --rhf-sa-line-strong: rgba(255, 255, 255, 0.22);
  --rhf-sa-gold: #feda6a;
  --rhf-sa-gold-bright: #ffd700;
  --rhf-sa-dark-a: #3c3640;
  --rhf-sa-dark-b: #221f26;
  --rhf-sa-dark-c: #181619;
  --rhf-sa-blue: #6b7c98;
  --rhf-sa-blue-deep: #4d5c73;
  --rhf-sa-ink: #07182f;
  position: relative;
  overflow-x: clip;
  background: var(--rhf-sa-dark-b);
  color: var(--rhf-sa-text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rhf-sa-shell {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.rhf-sa-kicker {
  margin: 0 0 0.95rem;
  color: var(--rhf-sa-gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rhf-service-areas-page h1,
.rhf-service-areas-page h2,
.rhf-service-areas-page h3,
.rhf-service-areas-page h4 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-top: 0;
  text-wrap: balance;
}

.rhf-service-areas-page p {
  color: var(--rhf-sa-text-soft);
}

/* ==========================================================================
   Hero video
   ========================================================================== */

.rhf-sa-hero {
  position: relative;
  min-height: clamp(660px, 86vh, 940px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #07131f;
  margin-top: -108px;
  padding-top: 108px;
}

.rhf-sa-hero__media,
.rhf-sa-hero__video,
.rhf-sa-hero__shade {
  position: absolute;
  inset: 0;
}

.rhf-sa-hero__media {
  z-index: 0;
  overflow: hidden;
}

.rhf-sa-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

.rhf-sa-hero__shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 15, 25, 0.76) 0%, rgba(5, 15, 25, 0.48) 44%, rgba(5, 15, 25, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 15, 25, 0.10) 0%, rgba(5, 15, 25, 0.66) 100%);
}

.rhf-sa-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(7.5rem, 12vw, 11rem) clamp(5rem, 9vw, 8rem);
}

.rhf-sa-hero__copy {
  max-width: 880px;
}

.rhf-sa-hero h1 {
  max-width: 10.6ch;
  margin: 0;
  font-size: clamp(3.1rem, 7.8vw, 7.6rem);
  font-weight: 880;
  line-height: 0.9;
  letter-spacing: -0.074em;
}

.rhf-sa-hero-text {
  max-width: 770px;
  margin: clamp(1.35rem, 2.6vw, 2rem) 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 1rem + 0.42vw, 1.34rem);
  line-height: 1.62;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.34);
}

.rhf-sa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

/* ==========================================================================
   Coverage map section
   ========================================================================== */

.rhf-sa-coverage,
.rhf-sa-directory,
.rhf-sa-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(4.75rem, 8.5vw, 8rem) 0;
}

.rhf-sa-coverage {
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(255, 255, 255, 0.08), transparent 58%),
    radial-gradient(760px 360px at 100% 20%, rgba(254, 218, 106, 0.08), transparent 54%),
    linear-gradient(135deg, var(--rhf-sa-dark-a) 0%, var(--rhf-sa-dark-b) 100%);
}

.rhf-sa-coverage::before,
.rhf-sa-close::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(4rem, 9vw, 8rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.12), transparent);
}

.rhf-sa-coverage__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.rhf-sa-coverage__copy h2,
.rhf-sa-section-head h2,
.rhf-sa-close__card h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 5rem);
  font-weight: 860;
  line-height: 0.96;
  letter-spacing: -0.056em;
}

.rhf-sa-coverage__copy p,
.rhf-sa-section-head p,
.rhf-sa-close__card p {
  max-width: 760px;
  margin: clamp(1.25rem, 2vw, 1.7rem) 0 0;
  font-size: clamp(1.03rem, 0.98rem + 0.26vw, 1.2rem);
  line-height: 1.72;
}

.rhf-sa-coverage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.rhf-sa-coverage__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 820;
  backdrop-filter: blur(14px);
}

.rhf-sa-map-card {
  position: relative;
  min-height: clamp(420px, 44vw, 590px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(28px, 4vw, 46px);
  overflow: hidden;
  background:
    radial-gradient(740px 360px at 18% 18%, rgba(254, 218, 106, 0.13), transparent 58%),
    radial-gradient(680px 360px at 88% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(145deg, #7b8ca8 0%, var(--rhf-sa-blue) 50%, var(--rhf-sa-blue-deep) 100%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.24);
}

.rhf-sa-map-card__glow {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 50% 50%, rgba(254, 218, 106, 0.14), transparent 32%),
    radial-gradient(circle at 58% 38%, rgba(255, 255, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.rhf-sa-map-card__map {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.055);
  background-size: 42px 42px;
}

.rhf-sa-map-card__ring {
  position: absolute;
  left: 42%;
  top: 54%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
}

.rhf-sa-map-card__ring--outer {
  width: min(90%, 430px);
  aspect-ratio: 1;
  border: 2px solid rgba(254, 218, 106, 0.46);
  background: rgba(254, 218, 106, 0.05);
  box-shadow: 0 0 70px rgba(254, 218, 106, 0.16);
}

.rhf-sa-map-card__ring--middle {
  width: min(66%, 310px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.rhf-sa-map-card__ring--inner {
  width: min(32%, 152px);
  aspect-ratio: 1;
  border: 1px dashed rgba(254, 218, 106, 0.7);
}

.rhf-sa-map-card__pin {
  position: absolute;
  left: 42%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(254, 218, 106, 0.18);
  box-shadow: 0 0 0 10px rgba(254, 218, 106, 0.12), 0 18px 50px rgba(0, 0, 0, 0.26);
}

.rhf-sa-map-card__pin span {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--rhf-sa-gold-bright);
}

.rhf-sa-map-card__shore {
  position: absolute;
  right: -6%;
  top: -10%;
  width: 34%;
  height: 120%;
  border-radius: 54% 0 0 46%;
  background:
    linear-gradient(180deg, rgba(7, 24, 47, 0.28), rgba(7, 24, 47, 0.12));
  transform: rotate(4deg);
}

.rhf-sa-map-card__road {
  position: absolute;
  left: 6%;
  right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  transform-origin: center;
}

.rhf-sa-map-card__road--one {
  top: 55%;
  transform: rotate(-18deg);
}

.rhf-sa-map-card__road--two {
  top: 42%;
  transform: rotate(24deg);
}

.rhf-sa-map-card__label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.5);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 860;
  backdrop-filter: blur(12px);
}

.rhf-sa-map-card__label--bridgeview {
  left: 44%;
  top: 61%;
}

.rhf-sa-map-card__label--chicago {
  left: 53%;
  top: 34%;
}

.rhf-sa-map-card__label--north {
  left: 24%;
  top: 15%;
}

.rhf-sa-map-card__label--indiana {
  right: 8%;
  bottom: 18%;
}

.rhf-sa-map-card__meta {
  position: absolute;
  left: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 3;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(16, 18, 24, 0.56);
  backdrop-filter: blur(18px);
}

.rhf-sa-map-card__meta strong {
  color: #ffffff;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.05;
}

.rhf-sa-map-card__meta span {
  color: var(--rhf-sa-text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Directory cards
   ========================================================================== */

.rhf-sa-directory {
  color: var(--rhf-sa-text);
  background:
    radial-gradient(760px 380px at 12% 0%, rgba(254, 218, 106, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(73, 77, 95, 0.96), rgba(29, 30, 34, 0.98));
}

.rhf-sa-directory::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(4rem, 9vw, 8rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.12), transparent);
}

.rhf-sa-directory > .rhf-sa-shell,
.rhf-sa-close > .rhf-sa-shell {
  position: relative;
  z-index: 1;
}

.rhf-sa-section-head {
  max-width: 860px;
  margin-bottom: clamp(2.2rem, 5vw, 4.1rem);
}

.rhf-sa-state-group + .rhf-sa-state-group {
  margin-top: clamp(3.5rem, 7vw, 5.8rem);
}

.rhf-sa-state-group > h3 {
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
  color: var(--rhf-sa-gold);
  -webkit-text-fill-color: var(--rhf-sa-gold);
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.rhf-sa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.rhf-sa-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(254, 218, 106, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.rhf-sa-card:hover,
.rhf-sa-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(254, 218, 106, 0.42);
  background:
    radial-gradient(460px 240px at 12% 0%, rgba(254, 218, 106, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22);
}

.rhf-sa-card h4 {
  margin: 0;
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.46rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.rhf-sa-card h4 a {
  color: #ffffff;
  text-decoration: none;
}

.rhf-sa-card h4 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rhf-sa-card p {
  margin: 0.95rem 0 0;
  color: var(--rhf-sa-text-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.rhf-sa-zips {
  display: grid;
  gap: 0.35rem;
  margin-top: auto !important;
  padding-top: 1rem;
  font-size: 0.92rem;
}

.rhf-sa-zips strong {
  color: rgba(255, 255, 255, 0.94);
}

.rhf-sa-zips span {
  color: var(--rhf-sa-gold);
  font-weight: 840;
}

.rhf-sa-card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.rhf-sa-card-link::after {
  content: "→";
  color: var(--rhf-sa-gold);
  transition: transform 180ms ease;
}

.rhf-sa-card-link:hover::after,
.rhf-sa-card-link:focus-visible::after {
  transform: translateX(0.24rem);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.rhf-sa-close {
  background:
    radial-gradient(860px 420px at 10% 0%, rgba(254, 218, 106, 0.10), transparent 58%),
    radial-gradient(740px 360px at 96% 18%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(135deg, #2c242b 0%, #1c141a 100%);
}

.rhf-sa-close__card {
  max-width: 980px;
  padding: clamp(2rem, 4.8vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(680px 320px at 10% 0%, rgba(254, 218, 106, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

/* ==========================================================================
   Header transparency alignment
   ========================================================================== */

body:has(.rhf-service-areas-page) .site-header,
body:has(.rhf-service-areas-page) .site-header__bar {
  background: rgba(0, 0, 0, 0) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 0 none transparent !important;
}

body:has(.rhf-service-areas-page) .site-header::before,
body:has(.rhf-service-areas-page) .site-header::after,
body:has(.rhf-service-areas-page) .site-header__bar::before,
body:has(.rhf-service-areas-page) .site-header__bar::after {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .rhf-sa-coverage__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .rhf-sa-shell {
    width: min(100% - 28px, 1180px);
  }

  .rhf-sa-hero {
    min-height: 720px;
    align-items: flex-end;
  }

  .rhf-sa-hero__inner {
    padding-block: clamp(7rem, 26vw, 9rem) clamp(4rem, 16vw, 6rem);
  }

  .rhf-sa-hero h1 {
    max-width: 9.5ch;
    font-size: clamp(3.05rem, 15vw, 5.25rem);
  }

  .rhf-sa-coverage,
  .rhf-sa-directory,
  .rhf-sa-close {
    padding: clamp(3.5rem, 13vw, 5.4rem) 0;
  }

  .rhf-sa-map-card {
    min-height: 430px;
  }

  .rhf-sa-map-card__map {
    inset: 6%;
  }

  .rhf-sa-grid {
    grid-template-columns: 1fr;
  }

  .rhf-sa-card {
    min-height: 0;
  }

  .rhf-sa-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhf-sa-hero__video {
    display: none;
  }

  .rhf-sa-card,
  .rhf-sa-card-link::after {
    transition: none;
  }
}

/* Lighten Service Areas hero video shade */
.rhf-sa-hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 15, 25, 0.36) 0%, rgba(5, 15, 25, 0.18) 45%, rgba(5, 15, 25, 0.03) 100%),
    linear-gradient(180deg, rgba(5, 15, 25, 0.03) 0%, rgba(5, 15, 25, 0.20) 100%) !important;
}


/* Real Royal service area map image */
.rhf-sa-map-card--image {
  position: relative;
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(620px 300px at 12% 0%, rgba(254, 218, 106, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.22);
}

.rhf-sa-map-card--image picture,
.rhf-sa-map-card--image img {
  display: block;
  width: 100%;
}

.rhf-sa-map-card--image img {
  height: auto;
}

.rhf-sa-map-card--image .rhf-sa-map-card__meta {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.15rem;
  background: rgba(20, 16, 20, 0.72);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rhf-sa-map-card--image .rhf-sa-map-card__meta strong {
  color: #feda6a;
  font-weight: 900;
}

.rhf-sa-map-card--image .rhf-sa-map-card__meta span {
  color: rgba(255, 255, 255, 0.78);
}

