@font-face {
  font-family: Crimson;
  src: url("/fonts/Crimson-Roman.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202324;
  --muted: #53585a;
  --paper: #fff;
  --accent: #24483d;
  --rule: #d9dcda;
  --serif: Crimson, Georgia, serif;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.site-header, footer { border-block-end: 1px solid var(--rule); }
.header-inner, .footer-inner { width: min(100% - 2.5rem, 1040px); margin-inline: auto; padding-block: 1.3rem; display: flex; align-items: center; gap: .8rem 2rem; }
.brand { display: grid; text-decoration: none; line-height: 1.15; }
.brand strong { font: 700 1.55rem var(--serif); }
.brand strong span { margin-inline: .1em; }
.brand > span { color: var(--muted); font-size: .72rem; }
.header-nav { margin-inline-start: auto; }
.header-nav, .languages, .footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }
.header-nav a, .languages a { font-size: .82rem; text-decoration: none; }
.languages { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--rule); }
.languages a { color: var(--muted); }
.languages a[aria-current], .header-nav a:hover, .languages a:hover { color: var(--accent); text-decoration: underline; }
main { flex: 1; width: min(100% - 2.5rem, 960px); margin-inline: auto; }
.home-page { width: min(100% - 2.5rem, 690px); padding-block: clamp(3.5rem, 9vw, 8rem); }
.identity { color: var(--muted); font-size: .95rem; }
h1 { font: 400 clamp(2.85rem, 7vw, 5.2rem)/1.02 var(--serif); letter-spacing: -.035em; }
.home-intro h1 { margin-top: .55rem; }
.lead { color: var(--muted); font-size: 1.08rem; }
.service-list { margin-top: clamp(1.7rem, 5vw, 3rem); border-top: 1px solid var(--rule); }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 3.7rem; padding-block: .7rem; border-bottom: 1px solid var(--rule); text-decoration: none; }
.service-list a:hover { color: var(--accent); text-decoration: underline; }
.service-list a > span + span { color: var(--accent); }
.service-page { padding-block: clamp(2rem, 6vw, 4rem); }
.back { color: var(--muted); font-size: .87rem; }
.service-intro { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 6vw, 4rem); margin: 2rem 0 2.5rem; }
.service-intro h1 { margin-bottom: 1rem; }
.rental-management .service-intro { grid-template-columns: minmax(0, 46rem); }
.rental-management h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
.rental-management h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); }
.button { display: inline-block; margin-top: 1.1rem; color: var(--accent); font-weight: 650; }
.examples { border-top: 2px solid var(--accent); padding-top: 1rem; }
h2 { font: 400 clamp(1.65rem, 4vw, 2.25rem)/1.12 var(--serif); }
.examples ul { padding-left: 1.15rem; margin-bottom: 0; }
.examples li + li { margin-top: .45rem; }
.process, .remote { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.process ol { max-width: 46rem; padding-inline-start: 1.3rem; margin-bottom: 0; }
.process li + li { margin-top: .8rem; }
.process h3 { font-size: 1rem; }
.process p, .remote p { color: var(--muted); }
.remote { margin-top: 2rem; }
.remote p { margin-top: .6rem; max-width: 46rem; }
footer { border-block: 1px solid var(--rule) 0; font-size: .8rem; }
.footer-inner { justify-content: space-between; flex-wrap: wrap; }
.footer-inner strong, .footer-inner div > span { display: block; }
.footer-inner div > span { color: var(--muted); }

@media (max-width: 670px) {
  .header-inner { flex-wrap: wrap; gap: .7rem 1rem; }
  .languages { flex-basis: 100%; padding-inline-start: 0; border: 0; }
  .service-intro { grid-template-columns: 1fr; }
}

.home-page { width: 100%; padding: 0 0 3.75rem; }
.home-intro { background: #eef2ee; padding: clamp(2.4rem, 6vw, 5rem) max(1.25rem, calc((100% - 960px) / 2)); }
.service-search { margin-top: 1.8rem; max-width: 42rem; }
.service-search label { display: block; font-weight: 650; margin-bottom: .35rem; }
.search-controls { display: flex; }
.search-controls input, .search-controls button { font: inherit; border: 1px solid var(--accent); border-radius: 0; min-height: 3rem; }
.search-controls input { flex: 1; min-width: 0; padding-inline: .75rem; }
.search-controls button { color: white; background: var(--accent); padding-inline: 1rem; cursor: pointer; }
.search-controls input:focus-visible, .search-controls button:focus-visible { outline: 3px solid #95602e; outline-offset: 2px; z-index: 1; }
.service-directory { width: min(100% - 2.5rem, 960px); margin: 2.2rem auto 0; }
.service-directory .service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.service-directory .service-list > div { padding-top: .85rem; }
.service-directory .service-list a { display: inline; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-weight: 650; }
.service-directory .service-list a span + span { display: none; }
.service-list p, .search-status { margin-top: .35rem; color: var(--muted); font-size: .92rem; }
.search-status:empty { margin: 0; }
@media (max-width: 670px) {
  .service-directory .service-list { grid-template-columns: 1fr; gap: .6rem; }
}

#ai-note { display: block; margin-top: .35rem; color: var(--muted); }

.search-clarification { margin: 1rem 0; padding: .75rem 1rem 1rem; border: 1px solid var(--rule); }
.search-clarification legend { padding: 0 .25rem; font-weight: 650; }
.search-clarification button { margin: .2rem .4rem .2rem 0; padding: .45rem .65rem; border: 1px solid var(--accent); background: white; color: var(--accent); font: inherit; cursor: pointer; }
.search-clarification button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.estate-contact { --accent: #222; margin-top: 1.25rem; max-width: 36rem; }
.estate-contact summary { cursor: pointer; color: var(--accent); font-weight: 650; text-decoration: underline; }
.estate-contact form, .estate-contact label { display: grid; gap: .35rem; }
.estate-contact form { margin-top: .75rem; gap: .8rem; }
.estate-contact :is(input, select, textarea, button) { font: inherit; padding: .5rem; }
.estate-contact :is(input, select, textarea) { color: #222; background: #fff; border: 1px solid #767676; }
.estate-contact :is(summary, input, select, textarea, button):focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.estate-contact button { justify-self: start; background: var(--accent); color: white; border: 1px solid var(--accent); cursor: pointer; }

.compact-service .service-intro { grid-template-columns: minmax(0, 46rem); }
.compact-service h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
.compact-service h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); }

.home-shell { --ink: #222; --muted: #555; --accent: #222; --rule: #d9d9d9; color: var(--ink); }
.home-shell .home-intro { background: #f2f2f2; }
.home-shell .search-controls :is(input, button):focus-visible { outline-color: #555; }
.home-shell .home-intro h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

.estate-contact :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; }
.estate-contact :is(input:not([type="checkbox"]), select) { min-height: 2.75rem; }
.contact-phone { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr); gap: .75rem; }
.contact-privacy { display: flex; align-items: baseline; gap: .5rem; }
.estate-contact .contact-privacy label { display: inline; }

/* Versão sem formulários: o contacto abre o programa de email. */
.email-contact { margin: 1.25rem 0 1.75rem; max-width: 36rem; }
.email-contact .button { margin-top: 0; margin-right: .5rem; }
.email-contact small { display: block; margin-top: .35rem; color: #555; }
