/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
main:has(+ footer) section.contact:last-child {
  margin-bottom: 0 !important;
}

section.contact {
  --text-color: var(--color__dark-grey);
  --border-color: var(--color__light-grey);
  --accent-color: var(--color__dark-grey);
  background-color: var(--color__white);
  margin: 0 auto;
  padding: var(--spacing-block-small) 0;
}

section.contact .block-section-wrapper {
  display: flex;
  font-weight: 300;
}

@media screen and (max-width: 850px) {
  section.contact .block-section-wrapper {
    flex-direction: column;
    gap: var(--spacing-content);
  }
}
section.contact .block-section-wrapper .text-content-container {
  width: 50%;
}

@media screen and (max-width: 1210px) {
  section.contact .block-section-wrapper .text-content-container {
    width: 40%;
  }
}
@media screen and (max-width: 850px) {
  section.contact .block-section-wrapper .text-content-container {
    width: 100%;
  }
}
section.contact .block-section-wrapper .text-content-container .category-dot {
  font-weight: 400;
}

section.contact .block-section-wrapper .text-content-container .category-dot::before {
  background-color: var(--accent-color);
}

section.contact .block-section-wrapper .text-content-container .contact-header {
  font-weight: 300;
  max-width: 80%;
  text-wrap: balance;
  margin: 0 0 var(--spacing-content-small) !important;
  padding: 0 !important;
}

section.contact .block-section-wrapper .text-content-container .contact-button {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

section.contact .block-section-wrapper .contact-cards-container {
  width: 50%;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--border-color);
}

@media screen and (max-width: 1210px) {
  section.contact .block-section-wrapper .contact-cards-container {
    width: 60%;
  }
}
@media screen and (max-width: 850px) {
  section.contact .block-section-wrapper .contact-cards-container {
    border-left: none;
    padding: 0 !important;
    width: 100%;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card {
  display: flex;
  gap: 2rem;
  max-height: 260px;
}

@media screen and (max-width: 480px) {
  section.contact .block-section-wrapper .contact-cards-container .contact-card {
    flex-direction: column;
    max-height: none;
    gap: 0;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card.no-image .contact-info-wrapper {
  padding: 1.875rem 0 0 1.5rem;
  margin-left: auto;
}

@media screen and (max-width: 850px) {
  section.contact .block-section-wrapper .contact-cards-container .contact-card.no-image .contact-info-wrapper {
    margin-left: 0;
    padding: 1.875rem 0;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-image {
  width: 40%;
  height: 100%;
}

@media screen and (max-width: 480px) {
  section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-image {
    width: 100%;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-image img {
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: 100%;
  max-width: 260px;
  max-height: 260px;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-image img {
    max-width: 100%;
    -o-object-position: top;
       object-position: top;
    max-height: 290px;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper {
  display: flex;
  flex-direction: column;
  width: 60%;
  padding: 1.875rem 0;
}

@media screen and (max-width: 480px) {
  section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper {
    width: 100%;
  }
}
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-name,
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-title,
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-email,
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-number {
  font-weight: 300;
  margin-bottom: 1.25rem;
  line-height: 1;
}

section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-name {
  margin: 0 0 1.25rem;
  padding: 0 !important;
}

section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-title {
  padding: 0 0 1.25rem !important;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
  line-height: 1.3;
}

section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-email,
section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-number {
  text-decoration: none;
  color: var(--text-color);
}

section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-email {
  position: relative;
  display: inline-block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

section.contact .block-section-wrapper .contact-cards-container .contact-card .contact-info-wrapper .contact-email:before {
  content: "";
  position: absolute;
  width: 100%;
  bottom: -1px;
  left: 0;
  height: 1px;
  background-color: var(--accent-color);
}
