/*
Theme Name: Kadence Child - AZGPS
Theme URI: https://azgps.org
Template: kadence
Author: AZGPS
Author URI: https://azgps.org
Description: AZGPS Custom Child Theme for Kadence
Version: 1.0.0
License: GNU General Public License v3.0
Text Domain: kadence-child
*/

/* ============================================
   AZGPS BRAND COLORS
   Primary Red:  #c81414
   Dark/Black:   #141414
   White:        #ffffff
   Light Gray:   #f5f5f5
   Mid Gray:     #666666
============================================ */

/* === GLOBAL VARIABLES === */
:root {
  --global-palette1: #c81414;
  --global-palette2: #a00f0f;
  --global-palette3: #141414;
  --global-palette4: #2b2b2b;
  --global-palette5: #444444;
  --global-palette6: #666666;
  --global-palette7: #f5f5f5;
  --global-palette8: #ffffff;
  --global-palette9: #ffffff;
}

/* === HEADER === */
.site-header,
.site-header-wrap,
#masthead,
.kadence-sticky-header,
header.site-header {
  background-color: #141414 !important;
  border-bottom: 3px solid #c81414 !important;
}

.site-branding,
.site-title,
.site-title a,
.site-description {
  color: #ffffff !important;
}

/* Navigation links */
.main-navigation a,
.primary-menu a,
.nav-menu a,
#site-navigation a {
  color: #ffffff !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.main-navigation a:hover,
.primary-menu a:hover,
.nav-menu a:hover,
#site-navigation a:hover {
  color: #c81414 !important;
}

/* Active/current menu item */
.main-navigation .current-menu-item > a,
.primary-menu .current-menu-item > a {
  color: #c81414 !important;
}

/* Dropdown menus */
.main-navigation .sub-menu,
.primary-menu .sub-menu {
  background-color: #141414 !important;
  border-top: 2px solid #c81414 !important;
}

.main-navigation .sub-menu a,
.primary-menu .sub-menu a {
  color: #ffffff !important;
  border-bottom: 1px solid #2b2b2b !important;
}

.main-navigation .sub-menu a:hover,
.primary-menu .sub-menu a:hover {
  background-color: #c81414 !important;
  color: #ffffff !important;
}

/* === BUTTONS === */
.wp-block-button__link,
.button,
.btn,
a.button,
input[type="submit"],
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: #c81414 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 12px 28px !important;
  transition: background-color 0.2s ease !important;
}

.wp-block-button__link:hover,
.button:hover,
.btn:hover,
a.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: #a00f0f !important;
  color: #ffffff !important;
}

/* === LINKS === */
a {
  color: #c81414;
}
a:hover {
  color: #a00f0f;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  color: #141414;
  font-weight: 700;
}

/* === HERO / BANNER SECTION === */
.hero-section {
  background-color: #141414;
  color: #ffffff;
  padding: 80px 40px;
  text-align: center;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-section p {
  color: #cccccc;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* === SERVICE CARDS === */
.service-card {
  border-top: 4px solid #c81414;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === FOOTER === */
.site-footer,
#colophon,
.footer-wrap {
  background-color: #141414 !important;
  color: #cccccc !important;
  border-top: 3px solid #c81414 !important;
}

.site-footer a,
#colophon a,
.footer-wrap a {
  color: #c81414 !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: #ffffff !important;
}

.site-footer p,
.site-footer span,
#colophon p {
  color: #cccccc !important;
}

/* === WOOCOMMERCE === */
.woocommerce .price,
.woocommerce-Price-amount {
  color: #c81414 !important;
}

.woocommerce .star-rating span::before {
  color: #c81414 !important;
}

/* === ADMIN BAR FIX === */
html, body {
  transition: none !important;
  -webkit-transition: none !important;
}

/* === GENERAL LAYOUT === */
.site-content {
  background-color: #ffffff;
}

.wp-site-blocks {
  background-color: #ffffff;
}

/* Accent divider */
.accent-line {
  width: 60px;
  height: 4px;
  background-color: #c81414;
  margin: 15px 0 25px;
}

/* Section background alternating */
.section-dark {
  background-color: #141414;
  color: #ffffff;
  padding: 60px 0;
}

.section-light {
  background-color: #f5f5f5;
  padding: 60px 0;
}




  background-color: #c81414 !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  display: inline-block;
}


  background-color: #141414 !important;
  color: #ffffff !important;
}

/* === HIDE PAGE TITLE ON HOMEPAGE === */
.home .entry-title,
.home .page-title,
.home .wp-block-post-title,
.home h1.entry-title {
  display: none !important;
}

/* === FIX SERVICE CARDS GRID === */
.kb-row-layout-id-services-cards .wp-block-kadence-column,
.kb-row-layout-id-services-cards-2 .wp-block-kadence-column {
  border-top: 4px solid #c81414 !important;
  padding: 30px !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
  border-radius: 4px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-row-layout-id-services-cards .wp-block-kadence-column:hover,
.kb-row-layout-id-services-cards-2 .wp-block-kadence-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* === FORCE FULL WIDTH SECTIONS === */
.wp-block-kadence-rowlayout.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

/* === HIDE "HOME" PAGE TITLE BANNER === */
.home .entry-header,
.home .page-header {
  display: none !important;
}

/* === LOGO IN HEADER === */
.site-logo img,
.custom-logo {
  max-height: 50px !important;
  width: auto !important;
}

/* === HEADER LAYOUT === */
.site-header .header-inner-wrap {
  min-height: 70px;
}

/* === WOOCOMMERCE CART IN NAV === */
.header-cart-wrap .cart-icon-wrap {
  color: #ffffff !important;
}

/* === DIVIDER ACCENT LINE === */
.azgps-divider {
  width: 60px !important;
  height: 4px !important;
  border: none !important;
  margin: 15px 0 25px !important;
}

/* === COLUMNS GAP === */
.wp-block-columns {
  gap: 24px !important;
}

/* === HIDE HOME PAGE TITLE - ALL METHODS === */
.home .page-header,
.home .entry-header,
.home .wp-block-post-title,
body.home .entry-title,
body.home h1.entry-title,
body.page-id-5 .entry-title,
body.page-id-5 .entry-header {
  display: none !important;
}

/* === FIX MENU HOVER - RED NOT WHITE === */
#primary-menu a:hover,
#primary-menu li:hover > a,
.primary-menu a:hover,
.primary-menu li:hover > a,
.main-navigation a:hover,
.main-navigation li:hover > a,
header nav a:hover,
header .menu a:hover,
.header-navigation a:hover,
.site-header a:hover {
  color: #c81414 !important;
  opacity: 1 !important;
}

/* === FIX WHITE GAP ABOVE HERO === */
.home .page-content > *:first-child:empty,
.home .content-area .page-content,
.home .entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Force no space between header and hero */
.home .site-main,
.home .entry-content,
.home article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* === WHY CHOOSE SECTION - SWAP TO WHITE LOGO === */
.wp-block-group[style*="141414"] .wp-block-image img {
  filter: brightness(0) invert(1);
}

/* === KILL WHITE GAP ABOVE HERO - NUCLEAR OPTION === */
.home .site-content,
.home #primary,
.home .content-wrap,
.home .wp-site-blocks,
.home main#primary,
.home .entry-content,
.home article.page,
.home .page-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .wp-block-cover:first-child,
.home .wp-block-group:first-child,
.home .entry-content > *:first-child {
  margin-top: 0 !important;
}

/* Remove Kadence page hero/title area on home */
.home .kadence-inner-column-inner,
.home .entry-header,
.home .page-hero-section {
  display: none !important;
}

/* === NAVIGATION HOVER & ACTIVE STATES — PRECISE FIX === */

/* Default nav link color */
.main-navigation#site-navigation a,
.header-navigation a {
  color: #ffffff !important;
}

/* Hover state — turn red */
.main-navigation#site-navigation .menu-item a:hover,
.main-navigation#site-navigation .menu-item:hover > a,
.header-navigation .menu-item a:hover,
.header-navigation .menu-item:hover > a {
  color: #c81414 !important;
}

/* Active / current page — red with underline */
.main-navigation#site-navigation .current-menu-item > a,
.main-navigation#site-navigation .current_page_item > a,
.main-navigation#site-navigation .current-menu-ancestor > a,
.header-navigation .current-menu-item > a,
.header-navigation .current_page_item > a,
.header-navigation .current-menu-ancestor > a {
  color: #c81414 !important;
  border-bottom: 2px solid #c81414 !important;
  padding-bottom: 2px !important;
}




  color: #ffffff !important;
  background-color: #c81414 !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
}



  background-color: #a00f0f !important;
  color: #ffffff !important;
}

/* === NAVIGATION HOVER & ACTIVE STATES — PRECISE FIX === */

/* Default nav link color */
.main-navigation#site-navigation a,
.header-navigation a {
  color: #ffffff !important;
}

/* Hover state — turn red */
.main-navigation#site-navigation .menu-item a:hover,
.main-navigation#site-navigation .menu-item:hover > a,
.header-navigation .menu-item a:hover,
.header-navigation .menu-item:hover > a {
  color: #c81414 !important;
}

/* Active / current page — red with underline */
.main-navigation#site-navigation .current-menu-item > a,
.main-navigation#site-navigation .current_page_item > a,
.main-navigation#site-navigation .current-menu-ancestor > a,
.header-navigation .current-menu-item > a,
.header-navigation .current_page_item > a,
.header-navigation .current-menu-ancestor > a {
  color: #c81414 !important;
  border-bottom: 2px solid #c81414 !important;
  padding-bottom: 2px !important;
}




  color: #ffffff !important;
  background-color: #c81414 !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
}



  background-color: #a00f0f !important;
  color: #ffffff !important;
}

/* === HIDE RANK MATH PRO UPSELL BANNER === */
.rank-math-pro-upsell,
.rank-math-upsell,
#rank-math-pro-notice,
.rank-math-notice,
[class*="rank-math"][class*="upsell"],
[class*="rank-math"][class*="pro"],
[id*="rank-math"][id*="upsell"],
[id*="rank-math"][id*="pro"],
.rmpr-pro-notice,
.rm-pro-notice {
  display: none !important;
}


/* === TRIANGULATION NETWORK BACKGROUND PATTERN === */
:root {
  --trig-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='174'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.8'%3E%3C!-- Row 1 triangles --%3E%3Cpolygon points='100,0 200,58 0,58'/%3E%3Cpolygon points='0,58 100,0 100,116'/%3E%3Cpolygon points='200,58 100,0 100,116'/%3E%3C!-- Row 2 triangles --%3E%3Cpolygon points='0,58 100,116 -100,116'/%3E%3Cpolygon points='200,58 300,116 100,116'/%3E%3Cpolygon points='0,116 100,58 100,174'/%3E%3Cpolygon points='200,116 100,58 100,174'/%3E%3C/g%3E%3C!-- Control point nodes --%3E%3Cg fill='rgba(200,20,20,0.25)'%3E%3Ccircle cx='100' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='58' r='2'/%3E%3Ccircle cx='200' cy='58' r='2'/%3E%3Ccircle cx='100' cy='116' r='2.5'/%3E%3Ccircle cx='0' cy='174' r='2'/%3E%3Ccircle cx='200' cy='174' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.wp-block-cover.is-dark[style*="141414"],
.wp-block-group[style*="141414"],
.site-header,
#masthead,
.site-footer,
#colophon {
  background-image: var(--trig-pattern) !important;
  background-size: 200px 174px !important;
  background-repeat: repeat !important;
}

/* === REMOVE TOP PADDING ON ALL PAGES === */
.content-area .wp-block-post-content,
.page .entry-content,
.entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.kadence-page-template-no-header .content-bg,
.page-template-default .site-main,
.page .site-main {
  padding-top: 0 !important;
}

/* Remove top margin from first cover block on pages */
.page .entry-content .wp-block-cover:first-child,
.page .entry-content .wp-block-group:first-child {
  margin-top: 0 !important;
}
