/* ==========================================================================
   Arriviera Tecnologia — site estático
   Paleta e tipografia extraídas do site original (Joomla/Helix Ultimate)
   ========================================================================== */

:root {
  --color-navy: #151d35;       /* fundo escuro (footer, seções destaque) */
  --color-navy-dark: #0d1525;  /* variação mais escura */
  --color-green: #2ba84a;      /* verde principal da marca */
  --color-lime: #adda2b;       /* verde-limão de destaque / CTA */
  --color-gray-bg: #f1f3f8;    /* fundo cinza claro das seções */
  --color-text: #515264;       /* texto de corpo */
  --color-heading: #1a2430;    /* títulos */
  --color-white: #ffffff;

  --font-heading: 'Mulish', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(21, 29, 53, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-lime);
  background: rgba(173, 218, 43, 0.12);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-family: var(--font-body);
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-lime {
  background: var(--color-lime);
  color: var(--color-navy-dark);
}
.btn-lime:hover { box-shadow: 0 8px 20px rgba(173, 218, 43, 0.4); }

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

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-navy:hover { box-shadow: 0 8px 20px rgba(21, 29, 53, 0.3); }

/* ---------- Header / Navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(21, 29, 53, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.brand img { height: 42px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main > li { position: relative; }

.nav-main > li > a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-heading);
  padding: 10px 0;
  display: inline-block;
}
.nav-main > li > a:hover,
.nav-main > li.active > a { color: var(--color-green); }

.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.15s ease;
  list-style: none;
  margin: 0;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--color-text);
}
.dropdown li a:hover { background: var(--color-gray-bg); color: var(--color-green); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-heading);
}

@media (max-width: 900px) {
  .nav-main {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-main.open { transform: translateX(0); }
  .nav-main > li { width: 100%; }
  .nav-main > li > a { color: var(--color-white); width: 100%; }
  .has-dropdown > .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; background: rgba(255,255,255,0.05);
  }
  .has-dropdown.open > .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90;
  }
  .nav-overlay.open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(13,21,37,0.88), rgba(21,29,53,0.82)), url('../images/front-cropped.jpeg') center/cover;
  color: var(--color-white);
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero .container { max-width: 760px; text-align: left; }
.hero h1 { color: var(--color-white); }
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 2em; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--color-green), #23913e);
  color: var(--color-white);
  padding: 64px 0 48px;
  text-align: center;
}
.page-header h1 { color: var(--color-white); margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.breadcrumb a { color: var(--color-white); font-weight: 700; }

/* ---------- Seções gerais ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--color-gray-bg); }
.section-navy { background: var(--color-navy); color: rgba(255,255,255,0.85); }
.section-navy h2, .section-navy h3 { color: var(--color-white); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--color-text); }

/* ---------- Sobre / cards ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.pill-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pill-list li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.92rem; color: var(--color-heading);
}
.pill-list li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-lime);
  flex-shrink: 0;
}

/* ---------- Serviços (cards 3 colunas) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card .body { padding: 22px 24px 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.diff-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.diff-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(43, 168, 74, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--color-green);
}
.diff-card h3 { font-size: 1.05rem; }
.diff-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Parceiros ---------- */
.partners {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 48px;
}
.partners img { height: 32px; width: auto; filter: brightness(0) saturate(100%); opacity: 0.55; transition: opacity .2s; }
.partners img:hover { opacity: 1; }

/* ---------- Estatísticas ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--color-lime);
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(120deg, var(--color-lime), #86c22e);
  color: var(--color-navy-dark);
  border-radius: var(--radius);
  padding: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-final h2 { color: var(--color-navy-dark); margin-bottom: 6px; }
.cta-final p { margin: 0; }

/* ---------- Tabs de serviços (empresarial) ---------- */
.tabs-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.tabs-groups { display: flex; flex-direction: column; gap: 8px; }
.tab-group-btn {
  text-align: left;
  background: var(--color-white);
  border: 1px solid #e4e7f0;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-heading);
  cursor: pointer;
}
.tab-group-btn.active { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

.tab-items { list-style: none; margin: 0; padding: 0; display: none; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.tab-items.active { display: grid; }
.tab-items button {
  width: 100%;
  text-align: left;
  background: var(--color-gray-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
  cursor: pointer;
}
.tab-items button.active { background: rgba(43,168,74,0.12); border-color: var(--color-green); color: var(--color-green); }
.tab-desc {
  background: var(--color-white);
  border: 1px solid #e4e7f0;
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.95rem;
  min-height: 90px;
}
/* ---------- FAQ (accordion) ---------- */
.faq-item {
  border-bottom: 1px solid #e4e7f0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.92rem;
  padding: 0 4px;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ---------- Formulário de contato simples ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--color-white); }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(173,218,43,0.15); color: var(--color-lime);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row a, .contact-row span { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: none; width: 100%; height: 320px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--color-white); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-lime); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-lime); color: var(--color-navy-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--color-lime); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 200;
  color: #fff;
  font-size: 1.6rem;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Botão voltar ao topo ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-lime);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 29, 53, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-green); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .tabs-wrap { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tab-items { grid-template-columns: 1fr; }
  .cta-final { flex-direction: column; text-align: center; }
}
