:root {
  --brown: #420F21;
  --pink: #DD0874;
  --orange: #F08169;
  --beige: #F7EDDC;
  --black: #0F090F;
  --white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Work Sans, sans-serif;
  background-color: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

main {
  margin: 0 auto;
  padding: 20px;
  padding-top: 60px;
  background-color: var(--white);
  color: var(--black);
  max-width: 1024px;
  width: 100%;
}

section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brown);
  font-size: 42px;
  font-family: 'Viaoda Libre', cursive;
  font-weight: normal;
  margin: 0;
}

h2, h3 {
  font-size: 4rem;
  line-height: 4rem;
  margin: 0;
}

p, li, a {
  color: var(--black);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

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

.orange-text {
  color: var(--orange);
}

.brown-text {
  color: var(--brown);
  font-size: 4rem;
  line-height: 4rem;
}

.hero-text .big-header-title {
  width: 70%;
}

.big-header-title {
  font-size: 6rem;
  line-height: 5.5rem;
  font-weight: 400;
}

.hero-subheader {
  font-style: italic;
  font-weight: 200;
  font-size: 1.4rem;
  margin: 0;
}

.hero-subsubheader {
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5em 0 3em;
}

/* Fixed Header */
.fixed-header {
  color: var(--beige);
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.fixed-header nav ul li a {
  color: var(--beige) !important;
}

.fixed-header .nav-container {
  background-color: unset;
}

/* Navigation */
.nav-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: var(--brown);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  transition: .2s ease-in;
}

nav ul li a:hover,
nav ul li a:active {
  color: var(--pink) !important;
}

nav ul li a.active {
  color: var(--pink);
}

nav ul li a.active:after {
  content: '';
  width: 70%;
  height: 2px;
  background-color: var(--brown);
  position: absolute;
  bottom: -10px;
  left: 0;
}

.responsive ul li a {
  color: var(--beige);
}

.hamburger-icon {
  display: none;
  color: var(--brown);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  display: flex;
  height: 100vh;
  padding: 0;
  background-color: var(--brown);
  color: var(--white);
}

.hero-image {
  flex: 1;
  background-image: url('./img/Mariajoaobexiga.jpg');
  background-size: cover;
  background-position: center;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: baseline;
  text-align: left;
  padding: 5% 5% 5vh;
  color: var(--beige);
}

.hero-text p,
.hero-text h1 {
  color: var(--beige);
}

/* Buttons */
.orange-button {
  background-color: var(--orange);
  color: white;
  border: none;
}

.brown-button {
  background-color: white;
  border: 2px solid var(--brown);
  color: var(--brown);
}

.pink-button {
  background-color: var(--pink);
  color: white;
  border: none;
}

.brown-button,
.orange-button,
.pink-button {
  max-width: fit-content;
  width: auto;
  text-align: center;
  display: block;
  position: relative;
  font-family: Work Sans, sans-serif;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  text-decoration: none !important;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.brown-button:before,
.orange-button:before,
.pink-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.brown-button:hover::before,
.orange-button:hover::before,
.pink-button:hover::before {
  transform: translateX(0);
}

.brown-button:before {
  background: linear-gradient(90deg, rgba(66, 15, 33, 0.1), rgba(66, 15, 33, 0.5), rgba(66, 15, 33, 0.1));
}

.health-text .brown-button {
  margin-top: 24px;
}

.boring-pages {
  min-height: calc(100vh - 170px);
}

/* Three Images */
.three-images-section {
  display: flex;
  width: 100%;
  padding: 20px;
}

.three-images-section .image-container {
  flex: 1;
  padding: 10px;
}

.three-images-section .image-container img {
  width: 100%;
  border-radius: 5px;
}

/* Carousel */
.carousel-section {
  padding: 50px 20px 30px;
  background-color: var(--beige);
  text-align: center;
}

.carousel {
  margin: auto;
  max-width: 1024px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  justify-content: space-evenly;
  align-items: center;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 28%;
  margin: 0 10px;
  padding: 20px;
  background-color: var(--brown);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  text-align: left;
  min-width: 200px;
}

.carousel-card p {
  color: var(--white);
  font-style: italic;
}

.carousel-card > p:first-child {
  overflow: hidden;
  max-height: 133px;
  min-height: 133px;
}

.carousel-button {
  color: var(--orange);
  border: none;
  cursor: pointer;
  margin: 10px;
  background-color: var(--beige);
  font-size: 26px;
}

.carousel-button:hover {
  color: var(--pink);
}

/* Footer */
.brown-footer {
  background-color: var(--brown);
  color: white;
  text-align: center;
  padding: 20px 0;
}

.copyright p {
  padding-top: 20px;
  color: var(--beige);
}

.footer-content {
  margin: auto;
  max-width: 1024px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 0 20px;
}

.footer-content p {
  color: var(--white) !important;
}

.social-and-button a {
  display: inline-block;
  vertical-align: middle;
}

.footer-nav li {
  text-align: left;
}

.footer-nav a {
  font-size: 14px;
  line-height: 20px;
  color: var(--beige);
  font-weight: 400;
}

.icon-button {
  color: white;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
  line-height: 35px;
  width: 35px;
}

/* Brown Section */
.brown-section {
  background-color: var(--brown);
  padding: 50px 7%;
}

.brown-section h2 {
  color: var(--beige);
}

.brown-section p {
  color: var(--beige);
  margin-top: 30px;
}

.brown-section-wrap {
  max-width: 720px;
  padding-right: 30%;
}

.cta .brown-button {
  margin-top: 30px;
}

.cta .image-container img {
  width: 60% !important;
  padding-left: 20%;
}

.cta-small-img img {
  max-width: 250px;
}

.cta-small-img h2 {
  text-align: right;
}

/* FAQ */
.faq-section {
  padding: 30px 20px;
  background-color: var(--brown);
  border-radius: 5px;
  color: var(--beige);
}

.faq-section-content {
  margin: auto;
  max-width: 1024px;
}

.faq-section-inverted {
  background-color: unset;
  color: var(--brown);
}

.faq-section-inverted .faq-answer p,
.faq-section-inverted .faq-question {
  color: var(--brown);
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 2px solid var(--orange);
  overflow: hidden;
  transition: border-bottom-color 0.3s ease;
  margin-right: 20%;
}

.faq-item button {
  font-family: 'Viaoda Libre', cursive;
  font-size: 1.4em;
}

.faq-item .arrow-icon::before {
  font-size: 12px;
  padding-left: 8px;
}

.faq-item:hover {
  border-bottom-color: var(--pink);
}

.faq-item::after {
  content: '';
  position: relative;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--orange);
  transform-origin: bottom right;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  display: block;
}

.faq-item:hover::after {
  transform: rotate(-2deg);
}

.faq-question {
  color: var(--beige);
  padding: 15px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background-color: unset;
}

.faq-answer {
  color: var(--beige);
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  color: var(--beige);
}

.faq-answer.active {
  max-height: 500px;
  padding: 15px;
}

/* Contact Form */
.contact-section {
  padding: 20px;
  background-color: #eee;
  border-radius: 5px;
}

form {
  width: 70%;
  max-width: 100%;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  background-color: white;
  position: absolute;
  top: 13px;
  left: 18px;
  color: var(--brown);
  font-style: italic;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 5px;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--orange);
  border-radius: 50px;
  box-sizing: border-box;
  font-size: 16px;
  outline: none;
  background-color: white;
  min-height: 54px;
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%238C98F2'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
  background-size: 12px;
  background-position: calc(100% - 20px) center;
  background-repeat: no-repeat;
  background-color: #fff;
}

.form-group select:focus + label,
.form-group input:focus + label,
.form-group textarea:focus + label {
  top: -12px;
  left: 20px;
  font-size: 14px;
  color: var(--orange);
}

.form-group label.has-value {
  top: -12px;
  left: 20px;
  transform: translateY(0);
  font-size: 14px;
  color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  border-radius: 25px;
}

#formMessage {
  margin-bottom: 12px;
}

#formMessage.error {
  margin-bottom: 20px;
  font-size: 16px;
}

/* About */
.about-first-section {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 30px;
}

.about-first-section .big-header-title {
  margin: 0 0 24px;
  color: var(--brown);
  font-size: 4rem;
  line-height: 4rem;
}

.about-first-section .image-container {
  flex: 5;
}

.about-first-section .image-container img {
  width: 100%;
  border-radius: 5px;
}

.about-first-section .text-container {
  flex: 5;
  min-width: 0;
}

.about-first-section .brown-button {
  margin: 30px 0;
}

/* Health */
.health-section {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.health-section .health-image {
  flex: 1;
  padding-right: 20px;
}

.health-section .health-image img {
  width: 60%;
  height: auto;
}

.health-section .health-image.full img {
  width: 100%;
  height: auto;
}

.health-section .health-title {
  text-align: right;
  line-height: 3rem;
}

.health-section .health-text {
  flex: 1;
  padding: 0 5%;
  min-width: 0;
}

.testemonial-name {
  font-family: 'Viaoda Libre', cursive;
  font-size: 18px;
  text-align: right;
  color: var(--orange) !important;
  font-style: italic;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-text {
    padding: 30px;
  }

  .pink-button {
    font-size: 1.1em;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .brown-section-wrap {
    padding-right: 15%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  main {
    padding: 16px;
    padding-top: 60px;
  }

  section,
  .contact-section,
  .about-first-section,
  .health-section,
  .three-images-section,
  .faq-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-text {
    justify-content: center;
    padding: 24px 20px;
  }

  .footer-nav li {
    text-align: center;
  }

  .cta .image-container img {
    width: 80% !important;
    padding-left: 10%;
  }

  .big-header-title {
    font-size: 3rem;
    line-height: 3rem;
  }

  h2,
  h3,
  .brown-text,
  .about-first-section .big-header-title {
    font-size: 2.4rem;
    line-height: 2.6rem;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-image {
    width: 100%;
    min-height: 60vh;
    background-position: top;
  }

  .hero-text {
    align-items: flex-start;
  }

  .hero-text .big-header-title {
    width: 100%;
    margin: 16px 0;
  }

  .hero-subsubheader {
    margin: 1em 0;
  }

  .pink-button {
    font-size: 1em;
  }

  .hamburger-icon {
    display: block;
  }

  #main-nav {
    display: none;
    background-color: var(--brown);
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  #main-nav ul li {
    display: block;
    text-align: left;
  }

  #main-nav ul li a {
    line-height: 80px;
    display: block;
    padding: 0 25px;
  }

  #main-nav.responsive {
    display: block;
    z-index: 1;
  }

  nav ul li {
    display: block;
    margin: 5px 0;
  }

  .faq-section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .faq-question {
    font-size: 1em;
    padding-left: 0;
    padding-right: 0;
  }

  .faq-item {
    margin-right: 0;
  }

  .faq-answer {
    padding-left: 0;
    padding-right: 0;
  }

  .carousel-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carousel-card {
    flex: 0 0 80%;
    min-width: auto;
  }

  .cta-small-img h2 {
    text-align: left;
  }

  .brown-section {
    padding: 40px 20px;
  }

  .brown-section-wrap {
    padding-right: 0;
  }

  .three-images-section {
    flex-direction: column;
  }

  .three-images-section .image-container {
    padding: 10px 0;
  }

  .health-text ul {
    margin-top: 30px;
  }

  form {
    width: 100%;
  }

  .about-first-section {
    flex-direction: column;
    gap: 20px;
  }

  .about-first-section .image-container {
    padding-right: 0;
    margin-bottom: 0;
  }

  .about-first-section .brown-button {
    margin: 30px 0 0;
  }

  .brown-button,
  .pink-button,
  .orange-button {
    max-width: 100%;
    width: 100%;
  }

  .health-section {
    flex-direction: column;
    gap: 20px;
  }

  .health-section .health-title {
    text-align: left;
  }

  .health-section .health-image {
    padding-right: 0;
    margin-bottom: 0;
    width: 80%;
  }

  .health-section .health-text {
    padding: 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    margin-top: 16px;
  }

  .social-and-button {
    margin-bottom: 10px;
  }

  .icon-button {
    font-size: 20px;
    margin: 0 5px;
  }

  .pink-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}


/* CREDITOS DA CATRAIO */

.site-credit {
    width: 100%;
    text-align: right;
    font-size: 10px;
    color: #999;
    padding: 6px 20px;
    opacity: 0.9;
}

.site-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.site-credit a:hover {
    color: #FFC83F; /* ou cor da marca do site */
}


/* DESKTOP */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 180px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #fff;

    z-index: 9999;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;

    padding: 10px 18px;

    white-space: nowrap;
    text-decoration: none;
}


/* TELEMÓVEL */

@media (max-width: 768px) {

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        display: none;

        position: static;

        width: 100%;
        min-width: 0;

        padding: 0;

        background: transparent;
    }

    /* No mobile cancelamos o hover */
    .dropdown:hover > .dropdown-menu {
        display: none;
    }

    /* Abre apenas quando tem a classe active */
    .dropdown.active > .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 30px;
    }
}


.fixed-header .dropdown-menu {
    background: transparent;
}






.hero-slider {
    display: flex;
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;
}

.hero-slider::-webkit-scrollbar {
    display: none;
}

.hero-slider.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.hero.hero-slide {
    display: flex;

    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;

    margin: 0 !important;
    padding: 0;

    scroll-snap-align: start;
}


@media (max-width: 767px) {

    .hero.hero-slide {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
    }

    .hero-slide .hero-image {
        width: 100%;
        min-height: 60vh;
        flex-shrink: 0;
    }

    .hero-slide .hero-text {
        width: 100%;
    }
}