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

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

  /* ===== Colors ===== */
  --first-color: #dc2626;
  --first-color-alt: #b91c1c;
  --first-color-light: #fecaca;
  --title-color: #1f2937;
  --text-color: #4b5563;
  --text-color-light: #6b7280;
  --body-color: #ffffff;
  --container-color: #ffffff;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --dark-color: #111827;
  --dark-color-alt: #1f2937;

  /* ===== Font and Typography ===== */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.875rem;
  --h3-font-size: 1.5rem;
  --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;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.875rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --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 {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  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__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--first-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: box-shadow 0.3s ease;
}

.header.scroll-header {
  box-shadow: 0 2px 20px var(--shadow-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;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.nav__logo-img {
  width: 80px;
  height: auto;
  border-radius: 50%;
}

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

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

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

.nav__link:hover,
.nav__link.active-link {
  color: var(--first-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--first-color);
  transition: width 0.3s ease;
}

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

.nav__toggle,
.nav__close {
  display: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/trocaoleo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero__container {
  padding-top: var(--header-height);
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  animation: fadeInUp 1s ease;
  color: white;
}

.hero__title-accent {
  color: var(--first-color);
}

.hero__description {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2-5);
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__button {
  font-size: var(--normal-font-size);
  animation: fadeInUp 1s ease 0.4s both;
}

/* ===== SOBRE ===== */
.sobre__container {
  gap: 3rem;
}

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

.sobre__image {
  position: relative;
}

.sobre__img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 32px var(--shadow-color);
}

.sobre__data {
  padding-left: 1rem;
}

.sobre__description {
  margin-bottom: var(--mb-1-5);
  text-align: justify;
}

.sobre__info {
  display: grid;
  gap: 1.5rem;
  margin-top: var(--mb-2);
}

.sobre__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sobre__info-icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: 0.25rem;
}

.sobre__info-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}

.sobre__info-description {
  color: var(--text-color-light);
}

/* ===== SERVIÇOS ===== */
.servicos {
  background-color: #f9fafb;
}

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

.servicos__card {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicos__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.servicos__card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 2rem;
  color: white;
}

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

.servicos__card-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== LOCALIZAÇÃO ===== */
.localizacao__content {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.localizacao__info {
  display: grid;
  gap: 2rem;
}

.localizacao__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.localizacao__info-icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: 0.25rem;
}

.localizacao__info-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: var(--title-color);
}

.localizacao__info-description {
  color: var(--text-color);
  line-height: 1.6;
}

.localizacao__info-description a {
  color: var(--first-color);
  transition: color 0.3s ease;
}

.localizacao__info-description a:hover {
  color: var(--first-color-alt);
}

.localizacao__map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.localizacao__map-iframe {
  border-radius: 1rem;
}

/* ===== CONTATO ===== */
.contato {
  background-color: #f9fafb;
}

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

.contato__info {
  display: grid;
  gap: 2rem;
}

.contato__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--container-color);
  border-radius: 1rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s ease;
}

.contato__info-item:hover {
  transform: translateY(-4px);
}

.contato__info-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.contato__info-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--title-color);
}

.contato__info-description a {
  color: var(--first-color);
  transition: color 0.3s ease;
}

.contato__info-description a:hover {
  color: var(--first-color-alt);
}

.contato__form {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px var(--shadow-color);
}

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

.contato__form-input,
.contato__form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.contato__form-input:focus,
.contato__form-textarea:focus {
  outline: none;
  border-color: var(--first-color);
}

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

.contato__form-button {
  width: 100%;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  color: white;
  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;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer__logo-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

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

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

.footer__list {
  display: grid;
  gap: 0.5rem;
}

.footer__link {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
}

.footer__contact-item i {
  color: var(--first-color);
}

.footer__contact-item a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer__contact-item a:hover {
  color: var(--first-color);
}

.footer__social-links {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}

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

.footer__copy {
  color: #9ca3af;
  font-size: var(--small-font-size);
}

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

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

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: 100px;
  background-color: var(--first-color);
  opacity: 0.8;
  padding: 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: all 0.3s ease;
  visibility: hidden;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}

.scrollup__icon {
  font-size: 1.5rem;
  color: white;
}

.show-scroll {
  visibility: visible;
  bottom: 100px;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

  .sobre__content,
  .localizacao__content,
  .contato__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .servicos__content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 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(--body-color);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
  }

  .nav__menu.show-menu {
    right: 0;
  }

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

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

  .nav__close,
  .nav__toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero__title {
    font-size: var(--h1-font-size);
  }

  .hero__description {
    font-size: var(--normal-font-size);
  }

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

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

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

  .hero__title {
    font-size: 2rem;
  }

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

  .servicos__card {
    padding: 1.5rem;
  }

  .contato__form {
    padding: 1.5rem;
  }

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

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

  .hero__title {
    font-size: 1.75rem;
  }

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

