/* ============================================================
   Cartório de Registro Civil das Pessoas Naturais — Betim/MG
   ============================================================ */

:root{
  --navy-950: #0f1a30;
  --navy-900: #14213f;
  --navy-800: #1b2c4f;
  --navy-700: #253960;
  --gold-600: #b6902a;
  --gold-500: #c9a227;
  --gold-400: #d9b94f;
  --gold-100: #f4ecd4;
  --paper:    #f5f6f9;
  --paper-2:  #eef0f5;
  --white:    #ffffff;
  --ink:      #1f2937;
  --ink-soft: #4b5567;
  --line:     #e2e5eb;

  --serif: "Playfair Display", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 48, 0.06), 0 1px 1px rgba(15,26,48,0.04);
  --shadow-md: 0 10px 30px -12px rgba(15, 26, 48, 0.25);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--serif);
  color: var(--navy-900);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 600;
}
p{ line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{
  width: 44px; height: 44px; border: 1.5px solid var(--gold-500);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(255,255,255,.05);
}
.brand-mark svg{ width: 22px; height: 22px; }
.brand-text{ line-height: 1.25; }
.brand-title{
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  color: var(--white); letter-spacing: .2px; text-transform: uppercase;
}
.brand-sub{ font-size: 11.5px; letter-spacing: 1.2px; color: var(--gold-400); text-transform: uppercase; }

.main-nav{ display: flex; align-items: center; gap: 22px 30px; flex-wrap: wrap; }
.main-nav a{
  font-size: 14.5px; color: rgba(255,255,255,.82); font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active{ border-bottom-color: var(--gold-500); color: var(--white); }
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 7px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn-gold{ background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover{ background: var(--gold-400); }
.btn-outline{ border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,.12); }
.btn-navy{ background: var(--navy-900); color: var(--white); }
.btn-navy:hover{ background: var(--navy-800); }
.nav-toggle{ display: none; }

/* ---------- Back to home link (inner pages) ---------- */
.back-bar{ background: var(--navy-950); }
.back-bar .wrap{ padding: 16px 24px; }
.back-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85);
}
.back-link svg{ width: 16px; height: 16px; }
.back-link:hover{ color: var(--gold-400); }
.page-hero .back-link{ margin-bottom: 20px; }

/* ---------- Hero ---------- */
.hero{
  position: relative; color: var(--white);
  background: linear-gradient(100deg, rgba(15,26,48,.80) 10%, rgba(20,33,63,.55) 55%, rgba(20,33,63,.35) 100%),
              url("hero3.jpeg") center center /cover no-repeat;
  min-height: 550;
  padding: 40px 0 90px;
  background-color: #14213f;
}
.hero .wrap{
  max-width: 100%;
  margin: 0;
  padding-left: 40px;
  
}
.hero-topbar{
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 40px; margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero .eyebrow{
  color: var(--gold-400); font-size: 13px; letter-spacing: 2.5px; font-weight: 700;
  margin-bottom: 18px;
}
.hero h1{ color: var(--white); font-size: clamp(34px, 5vw, 56px); max-width: 600px; margin-bottom: 22px; }
.hero p.lede{ color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; margin-bottom: 34px; }
.hero .actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section{ padding: 76px 0; }
.section-alt{ background: var(--paper); }
.section-head{ text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2{ font-size: clamp(26px, 3.4vw, 34px); }
.section-head p{ margin: 0; }

/* ---------- Service cards ---------- */
.card-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon{
  width: 42px; height: 42px; border-radius: 8px; background: var(--gold-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg{ width: 20px; height: 20px; stroke: var(--gold-600); }
.card h3{ font-size: 18px; margin-bottom: 8px; }
.card p{ font-size: 14.5px; margin-bottom: 14px; }
.card .link{ font-size: 14px; font-weight: 700; color: var(--navy-800); }
.card .link::after{ content: " →"; }
.card .link:hover{ color: var(--gold-600); }

/* ---------- Hours ---------- */
.hours-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hours-card{
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  text-align: center; background: var(--white);
}
.hours-card h3{ font-size: 17px; margin-bottom: 8px; }
.hours-card p{ margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Contact / Location ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-box{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-box dt{ font-weight: 700; color: var(--navy-900); font-size: 14px; margin-top: 18px; }
.contact-box dt:first-child{ margin-top: 0; }
.contact-box dd{ margin: 4px 0 0; color: var(--ink-soft); }
.contact-box dd a{ color: var(--navy-800); }

.map-box{ text-align: center; padding: 46px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.map-box iframe{ width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-950); color: rgba(255,255,255,.75); padding: 44px 0 26px; }
.footer-top{ display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand{ font-family: var(--serif); color: var(--white); font-size: 17px; }
.footer-brand span{ display: block; color: var(--gold-400); font-size: 12.5px; letter-spacing: 1.5px; margin-top: 4px; text-transform: uppercase; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ font-size: 14px; color: rgba(255,255,255,.8); }
.footer-nav a:hover{ color: var(--gold-400); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Inner / service detail pages ---------- */
.breadcrumb{ font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a{ color: var(--navy-800); font-weight: 600; }
.page-hero{
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: var(--white); padding: 56px 0 46px;
}
.page-hero .eyebrow{ color: var(--gold-400); font-size: 12.5px; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.page-hero h1{ color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; max-width: 720px; }
.page-hero p{ color: rgba(255,255,255,.82); max-width: 640px; margin: 0; }

.detail-layout{ display: grid; grid-template-columns: 1.7fr 1fr; gap: 46px; align-items: start; }
.detail-main h2{ font-size: 22px; margin-top: 40px; }
.detail-main h2:first-child{ margin-top: 0; }
.detail-main ul{ margin: 0 0 20px; padding-left: 20px; }
.detail-main li{ color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }
.detail-main ol{ margin: 0 0 20px; padding-left: 20px; }
.detail-main ol li{ color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }
.callout{
  background: var(--gold-100); border-left: 3px solid var(--gold-500); border-radius: 6px;
  padding: 16px 18px; margin: 22px 0; font-size: 14.5px; color: var(--navy-900);
}
.info-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 96px;
}
.info-card h3{ font-size: 15px; margin-bottom: 14px; }
.info-card .row{ display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.info-card .row:last-child{ margin-bottom: 0; }
.info-card .row svg{ width: 18px; height: 18px; stroke: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
.info-card .row div{ font-size: 14px; color: var(--ink-soft); }
.info-card .row strong{ display: block; color: var(--navy-900); font-size: 13.5px; margin-bottom: 2px; }
.info-card .btn{ width: 100%; margin-top: 6px; }

/* Pricing table */
.price-table{ width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 14.5px; }
.price-table th, .price-table td{ text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.price-table th{ background: var(--paper); color: var(--navy-900); font-family: var(--serif); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child{ text-align: right; white-space: nowrap; }
.price-note{ font-size: 13px; color: var(--ink-soft); }

.step-list{ list-style: none; padding: 0; margin: 0 0 20px; counter-reset: step; }
.step-list li{
  counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px;
  color: var(--ink-soft); line-height: 1.6;
}
.step-list li::before{
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400);
  font-family: var(--serif); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .card-grid{ grid-template-columns: 1fr 1fr; }
  .hours-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .detail-layout{ grid-template-columns: 1fr; }
  .info-card{ position: static; }
}
@media (max-width: 560px){
  .card-grid{ grid-template-columns: 1fr; }
  .footer-top{ flex-direction: column; }
}
