/* =========================================================
   Almeida & Ribeiro Advogados
   Site institucional — Inventários e Regularização Imobiliária
   ========================================================= */

:root {
  --navy: #16324a;
  --navy-dark: #0d1f2f;
  --gold: #b8935a;
  --gold-text: #8a6633; /* darker gold — meets 4.5:1 text contrast on light backgrounds */
  --gold-light: #d9b98a;
  --cream: #faf6f0;
  --cream-2: #f2ebe0;
  --ink: #2b2b28;
  --ink-soft: #5a5a54;
  --white: #ffffff;
  --border: #e4dcd0;
  --success-bg: #f0f5ef;
  --shadow: 0 10px 30px rgba(22, 50, 74, 0.08);
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd8de;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cdd8de; }
.topbar a:hover { color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.brand span { color: var(--gold-text); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--gold-text);
}

nav.main-nav li.has-dropdown {
  position: relative;
}
nav.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px;
  min-width: 240px;
  list-style: none;
  margin: 8px 0 0;
  z-index: 50;
}
/* Hover for mouse users, .open (via JS) for touch/keyboard users */
nav.main-nav li.has-dropdown:hover .dropdown,
nav.main-nav li.has-dropdown.open .dropdown {
  display: block;
}
nav.main-nav .dropdown li { margin: 0; }
nav.main-nav .dropdown a {
  display: block;
  padding: 10px 12px;
  border-bottom: none;
  border-radius: 6px;
  font-weight: 500;
}
nav.main-nav .dropdown a:hover {
  background: var(--cream-2);
  color: var(--gold-text);
}
.dropdown-trigger { cursor: pointer; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 147, 90, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-1px); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 20px;
}
.hero p.lead {
  color: #cdd8de;
  font-size: 1.15rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-trust div { text-align: left; }
.hero-trust strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}
.hero-trust span { font-size: 0.85rem; color: #b9c6cd; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card p.small { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.hero-card form { display: flex; flex-direction: column; gap: 12px; }
.hero-card input, .hero-card select, .hero-card textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

/* ---------- Section basics ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--cream-2); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  color: var(--gold-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
}
.section-head h2 { margin-top: 8px; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.card .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card a.card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--gold-text);
  border-bottom: 1px solid var(--gold-text);
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  background: var(--navy);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h4 { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial .stars { color: var(--gold-text); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; color: var(--ink); }
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  overflow: hidden;
}
.avatar img,
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Portrait photo on Sobre page */
.profile-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto 20px;
  display: block;
  border: 3px solid var(--white);
  outline: 1px solid var(--border);
}

/* Home page personal-intro section */
.intro-photo-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}
.intro-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .intro-photo-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .intro-photo-grid img { max-width: 220px; margin: 0 auto; }
}
.author strong { display: block; font-size: 0.95rem; color: var(--navy); }
.author span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-text);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cdd8de; margin-bottom: 26px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Documents list ---------- */
.doc-list {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  list-style: none;
  margin: 0;
}
.doc-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  padding-left: 28px;
  position: relative;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-text);
  font-weight: 700;
}

/* ---------- Blog cards ---------- */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-card .post-tag {
  display: inline-block;
  background: var(--cream-2);
  color: var(--gold-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.post-card .post-body { padding: 26px; }
.post-card h3 { font-size: 1.1rem; }
.post-card .post-meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Article (blog post) page ---------- */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-meta-top .post-tag {
  display: inline-block;
  background: var(--cream-2);
  color: var(--gold-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.article-meta-top .article-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.article-wrap h1 { font-size: 2rem; margin-bottom: 10px; }
.article-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.article-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
}
.article-content h3 {
  font-size: 1.15rem;
  margin-top: 28px;
}
.article-content p {
  color: var(--ink);
  line-height: 1.75;
}
.article-content ul,
.article-content ol {
  color: var(--ink);
  line-height: 1.75;
  padding-left: 22px;
  margin-bottom: 1em;
}
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 28px 0;
  padding: 4px 24px;
  font-style: italic;
  color: var(--navy);
  background: var(--cream-2);
  border-radius: 0 8px 8px 0;
}
.article-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  background: var(--cream-2);
  border-radius: var(--radius);
}
.article-author-box .avatar { width: 56px; height: 56px; font-size: 1.2rem; flex-shrink: 0; }
.article-author-box strong { display: block; color: var(--navy); }
.article-author-box span { font-size: 0.85rem; color: var(--ink-soft); }
.article-back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--gold-text);
}

/* Empty state (blog listing with no articles yet) */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 12px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 260px;
  margin-top: 24px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--cream-2);
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--navy); font-weight: 600; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #cdd8de; max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c6cd;
  padding: 56px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-family: inherit; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 200;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  nav.main-nav.open ul { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  /* Smaller, closer-to-edge floating button so it doesn't sit on top of CTA
     buttons or footer text on small screens */
  .float-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 16px;
    right: 16px;
  }
  .cta-band { padding-bottom: 88px; }
  footer.site-footer { padding-bottom: 88px; }
}
