/* ============================================================
   RANCHO MEAT MARKET — LIGHT THEME OVERRIDE
   White background, dark text, red (#c22228) accents
   Loaded LAST to override Webflow dark defaults
============================================================ */

/* --- Page Background --- */
html, body {
  background-color: #FAFAFA !important;
  color: #1a1a1a !important;
}

/* --- Nav: override Webflow grid with clean flexbox --- */
.nav_menu-items-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  grid-column-gap: 0 !important;
  grid-template-columns: none !important;
}
.nav_menu-link-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  width: auto !important;
  grid-column-gap: 0 !important;
  justify-content: flex-end !important;
}
.nav_menu-link-wrap.is-left {
  justify-content: flex-start !important;
  gap: 1.5rem !important;
  width: auto !important;
}
.nav_link .z-index-2 {
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
}
.nav_brand {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* --- Dark sections → White --- */
.background-color-black {
  background-color: #FAFAFA !important;
  color: #1a1a1a !important;
}
.section.background-color-black {
  background-color: #FAFAFA !important;
  color: #1a1a1a !important;
}

/* --- White sections: fix Webflow's broken spacing --- */
/* Webflow has margin-bottom:-225px + padding-bottom:30.3rem causing huge overlaps */
.section.background-color-white {
  background-color: transparent !important;
  margin-bottom: 0 !important;
  padding-bottom: 2rem !important;
  margin-top: 0 !important;
}
.background-color-white {
  background-color: transparent !important;
}

/* --- Fix hero section top gap --- */
.section.is-about-hero {
  margin-top: 0 !important;
  padding-top: 2rem !important;
  padding-bottom: 0.5rem !important;
}

/* --- Tighten section spacing (Webflow has excessive 7.5rem+ padding) --- */
.section {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.section.background-color-black {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/* --- Hide empty sections --- */
section:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Text colors for light bg --- */
.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.heading-style-h4 {
  color: #080808 !important;
}
.heading-style-h1 .is-word {
  color: #c22228 !important;
}
.paragraph,
.text-size-large,
.text-size-medium,
.text-size-regular,
.text-size-small {
  color: #333 !important;
}
.text-color-lightgrey,
.text-size-eyebrow {
  color: #777 !important;
}

/* --- Links on light background --- */
a {
  color: #1a1a1a;
}
a:hover {
  color: #c22228;
}

/* --- Wider container on menu/content pages --- */
.section.background-color-white .container-large {
  width: 98% !important;
  max-width: 100rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.section.background-color-white {
  overflow: visible !important;
  padding-top: 0.5rem !important;
  padding-bottom: 5rem !important;
}

/* --- Card grid --- */
.player_list {
  grid-template-rows: auto !important;
  grid-column-gap: 1.5rem !important;
  grid-row-gap: 2rem !important;
  align-items: stretch !important;
  justify-items: center !important;
  margin-top: 2rem !important;
}

/* --- Cards / list items --- */
.player_item-copy,
.player_item {
  background-color: transparent;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  overflow: visible !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.player_item-copy:hover,
.player_item:hover {
  border-color: rgba(194,34,40,0.3);
  box-shadow: 0 4px 20px rgba(194,34,40,0.08);
}

/* Fixed image height so all cards match */
.player_visual.shadow-card {
  border-radius: 0.75rem;
  overflow: hidden;
  height: 220px !important;
  aspect-ratio: auto !important;
}
.player_visual.shadow-card .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player_item-copy .margin-bottom-40 {
  margin-bottom: 1rem !important;
}

/* Card text area: fill space, push button to bottom */
.player_item-copy .max-width-440 {
  max-width: 100% !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.player_item-copy .flex-block {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
}
/* Title: consistent size */
.player_item-copy .heading-style-h2 {
  font-size: 2rem !important;
  line-height: 1.1 !important;
  min-height: 2.2em;
}
/* Description: takes remaining space */
.player_item-copy .flex-block .margin-bottom-24:last-of-type {
  flex: 1;
  margin-bottom: 1.5rem !important;
}
.player_item-copy .text-size-medium {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}
/* Empty spacer div removal */
.player_item-copy .margin-bottom-16:empty {
  display: none !important;
}
/* Button: always at bottom, fully contained */
.player_item-copy .button {
  margin-top: auto !important;
  align-self: flex-start;
  flex-shrink: 0;
}

/* --- Location cards --- */
.locations_item {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;
  padding: 1rem;
}
.locations_item:hover {
  border-color: rgba(194,34,40,0.3);
  box-shadow: 0 4px 20px rgba(194,34,40,0.08);
}

/* --- Buttons --- */
.button {
  background-color: #c22228 !important;
  color: white !important;
  border-radius: 5rem;
}
.button.is-secondary {
  background-color: #c22228 !important;
  color: white !important;
  border-color: #c22228 !important;
}
.button.is-secondary p,
.button.is-secondary p strong {
  color: white !important;
}
.button:hover {
  background-color: #a01a1f !important;
}

/* --- KEEP DARK: Nav, Footer, Hero Overlays, Social Proof Bar --- */
.nav_wrapper,
.nav_component {
  background-color: #FAFAFA !important;
  color: #1a1a1a !important;
}
.nav_link {
  color: #333 !important;
}
.nav_link:hover {
  color: #c22228 !important;
}
.nav_link.w--current {
  color: #c22228 !important;
}

.section.is-footer,
.footer_wrapper,
.footer_component {
  background-color: #FAFAFA !important;
  color: #333 !important;
}
.footer_link {
  color: #333 !important;
}
.footer_link:hover {
  color: #c22228 !important;
}
.footer_bottom {
  color: #777 !important;
}

/* Hero sections keep dark overlay */
.section.is-video,
.section.is-video .video_btn,
.section.is-video .video_title,
.section.is-video .heading-style-h1,
.section.is-video .heading-style-h2,
.section.is-video .heading-style-h3,
.section.is-video p,
.video_btn,
.video_title {
  color: white !important;
}

.section.is-about-hero {
  background-color: #FAFAFA !important;
  color: #1a1a1a !important;
}
.section.is-about-hero .video_box {
  background-color: #FAFAFA !important;
}
.section.is-about-hero .heading-style-h1 {
  color: #c22228 !important;
}
.section.is-about-hero .heading-style-h1 .is-word {
  color: #c22228 !important;
}
.section.is-about-hero .paragraph,
.section.is-about-hero .text-size-large {
  color: #333 !important;
}
.section.is-location-hero {
  color: #1a1a1a !important;
}

/* Social proof bar stays dark */
.rmm-spb {
  background: #080808 !important;
}

/* --- FIX: White-on-white invisible text (Webflow used white text for dark theme) --- */
.text-color-white,
.text-block-2,
.text-block-4,
.heading-style-h4,
.heading-style-h4-2,
.text-size-eyebrow,
.text-size-eyebrow-2,
.locations_card,
.locations_item,
.hero_inner,
.video_title_DISABLED,
.video_btn_DISABLED,
.rt-service-three-contact-heading,
.rt-button,
.rt-button-five,
.form-input.is-select-input,
.form-input.is-green,
.contact_visual-mask,
.section.is-location {
  color: #1a1a1a !important;
}

/* Specific elements that need different shades */
.text-size-eyebrow,
.text-size-eyebrow-2 {
  color: #777 !important;
}
.locations_item .heading-style-h4 {
  color: #080808 !important;
}
.locations_item .text-size-eyebrow {
  color: #888 !important;
}
.rt-divider.rt-service-three-contact-divider {
  border-color: #e0e0e0 !important;
}

/* Location cards text */
.locations_card p,
.locations_card a,
.locations_item p,
.locations_item a {
  color: #333 !important;
}
.locations_card a:hover,
.locations_item a:hover {
  color: #c22228 !important;
}

/* --- Force all p/desc text readable on light bg --- */
p {
  color: #333 !important;
}
.taq-card__desc,
.taq-card p {
  color: #555 !important;
}
.taq-section p {
  color: #555 !important;
}

/* --- Dividers / borders for light theme --- */
.border-bottom {
  border-color: #e8e8e8 !important;
}

/* --- FAQ / Accordion --- */
.faqs_item {
  border-color: #e0e0e0 !important;
}
.faqs_title {
  color: #1a1a1a !important;
}
.faqs_body,
.faqs_answer {
  color: #555 !important;
}

/* --- Video box on light bg --- */
.video_box {
  border-radius: 1.5rem;
  overflow: hidden;
}

/* --- Stats / numbers --- */
.stat_number,
.stat_label {
  color: #080808 !important;
}

/* --- Scroll animation text on white --- */
.scroll_text,
.scroll_heading {
  color: #080808 !important;
}

/* --- Testimonials on light bg --- */
.rmm-testimonials {
  background: #f5f5f5 !important;
}
.rmm-testimonial-card {
  background: white !important;
  border: 1px solid #e8e8e8 !important;
  color: #333 !important;
}
.rmm-testimonial-card:hover {
  border-color: rgba(194,34,40,0.3) !important;
}

/* --- Custom redesigned sections (contact, call-us) --- */
.contact-hero,
.callus-hero {
  background: white !important;
  color: #080808 !important;
}
.contact-hero h1,
.callus-hero h1 {
  color: #c22228 !important;
}

/* --- Phone numbers on light bg --- */
.rmm-loc-phone {
  color: #c22228 !important;
}
.rmm-loc-hours {
  color: #777 !important;
}

/* --- Premium features badges on light bg --- */
.rmm-feature-badge {
  background: rgba(194,34,40,0.08) !important;
  border-color: rgba(194,34,40,0.2) !important;
  color: #c22228 !important;
}

/* --- Social proof strip --- */
.rmm-social-proof {
  background: #f5f5f5 !important;
  border-color: #e8e8e8 !important;
}

/* --- Sticky mobile CTA stays red --- */
.rmm-sticky-cta {
  background: #c22228 !important;
}
.rmm-sticky-cta a {
  color: white !important;
}
