/* Fonts --------------- */

@font-face {
    font-family: "Balsamiq-Sans";
    font-style: normal;
    font-weight: 700;
    src: url("/assets/fonts/BalsamiqSans-Bold.ttf") format('truetype');
}

@font-face {
    font-family: "Andika";
    font-style: normal;
    font-weight: 400;
    src: url("/assets/fonts/Andika-Regular.ttf") format('truetype');
}

@font-face {
    font-family: "Andika";
    font-style: normal;
    font-weight: 700;
    src: url("/assets/fonts/Andika-Bold.ttf") format('truetype');
}


/* Section Styles --------------- */

.container.grid .column {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .container.grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    
    .container.grid .column {
        grid-column: span var(--span);
    }
}

.container.grid .column > *:first-child {
    margin-top: 0;
}

.container.grid .column > *:last-child {
    margin-bottom: 0;
}

section {
    display: flex;
    align-items: center;
    background-image: var(--bg_image);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000000;
    /*background: linear-gradient(180deg, rgba(255, 154, 82, 0.00) 0%, #FF9A52 100%), linear-gradient(0deg, rgba(49, 31, 23, 0.70) 0%, rgba(49, 31, 23, 0.70) 100%);
    background-blend-mode: multiply, multiply;*/
    opacity: 0.6;
    pointer-events: none;
}

[data-alignment=left] {
    text-align: left;
}
  
[data-alignment=center] {
    text-align: center;
}
  
[data-alignment=right] {
    text-align: right;
}

[data-alignment=justify] {
  text-align: justify;
}

[data-color-mode="light"] {
    --text-color: var(--black);
    --bg-color: var(--white);
}

[data-color-mode="bright"] {
    --text-color: var(--dark);
    --bg-color: var(--accent);
    --button-bg-color: var(--dark);
    --button-text-color: var(--white);
    --accent-color: var(--white);
    --accent-rgba: var(--dark-rgba);
}

[data-color-mode="dark"] {
    --text-color: var(--white);
    --bg-color: var(--dark);
}

[data-color-mode="black"] {
    --text-color: var(--white);
    --bg-color: #22140E;
}

.radius-top {
    border-radius: 64px 64px 0px 0px;
    overflow: hidden;
    z-index: 2;
}

.radius-bottom {
    border-radius: 0 0 64px 64px;
    overflow: hidden;
    z-index: 2;
}

/* Global Styles --------------- */

h1 + .button,
h2 + .button,
h3 + .button {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
    font-style: var(--heading-font-style);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong {
    font-weight: var(--heading-font-weight);
    color: var(--bright);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    text-transform: uppercase;
    color: var(--accent-color);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.04em;
    padding: 1em 1.3em;
    border-radius: var(--rounded-xl);
    background-color: transparent;
    background-color: rgba(var(--accent-rgba));
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--text-5xl);
    line-height: var(--leading-none);
}

h2 {
    font-size: var(--text-3xl);
    line-height: var(--leading-none);
}

p {
    margin-bottom: 1.25rem;
}

img,
svg {
    max-width: 100%;
}

p + figure:not(:last-child) {
    margin: 2.5rem 0;
}

.bold {
    font-weight: var(--weight-bold);
}

.max-56 {
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
}

.max-42 {
    max-width: 42rem;
    margin-right: auto;
    margin-left: auto;
}

figure[data-ratio="1/1"] {
    aspect-ratio: 1 / 1;
}

figure[data-ratio="3/4"] {
    aspect-ratio: 3 / 4;
}

figure[data-ratio="4/3"] {
    aspect-ratio: 4 / 3;
}

figure[data-ratio="4/5"] {
    aspect-ratio: 4 / 5;
}

figure[data-ratio="5/4"] {
    aspect-ratio: 5 / 4;
}

figure[data-ratio="2/3"] {
    aspect-ratio: 2 / 3;
}

figure[data-ratio="3/2"] {
    aspect-ratio: 3 / 2;
}

figure[data-ratio="16/9"] {
    aspect-ratio: 16 / 9;
}

figure[data-ratio] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure[data-radius] img {
    border-radius: var(--rounded);
}

.button-container {
    margin-top: 1.2rem;
}

.button {
    display: inline-flex;
    padding: 0.5em 1em 0.75em 1em;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: var(--line) solid var(--button-bg-color);
    border-radius: var(--rounded-xl);
    background: var(--button-bg-color);
    color: var(--button-text-color);
    font-weight: var(--weight-bold);
    font-size: var(--text-s);
    letter-spacing: 0.03em;
    line-height: var(--leading-none);
    transition: 0.2s ease;
}

.button:hover {
    transform: scale(1.05);
}


/* Fade In ---------------------------- */

.fade-in .column > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-in-out;
}

.fade-in .column > *.fade-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.hero.fade-in .column > * {
    animation-duration: 2s;
    animation-name: fadeIn;
    animation-direction: normal;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    } to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

.header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    --text-color: var(--white);
    color: var(--text-color);
}

main > section:first-child {
    padding-top: calc(var(--logo-height) + var(--spacing-6));
}

.header-content {
    padding: var(--spacing-6) 0;
}

.header .logo {
    height: var(--logo-height);
}

.header .logo svg {
    height: 100%;
    width: auto;
}

.logo a:focus-visible {
    outline: none;
}

.header menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding-inline-start: 0;
    list-style: none;
    font-weight: var(--weight-bold);
    font-size: var(--text-s);
    line-height: var(--leading-tight);
}

.header menu a:not(.button) {
    padding: 0.5em;
    position: relative;
}

.header menu a:not(.button)::after {
    content: "";
    transform-origin: left;
    background: var(--bright);
    pointer-events: none;
    width: 100%;
    max-width: 3rem;
    height: var(--line);
    transition: transform .2s ease-in-out;
    position: absolute;
    left: 0.5em;
    bottom: 0;
    inset-block-end: 0;
    transform: scaleX(0);
    border-radius: 8px;
}

.header menu a:not(.button):hover::after {
    transform: scaleX(1);
}

.menuButton {
    display: block;
    height: auto;
    width: 30px;
    cursor: pointer;
    position: absolute;
}
  
.menuButton span {
    background-color: var(--text-color);
    display: block;
    height: 2px;
    transition: .5s ease all;
    width: 100%;
}

.menuButton .middle {
    margin: 7px 0;
}

@media screen and (min-width: 1130px) and (max-width: 1400px) {
    .header menu {
        gap: 20px;
    }
}

@media screen and (min-width: 1130px) {
    .menuButton {
        display: none;
    }
}

@media screen and (max-width: 1129px) {
    .menuButton {
        z-index: 10;
        position: absolute;
        top: calc(var(--spacing-6) + var(--logo-height) / 2);
        transform: translateY(-50%);
        right: 0;
    }

    .header menu {
        display: none;
    }

    body.menu-open .header {
        position: fixed;
        background: var(--white);
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        --text-color: var(--black);
    }

    body.menu-open .header > .container {
        height: 100%;
    }

    body.menu-open .header-content {
        flex-direction: column;
        align-items: stretch;
        height: 100%;
    }

    body.menu-open .header menu {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: center;
        gap: 20px;
    }

    body.menu-open .header menu .button {
        margin-top: 20px;
    }

    body.menu-open .menuButton .top-bun {
        transform: translatey(9px) rotate(45deg);
    }
  
    body.menu-open .menuButton .middle {
        transform: scalex(0);
    }
  
    body.menu-open .menuButton .bottom-bun {
        transform: translatey(-9px) rotate(-45deg);
    }
}


/* Align Center --------------- */

@media screen and (max-width: 767px) {
    section.align-center > .container {
        gap: 32px;
    }
}

@media screen and (min-width: 768px) {
    section.align-center > .container {
        align-items: center;
    }

    section.align-center > .container {
        grid-gap: var(--spacing-16);
    }
}


/* Icon List Block --------------- */

.icon-list .icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    font-family: var(--heading-font-family);
    font-style: var(--heading-font-style);
    font-weight: var(--heading-font-weight);
    padding: 0.7em 0;
}

.icon-list  .icon-list-item:not(:last-child) {
    border-bottom: 1px solid #DED8D8;
}

.icon-list  .icon-list-item img {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.icon-list .icon-list-item p {
    margin: 0;
}


/* Image on Hover Block --------------- */

.image-hover-wrapper {
    display: flex;
    flex-direction: column; 
    grid-gap: 1rem;
}

.image-hover-wrapper .image-container {
    border-radius: var(--rounded);
    overflow: hidden;
    padding-bottom: 84%;
    position: relative;
}

.image-hover-wrapper .image-container img {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}
  
.image-hover-wrapper  .image-container img.active {
    display: block;
}

.image-hover-wrapper .icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    padding: var(--spacing-6);
    border-radius: var(--rounded);
    text-align: left;
}

.image-hover-wrapper .icon-list-item img {
    width: 1.2em;
    height: 1.2em;
    position: relative;
    top: 0.15em;
    flex-shrink: 0;
}
  
.image-hover-wrapper .icon-list-item.active {
    background-color: var(--light);
}
  
@media screen and (min-width: 768px) {
    .image-hover-wrapper {
        display: grid;
        grid-template-columns: 0.4fr 0.6fr;
        grid-gap: 1rem;
        align-items: center;
    }

    .image-hover-wrapper .image-container {
        width: calc(100% + var(--container-padding) + var(--rounded));
    }

    .image-hover-wrapper .icon-list-item {
        padding: var(--spacing-8)
    }
}


/* Info Boxes Block --------------- */

.info-boxes-wrapper {
    margin-top: var(--spacing-16);
    margin-bottom: var(--spacing-20);
    display: grid;
    grid-auto-rows: 1fr;
    gap: 1rem;
}

.info-boxes-wrapper .info-box {
    padding: var(--spacing-6);
    border-radius: var(--rounded);
    background: var(--light);
    color: var(--black);
    display: flex;
    align-items: center;
}

.info-boxes-wrapper .content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-6);
    text-align: left;
}

.info-boxes-wrapper .info-box img {
    width: var(--spacing-12);
    height: auto;
    flex-shrink: 0;
}

.info-boxes-wrapper .info-box p,
.info-boxes-wrapper .info-box h3 {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .info-boxes-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-boxes-wrapper .info-box {
        width: calc(100% / 3 - 2rem / 3);
        min-height: 9rem;
        padding: 32px;
    }
}


/* Contact Form --------------- */

.form-wrapper {
    background-color: var(--light);
    border-radius: var(--rounded);
    padding: var(--spacing-10);
    max-width: var(--container-s);
    width: 100%;
    margin: var(--spacing-16) auto 0 auto;
    --text-color: var(--dark);
    color: var(--text-color);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-wrapper .field {
    margin-bottom: 1.8rem;
}

.form-wrapper .field label,
.form-wrapper .field input,
.form-wrapper .field textarea {
    display: block;
    text-align: left;
    color: var(--dark);
}

.form-wrapper .field input,
.form-wrapper .field textarea {
    width: 100%;
    border: none;
    background-color: var(--white);
    border-radius: 8px;
    padding: 0.8em;
}

.form-wrapper .field label {
    margin-bottom: 8px;
}

.form-wrapper .field input:focus-visible,
.form-wrapper .field textarea:focus-visible {
    outline: var(--black) solid 1px;
    border-radius: 8px;
}

@media screen and (max-width: 767px) {
    .form-wrapper {
        padding: 2rem 1.2rem;
    }
}

/* Section: Metodologia --------------- */

.metodologia > .container {
    padding-top: var(--spacing-36);
    padding-bottom: var(--spacing-36);
    background-image: url("/assets/icons/seed-bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.metodologia::before {
    content: "";
    width: 22%;
    max-width: 300px;
    min-width: 170px;
    background-image: url("/assets/icons/grass.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    aspect-ratio: 300 / 317;
    position: absolute;
    top: 0;
    right: 8%;
    transform: translate(0, -50%) rotate(12deg);
    z-index: 2;
}

@media screen and (max-width: 767px) {
    .metodologia > .container {
        gap: 32px;
        padding-top: var(--spacing-24);
        padding-bottom: var(--spacing-24);
        background-image: url("/assets/icons/seed-bg-vertical.svg");
        background-size: auto 100%;
    }
}

@media screen and (min-width: 768px) {
    .metodologia > .container {
        grid-gap: var(--spacing-16);
    }

    .metodologia .container > .column:first-child {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .metodologia .container > .column:first-child .icon-list {
        margin-top: auto;
    }
}

@media screen and (min-width: 1145px) {
    .metodologia::before {
        transform: translate(0, -62%) rotate(12deg);
    }
}

@media screen and (min-width: 1400px) {
    .metodologia::before {
        transform: translate(0, -75%) rotate(12deg);
    }
}


/* Section: Alunos --------------- */

.alunos::before {
    content: "";
    width: 22%;
    max-width: 300px;
    min-width: 170px;
    background-image: url("/assets/icons/plant.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    aspect-ratio: 317 / 369;
    position: absolute;
    top: 0;
    left: 6%;
    transform: translate(0, -74%) rotate(-17deg);
}

@media screen and (min-width: 768px) {
    .alunos::before {
        left: 4%;
        transform: translate(0, 8%) rotate(-17deg);
    }
}

/* Section: Contactos --------------- */

address {
    font-style: normal;
}