/* 
 * GIPE Landing Page - Main Stylesheet
 * Desenvolvido para a landing page do GIPE - Gestor Inteligente de Performance para Farmácias
 */

/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #D93A0E;
  --primary-hover: #B32F0B;
  --secondary-color: #2A3B47;
  --accent-color: #4CAF50;
  --light-bg: #F8F9FA;
  --dark-bg: #2A3B47;
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #FFFFFF;
  --border-color: #E0E0E0;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --warning-color: #FFC107;
  --info-color: #2196F3;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* ===== ACCESSIBILITY ===== */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  z-index: 9999;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Montserrat', sans-serif;
}

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

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

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--secondary-color);
  position: relative;
  transition: var(--transition);
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  bottom: -8px;
}

.hamburger.active {
  background-color: transparent;
}

.hamburger.active:before {
  transform: rotate(45deg);
  top: 0;
}

.hamburger.active:after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  margin-right: 2rem;
}

.nav-menu ul li {
  margin-left: 1.5rem;
}

.nav-menu ul li a {
  color: var(--secondary-color);
  font-weight: 600;
}

.nav-menu ul li a:hover {
  color: var(--primary-color);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 8rem 0 5rem;
  background-color: var(--light-bg);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-image {
  flex: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
  padding: 5rem 0;
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin-bottom: 1.5rem;
}

.benefit-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

/* ===== DEMO SECTION ===== */
.demo {
  padding: 5rem 0;
  background-color: white;
}

.screenshots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-image {
  height: 200px;
  overflow: hidden;
}

.screenshot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-info {
  padding: 1.5rem;
}

/* ===== NATASHA AI SECTION ===== */
.natasha-ai {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.natasha-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.natasha-image {
  flex: 1;
  text-align: center;
}

.natasha-image img {
  max-height: 400px;
  border-radius: 8px;
}

.natasha-info {
  flex: 1;
}

.natasha-features {
  margin: 1.5rem 0;
}

.natasha-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.natasha-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 5rem 0;
  background-color: white;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.testimonial-content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-result {
  font-weight: 700;
  color: var(--primary-color);
}

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

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: white;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-contact {
  text-align: center;
  margin-top: 3rem;
}

.faq-contact p {
  margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  margin-bottom: 2rem;
}

.cta-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-group.checkbox input {
  margin-top: 0.3rem;
}

.form-group.checkbox label {
  font-size: 0.9rem;
  color: var(--text-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-success {
  text-align: center;
  color: var(--text-color);
}

.form-success h3 {
  color: var(--success-color);
}

.cta-benefit {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0 2rem;
  background-color: var(--dark-bg);
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .natasha-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .nav-menu ul li {
    margin-left: 0;
    margin-bottom: 1rem;
  }
  
  .nav-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-buttons a {
    width: 100%;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .benefits-grid,
  .screenshots-container,
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}
