/* =========================================================
   EW Contabilidade — CSS puro (recriado a partir do projeto Lovable)
   ========================================================= */

:root {
  --background: #ffffff;
  --foreground: hsl(222.2, 84%, 4.9%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --border: hsl(214.3, 31.8%, 91.4%);

  --corporate-orange: hsl(25, 90%, 55%);
  --corporate-orange-dark: hsl(25, 90%, 45%);
  --corporate-orange-light: hsl(25, 90%, 65%);
  --corporate-gray: hsl(220, 14%, 96%);
  --corporate-gray-dark: hsl(220, 14%, 10%);

  --gradient-primary: linear-gradient(135deg, var(--corporate-orange), var(--corporate-orange-light));
  --gradient-overlay: linear-gradient(135deg, hsla(25, 90%, 55%, 0.6), hsla(25, 90%, 45%, 0.5));

  --shadow-elegant: 0 10px 30px -10px hsla(25, 90%, 55%, 0.3);
  --shadow-soft: 0 4px 15px -5px hsla(220, 14%, 10%, 0.1);

  --radius: 0.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn--gradient {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-elegant);
}
.btn--gradient:hover {
  background: var(--corporate-orange-dark);
  box-shadow: 0 12px 28px -8px hsla(25, 90%, 45%, 0.45);
  transform: scale(1.05);
}
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn--full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  position: relative;
  z-index: 50;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand { display: flex; align-items: center; }
.navbar__logo { height: 3rem; width: auto; }
.navbar__title {
  margin-left: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  font-weight: 500;
  transition: color 0.3s;
}
.navbar__links a:hover { color: var(--corporate-orange); }
.navbar__cta { display: none; }
.navbar__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}
.mobile-menu__cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: block; }
  .navbar__toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--corporate-orange-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(25, 95%, 18%, 0.96), hsla(25, 90%, 32%, 0.94) 55%, hsla(25, 90%, 38%, 0.92));
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, hsla(20, 60%, 8%, 0.55), transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  max-width: 56rem;
}
.hero__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px hsla(0, 0%, 0%, 0.7);
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 10px hsla(0, 0%, 0%, 0.65), 0 1px 3px hsla(0, 0%, 0%, 0.8);
}
.hero__text {
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 40rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.65);
}

@media (min-width: 768px) {
  .hero__title { font-size: 3.75rem; }
  .hero__text { font-size: 1.25rem; }
}

/* ===== Section shared ===== */
.section-head {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-head p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .section-head h2 { font-size: 2.5rem; }
}

.grid {
  display: grid;
  gap: 2rem;
}
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.grid--4 { grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 8px 24px -6px hsla(220, 14%, 10%, 0.18); }
.card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}
.card > p {
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.7;
}

.icon-circle {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.icon-circle--sm { width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; }

/* ===== About ===== */
.about { padding: 4rem 0; background: var(--corporate-gray); }

/* ===== Differentials ===== */
.differentials { padding: 5rem 0; background: var(--background); }
.diff-card { text-align: center; padding: 0 0.5rem; }
.diff-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.diff-card p { color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq { padding: 5rem 0; background: var(--corporate-gray); }
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--corporate-orange);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Services ===== */
.services { padding: 5rem 0; background: var(--background); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  background-color: var(--corporate-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") no-repeat center / contain;
}
.services__cta { text-align: center; margin-top: 3rem; }

/* ===== Mobile Sticky CTA ===== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px -6px hsla(220, 14%, 10%, 0.15);
}
@media (max-width: 767px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* ===== Footer ===== */
.footer {
  background: var(--corporate-gray-dark);
  color: #fff;
  padding: 4rem 0;
}
.footer h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.footer__grid { margin-bottom: 2rem; }
.footer__brand { display: flex; align-items: center; margin-bottom: 1rem; }
.footer__brand img { height: 3rem; width: auto; }
.footer__brand span { margin-left: 0.75rem; font-size: 1.25rem; font-weight: 600; }
.footer__desc { color: #d1d5db; line-height: 1.7; margin-bottom: 1rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  transition: background 0.3s;
}
.footer__social a:hover { background: var(--corporate-orange); }

.footer__contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__contact > div { display: flex; align-items: center; color: #d1d5db; }
.footer__contact--start { align-items: flex-start !important; }
.footer__contact svg { margin-right: 0.75rem; color: var(--corporate-orange-light); flex-shrink: 0; }
.footer__contact--start svg { margin-top: 0.2rem; }
.footer__contact a { color: #d1d5db; transition: color 0.3s; }
.footer__contact a:hover { color: var(--corporate-orange-light); }
.footer__maps-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--corporate-orange-light) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer__services li { margin-bottom: 0.5rem; }
.footer__services a { color: #d1d5db; transition: color 0.3s; }
.footer__services a:hover { color: var(--corporate-orange-light); }

.footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}
.footer__bottom p { color: #9ca3af; }
.footer__cnpj { font-size: 0.8rem; margin-top: 0.4rem; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  border-radius: 50%;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px -4px rgba(0,0,0,0.3); }
.whatsapp-float img { width: 3.5rem; height: 3.5rem; border-radius: 50%; }
