:root {
  --primary: #2b557f;
  --primary-light: #3c78b4;
  --primary-dark: #10283f;
  --accent: #0074db;
  --text: #404040;
  --gradient: linear-gradient(124deg, var(--primary), var(--primary-light), var(--primary-dark));
}

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

html {
  color-scheme: light;
  background: #fff;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-links { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-links a:hover { color: rgba(255,255,255,0.8); }
.topbar-social a { color: #fff; display: inline-flex; }
.topbar-social a svg { width: 18px; height: 18px; }

/* Header / nav */
header.site-header {
  background: #f4f4f4;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { flex-shrink: 0; }
.logo img { height: 100px; width: auto; }
nav.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
nav.main-nav > ul { display: flex; gap: 28px; align-items: center; }
.nav-cta { flex-shrink: 0; margin-left: 20px; }
nav.main-nav a.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  transition: color .2s;
}
nav.main-nav a.nav-link:hover { color: var(--primary); }
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 6px;
  min-width: 300px;
  padding: 10px 0;
  z-index: 10;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.dropdown li a:hover { background: #f2f6fa; color: var(--primary); }
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .3px;
  padding: 15px 35px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
}
.btn-outline:hover { background: #fff; color: var(--primary) !important; }

.mobile-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer; }

/* Hero */
.hero {
  background:
    linear-gradient(rgba(15,15,15,0.68), rgba(15,15,15,0.68)),
    url("../assets/img/banner1.jpg") center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  max-width: 640px;
  margin-bottom: 30px;
}
.hero h1 .accent { color: var(--primary-light); }
.hero-divider { width: 40px; height: 2px; background: var(--primary); margin-bottom: 30px; }
.hero-buttons { display: flex; align-items: center; gap: 16px; }
.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.whatsapp-inline svg { width: 28px; height: 28px; }

/* Hero 2 (Soluções de contabilidade) */
.hero2 {
  background:
    linear-gradient(150deg, rgba(0,0,0,0.73) 40%, rgba(0,0,0,0) 100%),
    url("../assets/img/foto3.jpg") center/cover no-repeat;
  color: #fff;
  padding: 100px 0;
}
.hero2 .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.hero2 h1 { font-size: 28px; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.hero2 h1 .accent { color: #72b8ff; }
.hero2 p { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 600px; }

/* Stats */
.stats {
  background: var(--gradient);
  color: #fff;
  padding: 70px 0;
}
.stats-heading {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  max-width: 600px;
  margin-bottom: 20px;
}
.stats-heading span { color: #70b7ff; }
.stats-sub {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  max-width: 430px;
  text-align: center;
  margin-bottom: 45px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stats-grid .stat { text-align: left; }
.stats-grid h2 { font-size: 52px; font-weight: 200; }
.stats-grid p { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.8); }

/* Section generic */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 28px; font-weight: 600; color: var(--primary-dark); }
.section-title p { color: #777; margin-top: 8px; }

.section-title-accent {
  text-align: left;
  border-left: 3px solid var(--primary);
  padding-left: 25px;
  margin-bottom: 40px;
}
.section-title-accent h2 { font-size: 22px; font-weight: 600; color: #353535; }
.section-title-accent .accent-word { color: var(--primary-dark); font-weight: 700; }

/* Services grid (home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  border-radius: 7px;
  padding: 32px;
  min-height: 220px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.18); transform: translateY(-4px); }
.service-card h4 { font-size: 20px; font-weight: 600; color: #efefef; line-height: 1.35; }
.service-card .icon {
  display: block;
  width: 56px;
  height: 56px;
  color: #72b8ff;
  margin-top: auto;
  padding-top: 20px;
}
.service-card .icon svg { width: 100%; height: 100%; }

/* Gov logos */
.gov-strip { padding: 60px 0; }
.gov-title { font-size: 20px; font-weight: 500; color: var(--text); text-align: left; margin-bottom: 30px; }
.gov-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.gov-grid a { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--accent); }
.gov-grid img { height: 30px; width: auto; }

/* CTA */
.cta {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta h2 { font-size: 26px; margin-bottom: 8px; }
.cta p { opacity: .85; margin-bottom: 24px; }

/* About page */
.about-hero {
  background: var(--gradient);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.about-hero h1 { font-size: 28px; font-weight: 500; }

.label-content-section { padding: 70px 0; }
.label-content-section.alt-a { background: #f9f9f9; }
.label-content-section.alt-b { background: #ededed; }
.label-content-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
}
.label-content-grid h2 { font-size: 28px; font-weight: 600; color: var(--primary); }
.label-content-grid p { color: #555; }
.label-content-grid p + p { margin-top: 16px; }

/* Services page */
.services-page-hero {
  background: var(--gradient);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.services-page-hero h1 { font-size: 28px; font-weight: 500; }
.service-section.alt-a { background: #f9f9f9; }
.service-section.alt-b { background: #ededed; }
.service-section h3 { color: var(--primary-dark); font-size: 24px; font-weight: 600; margin-bottom: 20px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.service-list li {
  padding-left: 26px;
  position: relative;
  color: #444;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact page */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.contact-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 14px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-info-card {
  background: var(--gradient);
  color: #fff;
  padding: 32px;
  border-radius: 8px;
}
.contact-info-card h3 { margin-bottom: 20px; }
.contact-info-card p { margin-bottom: 16px; font-size: 14px; opacity: .9; }
.form-success, .form-error { display: none; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.form-success { background: #e3f7e9; color: #1a7a3d; }
.form-error { background: #fce8e8; color: #b42323; }

/* Footer */
.footer-contacts {
  background: rgba(216,216,216,0.8);
  padding: 60px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 { color: var(--primary); font-weight: 700; margin-bottom: 16px; font-size: 20px; }
.footer-grid p, .footer-grid a { font-size: 16px; color: #555; }
.footer-grid a { color: var(--accent); }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  background: var(--primary);
  color: #fff;
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-bottom a { margin-left: 16px; color: #fff; }
.footer-bottom a:hover { text-decoration: underline; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .label-content-grid { grid-template-columns: 1fr; gap: 12px; }
  .stats-sub { text-align: left; margin-left: 0; }
}
@media (max-width: 720px) {
  header.site-header .logo img { height: 64px; }
  .mobile-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav > ul { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .has-dropdown .dropdown { position: static; box-shadow: none; display: none; width: 100%; }
  .has-dropdown.open .dropdown { display: block; }
  .services-grid, .service-list, .stats-grid { grid-template-columns: 1fr; }
  .hero h1, .hero2 h1 { font-size: 24px; }
  .gov-grid { justify-content: center; }
}
