/* =========================================================
   TEXT CONTENT TYPOGRAPHY
========================================================= */

.text-content-conatainer p > a {
  font-weight: 600;
}


/* Text/List → Heading */
.text-content-conatainer :is(p, ul, ol)+ :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 24px !important;
}

/* Heading → Text/List */
.text-content-conatainer :is(h1, h2, h3, h4, h5, h6)+ :is(p, ul, ol) {
  margin-top: 4px !important;
}

/* Paragraph → Paragraph */
.text-content-conatainer p + p {
  margin-top: 12px !important;
}

/* Paragraph ↔ List */
.text-content-conatainer p + :is(ul, ol),
.text-content-conatainer :is(ul, ol) + p {
  margin-top: 12px !important;
}

/* List ↔ List */
.text-content-conatainer :is(ul, ol) + :is(ul, ol) {
  margin-top: 12px !important;
}

/* Heading ↔ Heading */
.text-content-conatainer :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 12px !important;
}

/* Heading ↔ Wp-blocks */
.text-content-conatainer :is(h1, h2, h3, h4, h5, h6) + :is(.wp-block-table, .wp-block-image),
.text-content-conatainer :is(p, ul, ol) + :is(.wp-block-table, .wp-block-image) {
  margin-top: 8px !important;
}

/* Wp-blocks ↔ Heading */
.text-content-conatainer :is(.wp-block-table, .wp-block-image) + :is(h1, h2, h3, h4, h5, h6),
.text-content-conatainer :is(.wp-block-table, .wp-block-image) + :is(p, ul, ol) {
  margin-top: 24px !important;
}

.text-content-conatainer .wp-block-buttons {	
  margin-top: var(--wp--preset--spacing--large) !important;
  margin-bottom: var(--wp--preset--spacing--large) !important;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

/* Base input styling */
input[type="color"],
input[type="date"],
input[type="datetime-local"],
input[type="datetime"],
input[type="email"],
input[type="password"],
input[type="month"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea,
select,
input[type="file"]::file-selector-button {
  border-radius: 6px !important;
  background: var(--wp--preset--color--white) !important;
  font-size: 16px !important;
  border: 1px solid var(--wp--preset--color--secondar-border) !important;
  padding: 12px 16px !important;
}

/* Focus states */
input:focus,
textarea:focus {
  border-color: var(--wp--preset--color--grey) !important;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
}


/* =========================================================
   LISTS RESET & STYLES
========================================================= */

ul,
ol,
ul > li,
ol > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Padded list variants */
ul.list-padding {
  list-style-type: disc;
  padding-left: 32px;
}

ul.list-padding > li {
  list-style-type: disc;
  padding-left: 6px;
}

ol.list-padding {
  list-style-type: decimal;
  padding-left: 32px;
}

ol.list-padding > li {
  list-style-type: decimal;
  padding-left: 6px;
}


/* =========================================================
   COMPONENTS
========================================================= */

/* Card */
.card {
  background: var(--wp--preset--color--secondary-background);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(29, 33, 41, 0.06);
  border: 1px solid var(--border);
  padding: 20px;
}

/* Clickable overlays */
a.clickable::before,
.clickable > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Survey / quote */
.survey-popup,
.quote-popup {
  cursor: pointer;
}

/* Divider */
.vertical-divider {
  width: 1px;
  height: 100%;
  background: var(--wp--preset--color--border);
}

/* Slider */
.slider-btn {
  cursor: pointer;
}

/* Glass effect */
.glass {
  background-color: rgba(15, 157, 88, 0.08);
}

/* WP cover fix */
.wp-block-cover__inner-container {
  width: 100% !important;
}


/* WP table stripes */
.wp-block-table.is-style-stripes {
	border-bottom: 0 !important;
}

.wp-block-rank-math-toc-block ul {
	margin-top: var(--wp--preset--spacing--regular);
}
.wp-block-rank-math-toc-block ul, .wp-block-rank-math-toc-block ul > li {
  list-style: inside;
  padding-left: var(--wp--preset--spacing--small);
}

/* WP Buttons */
.wp-block-buttons {
  gap: var(--wp--preset--spacing--larger) !important;
}

@media(max-width: 768px){
header .wp-block-buttons {
  gap: 0 !important;
}
}

/* =========================================================
   ICON SIZES
========================================================= */

.big-icon {
  min-width: 120px;
  min-height: 120px;
}

.normal-icon {
  min-width: 80px;
  min-height: 80px;
}

.small-icon {
  min-width: 60px;
  min-height: 60px;
}


/* =========================================================
   ORDER UTILITIES
========================================================= */

.order-0 { order: 0 !important; }
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
.order-3 { order: 3 !important; }
.order-4 { order: 4 !important; }


/* =========================================================
   WIDTH UTILITIES
========================================================= */

.min-width-min-content {
  margin: 0 !important;
  min-width: min-content !important;
}

.min-width-max-content {
  min-width: max-content !important;
}

.max-width-win-content {
  max-width: min-content !important;
}

.max-width-max-content {
  max-width: max-content !important;
}

.width-max-content {
  min-width: max-content !important;
}


/* =========================================================
   ICON LISTS
========================================================= */

.icon-list li {
  position: relative;
  padding-left: 1.75rem;
}

.icon-list li::before {
  font-family: "Bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
}

.icon-list.check-icon-list li::before {
  content: "\f26a";
}


/* =========================================================
   PLUS / MINUS TOGGLE
========================================================= */

.plusminus {
  position: relative;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.plusminus::before,
.plusminus::after {
  content: "";
  display: block;
  background-color: var(--wp--preset--color--body);
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transition: 0.35s;
}

.plusminus::before {
  transform: translateY(-52%);
}

.plusminus::after {
  transform: translateY(-50%) rotate(90deg);
}

.plusminus.active::before {
  transform: translateY(-50%) rotate(-90deg);
  opacity: 0;
}

.plusminus.active::after {
  transform: translateY(-50%) rotate(0);
}


/* =========================================================
   FORM SELECT / DETAILS RESET
========================================================= */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}


/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */

@media (max-width: 780px) {

  .wp-block-cover .wp-block-cover__inner-container {
    padding: 0 !important;
  }

  .marquee-container {
    position: relative;
    width: 100%;
    flex-basis: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-container > * {
    min-width: 75%;
    animation: marquee-scroll 45s linear infinite;
  }

  .marquee-container:hover > * {
    animation-play-state: paused;
  }

  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-450%); }
  }
}