/* STYLES REVISTA - Tema Editorial / Revista Interativa */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-dark: #111111;
  --bg-luxury: #FDFBFA; /* Extremely subtle cream for luxury feel */
  --bg-paper: #F5F2ED; /* New editorial paper background */
  --text-main: #1A1A1A;
  --text-muted: #555555;
  --text-light: #FFFFFF;
  --accent: #74060F; /* Deep Red */
  --accent-soft: #DDA79D;
  --accent-blue: #212D7B; /* Deep Blue for accents only */
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Manrope', sans-serif;
  --spacing-base: 1rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--sans);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Image Resets for Magazine */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cards-grid article img, 
.cards-grid-2 article img, 
.cards-grid-3 article img, 
.book-grid article img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 1px solid #E6E4E0;
}

.cards-grid article img:hover, 
.cards-grid-2 article img:hover, 
.cards-grid-3 article img:hover, 
.book-grid article img:hover {
  transform: scale(1.02);
}

.section-dark .cards-grid article img,
.section-dark .book-grid article img {
  border-color: #333;
}

/* Typography Overrides */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
  border-bottom: 1px solid #E6E4E0;
}

.section-dark {
  background-color: var(--bg-paper);
  color: var(--text-main);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-dark h2 {
  color: var(--text-main);
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-accent {
  background-color: var(--bg-luxury);
  border-top: 1px solid rgba(33, 45, 123, 0.1);
  border-bottom: 1px solid rgba(33, 45, 123, 0.1);
}

.section-accent .eyebrow {
  color: var(--accent-blue);
  background: rgba(33, 45, 123, 0.05);
  display: inline-block;
  padding: 0.2rem 1rem;
}

.section-accent h2 {
  color: var(--accent-blue);
}

/* CTA Section & Box */
.cta-box {
  padding: 6rem;
  background: var(--bg-luxury);
  border: 1px solid rgba(116, 6, 15, 0.1);
  text-align: center;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem; bottom: 1rem;
  border: 1px solid rgba(116, 6, 15, 0.05);
  pointer-events: none;
}

/* Magazine Visuals (Real Images) */
.magazine-visual {
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
  background: transparent;
}

.magazine-visual img {
  display: block;
  width: 100%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.magazine-visual:hover img {
  transform: scale(1.05);
}

.magazine-visual.full-bleed {
  width: 100%;
  margin: 4rem 0;
  border: none;
}

/* Switch Mode Button */
.mode-switch {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.mode-switch:hover {
  background: var(--bg-accent);
  transform: translateY(-5px);
}


/* Drop Cap (Letra Capitular) */
.card.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 6rem;
  float: left;
  line-height: 0.7;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  color: var(--accent);
  font-style: normal;
}

.section-dark .card.prose p:first-of-type::first-letter {
  color: var(--accent);
}

.card.prose {
  font-size: 1.35rem;
  max-width: min(55ch, 100%);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Grids */
.content-grid-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 4rem 0;
  align-items: center;
}

@media (max-width: 900px) {
  .content-grid-large, .editorial-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Header Override */
.site-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid #E6E4E0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--accent);
}

.brand-logo {
  max-height: 40px;
}

/* Lang Switch */
.lang-switch {
  display: flex;
  gap: 1rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.lang-btn.is-active {
  opacity: 1;
  color: var(--accent);
}

/* Hero Section */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 0 2rem 0;
}

.hero-visual {
  display: none; /* Hide original visual components for magazine style */
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  max-width: 900px;
  margin: 3rem auto;
  color: var(--text-muted);
}

.hero-person {
  margin-top: 4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* JS Injected Elements Styling */
.cards-grid, .cards-grid-2, .cards-grid-3, .book-grid, .pillar-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Texto justificado para todos os cards e descrições curtas */
.mini-card p, 
.pillar p, 
.book-card p, 
.timeline-item span,
.cards-grid article p,
.book-grid article p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.cards-grid article, .book-grid article {
  border-top: 2px solid var(--text-main);
  padding-top: 1.5rem;
}

.book-cover-media {
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-image {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15));
}

.section-dark .cards-grid article, .section-dark .book-grid article {
  border-color: var(--text-main);
}

.timeline {
  display: grid;
  gap: 3rem;
  border-left: 1px solid var(--text-main);
  padding-left: 3rem;
}

.timeline article {
  position: relative;
}

.timeline article::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1rem;
  width: 2rem;
  height: 1px;
  background: var(--text-main);
}

.timeline strong {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Impact Quote */
.impact-quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-style: italic;
  text-align: center;
  max-width: 1200px;
  margin: 8rem auto;
  color: var(--accent);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--text-main);
}

.button-primary {
  background: var(--text-main);
  color: var(--bg-primary);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--text-main);
}

.button-secondary:hover {
  background: var(--text-main);
  color: var(--bg-primary);
}

/* Founder Section */
.founder-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.founder-visual {
  position: relative;
}

.image-shell-real img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery / Masonry Override */
.editorial-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

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

.masonry-image:hover {
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: var(--bg-paper);
  color: var(--text-main);
  padding: 6rem 0 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

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

.footer-logo {
  max-height: 50px;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 1.1rem;
}

.footer-links a.button {
  color: var(--bg-primary);
  display: inline-block;
}

.footer-links a:hover:not(.button) {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: #888;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MOBILE RESPONSIVENESS (100% RESPONSIVE) --- */

.menu-toggle {
  display: none; /* Safely hidden to avoid JS toggle dependency */
}

@media (max-width: 768px) {
  /* --- RESET ANTI-OVERFLOW --- */
  body, main, section, article, aside, header, footer, div {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Typography */
  h1 { font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); margin-bottom: 1.2rem; }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Disable drop cap on mobile — causes float overflow */
  .card.prose p:first-of-type::first-letter {
    font-size: inherit;
    float: none;
    line-height: inherit;
    margin: 0;
    color: inherit;
  }

  .card.prose {
    font-size: 1rem;
    max-width: 100%;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .prose p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .impact-quote {
    font-size: clamp(1.3rem, 5vw, 2rem);
    margin: 3rem auto;
    max-width: 100%;
    padding: 0 1rem;
  }

  /* Spacing */
  .section { padding: 3rem 0; }
  .hero-grid { padding: 2rem 0; }
  .container { width: 92%; }

  /* Header / Nav */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
  }

  .site-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: 0.75rem; }

  .brand-logo { height: 28px !important; width: auto; }
  .lang-switch { gap: 0.5rem; }

  /* All grids → single column */
  .cards-grid,
  .cards-grid-2,
  .cards-grid-3,
  .book-grid,
  .pillar-grid,
  .process-grid,
  .editorial-masonry,
  .content-grid-large,
  .editorial-row,
  .founder-grid,
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
    width: 100%;
  }

  .magazine-visual,
  .magazine-visual.full-bleed {
    width: 100% !important;
    margin: 1.5rem 0;
  }

  .magazine-visual img {
    max-height: 300px;
    object-fit: cover;
  }

  .cards-grid article img,
  .cards-grid-2 article img,
  .cards-grid-3 article img,
  .book-grid article img {
    max-height: 250px;
  }

/* --- EDITORIAL HIGHLIGHT (Web vs Mobile Fix) --- */
.editorial-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  padding: 10vh 5vw;
  background: var(--bg-luxury);
  width: 100%;
  margin: 4rem 0;
}

.editorial-highlight .highlight-image {
  flex: 0 0 450px;
  max-width: 100%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.editorial-highlight .highlight-image img {
  width: 100%;
  height: auto;
  display: block;
}

.editorial-highlight .highlight-text {
  flex: 0 1 600px;
}

.editorial-highlight .highlight-quote {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  font-style: italic;
  color: var(--accent);
  margin: 0;
  position: relative;
}

.editorial-highlight .highlight-quote::before {
  content: '“';
  position: absolute;
  left: -1rem;
  top: -1rem;
  font-size: 8rem;
  opacity: 0.1;
  font-style: normal;
}

@media (max-width: 768px) {
  .editorial-highlight {
    flex-direction: column;
    padding: 2rem 0;
    gap: 2rem;
    background: transparent;
    margin: 2rem 0;
  }
  .editorial-highlight .highlight-image {
    flex: none;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border: none;
  }
  .editorial-highlight .highlight-image img {
    height: auto !important;
    max-height: 350px;
    object-fit: cover !important;
  }
  .editorial-highlight .highlight-text {
    display: block; /* Don't hide the text anymore */
    text-align: center !important;
  }
  .editorial-highlight .highlight-quote {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    padding: 0 1rem !important;
  }
}

/* --- REELS VIDEO PLAYER --- */
.reels-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid var(--accent);
  margin: 2rem 0;
}

.reels-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- COLUNA SOCIAL MASONRY --- */
.social-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid rgba(0,0,0,0.05);
}

.social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Evita cortar cabeças */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .social-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .social-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

  /* Buttons */
  .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  /* CTA Box */
  .cta-box {
    padding: 2.5rem 1.2rem;
  }
  .cta-box::before { display: none; } /* remove inner border on small screens */

  /* Section Accent */
  .section-accent {
    border-left: 6px solid var(--accent-blue);
    padding-left: 1.2rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.2rem;
    gap: 1.5rem;
    border-left-width: 1px;
  }
  .timeline strong { font-size: 2rem; }

  /* Mode Switch Button */
  .mode-switch {
    bottom: 0.75rem;
    right: 0.75rem;
    left: auto;
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
    max-width: 50vw;
    text-align: center;
  }

  /* Footer */
  .site-footer { padding: 3rem 0 2rem 0; }
  .site-footer h2 { font-size: 2rem !important; }
  .footer-logo { max-height: 30px; }
}

