/* ══════════════════════════════════════════
   Avanti Assessoria Contábil — Main Styles
   ══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:        #0d1b3e;
  --navy-light:  #1a2d5a;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --cream:       #f7f4ef;
  --warm-gray:   #e8e4de;
  --text:        #2a2a2a;
  --text-light:  #6b6b6b;
  --white:       #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html                   { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(13, 27, 62, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 60px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

/* Logo */
.nav-logo img {
  height: 40px;
  transition: opacity 0.3s;
}

/* Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover            { color: var(--gold); }
.nav-links a:hover::after     { transform: scaleX(1); }

/* CTA button */
.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 8px 22px;
  border-radius: 2px;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}
.nav-cta::after { display: none !important; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,62,0.95) 0%, rgba(13,27,62,0.75) 50%, rgba(13,27,62,0.9) 100%),
    url('../assets/01.jpeg') center / cover no-repeat;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 900px;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 400;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 40px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}
.btn-ghost {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.btn-ghost:hover            { color: var(--gold); }
.btn-ghost svg              { transition: transform 0.3s; }
.btn-ghost:hover svg        { transform: translateX(4px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  animation: scrollDown 2s ease infinite;
}

/* Stats overlay */
.hero-stats {
  position: absolute;
  right: 60px; bottom: 60px;
  z-index: 2;
  display: flex;
  gap: 48px;
}
.stat            { text-align: right; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   SHARED SECTION HELPERS
   ══════════════════════════════════════════ */
section { position: relative; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ══════════════════════════════════════════
   PILLARS
   ══════════════════════════════════════════ */
.pillars {
  background: var(--white);
  padding: 120px 60px;
}
.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.pillars-desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  padding-bottom: 8px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--warm-gray);
}
.pillar {
  background: var(--white);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.pillar:hover::before             { transform: scaleX(1); }
.pillar:hover {
  background: #fafaf8;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: rgba(13,27,62,0.06);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
}
.pillar-icon {
  width: 44px; height: 44px;
  margin-bottom: 28px;
  color: var(--gold);
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
}
.pillar p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ══════════════════════════════════════════
   ABOUT  (split layout)
   ══════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.about-images {
  position: relative;
  overflow: hidden;
}
.about-images img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-images:hover img { transform: scale(1.04); }
.about-content {
  background: var(--navy);
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content .section-title      { color: var(--white); }
.about-content .section-title em   { color: var(--gold); }
.about-text {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  font-weight: 300;
  margin-top: 32px;
  margin-bottom: 48px;
}
.about-milestones {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.milestone-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}
.milestone-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 300;
}

/* ══════════════════════════════════════════
   SERVICES / ATENDIMENTO
   ══════════════════════════════════════════ */
.services {
  padding: 120px 60px;
  background: var(--cream);
}
.services-header {
  max-width: 640px;
  margin-bottom: 72px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--warm-gray);
  margin-bottom: 72px;
}
.service-card {
  background: var(--cream);
  padding: 52px 48px;
  transition: background 0.3s;
}
.service-card:hover { background: var(--white); }
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.service-card h3 span.num {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  padding-top: 8px;
  flex-shrink: 0;
}
.service-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}
.service-list {
  list-style: none;
  margin-top: 20px;
}
.service-list li {
  font-size: 14px;
  color: var(--text-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 300;
}
.service-list li::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════ */
.gallery {
  background: var(--navy);
  padding: 120px 60px;
}
.gallery .section-title { color: var(--white); }
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.88);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,62,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   BUSINESS  (tech + human)
   ══════════════════════════════════════════ */
.business-section {
  background: var(--white);
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.business-visual { position: relative; }
.business-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.business-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.business-badge .badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.business-badge .badge-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.3;
}
.business-content .section-title { margin-bottom: 28px; }
.business-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 20px;
}
.business-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--warm-gray);
}
.feature-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.feature-item span {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact {
  background: var(--navy);
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.contact-left .section-title      { color: var(--white); }
.contact-left .section-title em   { color: var(--gold); }
.contact-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  font-weight: 300;
  margin: 28px 0 52px;
}
.contact-links {
  display: flex;
  flex-direction: column;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
}
.contact-link:hover { color: var(--gold); }
.contact-link-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.contact-link:hover .contact-link-icon {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.contact-link-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.contact-link-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Contact form */
.contact-form-side {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 52px;
  backdrop-filter: blur(10px);
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 36px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  font-weight: 400;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 2px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--gold);
  border: none;
  color: var(--navy);
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s;
}
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.25);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: #080f20;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.footer-logo {
  height: 36px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible     { opacity: 1; transform: translateY(0); }
.reveal-delay-1     { transition-delay: 0.15s; }
.reveal-delay-2     { transition-delay: 0.3s; }
.reveal-delay-3     { transition-delay: 0.45s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  nav, nav.scrolled { padding: 16px 24px; }
  .nav-links        { display: none; }

  .hero-content     { padding: 0 24px; }
  .hero h1          { font-size: 44px; }
  .hero-stats       { right: 24px; bottom: 40px; gap: 24px; }
  .stat-num         { font-size: 32px; }
  .hero-scroll      { display: none; }

  .pillars          { padding: 80px 24px; }
  .pillars-header   { grid-template-columns: 1fr; gap: 20px; }
  .pillars-grid     { grid-template-columns: 1fr; }

  .about            { grid-template-columns: 1fr; }
  .about-images     { min-height: 360px; }
  .about-content    { padding: 60px 32px; }

  .services         { padding: 80px 24px; }
  .services-grid    { grid-template-columns: 1fr; }

  .gallery          { padding: 80px 24px; }
  .gallery-grid     {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-row: auto; grid-column: 1 / 3; }

  .business-section { padding: 80px 24px; grid-template-columns: 1fr; gap: 60px; }

  .contact          { padding: 80px 24px; grid-template-columns: 1fr; gap: 60px; }
  .contact-form-side{ padding: 36px 24px; }

  footer            { flex-direction: column; padding: 40px 24px; text-align: center; }
}
