/*
Theme Name: NorthCleaners
Description: North Cleaners child theme for GeneratePress. Foundation for WPBakery pages and WooCommerce.
Author: Digi Web
Template: generatepress
Version: 1.0.0
Text Domain: northcleaners
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* GeneratePress loads this stylesheet after its own styles.
 * Keep shared North Cleaners styling here as the approved design is built.
 * No global visual overrides are applied in this foundation release.
 */

/* NC TYPOGRAPHY V1 */
:root {
  --nc-font: Arial, Helvetica, sans-serif;
  --nc-navy: #092d63;
  --nc-body-size: 16px;
  --nc-h1-size: clamp(38px, 4.65vw, 88px);
  --nc-h2-size: clamp(28px, 2.6vw, 44px);
  --nc-h3-size: clamp(21px, 1.6vw, 28px);
}

/* Public-site typography. Icon fonts are not overridden. */
body {
  font-family: var(--nc-font) !important;
  font-size: var(--nc-body-size);
  line-height: 1.5;
}
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body button, body input, body select, body textarea,
body .ncw-button, body .woocommerce a.button {
  font-family: var(--nc-font) !important;
}
body h1 {
  font-size: var(--nc-h1-size) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}
body h2 {
  font-size: var(--nc-h2-size) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}
body h3 {
  font-size: var(--nc-h3-size) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
body h4 { font-size: 20px !important; }
body h5 { font-size: 18px !important; }
body h6 { font-size: 16px !important; }

body.ncw-canvas .ncw-hero {
  min-height: 0 !important;
  aspect-ratio: 1991 / 790;
}
body.ncw-canvas .ncw-hero-copy {
  width: 49%;
  padding: 36px 0 30px 4.8%;
}
body.ncw-canvas .ncw-hero h1 {
  margin-bottom: 22px;
  color: var(--nc-navy);
}
body.ncw-canvas .ncw-hero-copy > p:not(.ncw-contact-line) {
  font-size: clamp(18px, 1.9vw, 34px) !important;
  line-height: 1.35;
  margin-bottom: 24px;
}
body.ncw-canvas .ncw-actions {
  gap: 16px;
  margin: 26px 0;
}
body.ncw-canvas .ncw-button,
body .woocommerce a.button,
body .woocommerce button.button {
  font-size: clamp(15px, 1.25vw, 22px) !important;
  font-weight: 700;
  line-height: 1.3;
}
body.ncw-canvas .ncw-actions .ncw-button {
  padding: 18px 25px;
  border-radius: 8px;
  background: linear-gradient(135deg, #168ee8, #1956c3);
}
body.ncw-canvas .ncw-actions .ncw-outline {
  background: #fff;
  color: #1266aa;
  border: 2px solid #2677b2;
}
body.ncw-canvas .ncw-contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  width: fit-content;
  max-width: 100%;
  border-top: 1px solid #577494;
  padding-top: 13px;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 21px) !important;
  font-weight: 700;
}
.ncw-contact-line > span,
.ncw-contact-line > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nc-brand-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #15366c;
}
.ncw-contact-line > span .nc-brand-icon {
  color: #167dc1;
}
body.ncw-canvas .ncw-steps {
  padding: 28px 5%;
  gap: 24px;
}
body.ncw-canvas .ncw-steps > div {
  gap: 20px;
  padding-right: 20px;
}
body.ncw-canvas .ncw-steps > div + div {
  border-left: 1px solid #a7cfe4;
  padding-left: 24px;
}
body.ncw-canvas .ncw-steps b {
  font-size: clamp(42px, 4vw, 70px);
  font-weight: 700;
  color: #66b2e4;
}
body.ncw-canvas .ncw-steps .nc-brand-icon {
  width: clamp(36px, 3.4vw, 60px);
  height: clamp(36px, 3.4vw, 60px);
}
body.ncw-canvas .ncw-steps strong {
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.2;
  margin-bottom: 6px;
}
body.ncw-canvas .ncw-steps span {
  font-size: clamp(14px, 1.05vw, 19px);
  line-height: 1.3;
}
@media (max-width: 1000px) {
  body.ncw-canvas .ncw-hero-copy { width: 55%; }
  body.ncw-canvas .ncw-steps { gap: 12px; }
  body.ncw-canvas .ncw-steps > div { gap: 10px; padding-right: 8px; }
  body.ncw-canvas .ncw-steps > div + div { padding-left: 12px; }
}
@media (max-width: 640px) {
  body.ncw-canvas .ncw-hero { aspect-ratio: auto; }
  body.ncw-canvas .ncw-hero-copy {
    width: 100%;
    padding: 30px 6% 24px;
  }
  body.ncw-canvas .ncw-actions .ncw-button {
    padding: 13px 16px;
  }
  body.ncw-canvas .ncw-contact-line {
    gap: 12px 20px;
  }
  body.ncw-canvas .ncw-steps > div + div {
    border-left: 0;
    border-top: 1px solid #a7cfe4;
    padding: 20px 0 0;
  }
}

/* NC HOME FOOTER GAP V1 */
body.home #ncw-main,
body.home #ncw-main > .vc_row:last-child,
body.home #ncw-main .vc_row:has(.ncw-delivery),
body.home #ncw-main .wpb_column:has(.ncw-delivery),
body.home #ncw-main .vc_column-inner:has(.ncw-delivery),
body.home #ncw-main .wpb_wrapper:has(.ncw-delivery),
body.home #ncw-main .wpb_text_column:has(.ncw-delivery),
body.home .ncw-delivery {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.home .ncgl-footer,
body.home .ncgl-footer > .vc_row,
body.home .ncgl-footer .vc_column-inner,
body.home .ncgl-footer .wpb_text_column {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove empty text-block paragraphs at the banner/footer boundary. */
body.home #ncw-main > p:empty,
body.home #ncw-main > p:has(> br:only-child),
body.home .ncw-delivery ~ p:empty,
body.home .ncw-delivery ~ p:has(> br:only-child),
body.home .ncgl-footer .wpb_wrapper > p:empty,
body.home .ncgl-footer .wpb_wrapper > p:has(> br:only-child) {
  display: none !important;
}

/* NC FOOTER LEADING BR FIX */
.ncgl-footer .wpb_wrapper > br:has(+ footer.ncaf-footer),
body.page-id-16 .wpb_wrapper > br:has(+ footer.ncaf-footer) {
  display: none !important;
}
