/*
Theme Name:     Kadence Child Theme
Theme URI:      n/a
Template:       kadence
Author:         Garrett Nafzinger
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
/* Readable defaults */
body { color: var(--global-palette6); }

/* Text on dark-ish backgrounds should be light */
.has-global-palette2-background-color,
.has-global-palette3-background-color,
.has-global-palette4-background-color { color: #fff; }

/* Text on warm/lighter backgrounds stays dark */
.has-global-palette5-background-color,  /* Tan */
.has-global-palette7-background-color,  /* Warm Light */
.has-global-palette8-background-color { /* Cool Light */
  color: var(--global-palette6);
}

/* Brand orange backgrounds use black text (white fails contrast on #E47B02) */
.has-global-palette1-background-color { color: #000; }
.has-global-palette1-background-color a { color: #000; text-decoration: underline; }

/* Buttons using palette swatches */
.wp-block-button__link.has-global-palette1-background-color,
.kb-btn.has-global-palette1-background-color { color:#000; }            /* orange button = black text */

.wp-block-button__link.has-global-palette2-background-color,
.kb-btn.has-global-palette2-background-color,
.wp-block-button__link.has-global-palette3-background-color,
.kb-btn.has-global-palette3-background-color { color:#fff; }            /* navy/blue-gray buttons = white text */

/* Primary / secondary patterns (optional helpers) */
.btn-primary  { background:var(--global-palette1); color:#000; border-radius:8px; padding:.8rem 1.2rem; }
.btn-secondary{ background:#fff; color:var(--global-palette2); border:1px solid var(--global-palette1); border-radius:8px; padding:.8rem 1.2rem; }

/* Focus visibility */
.wp-block-button__link:focus-visible,
.kb-btn:focus-visible { outline:3px solid var(--global-palette2); outline-offset:2px; }

/* Image polish */
.img-card { border-radius:12px; border:1px solid #E5E7EB; box-shadow:0 2px 8px rgba(0,0,0,.06); }

/* Optional: darker orange if you truly need white text on orange */
:root { --brand-orange-aa:#B46102; }
.has-orange-aa-background { background:var(--brand-orange-aa); color:#fff; }


/* Kill tiny 1–2px white seams + accidental horizontal scroll */
html, body { background: var(--global-palette8); overflow-x: hidden; }

/* Make links on any ORANGE (palette1) row read as navy and keep outline buttons legible */
.kb-row-layout-wrap.has-theme-palette1-background-color a {
  color: var(--global-palette2) !important;
}
.kb-row-layout-wrap.has-theme-palette1-background-color .kb-buttons-wrap a.kb-button {
  color: var(--global-palette2) !important;
  border-color: var(--global-palette2) !important;
}
.kb-row-layout-wrap.has-theme-palette1-background-color .kb-buttons-wrap a.kb-button:hover {
  background: var(--global-palette2) !important;
  color: var(--global-palette9) !important;
}


/* Hours + Company Info widgets – keep links visible and on-brand */
.site-footer-wrap .site-info-inner a {
  color: var(--global-palette3) !important;
}
.site-footer-wrap .site-info-inner a:hover {
  color: var(--global-palette1) !important;
}

/* Copyright row – center on small screens with sane spacing */
.site-bottom-footer-inner-wrap {
  row-gap: 10px;
}
@media (max-width: 768px){
  .site-bottom-footer-inner-wrap { justify-content: center; text-align: center; }
}