/*
Theme Name: Blocksy Child
Theme URI: https://www.evsays.com/
Description: Child theme for Blocksy. Replaces the Blocksy builder header &amp; footer with the custom EV Says white nav bar and dark footer site-wide. Shared with the front-page template via evsays_site_header() / evsays_site_footer().
Author: EV Says
Author URI: https://www.evsays.com/
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* ============================================================
   EV Says — shared site header (white nav bar)
   Every selector is scoped under .evsays-header so it can never
   clash with Blocksy or any other theme styles.
   ============================================================ */

/* Box-sizing guard for our component only */
.evsays-header *,
.evsays-footer * {
  box-sizing: border-box;
}

.evsays-header {
  background: #ffffff;
  color: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.evsays-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* Logo: navy/cyan image on white; clickable link to home */
.evsays-header .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a2e;
}
.evsays-header .site-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
/* H1 kept for SEO / screen readers only — visually hidden */
.evsays-header .site-logo h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.evsays-header .main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.evsays-header .main-nav a {
  color: #1a1a2e;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.evsays-header .main-nav a:hover {
  color: #e94560;
  background: rgba(233, 69, 96, 0.06);
}
/* Current-page indicator intentionally removed (user request): every nav
   item keeps the same look, only hover feedback remains. */
.evsays-header .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #1a1a2e;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ============================================================
   EV Says — shared site footer (dark, social + policies + copyright)
   Scoped under .evsays-footer.
   ============================================================ */

.evsays-footer {
  margin-top: 60px;
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 36px 20px 28px;
  font-size: 14px;
}
.evsays-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.evsays-footer a:hover {
  color: #e94560;
}
/* Social icon buttons */
.evsays-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.evsays-footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.evsays-footer .footer-social a:hover {
  background: #e94560;
  color: #fff;
  transform: translateY(-2px);
}
.evsays-footer .footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* Policy links row */
.evsays-footer .footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 18px;
  font-size: 13px;
}
.evsays-footer .footer-policies a {
  color: rgba(255, 255, 255, 0.65);
}
.evsays-footer .footer-policies a:hover {
  color: #e94560;
  text-decoration: underline;
}
.evsays-footer .footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Mobile — header / footer behaviour
   ============================================================ */
@media (max-width: 768px) {
  .evsays-header .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  }
  .evsays-header .main-nav.open {
    display: flex;
  }
  .evsays-header .main-nav a {
    padding: 14px 16px;
    border-radius: 6px;
  }
  .evsays-header .nav-toggle {
    display: block;
  }
  .evsays-header .site-logo img {
    height: 36px;
  }
}

/* ============================================================
   Hide Blocksy's own builder header & footer site-wide.
   Our EV Says components (above) replace them on every page.
   ============================================================ */
header#header.ct-header,
div.ct-header-placeholder,
footer#footer.ct-footer {
  display: none !important;
}
