/*
Theme Name:   Red Bird Ranch
Theme URI:    https://redbirdranch.farm
Description:  Red Bird Ranch custom child theme. Built on Divi. Do not edit Divi parent theme files — make all customisations here.
Author:       Red Bird Ranch
Author URI:   https://redbirdranch.farm
Template:     Divi
Version:      1.0.0
Text Domain:  redbirdranch-child
*/

/* ============================================================
   RED BIRD RANCH — DESIGN SYSTEM
   All site-wide custom CSS lives here.
   Page-specific layout CSS is in each page template file.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --rbr-charcoal:       #1C1C1A;
  --rbr-charcoal-light: #242422;
  --rbr-charcoal-mid:   #2E2E2B;
  --rbr-ivory:          #F5F2ED;
  --rbr-ivory-dark:     #E8E4DC;
  --rbr-cardinal:       #9B1C2E;
  --rbr-cardinal-dark:  #7A1523;
  --rbr-cardinal-bright:#D4364F;   /* for links on dark bg */
  --rbr-wood:           #C4935A;   /* warm gold — labels on dark */
  --rbr-concrete:       #8A8780;
}

/* ===== GLOBAL RESETS (scoped to RBR pages) ===== */
.rbr-page * {
  box-sizing: border-box;
}
.rbr-page {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--rbr-charcoal);
  color: var(--rbr-ivory);
  overflow-x: hidden;
}
.rbr-page img {
  max-width: 100%;
  display: block;
}
.rbr-page a {
  text-decoration: none;
  color: inherit;
}
.rbr-page html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.rbr-display {
  font-family: 'Playfair Display', serif;
}

/* Label on light (ivory) background — cardinal red */
.rbr-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rbr-cardinal);
  display: block;
}

/* Label on dark (charcoal) background — warm gold, legible */
.rbr-label-gold {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rbr-wood);
  display: block;
}

/* ===== BUTTONS ===== */
.rbr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rbr-ivory);
  background: var(--rbr-cardinal);
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--rbr-cardinal);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.rbr-btn-primary:hover {
  background: var(--rbr-cardinal-dark);
  border-color: var(--rbr-cardinal-dark);
  color: var(--rbr-ivory);
}

.rbr-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.75);
  background: transparent;
  padding: 0.95rem 2.1rem;
  border: 1px solid rgba(245,242,237,0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.rbr-btn-ghost:hover {
  border-color: rgba(245,242,237,0.7);
  color: var(--rbr-ivory);
}

/* ===== TEXT LINKS ===== */
.rbr-text-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rbr-cardinal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.2s ease;
  text-decoration: none;
}
.rbr-text-link:hover { gap: 0.9rem; }
.rbr-text-link::after { content: '→'; }

/* Text link on dark background — brighter red */
.rbr-text-link-dark {
  color: var(--rbr-cardinal-bright);
}
.rbr-text-link-dark:hover { color: #E8566A; }

/* ===== SCROLL REVEAL ===== */
.rbr-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.rbr-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rbr-reveal-d1 { transition-delay: 0.1s; }
.rbr-reveal-d2 { transition-delay: 0.2s; }
.rbr-reveal-d3 { transition-delay: 0.3s; }

/* ===== NAVIGATION ===== */
#rbr-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1.75rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(28,28,26,0.75) 0%, transparent 100%);
  transition: padding 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}
#rbr-nav.rbr-nav-scrolled {
  padding: 1.1rem 3.5rem;
  background: rgba(28,28,26,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,242,237,0.07);
}

.rbr-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}
.rbr-nav-mark-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(245,242,237,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rbr-nav-mark-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rbr-ivory);
  line-height: 1;
}
/* When using the actual logo image (direct img child) */
.rbr-nav-logo img {
  height: 72px;
  width: auto;
}
/* WordPress custom logo via the_custom_logo() — targets .custom-logo-link and .custom-logo */
#rbr-nav .custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#rbr-nav .custom-logo-link img,
#rbr-nav .custom-logo {
  height: 72px;
  width: auto;
  display: block;
}
.rbr-nav-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rbr-ivory);
  line-height: 1.45;
}

.rbr-nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Override Divi menu styles */
#rbr-nav .rbr-nav-links li {
  margin: 0;
  padding: 0;
}
#rbr-nav .rbr-nav-links li a,
#rbr-nav .rbr-nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.7);
  transition: color 0.2s ease;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}
#rbr-nav .rbr-nav-links li a:hover,
#rbr-nav .rbr-nav-links a:hover {
  color: var(--rbr-ivory);
}

.rbr-nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rbr-ivory) !important;
  border: 1px solid rgba(245,242,237,0.35);
  padding: 0.55rem 1.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.rbr-nav-cta:hover {
  border-color: var(--rbr-cardinal);
  background: var(--rbr-cardinal);
}

/* ===== WORDPRESS ADMIN BAR OFFSET ===== */
.admin-bar #rbr-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #rbr-nav { top: 46px; }
}

/* ============================================================
   MOBILE — NAV & GLOBAL OVERRIDES  (max-width: 768px)
   Page-specific responsive CSS lives in each template's
   <style> block, but nav must be fixed here because
   .rbr-nav-links { display: flex } above would otherwise
   win every specificity battle against inline media queries.
   ============================================================ */
@media (max-width: 768px) {

  /* ── Nav shell ── */
  #rbr-nav {
    padding: 1rem 1.25rem !important;
  }
  #rbr-nav.rbr-nav-scrolled {
    padding: 0.8rem 1.25rem !important;
  }

  /* ── Hide desktop nav elements ── */
  .rbr-nav-links,
  #rbr-nav .rbr-nav-links,
  #rbr-nav ul.rbr-nav-links {
    display: none !important;
  }
  .rbr-nav-cta {
    display: none !important;
  }

  /* ── Hamburger button ── */
  .rbr-nav-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
    flex-shrink: 0;
  }
  .rbr-nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rbr-ivory);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* ── Logo shrink ── catches WordPress custom-logo, direct img, and any other variant ── */
  #rbr-nav img,
  #rbr-nav .custom-logo-link img,
  #rbr-nav .custom-logo,
  #rbr-nav .rbr-nav-logo img {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: none !important;
  }
  /* Keep the nav compact — no min-height letting it balloon */
  #rbr-nav {
    min-height: unset !important;
    align-items: center !important;
  }

}
