:root {
  --whyzerr-orange: #F5841F;
  --whyzerr-orange-dark: #D6710F;
  --whyzerr-orange-light: rgba(245, 132, 31, 0.08);
  --whyzerr-teal: #067DA2;
  --whyzerr-teal-dark: #056687;
  --whyzerr-teal-light: rgba(6, 125, 162, 0.06);
  --whyzerr-dark: #1B1B1B;
  --whyzerr-gray: #54595F;
  --whyzerr-light-gray: #7A7A7A;
  --whyzerr-bg-alt: #FFFFFF;
  --whyzerr-white: #FFFFFF;
}

/* ========================================
   Page layout overrides
   ======================================== */

.entry-content-wrap:has(.whyzerr-hero) {
  padding: 0;
}

.content-area:has(.whyzerr-hero) {
  margin-top: 0;
  margin-bottom: 0;
}

.entry.single-entry:has(.whyzerr-hero) {
  box-shadow: none;
}

/* ========================================
   Hero Section
   ======================================== */

.whyzerr-hero,
.whyzerr-section,
.whyzerr-section-alt {
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  box-sizing: border-box;
}

body:has(.whyzerr-hero) {
  overflow-x: hidden;
}

.whyzerr-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1B1B1B 0%, #2a2a2a 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  margin-bottom: 0;
}

.whyzerr-hero h1,
.whyzerr-hero .wp-block-heading {
  color: var(--whyzerr-white) !important;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.whyzerr-hero p {
  color: #ccc !important;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.whyzerr-hero .wp-block-buttons {
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.whyzerr-hero .wp-block-button__link {
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.whyzerr-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--whyzerr-orange) !important;
  color: var(--whyzerr-white) !important;
  border: none;
}

.whyzerr-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--whyzerr-orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 132, 31, 0.4);
}

.whyzerr-hero .is-style-outline .wp-block-button__link {
  border: 2px solid var(--whyzerr-white) !important;
  color: var(--whyzerr-white) !important;
  background: transparent !important;
}

.whyzerr-hero .is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

/* Particles canvas */
#particles-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.whyzerr-hero .wp-block-group__inner-container > *:not(#particles-hero),
.whyzerr-hero > *:not(#particles-hero) {
  position: relative;
  z-index: 1;
}

/* ========================================
   Section Styling
   ======================================== */

.whyzerr-section {
  padding: 4rem 2rem;
  background-color: var(--whyzerr-white);
}

.whyzerr-section-alt {
  background-color: var(--whyzerr-white);
  padding: 4rem 2rem;
  border-top: 3px solid var(--whyzerr-orange);
}

.whyzerr-section h2,
.whyzerr-section-alt h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--whyzerr-teal) !important;
  margin-bottom: 1.25rem;
}

.whyzerr-section h3,
.whyzerr-section-alt h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--whyzerr-teal) !important;
  margin-bottom: 0.75rem;
}

/* ========================================
   CTA Button Pairs (outside hero)
   ======================================== */

.whyzerr-cta .wp-block-buttons {
  gap: 1rem;
  margin-top: 2rem;
}

.whyzerr-cta .wp-block-button__link {
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.whyzerr-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--whyzerr-orange) !important;
  color: var(--whyzerr-white) !important;
}

.whyzerr-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--whyzerr-orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 132, 31, 0.4);
}

.whyzerr-cta .is-style-outline .wp-block-button__link {
  border: 2px solid var(--whyzerr-teal) !important;
  color: var(--whyzerr-teal) !important;
  background: transparent !important;
}

.whyzerr-cta .is-style-outline .wp-block-button__link:hover {
  background-color: var(--whyzerr-teal) !important;
  color: var(--whyzerr-white) !important;
  transform: translateY(-2px);
}

/* Global button overrides for Kadence palette colors */
.wp-block-button__link.has-theme-palette-1-background-color {
  background-color: var(--whyzerr-orange) !important;
}

.wp-block-button__link.has-theme-palette-1-background-color:hover {
  background-color: var(--whyzerr-orange-dark) !important;
}

/* ========================================
   Pricing Cards
   ======================================== */

.whyzerr-pricing-cards {
  gap: 1.5rem !important;
  margin: 2rem 0 3rem;
}

.whyzerr-pricing-card {
  background: var(--whyzerr-white);
  border-radius: 12px;
  padding: 2.5rem 2rem !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whyzerr-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.whyzerr-pricing-featured {
  border-color: var(--whyzerr-orange) !important;
  border-width: 2px !important;
  position: relative;
  transform: scale(1.03);
}

.whyzerr-pricing-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.whyzerr-pricing-featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--whyzerr-orange);
  color: var(--whyzerr-white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.whyzerr-pricing-card h2 {
  font-size: 1.5rem !important;
  color: var(--whyzerr-teal) !important;
  margin-bottom: 0.5rem;
}

.whyzerr-pricing-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.whyzerr-pricing-card ul li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--whyzerr-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.whyzerr-pricing-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--whyzerr-teal);
  font-weight: 700;
  font-size: 1.1rem;
}

.whyzerr-pricing-card .wp-block-buttons {
  margin-top: auto;
}

/* ========================================
   FAQ Accordion (Kadence Blocks)
   ======================================== */

.kt-accordion-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.kt-accordion-header-wrap {
  border: none !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

.kt-blocks-accordion-header {
  padding: 1.25rem 0 !important;
  background: transparent !important;
  font-weight: 600 !important;
  color: var(--whyzerr-dark) !important;
  font-size: 1.05rem !important;
  transition: color 0.2s ease;
}

.kt-blocks-accordion-header:hover {
  color: var(--whyzerr-teal) !important;
}

.kt-blocks-accordion-header[aria-expanded="true"] {
  color: var(--whyzerr-teal) !important;
}

.kt-accordion-panel {
  padding: 0.5rem 0 1.5rem !important;
}

.kt-accordion-panel p {
  color: var(--whyzerr-gray);
  line-height: 1.7;
}

.kt-btn-svg-icon-wrap svg {
  transition: transform 0.3s ease;
}

.kt-blocks-accordion-header[aria-expanded="true"] .kt-btn-svg-icon-wrap svg {
  transform: rotate(180deg);
}

/* ========================================
   Feature Lists
   ======================================== */

.whyzerr-section ul,
.whyzerr-section-alt ul {
  list-style: none;
  padding-left: 0;
}

.whyzerr-section ul li,
.whyzerr-section-alt ul li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--whyzerr-gray);
  line-height: 1.6;
}

.whyzerr-section ul li strong,
.whyzerr-section-alt ul li strong {
  color: var(--whyzerr-dark);
}

.whyzerr-section ul li::before,
.whyzerr-section-alt ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--whyzerr-orange);
}

/* ========================================
   Comparison Section (Pricing page)
   ======================================== */

.whyzerr-comparison h3 {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.whyzerr-comparison h3:last-of-type {
  color: var(--whyzerr-orange) !important;
}

/* ========================================
   Contact Page
   ======================================== */

.whyzerr-contact-info {
  background: var(--whyzerr-teal-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--whyzerr-teal);
}

.whyzerr-contact-info p {
  margin-bottom: 0.5rem;
}

.whyzerr-contact-info a {
  color: var(--whyzerr-teal);
  text-decoration: none;
  font-weight: 600;
}

.whyzerr-contact-info a:hover {
  color: var(--whyzerr-orange);
}

/* ========================================
   Global Link Color
   ======================================== */

.entry-content a:not(.wp-block-button__link) {
  color: var(--whyzerr-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-content a:not(.wp-block-button__link):hover {
  color: var(--whyzerr-orange);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .whyzerr-pricing-featured {
    transform: none;
  }

  .whyzerr-pricing-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .whyzerr-hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .whyzerr-section,
  .whyzerr-section-alt {
    padding: 3rem 1.5rem;
  }

  .whyzerr-pricing-cards {
    flex-direction: column !important;
  }

  .whyzerr-pricing-card {
    padding: 2rem 1.5rem !important;
  }

  .whyzerr-hero .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }

  .whyzerr-hero .wp-block-button {
    width: 100%;
    max-width: 300px;
  }

  .whyzerr-hero .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .whyzerr-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .whyzerr-pricing-card ul li {
    font-size: 0.9rem;
  }
}
