/* NNIS Global Style Bridge v3 */
:root {
  --charcoal: #1E1E1E;
  --green: #5EAD3F;
  --green-light: #E8F5E2;
  --green-dark: #3D8B27;
  --warm-white: #FAFAF8;
  --slate: #4A5568;
  --slate-light: #718096;
  --border: #E2E8F0;
}

/* GLOBAL BASE */
body { background: var(--warm-white) !important; font-family: 'Inter', sans-serif !important; color: var(--charcoal); line-height: 1.6; }

/* FULL WIDTH - remove all Divi container constraints */
#page-container, #et-main-area, #main-content,
.et-l, .et-l--body, .et-l--header, .et-l--footer,
.et_builder_inner_content,
.et-db #et-boc .et-l .et_pb_section,
.et_pb_section.et_pb_section {
  max-width: 100% !important;
  width: 100% !important;
}

/* Body wrapper rows - full width pass-through */
.et-l--body .et_pb_section > .et_pb_row,
.et-l--body .et_builder_inner_content > .et_pb_section > .et_pb_row {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Page content sections - full width */
.entry-content .et_pb_section,
.et_pb_post_content .et_pb_section,
.et-db #et-boc .et-l .et_pb_section {
  max-width: 100% !important;
  width: 100% !important;
}

/* Content rows INSIDE page sections - proper max width */
.entry-content .et_pb_section .et_pb_row,
.et_pb_post_content .et_pb_section .et_pb_row {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .et_pb_heading h1, .et_pb_heading h2, .et_pb_heading h3 {
  font-family: 'DM Serif Display', serif !important;
  line-height: 1.2 !important;
}
.et_pb_heading h1 em, .et_pb_heading h2 em, h1 em, h2 em {
  font-style: italic;
  color: var(--green);
}
.et_pb_text { color: var(--slate); }

/* Vertical spacing */
.et_pb_module + .et_pb_module { margin-top: 16px !important; }

/* BUTTONS */
.et_pb_button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.25s !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.et_pb_button:hover { transform: translateY(-2px) !important; }
.et_pb_button:after { display: none !important; }

/* BLURBS - card style */
.et_pb_blurb {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 28px !important;
  transition: all 0.3s !important;
}
.et_pb_blurb:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
}
.et_pb_blurb_content .et_pb_module_header {
  font-family: 'DM Serif Display', serif !important;
  font-size: 18px !important;
  margin-bottom: 8px !important;
}
.et_pb_blurb_content .et_pb_blurb_description {
  color: var(--slate) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.et_pb_blurb .et_pb_image_wrap { display: none; }

/* IMAGES */
.et_pb_image_wrap { overflow: hidden; border-radius: 16px; }
.et_pb_image_wrap img { transition: transform 0.5s !important; }
.et_pb_image_wrap:hover img { transform: scale(1.05); }

/* LINKS */
a[href^='tel:'], a[href^='mailto:'] {
  color: var(--green) !important;
  text-decoration: none !important;
  font-weight: 500;
}
a[href^='tel:']:hover, a[href^='mailto:']:hover {
  color: var(--green-dark) !important;
  text-decoration: underline !important;
}

/* HEADER */
.et-l--header .et_pb_row { max-width: 1200px !important; margin: 0 auto !important; }

/* FOOTER */
#et-footer-nav, #footer-bottom, .footer-widget { display: none !important; }
.et-l--footer .et_pb_row { max-width: 1200px !important; margin: 0 auto !important; }

/* Divi default footer hide */
#main-footer { display: none !important; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .entry-content .et_pb_section .et_pb_row,
  .et_pb_post_content .et_pb_section .et_pb_row { width: 95% !important; }
}
@media (max-width: 767px) {
  .et_pb_heading h1 { font-size: 32px !important; }
  .et_pb_heading h2 { font-size: 28px !important; }
  .et_pb_button { width: 100% !important; text-align: center !important; }
}

/* Hero badge - force visible at all breakpoints */
.et_pb_row .et_pb_text:first-child p:only-child { display: inline-block !important; }


/* HAMBURGER FIX - CSS-only three lines using pseudo-elements */
@media (max-width: 980px) {
  .nnis-hamburger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    cursor: pointer !important;
    position: relative !important;
  }
  .nnis-hamburger::before,
  .nnis-hamburger::after {
    content: '' !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: #1E1E1E !important;
    position: absolute !important;
  }
  .nnis-hamburger::before {
    top: 10px !important;
    box-shadow: 0 7px 0 #1E1E1E !important;
  }
  .nnis-hamburger::after {
    bottom: 10px !important;
  }
  .nnis-hamburger span {
    display: none !important;
  }
}

/* HERO BADGE - force visible everywhere */
.et-l--body .et_pb_text:first-child {
  visibility: visible !important;
  opacity: 1 !important;
}
.et_builder_inner_content .et_pb_section:first-child .et_pb_row:first-child .et_pb_column:first-child .et_pb_text:first-child {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Exclude header/footer logos from the global rounded-image rule */
.et-l--header .et_pb_image_wrap,
.et-l--footer .et_pb_image_wrap {
  border-radius: 0 !important;
  overflow: visible !important;
}
.et-l--header .et_pb_image_wrap img,
.et-l--footer .et_pb_image_wrap img {
  border-radius: 0 !important;
  transform: none !important;
}
.et-l--header .et_pb_image_wrap:hover img,
.et-l--footer .et_pb_image_wrap:hover img {
  transform: none !important;
}


/* Fix logo left-edge clipping - force overflow visible up the whole header chain */
.et-l--header,
.et-l--header .et_pb_section,
.et-l--header .et_pb_row,
.et-l--header .et_pb_column,
.et-l--header .et_pb_image,
#main-header,
#top-header {
  overflow: visible !important;
}
.et-l--header .et_pb_column {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.et-l--header .et_pb_image_wrap img {
  max-width: none !important;
}


/* Increase hero column top margin on mobile/tablet so the badge isn't cut off */
@media (max-width: 980px) {
  .et_pb_row .et_pb_column_0.et_pb_column {
    margin-top: 100px !important;
  }
}


/* Blurb card spacing - ensure gap between stacked blurb rows */
.et_pb_row + .et_pb_row {
  margin-top: 20px;
}
.et_pb_blurb {
  margin-bottom: 0 !important;
}
.et_pb_blurb h4 {
  margin-top: 0 !important;
}
