/* =====================================================
   STYLE.CSS - QUIMFAR Landing Page
   Design Minimalista Corporativo - RESPONSIVIDADE OTIMIZADA
   COM ALINHAMENTO PERFEITO DOWNLOAD + CONTATO
   ===================================================== */

/* 1. IMPORTAÇÃO DE FONTES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

/* 2. VARIÁVEIS CSS (Design Tokens) */
:root {
  /* Cores */
  --color-primary: #003D82;
  --color-secondary: #3DBFF2;
  --color-accent: #1C6DD0;
  --color-bg-light: #F8F8F8;
  --color-bg-light-blue: #E8F4F8;
  --color-text-dark: #1A1A1A;
  --color-text-medium: #4A4A4A;
  --color-border: #D9D9D9;
  --color-white: #FFFFFF;
  --color-text-white: #FFFFFF;

  /* Tipografia */
  --font-headline: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Espaçamentos - OTIMIZADOS */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  /* Container */
  --container-max: 1200px;
  --container-padding: 20px;

  /* Sombras */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.15);
  --shadow-deep: 0 16px 40px rgba(0, 0, 0, 0.12);

  /* Transições */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* 3. RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 4. TIPOGRAFIA GLOBAL */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

h1 {
  font-size: 42px;
  font-weight: 800;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  font-size: 15px;
  color: var(--color-text-medium);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

strong {
  font-weight: 700;
  color: var(--color-primary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

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

/* 5. LAYOUT GLOBAL */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-xl) var(--container-padding);
}

.section__title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 32px;
}

.section__title--left {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.section__subtitle {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--color-text-medium);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* 6. COMPONENTES REUTILIZÁVEIS */

/* Botões */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-headline);
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(28, 109, 208, 0.25);
}

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

.btn--primary:hover {
  background-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.35);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

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

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

/* Badges */
.badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
}

/* Formulário */
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--color-text-medium);
  opacity: 0.7;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(28, 109, 208, 0.15);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

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

/* 7. SEÇÕES ESPECÍFICAS */

/* ===== HEADER ===== */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-subtle);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.header__logo {
  height: 45px;
  width: auto;
}

.header__logo-link {
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

/* Navegação Desktop */
.nav-desktop {
  display: none;
  gap: 30px;
  align-items: center;
}

.nav-desktop__link {
  color: var(--color-text-dark);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding-bottom: 6px;
  transition: var(--transition);
}

.nav-desktop__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-desktop__link:hover::after {
  width: 100%;
}

.nav-desktop__link:hover {
  color: var(--color-accent);
}

/* Seletor de Idioma */
.lang-select {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  cursor: pointer;
  color: var(--color-text-dark);
  font-family: var(--font-body);
  transition: var(--transition);
}

.lang-select:hover {
  border-color: var(--color-accent);
}

/* Hamburger Menu */
.hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu Mobile */
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--color-white);
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: var(--shadow-medium);
  z-index: 999;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile__link {
  color: var(--color-text-dark);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.nav-mobile__link:last-child {
  border-bottom: none;
}

.nav-mobile__link:hover {
  color: var(--color-accent);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 80px var(--container-padding);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.15;
  z-index: 1;
}

.hero__watermark {
  width: 400px;
  height: 400px;
  color: var(--color-white);
}

.hero__container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero__badge {
  margin-bottom: var(--spacing-md);
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__title {
  font-size: 44px;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  color: var(--color-white);
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  line-height: 1.8;
}

.hero__cta {
  margin-top: var(--spacing-lg);
}

/* ===== SEÇÃO ABOUT + PROCESSO ===== */
.section--about {
  background-color: var(--color-bg-light);
}

.about__column {
  text-align: left;
}

.about__highlight {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(61, 191, 242, 0.1) 0%, rgba(28, 109, 208, 0.08) 100%);
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.about__subtitle {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 22px;
}

.about__text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.process__column {
  text-align: left;
}

/* Process Cards */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.process-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

.process-card__icon {
  font-size: 32px;
  margin-bottom: var(--spacing-sm);
}

.process-card__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 36px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.06);
  line-height: 1;
  font-family: var(--font-headline);
}

.process-card__title {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.process-card__desc {
  font-size: 14px;
  color: var(--color-text-medium);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== SEÇÃO FORNECEDORES ===== */
.section--suppliers {
  background-color: var(--color-bg-light);
}

.supplier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

.supplier-card {
  background: var(--color-primary);
  border: none;
  border-radius: 14px;
  padding: 32px var(--spacing-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.supplier-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.supplier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, rgba(61, 191, 242, 0.5) 100%);
}

.supplier-card__icon {
  font-size: 44px;
  margin-bottom: var(--spacing-md);
}

.supplier-card__title {
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.supplier-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== SEÇÃO PRODUTOS ===== */
.section--products {
  background-color: var(--color-bg-light-blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

.product-card__icon {
  font-size: 40px;
  margin-bottom: var(--spacing-sm);
}

.product-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* ===== SEÇÃO MERCADOS ===== */
.section--markets {
  background-color: var(--color-bg-light-blue);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: var(--spacing-lg);
}

.market-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  text-align: center;
}

.market-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
}

.market-card__flag {
  height: 28px;
  width: auto;
  margin: 0 auto var(--spacing-sm);
}

.market-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0;
}

/* ===== SEÇÃO DOWNLOAD + CONTATO ===== */
.section--cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--container-padding);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: stretch;
}

/* Download Card */
.download__column {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px var(--spacing-lg);
  box-shadow: var(--shadow-deep);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.download-card__icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.download-card__title {
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.download-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.download-card__btn {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  margin-top: auto;
}

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

/* Contact Form */
.contact__column {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.contact__title {
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 32px var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  height: 100%;
  justify-content: space-between;
}

.contact-form__btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-white);
  padding: var(--spacing-lg) var(--container-padding);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-medium);
  border-top: 1px solid var(--color-border);
}

.footer__text {
  margin-bottom: 0;
}

/* 8. ANIMAÇÕES */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* 9. RESPONSIVIDADE - TABLET (768px+) */
@media (min-width: 768px) {
  /* Global */
  .section {
    padding: 60px var(--container-padding);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  /* Header */
  .header__logo {
    height: 50px;
  }

  .nav-desktop {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 100px var(--container-padding);
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__subtitle {
    font-size: 19px;
  }

  .hero__watermark {
    width: 500px;
    height: 500px;
  }

  /* About Grid */
  .section__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  /* Process Grid */
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Supplier Grid */
  .supplier-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  /* Market Grid */
  .market-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  /* Download + Contato Grid - ALINHAMENTO PERFEITO */
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
  }

  /* Download Card */
  .download-card {
    padding: 50px var(--spacing-lg);
    height: 100%;
  }

  .download-card__title {
    font-size: 28px;
  }

  /* Contact Form */
  .contact-form {
    padding: 40px var(--spacing-lg);
    height: 100%;
  }

  /* Section CTA */
  .section--cta {
    padding: 60px var(--container-padding);
  }
}

/* 10. RESPONSIVIDADE - DESKTOP (1024px+) */
@media (min-width: 1024px) {
  /* Global */
  .section {
    padding: 80px var(--container-padding);
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 26px;
  }

  /* Header */
  .header__logo {
    height: 55px;
  }

  /* Hero */
  .hero {
    padding: 120px var(--container-padding);
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__watermark {
    width: 600px;
    height: 600px;
  }

  /* Process Grid */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  /* Market Grid */
  .market-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  /* Section CTA */
  .section--cta {
    padding: 80px var(--container-padding);
  }
}

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

.overflow-hidden {
  overflow: hidden;
}