/* ==========================================
   R&K COMPANION ADDITIONAL CSS (CLEAN & SHARP)
   ========================================== */

/* 1. Global Font Smoothing, Crisp Rendering & Scroll Reset */
html {
  scroll-behavior: auto !important;
}

html, body {
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

body:not(.home) {
  scroll-margin-top: 0 !important;
}

/* 2. Homepage Header & Full-Bleed Layout */
body.home .site-content,
body.home .site-inner,
body.home .content-area,
body.home #primary,
body.home .site-main,
body.home .pique-panel,
body.home .pique-panel-content,
body.home .panel-content,
body.home .site-main > article,
body.home .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 0 !important;
}

body.home.page .entry-header:first-of-type,
body.home.page .page-header:first-of-type {
  height: 0 !important;
  min-height: 0 !important;
  display: none !important;
}

/* Hide sidebars on homepage, but EXCLUDE the footer widget area */
body.home .entry-title,
body.home .wp-block-post-title,
body.home .edit-link,
body.home .post-edit-link,
body.home aside,
body.home .widget-area:not(.site-footer .widget-area):not(#colophon .widget-area),
body.home .sidebar-container,
body.home .sidebar,
body.home #secondary,
body.home div[id*="sidebar"]:not(.site-footer *),
body.home div[class*="sidebar"]:not(.site-footer *) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Sunrise Header Background & Nav Bar */
body.home .site-header,
body.home #masthead {
  position: relative !important;
  width: 100% !important;
  background: url("https://randkaudiovideo.com/wp-content/uploads/2023/11/img_9205.jpg") center center / cover no-repeat !important;
  padding: 44px 0 0 0 !important;
  margin: 0 !important;
  min-height: 270px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Uniform dark gradient overlay */
body.home .site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16, 36, 58, 0.52) 0%,
    rgba(16, 36, 58, 0.62) 50%,
    rgba(16, 36, 58, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

body.home .site-branding,
body.home .main-navigation,
body.home #site-navigation {
  position: relative !important;
  z-index: 2 !important;
}

body.home .main-navigation,
body.home #site-navigation {
  background-color: #10243a !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  overflow: visible !important;
}

/* Desktop-only flex centering (Strictly >= 769px) */
@media (min-width: 769px) {
  body.home .main-navigation ul,
  body.home #site-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 24px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
  }
}

body.home .main-navigation a,
body.home #site-navigation a {
  color: #ffffff !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body.home .main-navigation a:hover,
body.home #site-navigation a:hover {
  color: #93c5fd !important;
}

body.home .site-branding {
  background: transparent !important;
  padding: 10px 16px 26px 16px !important;
  box-shadow: none !important;
  text-align: center !important;
}

body.home .site-title,
body.home .site-title a {
  color: #ffffff !important;
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  text-decoration: none !important;
}

body.home .site-header .custom-logo,
body.home .site-branding img,
body.home .site-header .custom-logo-link img {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-height: 54px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) !important;
}

body.home .site-description,
body.home .site-branding .site-description,
body.home p.site-description {
  font-family: Inter, system-ui, sans-serif !important;
  font-style: normal !important;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem) !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  margin-top: 6px !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8) !important;
  opacity: 1 !important;
}

/* 4. Compact Single-Row Mobile Navigation & Overflow (<= 768px) */
@media (max-width: 768px) {
  body.home .site-header,
  body.home #masthead {
    min-height: 200px !important;
    padding-top: 20px !important;
    background-size: cover !important;
  }

  /* Compact the container and reduce horizontal gaps so items fit on one line */
  body.home .main-navigation,
  body.home #site-navigation {
    padding: 10px 4px !important;
  }

  body.home .main-navigation ul,
  body.home #site-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 4px !important;
    margin: 0 auto !important;
  }

  /* Slightly smaller font size so more words fit horizontally */
  body.home .main-navigation a,
  body.home #site-navigation a {
    font-size: 0.65rem !important;
    letter-spacing: 0.02em !important;
    padding: 2px 0 !important;
    white-space: nowrap !important;
  }

  /* Style Pique's three-dots toggle button inline */
  body.home .menu-toggle,
  body.home button.menu-toggle,
  body.home .main-navigation .menu-toggle {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    padding: 0 4px !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  /* Style Pique's hidden-links dropdown when three dots are tapped */
  body.home .main-navigation ul.hidden-links,
  body.home #site-navigation ul.hidden-links {
    background-color: #10243a !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    min-width: 180px !important;
    padding: 6px 0 !important;
  }

  body.home .main-navigation ul.hidden-links li,
  body.home #site-navigation ul.hidden-links li {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  body.home .main-navigation ul.hidden-links li:last-child {
    border-bottom: none !important;
  }

  body.home .main-navigation ul.hidden-links a {
    display: block !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================
   5. FOOTER - CLEAN 3-COLUMN LAYOUT
   ========================================== */

/* Solid navy base, no photo behind it */
body #colophon,
body .site-footer,
body footer.site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: #10243a !important;
  background-image: none !important;
  border-top: 3px solid #1b365d !important;
  padding: 64px 28px 28px 28px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  clear: both !important;
}

body .site-footer::before,
body .site-footer::after { display: none !important; }

/* Columns */
body .site-footer .widget-area,
body #colophon .widget-area {
  display: flex !important;
  visibility: visible !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 40px 56px !important;
  width: 100% !important;
  max-width: 1160px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  float: none !important;
}

body.home .site-footer aside,
body.home .site-footer .widget,
body.home .site-footer .widget_block,
body.home #colophon aside,
body.home #colophon .widget,
body.home #colophon .widget_block {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

body .site-footer .widget-area > * {
  flex: 1 1 240px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}

body .site-footer div,
body .site-footer section,
body .site-footer aside,
body .site-footer nav {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Column headings with a small accent bar */
body .site-footer h1,
body .site-footer h2,
body .site-footer h3,
body .site-footer .widget-title {
  font-family: Fraunces, Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 0 0 22px 0 !important;
  padding: 0 0 14px 0 !important;
  border: 0 !important;
  border-bottom: 2px solid #2f5185 !important;
  display: block !important;
  width: 100% !important;
}

/* Lists: Contact + Quick Links share one identical row style */
body .site-footer ul,
body .site-footer .rk-footer-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .site-footer ul li,
body .site-footer .rk-footer-list li,
body .site-footer .menu li {
  margin: 0 !important;
  padding: 13px 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  height: auto !important;
}

body .site-footer ul li:first-child { padding-top: 2px !important; }
body .site-footer ul li:last-child { border-bottom: 0 !important; }
body .site-footer ul li::before,
body .site-footer ul li::after,
body .site-footer ul li br { display: none !important; }
body .site-footer ul li p { margin: 0 !important; }

body .site-footer ul li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  color: #e4ebf5 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body .site-footer ul li a::before,
body .site-footer ul li a::after { display: none !important; }

body .site-footer ul li a:hover { color: #93c5fd !important; }

.rk-footer-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  fill: #93c5fd !important;
  flex-shrink: 0 !important;
}

body .site-footer p,
body .site-footer span {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-style: normal !important;
  line-height: 1.7 !important;
  color: #d6dfeb !important;
}

/* Awards column: ONE heading, badges wrap in a tidy row */
body .site-footer .widget-area > *:has(> .widget:has(img)),
body .site-footer .widget-area > *:has(> aside:has(img)),
body .site-footer .widget-area > *:has(> section:has(img)) {
  flex: 1.7 1 380px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  gap: 18px 20px !important;
}

body .site-footer *:has(> .widget:has(img))::before,
body .site-footer *:has(> aside:has(img))::before,
body .site-footer *:has(> section:has(img))::before {
  content: "Our Awards";
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  font-family: Fraunces, Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
  padding: 0 0 14px 0 !important;
  border-bottom: 2px solid #2f5185 !important;
}

body .site-footer .widget:has(img),
body .site-footer aside:has(img),
body .site-footer section.widget:has(img) {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body .site-footer .widget:has(img) figure,
body .site-footer .widget:has(img) .wp-block-image,
body .site-footer .widget:has(img) a {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .site-footer img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 64px !important;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

/* Bottom bar */
body .site-footer .site-info,
body #colophon .site-info {
  max-width: 1160px !important;
  margin: 48px auto 0 auto !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  text-align: center !important;
}

body .site-footer .site-info,
body .site-footer .site-info a {
  font-size: 0.85rem !important;
  color: #8da2bd !important;
}

@media (max-width: 700px) {
  body .site-footer { padding: 44px 20px 24px 20px !important; }
  body .site-footer .widget-area > * { flex: 1 1 100% !important; }
  body .site-footer img { height: 52px !important; }
}

/* Hide WordPress Share This module */
div.sharedaddy,
div.sd-sharing,
.sharedaddy {
  display: none !important;
}
/* ==========================================
   6. FINISHING TOUCHES
   ========================================== */

/* Header logo in white so it reads over the sunset */
body.home .site-header .site-logo,
body.home .site-branding img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)) !important;
}

/* Remove the empty cream strip above the footer */
body.home .pique-panel-content,
body.home .entry-content,
body.home .pique-panel,
body.home .site-main > article {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body.home .entry-footer { display: none !important; }

/* Footer awards: equal-size tiles in a tidy grid */
body .site-footer .widget:has(img),
body .site-footer aside:has(img),
body .site-footer section.widget:has(img) {
  flex: 0 0 150px !important;
  height: 76px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body .site-footer .widget:has(img) .wp-block-image,
body .site-footer .widget:has(img) figure {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
body .site-footer img {
  height: auto !important;
  max-height: 64px !important;
  max-width: 150px !important;
}

/* Footer bottom line */
body .site-footer .site-info { font-size: 0 !important; font-style: normal !important; }
body .site-footer .site-info a { display: none !important; }
body .site-footer .site-info::before {
  content: "© 2026 R&K Audio Video · Website by Livingston Tech Solutions";
  font-size: 0.85rem;
  color: #8da2bd;
  font-style: normal;
  font-family: Inter, system-ui, sans-serif;
}

@media (max-width: 700px) {
  body .site-footer .widget:has(img),
  body .site-footer aside:has(img) { flex: 0 0 calc(50% - 10px) !important; height: 64px !important; }
  body .site-footer img { max-height: 52px !important; max-width: 100% !important; }
}