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

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Adaptado para Contect (azul marinho e cinza) */
  --primary-color: #2C3E7E;
  --primary-light: #3D5199;
  --primary-dark: #1E2B5C;
  --secondary-color: #6C757D;
  --accent-color: #2C3E7E;
  --text-color: #2C3E50;
  --text-light: #6C757D;
  --white-color: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-color: #DEE2E6;
  --shadow-light: rgba(44, 62, 126, 0.1);
  --shadow-medium: rgba(44, 62, 126, 0.15);
  --shadow-dark: rgba(44, 62, 126, 0.2);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #495057 100%);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --h1-font-size: clamp(2rem, 5vw, 3.5rem);
  --h2-font-size: clamp(1.75rem, 4vw, 2.5rem);
  --h3-font-size: clamp(1.25rem, 3vw, 1.75rem);
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --header-height: 4.5rem;
  --section-padding: 5rem 0;
  --container-margin: 1.5rem;
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--normal-font-size);
  font-weight: var(--font-weight-regular);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white-color);
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-margin);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: var(--section-padding);
}

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

.section__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--mb-0-5);
  position: relative;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-medium);
  text-align: center;
  transition: all var(--transition-medium);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white-color);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

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

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

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

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

.header.scroll-header {
  box-shadow: 0 2px 10px var(--shadow-light);
}

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

.nav__logo .logo-img {
  height: 2.5rem;
  width: auto;
}

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

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

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

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

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23DEE2E6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.hero__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.1;
}

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

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

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

.hero__image {
  position: relative;
}

.hero__img-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-dark);
  background: var(--gradient-primary);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__placeholder {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.3);
}

.hero__img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

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

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--white-color);
}

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

.about__img-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 30px var(--shadow-dark);
  background: var(--gradient-primary);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__placeholder {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.3);
}

.about__img {
  width: 100%;
  height: auto;
  filter: grayscale(20%);
  transition: all var(--transition-slow);
}

.about__img-wrapper:hover .about__img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

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

.about__description {
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.about__values-title {
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}

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

.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--mb-1);
  color: var(--text-light);
}

.credential i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-dark);
}

.stat__icon {
  display: block;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-0-5);
}

.stat__text {
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-weight-medium);
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--light-gray);
}

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

.service__card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-medium);
  border-color: var(--primary-color);
}

.service__icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1-5);
  font-size: 1.75rem;
  color: var(--white-color);
  transition: transform var(--transition-medium);
}

.service__card:hover .service__icon {
  transform: scale(1.1) rotate(5deg);
}

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

.service__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--white-color);
}

.contact__content {
  max-width: 900px;
  margin: 0 auto;
}

.contact__description {
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--mb-3);
  font-size: 1.1rem;
}

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

.contact__card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

.contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
  border-color: var(--primary-color);
}

.contact__card-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 1.75rem;
  color: var(--white-color);
}

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

.contact__card-text {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--mb-0-5);
}

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

.contact__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  margin-top: var(--mb-1);
  transition: gap var(--transition-fast);
}

.contact__card-link:hover {
  gap: 0.75rem;
}

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

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

.footer__logo {
  height: 3rem;
  width: auto;
  margin-bottom: var(--mb-1);
  filter: brightness(0) invert(1);
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer__link:hover {
  color: var(--white-color);
  transform: translateX(5px);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--mb-0-5);
}

.footer__contact-item i {
  font-size: 1.25rem;
  color: var(--white-color);
}

.footer__bottom {
  padding-top: var(--mb-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--small-font-size);
}

.footer__developer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--small-font-size);
}

.footer__developer-link {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.footer__developer-link:hover {
  transform: scale(1.05);
}

.footer__developer-logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

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

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
  }
}

/* ===== SCROLL UP BUTTON ===== */
.scroll-up {
  position: fixed;
  bottom: 2rem;
  right: 6.5rem;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white-color);
  box-shadow: 0 4px 15px var(--shadow-medium);
  z-index: var(--z-tooltip);
  transition: all var(--transition-medium);
  opacity: 0;
  visibility: hidden;
}

.scroll-up.show-scroll {
  opacity: 1;
  visibility: visible;
}

.scroll-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white-color);
    box-shadow: -2px 0 10px var(--shadow-dark);
    padding: 4rem 2rem;
    transition: right var(--transition-medium);
    z-index: var(--z-fixed);
  }

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

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

  .nav__link::after {
    bottom: -0.25rem;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__actions .btn {
    display: none;
  }

  .hero__container,
  .about__container {
    grid-template-columns: 1fr;
  }

  .hero__image,
  .about__image {
    order: -1;
  }

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

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

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

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-up {
    bottom: 6rem;
    right: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --section-padding: 3rem 0;
  }

  .hero__buttons {
    flex-direction: column;
  }

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

  .about__stats {
    gap: 1rem;
  }

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

/* ===== SCROLL REVEAL ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
