*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    line-height: 1.6;
    scroll-behavior: smooth;

    --bg: oklch(95.815% 0.00011 271.152);
    --primary: oklch(35.744% 0.12152 256.391);
    --text: oklch(20.019% 0.00002 271.152);

    background-color: var(--bg, );
    color: var(--text);
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* HEADER */
.site-header {
    background-color: var(--primary);
    padding: 1rem 2rem;

    .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* LOGO */
    .logo {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
    }

    .hamburger {
        display: none;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .container_nav {
        ul {
            list-style: none;
            display: flex;
            gap: 2rem;
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
            font-weight: 500;
            color: var(--bg);
            position: relative;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -0.3rem;
                width: 100%;
                height: 2px;
                background: currentColor;
                transform: scaleX(0);
                transition: 0.2s;
            }

            &:hover::after,
            &.active::after {
                transform: scaleX(1);
            }
        }

        &.show {
            display: block;
        }
    }

    @media (max-width: 600px) {
        .hamburger {
            display: block;
        }

        .container_nav {
            position: absolute;
            top: 90px;
            right: 0;
            background: var(--primary);
            width: 100%;
            display: none;
            text-align: center;
            box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);

            ul {
                flex-direction: column;
                padding: 1rem 0;
                gap: 1rem;
            }
        }
    }
}

/* ACTIVE PAGE */
nav a.active {
    font-weight: 700;
}

nav a.active::after {
    transform: scaleX(1);
}

/* MAIN */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;

    max-width: 80rem;
    margin-inline: auto;
    padding: 2.5rem 1rem;

    img {
        max-width: 100%;
        height: auto;
        border-radius: 0.75rem;
        box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        text-align: center;
    }

    .row img {
        max-width: 90%;
    }
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* CARDS */
ul.cards {

    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    justify-content: center;

    li {

        border-radius: 0.5rem;
        position: relative;
        flex-basis: 18rem;
        flex-shrink: 1;
        flex-grow: 1;
        flex: 0 1 18rem;

        display: flex;
        flex-direction: column;

        box-shadow: 0 0 .3rem oklch(30.104% 0.02209 251.301), 0 0 .3rem oklch(30.104% 0.02209 251.301);

        .content {
            padding: 0 1rem 1rem 1rem;
        }

        img {

            border-radius: 0.5rem;
            max-height: 180px;

            width: 100%;
            order: -1;

            box-shadow: 0 0 .3rem oklch(30.104% 0.02209 251.301), 0 0 .3rem oklch(30.104% 0.02209 251.301);
        }
    }

    .overlay-link {
        position: absolute;
        inset: 0;

        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;


        transition: background-color .2s ease-in-out;

        a:hover,
        :focus-visible {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 0.6rem 1.5rem;
            background-color: oklch(0.93 0 0);
        }

    }

    a:not(.overlay-link) {
        position: static;
        z-index: 1;

    }
}

.content {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .cards ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .cards ul {
        grid-template-columns: 1fr;
    }
}

/* SOCIALS HOME PAGE */
.socials {
    margin: 4rem 0;
    text-align: center;

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;

        display: flex;
        justify-content: center;
        gap: 2rem;
    }


    li {
        display: flex;
    }

    a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 4rem;
        height: 4rem;

        border-radius: 50%;
        background-color: oklch(0.97 0 0);
        box-shadow: 0 0.3rem 1rem oklch(30.104% 0.02209 251.301);

        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background-color 0.25s ease;
    }

    a:hover,
    :focus-visible {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 0.6rem 1.5rem;
        background-color: oklch(0.93 0 0);
    }

    img {
        width: 3rem;
        height: 3rem;
        object-fit: contain;
    }
}

.button a {
    display: inline-block;
    padding: 1.25rem;

    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;

    border-radius: 0.375rem;
}

/* CONTACT */
.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: 'Inter', sans-serif;

  h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    label {
      font-weight: 500;
      margin-bottom: 0.3rem;
      color: #333;
    }

    input[type="text"],
    input[type="password"],
    select,
    textarea {
      padding: 0.6rem 0.8rem;
      border: 1px solid #ccc;
      border-radius: 0.5rem;
      font-size: 1rem;
      transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

      &:focus {
        border-color: #2c3e50;
        box-shadow: 0 0 0.3rem rgba(44, 62, 80, 0.3);
        outline: none;
      }
    }

    textarea {
      resize: vertical;
      min-height: 100px;
    }
  }

  fieldset {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;

    legend {
      font-weight: 600;
      padding: 0 0.5rem;
    }

    .form-option {
      display: flex;
      align-items: center;
      gap: 0.5rem;

      input[type="radio"],
      input[type="checkbox"] {
        transform: scale(1.1);
        cursor: pointer;
      }

      label {
        margin: 0;
      }
    }
  }

  .submit-btn {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;

    &:hover {
      background-color: #34495e;
      transform: translateY(-2px);
    }
  }
}

.message {
	font-size: 1.4rem;
}
.message.error {
	color: #b90e0a;
}


/* Responsive */
@media (max-width: 600px) {
  .contact-form {
    padding: 1.5rem;
  }
}



/* FOOTER */
footer {
    margin-top: 4rem;
    padding: 1.5rem 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    max-width: 80rem;
    margin-inline: auto;

    p {
        margin: 0;
        font-size: 0.800rem;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        display: flex;
        gap: 1rem;
    }

    a {
        display: inline-flex;
        align-items: center;
    }

    img {
        width: 40px;
        height: 40px;
        object-fit: contain;

        opacity: 0.8;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
}