/* WordPress Theme Base Overrides */

/* Ensure no spacing before hero on home/front page */
body.home main,
body.front-page main,
body.page-template-front-page main {
  margin: 0;
  padding: 0;
}

/* Background for home/front page */
body.home,
body.front-page,
body.page-template-front-page {
  background-color: var(--color-bg-light);
}

/* Header - Explicitly transparent by default (not scrolled) */
.header {
  background-color: transparent;
  background: transparent;
}

/* Header - White background when scrolled */
.header.header--scrolled {
  background-color: #fff;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Ensure header text colors are correct */
.header:not(.header--scrolled) .header__logo-icon,
.header:not(.header--scrolled) .header__logo-text,
.header:not(.header--scrolled) .header__nav-link,
.header:not(.header--scrolled) .header__phone {
  color: #fff;
}

.header:not(.header--scrolled) .header__cta--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.header:not(.header--scrolled) .header__menu-toggle span {
  background-color: #fff;
}

/* WordPress generated content classes */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter {
  display: block;
  margin: 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/*
 * WYSIWYG (ACF) output is mostly <p>/<li>. Gutenberg / block-library often sets
 * font-size on .wp-block-paragraph and preset classes, so it wins over “just set
 * the size on the wrapper” — the wrapper rule never shows on screen.
 * `body …` raises specificity so theme copy reliably inherits the component size.
 */
body .about-us__text p,
body .about-us__text li,
body .contact__text p,
body .contact__text li,
body .whats-provided__subtitle p,
body .whats-provided__subtitle li,
body .why-sell__subtitle p,
body .why-sell__subtitle li,
body .packages__subtitle p,
body .packages__subtitle li,
body .calculator__subtitle p,
body .calculator__subtitle li,
body .package-card__subtitle p,
body .package-card__subtitle li,
body .whats-provided__card-text p,
body .why-sell__card-text p,
body .buy-benefits__subtitle p,
body .buy-benefits__subtitle li,
body .buy-benefits__card-description p,
body .why-buy__subtitle p,
body .why-buy__subtitle li,
body .why-buy__card-text p,
body .buy-hero__text p,
body .buy-about__text p,
body .buy-about__text li {
  font-size: inherit;
  line-height: inherit;
}
