/* ============ Reset & base ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Design tokens ============ */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 8%;

  --primary: 0 85% 50%;
  --primary-foreground: 0 0% 100%;

  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 8%;

  --muted-foreground: 0 0% 45%;

  --accent: 0 85% 42%;

  --border: 0 0% 90%;

  --radius: 0.5rem;

  --gradient-hero: linear-gradient(135deg, hsl(0 85% 50%) 0%, hsl(0 85% 38%) 100%);

  --shadow-md: 0 8px 24px -4px hsl(0 0% 0% / 0.12);
  --shadow-lg: 0 16px 48px -8px hsl(0 0% 0% / 0.16);
  --shadow-red: 0 8px 24px -4px hsl(0 85% 50% / 0.25);
}

/* ============ Layout helpers ============ */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-block;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background: hsl(var(--primary));
  border-radius: 9999px;
  margin: 0 auto;
}

.section-lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin: 1.5rem auto 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: hsl(var(--accent));
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background: #fff;
  color: #111827;
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background: #f3f4f6;
}

.btn:hover {
  transform: scale(1.05);
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background));
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo img {
  height: 3rem;
  width: auto;
}

@media (min-width: 768px) {
  .nav-logo img {
    height: 3.5rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-link {
  font-weight: 500;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.nav-cta {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-red);
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: hsl(var(--accent));
}

.nav-toggle {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  line-height: 0;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-mobile.is-open {
  max-height: 24rem;
  padding-bottom: 1.5rem;
}

.nav-mobile .nav-link {
  padding: 0.5rem 0;
  text-align: left;
}

.nav-mobile .nav-cta {
  text-align: center;
  padding: 0.75rem 1.5rem;
}

@media (min-width: 1100px) {
  .nav-mobile {
    display: none;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  height: 6rem;
  width: auto;
  margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
  .hero-logo {
    height: 8rem;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    height: 10rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .hero-stat-number {
    font-size: 2.25rem;
  }
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============ Sections shared ============ */
.section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-overlay {
  position: absolute;
  inset: 0;
}

.section-inner {
  position: relative;
  z-index: 10;
}

/* About */
#sobre .section-bg {
  background-image: url('../images/about-bg.jpg');
}

#sobre .section-overlay {
  background: hsl(var(--background) / 0.9);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-image-wrap {
  position: relative;
  order: 2;
}

@media (min-width: 1024px) {
  .about-image-wrap {
    order: 1;
  }
}

.about-image-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-frame:hover img {
  transform: scale(1.05);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.about-decor {
  position: absolute;
  border-radius: 1rem;
  z-index: -1;
}

.about-decor-1 {
  bottom: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  background: hsl(var(--primary) / 0.2);
}

.about-decor-2 {
  top: -1rem;
  left: -1rem;
  width: 4rem;
  height: 4rem;
  background: hsl(var(--primary) / 0.1);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  order: 1;
}

@media (min-width: 1024px) {
  .about-text {
    order: 2;
  }
}

.about-text p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.mv-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mv-card {
  background: hsl(var(--secondary));
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid hsl(var(--primary));
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.mv-card h3 svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.mv-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.values-panel {
  background: hsl(var(--foreground));
  border-radius: 1.5rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .values-panel {
    padding: 3rem;
  }
}

.values-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--background));
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .values-panel h3 {
    font-size: 1.875rem;
  }
}

.values-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: hsl(var(--background) / 0.1);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  background: hsl(var(--background) / 0.2);
  transform: translateY(-5px) scale(1.05);
}

.value-card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
  margin: 0 auto 1rem;
  transition: transform 0.5s ease;
}

.value-card:hover svg {
  transform: rotate(360deg);
}

.value-card p {
  color: hsl(var(--background));
  font-weight: 500;
}

/* Market / Atuação */
#atuacao .section-bg {
  background-image: url('../images/market-bg.jpg');
}

#atuacao .section-overlay {
  background: hsl(var(--secondary) / 0.85);
}

.market-banner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.market-banner img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.7s ease;
}

@media (min-width: 768px) {
  .market-banner img {
    height: 20rem;
  }
}

.market-banner:hover img {
  transform: scale(1.1);
}

.market-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  align-items: center;
}

.market-banner-text {
  padding: 2rem;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .market-banner-text {
    padding: 3rem;
  }
}

.market-banner-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .market-banner-text h3 {
    font-size: 1.875rem;
  }
}

.market-banner-text p {
  color: rgba(255, 255, 255, 0.9);
}

.promo-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 3rem;
  max-width: 32rem;
  transition: transform 0.3s ease;
}

.promo-image:hover {
  transform: scale(1.03) translateY(-5px);
}

.showcase-cta {
  background: hsl(var(--background));
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .showcase-cta {
    padding: 3rem;
  }
}

.showcase-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .showcase-cta-inner {
    flex-direction: row;
    text-align: left;
  }
}

.showcase-icon {
  width: 5rem;
  height: 5rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .showcase-icon {
    width: 6rem;
    height: 6rem;
  }
}

.showcase-cta:hover .showcase-icon {
  transform: rotate(12deg) scale(1.1);
}

.showcase-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .showcase-icon svg {
    width: 3rem;
    height: 3rem;
  }
}

.showcase-text {
  flex: 1 1 0%;
}

.showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .showcase-text h3 {
    font-size: 1.875rem;
  }
}

.showcase-text p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 36rem;
}

.coverage-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

@media (min-width: 768px) {
  .coverage-panel {
    padding: 3rem;
  }
}

.coverage-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.coverage-heading svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.coverage-heading h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .coverage-heading h3 {
    font-size: 1.875rem;
  }
}

.coverage-panel p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .coverage-panel p {
    font-size: 1.25rem;
  }
}

/* Contact */
#contato .section-bg {
  background-image: url('../images/contact-bg.jpg');
}

#contato .section-overlay {
  background: hsl(var(--background) / 0.95);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  background: hsl(var(--secondary));
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px) scale(1.03);
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background-color 0.3s ease, transform 0.5s ease;
}

.contact-card:hover .contact-icon {
  background: hsl(var(--primary) / 0.2);
  transform: rotate(360deg);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.contact-card h3 {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.contact-card a {
  color: hsl(var(--primary));
}

.contact-card a:hover {
  text-decoration: underline;
}

.social-panel {
  background: hsl(var(--foreground));
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .social-panel {
    padding: 3rem;
    flex-direction: row;
    text-align: left;
  }
}

.social-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--background));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .social-panel h3 {
    font-size: 1.875rem;
  }
}

.social-panel > div p {
  color: hsl(var(--background) / 0.7);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: scale(1.05);
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.footer-about p {
  color: hsl(var(--background) / 0.7);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-heading {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

.footer-nav a {
  color: hsl(var(--background) / 0.7);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: hsl(var(--primary));
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact a,
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--background) / 0.7);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-contact-item {
  align-items: flex-start;
}

.footer-contact a:hover {
  color: hsl(var(--primary));
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-contact-item svg {
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p:first-child {
  color: hsl(var(--background) / 0.5);
  font-size: 0.875rem;
}

.footer-bottom p:last-child {
  color: hsl(var(--background) / 0.4);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ============ WhatsApp float button ============ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #25d366;
  color: #fff;
  padding: 1rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease;
  display: inline-flex;
}

.whatsapp-float:hover {
  background: #20bd5a;
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Vitrine page ============ */
html.vitrine-page,
body.vitrine-page {
  height: 100%;
  overflow: hidden;
}

.vitrine-main {
  padding-top: 5rem;
  height: calc(100vh - 80px - 63px);
}

.vitrine-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
