/* Unified builder site shell — header / footer / optional top bar */

.frs-site-shell-topbar {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0;
  background: rgba(15, 23, 42, 0.045);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}

.frs-site-shell-header--dark .frs-site-shell-topbar {
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(248, 250, 252, 0.12);
  color: rgba(248, 250, 252, 0.92);
}

.frs-site-shell-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  text-align: center;
}

@media (min-width: 900px) {
  .frs-site-shell-topbar-inner {
    justify-content: center;
    gap: 8px 28px;
  }
}

.frs-site-shell-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  max-width: 100%;
}

.frs-site-shell-topbar-item a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.frs-site-shell-topbar-item a:hover {
  text-decoration: underline;
}

.frs-site-shell-topbar-item--address {
  opacity: 0.95;
}

.frs-site-shell-topbar-item--hours {
  font-weight: 600;
  opacity: 0.95;
}

.frs-site-shell-topbar-item + .frs-site-shell-topbar-item::before {
  content: "";
  display: none;
}

@media (min-width: 720px) {
  .frs-site-shell-topbar-item + .frs-site-shell-topbar-item {
    position: relative;
    padding-left: 22px;
  }
  .frs-site-shell-topbar-item + .frs-site-shell-topbar-item::before {
    display: block;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.35;
    content: "";
  }
}

.frs-site-shell-header {
  position: relative;
  z-index: 40;
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.08),
    0 10px 32px rgba(15, 23, 42, 0.05);
}

.frs-site-shell-header--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.frs-site-shell-header--transparent {
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}

.frs-site-shell-header--transparent .frs-site-shell-inner {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.frs-site-shell-header--minimal {
  background: #f8fafc;
  box-shadow: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Dark bar (professional default option — use custom bg_color for brand fill) */
.frs-site-shell-header--dark {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.frs-site-shell-header--dark .frs-site-shell-brand-sub {
  color: rgba(226, 232, 240, 0.82);
}

.frs-site-shell-header--dark .frs-site-shell-nav-links a:hover {
  background: rgba(248, 250, 252, 0.1);
}

.frs-site-shell-header--nav_dark .frs-site-shell-cta {
  background: var(--tenant-primary-color, #2563eb);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.frs-site-shell-header--nav_dark.frs-site-shell-header--transparent .frs-site-shell-cta {
  background: #fff;
  color: #0f172a !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.frs-site-shell-header--dark.frs-site-shell-header--cta_outline .frs-site-shell-cta {
  color: #f8fafc !important;
  box-shadow: inset 0 0 0 2px rgba(248, 250, 252, 0.55);
}

.frs-site-shell-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 96px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1.15fr);
  align-items: center;
  column-gap: clamp(20px, 3.5vw, 48px);
}

.frs-site-shell-col--brand {
  justify-self: start;
  min-width: 0;
}

.frs-site-shell-col--nav {
  justify-self: center;
  min-width: 0;
}

.frs-site-shell-col--cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.frs-site-shell-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.frs-site-shell-social-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  text-decoration: none !important;
  line-height: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.frs-site-shell-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.frs-site-shell-social-link--fb {
  color: #1877f2;
}
.frs-site-shell-social-link--ig {
  color: #e1306c;
}
.frs-site-shell-social-link--yt {
  color: #ff0000;
  font-size: 0.65rem;
}
.frs-site-shell-social-link--tw {
  color: #0f172a;
  font-size: 0.7rem;
}

.frs-site-shell-header--dark .frs-site-shell-social-link {
  border-color: rgba(248, 250, 252, 0.22);
  background: rgba(0, 0, 0, 0.16);
  color: #f8fafc;
}
.frs-site-shell-header--dark .frs-site-shell-social-link--fb {
  color: #93c5fd;
}
.frs-site-shell-header--dark .frs-site-shell-social-link--ig {
  color: #f9a8d4;
}
.frs-site-shell-header--dark .frs-site-shell-social-link--yt {
  color: #fca5a5;
}

.frs-site-shell-phone {
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none !important;
  color: inherit;
  opacity: 0.95;
  white-space: nowrap;
}

.frs-site-shell-phone:hover {
  opacity: 1;
  text-decoration: underline !important;
}

.frs-site-shell-header--layout_stacked_mobile .frs-site-shell-inner,
.frs-site-shell-header--layout_logo_left .frs-site-shell-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: auto;
  padding-top: 22px;
  padding-bottom: 22px;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-col--brand {
  justify-self: center;
  text-align: center;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-brand {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-col--nav {
  justify-self: center;
  width: 100%;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-nav-links {
  justify-content: center;
}

.frs-site-shell-header--layout_center_logo .frs-site-shell-col--cta {
  justify-self: center;
}

.frs-site-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 18px);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.frs-site-shell-brand-text {
  min-width: 0;
}

.frs-site-shell-brand-name {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.frs-site-shell-brand-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

.frs-site-shell-header--transparent .frs-site-shell-brand-sub {
  color: rgba(248, 250, 252, 0.88);
}

.frs-site-shell-logo-img {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  max-width: min(320px, 44vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.frs-site-shell-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
}

.frs-site-shell-nav-links a {
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.95;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.frs-site-shell-nav-links a:hover {
  background: rgba(15, 23, 42, 0.08);
  opacity: 1;
}

.frs-site-shell-nav-links a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tenant-primary-color, #2563eb) 70%, #0f172a);
  outline-offset: 2px;
}

.frs-site-shell-header--transparent .frs-site-shell-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.frs-site-shell-header--dark .frs-site-shell-nav-links a {
  opacity: 0.95;
}

.frs-site-shell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  background: var(--tenant-primary-color, #2563eb);
  color: #fff !important;
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--tenant-primary-color, #2563eb) 42%, transparent),
    0 10px 28px rgba(15, 23, 42, 0.12);
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.frs-site-shell-cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px color-mix(in srgb, var(--tenant-primary-color, #2563eb) 48%, transparent),
    0 14px 34px rgba(15, 23, 42, 0.14);
}

.frs-site-shell-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.frs-site-shell-header--dark .frs-site-shell-cta:focus-visible {
  outline-color: rgba(248, 250, 252, 0.95);
}

.frs-site-shell-header--cta_outline .frs-site-shell-cta {
  background: transparent !important;
  color: inherit !important;
  box-shadow: inset 0 0 0 2px currentColor;
}

.frs-site-shell-header--nav_dark.frs-site-shell-header--cta_outline:not(.frs-site-shell-header--dark) .frs-site-shell-cta {
  color: #0f172a !important;
  box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.35);
}

.frs-site-shell-header--cta_ghost .frs-site-shell-cta {
  background: rgba(15, 23, 42, 0.06) !important;
  color: inherit !important;
  box-shadow: none;
}

.frs-site-shell-header--transparent.frs-site-shell-header--cta_ghost .frs-site-shell-cta {
  background: rgba(248, 250, 252, 0.14) !important;
  color: #fff !important;
}

/* Pre-footer CTA band */
.frs-site-shell-prefooter {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  padding: 48px 20px;
  text-align: center;
}

.frs-site-shell-prefooter-inner {
  max-width: 720px;
  margin: 0 auto;
}

.frs-site-shell-prefooter h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.frs-site-shell-prefooter p {
  margin: 0 0 22px;
  opacity: 0.92;
  line-height: 1.55;
}

.frs-site-shell-prefooter a {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a !important;
  font-weight: 800;
}

/* Footer */
.frs-site-shell-footer {
  padding: 40px 20px 28px;
  background: #0b1220;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.92rem;
}

.frs-site-shell-footer--tone_light {
  background: #f1f5f9;
  color: #334155;
}

.frs-site-shell-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.frs-site-shell-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.frs-site-shell-footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.85;
}

.frs-site-shell-footer-col p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.frs-site-shell-footer-col a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.frs-site-shell-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frs-site-shell-footer-links li {
  margin: 0;
}

.frs-site-shell-footer-links a {
  font-weight: 650;
  font-size: 0.95rem;
}

.frs-site-shell-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 0.9rem;
  opacity: 0.95;
}

.frs-site-shell-footer-contact span {
  min-width: 0;
}

.frs-site-shell-footer--tone_light .frs-site-shell-footer-contact a {
  color: #0f172a;
}

.frs-site-shell-footer-meta {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.88rem;
}

.frs-site-shell-footer--tone_light .frs-site-shell-footer-meta {
  border-top-color: rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
 * Narrow / mobile — this block MUST appear after base nav link rules so it
 * overrides white-space:nowrap (otherwise links overlap in the grid shell).
 * -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .frs-site-shell-header .frs-site-shell-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: auto;
    padding: 12px 16px;
  }

  .frs-site-shell-header--layout_center_logo .frs-site-shell-inner {
    align-items: stretch;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .frs-site-shell-header .frs-site-shell-col--brand,
  .frs-site-shell-header .frs-site-shell-col--nav,
  .frs-site-shell-header .frs-site-shell-col--cta {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .frs-site-shell-header .frs-site-shell-col--brand {
    order: 1;
  }

  .frs-site-shell-header .frs-site-shell-col--nav {
    order: 2;
  }

  .frs-site-shell-header .frs-site-shell-col--cta {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    justify-content: flex-start;
  }

  .frs-site-shell-header .frs-site-shell-brand {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .frs-site-shell-header .frs-site-shell-brand-text {
    text-align: center;
    min-width: 0;
    flex: 1 1 12rem;
  }

  .frs-site-shell-header .frs-site-shell-brand-name {
    font-size: clamp(1.02rem, 4.2vw, 1.22rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .frs-site-shell-header .frs-site-shell-brand-sub {
    overflow-wrap: anywhere;
  }

  .frs-site-shell-header .frs-site-shell-logo-img {
    margin-left: auto;
    margin-right: auto;
    max-width: min(260px, 82vw);
    height: auto;
    object-position: center center;
  }

  .frs-site-shell-header .frs-site-shell-nav-links {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .frs-site-shell-header .frs-site-shell-nav-links a {
    white-space: normal;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 0.94rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .frs-site-shell-header .frs-site-shell-phone {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .frs-site-shell-header .frs-site-shell-cta {
    white-space: normal;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding-left: 18px;
    padding-right: 18px;
  }

  .frs-site-shell-header .frs-site-shell-social {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .frs-site-shell-topbar-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
}

body[data-inline-edit="true"] .frs-site-shell-editable,
body.builder-mode .frs-site-shell-editable {
  outline: 1px dashed rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
}
