/* ==========================================================================
   M.Dias Contabilidade — main.css
   ========================================================================== */

:root {
  --navy:         #1C2951;
  --navy-mid:     #2D3F6B;
  --navy-light:   #3A5A8A;
  --blue-steel:   #6B96C8;

  --gold:         #B89450;
  --gold-light:   #D4AF70;
  --gold-pale:    #EDD89A;

  --cream:        #F5F3F0;
  --cream-dark:   #EAE7E2;
  --white:        #FFFFFF;

  --text-heading: #1A2035;
  --text-body:    #4A5568;
  --text-muted:   #8896A4;

  --border:       #E2E8F0;
  --border-dark:  #CBD5E0;

  --shadow-sm:  0 1px 3px rgba(28,41,81,.06), 0 1px 2px rgba(28,41,81,.04);
  --shadow-md:  0 4px 16px rgba(28,41,81,.08), 0 2px 6px rgba(28,41,81,.05);
  --shadow-lg:  0 10px 40px rgba(28,41,81,.12), 0 4px 12px rgba(28,41,81,.06);

  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container-max: 1200px;
  --container-px:  2rem;
  --section-py:    5rem;

  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-pill: 100px;

  --navbar-h: 72px;
}

/* Reset */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { max-width:100%; height:auto; display:block; }
a    { color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
button { cursor:pointer; font-family:inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
section { padding: var(--section-py) 0; }

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-heading);
  margin-bottom: 1rem;
}
.section-heading span { color: var(--gold); }
.section-subheading {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.7;
}

/* -----------------------------------------------------------------------
   Botões — pill style
----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary { background:var(--navy); color:var(--white); border-color:var(--navy); }
.btn-primary:hover { background:var(--navy-mid); border-color:var(--navy-mid); }

.btn-gold { background:var(--gold); color:var(--white); border-color:var(--gold); }
.btn-gold:hover { background:#9E7D3C; border-color:#9E7D3C; }

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

.btn-outline-navy { background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline-navy:hover { background:var(--navy); color:var(--white); }

.btn-outline-muted { background:transparent; color:var(--text-body); border-color:var(--border-dark); }
.btn-outline-muted:hover { border-color:var(--navy); color:var(--navy); }

/* -----------------------------------------------------------------------
   Navbar
----------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo { display:flex; align-items:center; flex-shrink:0; }
.navbar__logo img,
.navbar__logo object { height:54px; width:auto; display:block; }

.navbar__menu { display:flex; align-items:center; gap:2rem; }

.navbar__link {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-heading);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.navbar__link::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:0; height:2px; background:var(--gold);
  transition: width var(--transition);
}
.navbar__link:hover,
.navbar__link.active           { color:var(--gold); }
.navbar__link:hover::after,
.navbar__link.active::after    { width:100%; }

.navbar__cta { margin-left:.75rem; }

/* Hamburger */
.navbar__hamburger {
  display:none; flex-direction:column; justify-content:center;
  gap:5px; width:36px; height:36px;
  background:none; border:none; padding:4px;
}
.navbar__hamburger span {
  display:block; height:2px; width:100%;
  background:var(--navy); border-radius:2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar.menu-open .navbar__hamburger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.navbar.menu-open .navbar__hamburger span:nth-child(2) { opacity:0; }
.navbar.menu-open .navbar__hamburger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.navbar__menu-overlay {
  position:fixed; inset:0;
  background:rgba(26,32,53,.98);
  z-index:999;
  display:none; flex-direction:column;
  align-items:center; justify-content:center;
  gap:1.75rem;
  opacity:0; transition:opacity var(--transition);
}
.navbar__menu-overlay.open { display:flex; opacity:1; }
.navbar__menu-overlay .navbar__link {
  color:rgba(255,255,255,.9); font-size:1.15rem; letter-spacing:.1em;
}
.navbar__menu-overlay .navbar__link:hover,
.navbar__menu-overlay .navbar__link.active { color:var(--gold-light); }
.navbar__menu-overlay .navbar__link::after { background:var(--gold); }

.navbar__close {
  position:absolute; top:1.25rem; right:1.25rem;
  background:none; border:none; color:var(--white);
  width:40px; height:40px; display:flex;
  align-items:center; justify-content:center;
  opacity:.7; transition:opacity var(--transition);
}
.navbar__close:hover { opacity:1; }
.navbar__close svg { width:24px; height:24px; }

@media (max-width:900px) {
  .navbar__menu,
  .navbar__cta    { display:none; }
  .navbar__hamburger { display:flex; }
}

/* -----------------------------------------------------------------------
   Footer
----------------------------------------------------------------------- */
#footer { background:var(--navy); color:rgba(255,255,255,.8); }

.footer__top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__grid {
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap:3rem;
}

.footer__logo { display:block; margin-bottom:1.25rem; }
.footer__logo img,
.footer__logo object { height:56px; width:auto; }

.footer__brand p {
  font-size:.875rem; line-height:1.7;
  color:rgba(255,255,255,.55);
  max-width:280px; margin-bottom:1.5rem;
}

.footer__social { display:flex; gap:.75rem; }
.footer__social-link {
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.7);
  transition:background var(--transition), border-color var(--transition), color var(--transition);
}
.footer__social-link:hover { background:var(--gold); border-color:var(--gold); color:var(--white); }
.footer__social-link i { font-size:15px; }

.footer__col-title {
  font-family:var(--font-body); font-size:.72rem;
  font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--white); margin-bottom:1.25rem;
}
.footer__links { display:flex; flex-direction:column; gap:.6rem; }
.footer__links a { color:rgba(255,255,255,.55); font-size:.875rem; transition:color var(--transition); }
.footer__links a:hover { color:var(--gold-light); }

.footer__contact-item {
  display:flex; align-items:flex-start;
  gap:.75rem; margin-bottom:.9rem;
  color:rgba(255,255,255,.6); font-size:.875rem;
}
.footer__contact-item i {
  color:var(--gold); font-size:14px;
  flex-shrink:0; margin-top:3px; width:16px; text-align:center;
}

/* Footer bottom — distinctly darker */
.footer__bottom {
  background: #0D1425;
  padding:1.25rem 0;
}
.footer__bottom-inner { display:flex; justify-content:center; }
.footer__copyright {
  font-size:.78rem; color:rgba(255,255,255,.35); text-align:center;
}

@media (max-width:900px) {
  .footer__grid { grid-template-columns:1fr 1fr; gap:2.5rem; }
  .footer__brand { grid-column:1/-1; }
}
@media (max-width:560px) {
  .footer__grid { grid-template-columns:1fr; gap:2rem; }
  .footer__brand { grid-column:auto; }
}

/* -----------------------------------------------------------------------
   Float buttons
----------------------------------------------------------------------- */
.float-buttons {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 900;
}

.btn-back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* WhatsApp sempre visível e maior */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  opacity: 1;
  pointer-events: auto;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-back-top.visible { opacity: 1; pointer-events: auto; }

.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,.45); }

.btn-back-top { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.btn-back-top:hover { transform: translateY(-3px); }

.btn-whatsapp i { font-size: 26px; }
.btn-back-top i { font-size: 20px; }

/* -----------------------------------------------------------------------
   Formulário compartilhado
----------------------------------------------------------------------- */
.form-group  { margin-bottom:1rem; }
.form-label  {
  display:block; font-size:.78rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-muted); margin-bottom:.4rem;
}
.form-control {
  width:100%; padding:.75rem 1rem;
  border:1.5px solid var(--border);
  border-radius:var(--radius-md);
  font-family:var(--font-body); font-size:.9rem;
  color:var(--text-heading); background:var(--white);
  transition:border-color var(--transition), box-shadow var(--transition);
  outline:none;
}
.form-control:focus        { border-color:var(--navy); box-shadow:0 0 0 3px rgba(28,41,81,.08); }
.form-control.is-invalid   { border-color:#e53e3e; }
.form-control::placeholder { color:var(--text-muted); }
textarea.form-control      { resize:vertical; min-height:110px; }

.form-error {
  font-size:.75rem; color:#e53e3e;
  margin-top:.3rem; min-height:1rem; display:block;
}
.form-response {
  padding:.875rem 1rem; border-radius:var(--radius-md);
  font-size:.875rem; font-weight:600;
  margin-bottom:1rem; display:none;
}
.form-response.success { background:rgba(72,187,120,.1); color:#276749; border:1px solid rgba(72,187,120,.3); display:block; }
.form-response.error   { background:rgba(229,62,62,.08);  color:#c53030; border:1px solid rgba(229,62,62,.2);  display:block; }

.btn-submit {
  width:100%; padding:.875rem;
  background:var(--navy); color:var(--white);
  border:none; border-radius:var(--radius-pill);
  font-family:var(--font-body); font-size:.875rem; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase;
  cursor:pointer;
  transition:background var(--transition), transform var(--transition);
}
.btn-submit:hover    { background:var(--navy-mid); transform:translateY(-1px); }
.btn-submit:disabled { opacity:.65; cursor:not-allowed; transform:none; }

/* -----------------------------------------------------------------------
   Utilidades
----------------------------------------------------------------------- */
.text-center  { text-align:center; }
.section-cream { background:var(--cream); }
.divider-gold { width:48px; height:3px; background:var(--gold); border-radius:2px; margin:1rem 0; }

.reveal {
  opacity:0; transform:translateY(20px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }

@media (max-width:600px) {
  :root { --section-py:3.5rem; --container-px:1.25rem; }
}
