@import url("fonts.css");

:root {
  --bg: #FAF7F2;
  --bg-soft: #F2EDE4;
  --bg-warm: #EBE4D7;
  --surface: #FFFFFF;
  --ink: #1F2523;
  --ink-muted: #4D5753;
  --accent: #2B453B;
  --accent-hover: #1E332B;
  --accent-soft: #E6EFE9;
  --bronze: #7F6549;
  --border: #DDD5C8;
  --shadow-sm: 0 2px 14px rgba(31, 37, 35, 0.045);
  --shadow-md: 0 14px 36px rgba(31, 37, 35, 0.075);
  --radius: 16px;
  --radius-sm: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid #6E8F7E;
  outline-offset: 3px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Soft calm top bar */
.top-bar {
  background: var(--bg-warm);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  padding: 9px 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.top-bar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.06;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bronze);
  margin-top: 3px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 22px;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.header-cta {
  display: none;
}

/* Typography & Sections */
.section {
  padding: 60px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bronze);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 4.8vw, 52px);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

h3 {
  font-size: 25px;
}

h4 {
  font-size: 21px;
}

.lead {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 650px;
  margin: 0 0 26px;
  line-height: 1.68;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-intro p {
  color: var(--ink-muted);
  margin: 0;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.btn-soft:hover {
  background: #D9E6DD;
  color: var(--accent-hover);
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.52);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.btn-sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
}

/* Hero & Visual Frames */
.hero {
  padding: 46px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-alt-call {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-muted);
}

.hero-alt-call a {
  font-weight: 600;
  color: var(--accent);
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  aspect-ratio: 4 / 3;
}

.split-photo {
  aspect-ratio: 16 / 10;
}

.portrait-photo {
  aspect-ratio: 4 / 4.2;
}

.photo-caption {
  padding: 12px 16px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.trust-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.icon-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

.icon-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 21px;
  height: 21px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 16px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.cross-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.cross-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 15px;
}

.cross-list li::before {
  content: "–";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--bronze);
  font-weight: 700;
}

.phone-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.grid-2 > *, .grid-3 > *, .grid-4 > *, .calc-grid > * {
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-calm {
  background: #F6F2EA;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

/* Visual Timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
}

.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

/* Package Cards */
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.package-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.package-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.package-price {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  margin: 8px 0 4px;
}

.package-subprice {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.package-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.package-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

/* Interactive Calculator */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.calc-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.calc-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.calc-pill strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-pill:hover {
  border-color: var(--accent);
}

.calc-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
}

.calc-select, .calc-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 18px;
}

.calc-result-card {
  background: var(--accent);
  color: #FAF7F2;
  border-radius: var(--radius);
  padding: 28px;
}

.calc-result-card h3 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
}

.calc-line strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-line.total {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 19px;
  font-weight: 600;
}

.calc-big {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.9);
  background: rgba(0, 0, 0, 0.16);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

/* Callout / Notice */
.callout {
  background: var(--accent);
  color: #FAF7F2;
  border-radius: var(--radius);
  padding: 32px 28px;
}

.callout h2, .callout h3 {
  color: #FFFFFF;
}

.callout p {
  color: rgba(250, 247, 242, 0.93);
}

.notice-box {
  background: #F4EFE6;
  border: 1px solid #DFD4C3;
  border-left: 4px solid var(--bronze);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 15px;
  color: var(--ink);
}

.concelho-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.calm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.calm-table th,
table.calm-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.calm-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}

table.calm-table tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.faq-group-title {
  margin: 34px 0 14px;
  font-size: 27px;
  color: var(--accent);
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  min-height: 58px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--ink-muted);
  font-size: 16px;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Page header */
.page-header {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

/* Footer */
.site-footer {
  background: #1D2623;
  color: #E7E3DA;
  padding: 52px 0 36px;
  font-size: 15px;
}

.site-footer a {
  color: #E7E3DA;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-title {
  font-family: var(--serif);
  font-size: 26px;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.footer-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B7ABA0;
  margin: 0 0 10px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  text-decoration: none;
  color: #D8D3C8;
}

.footer-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  font-size: 13px;
  color: #C7C2B8;
  line-height: 1.65;
}

/* Reserved unused contact chrome (disabled in public site) */
.wa-float {
  display: none;
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
}

.mobile-sticky-bar .btn {
  min-height: 48px;
  padding: 11px 12px;
  font-size: 15px;
}

/* Desktop breakpoints */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .mobile-sticky-bar {
    display: none;
  }

  .wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(30, 51, 43, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .wa-float:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 15px;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .brand-sub {
    white-space: nowrap;
  }

  .header-cta {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-cta .btn {
    white-space: nowrap;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
  }

  .icon-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .calc-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print stylesheet for checklist & pages */
@media print {
  .top-bar, .site-header, .mobile-sticky-bar, .wa-float, .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
    color: #000000;
    padding-bottom: 0;
    font-size: 13pt;
  }
  .card, .card-calm {
    box-shadow: none;
    border-color: #CCCCCC;
  }
}


/* ——— Public informative site additions (no contact CTAs) ——— */
.notice-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
}
.notice-banner strong { font-weight: 650; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: var(--bronze);
}

.legal-box, .source-box, .info-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.info-callout {
  background: var(--accent-soft);
  border-color: transparent;
}
.source-box, .fonte-list {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.fonte-list { margin: 8px 0 0; padding-left: 1.15em; }
.fonte-list a { overflow-wrap: anywhere; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 20px 78px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { margin: 0 0 8px; font-size: 22px; }
.step-card p { margin: 0 0 8px; }
.step-card p:last-child { margin-bottom: 0; }

.place-grid, .aid-grid, .concelho-grid {
  display: grid;
  gap: 18px;
}
.place-grid { grid-template-columns: 1fr; }
.aid-grid, .concelho-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .place-grid, .aid-grid, .concelho-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .concelho-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.place-card, .aid-card, .concelho-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.place-card h3, .aid-card h3, .concelho-card h3 { margin: 0; }
.place-meta, .aid-meta {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
}
.place-card .tag, .aid-card .tag, .concelho-card .tag {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 650;
}
.soon-chip {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--bronze);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 650;
}

.checklist-visual {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist-visual li {
  position: relative;
  padding: 12px 14px 12px 44px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.checklist-visual li::before {
  content: "☐";
  position: absolute;
  left: 14px;
  top: 10px;
  color: var(--accent);
  font-size: 18px;
}

.header-cta { display: none !important; }
.wa-float, .mobile-sticky-bar { display: none !important; }

.hero-alt-call { margin-top: 10px; }

@media print {
  .notice-banner, .site-header, .site-footer, .no-print, .top-bar { display: none !important; }
}

/* ---- 2026-11-28: guias SEO, consentimento ---- */
.prose { max-width: 860px; }
.prose h2 { margin-top: 40px; }
.updated-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); }
.small-note { font-size: 14px; color: var(--ink-muted); }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.key-facts > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.key-facts span { display: block; font-size: 13px; color: var(--ink-muted); }
.key-facts strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1.15; margin-top: 4px; }
.deadline-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.deadline-strip > div { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px; text-align: center; font-size: 14px; }
.deadline-strip > div:first-child, .deadline-strip > div:last-child { background: var(--accent); color: #fff; }
.deadline-strip strong, .deadline-strip span { display: block; }
.related-guides { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.related-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.related-guides a { color: var(--accent); font-weight: 500; }
.related-wrap { padding-top: 24px; padding-bottom: 24px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 10px; }
@media print { .cookie-banner, .related-wrap { display: none !important; } }

/* === CA LOCAL LAYER (build_local.py) === */
.ca-finder{background:#fff;border:1px solid rgba(43,69,59,.18);border-radius:18px;padding:20px 20px 14px;box-shadow:0 10px 30px rgba(43,69,59,.08);margin:22px 0 8px;max-width:720px}
.ca-finder-label{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-size:1.55rem;font-weight:600;color:#2B453B;margin:0 0 4px}
.ca-finder-hint{margin:0 0 12px;font-size:15px;color:var(--ink-muted,#5b625e)}
.ca-finder-row{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.ca-finder-box{position:relative;flex:1 1 280px}
.ca-finder-box input{width:100%;box-sizing:border-box;min-height:52px;font-size:17px;padding:12px 16px;border:1.5px solid rgba(43,69,59,.35);border-radius:12px;background:#FAF7F2;color:#1f2a25}
.ca-finder-box input:focus{outline:3px solid rgba(43,69,59,.25);outline-offset:1px;border-color:#2B453B;background:#fff}
.ca-finder-row .btn{min-height:52px}
.ca-finder-list{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:#fff;border:1px solid rgba(43,69,59,.2);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.12);max-height:360px;overflow:auto}
.ca-finder-opt{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:8px;cursor:pointer}
.ca-finder-opt strong{font-weight:600;color:#1f2a25}
.ca-finder-opt span{font-size:14px;color:var(--ink-muted,#5b625e)}
.ca-finder-opt.is-active,.ca-finder-opt:hover{background:#EEF3EF}
.ca-finder-status{min-height:1.2em;margin:8px 0 0;font-size:14px;color:var(--ink-muted,#5b625e)}
.hero .ca-finder{margin-top:18px}
.ca-local-table td,.ca-local-table th{vertical-align:top;font-size:15px}
.ca-local-table tr:target{background:#FFF6DD;outline:2px solid #E5C770}
.ca-local-table .tag{font-size:11px;margin-left:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:640px){.ca-finder{padding:16px 14px 10px;border-radius:14px}.ca-finder-row .btn{width:100%}.ca-local-table{font-size:14px}}
/* === /CA LOCAL LAYER === */

/* === CA FUN LAYER (build_funerarias.py) === */
.ca-before{background:#f7f3ee;border-radius:14px;padding:16px 20px;margin:22px 0}
.ca-before ul{margin:0;padding-left:20px}.ca-before li{margin:4px 0}
.ca-ag h3{font-size:1.05rem;margin:0 0 6px}.ca-ag-foot{font-size:13px;color:#6b6b6b;margin:10px 0 0}
.ca-claim{color:#6b6b6b;text-decoration:underline;text-underline-offset:2px}
.ca-ag-photos{display:flex;gap:6px;overflow-x:auto;margin:8px 0}.ca-ag-photos img{border-radius:8px;object-fit:cover;flex:0 0 auto}
.ca-fun-list{columns:3 180px;padding-left:18px;margin:6px 0 18px}.ca-fun-list li{break-inside:avoid;margin:3px 0}
.ca-ag-correct{margin-top:14px}
/* === /CA FUN LAYER === */

/* === AMPARO QUALITY LAYER (build_quality.py / plan-calidad.md) — editar só aqui; bloco substituível === */
.prose{max-width:760px}
.prose.ca-wide{max-width:800px}
.prose p,.prose li{line-height:1.78}
.prose h2{scroll-margin-top:96px;margin-top:2.4em}
.prose h2:first-child{margin-top:0}
.ca-toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 22px;margin:24px 0 8px;box-shadow:var(--shadow-sm)}
.ca-toc-title{margin:0 0 8px;font-weight:600;font-size:15px;color:var(--ink)}
.ca-toc-title span{font-weight:400;color:var(--ink-muted)}
.ca-toc ol{margin:0;padding-left:20px;columns:1;font-size:15.5px}
.ca-toc li{margin:3px 0;line-height:1.5;break-inside:avoid}
.ca-toc a{text-decoration:none}
.ca-toc a:hover{text-decoration:underline}
@media (min-width:768px){.ca-toc ol{columns:2;column-gap:32px}}
.ca-toc-wrap{max-width:780px}
.ca-respire-wrap{padding:28px 0 0}
.ca-respire{background:linear-gradient(180deg,#F4F8F5 0%,#EEF4F0 100%);border:1px solid #CFE0D6;border-radius:var(--radius);padding:24px 24px 18px;max-width:980px}
.ca-respire-kicker{font-family:var(--serif);font-size:28px;line-height:1.15;color:var(--accent);margin:0 0 14px;font-weight:600}
.ca-respire-grid{display:grid;gap:18px}
@media (min-width:768px){.ca-respire-grid{grid-template-columns:1fr 1fr;gap:28px}}
.ca-respire-h{font-weight:600;margin:0 0 6px;font-size:16px}
.ca-respire ol,.ca-respire ul{margin:0;padding-left:20px;font-size:16px}
.ca-respire li{margin:4px 0}
.ca-respire-foot{margin:14px 0 4px;font-weight:600}
.ca-care{background:#FBF6EE;border:1px solid #E9DCC6;border-left:4px solid var(--bronze);border-radius:var(--radius-sm);padding:16px 20px;margin:32px 0 0}
.ca-care-title{font-family:var(--serif);font-size:23px;font-weight:600;margin:0 0 4px;color:var(--ink)}
.ca-care p{margin:0 0 6px}
.ca-care-src{font-size:13.5px;color:var(--ink-muted);margin:6px 0 0}
.ca-next{display:block;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 22px;margin:36px 0 0;box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s}
.ca-next:hover{border-color:var(--accent);box-shadow:var(--shadow-md);color:var(--ink)}
.ca-next-k{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--bronze);font-weight:600}
.ca-next strong{display:block;font-family:var(--serif);font-size:24px;color:var(--accent);line-height:1.2;margin:4px 0}
.ca-next span:last-child{color:var(--ink-muted);font-size:15.5px}
/* Ferramentas: plano e quem avisar */
.ca-toolbar{position:sticky;top:76px;z-index:5;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;background:rgba(250,247,242,.97);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;margin:0 0 18px}
.ca-progress{flex:1 1 220px}
.ca-progress p{margin:4px 0 0;font-size:14px;color:var(--ink-muted)}
.ca-progress-bar{height:8px;background:var(--bg-warm);border-radius:99px;overflow:hidden}
.ca-progress-bar span{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .3s ease}
.ca-toolbar-btns{display:flex;gap:8px}
.ca-phase-nav ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 10px}
.ca-phase-nav a{display:inline-block;padding:6px 12px;border:1px solid var(--border);border-radius:99px;background:var(--surface);text-decoration:none;font-size:14.5px;color:var(--ink)}
.ca-phase-nav a:hover{border-color:var(--accent);color:var(--accent)}
.ca-phase{scroll-margin-top:150px}
.ca-phase h2{scroll-margin-top:150px}
.ca-phase-intro{color:var(--ink-muted);margin-top:-4px}
.ca-tasks{list-style:none;padding:0;margin:12px 0 0}
.ca-task{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);margin:0 0 10px;transition:background .15s,border-color .15s}
.ca-task label{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;cursor:pointer}
.ca-task input{position:absolute;opacity:0;width:1px;height:1px}
.ca-task-box{flex:0 0 26px;height:26px;border:2px solid #9DB3A7;border-radius:8px;background:#fff;margin-top:1px;position:relative;transition:all .15s}
.ca-task input:focus-visible + .ca-task-box{outline:3px solid #6E8F7E;outline-offset:2px}
.ca-task input:checked + .ca-task-box{background:var(--accent);border-color:var(--accent)}
.ca-task input:checked + .ca-task-box::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:13px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
.ca-task-text{display:flex;flex-direction:column;gap:3px}
.ca-task-text strong{font-size:16.5px;line-height:1.4}
.ca-task-text span{color:var(--ink-muted);font-size:15.5px;line-height:1.6}
.ca-task.is-done{background:#F3F7F4;border-color:#CFE0D6}
.ca-task.is-done .ca-task-text strong{text-decoration:line-through;text-decoration-color:#9DB3A7;color:var(--ink-muted)}
.ca-what{font-size:14.5px!important}
.ca-notify .ca-task label{padding-right:120px}
.ca-na{position:absolute;right:12px;top:12px;border:1px solid var(--border);background:var(--bg);border-radius:99px;font-size:13px;padding:4px 10px;cursor:pointer;color:var(--ink-muted)}
.ca-na[aria-pressed="true"]{background:var(--bg-warm);color:var(--ink)}
.ca-task.is-na{opacity:.6}
@media (max-width:560px){.ca-notify .ca-task label{padding-right:16px;padding-bottom:44px}.ca-na{top:auto;bottom:10px;left:56px;right:auto}.ca-toolbar{top:70px}}
.ca-done{background:var(--accent-soft);border-radius:var(--radius);padding:16px 20px;margin:24px 0}
/* Glossário */
.ca-gloss-tools{position:sticky;top:76px;z-index:5;background:rgba(250,247,242,.97);padding:10px 0 12px;border-bottom:1px solid var(--border);margin-bottom:12px}
.ca-gloss-tools .calc-input{width:100%;max-width:460px}
.ca-letters{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}
.ca-letters a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border-radius:8px;border:1px solid var(--border);background:var(--surface);text-decoration:none;font-weight:600;font-size:14px}
.ca-gloss{margin:0}
.ca-gloss-item{padding:14px 0;border-bottom:1px solid var(--border);scroll-margin-top:200px}
.ca-gloss dt{font-family:var(--serif);font-size:24px;font-weight:600;color:var(--ink);scroll-margin-top:200px}
.ca-gloss dd{margin:2px 0 0;color:var(--ink-muted)}
.ca-gloss-item:target,.ca-gloss dt:target{background:#FBF6EE}
.soon-chip{color:#6B543B}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.ca-toolbar,.ca-phase-nav,.ca-na,.ca-next,.ca-toc,.ca-gloss-tools{display:none!important}.ca-task{break-inside:avoid;border-color:#999}.ca-task-box{border-color:#333}.ca-care{border-color:#999}}

/* === CA POLISH (build_polish.py) === */
.updated-note { font-size: 13px; opacity: .75; }
.ca-fontes { margin: 36px 0 0; padding: 0; border: 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-muted); }
.ca-fontes > summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--ink-muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.ca-fontes > summary::-webkit-details-marker { display: none; }
.ca-fontes > summary::before { content: "+"; display: inline-block; width: 1.1em; text-align: center; font-weight: 600; }
.ca-fontes[open] > summary::before { content: "–"; }
.ca-fontes > summary:focus-visible { outline: 2px solid var(--gold, #b08a4a); outline-offset: 2px; }
.ca-fontes .fonte-list { font-size: 14px; }
.ca-fontes p { font-size: 14px; margin: 8px 0; }
.ca-estado-link { margin: 28px 0 0; font-size: 15px; color: var(--ink-muted); }
.ca-partner { margin: 0 0 6px; }
.ca-partner a { text-decoration: underline; }
.ca-term { position: relative; display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; line-height: inherit; cursor: help;
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--ink-muted, #8a8378); text-align: inherit; }
.ca-term:focus-visible { outline: 2px solid var(--gold, #b08a4a); outline-offset: 2px; border-radius: 2px; }
.ca-term .ca-def { display: none; position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: min(320px, 78vw); padding: 10px 12px; border-radius: 10px;
  background: var(--ink, #2a2622); color: #fff; font-size: 14px; line-height: 1.5; font-weight: 400; font-style: normal; text-align: left; text-decoration: none; text-indent: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: normal; }
.ca-term[aria-expanded="true"] .ca-def, .ca-term:focus .ca-def { display: block; }
@media (hover: hover) { .ca-term:hover .ca-def { display: block; } }
.ca-term.is-right .ca-def { left: auto; right: 0; }
.ca-term.is-left .ca-def { left: 0; right: auto; }
@media print { .ca-term { text-decoration: none; cursor: auto; } .ca-term .ca-def { display: none !important; } .ca-fontes { display: block; } .ca-fontes > summary { display: none; } }
/* === /CA POLISH === */
/* === /AMPARO QUALITY LAYER === */

/* TD LAYER */
.steps-list{padding-left:1.2em}.steps-list li{margin:.5em 0}
.ca-finder-opt{display:flex;flex-direction:column;gap:2px;cursor:pointer}.ca-finder-opt span{font-size:13px;opacity:.75}
.ca-ag-photos{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.ca-ag-photos img{width:140px;height:100px;object-fit:cover;border-radius:8px}
.ca-tasks li{margin:.55em 0}.ca-tasks input{width:18px;height:18px;vertical-align:-3px;margin-right:6px}
@media print{.site-header,.top-bar,.notice-banner,.site-footer,.no-print,.cookie-banner{display:none!important}}
