/* ========================================
   EDITALY - Consultoria em Licitações
   Custom Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
  --navy: #1B3A5C;
  --navy-dark: #0F2440;
  --navy-light: #2A5080;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-dark: #A88A35;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark: #1A1A2E;
  --gradient-navy: linear-gradient(135deg, #0F2440 0%, #1B3A5C 50%, #2A5080 100%);
  --gradient-gold: linear-gradient(135deg, #A88A35 0%, #C9A84C 50%, #D4B96A 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15,36,64,0.95) 0%, rgba(27,58,92,0.85) 100%);
  --shadow-sm: 0 2px 8px rgba(27,58,92,0.08);
  --shadow-md: 0 8px 30px rgba(27,58,92,0.12);
  --shadow-lg: 0 20px 60px rgba(27,58,92,0.18);
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.playfair { font-family: 'Playfair Display', serif; }

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  width: 120px; animation: pulse-logo 1.5s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-editaly {
  background: rgba(15, 36, 64, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.navbar-editaly.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  background: rgba(15, 36, 64, 0.98) !important;
}
.navbar-brand img { height: 50px; transition: var(--transition); }
.navbar-editaly.scrolled .navbar-brand img { height: 40px; }

.navbar-editaly .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 18px !important;
  position: relative; transition: var(--transition);
  letter-spacing: 0.3px;
}
.navbar-editaly .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.navbar-editaly .nav-link:hover { color: var(--gold) !important; }
.navbar-editaly .nav-link:hover::after { transform: scaleX(1); }

.btn-nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important; border: none !important;
  border-radius: 50px !important; padding: 10px 28px !important;
  transition: var(--transition) !important;
  text-transform: uppercase; font-size: 0.85rem !important;
  letter-spacing: 1px;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold) !important;
}

/* ========================================
   HERO
   ======================================== */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: url('../img/hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-particles {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(201,168,76,0.15);
  animation: float-particle 15s infinite ease-in-out;
}
.particle:nth-child(1) { width: 300px; height: 300px; top: -10%; right: -5%; animation-delay: 0s; }
.particle:nth-child(2) { width: 200px; height: 200px; bottom: -10%; left: -5%; animation-delay: -5s; }
.particle:nth-child(3) { width: 150px; height: 150px; top: 40%; right: 20%; animation-delay: -10s; }
@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content { position: relative; z-index: 3; padding: 120px 0 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px; padding: 8px 20px;
  color: var(--gold-light); font-size: 0.85rem;
  font-weight: 600; margin-bottom: 24px;
  animation: fadeInDown 1s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-size: 3.5rem; font-weight: 900;
  color: var(--white); line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-title .text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.25rem; color: rgba(255,255,255,0.75);
  max-width: 550px; margin-bottom: 40px;
  font-weight: 300; line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-buttons { animation: fadeInUp 1s ease 0.6s both; }

.btn-gold {
  background: var(--gradient-gold); color: var(--navy-dark);
  font-weight: 700; border: none; border-radius: 50px;
  padding: 16px 36px; font-size: 1rem;
  transition: var(--transition);
  text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  color: var(--navy-dark);
}
.btn-outline-light-custom {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white); border-radius: 50px;
  padding: 14px 36px; font-size: 1rem;
  font-weight: 600; transition: var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex; gap: 50px; margin-top: 60px;
  animation: fadeInUp 1s ease 0.8s both;
}
.hero-stat { text-align: center; }
.hero-stat .number {
  font-size: 2.5rem; font-weight: 900; color: var(--gold);
  display: block; line-height: 1;
}
.hero-stat .label {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}

/* ========================================
   SECTION GENERAL
   ======================================== */
.section-padding { padding: 100px 0; }
.section-title {
  font-size: 2.5rem; font-weight: 800;
  margin-bottom: 16px; position: relative;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--medium-gray);
  max-width: 600px; margin: 0 auto 60px;
}
.section-line {
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--gradient-gold);
  margin: 0 auto 20px;
}

/* ========================================
   ABOUT
   ======================================== */
.about-section { background: var(--white); }
.about-image-wrapper { position: relative; }
.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; height: 400px; object-fit: cover;
}
.about-badge-card {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gradient-gold);
  color: var(--navy-dark); padding: 20px 28px;
  border-radius: var(--radius);
  font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--shadow-gold);
  text-align: center;
}
.about-badge-card small {
  display: block; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px;
}
.about-text { font-size: 1.05rem; color: #555; line-height: 1.9; }
.about-list { list-style: none; padding: 0; margin-top: 24px; }
.about-list li {
  padding: 8px 0; display: flex; align-items: center; gap: 12px;
  font-weight: 500; color: var(--navy);
}
.about-list li i { color: var(--gold); font-size: 1.2rem; }

/* ========================================
   SERVICES
   ======================================== */
.services-section { background: var(--light-gray); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(27,58,92,0.06);
  height: 100%;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient-gold);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(201,168,76,0.08));
  border-radius: 20px; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-gold);
}
.service-icon i { font-size: 2rem; color: var(--navy); transition: var(--transition); }
.service-card:hover .service-icon i { color: var(--white); }
.service-card h4 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; }
.service-card p { font-size: 0.95rem; color: var(--medium-gray); line-height: 1.7; }

/* ========================================
   DIFFERENTIALS
   ======================================== */
.differentials-section {
  background: var(--gradient-navy);
  position: relative; overflow: hidden;
}
.differentials-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(201,168,76,0.05)' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
}
.diff-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 30px; text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.diff-card:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-5px);
}
.diff-card i { font-size: 2rem; color: var(--gold); margin-bottom: 16px; }
.diff-card h5 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.diff-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-section { background: var(--white); }
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--gold), var(--navy));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: center;
  margin-bottom: 50px; position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient-gold); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; z-index: 2;
  box-shadow: var(--shadow-gold);
}
.timeline-content {
  width: 42%; padding: 30px;
  background: var(--light-gray);
  border-radius: var(--radius);
  transition: var(--transition);
}
.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.timeline-content h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy); }
.timeline-content p { font-size: 0.95rem; color: var(--medium-gray); margin: 0; }

/* ========================================
   PRICING
   ======================================== */
.pricing-section { background: var(--light-gray); }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative; overflow: hidden;
  height: 100%;
}
.pricing-card.featured {
  border-color: var(--gold);
  transform: scale(1.05);
}
.pricing-card.featured::before {
  content: 'MAIS POPULAR'; position: absolute; top: 20px; right: -35px;
  background: var(--gradient-gold); color: var(--navy-dark);
  font-size: 0.7rem; font-weight: 800; padding: 6px 40px;
  transform: rotate(45deg); letter-spacing: 1px;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }

.pricing-name {
  font-size: 1.3rem; font-weight: 800;
  color: var(--navy); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.pricing-price {
  font-size: 2.2rem; font-weight: 900;
  color: var(--gold); margin: 20px 0;
}
.pricing-price small { font-size: 0.9rem; color: var(--medium-gray); font-weight: 400; }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.pricing-features li {
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: #555;
}
.pricing-features li i { color: var(--gold); font-size: 1rem; }

/* ========================================
   CONSULTANT
   ======================================== */
.consultant-section { background: var(--white); }
.consultant-photo {
  width: 280px; height: 280px; border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--gold);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  display: block;
}
.consultant-name { font-size: 1.8rem; margin-top: 24px; color: var(--navy); }
.consultant-role { color: var(--gold); font-weight: 600; font-size: 1.1rem; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-section {
  background: var(--gradient-navy);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; right: -10%; width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.cta-title { font-size: 2.5rem; color: var(--white); font-weight: 800; }
.cta-text { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ========================================
   CONTACT
   ======================================== */
.contact-section { background: var(--light-gray); }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(27,58,92,0.08), rgba(201,168,76,0.08));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon i { color: var(--navy); font-size: 1.2rem; }
.contact-item h5 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--medium-gray); font-size: 0.95rem; }
.contact-item a { color: var(--navy); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--gold); }

.contact-form .form-control {
  border: 2px solid #e9ecef; border-radius: var(--radius);
  padding: 14px 20px; font-size: 0.95rem;
  transition: var(--transition);
  background: var(--light-gray);
}
.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
  background: var(--white);
}
.contact-form textarea { min-height: 140px; resize: none; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--gold); transform: translateX(5px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; margin-top: 40px;
  text-align: center; font-size: 0.85rem;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  margin: 0 5px; transition: var(--transition);
  text-decoration: none; font-size: 1.1rem;
}
.footer-social a:hover {
  background: var(--gold); color: var(--navy-dark);
  transform: translateY(-3px);
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1); color: #fff;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 30px; left: 30px;
  width: 45px; height: 45px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  border: 2px solid var(--gold);
  text-decoration: none; cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 30px; flex-wrap: wrap; }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; transform: translateX(-50%); }
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: column; padding-left: 55px;
  }
  .timeline-content { width: 100%; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-10px); }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-stats { gap: 20px; }
  .hero-stat .number { font-size: 2rem; }
  .section-padding { padding: 60px 0; }
  .about-badge-card { position: static; margin-top: 16px; display: inline-block; }
  .consultant-photo { width: 200px; height: 200px; }
}

/* Counter animation */
.counter { display: inline-block; }
