/*
Theme Name: Nômade Guia
Theme URI: https://nomadefotografia.com.br/guia-gramado
Author: Nômade Fotografia
Author URI: https://nomadefotografia.com.br
Description: Tema editorial minimalista de alto padrão para o Guia de Gramado da Nômade Fotografia. Sidebar de categorias à esquerda, grid fluido e visual sofisticado.
Version: 1.0.4
Text Domain: nomade-guia
*/

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

:root {
  --bg-color: #faf9f6;
  --text-color: #1a1a1a;
  --text-muted: #7a7873;
  --border-color: #e4e2dc;
  --accent-color: #4a5043;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

a:hover {
  opacity: 0.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reading Progress Bar (Ultra-Minimalist) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background-color: #111;
  z-index: 99999;
  pointer-events: none;
  transition: width 0.1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================
   1. Header / Navbar (Editorial 3-Col - Exact Match to Index Oficial)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--font-sans);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-logo {
  height: 20px;
  width: auto;
  display: block;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

.header-center a,
.header-right a,
.nav-instagram {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.header-center a:hover,
.nav-instagram:hover {
  opacity: 0.6;
}

.header-center a.active {
  color: #000;
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.mobile-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 8px;
  cursor: pointer;
}

.mobile-burger span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #faf9f6;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.mobile-menu-overlay.show {
  display: flex;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-link {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #4a5043;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================
   2. Main Editorial Layout (2 Columns)
   ========================================== */
.guide-layout-container {
  width: 100%;
  padding: 5rem 2rem 12vh; /* Alinhado ao menu oficial (2rem nas laterais) */
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 4.5rem;
  align-items: stretch;
  box-sizing: border-box;
}

/* Left Sidebar (Sticky & Pure Minimalist) */
.guide-sidebar {
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.sidebar-title em {
  font-style: italic;
}

.sidebar-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555552;
  margin-bottom: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-category-list a {
  font-size: 0.95rem;
  color: #555552;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
  padding: 0.15rem 0;
}

.sidebar-category-list a:hover {
  color: #111;
  transform: translateX(4px);
  opacity: 1;
}

.sidebar-category-list a.active {
  color: #111;
  font-weight: 500;
}

.sidebar-category-list a.active::before {
  content: '—';
  margin-right: 0.6rem;
  color: #111;
}

.sidebar-cta-note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-cta-note p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #666662;
}

.sidebar-cta-note a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* Category Filter Header */
.category-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: #111;
}

/* ==========================================
   3. Posts Grid (Right Column)
   ========================================== */
.guide-feed-col {
  min-width: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 3.5rem 2.8rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
}

.guide-card-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 4px;
  background-color: #eee;
  margin-bottom: 1.4rem;
}

.guide-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.guide-card:hover .guide-card-thumb {
  transform: scale(1.035);
}

.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.guide-card-meta .cat-badge {
  color: var(--accent-color);
  font-weight: 500;
}

.guide-card-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: #111;
  margin-bottom: 0.85rem;
}

.guide-card-title a {
  color: inherit;
}

.guide-card-title a:hover {
  opacity: 0.65;
}

.guide-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555552;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  align-self: flex-start;
}

/* Pagination */
.guide-pagination {
  margin-top: 4.5rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.guide-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a1a;
  transition: all 0.25s ease;
}

.guide-pagination .page-numbers:hover,
.guide-pagination .page-numbers.current {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.guide-empty-state {
  text-align: center;
  padding: 8vh 0;
  color: var(--text-muted);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
  color: #111;
  margin-bottom: 1rem;
}

/* ==========================================
   4. Single Post View
   ========================================== */
.single-post-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 4vh 2rem 10vh;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: opacity 0.25s ease;
}

.single-header {
  margin-bottom: 3rem;
  text-align: center;
}

.single-category {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.single-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: #111;
  margin-bottom: 1.5rem;
}

.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.single-featured-image {
  margin: 2.5rem 0 3.5rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.single-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Article Body Typography */
.single-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2b2b28;
}

.single-content p {
  margin-bottom: 1.8rem;
}

.single-content h2,
.single-content h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: #111;
  line-height: 1.25;
  margin: 3.5rem 0 1.2rem;
}

.single-content h2 {
  font-size: 2.4rem;
}

.single-content h3 {
  font-size: 1.8rem;
}

.single-content ul,
.single-content ol {
  margin: 1.5rem 0 2rem 2rem;
}

.single-content li {
  margin-bottom: 0.6rem;
}

.single-content blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--accent-color);
  border-left: 2px solid var(--accent-color);
  padding: 1rem 0 1rem 1.8rem;
  margin: 2.5rem 0;
}

.single-content figure {
  margin: 2.5rem 0;
}

.single-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ==========================================
   4.1 Social Share Section (Luxury Editorial)
   ========================================== */
.single-share-container {
  margin: 4.5rem 0 3.5rem;
  padding: 2.2rem 2.4rem;
  background-color: #faf9f6;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
}

.share-header {
  margin-bottom: 1.5rem;
}

.share-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.share-prompt {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: #111;
  line-height: 1.3;
}

.share-buttons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  background-color: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.share-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.share-btn:hover {
  background-color: #111;
  border-color: #111;
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-btn:hover svg {
  transform: scale(1.08);
}

.share-whatsapp:hover {
  background-color: #1f7a42;
  border-color: #1f7a42;
  color: #fff;
}

.share-pinterest:hover {
  background-color: #bd081c;
  border-color: #bd081c;
  color: #fff;
}

.share-toast {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translate(-50%, 100%);
  background-color: #111;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 80%);
}

@media (max-width: 600px) {
  .single-share-container {
    padding: 1.8rem 1.4rem;
  }
  .share-prompt {
    font-size: 1.25rem;
  }
  .share-btn {
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
  }
}

/* ==========================================
   5. Lead / Ensaio Conversion Box
   ========================================== */
.guide-conversion-box {
  margin: 5rem 0 3rem;
  padding: 3.5rem 3rem;
  background-color: #f6f5f2;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.conversion-eyebrow {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.conversion-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #111;
  margin-bottom: 1.2rem;
}

.conversion-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #555552;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.conversion-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.btn-primary {
  padding: 1.05rem 2.4rem;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.btn-secondary {
  padding: 1.05rem 2.4rem;
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  opacity: 1;
}

/* ==========================================
   6. Footer (Editorial 3-Col)
   ========================================== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #fff;
  color: #a3a198;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-top: 1px solid var(--border-color);
}

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

.footer-center {
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 20px;
  width: auto;
  display: block;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================
   7. Responsividade
   ========================================== */
@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
  }

  .header-center,
  .nav-instagram {
    display: none;
  }

  .mobile-burger {
    display: flex;
  }

  .guide-layout-container {
    grid-template-columns: 100%;
    gap: 2.5rem;
    padding: 2.5rem 1.2rem 8vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .guide-sidebar,
  .sidebar-sticky {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .guide-sidebar {
    overflow: hidden;
  }

  .sidebar-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .sidebar-bio,
  .sidebar-cta-note {
    display: none; /* Deixa o mobile limpo e focado no conteúdo */
  }

  .sidebar-category-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 1rem;
    gap: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-category-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar-category-list a {
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .single-post-container {
    padding: 3vh 1.2rem 8vh;
  }

  .guide-conversion-box {
    padding: 2.5rem 1.5rem;
  }

  .conversion-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 3rem 1.2rem;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}
