/*
Theme Name: ProductivityCalcPro – Ocean
Description: A professional Kadence child theme with a white header, ocean teal accents, categorized navy footer and coordinated calculator cards. Retains existing header menus, page templates and calculator functionality.
Author: ProductivityCalcPro
Template: kadence
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: productivitycalcpro-ocean
*/

/* Override the inherited palette on the body, after Kadence's root variables. */
body {
  --pcp-teal: #087E8B;
  --pcp-teal-dark: #05606B;
  --pcp-navy: #0F172A;
  --pcp-ink: #172B3A;
  --pcp-mint: #5EEAD4;
  --global-palette1: var(--pcp-teal);
  --global-palette2: var(--pcp-teal-dark);
  --global-palette3: var(--pcp-ink);
  --global-palette4: #334155;
  --global-palette5: #475569;
  --global-palette6: #526477;
  --global-palette7: #DCE7EC;
  --global-palette8: #F8FAFC;
  --global-palette9: #FFFFFF;
  --global-palette-highlight: var(--global-palette1);
  --global-palette-highlight-alt: var(--global-palette2);
  --global-palette-highlight-alt2: var(--global-palette9);
  --global-palette-btn-bg: var(--global-palette1);
  --global-palette-btn-bg-hover: var(--global-palette2);
  --global-palette-btn: #FFFFFF;
  --global-palette-btn-hover: #FFFFFF;
}

/* Explicitly replace the existing orange Customizer header/footer backgrounds.
   Scope priority overrides to these visual elements, never the menu hierarchy. */
#masthead,
#masthead #main-header,
#masthead #mobile-header,
#masthead .site-header-row-container,
#masthead .site-header-row-container-inner {
  background-color: #FFFFFF !important;
  background-image: none !important;
}
#masthead {
  border-bottom: 1px solid #DCE7EC;
  box-shadow: 0 2px 10px rgba(15,23,42,.045);
}
#masthead .site-branding .site-title a,
#masthead .site-branding .site-title,
#masthead .header-navigation .menu a,
#masthead .header-navigation .drawer-nav-drop-wrap > a,
#masthead .header-navigation .dropdown-nav-toggle,
#masthead .menu-toggle-open {
  color: var(--pcp-ink) !important;
}
#masthead .site-branding .site-title a { font-weight: 700; }
#masthead .site-description { color: #475569 !important; }
#masthead .header-navigation .menu a:hover,
#masthead .header-navigation .menu a:focus-visible,
#masthead .header-navigation .current-menu-item > a,
#masthead .header-navigation .current-menu-ancestor > a,
#masthead .header-navigation .current-menu-ancestor > .drawer-nav-drop-wrap > a,
#masthead .site-branding .site-title a:hover {
  color: var(--pcp-teal-dark) !important;
}
#masthead .header-navigation .sub-menu {
  background: #FFFFFF !important;
  border: 1px solid #DCE7EC;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
}
#masthead .header-navigation .sub-menu a { background-color: #FFFFFF !important; }
#masthead .header-navigation .sub-menu a:hover,
#masthead .header-navigation .sub-menu a:focus-visible,
#masthead .header-navigation .sub-menu .current-menu-item > a {
  background-color: #EFFAF8 !important;
  color: var(--pcp-teal-dark) !important;
}
/* Kadence mobile drawer stays accessible without changing open/close behavior. */
#mobile-drawer .drawer-inner { background: var(--pcp-navy) !important; }
#mobile-drawer .drawer-inner a,
#mobile-drawer .drawer-inner button { color: #F1F5F9 !important; }
#mobile-drawer .drawer-inner a:hover,
#mobile-drawer .drawer-inner a:focus-visible,
#mobile-drawer .drawer-inner .current-menu-item > a { color: var(--pcp-mint) !important; }

#colophon,
#colophon .site-footer-row-container,
#colophon .site-footer-row-container-inner {
  background-color: var(--pcp-navy) !important;
  background-image: none !important;
  color: #E2E8F0 !important;
}
#colophon { border-top: 4px solid var(--pcp-teal); }
#colophon p,#colophon li,#colophon .site-info,#colophon .footer-copyright { color: #CBD5E1 !important; }
#colophon h1,#colophon h2,#colophon h3,#colophon h4,#colophon .widget-title { color: #FFFFFF !important; }
#colophon a,#colophon a:visited { color: #E2E8F0 !important; }
#colophon a:hover,#colophon a:focus-visible { color: var(--pcp-mint) !important; text-decoration: underline; text-underline-offset: 4px; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid #334155; }

/* New footer: compact, responsive, and independent of the existing menu data. */
#colophon.pcp-ocean-footer .pcp-ocean-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px clamp(20px,4vw,48px) 0;
  box-sizing: border-box;
}
#colophon.pcp-ocean-footer .pcp-ocean-footer-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  text-align: left;
}
#colophon.pcp-ocean-footer .pcp-ocean-footer-column h2 {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #334155;
  line-height: 1.4;
}
#colophon.pcp-ocean-footer .pcp-ocean-footer-column ul { list-style: none; margin: 0; padding: 0; }
#colophon.pcp-ocean-footer .pcp-ocean-footer-column li { margin: 0; padding: 0; }
#colophon.pcp-ocean-footer .pcp-ocean-footer-column a {
  display: inline-block;
  padding: 6px 0;
  line-height: 1.5;
  font-size: .96rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#colophon.pcp-ocean-footer .pcp-ocean-footer-column a:hover,
#colophon.pcp-ocean-footer .pcp-ocean-footer-column a:focus-visible { text-decoration: underline; }
#colophon.pcp-ocean-footer .pcp-ocean-footer-column a:focus-visible { outline-color: #5EEAD4; }
#colophon.pcp-ocean-footer .pcp-ocean-footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 34px;
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
}
#colophon.pcp-ocean-footer .pcp-ocean-footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  #colophon.pcp-ocean-footer .pcp-ocean-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  #colophon.pcp-ocean-footer .pcp-ocean-footer-inner { padding-top: 32px; }
}

/* Existing homepage dark calculator directory (custom content block). */
body .pcpd-wrap { background: var(--pcp-navy) !important; }
body .pcpd-head h2 { color: #F8FAFC !important; }
body .pcpd-head h2 span { color: var(--pcp-mint) !important; }
body .pcpd-head p { color: #CBD5E1 !important; }
body .pcpd-card {
  background: #1E293B !important;
  border-color: #365568 !important;
  color: #E2E8F0 !important;
}
body .pcpd-card h3,body .pcpd-card h4,body .pcpd-card strong,body .pcpd-card .pcpd-num { color: var(--pcp-mint) !important; }
body .pcpd-card .pcpd-num { border-color: #3B827F !important; background: #163B43 !important; }
body .pcpd-card p { color: #CBD5E1 !important; }
body .pcpd-card:hover,body .pcpd-card:focus-visible { border-color: var(--pcp-mint) !important; background: #24374A !important; }
.entry-content a:not(.button):not(.wp-block-button__link):not([class]) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content .wp-block-button__link {
  --global-palette-btn-bg: var(--global-palette1);
}
.site :focus-visible {
  outline: 2px solid #087E8B;
  outline-offset: 3px;
}

/* Color coordination with the optional expansion plugin only. */
body .pcpx-form,body .pcpx-directory {
  --pcpx-accent: #087E8B;
  --pcpx-ink: #172B3A;
}
body .pcpx-form { border-color: #DCE7EC; background: #FFFFFF; }
body .pcpx-cards a { border-color: #DCE7EC; color: #05606B; }
body .pcpx-cards a:hover { border-color: #087E8B; background: #EFFAF8; }
body .pcpx-actions button:not([type=reset]):hover { background: #05606B; border-color: #05606B; }
