/* ==========================================================================
   SISAN Empreendimentos Imobiliários
   Folha de estilos unica — sem frameworks, sem CDN, sem fontes de terceiros.
   Objetivo: site rapido, leve, responsivo e acessivel.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --gold: #d2af6f;
  /* Variante escura para texto pequeno sobre fundo claro.
     #8f6a28 garante contraste >= 4.5:1 sobre branco (WCAG AA). */
  --gold-dark: #8f6a28;
  --gold-light: #e7d3a6;
  --ink: #0d0b0a;
  --ink-2: #17130f;
  --ink-3: #241e18;
  --paper: #ffffff;
  --paper-2: #faf8f5;
  --paper-3: #f3efe9;
  --text: #3b3833;
  --text-muted: #6e675e;
  --line: #e8e2d8;
  --line-dark: rgba(255, 255, 255, .14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;

  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px -22px rgba(13, 11, 10, .35);
  --shadow-sm: 0 6px 18px -10px rgba(13, 11, 10, .28);
  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

blockquote { margin: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--paper-3);
  padding: .15em .4em;
  border-radius: 4px;
}

pre {
  background: var(--ink);
  color: #eee6da;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .9rem;
}
pre code { background: none; color: inherit; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Utilitarios
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(3.2rem, 6vw, 5.6rem) 0; }
.section--alt { background: var(--paper-2); }
.section--center { text-align: center; }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}

.section__title { margin-bottom: .5rem; }

.section__lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section__cta { margin: 2.4rem 0 0; text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  padding: .8rem 1.2rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
  margin-right: .45rem;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. Botoes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { background: rgba(210, 175, 111, .12); border-color: var(--gold); color: var(--gold); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(210,175,111,.08); }

.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   5. Cabecalho
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line-dark);
}

.topbar {
  background: var(--ink-2);
  color: rgba(255, 255, 255, .74);
  font-size: .82rem;
  border-bottom: 1px solid var(--line-dark);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem 1.6rem;
  min-height: 40px;
  padding-block: .35rem;
}

.topbar__item { margin: 0; display: flex; align-items: center; }
.topbar__item a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.topbar__item a:hover { color: var(--gold); }
.topbar__item--hours { margin-right: auto; }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 78px;
  padding-block: .7rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { width: 168px; height: auto; }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { margin: 0; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: .45rem 0;
  color: rgba(255, 255, 255, .84);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--gold); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--gold); }

.masthead__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding: 1rem 20px 1.6rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav__list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.mobile-nav__list li { margin: 0; }

.mobile-nav__link {
  display: block;
  padding: .8rem 0;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav__link:hover,
.mobile-nav__link.is-active { color: var(--gold); }

.mobile-nav__contact { display: grid; gap: .7rem; }
.mobile-nav__contact .btn--ghost { color: #fff; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 11, 10, .94) 0%, rgba(13, 11, 10, .82) 46%, rgba(13, 11, 10, .55) 100%),
    linear-gradient(0deg, rgba(13, 11, 10, .75), rgba(13, 11, 10, .1));
}

.hero__inner {
  padding: clamp(4rem, 10vw, 7.5rem) 20px clamp(3.4rem, 8vw, 5.5rem);
  max-width: 820px;
}

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero__title {
  color: #fff;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(1rem, .95rem + .35vw, 1.16rem);
  color: rgba(255, 255, 255, .84);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------------------------
   7. Numeros
   -------------------------------------------------------------------------- */
.stats {
  background: var(--ink-2);
  color: #fff;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.stats__item { border-left: 2px solid var(--gold); padding-left: 1.1rem; }

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: .25rem;
}

.stats__label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .45rem;
}

.stats__text { font-size: .9rem; color: rgba(255, 255, 255, .66); margin: 0; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
}

.cards--emp { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 3rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.section--alt .card { background: var(--paper); }

.card__meta {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}

.card__title { font-size: 1.2rem; margin-bottom: .55rem; }
.card--emp .card__title { font-size: 1.32rem; }

.card__text { font-size: .95rem; color: var(--text-muted); margin-bottom: .9rem; }

.card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.card__tags li {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .22rem .7rem;
}

/* --------------------------------------------------------------------------
   9. Missao / Visao / Valores
   -------------------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) 1.4fr;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
}

.quote {
  border-left: 3px solid var(--gold);
  padding: .3rem 0 .3rem 1.3rem;
  margin-bottom: 1.6rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.values__list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.values__list li {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .35rem .95rem;
}

/* --------------------------------------------------------------------------
   10. Faixa CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.8rem, 6vw, 4.4rem);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.cta-band__title { color: #fff; margin-bottom: .35rem; }

.cta-band__text { color: rgba(255, 255, 255, .75); margin: 0; max-width: 52ch; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn--ghost { color: #fff; }

/* --------------------------------------------------------------------------
   11. Cabecalho interno de pagina
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  background-image:
    radial-gradient(120% 140% at 85% 0%, rgba(210, 175, 111, .16) 0%, transparent 55%);
}

.page-hero__title { color: #fff; margin-bottom: .4rem; }
.page-hero__lead { color: rgba(255, 255, 255, .78); max-width: 70ch; margin: 0; }

.breadcrumb { margin-bottom: 1.1rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  font-size: .82rem;
}
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, .55); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* --------------------------------------------------------------------------
   12. Conteudo longo (prosa)
   -------------------------------------------------------------------------- */
.prose { font-size: 1rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }

.prose > ol > li::marker { color: var(--gold-dark); font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 0 1.8rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 520px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: .7rem .85rem;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--paper-3); color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Contato
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}

.contact__heading { font-size: 1.35rem; margin-bottom: 1.2rem; }

.contact__list { list-style: none; padding: 0; margin: 0; }
.contact__list li { margin-bottom: 1.05rem; }

.contact__label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .2rem;
}

.contact__map { margin-top: 1.6rem; }

/* Card de atalhos (substitui o formulario) */
.contact__card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.contact__card-text {
  color: var(--text);
  margin-bottom: 1.3rem;
}

.contact__actions {
  display: grid;
  gap: .7rem;
}

.contact__note {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
}

.contact__note a {
  color: var(--gold-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. 404
   -------------------------------------------------------------------------- */
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: .3rem;
}

/* --------------------------------------------------------------------------
   15. Rodape
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.4rem;
  padding-block: clamp(2.8rem, 6vw, 4.2rem);
}

.footer__logo { width: 150px; margin-bottom: 1rem; }

.footer__text { max-width: 38ch; }

.footer__title {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer__list a, .footer__address a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
}
.footer__list a:hover, .footer__address a:hover { color: var(--gold); }

.footer__address { font-style: normal; }
.footer__address p { margin-bottom: .55rem; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.2rem;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .84rem;
}

.footer__bottom p { margin: 0; }
.footer__security a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.footer__security a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   16. Aviso de cookies
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 34px -18px rgba(0, 0, 0, .6);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 1.2rem;
}

.cookie-banner__title {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: #fff;
  margin-bottom: .3rem;
}

.cookie-banner__text { font-size: .87rem; margin: 0; max-width: 74ch; }
.cookie-banner__note { font-size: .8rem; opacity: .75; margin-top: .5rem; }

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.cookie-banner__link {
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .masthead__cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .topbar__item--hours { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .hero__actions { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
