/* ============================================================
   Site público do profissional — redesign visual (2026-07).
   Convive com o Bootstrap 5 (ainda carregado para as páginas
   Sobre/Serviços/Imóveis/Contato/Detalhe do imóvel, que continuam
   com seu próprio HTML/CSS). Aqui ficam: (1) as classes do "shell"
   compartilhado por TODAS as páginas (cabeçalho, navbar, botões,
   cards, título de seção, paginação, rodapé, botão flutuante do
   WhatsApp) e (2) o conteúdo da página inicial (profile.blade.php).

   Todas as cores continuam vindo das variáveis CSS calculadas pelo
   profissional em /conta/perfil (--primary-color, --secondary-color
   etc, definidas inline no partials/head.blade.php) — nunca cores
   fixas da Stayou. custom_css do profissional é injetado DEPOIS
   deste arquivo, então sempre pode sobrescrever o que quiser.
   ============================================================ */

/* ---------- Reset leve (não conflita com Bootstrap) ---------- */
.site-contact-header, .site-header, .site-footer, .perfil-home * {
  box-sizing: border-box;
}

/* ============================================================
   SHELL COMPARTILHADO (todas as 6 páginas)
   ============================================================ */

/* ---------- Barra de contato ---------- */
.site-contact-header {
  background: var(--primary-color);
  color: #fff;
  padding: 9px 0;
  font-size: 13.5px;
}
.site-contact-header a {
  color: #fff;
  text-decoration: none;
  opacity: .92;
  transition: opacity .2s;
}
.site-contact-header a:hover { opacity: 1; }
.site-contact-header .social-links { display: inline-flex; gap: 8px; }
.site-contact-header .social-links a {
  width: 27px; height: 27px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s, transform .2s;
}
.site-contact-header .social-links a:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }

/* ---------- Cabeçalho / navbar ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  position: sticky; top: 0; z-index: 1000;
}
.site-header .navbar { padding: 12px 0; }
.navbar-brand img { max-height: 46px; }
.navbar-nav .nav-link {
  font-weight: 600; font-size: 14.5px;
  color: var(--text-color) !important;
  margin: 0 4px; padding: 8px 14px !important;
  border-radius: 999px; transition: background .2s, color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

/* ---------- Botões ---------- */
.btn-primary-custom, .btn-outline-custom, .btn-whatsapp {
  font-weight: 600;
  padding: 11px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s, border-color .2s;
}
.btn-primary-custom {
  background-color: var(--button-primary-color) !important;
  border-color: var(--button-primary-color) !important;
  color: var(--button-text-color) !important;
  border-radius: var(--btn-radius);
}
.btn-primary-custom:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--button-primary-color) 35%, transparent);
}
.btn-outline-custom {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
  border-radius: var(--btn-radius);
}
.btn-outline-custom:hover {
  background: var(--primary-color) !important;
  color: var(--button-text-color) !important;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
  border-radius: var(--btn-radius);
}
.btn-whatsapp:hover {
  background-color: #128c7e !important;
  border-color: #128c7e !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37,211,102,.35);
}

.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

/* ---------- Cards (usadas em profile/services/portfolio/property-detail) ---------- */
.card-sombra {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
  border: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-sombra:hover { transform: translateY(-7px); box-shadow: 0 20px 42px rgba(0,0,0,.13); }
.card-borda {
  border-radius: 18px;
  box-shadow: none;
  border: 2px solid #e7e3ec;
  transition: border-color .3s ease, transform .3s ease;
}
.card-borda:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.card-flat {
  border-radius: 12px;
  box-shadow: none;
  border: none;
  background: var(--white);
  transition: background .3s ease;
}
.card-flat:hover { background: var(--light-bg); }

/* ---------- Título de seção ---------- */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.section-title p { font-size: 1.02rem; color: #6b7280; max-width: 600px; margin: 0 auto; }

/* ---------- Paginação ---------- */
.pagination .page-link { color: var(--primary-color); border-radius: 10px; margin: 0 3px; border-color: #e7e3ec; }
.pagination .page-item.active .page-link {
  background-color: var(--primary-color); border-color: var(--primary-color); color: #fff;
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer-bg-color); color: var(--footer-text-color); padding: 66px 0 30px; }
.site-footer h5 { font-weight: 700; margin-bottom: 20px; color: var(--footer-text-color); font-size: 15.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 11px; font-size: 14px; }
.site-footer ul li a { color: var(--footer-text-color); opacity: .78; text-decoration: none; transition: opacity .2s; }
.site-footer ul li a:hover { opacity: 1; }
.footer-social { display: flex; gap: 10px; margin-bottom: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-text-color); transition: all .25s; text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; }
.stayou-link { color: rgba(255,255,255,.7); text-decoration: none; display: inline-flex; align-items: center; transition: color .2s; }
.stayou-link:hover { color: #fff; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 58px; height: 58px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 27px; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 1000; text-decoration: none; transition: transform .2s, background .2s;
  animation: wa-pulse 2.2s infinite;
}
.whatsapp-float:hover { background: #128c7e; color: #fff; transform: scale(1.08); }
@keyframes wa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ============================================================
   PÁGINA INICIAL (profile.blade.php)
   ============================================================ */

/* ---------- Hero ---------- */
.perfil-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 90px 0;
  background-size: cover;
  background-position: center;
}
.perfil-hero__overlay {
  position: absolute; inset: 0;
  /* Sem a cor do template sobre a capa: apenas um leve escurecimento neutro
     para contraste geral — a foto da capa continua à mostra. */
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.30) 100%);
}
.perfil-hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 34px clamp(22px, 5vw, 40px);
  /* Backdrop de leitura só atrás do texto (não tinge a capa toda). */
  background: rgba(0,0,0,.36);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
}
.perfil-hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.perfil-hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  opacity: .96;
  margin-bottom: 34px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ---------- Cartão de perfil (sobrepõe o hero) ---------- */
.perfil-card {
  background: var(--white);
  margin-top: -86px;
  position: relative;
  z-index: 3;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  padding: 44px;
}
.perfil-card__col + .perfil-card__col {
  border-left: 1px solid #eee6f0;
}
@media (max-width: 991px) {
  .perfil-card__col + .perfil-card__col { border-left: none; border-top: 1px solid #eee6f0; padding-top: 28px; margin-top: 20px; }
}
.perfil-photo-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.perfil-photo, .perfil-logo {
  width: 108px; height: 108px;
  object-fit: cover; border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.perfil-photo { border: 4px solid var(--primary-color); }
.perfil-logo { border: 4px solid var(--white); }
.perfil-logo-placeholder {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--light-bg); display: flex; align-items: center; justify-content: center;
  color: #b7adc4; font-size: 2.2rem;
}
.perfil-company-name { color: var(--primary-color); font-weight: 800; font-size: 1.5rem; margin-bottom: 6px; }
.perfil-meta-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.perfil-meta-list .item { font-size: 13.5px; color: #4a5568; }
.perfil-meta-list .item a { color: inherit; text-decoration: none; }
.perfil-meta-list .item a:hover { color: var(--primary-color); }
.perfil-meta-list .item i { color: var(--primary-color); margin-right: 6px; }

.perfil-card h5.perfil-col-title {
  font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .4px;
  color: #4a5568; border-bottom: 1px solid #eee6f0; padding-bottom: 10px; margin-bottom: 16px;
}

/* Links de documentos/materiais */
.doc-link-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; background: var(--light-bg);
  border-radius: 12px; text-decoration: none;
  transition: all .25s; border: 1px solid transparent;
}
.doc-link-card:hover { background: var(--white); border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.doc-link-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 10px; font-size: 18px; flex: 0 0 auto; }
.doc-link-title { font-weight: 600; color: var(--text-color); font-size: 13.5px; }
.doc-link-action { font-size: 11.5px; color: var(--primary-color); }
.perfil-empty-box { text-align: center; padding: 34px 15px; border-radius: 14px; background: var(--light-bg); color: #9a93a8; }

/* Redes sociais / CTA */
.social-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.social-link-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 15px 10px; border-radius: 14px; text-decoration: none;
  transition: all .25s; gap: 7px;
}
.social-link-card i { font-size: 22px; }
.social-link-card span { font-size: 12px; font-weight: 600; }
.social-link-card.facebook { background: #e8f4fd; color: #1877f2; }
.social-link-card.facebook:hover { background: #1877f2; color: #fff; transform: translateY(-3px); }
.social-link-card.instagram { background: linear-gradient(45deg, #fdf2f8, #fef3e8); color: #e4405f; }
.social-link-card.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; transform: translateY(-3px); }
.social-link-card.linkedin { background: #e8f4fc; color: #0077b5; }
.social-link-card.linkedin:hover { background: #0077b5; color: #fff; transform: translateY(-3px); }
.social-link-card.youtube { background: #fee2e2; color: #ff0000; }
.social-link-card.youtube:hover { background: #ff0000; color: #fff; transform: translateY(-3px); }
.perfil-cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.perfil-cta-stack .btn { width: 100%; }

/* ---------- Sobre ---------- */
.perfil-about { padding: 84px 0; background: var(--white); }
.perfil-about__text { color: #4a5568; font-size: 1.06rem; line-height: 1.85; }

/* ---------- Serviços ---------- */
.perfil-services { padding: 84px 0; background: var(--light-bg); }
.perfil-service-card { background: var(--white); padding: 34px 28px; text-align: center; height: 100%; }
.perfil-service-icon {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 26px; color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  transition: all .3s;
}
.perfil-service-card:hover .perfil-service-icon { background: var(--primary-color); color: #fff; transform: scale(1.06); }
.perfil-service-card h5 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; color: var(--text-color); }
.perfil-service-card p { color: #718096; font-size: .93rem; margin: 0; }

/* ---------- Busca de imóveis ---------- */
.perfil-search {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.perfil-search h3 { color: #fff; text-align: center; margin-bottom: 26px; font-weight: 700; font-size: 1.4rem; }
.perfil-search__box {
  background: var(--white); border-radius: 18px; padding: 26px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  display: grid; grid-template-columns: 1fr 200px auto; gap: 16px; align-items: end;
}
@media (max-width: 767px) { .perfil-search__box { grid-template-columns: 1fr; } }
.perfil-search label { font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 6px; display: block; }
.perfil-search input, .perfil-search select {
  width: 100%; border: 1.5px solid #e2e2ea; border-radius: 12px;
  padding: 12px 14px; font-size: 14.5px; outline: none; transition: border-color .2s;
}
.perfil-search input:focus, .perfil-search select:focus { border-color: var(--primary-color); }

/* ---------- Imóveis ---------- */
.perfil-properties { padding: 84px 0; background: var(--light-bg); }
.property-card { background: var(--white); overflow: hidden; height: 100%; }
.property-card-link { text-decoration: none; color: inherit; display: block; }
.property-card-link:hover { color: inherit; }
.property-image { height: 230px; background-size: cover; background-position: center; position: relative; }
.property-price {
  position: absolute; top: 14px; right: 14px;
  background: var(--primary-color); color: #fff;
  padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
}
.property-content { padding: 22px; }
.property-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; color: var(--text-color); }
.property-desc { color: #718096; font-size: .88rem; margin-bottom: 16px; }
.property-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.property-view-link { color: var(--primary-color); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.property-whats-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background-color: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s; flex: 0 0 auto;
}
.property-whats-btn:hover { background-color: #128c7e; transform: scale(1.08); }
.property-whats-btn i { font-size: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .perfil-hero { min-height: 440px; padding: 64px 0; background-attachment: scroll; }
  .perfil-card { margin-top: -46px; padding: 26px; }
  .section-title { margin-bottom: 34px; }
}

/* ---------- Menu mobile (usa o collapse do próprio Bootstrap, já carregado) ---------- */
@media (max-width: 991px) {
  .navbar-collapse { padding: 14px 4px 4px; }
  .navbar-nav .nav-item { width: 100%; }
  .navbar-collapse .btn-whatsapp { display: block; width: 100%; text-align: center; margin: 10px 0 0 !important; }
}

/* ---------- Animação de entrada (perfil-novo.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
