/* 
Theme Name: LWF Child
Theme URI: 
Description: Child theme for LWF website
Author: Your Name
Author URI: 
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lwf-child
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

/* Custom Properties */
:root {
  --wp--style--global--content-size: 1200px;
  /* Brand colors already defined in theme.json, no need to duplicate */
}

body {
  background-color: var(--wp--preset--color--neutral-100) !important;
}

h2 strong,
h3 strong {
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.5px;
  color: var(--wp--preset--color--brand-teal-600);
}

.entry-content > div {
    margin-top: 0;
    margin-bottom: 0;
}

.section-content {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-content {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
  }
}


/* Layout & Spacing */
.wp-site-blocks {
  padding-top: 0 !important;
}

.wp-block-ub-content-toggle-accordion {
  margin-bottom: 0;
  border-top: 1px solid var(--wp--preset--color--neutral-200) !important;
}

.wp-block-ub-content-toggle-accordion:first-child {
  border-top: none !important;
}

.wp-block-ub-content-toggle-accordion .wp-block-ub-content-toggle-accordion-title {
  padding: 15px 15px 15px 0px;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.wp-block-ub-content-toggle-accordion-title-wrap {
  outline-style: none !important;
}

.wp-block-ub-content-toggle-accordion-content-wrap {
  padding: 0px 4px;
  margin: 0 0 .5rem 0;
}

.wp-block-ub-content-toggle-accordion-content-wrap p {
  margin: 0 0 .5rem 0;
}

.contact-nav-btn a {
  background-color: var(--wp--preset--color--neutral-800);
  color: var(--wp--preset--color--neutral-100) !important;
  border-radius: 7px;
  padding: 8px 15px !important;
  position: relative;
  line-height: 1.7;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  transition: all 0.3s ease; /* Smooth transition for hover effect */
  font-size: 1rem;
}

.contact-nav-btn a::before {
  content: '';
  display: inline-block;
  line-height: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.3rem; 
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20fill%3D%22%23de843b%22%20height%3D%2264px%22%20width%3D%2264px%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%20viewBox%3D%22-46.08%20-46.08%20604.16%20604.16%22%20xml%3Aspace%3D%22preserve%22%20stroke%3D%22%23de843b%22%20stroke-width%3D%2232%22%3E%3Cg%20id%3D%22SVGRepo_bgCarrier%22%20stroke-width%3D%220%22%3E%3C/g%3E%3Cg%20id%3D%22SVGRepo_tracerCarrier%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/g%3E%3Cg%20id%3D%22SVGRepo_iconCarrier%22%3E%3Cg%3E%3Cg%3E%3Cpath%20d%3D%22M388.418%2C240.915L153.752%2C6.248c-8.331-8.331-21.839-8.331-30.17%2C0c-8.331%2C8.331-8.331%2C21.839%2C0%2C30.17L343.163%2C256%20L123.582%2C475.582c-8.331%2C8.331-8.331%2C21.839%2C0%2C30.17c8.331%2C8.331%2C21.839%2C8.331%2C30.17%2C0l234.667-234.667%20C396.749%2C262.754%2C396.749%2C249.246%2C388.418%2C240.915z%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  background-size: 1.2rem 1.2rem;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  top: 0.22rem;
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
}
.contact-nav-btn a:hover {
    background-color: var(--wp--preset--color--neutral-900);
}

.contact-nav-btn a:hover::before {  
  transform: translateX(5px); /* Move the icon slightly to the right */
}


.wp-block-button.has-medium-font-size .wp-block-button__link {
  font-size: 1.25rem !important;
}


.button-group-thirds .wp-block-button {
  flex: 0 1 calc(33.3333% - 1rem); /* Ensure equal width with spacing */
  max-width: calc(33.3333% - 1rem); /* Prevent wrapping unless necessary */
  gap: 1rem;
  white-space: nowrap; /* Prevent text wrapping inside buttons */
}
.button-group-thirds .wp-block-button > a {
  width: 100%; /* Ensure the link fills the button */
  text-align: center; /* Center text inside the button */
}

/* Content Width Constraints */

.entry-content>.wp-block-post-content.is-layout-constrained,
.wp-block-group.has-global-padding.is-layout-constrained {
  max-width: var(--wp--style--global--content-size) !important;
  margin-left: auto;
  margin-right: auto;
}



/* Override WordPress default margin reset for headings */
body .is-layout-constrained h1 {
  margin-block-start: calc(0.7 * var(--wp--preset--font-size--huge));
    margin-top: calc(0.7 * var(--wp--preset--font-size--huge));
      margin-block-end: calc(0.7 * var(--wp--preset--font-size--huge));
  margin-bottom: calc(0.7 * var(--wp--preset--font-size--huge));
}

body .is-layout-constrained h2 {
  margin-block-start: calc(0.9 * var(--wp--preset--font-size--xl));
    margin-top: calc(0.9 * var(--wp--preset--font-size--xl));
  margin-block-end: calc(0.7 * var(--wp--preset--font-size--xl));
    margin-bottom: calc(0.7 * var(--wp--preset--font-size--xl));
}

body .is-layout-constrained h3 {
  margin-block-start: calc(0.9 * var(--wp--preset--font-size--large));
    margin-top: calc(0.9 * var(--wp--preset--font-size--large));
      margin-block-end: calc(0.7 * var(--wp--preset--font-size--large));
    margin-bottom: calc(0.7 * var(--wp--preset--font-size--large));
}


body .is-style-lead, body .has-medium-font-size {
  font-size: clamp(1.1rem, 2.8vw, 1.25rem) !important;
}

body p {
  font-size: clamp(1rem, 2.8vw, 1.1rem) !important;
}

body h1.wp-block-post-title {
  font-size: clamp(2.5rem, 2.8vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.2;
}

body h1, body h1.has-huge-font-size {
  font-size: clamp(3.2rem, 2.8vw, 4rem) !important;
  line-height: 1.1;
}

body h2 {
  font-size: clamp(2.1rem, 2.8vw, 2.3rem) !important;
}

body h4 {
  font-size: clamp(1.3rem, 2.8vw, 1.45rem) !important;
}

body .icon-list-content .is-layout-flex {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wp-block-comments {
  margin-left: var(--wp--custom--spacing--gap--baseline) !important;
  margin-right: var(--wp--custom--spacing--gap--baseline) !important;
}


/* body .is-layout-constrained > h1,
body .is-layout-constrained > h2, 
body .is-layout-constrained > h3 {
    margin-block-end: var(--wp--custom--spacing--gap--baseline);
    margin-bottom: var(--wp--custom--spacing--gap--baseline);
}

body .is-layout-constrained>h4,
body .is-layout-constrained>h5,
body .is-layout-constrained>h6 {
  margin-block-end: .5em;
  margin-bottom: .5em;
} */

/* body .is-layout-constrained h4 {
  line-height: 25px !important;
} */

/* Also target headings that might be inside other block elements */
/* body .is-layout-constrained .wp-block-column h1,
body .is-layout-constrained .wp-block-column h2,
body .is-layout-constrained .wp-block-column h3,
body .is-layout-constrained .wp-block-group h1,
body .is-layout-constrained .wp-block-group h2,
body .is-layout-constrained .wp-block-group h3 {
    margin-block-end: var(--wp--custom--spacing--gap--baseline);
    margin-bottom: var(--wp--custom--spacing--gap--baseline);
}

body .is-layout-constrained .wp-block-column h4,
body .is-layout-constrained .wp-block-column h5,
body .is-layout-constrained .wp-block-column h6,
body .is-layout-constrained .wp-block-group h4,
body .is-layout-constrained .wp-block-group h5,
body .is-layout-constrained .wp-block-group h6 {
  margin-block-end: .5em;
  margin-bottom: .5em;
} */

/* Remove top margin from paragraphs following headings for consistent spacing */
body h1 + p,
body h2 + p,
body h3 + p,
body h4 + p,
body h5 + p,
body h6 + p {
    margin-top: 0;
    padding-top: 0;
}

/* Also target paragraphs within content blocks that follow headings */
body .is-layout-constrained h1 + p,
body .is-layout-constrained h2 + p,
body .is-layout-constrained h3 + p,
body .is-layout-constrained h4 + p,
body .is-layout-constrained h5 + p,
body .is-layout-constrained h6 + p,
body .wp-block-column h1 + p,
body .wp-block-column h2 + p,
body .wp-block-column h3 + p,
body .wp-block-column h4 + p,
body .wp-block-column h5 + p,
body .wp-block-column h6 + p,
body .wp-block-group h1 + p,
body .wp-block-group h2 + p,
body .wp-block-group h3 + p,
body .wp-block-group h4 + p,
body .wp-block-group h5 + p,
body .wp-block-group h6 + p {
    margin-top: 0;
    padding-top: 0;
    margin-block-start: 0;
}

.icon-mailto svg {
  color: var(--wp--preset--color--brand-teal-600) !important;
  fill: var(--wp--preset--color--brand-teal-500) !important
}

.icon-button {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.icon-button svg {
  color: var(--wp--preset--color--brand-teal-600) !important;
  fill: var(--wp--preset--color--brand-teal-500) !important;
}

.has-margin-left-base {
	margin-left: 20px !important;
} 

.ub_icon,
.ub_icon_wrapper,
.ub_icon_wrapper svg {
	line-height: 0;
}

.logo-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.logo-grid figure {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-height: 137px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  /* Optional */
  position: relative !important;
  background: #ffffff !important;
  padding: 20px !important;
}

.logo-grid img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: auto !important;
  filter: grayscale(100%) !important;
    /* filter: grayscale(100%) brightness(2) invert(1) !important;
    mix-blend-mode: multiply !important; */
}

/* .logo-grid {
  flex-wrap: nowrap !important;
}

.logo-grid figure {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  margin: 0;
  background: #ffffff !important;
  padding: 2px !important;
  min-width: 220px !important;
} */

strong,
p > strong {
  font-weight: 600 !important;
  color: var(--wp--preset--color--neutral-900);
}

.is-style-lead strong,
.is-style-lead p>strong {
  font-weight: 680 !important;
}

/* Navigation styles */
.lwf-main-nav {
  margin: 0;
}

.lwf-main-nav .wp-block-navigation__container {
  gap: 2rem;
}

/* Admin bar adjustments */
.admin-bar header.wp-block-template-part {
  top: 32px;
}

body.blog {
  background-color: var(--wp--preset--color--neutral-150) !important;
}

/* Hero section styles */
.lwf-hero-background.wp-block-cover {
  margin-top: 0;
  padding-top: 0px;
  min-height: 680px !important;
}

/* .lwf-hero-content {
  padding-top: 80px;
  max-width: 800px;
} 
*/

/* .lwf-hero-title {
  font-size: var(--wp--preset--font-size--xx-large);
  margin-bottom: var(--wp--preset--spacing--20);
} */

/* Layout & Spacing Fixes */
.entry-content>.alignfull:first-child {
  margin-top: 0 !important;
}

.wp-block-post-content>*:first-child {
  margin-top: 0;
}

/* Cover block full width handling */
.wp-block-cover.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-100vw / 2 + 100% / 2);
  margin-right: calc(-100vw / 2 + 100% / 2);
}

/* Hero background handling */
.lwf-hero-background .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.wp-block-ub-content-toggle-accordion-title-wrap {
  background: transparent !important;
}
.wp-block-ub-content-toggle-accordion {
  border: none !important;
}

.bg-gradient-135 {
  /* background: linear-gradient(135deg, var(--wp--preset--color--brand-teal-600) 0%, var(--wp--preset--color--brand-teal-400) 100%); */
  background: var(--wp--preset--gradient--brand-gradient);
  border-radius: 10px;
  padding: 1rem;
}


/* Responsive Styles */
@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part {
    top: 46px;
  }

  header.wp-block-template-part {
    padding: 0.5rem 1rem;
  }

  .lwf-header-inner {
    padding: 0.75rem 1rem;
  }

  .lwf-hero-background.wp-block-cover {
    padding-top: 60px;
  }

  .lwf-hero-content {
    padding-top: 6rem;
  }
}

@media (max-width: 600px) {

/* Content Width Constraints */
  /* .wp-block-group.is-layout-constrained {
      max-width: var(--wp--style--global--content-size) !important;
      right: "var(--wp--preset--spacing--40)";
      left: "var(--wp--preset--spacing--40)"
  } */

  /* .entry-content>.wp-block-post-content.is-layout-constrained,
                        .wp-block-group.has-global-padding.is-layout-constrained {
                          max-width: var(--wp--style--global--content-size) !important;
                          margin-left: auto;
                          margin-right: auto;
                        } */
  /* .wp-block-group.is-layout-constrained {
  max-width: var(--wp--style--global--content-size) !important;
} */
  
  .lwf-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lwf-main-nav .wp-block-navigation__container {
    gap: 1rem;
  }
}

/* Icon List Styles */
/* .lwf-icon-list-item {
    display: flex;
    gap: .6em;
    margin: 0.75em 0;
    align-items: center;
} */

.icon-list-form-content .lwf-icon-list-item .icon-list-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: normal !important;
  width: 100% !important;
}

.lwf-icon-list-item .lwf-icon {
  display: none !important;
}

.lwf-icon-list-item > div:first-child {
  display: none !important;
}

.lwf-icon {
    flex-shrink: 0;
    width: 16px;  /* Changed from 24px */
    height: 16px; /* Changed from 24px */
    align-self: flex-start;
    padding-top: 2px;
}

.lwf-icon-12 {
  width: 12px;
  height: 12px;
  padding-top: 0;
    padding-top: 4px;
  }

.lwf-icon-24 {
  width: 20px;
  height: 20px;
  padding-top: 0;
}

.lwf-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensure SVG scales properly */
    transform-box: fill-box;
    transform-origin: center;
    padding-top: 6px;
}
.lwf-icon-list-item > p:last-child {
    margin: 0;
}

.wp-block-embed.is-type-video {
  margin-top: 10px !important;
}

/* Table Builder Styling - Fix for Border Radius */
.wp-block-riovizual-tablebuilder,
.wp-block-riovizual-tablebuilder table {
  overflow: hidden;
  border-radius: 12px;
}

.wp-block-riovizual-tablebuilder table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #fff;
}

/* Ensure no border gaps between cells */
.wp-block-riovizual-tablebuilder table td {
  position: relative;
}

.two-column-limit-height.wp-block-columns {
  display: flex !important;
  align-items: stretch !important;
}

.two-column-limit-height > .wp-block-column {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.two-column-limit-height > .reference-column {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.two-column-limit-height .solution-faqs {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
}

a.wp-block-navigation-item__content[aria-current="page"] {
  font-weight: bold;
}

nav.category-menu {
      padding: 5px 10px;
        border: 1px solid;
        border-radius: 5px;        
}
nav.category-menu a:hover {
  text-decoration: none;
}

.blog-query-container {
  margin-block-start: 0 !important;
}

.lwf-blog-headings {
  margin-bottom: 4rem;
}

.lwf-hero-content {
  position: relative;
  top: 48px;
}

.hustle-ui.module_id_2 .hustle-layout .hustle-content {
	padding: 0px !important;
}

.hustle-ui:not(.hustle-size--small) .hustle-info .hustle-group-content p:not(:last-child) {
	margin: 0 !important;
}

.hustle-ui.module_id_2 .hustle-layout .hustle-content .hustle-content-wrap {
	padding: 10px !important;
}

@media screen and (min-width: 783px) {
    .home .hustle-ui .hustle-slidein-content .hustle-info {
        max-width: 540px !important;
    }
}
.hustle-ui.hustle-slidein .hustle-slidein-content>[class*=hustle-] {
    max-width: 540px !important;
}

.hustle-ui.module_id_2 button.hustle-button-close {
	color: rgba(0,58,69,1.0) !important;
    z-index: 2 !important;
    border: 2px solid rgba(0,58,69,1.0) !important;
    border-radius: 5px !important;
	width: 30px !important;
	height: 30px !important;
}