/* ===========================
   DR. WALLACE PEREIRA SANTOS
   CSS Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Custom Properties ---- */
:root {
  --color-black:      #0A0A0A;
  --color-black-soft: #1A1A1A;
  --color-gray-dark:  #2C2C2C;
  --color-gray:       #666666;
  --color-gray-light: #AAAAAA;
  --color-text-muted: var(--color-gray-light);
  --color-white:      #F5F5F0;
  --color-white-pure: #FFFFFF;
  --color-gold:       #B8960C;
  --color-gold-light: #D4AF37;
  --color-gold-bg:    rgba(184, 150, 12, 0.08);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.12);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.16);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.24);

  --transition:  0.3s ease;
  --max-width:   1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
 h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--color-gold); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; color: var(--color-black); line-height: 1.8; }

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  margin-bottom: 1.2rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(245,245,240,0.5);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

 .btn-gold {
   background: var(--color-gold);
   color: var(--color-black);
   border-color: var(--color-gold);
   font-weight: 600;
 }

 .btn-gold:hover {
   background: var(--color-gold-light);
   border-color: var(--color-gold-light);
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
 }

 .btn-whatsapp {
   background: #25D366;
   color: white;
   border-color: #25D366;
   font-weight: 600;
 }

 .btn-whatsapp:hover {
   background: #20BD5A;
   border-color: #20BD5A;
   transform: translateY(-2px);
   box-shadow: 0 8px 28px rgba(37,211,102,0.5);
 }

/* ---- Divider ---- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem 0;
}

.divider-center { margin: 1.5rem auto; }

/* =============================
   NAVBAR
   ============================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184,150,12,0.3);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.nav-logo .logo-oab {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

 .nav-links a {
   font-size: 0.85rem;
   font-weight: 400;
   color: var(--color-white-pure);
   letter-spacing: 0.06em;
   text-transform: uppercase;
   transition: color var(--transition);
   position: relative;
 }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  font-size: 0.82rem !important;
}

 /* ==================== LEGAL PAGES ==================== */
 .legal-container {
   background: #000000;
   color: #ffffff;
   max-width: 850px;
   margin: 0 auto;
   padding: 120px 2rem 80px;
 }

 .legal-content {
   max-width: 100%;
 }

 .legal-content h1 {
   color: var(--color-gold);
   margin-bottom: 1.5rem;
   font-size: 2.5rem;
   font-family: var(--font-serif);
   line-height: 1.2;
 }

 .legal-content h2 {
   color: var(--color-gold);
   margin-top: 2.5rem;
   margin-bottom: 1rem;
   font-size: 1.5rem;
   font-family: var(--font-serif);
   line-height: 1.2;
 }

 .legal-content h3 {
   color: var(--color-gold-light);
   margin-top: 2rem;
   margin-bottom: 0.75rem;
   font-size: 1.2rem;
   font-family: var(--font-serif);
   line-height: 1.2;
 }

 .legal-content p,
 .legal-content ul,
 .legal-content li {
   color: #e0e0e0;
   margin-bottom: 1.2rem;
   line-height: 1.8;
 }

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-gold);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 500;
}

.back-btn:hover {
  text-decoration: underline;
}

.update-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-info {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border-left: 4px solid var(--color-gold);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--color-gray-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-white);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--color-gold); }

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
}

/* =============================
   HERO
   ============================= */
#hero {
  background: var(--color-black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 70% 50%, rgba(184,150,12,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.4) 100%);
  pointer-events: none;
}

/* Geometric decorative lines */
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  border-left: 1px solid rgba(184,150,12,0.15);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  width: 100%;
}

.hero-content {
  flex: 1 1 300px;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.8rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-gold-light);
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.hero-subtitle-alt {
  font-size: 0.95rem;
  color: var(--color-gray-light);
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.9;
}

.oab-registro {
  color: var(--color-white);
  font-weight: 600;
}

.hero-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.hero-oab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-area-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid rgba(184,150,12,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
}

 .hero-actions {
   display: flex;
   gap: 1rem;
   margin-top: 2rem;
 }

 .hero-description {
   color: var(--color-white);
   margin-bottom: 2.5rem;
   max-width: 440px;
   font-size: 0.95rem;
   line-height: 1.6;
  }

/* ==================== CONTACT FORM & LEGAL PAGES CONTRAST FIXES ==================== */

/* Formulário: garantir contraste alto do título */
.contact-form h3 {
  color: var(--color-black);
}

/* Páginas legais: melhorar contraste no contact-info (fundo dourado claro) */
.legal-container .contact-info p {
  color: var(--color-gray-dark);
}

/* Hero Visual */
.hero-visual {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-portrait {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.hero-portrait::before {
  border-radius: 8px; /* Cantos levemente arredondados, retangular */
}

.hero-portrait::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(184,150,12,0.4);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 1;
}

.hero-portrait img,
.portrait-placeholder {
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(20%);
  position: relative;
  z-index: 2;
}

.portrait-placeholder {
  background: var(--color-gray-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.portrait-placeholder svg {
  color: var(--color-gray);
  opacity: 0.5;
}

.portrait-placeholder span {
  font-size: 0.75rem;
  color: var(--color-gray);
  text-align: center;
}

/* =============================
   CREDENCIAIS BAR
   ============================= */
#credenciais {
  background: var(--color-black-soft);
  padding: 40px 0;
  border-top: 1px solid rgba(184,150,12,0.2);
  border-bottom: 1px solid rgba(184,150,12,0.2);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cred-item {
  text-align: center;
}

.cred-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-gold-light);
  display: block;
  line-height: 1;
}

.cred-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.55);
  margin-top: 0.4rem;
}

/* =============================
   SOBRE
   ============================= */
#sobre {
  background: var(--color-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.sobre-image-wrap {
  position: sticky;
  top: 120px;
}

.sobre-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(15%);
}

.sobre-img-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  background: #E8E8E3;
  border-radius: 8px; /* Cantos levemente arredondados para retangular */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0 auto; /* Centralizar */
}

.sobre-img-placeholder svg { color: #999; }
.sobre-img-placeholder span { font-size: 0.78rem; color: #999; }

.sobre-content { padding-top: 0.5rem; }

.sobre-content h2 { margin-bottom: 0.5rem; }

.sobre-content p { margin-bottom: 1.4rem; }

.sobre-credenciais {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2.5rem;
}

.sobre-credenciais h4 {
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.sobre-credenciais ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sobre-credenciais li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245,245,240,0.8);
}

.sobre-credenciais li::before {
  content: '▸';
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* =============================
   ÁREAS DE ATUAÇÃO
   ============================= */
#areas {
  background: var(--color-black);
  color: var(--color-white);
}

#areas .section-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
}

#areas h2 { color: var(--color-white); }
#areas .divider { background: var(--color-gold); }
#areas p { color: rgba(245,245,240,0.65); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.area-card {
  background: var(--color-black-soft);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(184,150,12,0.1);
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.area-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.area-card:hover {
  background: var(--color-gray-dark);
  border-color: rgba(184,150,12,0.35);
}

.area-card:hover::after { transform: scaleX(1); }

.area-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(184,150,12,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  color: var(--color-gold);
  transition: background var(--transition), border-color var(--transition);
}

.area-card:hover .area-icon {
  background: var(--color-gold-bg);
  border-color: rgba(184,150,12,0.6);
}

.area-card h3 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.area-card > p {
  color: rgba(245,245,240,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.area-services {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(184,150,12,0.15);
  padding-top: 1.5rem;
}

.area-services li {
  font-size: 0.83rem;
  color: rgba(245,245,240,0.5);
  padding-left: 1rem;
  position: relative;
  transition: color var(--transition);
}

.area-services li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.7rem;
}

.area-card:hover .area-services li { color: rgba(245,245,240,0.75); }

/* =============================
   BLOG
   ============================= */

/* =============================
   BLOG
   ============================= */
#blog {
  background: var(--color-black);
  color: var(--color-white);
}

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

#blog h2 {
  color: var(--color-white);
}

#blog .divider {
  background: var(--color-gold);
  margin: 1.5rem auto;
}

#blog p {
  color: rgba(245,245,240,0.65);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

.news-card {
  background: var(--color-black-soft);
  border: 1px solid rgba(184,150,12,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184,150,12,0.15);
}

.news-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--color-gray-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-meta span:not(:first-child)::before {
  content: '·';
  margin-right: 0.5rem;
}

.news-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-gold-light);
  line-height: 1.3;
  transition: color var(--transition);
}

.news-card:hover .news-content h3 {
  color: var(--color-gold);
}

.news-content p {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.7);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: auto;
  transition: gap var(--transition);
}

.news-card:hover .news-link {
  gap: 10px;
  color: var(--color-gold-light);
}

/* News Card Image Placeholder (Gradient) */
.news-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 50%, var(--color-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(184,150,12,0.1) 0%, transparent 70%);
}

.news-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-gold);
  opacity: 0.8;
  z-index: 1;
}

.news-image-placeholder .news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* News Card Image Placeholder (Gradient) */
.news-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 50%, var(--color-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(184,150,12,0.1) 0%, transparent 70%);
}

.news-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-gold);
  opacity: 0.8;
  z-index: 1;
}

/* =============================
   MODAL
   ============================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-black-soft);
  border: 1px solid rgba(184,150,12,0.3);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 80px rgba(184,150,12,0.2);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-gray-dark);
  color: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-gold);
  color: var(--color-black);
  transform: rotate(90deg);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(184,150,12,0.2);
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-meta {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-category {
  background: var(--color-gold);
  color: var(--color-black);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-body {
  padding: 2rem;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 1.5rem;
  color: rgba(245,245,240,0.85);
  font-size: 1rem;
}

.modal-body h3 {
  font-family: var(--font-serif);
  color: var(--color-gold-light);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: rgba(245,245,240,0.85);
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(184,150,12,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 1rem;
    max-height: 85vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Update blog grid for placeholder support */
.news-image,
.news-image-placeholder {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Modal open state */
body.modal-open {
  overflow: hidden;
}

/* =============================
   CONTATO
   ============================= */
#contato {
  background: #F0EFE9;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contato-info h2 { margin-bottom: 0.5rem; }

.contato-info p {
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contato-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--color-white-pure);
  border-radius: var(--radius-md);
  border: 1px solid #E0E0DB;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-method:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--color-black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-method-info .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-light);
}

.contact-method-info .value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-black);
  margin-top: 0.15rem;
}

/* Form */
.contact-form {
  background: var(--color-white-pure);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid #E0E0DB;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #D8D8D3;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-light);
}

/* Contact Units Grid */
.contact-units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.unit-card {
  background: rgba(184,150,12,0.05);
  border: 1px solid rgba(184,150,12,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.unit-card:hover {
  border-color: rgba(184,150,12,0.4);
}

.unit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-gold);
}

.unit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.unit-neighborhood {
  font-size: 0.85rem;
  color: var(--color-gray-light);
  margin-bottom: 1rem;
}

.unit-card address {
  font-style: normal;
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--color-black);
}

.unit-hours {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  margin: 0.5rem 0;
}

.unit-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.unit-phone {
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
}

.unit-phone:hover {
  color: var(--color-gold);
}

.map-link {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.map-link:hover {
  gap: 0.6rem;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-units-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,150,12,0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
}

.form-check input { width: auto; flex-shrink: 0; margin-top: 3px; }

.form-check label {
  font-size: 0.8rem;
  color: var(--color-gray);
  letter-spacing: 0;
  font-weight: 400;
}

.form-check a { color: var(--color-gold); text-decoration: underline; }

.form-submit { width: 100%; justify-content: center; font-size: 0.95rem; padding: 1rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--color-gray-dark);
}

/* =============================
   FOOTER
   ============================= */
#footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.2rem;
}

.footer-brand .brand-tagline {
  font-size: 0.78rem;
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(245,245,240,0.5);
  margin-top: 1.2rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col li a {
  font-size: 0.85rem;
  color: rgba(245,245,240,0.55);
  transition: color var(--transition);
}

.footer-col li a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(245,245,240,0.08);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(245,245,240,0.35);
}

.footer-bottom a { color: rgba(245,245,240,0.35); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--color-white); }

/* Footer Units (CASAG locations) */
.footer-units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-unit {
  text-align: left;
}

.footer-unit h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.footer-unit p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  color: rgba(245,245,240,0.7);
}

.footer-unit a {
  color: rgba(245,245,240,0.7);
  text-decoration: none;
}

.footer-unit a:hover {
  color: var(--color-gold);
}

.map-link {
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  .footer-units {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(245,245,240,0.25);
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.6;
}

/* =============================
   SCROLL ANIMATIONS
   ============================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .hero-portrait { width: 300px; }
  .sobre-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    flex-direction: column;
    padding: 7rem 2rem 4rem;
  }

  .hero-portrait {
    max-width: 400px;
    width: 100%;
  }
  .hero-portrait::before { display: none; }

  .cred-grid { grid-template-columns: repeat(2, 1fr); }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-image-wrap { position: static; display: none; }

  .areas-grid { grid-template-columns: 1fr; gap: 1px; }
  .pub-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .pub-header { flex-direction: column; align-items: flex-start; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 0.9rem; border-radius: 50%; bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* =============================
   BOTÃO VOLTAR AO TOPO
   ============================= */

.pub-controls .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pub-controls .btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.last-update {
  font-size: 0.75rem;
  color: var(--color-gray);
}

.publications-full {
  padding: 60px 0 120px;
}

.pub-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .pub-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pub-grid-three {
    grid-template-columns: 1fr;
  }
}

/* Card same as main style but adjust height */
.pub-grid-three .pub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pub-grid-three .pub-thumbnail {
  aspect-ratio: 16/9;
}

.pub-grid-three .pub-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pub-grid-three .pub-body h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.pub-grid-three .pub-body p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 0.8rem;
}

.pub-grid-three .pub-meta {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}

.pub-grid-three .pub-meta span {
  margin-right: 0.5rem;
}

.pub-grid-three .pub-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-top: auto;
}

.pub-grid-three .pub-link:hover {
  text-decoration: underline;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--color-gray);
}

.error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: #c0392b;
}

.no-data {
  text-align: center;
  padding: 4rem;
  color: var(--color-gray);
}

/* =============================
   CAROUSEL DE PUBLICAÇÕES (HOME)
   ============================= */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll-left 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  flex: 0 0 calc(25% - 1.5rem); /* 4 items visible, accounting for gap */
  min-width: 280px;
}

@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(33.333% - 1.333rem); /* 3 items */
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(50% - 1rem); /* 2 items */
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .carousel-track {
    gap: 1rem;
  }
  .carousel-item {
    flex: 0 0 100%; /* 1 item */
    min-width: 100%;
  }
}

}

/* =============================
   BOTÃO VOLTAR AO TOPO
   ============================= */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 9999; /* Garantir que fique acima de tudo */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Ajuste para não cobrir o WhatsApp float */
#backToTop {
  bottom: 100px;
}

  @media (max-width: 768px) {
    #backToTop {
      bottom: 80px;
      right: 20px;
      width: 44px;
      height: 44px;
   }
}

/* UI/UX enhancements */

.pub-embed-source {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Ensure proper stacking order */
#backToTop {
  z-index: 10001 !important;
}
.whatsapp-float {
  z-index: 10000 !important;
}

/* =============================
   PLANTÃO URGÊNCIA MOBILE
   ============================= */
.emergency-float {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10002;
  background: linear-gradient(135deg, #B8960C 0%, #D4AF37 100%);
  color: #0A0A0A;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(184, 150, 12, 0.5);
  animation: pulse-emergency 2s infinite;
  align-items: center;
  gap: 0.5rem;
}

.emergency-float svg {
  flex-shrink: 0;
}

.emergency-float:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B8960C 100%);
  transform: scale(1.05);
}

@keyframes pulse-emergency {
  0% { box-shadow: 0 4px 20px rgba(184, 150, 12, 0.5); }
  50% { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.8); }
  100% { box-shadow: 0 4px 20px rgba(184, 150, 12, 0.5); }
}

@media (max-width: 768px) {
  .emergency-float {
    display: flex;
  }
  .whatsapp-float {
    display: none;
  }
}

/* Mobile: uniform area card heights */
@media (max-width: 640px) {
  .area-card {
    min-height: 380px;
  }
}

/* Blog Responsividade */
@media (max-width: 768px) {
  #blog .blog-header {
    margin-bottom: 3rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-content h3 {
    font-size: 1.2rem;
  }
  
  .news-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .news-category {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  
  .news-content {
    padding: 1.2rem;
  }
  
  .news-meta {
    font-size: 0.7rem;
  }
  
  .news-link {
    font-size: 0.8rem;
  }
}

/* =============================
   CARROSSEL HOME - ESTILO COM EMBED
   ============================= */

/* Carrossel de Publicações */
.carousel-container {
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
}

#pubTrack {
  display: flex !important;
  gap: 1.5rem !important;
  width: max-content !important;
  /* Animação de scroll automático */
  animation: scroll-left 40s linear infinite;
}

/* Pausar animação no hover */
#pubTrack:hover {
  animation-play-state: paused;
}

/* Remover animação da classe .carousel-track se existir */
.carousel-track {
  animation: none !important;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Garantir largura fixa nos cards para loop perfeito */
.carousel-item,
.pub-card {
  flex: 0 0 320px !important;
  scroll-snap-align: start !important;
  min-width: 320px !important;
  max-width: 320px !important;
}

/* Card com embed */
.pub-card {
  flex: 0 0 320px !important;
  scroll-snap-align: start !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  padding: 0 !important;
  height: auto !important;
}

.pub-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Container do embed - quadrado e compacto */
.pub-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  background: var(--color-gold-bg);
  overflow: hidden;
}

.pub-embed-container iframe,
.pub-embed-container blockquote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
}

.pub-body {
  padding: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
}

.pub-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 0.75rem !important;
}

.pub-category {
  background: var(--color-gold-bg) !important;
  color: var(--color-gold) !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.pub-date {
  color: var(--color-gray) !important;
}

.pub-body h4 {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  color: var(--color-black) !important;
  flex-grow: 1 !important;
}

.pub-link-btn {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: transparent !important;
  border: 2px solid var(--color-gold) !important;
  color: var(--color-gold) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.pub-link-btn:hover {
  background: var(--color-gold) !important;
  color: var(--color-white) !important;
}

.pub-link-btn:active {
  transform: scale(0.98) !important;
}

/* Responsividade do carrossel */
@media (max-width: 1024px) {
  .carousel-item,
  .pub-card {
    flex: 0 0 calc(33.333% - 1.333rem) !important;
    min-width: 240px !important;
    max-width: none !important;
  }
  #pubTrack {
    gap: 1.333rem !important;
  }
}

@media (max-width: 768px) {
  .carousel-item,
  .pub-card {
    flex: 0 0 calc(50% - 1rem) !important;
    min-width: 200px !important;
    max-width: none !important;
  }
  #pubTrack {
    gap: 1rem !important;
  }
}

@media (max-width: 640px) {
  .carousel-item,
  .pub-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: none !important;
  }
  #pubTrack {
    gap: 0 !important;
  }
  .pub-embed-container {
    padding-bottom: 56.25%; /* 16:9 aspect ratio para mobile */
  }
}

