/**
 * Theme Name:        Lead Magnet
 * Theme URI:         https://westend-digital.nl
 * Description:       Custom theme description...
 * Version:           1.0.0
 * Author:            Westend Digital
 * Author URI:        https://westend-digital.nl
 * Tags:              block-patterns, full-site-editing
 * Text Domain:       fabled-sunset
 * Domain Path:       /assets/lang
 * Tested up to:      6.4
 * Requires at least: 6.2
 * Requires PHP:      7.4
 * License:           GNU General Public License v2.0 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 */

/* ==========================================================================
   1. RESETS & BASE ELEMENTS
   ========================================================================== */
/* CSS Reset voor elementen die theme.json niet bereikt */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  font-style: italic;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin: unset;
  padding: unset;
}

.text-decoration-none > a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

/* ==========================================================================
   2. COMPONENTS
   ========================================================================== */

/* --- Sticky Header --- */

header {
  inset-inline: 0;
  position: fixed;
  top: 0;
  z-index: 1000;
}

/* --- FAQ Accordion --- */
.wp-block-accordion-heading__toggle {
  & .wp-block-accordion-heading__toggle-icon {
    color: var(--wp--preset--color--ocean-mist);
    font-size: 2.5rem;
    transition: all 0.3s ease-in-out;
  }

  &[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
    color: var(--wp--preset--color--rose-punch);
  }
}

.wp-block-accordion-panel > p {
  max-width: 65ch;
}

/* --- Iframe Map --- */
.map-iframe-wrapper {
  aspect-ratio: 1 / 1;
  position: relative;
  width: 100%;

  & iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }
}

/* --- Footer & Misc --- */
.footer-list {
  text-align: end;
}

.card-icon {
  height: 2rem;
  width: 2rem;
}

/* --- Embeded Map --- */
.embed-map-container {
  position: relative;
  width: 100%;

  .iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }
}

/* ==========================================================================
   3. UTILITIES & RESPONSIVE
   ========================================================================== */

.overflow-hidden {
  overflow: hidden;
}
/* Responsive Overrides met Nesting */
@media (width <= 1024px) {
  .display-none-mobile {
    display: none;
  }
}

@media (max-width: 980px) {
  .wp-block-column {
    padding-left: var(--wp--preset--spacing--4) !important;
    padding-right: var(--wp--preset--spacing--4) !important;
  }
}

@media (max-width: 768px) {
  .constrained-75 {
    max-width: 100% !important;
  }
}

/* ==========================================================================
   4. CUSTOM LIST STYLES
   ========================================================================== */

.wp-block-list.is-style-none {
  list-style-type: none !important;
  list-style: none !important;
  margin-left: 0;
  padding-left: 0;
}

.wp-block-list.is-style-none li {
  line-height: 1.5;
  margin-bottom: 0.75em;
  padding-left: 0;
}

.wp-block-list.is-style-none li::before,
.wp-block-list.is-style-none li::marker {
  content: none !important;
  display: none !important;
}

.wp-block-list.is-style-checkmark,
.wp-block-list.is-style-circle-x,
.wp-block-list.is-style-arrow,
.wp-block-list.is-style-frown {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.wp-block-list.is-style-checkmark li,
.wp-block-list.is-style-circle-x li,
.wp-block-list.is-style-arrow li,
.wp-block-list.is-style-frown li {
  line-height: 1.5;
  margin-bottom: 0.75em;
  padding-left: 2em;
  position: relative;
}

.wp-block-list.is-style-checkmark li::before,
.wp-block-list.is-style-circle-x li::before,
.wp-block-list.is-style-arrow li::before,
.wp-block-list.is-style-frown li::before {
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #cbbfb8;
  fill: #cbbfb8;
  height: 1.2em;
  left: 0;
  position: absolute;
  top: 0.2em;
  width: 1.2em;
}

.wp-block-list.is-style-checkmark li::before {
  background-image: var(--list-icon-checkmark);
}

.wp-block-list.is-style-circle-x li::before {
  background-image: var(--list-icon-circle-x);
}

.wp-block-list.is-style-arrow li::before {
  background-image: var(--list-icon-arrow);
}
.wp-block-list.is-style-frown li::before {
  background-image: var(--list-icon-frown);
}
