/* --- RESET & DESIGN VARIABLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0A0A0A;
  --bg-card: #121212;
  --border-gold: rgba(197, 168, 128, 0.25);
  --border-gold-glow: rgba(197, 168, 128, 0.1);
  --color-gold: #C5A880;
  --color-gold-hover: #D8C3A5;
  --text-white: #ffffff;
  --text-muted: #8E8E93;
  --text-dark: #1C1C1E;
  
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-gold);
  color: #000000;
  padding: 10px 20px;
  z-index: 99999;
  font-weight: 600;
  transition: top 0.3s;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

/* --- PERSISTENT MAIN HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-crest {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #ffffff;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --- VIEW TOGGLING ROUTING SYSTEM --- */
.mode-view {
  display: none !important;
}

body.mode-institutional #view-institutional {
  display: block !important;
}

body.mode-card #view-card {
  display: flex !important;
}

body.mode-card .main-header {
  display: none !important; /* Hide header on business card view */
}

/* --- HERO SECTION --- */
.inst-hero {
  padding-top: 160px;
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.8) 100%);
}

.inst-hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  padding: 0 30px;
}

.inst-hero-content {
  display: flex;
  flex-direction: column;
}

.inst-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.inst-title {
  font-family: var(--font-title);
  font-size: 56px;
  font-weight: 300;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 25px;
}

.inst-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.inst-hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.inst-btn-primary {
  background: var(--color-gold);
  color: #000000;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 35px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(197, 168, 128, 0.2);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inst-btn-primary:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(197, 168, 128, 0.3);
}

.inst-btn-secondary {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  padding: 14px 35px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inst-btn-secondary:hover {
  background: rgba(197, 168, 128, 0.05);
  border-color: var(--color-gold);
  color: #ffffff;
}

.inst-hero-quote {
  border-left: 2px solid var(--color-gold);
  padding-left: 25px;
}

.quote-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 4px;
}

.quote-author {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 2px;
}

.inst-hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-border {
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 10px;
  background: #121212;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 380px;
}

.inst-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  filter: sepia(10%) contrast(102%);
}

/* --- MANIFESTO SECTION --- */
.inst-philosophy {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #0d0d0d;
}

.inst-section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 30px;
  width: 100%;
}

.section-tag-gold {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 15px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.philosophy-title-col h2 {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.2;
}

.philosophy-text-col p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.philosophy-text-col p:last-child {
  margin-bottom: 0;
}

/* --- SÓCIOS SECTION --- */
.inst-partners-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.inst-section-title {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 300;
  margin-bottom: 12px;
}

.inst-section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 70px;
  max-width: 700px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.partner-card {
  display: flex;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 2px solid var(--color-gold);
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(197, 168, 128, 0.08);
}

.partner-photo-wrapper {
  flex: 0 0 140px;
  height: 190px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
}

.partner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.partner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-info h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 2px;
}

.partner-role {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

.partner-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.partner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.partner-tags span {
  font-size: 9.5px;
  font-family: var(--font-body);
  background: rgba(197, 168, 128, 0.05);
  color: var(--color-gold);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* --- ESPECIALIDADES (Cabinet Dossier) --- */
.inst-specialties {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dossier-cabinet {
  display: flex;
  gap: 40px;
  min-height: 380px;
}

.dossier-drawer {
  flex: 0 0 240px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 20px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cabinet-file-tab {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.02);
  border-left: 4px solid var(--border-gold);
  padding: 15px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.cabinet-file-tab:hover {
  transform: translateX(4px);
  border-left-color: var(--color-gold);
  background: rgba(197, 168, 128, 0.04);
}

.cabinet-file-tab.active-tab {
  background: var(--color-gold);
  border-left-color: #ffffff;
}

.cabinet-file-tab.active-tab .file-tab-label {
  color: #000000 !important;
  font-weight: 700;
}

.file-tab-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.file-tab-handle {
  width: 16px;
  height: 6px;
  background: rgba(197, 168, 128, 0.3);
  border-radius: 10px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.dossier-sheet-viewer {
  flex: 1;
  background: radial-gradient(circle at top left, #ffffff 0%, #f7f2e4 100%);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  color: #1e293b;
  position: relative;
  overflow-y: auto;
}

.dossier-sheet-content h3 {
  font-family: var(--font-title);
  font-size: 30px;
  color: #0f172a;
  margin-bottom: 5px;
  font-weight: 700;
}

.dossier-sheet-meta {
  font-family: var(--font-body);
  font-size: 10px;
  color: #a88421;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dossier-divider {
  border: 0;
  height: 1px;
  background: rgba(197, 168, 128, 0.25);
  margin: 15px 0 25px 0;
}

.dossier-sheet-body {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.dossier-sheet-body p {
  margin-bottom: 15px;
}

.dossier-sheet-body ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.dossier-sheet-body li {
  margin-bottom: 8px;
}

.hidden-sheet {
  display: none !important;
}

/* --- DYNAMIC WOOD SHELF (Blog) --- */
.inst-blog-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.library-shelf-container {
  padding: 20px 0;
}

.shelf-wood {
  background: linear-gradient(to bottom, #2b1a12 0%, #150d09 100%);
  border: 4px solid #0f0a06;
  border-bottom-width: 14px;
  border-radius: 8px;
  padding: 30px 40px 4px 40px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6), inset 0 -6px 15px rgba(0,0,0,0.8);
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.shelf-books-grid {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
}

.book-spine-3d {
  width: 48px;
  height: 200px;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.4) 100%), #1f2736;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  box-shadow: -3px 0 6px rgba(0,0,0,0.5), 0 -5px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
}

.book-spine-3d:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: -6px 15px 25px rgba(0,0,0,0.6), 0 -10px 18px rgba(0,0,0,0.4);
  filter: brightness(1.15);
}

.book-spine-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 160px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.book-spine-3d.spine-gold {
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(197,168,128,0.2) 50%, rgba(0,0,0,0.5) 100%), #6b5324;
  border-left: 1px solid rgba(197,168,128,0.3);
}
.book-spine-3d.spine-gold .book-spine-text {
  color: #ffebbc;
}

.book-spine-3d.spine-blue {
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(59,130,246,0.2) 50%, rgba(0,0,0,0.5) 100%), #142133;
  border-left: 1px solid rgba(59,130,246,0.25);
}

.book-spine-3d.spine-green {
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(16,185,129,0.2) 50%, rgba(0,0,0,0.5) 100%), #0f2b20;
  border-left: 1px solid rgba(16,185,129,0.25);
}

/* --- CONTACT MEMORANDO --- */
.inst-contact-section {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.classical-letterhead {
  background: radial-gradient(circle at top left, #ffffff 0%, #faf6eb 100%);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 8px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  color: #1e293b;
}

.letterhead-crest {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #b2902b;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.lh-crest-logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: #b2902b;
  border: 2px solid #b2902b;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.letterhead-memo-meta {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.8;
  color: #475569;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  padding-bottom: 20px;
  margin-bottom: 35px;
}

.letterhead-memo-meta div {
  margin-bottom: 6px;
}

.letterhead-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.letterhead-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.letterhead-input-group label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.5px;
}

.letterhead-input-group input,
.letterhead-input-group textarea {
  border: none;
  border-bottom: 1px dashed rgba(197, 168, 128, 0.4);
  background: transparent;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #0f172a;
  outline: none;
  transition: border-bottom-color 0.25s ease;
}

.letterhead-input-group input:focus,
.letterhead-input-group textarea:focus {
  border-bottom-color: #b2902b;
  border-bottom-style: solid;
}

.letterhead-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.letterhead-formal-footer {
  border-top: 1px dashed rgba(197, 168, 128, 0.2);
  padding-top: 30px;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.formal-footer-disclaimer {
  flex: 1;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.letterhead-sign-area {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sign-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: #b2902b;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Wax Seal Stamp Button */
.wax-seal-btn {
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at center, #9e2a2b 0%, #701c1d 100%);
  border: 2px solid #501213;
  color: rgba(197, 168, 128, 0.85);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(112, 28, 29, 0.4), inset 0 2px 4px rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  outline: none;
}

.wax-seal-btn::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(197,168,128,0.25);
  border-radius: 50%;
}

.wax-seal-crest {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.wax-seal-btn:hover {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 12px 25px rgba(112, 28, 29, 0.5);
}

.wax-seal-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(112, 28, 29, 0.2);
}

.wax-seal-btn.sealed-animation {
  animation: seal-stamp 0.6s ease-out forwards;
}

@keyframes seal-stamp {
  0% { transform: scale(2) rotate(-15deg); opacity: 0.5; filter: brightness(1.5); }
  70% { transform: scale(0.9) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* --- ARTICLE modal --- */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: #121212;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 45px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

.article-modal-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.article-modal-close-btn:hover {
  color: var(--color-gold);
}

.article-modal-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.article-modal-header h2 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 15px;
}

.article-modal-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.article-modal-divider {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 25px 0;
}

.article-modal-body-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
}

.article-modal-body-content p {
  margin-bottom: 20px;
}

/* --- FOOTERS --- */
.main-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #060606;
  padding: 50px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-address {
  font-size: 13px;
  color: var(--color-gold);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 211, 102, 0.5);
  background-color: #20ba5a;
}

.whatsapp-floating-icon {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  display: block;
}

/* --- VIEW 2: DIGITAL VISITING CARD (3D CARD FLIP) --- */
#view-card {
  width: 100vw;
  min-height: 100vh;
  background: radial-gradient(circle at center, #151515 0%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.card-scene {
  width: 420px;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
}

.business-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
}

/* Flip state classes */
.card-scene:hover .business-card-3d,
body.card-flipped .business-card-3d {
  transform: rotateY(180deg);
}

.card-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  border: 1px solid rgba(197, 168, 128, 0.25);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* CARD FRONT */
.card-front {
  background: linear-gradient(135deg, #181818 0%, #0a0a0a 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.card-front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-front .card-crest {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.1);
}

.card-company {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 6px;
}

.card-tagline {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.card-hint {
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CARD BACK */
.card-back {
  background: linear-gradient(135deg, #0e0e0e 0%, #161616 100%);
  transform: rotateY(180deg);
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.card-back-name {
  font-family: var(--font-title);
  font-size: 20px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2px;
}

.card-back-role {
  font-family: var(--font-body);
  font-size: 9.5px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-back-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.card-link-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 10px;
  text-align: center;
  transition: var(--transition-smooth);
}

.card-link-item:hover {
  background: var(--color-gold);
  color: #000000;
  border-color: var(--color-gold);
}

.card-link-item.wpp {
  grid-column: span 2;
  border-left: 2px solid #25d366;
}

.card-back-footer {
  font-size: 8.5px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
  .inst-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .inst-hero-content {
    align-items: center;
  }
  .inst-description {
    margin-left: auto;
    margin-right: auto;
  }
  .inst-hero-actions {
    justify-content: center;
  }
  .inst-hero-quote {
    border-left: none;
    border-top: 2px solid var(--color-gold);
    padding-left: 0;
    padding-top: 15px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dossier-cabinet {
    flex-direction: column;
  }
  .dossier-drawer {
    flex-direction: row;
    flex-wrap: wrap;
    flex: auto;
  }
}

@media (max-width: 768px) {
  .inst-title {
    font-size: 40px;
  }
  .partner-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .partner-photo-wrapper {
    flex: 0 0 170px;
    width: 130px;
  }
  .letterhead-input-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .letterhead-formal-footer {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .letterhead-sign-area {
    width: 100%;
  }
  .classical-letterhead {
    padding: 30px 20px;
  }
  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-floating-icon {
    width: 26px;
    height: 26px;
  }
  .card-scene {
    width: 100%;
    max-width: 360px;
    height: 270px;
  }
  .card-back-links {
    grid-template-columns: 1fr;
  }
  .card-link-item.wpp {
    grid-column: span 1;
  }
}
