/* ====== Estilos do site público — PH Negócios ======
   Mantém o estilo original (gradientes, glow, shimmer, animações)
   mas padronizado e sem redundâncias. */
:root {
  --ph-primary: #c91212;
  --ph-primary-dark: #a30e0e;
  --ph-accent: #c91212;
  --ph-text: #1a1a1a;
  --ph-text-muted: #6b7280;
  --ph-bg-light: #f8f9fa;
  --ph-bg-dark: #000000;
  --ph-card-dark: #121212;
  --ph-border-dark: #262626;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--ph-primary); }

/* ===== Animações ===== */
@keyframes ph-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ph-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ph-slide-down { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ph-slide-right { from { transform: translateX(-15px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ph-scale-up { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ph-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ph-pulse-gentle { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@keyframes ph-skel-shim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes ph-skel-wave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-fade-in { animation: ph-fade-in .5s ease-out both; }
.animate-slide-up { animation: ph-slide-up .5s ease-out both; }
.animate-slide-down { animation: ph-slide-down .5s ease-out both; }
.animate-slide-right { animation: ph-slide-right .5s ease-out both; }
.animate-scale-up { animation: ph-scale-up .35s ease-out both; }
.animate-float { animation: ph-float 6s ease-in-out infinite; }
.animate-pulse-gentle { animation: ph-pulse-gentle 2s ease-in-out infinite; }

/* Animação ao scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all .3s;
}
.dark .ph-header {
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ph-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.ph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: inherit;
  position: relative;
}
.ph-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform .3s ease;
}
.ph-logo:hover img {
  transform: rotate(8deg) scale(1.08);
}
.ph-logo .logo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(201, 18, 18, .25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  filter: blur(10px);
}
.ph-logo:hover .logo-glow { opacity: 1; }

/* Navegação */
.ph-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ph-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.dark .ph-nav-link { color: #d1d5db; }
.ph-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--ph-primary);
  transition: width .3s ease;
}
.ph-nav-link:hover::after,
.ph-nav-link.is-active::after { width: 100%; }
.ph-nav-link:hover,
.ph-nav-link.is-active { color: var(--ph-primary); }

/* Avatar dourado com iniciais */
.ph-avatar-initials {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #000;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown menu */
.ph-dropdown {
  transform-origin: top right;
  animation: ph-dropdown-slide .2s ease-out;
}
@keyframes ph-dropdown-slide {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Hero ===== */
.ph-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 80px;
}
@media (min-width: 1024px) {
  .ph-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.ph-hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 18, 18, .1);
  color: var(--ph-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.ph-hero-text h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #111827;
}
.dark .ph-hero-text h1 { color: #f9fafb; }
.ph-hero-text p {
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 24px;
  max-width: 560px;
}
.dark .ph-hero-text p { color: #d1d5db; }
.ph-hero-text .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--ph-primary);
  font-size: 15px;
}
.ph-hero-text .read-more .material-icons {
  transition: transform .3s ease;
}
.ph-hero-text .read-more:hover .material-icons {
  transform: translateX(6px);
}

.ph-hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #1a1a1a;
}
.ph-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.ph-hero-image:hover img {
  transform: scale(1.04);
}
.ph-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  ring: 1px inset rgba(0,0,0,.1);
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.ph-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-100%);
  transition: transform 1s ease;
  pointer-events: none;
  z-index: 3;
}
.ph-hero-image:hover::after { transform: translateX(100%); }

/* ===== Section Title ===== */
.ph-section { padding: 56px 20px; }
.ph-section-inner { max-width: 1200px; margin: 0 auto; }
.ph-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.ph-section-title h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #111827;
  letter-spacing: -.02em;
}
.dark .ph-section-title h2 { color: #f9fafb; }
.ph-section-title p {
  color: var(--ph-text-muted);
  font-size: 15px;
  margin-top: 4px;
}

/* Botões de carrossel */
.ph-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: all .3s ease;
}
.dark .ph-carousel-btn { border-color: var(--ph-border-dark); }
.ph-carousel-btn:hover {
  background: var(--ph-primary);
  color: #fff;
  border-color: var(--ph-primary);
  transform: scale(1.05);
}
.ph-carousel-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

/* ===== Cards de post ===== */
.ph-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ph-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s, border-color .25s;
  cursor: pointer;
}
.dark .ph-post-card {
  background: var(--ph-card-dark);
  border-color: var(--ph-border-dark);
}
.ph-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(201, 18, 18, .25), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.ph-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .1);
}
.ph-post-card:hover::before { opacity: 1; }

.ph-post-card .image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e5e7eb;
}
.dark .ph-post-card .image { background: #1a1a1a; }
.ph-post-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ph-post-card:hover .image img { transform: scale(1.06); }

.ph-post-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ph-post-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ph-text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ph-post-card .category {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(201, 18, 18, .1);
  color: var(--ph-primary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ph-post-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s;
}
.dark .ph-post-card h3 { color: #f9fafb; }
.ph-post-card:hover h3 { color: var(--ph-primary); }
.ph-post-card p.excerpt {
  color: var(--ph-text-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.ph-post-card .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: var(--ph-text-muted);
  gap: 12px;
}
.ph-post-card .author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-post-card .author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Card pequeno de categoria */
.ph-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0f0f0;
  text-align: left;
  transition: all .3s ease;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.dark .ph-category-card {
  background: var(--ph-card-dark);
  border-color: var(--ph-border-dark);
}
.ph-category-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 18, 18, .12), transparent 70%);
  transition: transform .5s ease;
}
.ph-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 18, 18, .35);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
}
.ph-category-card:hover::after { transform: scale(1.4); }
.ph-category-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(201, 18, 18, .12);
  color: var(--ph-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ph-category-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.dark .ph-category-card h3 { color: #f9fafb; }
.ph-category-card p {
  font-size: 12px;
  color: var(--ph-text-muted);
}

/* ===== Botões públicos com efeito shimmer ===== */
.ph-btn-public {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s;
  overflow: hidden;
  z-index: 1;
}
.ph-btn-public::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left .6s;
  z-index: -1;
}
.ph-btn-public:hover::before { left: 100%; }
.ph-btn-public:disabled { opacity: .6; cursor: not-allowed; }

.ph-btn-primary-public {
  background: var(--ph-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201, 18, 18, .25);
}
.ph-btn-primary-public:hover {
  background: var(--ph-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(201, 18, 18, .35);
}

.ph-btn-outline {
  background: transparent;
  color: inherit;
  border-color: rgba(0, 0, 0, 0.15);
}
.dark .ph-btn-outline { border-color: rgba(255, 255, 255, 0.18); }
.ph-btn-outline:hover {
  border-color: var(--ph-primary);
  color: var(--ph-primary);
}

/* ===== Search bar pill ===== */
.ph-search-bar {
  position: relative;
}
.ph-search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  color: #111827;
  transition: all .25s;
}
.dark .ph-search-bar input {
  background: var(--ph-card-dark);
  border-color: var(--ph-border-dark);
  color: #f9fafb;
}
.ph-search-bar input:focus {
  outline: none;
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(201, 18, 18, .15);
}
.ph-search-bar .material-icons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* ===== Skeletons ===== */
.ph-skel {
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: ph-skel-shim 1.4s infinite;
  border-radius: 8px;
}
.dark .ph-skel {
  background: linear-gradient(90deg, #1a1a1a 25%, #262626 50%, #1a1a1a 75%);
  background-size: 200% 100%;
}
.ph-skel-pulse { animation: ph-pulse-gentle 2s cubic-bezier(.4, 0, .6, 1) infinite; }

.ph-hero-skel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16/10;
  background: #f3f4f6;
}
.dark .ph-hero-skel { background: #1a1a1a; }
.ph-hero-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-100%);
  animation: ph-skel-wave 2s infinite;
}
.dark .ph-hero-skel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
}

/* ===== Footer ===== */
.ph-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 64px 20px 28px;
  margin-top: 80px;
  color: #4b5563;
}
.dark .ph-footer {
  background: var(--ph-bg-dark);
  border-color: var(--ph-border-dark);
  color: #9ca3af;
}
.ph-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ph-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .ph-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .ph-footer-grid { grid-template-columns: 1fr; }
}
.ph-footer h5 {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.dark .ph-footer h5 { color: #9ca3af; }
.ph-footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--ph-primary);
}
.ph-footer ul { list-style: none; padding: 0; margin: 0; }
.ph-footer li { margin-bottom: 8px; }
.ph-footer .footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: inherit;
  transition: all .25s;
}
.ph-footer .footer-link::before {
  content: "→";
  position: absolute;
  left: -22px;
  opacity: 0;
  transition: all .25s;
  color: var(--ph-primary);
}
.ph-footer .footer-link:hover {
  padding-left: 18px;
  color: var(--ph-primary);
}
.ph-footer .footer-link:hover::before { opacity: 1; left: -2px; }

.ph-footer .app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all .25s;
}
.dark .ph-footer .app-btn {
  background: var(--ph-card-dark);
  border-color: var(--ph-border-dark);
}
.ph-footer .app-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ph-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.ph-footer .app-btn .material-icons {
  font-size: 26px;
}
.ph-footer .app-btn .leading-tight {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.ph-footer .app-btn .small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
}
.ph-footer .app-btn .strong {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}
.dark .ph-footer .app-btn .strong { color: #f9fafb; }

.ph-footer .social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.ph-footer .social-row a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all .25s;
}
.dark .ph-footer .social-row a {
  background: var(--ph-card-dark);
  border-color: var(--ph-border-dark);
  color: #d1d5db;
}
.ph-footer .social-row a:hover {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  color: #fff;
  transform: translateY(-2px);
}

.ph-footer .bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.dark .ph-footer .bottom { border-color: var(--ph-border-dark); }

/* ===== Tipografia conteúdo do post (.ph-prose) ===== */
.ph-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
}
.dark .ph-prose { color: #d1d5db; }
.ph-prose h1, .ph-prose h2, .ph-prose h3 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6em 0 .6em;
  color: #111827;
  letter-spacing: -.02em;
}
.dark .ph-prose h1, .dark .ph-prose h2, .dark .ph-prose h3 { color: #f9fafb; }
.ph-prose h2 { font-size: 1.6em; }
.ph-prose h3 { font-size: 1.3em; }
.ph-prose p { margin: 0 0 1.1em; }
.ph-prose a {
  color: var(--ph-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ph-prose blockquote {
  border-left: 4px solid var(--ph-primary);
  padding: 4px 0 4px 18px;
  margin: 1.4em 0;
  font-style: italic;
  color: #4b5563;
}
.dark .ph-prose blockquote { color: #d1d5db; }
.ph-prose ul, .ph-prose ol { margin: 0 0 1.1em 1.5em; }
.ph-prose img {
  border-radius: 12px;
  margin: 1.4em auto;
  max-width: 100%;
  height: auto;
  display: block;
}
.ph-prose pre {
  background: #1a1a1a;
  color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.2em 0;
  font-size: 14px;
}
.ph-prose code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.dark .ph-prose code { background: #1f1f1f; }
.ph-prose pre code { background: transparent; padding: 0; }

/* ===== Empty state ===== */
.ph-empty {
  text-align: center;
  padding: 48px 16px;
  color: #6b7280;
}
.ph-empty .material-icons {
  font-size: 56px;
  color: #d1d5db;
}
.dark .ph-empty .material-icons { color: #4b5563; }
.ph-empty h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
.dark .ph-empty h3 { color: #f3f4f6; }
