@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0D9488;
  /* Teal 600 */
  --primary-hover: #0F766E;
  --secondary: #0F172A;
  /* Slate 900 */
  --accent: #14B8A6;
  /* Teal 500 */
  --bg-color: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --whatsapp: #25D366;
  --whatsapp-hover: #1c9e4c;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.75rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: white;
  box-shadow: var(--shadow);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #CBD5E1;
}

.top-bar-item a:hover {
  color: white;
}

.top-bar-item i {
  color: var(--accent);
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .top-bar-item {
    font-size: 0.75rem;
    word-break: break-all;
    justify-content: center;
  }
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-main {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at top right);
    transition: all 0.5s ease-in-out;
    gap: 1.5rem;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.25rem;
  }
}

/* Views */
.view {
  display: none;
  min-height: calc(100vh - 400px);
  animation: fadeIn 0.4s ease-in-out;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: white;
  padding: 8rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.hero-title {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }
}

/* Quem Somos Brief */
.about-brief {
  background-color: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .about-img-wrap {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    order: -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 2.5rem 0;
  }
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  padding: 1rem;
}

.about-img-wrap:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .about-content h2 {
    font-size: 1.75rem;
  }

  .about-content {
    padding: 0 0.5rem;
  }
}

.about-content {
  padding: 0;
}

@media (max-width: 768px) {
  .about-content {
    padding: 0 1.5rem !important;
  }
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-content p {
    font-size: 1rem;
    text-align: justify;
  }
}

/* Differentials */
.differentials {
  background-color: var(--bg-color);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.diff-card {
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}

@media (max-width: 768px) {
  .diff-card {
    padding: 1.5rem 1rem;
  }
}

.diff-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.diff-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  transition: var(--transition);
}

.diff-card:hover .diff-icon {
  background-color: var(--primary);
  color: white;
}

.diff-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.diff-card p {
  color: var(--text-muted);
}

/* Carousel */
.clients {
  background-color: var(--surface);
  overflow: hidden;
  padding: 4rem 0;
}

.carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.carousel-track {
  display: inline-flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
  align-items: center;
}

.carousel-wrap:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  width: 150px;
  height: 80px;
  background-color: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.client-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Products Setup Section */
.products-cta {
  background-color: var(--bg-color);
  text-align: center;
}

/* Full Pages: Quem Somos */
.page-header {
  background: var(--secondary);
  color: white;
  padding: 6rem 0 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 4rem 0;
}

.text-card {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
  .page-header {
    padding: 3.5rem 0 2.5rem 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .mission-vision {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .text-card {
    padding: 2rem 1.25rem;
  }
}

/* Page: Products */
.products-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 250px;
  background-color: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.product-info .btn {
  width: 100%;
}

/* Page: Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .contact-grid {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: #0F172A;
  /* Secondary Dark */
  color: white;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo span {
  color: var(--accent);
}

.footer-about {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '→';
  color: var(--primary);
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #94A3B8;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 0.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  font-size: 0.875rem;
}