/*
Theme Name: Johnstone Hunter Visual Pro Calendar JSONP
Theme URI: https://www.johnstonesupply.com/store23
Author: Johnstone Supply Hunter Group
Description: Visual-editor WordPress theme with native Gutenberg patterns, scroll animation, counters, testimonials, FAQ, locations, and modern sections.
Version: 6.2.0
License: GPL v2 or later
Text Domain: johnstone-hunter-visual-pro-calendar-jsonp
*/

:root {
  --jh-blue: #113464;
  --jh-blue-dark: #061a33;
  --jh-blue-mid: #0b2b52;
  --jh-blue-soft: #eef4fb;
  --jh-red: #ef3e42;
  --jh-ink: #101828;
  --jh-muted: #667085;
  --jh-border: rgba(17, 52, 100, 0.12);
  --jh-glass: rgba(255, 255, 255, 0.16);
  --jh-shadow: 0 24px 80px rgba(7, 29, 56, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--jh-ink);
  background: #fff;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.jh-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(6, 26, 51, 0.94);
  backdrop-filter: blur(18px);
  color: white;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jh-logo {
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.jh-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.jh-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 800;
}

.jh-nav a:hover { color: var(--jh-red); opacity: 1; }

.jh-nav .menu-item-shop a {
  background: var(--jh-red);
  color: white !important;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(239, 62, 66, 0.32);
}

.jh-main { overflow: hidden; }

.jh-hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 120px 6% 90px;
  min-height: 88vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(239, 62, 66, 0.38), transparent 30%),
    radial-gradient(circle at 10% 75%, rgba(255, 255, 255, 0.11), transparent 28%),
    linear-gradient(135deg, var(--jh-blue-dark), var(--jh-blue), var(--jh-blue-mid));
}

.jh-hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -240px;
  bottom: -240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 120px;
  transform: rotate(-16deg);
}

.jh-hero > * { position: relative; z-index: 2; }

.jh-hero .wp-block-columns {
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  align-items: center !important;
}

.jh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 900;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--jh-glass);
  padding: 10px 16px;
  border-radius: 999px;
  margin: 0 0 24px !important;
  color: white;
}

.jh-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--jh-red);
  border-radius: 50%;
  flex: 0 0 auto;
}

.jh-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin: 0 0 28px;
  color: white;
}

.jh-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.22rem;
  line-height: 1.72;
}

.jh-hero .wp-block-buttons {
  gap: 16px;
  margin-top: 36px;
}

.wp-block-button__link {
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px !important;
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
}

.wp-block-button__link:hover { transform: translateY(-3px); }

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--jh-red);
  color: white;
  box-shadow: 0 18px 44px rgba(239, 62, 66, 0.34);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: white;
  color: var(--jh-blue);
  border: 0;
}

.jh-hero-panel {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid var(--jh-glass);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--jh-shadow);
  backdrop-filter: blur(16px);
}

.jh-panel-card {
  background: white;
  color: var(--jh-ink);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 16px;
}

.jh-panel-card:last-child { margin-bottom: 0; }

.jh-panel-card h2,
.jh-panel-card h3 {
  margin: 0 0 8px;
  color: var(--jh-blue);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.jh-panel-card p {
  margin: 0;
  color: var(--jh-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.jh-section {
  padding: 96px 6%;
}

.jh-section > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.jh-section-soft { background: var(--jh-blue-soft); }
.jh-section-dark { background: var(--jh-blue-dark); color: white; }

.jh-section-header {
  max-width: 850px;
  margin-bottom: 46px;
}

.jh-center { text-align: center; }

.jh-section h2 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0 0 18px;
  color: var(--jh-blue);
}

.jh-section-dark h2,
.jh-section-dark h3 { color: white; }

.jh-section p {
  font-size: 1.12rem;
  color: var(--jh-muted);
  line-height: 1.7;
}

.jh-section-dark p { color: rgba(255, 255, 255, 0.72); }

.jh-card {
  background: white;
  border: 1px solid var(--jh-border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(17, 52, 100, 0.08);
  transition: 0.3s ease;
}

.jh-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(17, 52, 100, 0.16);
}

.jh-card h3 {
  color: var(--jh-blue);
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  margin-top: 0;
}

.jh-card p {
  color: var(--jh-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.jh-card-number {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--jh-blue);
  color: white !important;
  border-radius: 18px;
  font-weight: 900;
  margin-bottom: 22px !important;
}

.jh-stats .wp-block-column,
.jh-counter-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jh-glass);
  border-radius: 28px;
  padding: 30px;
}

.jh-stats h3,
.jh-counter-number {
  font-size: 2.6rem !important;
  letter-spacing: -0.05em;
  color: white !important;
  margin: 0 0 8px;
  font-weight: 900;
  line-height: 1;
}

.jh-brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.jh-brand-cloud p {
  background: white;
  border: 1px solid var(--jh-border);
  color: var(--jh-blue);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(17, 52, 100, 0.06);
  margin: 0;
  font-size: 1rem;
}

.jh-locations .wp-block-column {
  background: white;
  color: var(--jh-blue);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(17, 52, 100, 0.08);
}

.jh-locations p {
  color: var(--jh-blue);
  font-weight: 900;
  margin: 0;
}

.jh-cta-band {
  background:
    radial-gradient(circle at top left, rgba(239, 62, 66, 0.35), transparent 28%),
    linear-gradient(135deg, var(--jh-blue-dark), var(--jh-blue));
  color: white;
  border-radius: 42px;
  padding: 60px;
  box-shadow: var(--jh-shadow);
}

.jh-cta-band h2 { color: white; }
.jh-cta-band p { color: rgba(255, 255, 255, 0.78); }

.jh-testimonial {
  background: white;
  border-radius: 32px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(17, 52, 100, 0.1);
  border: 1px solid var(--jh-border);
}

.jh-testimonial-quote {
  font-size: 1.35rem !important;
  line-height: 1.55 !important;
  color: var(--jh-ink) !important;
  font-weight: 800;
}

.jh-testimonial-name {
  color: var(--jh-blue) !important;
  font-weight: 900;
  margin-bottom: 0 !important;
}

.jh-split-panel {
  background: white;
  border-radius: 42px;
  box-shadow: var(--jh-shadow);
  border: 1px solid var(--jh-border);
  overflow: hidden;
}

.jh-image-placeholder {
  min-height: 420px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17, 52, 100, .92), rgba(239, 62, 66, .55)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08), rgba(255,255,255,.08) 10px, transparent 10px, transparent 20px);
}

.jh-faq details,
details.jh-faq-item {
  background: white;
  border: 1px solid var(--jh-border);
  border-radius: 22px;
  padding: 22px 26px;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(17,52,100,.06);
}

.jh-faq summary,
details.jh-faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--jh-blue);
  font-size: 1.15rem;
}

.jh-faq p,
details.jh-faq-item p {
  margin-bottom: 0;
}

.jh-content-wrap {
  max-width: 950px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
}

.jh-page-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0 0 18px;
  color: var(--jh-blue);
}

.jh-breadcrumbs {
  font-size: 0.92rem;
  color: var(--jh-muted);
  margin-bottom: 24px;
}

.jh-breadcrumbs a {
  color: var(--jh-blue);
  font-weight: 800;
}

.jh-footer {
  background: #06182e;
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 6%;
  text-align: center;
}

/* Scroll animations */
.jh-animate,
.jh-card,
.jh-panel-card,
.jh-testimonial,
.jh-counter-card,
.jh-split-panel,
.jh-section-header {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.jh-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jh-delay-1 { transition-delay: .08s; }
.jh-delay-2 { transition-delay: .16s; }
.jh-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .jh-animate,
  .jh-card,
  .jh-panel-card,
  .jh-testimonial,
  .jh-counter-card,
  .jh-split-panel,
  .jh-section-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .jh-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .jh-hero {
    padding-top: 80px;
  }

  .jh-hero .wp-block-columns,
  .jh-section .wp-block-columns {
    display: block;
  }

  .jh-hero .wp-block-column,
  .jh-section .wp-block-column {
    margin-bottom: 22px;
  }

  .jh-cta-band {
    padding: 34px;
    border-radius: 28px;
  }
}


/* Google Calendar training cards */
.jh-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.jh-event-meta {
  font-weight: 800;
  color: var(--jh-blue) !important;
}

.jh-event-loading,
.jh-event-empty,
.jh-event-error {
  grid-column: 1 / -1;
  background: white;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--jh-border);
  box-shadow: 0 12px 30px rgba(17,52,100,.06);
}

.jh-event-error {
  color: #b42318 !important;
}

@media (max-width: 900px) {
  .jh-events-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   JOHNSTONE MOBILE HAMBURGER MENU
========================================= */

/* Hidden on desktop */
.jh-menu-toggle {
  display: none;
}

/* Mobile navigation */
@media screen and (max-width: 768px) {

  .jh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    padding: 12px 18px;
    min-height: 65px;
  }

  .jh-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
  }

  .jh-logo {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Hamburger button */
  .jh-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1002;
  }

  .jh-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Hide menu by default */
  .jh-nav {
    display: none !important;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding: 10px 0 15px;
    background: #10263f;
  }

  /* Show menu when hamburger is clicked */
  .jh-nav.jh-nav-open {
    display: block !important;
  }

  .jh-nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .jh-nav li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .jh-nav a {
    display: block;
    width: 100%;
    padding: 13px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .jh-nav a:hover,
  .jh-nav a:focus {
    background: rgba(255,255,255,0.10);
  }

  /* Hamburger becomes X */
  .jh-menu-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .jh-menu-active span:nth-child(2) {
    opacity: 0;
  }

  .jh-menu-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}