/* ============================================================
   MidiaInBox — style.css
   Palette: Navy #1a2a5e | Orange #f47920 | White #fff
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a5c2a;
  --navy-dark:  #0d3318;
  --navy-light: #246b35;
  --orange:     #6abf3a;
  --orange-dark:#52a028;
  --white:      #ffffff;
  --off-white:  #f4f9f5;
  --gray-100:   #e6f2ea;
  --gray-300:   #b8d4be;
  --gray-600:   #4a6652;
  --text:       #182e1f;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(26,42,94,.12);
  --shadow-lg:  0 12px 48px rgba(26,42,94,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(244,121,32,.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 620px;
  margin-bottom: 48px;
  text-align: center;
  margin-inline: auto;
}

.highlight { color: var(--orange); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(244,121,32,.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,121,32,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-large { padding: 18px 42px; font-size: 1.05rem; }
.btn-full  { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  transition: var(--transition);
}

.site-header.scrolled { background: var(--navy-dark); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 72px; width: auto; max-width: 400px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links li a {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
  background: var(--orange);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 30%; left: 40%; opacity: .04; }

.hero > .container,
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-content { flex: 1; max-width: 620px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--orange);
  background: rgba(244,121,32,.12);
  border: 1px solid rgba(244,121,32,.3);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInDown .6s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 24px;
  animation: fadeInUp .7s ease both .1s;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp .7s ease both .2s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp .7s ease both .3s;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp .7s ease both .4s;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--orange); }
.stat-label  { font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

.hero-image-wrap {
  flex: 0 0 auto;
  animation: fadeInRight .9s ease both .3s;
}
.hero-img { max-width: 480px; filter: drop-shadow(0 20px 48px rgba(0,0,0,.3)); }

/* ============================================================
   SOBRE
   ============================================================ */
.section-sobre {
  padding: 96px 0;
  background: var(--white);
  text-align: center;
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.sobre-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sobre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(244,121,32,.2);
}
.sobre-icon { font-size: 2.4rem; margin-bottom: 16px; }
.sobre-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.sobre-card p  { font-size: .95rem; color: var(--gray-600); }

/* ============================================================
   GALERIA
   ============================================================ */
.section-galeria {
  padding: 80px 0;
  background: var(--off-white);
  text-align: center;
}

.galeria-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.galeria-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.galeria-item:hover { transform: scale(1.01); box-shadow: var(--shadow-lg); }
.galeria-item img { width: 100%; object-fit: cover; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.section-servicos {
  padding: 96px 0;
  background: var(--white);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.servico-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.servico-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.servico-card:hover::before { transform: scaleX(1); }
.servico-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.servico-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(244,121,32,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.servico-icon { font-size: 1.8rem; }
.servico-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.servico-card p  { font-size: .95rem; color: var(--gray-600); margin-bottom: 20px; }
.servico-link { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--orange); transition: var(--transition); }
.servico-link:hover { color: var(--orange-dark); letter-spacing: .02em; }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.section-como-funciona {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}
.section-como-funciona .section-title { color: var(--white); }
.section-como-funciona .section-tag  { color: var(--orange); }

.steps-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 0 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--orange);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(244,121,32,.4);
}

.step-body h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.step-body p  { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: rgba(255,255,255,.2);
  align-self: 45px;
  margin-top: 29px;
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.section-diferenciais {
  padding: 96px 0;
  background: var(--off-white);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.diferencial-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(26,42,94,.06);
  transition: var(--transition);
}
.diferencial-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.dif-check {
  flex: 0 0 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.diferencial-item strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); margin-bottom: 4px; }
.diferencial-item p { font-size: .88rem; color: var(--gray-600); margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
  padding: 96px 0;
  background: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: var(--orange); }
.faq-item[open] summary { color: var(--orange); }

.faq-item summary {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  transition: var(--transition);
}
.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 24px 20px;
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   CTA MEIO
   ============================================================ */
.section-cta-meio {
  background: var(--orange);
  padding: 72px 24px;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-inner p  { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.section-cta-meio .btn-primary {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.section-cta-meio .btn-primary:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  transform: translateY(-2px);
}

/* ============================================================
   CONTATO
   ============================================================ */
.section-contato {
  padding: 96px 0;
  background: var(--off-white);
  text-align: center;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  margin-top: 48px;
  text-align: left;
}

.contato-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

.form-group label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group label span { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,42,94,.1);
}

.form-group input.error,
.form-group textarea.error { border-color: #e53e3e; }

.form-disclaimer { font-size: .8rem; color: var(--gray-600); text-align: center; margin-top: 12px; }

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.info-card p  { font-size: .9rem; color: rgba(255,255,255,.8); }

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(26,42,94,.06);
}
.info-icon { font-size: 1.4rem; flex: 0 0 auto; }
.info-item strong { display: block; font-family: var(--font-head); font-size: .85rem; color: var(--navy); margin-bottom: 2px; }
.info-item a, .info-item span { font-size: .9rem; color: var(--gray-600); }
.info-item a:hover { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img { margin-bottom: 16px; }
.footer-brand p   { font-size: .9rem; line-height: 1.7; }

.footer-grid h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-servicos ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-servicos a, .footer-legal a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer-nav a:hover, .footer-servicos a:hover, .footer-legal a:hover { color: var(--orange); }

.footer-lgpd { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.45); text-align: center; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered fade-in */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-img { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .contato-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps-wrapper { flex-direction: column; align-items: center; gap: 16px; }
  .step-connector { width: 2px; height: 32px; margin: 0 auto; flex: 0 0 32px; margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .br-desktop { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .btn { padding: 12px 22px; font-size: .88rem; }
  .contato-form { padding: 24px; }
}
