/* ================================================================
   PÁGINAS DE SEGMENTOS - ALGORIX
   Estilos específicos para: Supermercado, Farmácia, Administradoras, Fintech
   ================================================================ */

/* === HERO SECTION - SEGMENTOS (estrutura similar ao cartao-beneficio) === */
.hero-segment-section {
  background: var(--color-black);
  color: var(--color-white);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-segment-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-segment {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: var(--section-py) 0;
}

.segment-titles {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.segment-titles h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  white-space: nowrap;
}

/* Imagem do cartão */
.segment-image-wrap {
  display: flex;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
}

.segment-hero-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* === INTRODUÇÃO - SEGMENTOS === */
.segment-intro-section {
  background: var(--color-white);
  padding: var(--section-py) 0;
  width: 100%;
}

.segment-intro-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.segment-intro-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.segment-intro-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  max-width: none;
}

.segment-intro-text b,
.segment-intro-text strong {
  font-weight: 600;
  color: var(--color-black);
}

/* === POR QUE TER - SEGMENTOS === */
.segment-why-section {
  background: var(--color-black);
  padding: var(--section-py) 0;
  color: var(--color-white);
  width: 100%;
}

.segment-why-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.segment-why-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.segment-why-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 2rem;
  text-align: left;
}

.segment-why-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-border);
  text-align: left;
  margin-bottom: 1rem;
}

.segment-why-text:last-child {
  margin-bottom: 0;
}

.segment-why-text b,
.segment-why-text strong {
  font-weight: 600;
  color: var(--color-white);
}

/* === BENEFÍCIOS - SEGMENTOS (SEM hover transform) === */
.segment-benefits-section {
  background: var(--color-white);
  padding: var(--section-py) 0;
  width: 100%;
}

.segment-benefits-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.segment-benefits-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 3rem;
  text-align: center;
}

.segment-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.segment-benefit-card {
  background: var(--color-white);
  padding: 0;
  border-radius: var(--radius-md);
  border: 2px solid var(--brand-orange);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  /* SEM hover transform */
}

.segment-benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  color: var(--color-black);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: -0.03em;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-benefit-content {
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.segment-benefit-content .p2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.5;
}

.segment-benefit-content .p2 b,
.segment-benefit-content .p2 strong {
  color: var(--color-black);
  font-weight: 600;
}

/* === SOLUÇÕES - SEGMENTOS (SEM hover transform, com botão estilo btn-primary) === */
.segment-solutions-section {
  background: var(--color-black);
  padding: var(--section-py) 0;
  color: var(--color-white);
  width: 100%;
}

.segment-solutions-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.segment-solutions-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 3rem;
  text-align: center;
}

.segment-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.segment-solution-card {
  background: var(--color-black);
  padding: 0;
  border-radius: var(--radius-md);
  border: 2px solid var(--brand-green);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  /* SEM hover transform */
}

.segment-solution-card.card-green {
  border-color: var(--brand-green);
}

.segment-solution-card.card-blue {
  border-color: var(--brand-blue);
}

.segment-solution-card.card-orange {
  border-color: var(--brand-orange);
}

.segment-solution-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: -0.03em;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-solution-content {
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
}

.segment-solution-content .p2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-border);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.segment-solution-content .p2 b,
.segment-solution-content .p2 strong {
  color: var(--color-white);
  font-weight: 600;
}

/* Botão "Saiba Mais" - estilo similar ao btn-primary */
.btn-segment-secondary {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: var(--brand-orange);
  color: var(--color-black);
  padding: 10px 30px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(255, 106, 0, 0.2);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-top: auto;
}

.btn-segment-secondary::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 0.5s ease;
}

.btn-segment-secondary:hover {
  background: var(--brand-orange-700);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 106, 0, 0.3);
}

.btn-segment-secondary:hover::before {
  left: 100%;
}

.btn-segment-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 106, 0, 0.2);
}

/* === FUNCIONALIDADES - SEGMENTOS === */
.segment-features-section {
  background: var(--color-white);
  padding: var(--section-py) 0;
  width: 100%;
}

.segment-features-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.segment-features-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 3rem;
  text-align: center;
}

.segment-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.segment-features-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.segment-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.segment-feature-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-1);
}

.segment-feature-icon {
  font-size: 2.5rem;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.segment-feature-text h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.segment-feature-text .p2 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* === CTA - SEGMENTOS (texto à esquerda, como nas outras páginas) === */
.cta-segment-section {
  background: var(--color-white);
  padding: var(--section-py) 0;
  width: 100%;
}

.cta-segment-section .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-segment-content {
  max-width: 1400px;
  margin: 0 auto;
}

.cta-segment-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 2rem;
  text-align: left;
}

.cta-segment-text {
  text-align: left;
  margin-bottom: 2rem;
}

.cta-segment-text .p2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-segment-text .p2 b,
.cta-segment-text .p2 strong {
  color: var(--color-black);
  font-weight: 600;
}

.cta-segment-list {
  list-style: disc;
  margin: 1.5rem 0 1.5rem 2rem;
  padding: 0;
}

.cta-segment-list li {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.cta-segment-list li::marker {
  color: var(--brand-orange);
}

.cta-segment-divider {
  height: 1px;
  background: var(--color-black);
  width: 100%;
  margin: 2rem 0;
  opacity: 0.2;
}

.cta-segment-footer {
  text-align: left;
  margin-bottom: 3rem;
}

.cta-segment-footer p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-style: italic;
}

.cta-segment-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* === FOOTER - Selo Sectigo na coluna Contato === */
.footer-seal-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* === RESPONSIVO - SEGMENTOS === */

/* Tablet */
@media (max-width: 1024px) {
  .hero-segment {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .segment-titles {
    order: 2;
    align-items: center;
  }
  
  .segment-titles h1 {
    white-space: normal;
  }
  
  .segment-image-wrap {
    order: 1;
  }
  
  .segment-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .segment-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .segment-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-segment-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .segment-titles h1 {
    font-size: 2.5rem;
  }
  
  .segment-hero-image {
    max-width: 100%;
  }
  
  .segment-benefits-grid,
  .segment-solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .segment-benefit-card,
  .segment-solution-card {
    min-height: auto;
  }
  
  .segment-why-title,
  .segment-benefits-title,
  .segment-solutions-title,
  .segment-features-title,
  .cta-segment-title {
    font-size: 1.8rem;
  }
  
  .segment-feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }
  
  .segment-feature-icon {
    font-size: 2rem;
  }
  
  .btn-segment-secondary {
    width: auto;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .segment-titles h1 {
    font-size: 2rem;
  }
  
  .segment-benefit-card h3,
  .segment-solution-card h3 {
    font-size: 1.1rem;
    min-height: auto;
    padding: 1rem;
  }
  
  .segment-benefit-content,
  .segment-solution-content {
    padding: 1rem;
  }
}