/*!
Theme Name: mimark
Theme URI: [https://maweb.dev](https://maweb.dev)
Author: Marc Costa
Author URI: [https://maweb.dev](https://maweb.dev)
Description: Tema personalitzat per MiMARK Diagnostics amb ACF Flexible Content
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mimark
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========================================
BASE
======================================== */

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  line-height: 1.4;
}

h5 {
  font-size: clamp(1rem, 1.39vw, 1.5rem);
}

h6.news-item-titol {
  font-size: 1.875rem;
  line-height: 1.4;
  font-weight: 400;
  margin-top: 20px;
}



.news-item-categoria + .news-item-titol a,
.news-item-titol a {
	color: inherit;
	text-decoration: none;
	font: inherit;
}

.news-item-excerpt {
  font-size: 0.875rem;
}

/* ========================================
MENU
======================================== */

@media (max-width: 980px) {
  .menu-nav .nav-list > li > a::before {
    white-space: normal;
  }
}

/* ========================================
LAYOUT HELPERS
======================================== */

.container,
.container-amp {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container-amp {
    padding-inline: 20px;
  }
}

.grid,
[class*="grid"],
.flex,
[class*="flex"] {
  min-width: 0;
}

/* ========================================
COLORS / UTILS
======================================== */

.c-8 {
  color: #ff6759;
}

.pill-link {
  color: #fff;
}

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

.prod-card-contingut.prod-card-rosa {
  padding-left: 0.5em;
  padding-right: 1.125em;
  text-indent: -0.4em;
}

.prod-card-contingut.prod-card-taronja {
  padding-left: 1.1em;
  padding-right: 1.5em;
  text-indent: -1.1em;
  text-decoration: none;
  color: #ff6759;
  list-style: none;
}

.prod-card-contingut.prod-card-taronja.gyl {
  padding-left: 0.6em;
  padding-right: 1.1em;
  text-indent: -0.5em;
}

.prod-card-contingut li::before {
  content: "- ";
}

/* ========================================
NEWS
======================================== */

.news-cats-grid {
  direction: rtl;
}

.news-cats-grid a {
  direction: ltr;
}

.news-item-data {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.news-item-thumb {
  margin-top: 0.5rem;
}

.news-item-thumb img {
  max-width: 200px;
  height: auto;
}

.news-paginacio .page-numbers {
  font-family:
    "Open Sauce One",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1.175rem;
  font-weight: 400;
  border-radius: 10px;
  color: #0a042a;
}

.news-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 28px 28px;
  border-radius: 20px;
  background: rgba(243, 243, 243, 0.55);
  text-decoration: none;
  min-height: 130px;
  transition:
    background 0.35s ease,
    opacity 0.35s ease;
}

.news-cat-card--actiu {
  background: linear-gradient(to right, #f24caa 0%, #ff6759 58%);
}

/* ========================================
BUTTON IMAGE
======================================== */

.btn-image {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
}

.btn-image-fons-a {
  background-color: #f24caa5c;
}

.btn-image-fons-a:hover {
  background-color: #f24caa;
  transition: background-color 1s;
}

.btn-image-fons-b {
  background-color: #ff675985;
}

.btn-image-fons-b:hover {
  background-color: #ff6759;
  transition: background-color 1s;
}

.btn-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  mix-blend-mode: multiply;
}

.btn-image span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.btn-image-overlay {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(250px, 80%);
}

.btn-image-overlay img {
  max-width: 100%;
  margin-bottom: 0.5rem;
}

.btn-image-overlay p {
  margin: 0;
  font-weight: bold;
  color: white;
}

/* ========================================
ABOUT
======================================== */

.about-titol-gran {
  width: 50%;
}

.about-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 80px 0 20px;
}

@media (max-width: 768px) {
  .about-us-grid {
    grid-template-columns: 1fr;
  }
}

.about-us-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(243, 243, 243, 0.55);
  text-decoration: none;
  transition:
    background 0.35s ease,
    opacity 0.35s ease;
  min-height: 130px;
}

.about-us-card:hover {
  background: #ffebeb;
}

.about-us-icona {
  align-self: flex-end;
  margin-bottom: 20px;
}

.about-us-icona img,
.about-us-icona svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.about-proposit-text h6 {
  font-family:
    "Open Sauce One",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1.275rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #0a042a;
}

.about-proposit-grid .about-proposit-text {
  margin-top: 0px;
}

@media (max-width: 900px) {
  .about-titol-gran {
    width: 100%;
  }
}

/* ========================================
GYLD / HERO
======================================== */

.gyldec-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 768px) {
  .gyldec-top {
    grid-template-columns: 1fr;
  }
}

.gyldec-img {
  width: 100%;
  border-radius: 20px;
  margin-top: 8rem;
}

.gyldendo-intro-top {
  display: grid;
  grid-template-columns: 3fr 6fr;
  gap: 80px;
}

@media (max-width: 900px) {
  .gyldendo-intro-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.gyldendo-block {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(243, 243, 243, 0.55);
  backdrop-filter: blur(24px);
}

.gyldendo-key {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gyldendo-key p {
  font-size: 7.175rem;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 900px) {
  .gyldendo-key p {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}

.key-min {
  font-size: 2.175rem;
}

.tech-hero-pill-outer {
  display: flex;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.text-intro-tech p {
  margin-bottom: 0;
}

.gyldendo-hero-claim {
    max-width: none;
    margin-top: 8px;
    margin-bottom: 0px;
}

.gyldendo-intro-top {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: 80px;
}

.gyldec-hero-foto {
    width: 380px;
}

.gyldec-impact-valor {
	display: flex;
	align-items: center;
  justify-content: flex-end;
	gap: 4px;
      font-family: "TWK Everett", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 44px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: #f24caa;
}

.gyldec-impact-valor::before {
	content: ">";
	font-weight: 300;
  margin-bottom:10px;
}

.gyldec-impact-fila {
    padding: 24px 32px;
}


/* ========================================
CONTACT
======================================== */

.contact-intro-text {
    max-width: 500px;
    margin-top: 2rem;
    margin-bottom: 0px;
}

.contact-hero-section {
    padding-bottom: 20px;
}

/* ========================================
HOME
======================================== */

.home-block {
  position: relative;
  justify-content: center;
  margin: clamp(40px, 8vw, 120px) 20px 30px;
  overflow: hidden;
}

@media (min-width:698px) and (max-width: 900px) {
.home-block {
  margin: clamp(40px, 12vw, 120px) 20px 30px;
}
}

@media (max-width: 698px) {
.home-block {
  margin: clamp(40px, 20vw, 220px) 20px 30px;
}
}


.promesa-h2 {
  font-size: clamp(2.5rem, 8vw, 5.625rem);
  line-height: 0.95;
}

.promesa-img--2 {
  left: -8vw;
}

.promesa-img--3 {
  bottom: 2rem;
  right: -10vw;
}

.hero-subtitol-pill {
  display: inline-block;
  background: none;
  color: #fff;
  font-family:
    "Open Sauce One",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 4rem;
  transform: translateY(0%);
  max-width: 840px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-subtitol-pill {
    font-size: 1.275rem;
  }
}

.hero-txt {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ========================================
TEAM
======================================== */

.team-fila {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 1200px) {
  .team-fila {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .team-fila {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-cap {
  gap: 10%;
}

.team-cap-dret p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-membre .team-membre-info {
    margin: -30px 10px 0;
    padding: 15px 10px 10px;
    border-radius: 5px;
  }
}

  .team-cap-esq {
    flex: 0 0 35%;
}

@media (max-width: 900px) {

.team-cap-dret {
margin-top: 1.5rem;
}
}


/* ========================================
TECH / GRID
======================================== */

.text-intro-tech {
  grid-column: 7 / span 6;
  margin-top: auto;
}

  p.sub-box {
  font-size: clamp(1rem, 1.39vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-top:5px;
  }

@media (max-width: 768px) {
  .text-intro-tech {
    grid-column: 1 / -1;
  }
}


.grid-bi > :nth-child(3) {
  align-self: start;
  z-index: 1000;
}

@media (min-width: 768px) and (max-width: 900px) {
  .grid-bi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .grid-bi > :nth-child(1) {
    grid-column: 1;
  }
  .grid-bi > :nth-child(2) {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .grid--offset-tablet {
    flex-direction: row;
      flex-wrap: wrap;
  }
    .tech-c-1 {
    flex: 0 0 100%;
  }

  .tech-c-2,
  .tech-c-3 {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 698px) {
  .grid-bi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  p.sub-box {
    font-size: 0.875rem;
    font-weight: 400;
  }
}

.tech-hero {
    margin-top: 140px;
}

/* ========================================
VALUES
======================================== */

.valors-cols {
  gap: 40px;
}

@media (max-width: 920px) {
  .valor-nom {
    line-height: 1.2;
    min-width: 110px;
    margin-bottom: -5px;
  }
  .valor-icon-wrap img {
    max-width: 30px;
    max-height: 30px;
  }
  .valors-cols .valor-item .valor-icon-wrap {
    min-width: 30px;
  }

  .valors-cols .valor-item {
    flex-direction: column;
  }
}

.valors-card-cap {
 
    margin-bottom: 0px;
}

.val-head {
  margin-bottom:1rem;
}

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

.current-title {
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal h5 {
  font-size: 1.475rem;
  line-height: 2.175rem;
  margin: 40px 0 10px;
}

.titol-pagina {
  font-size: clamp(2.5rem, 5.75vw, 4.75rem);
}

.c-11 {
  display: inline;
}

.careers-imatge {
  margin-top: 75px;
}

.contact-intro-text {
  max-width: 500px;
}

@media (max-width: 768px) {
  .contact-intro-text {
    max-width: 100%;
  }
}

.challenge-col-img {
  position: relative;
  overflow: visible;
}

.col-4.challenge-col-titol {
    z-index: 1000;
}

.lent-home {
  position: absolute;
  bottom: -250px;
  left: -250px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
  backdrop-filter: blur(8px) saturate(100%);
  -webkit-backdrop-filter: blur(8px) saturate(100%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
  mask-image: radial-gradient(circle, black 40%, transparent 70%);
}

@media (max-width: 768px) {
  .lent-home {
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -120px;
  }
}

/* ========================================
WORK
======================================== */

.careers-hero-grid {
  align-items: flex-start;
}


/* ========================================
FUNDING
======================================== */

.funding-hero-bottom {
    gap: 10%;
}


/* ========================================
HOME IMG
======================================== */



.promesa-imgs-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.promesa-imgs-wrap {
  display: none;
}

.promesa-img img {
    display: block;
    width: 100%;
    height: auto;
}

.promesa-img--1 {
    width: clamp(120px, 18vw, 320px);
}

.promesa-img--2 {
    width: clamp(120px, 18vw, 320px);
}

.promesa-img--3 {
    width: clamp(120px, 18vw, 320px);
}

.promesa-text {
    position: relative;
    z-index: 1;
}

.promesa-imgs-wrap {
  flex-direction: column;
}

@media (max-height: 768px) and (min-width:900px) {
  .promesa-img--1 {
    width: clamp(120px, 10vw, 320px);
    top: -2rem;
    border-radius: 10px;
}
 .promesa-img--2 {
    width: clamp(120px, 10vw, 320px);
    top: 14rem;
    border-radius: 10px;
}
  .promesa-img--3 {
    width: clamp(120px, 10vw, 320px);
    top: 8rem;
    border-radius: 10px;
}
}

@media (min-width: 368px) and (max-width: 900px) {
.promesa-imgs-wrap {
margin-top:-40px;
 }
 .promesa-img--2 {
    left: 5vw;
    align-self: flex-end;
}
}

@media (max-width: 368px) {
.promesa-imgs-wrap {
display:none;
 }
.promesa-img--2 {
    left: 5vw;
    align-self: flex-end;
}
}
