/* ==========================================================================
   INVESTCOAST NEGÓCIOS IMOBILIÁRIOS — LINK-IN-BIO PREMIUM
   Superfície Contínua Oceânica • Azul da Marca & Amarelo Luz
   ========================================================================== */

/* Design Tokens Fundamentais */
:root {
  /* Azul da marca auditado (#183c8d: H 222°, S 71%, L 32%) */
  --brand-blue: #183c8d;
  --blue-deep: #0e224f;
  --blue-ocean: #132f6b;
  --blue-surface: #1e469e;
  --blue-glass: rgba(24, 60, 141, 0.55);
  --blue-glass-hover: rgba(30, 70, 158, 0.75);

  /* Amarelo Brilhante (Luz Solar do Litoral — H 50°, S 100%, L 50%) */
  --accent-sun: #FFD500;
  --accent-sun-hover: #FFE033;
  --accent-glow: rgba(255, 213, 0, 0.45);
  --accent-gold-line: rgba(255, 213, 0, 0.28);

  /* Tipografia & Contraste Rigoroso (AAA) */
  --text-pure: #FFFFFF;
  --text-muted: #CFE0FF;
  --text-sub: #A8C4FC;
  --text-dark-on-sun: #081738;

  /* Bordas e Delicadezas */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 213, 0, 0.35);

  /* Dimensões e Espaçamentos Fluidos */
  --container-max: 560px;
  --pad-fluid: clamp(16px, 4.5vw, 24px);
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-btn: 16px;
}

/* Reset Técnico sem overflow-x: hidden em html/body */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-pure);
  background-color: var(--blue-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--brand-blue);
  background-image: 
    radial-gradient(circle at 50% 0%, #295bcc 0%, transparent 65%),
    radial-gradient(circle at 50% 45%, #183c8d 0%, transparent 70%),
    linear-gradient(180deg, #132f6b 0%, #0e224f 100%);
  background-attachment: scroll;
  color: var(--text-pure);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* Links & Textos com Ponto de Quebra Obrigatório */
a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

p, span, h1, h2, address {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ==========================================================================
   BARRA DE TOPO COM CRECI OFICIAL
   ========================================================================== */
.top-bar {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 34, 79, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
  padding-inline: var(--pad-fluid);
  position: relative;
  z-index: 10;
}

.top-bar-inner {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 213, 0, 0.12);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  min-height: 30px;
  flex-shrink: 0;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: var(--accent-sun);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-sun);
}

.top-bar-creci {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-sun);
  white-space: nowrap;
}

.top-bar-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   CANVAS PRINCIPAL (Superfície Contínua Sem Caixas Cinzas)
   ========================================================================== */
.page-canvas {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(24px, 5vw, 40px);
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-inline: var(--pad-fluid);
}

.content-wrapper {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
  min-width: 0;
}

/* ==========================================================================
   BLOCO DE IDENTIDADE DA MARCA
   ========================================================================== */
.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  margin-bottom: 4px;
}

/* Brilho de aura sutil atrás do logo */
.logo-wrapper::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.brand-title {
  font-size: clamp(1.85rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  line-height: 1.15;
}

.brand-segment {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-sun);
  margin-top: -6px;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(14, 34, 79, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
}

.chip-icon {
  flex-shrink: 0;
  color: var(--accent-sun);
}

.chip-text {
  overflow-wrap: anywhere;
}

.brand-quote {
  font-size: clamp(15px, 3.8vw, 16.5px);
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.45;
  margin-top: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   ROTEADOR DE DESTINOS (Os 5 Links Reais)
   ========================================================================== */
.links-router {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Botão Base com Alvo de Toque >= 56px */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  min-width: 0;
  width: 100%;
}

/* 1. Botão Principal: Destaque de Luz com Shiny Sweep Glow */
.primary-action {
  background: linear-gradient(135deg, var(--accent-sun) 0%, #F5BE00 100%);
  color: var(--text-dark-on-sun);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.primary-action .btn-title {
  color: var(--text-dark-on-sun);
  font-weight: 800;
}

.primary-action .btn-desc {
  color: #172d5c;
  font-weight: 600;
}

.primary-action .btn-icon-box {
  background: rgba(8, 23, 56, 0.12);
  color: var(--text-dark-on-sun);
}

.primary-action .btn-arrow {
  color: var(--text-dark-on-sun);
}

/* Efeito Shiny Sweep Glow animando transform: translateX EXCLUSIVAMENTE */
.primary-action .btn-glow-layer {
  position: absolute;
  inset: 0;
  transform: translateX(-150%) skewX(-25deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: shinySweep 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes shinySweep {
  0%, 20% {
    transform: translateX(-150%) skewX(-25deg);
  }
  50%, 100% {
    transform: translateX(150%) skewX(-25deg);
  }
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 213, 0, 0.6);
}

/* 2. Botões Secundários: Vidro Azul Integrado na Superfície com Fio de Luz */
.secondary-action {
  background: var(--blue-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 18px rgba(10, 22, 54, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
}

.secondary-action .btn-glow-layer {
  position: absolute;
  inset: 0;
  transform: translateX(-150%) skewX(-25deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 213, 0, 0.25) 50%, transparent 100%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-action:hover {
  background: var(--blue-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 22, 54, 0.6);
}

.secondary-action:hover .btn-glow-layer {
  transform: translateX(150%) skewX(-25deg);
}

/* Conteúdo Interno do Botão */
.btn-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-sun);
  flex-shrink: 0;
}

.btn-svg {
  display: block;
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.btn-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}

.btn-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.35;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.action-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   PAINEL INTEGRADO DE CONTATO & ENDEREÇO OFICIAL
   ========================================================================== */
.contact-info-panel {
  width: 100%;
  background: rgba(14, 34, 79, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(7, 18, 43, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-sun);
  min-width: 0;
}

.panel-icon {
  flex-shrink: 0;
}

.panel-label {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.address-street {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-pure);
}

.address-city {
  font-size: 14.5px;
  color: var(--text-sub);
}

.address-phone {
  margin-top: 4px;
}

.phone-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-sun);
  padding: 4px 0;
  min-height: 44px;
  line-height: 36px;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--accent-sun-hover);
  text-decoration: underline;
}

.address-map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  background: rgba(255, 213, 0, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--accent-sun);
  font-size: 14.5px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.address-map-action:hover {
  background: rgba(255, 213, 0, 0.22);
  transform: translateY(-1px);
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL
   ========================================================================== */
.page-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.footer-creci-badge {
  display: inline-block;
  background: rgba(14, 34, 79, 0.8);
  border: 1px solid var(--border-accent);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.footer-creci-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-sun);
}

.footer-legal {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-region {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 440px;
}

/* ==========================================================================
   RESPONSIVIDADE AJUSTADA (FAIXA 320PX A 430PX E TELAS GRANDES)
   ========================================================================== */
@media (max-width: 380px) {
  .top-bar-tagline {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
  .action-btn {
    padding: 12px 14px;
    gap: 12px;
  }
  .btn-icon-box {
    width: 38px;
    height: 38px;
  }
  .btn-title {
    font-size: 15px;
  }
  .btn-desc {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (Desativa Animações Respeitando Acessibilidade)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .primary-action .btn-glow-layer,
  .pulse-indicator {
    animation: none !important;
  }
  .action-btn,
  .secondary-action .btn-glow-layer,
  .address-map-action,
  .phone-link,
  .btn-arrow {
    transition: none !important;
  }
}
