/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --primary-color: #2E8B57;
  --primary-color-light: #3CB371;
  --primary-color-dark: #228B22;
  --secondary-color: #4A90E2;
  --accent-color: #7ED321;
  --text-color: #333333;
  --text-color-light: #666666;
  --text-color-lighter: #999999;
  --white-color: #FFFFFF;
  --light-color: #F8F9FA;
  --border-color: #E9ECEF;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #5BA3F5 100%);

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;
  --title-font: 'Poppins', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== Margins Bottom ==========*/
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /*========== Transitions ==========*/
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--white-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
}

.section {
  padding: 5rem 0 2rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
  position: relative;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section__subtitle {
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*=============== BUTTONS ===============*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white-color);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
}

.btn--outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn--outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
}

.logo-icon svg {
  width: 32px;
  height: 32px;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-color);
}

/*=============== HOME ===============*/
.home {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--mb-1);
}

.home__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  font-size: 1.125rem;
  line-height: 1.7;
}

.home__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  font-family: var(--title-font);
}

.stat__label {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.home__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home__image {
  position: relative;
}

.home__img-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.home__img-wrapper:hover .home__img {
  transform: scale(1.05);
}

.home__img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(46, 139, 87, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
}

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service__card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.service__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1-5);
  font-size: 1.5rem;
  color: var(--white-color);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.service__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.service__link {
  color: var(--primary-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.service__link:hover {
  gap: 0.5rem;
}

/*=============== ABOUT ===============*/
.about__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about__content .section__header {
  text-align: left;
  margin-bottom: var(--mb-2);
}

.about__content .section__title::after {
  left: 0;
  transform: none;
}

.about__text {
  margin-bottom: var(--mb-2);
}

.about__text p {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1);
  line-height: 1.7;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light-color);
  border-radius: 0.5rem;
  transition: var(--transition);
}

.feature:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.feature i {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.feature:hover i {
  color: var(--white-color);
}

/*=============== MELHOR EM CASA ===============*/
.melhor-em-casa {
  background: var(--light-color);
}

.melhor-em-casa__info {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: var(--mb-3);
  box-shadow: 0 5px 20px var(--shadow-color);
}

.melhor-em-casa__info h3 {
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}

.melhor-em-casa__info p {
  color: var(--text-color-light);
  line-height: 1.7;
  margin-bottom: var(--mb-1);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit__card {
  background: var(--white-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
}

.benefit__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit__icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 1.25rem;
  color: var(--white-color);
}

.benefit__card h4 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.benefit__card p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

/*=============== TESTIMONIALS ===============*/
.testimonials {
  background: var(--light-color);
}

.testimonials__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial__card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial__content {
  margin-bottom: var(--mb-1-5);
}

.testimonial__text {
  color: var(--text-color-light);
  font-style: italic;
  line-height: 1.7;
  position: relative;
}

.testimonial__text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: serif;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__img {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
}

.testimonial__info h4 {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.testimonial__info span {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.contact__item:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.contact__icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white-color);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact__item:hover .contact__icon {
  background: var(--white-color);
  color: var(--primary-color);
}

.contact__details h4 {
  margin-bottom: 0.25rem;
}

.contact__details p {
  color: var(--text-color-light);
  transition: var(--transition);
}

.contact__item:hover .contact__details p {
  color: var(--white-color);
}

/*=============== FORM ===============*/
.contact__form {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.form__group {
  margin-bottom: var(--mb-1-5);
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  background: var(--white-color);
}

.form__input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/*=============== FOOTER ===============*/
.footer {
  background: var(--text-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
}

.footer__logo .logo-icon svg path {
  fill: var(--white-color);
}

.footer__description {
  color: #cccccc;
  line-height: 1.6;
}

.footer__links h4,
.footer__services h4,
.footer__contact h4 {
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.footer__links ul,
.footer__services ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a,
.footer__services a {
  color: #cccccc;
  transition: var(--transition);
}

.footer__links a:hover,
.footer__services a:hover {
  color: var(--primary-color-light);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cccccc;
}

.footer__contact-info i {
  color: var(--primary-color-light);
}

.footer__bottom {
  border-top: 1px solid #444;
  padding-top: var(--mb-1);
  text-align: center;
  color: #cccccc;
}

.footer__bottom p {
  margin-bottom: 0.25rem;
}

.footer__bottom i {
  color: var(--accent-color);
}

/*=============== WHATSAPP FLOAT ===============*/
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white-color);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-tooltip);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  }
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-primary);
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  color: var(--white-color);
}

.scrollup:hover {
  background: var(--primary-color-dark);
  opacity: 1;
}

.scrollup__icon {
  font-size: 1.5rem;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-dark);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .home__container,
  .about__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home__image {
    order: -1;
  }

  .home__img {
    height: 400px;
  }

  .home__stats {
    justify-content: center;
  }

  .services__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .benefits__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    z-index: var(--z-fixed);
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .nav__link {
    font-size: var(--h3-font-size);
  }

  .nav__close,
  .nav__toggle {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
  }

  .show-menu {
    right: 0;
  }

  .section {
    padding: 4rem 0 2rem;
  }

  .home {
    padding-top: calc(var(--header-height) + 1rem);
  }

  .home__buttons {
    flex-direction: column;
  }

  .home__stats {
    gap: 1rem;
  }

  .stat {
    flex: 1;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .services__container,
  .testimonials__container {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-fade-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out;
}

