*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sage: #8A8F78;
  --sage-dark: #6E735F;
  --sage-light: #DCCFC2;
  --sage-pale: #F5F1EC;
  --warm: #C7A97E;
  --warm-light: #C98A93;
  --ink: #4B3B35;
  --ink-mid: #7A6558;
  --ink-light: #9A8F89;
  --white: #FFFFFF;
  --cream: #F5F1EC;
  --cta: #B14F6D;
  --cta-hover: #94435B;
  --gold: #C7A97E;
  --bege: #DCCFC2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --r-sm: .5rem;
  --r-md: 1rem;
  --r-lg: 2rem;
  --r-xl: 3rem;

  --ease: cubic-bezier(.22, .68, 0, 1.2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── NAV ─── */
nav#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: .75rem 0;
  transition: background .4s, box-shadow .4s;
  background: rgba(245, 241, 236, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 75px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  background: var(--cta) !important;
  color: var(--white) !important;
  border-radius: 50px;
  font-size: .8rem !important;
  letter-spacing: .05em;
  transition: background .25s, transform .2s !important;
  text-transform: none !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--cream);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--bege);
  padding-bottom: 1rem;
}

.mobile-menu-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--cta) !important;
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body) !important;
  border-bottom: none !important;
}

/* ─── BLOG HERO ─── */
.blog-hero {
  padding: 10rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(177,79,109,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 70%, rgba(199,169,126,.14) 0%, transparent 60%),
    var(--cream);
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  justify-content: center;
}

.blog-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.blog-hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--cta);
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}


/* ─── GRADE DE POSTS ─── */
.blog-section {
  padding: 2rem 0 7rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* post em destaque ocupa 2 colunas */
.blog-grid .post-card:first-child {
  grid-column: span 2;
}

/* ─── CARD DE POST ─── */
.post-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.post-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card:first-child .post-thumb {
  aspect-ratio: 16/8;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(199,169,126,.25) 0%, rgba(177,79,109,.18) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.post-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}

.post-card:first-child h2 {
  font-size: 1.9rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cta);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--white);
  font-size: .78rem;
  flex-shrink: 0;
}

.post-author-name {
  font-size: .78rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.post-date {
  font-size: .75rem;
  color: var(--ink-light);
}

.post-sub {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.post-tag {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(177,79,109,.1);
  color: var(--cta);
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  align-self: flex-start;
}

.post-tag.sage {
  background: rgba(138,143,120,.15);
  color: var(--sage-dark);
}

.post-tag.gold {
  background: rgba(199,169,126,.18);
  color: #7A5C30;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--bege);
  margin: 0;
}

.post-card p {
  font-size: .9rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── BOTÃO LER MAIS ─── */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--cta);
  cursor: pointer;
  letter-spacing: .03em;
  transition: gap .25s, color .2s;
  align-self: flex-start;
}

.read-more-btn svg {
  transition: transform .25s;
  flex-shrink: 0;
}

.read-more-btn:hover {
  color: var(--cta-hover);
  gap: .65rem;
}

.read-more-btn:hover svg {
  transform: translateX(3px);
}

/* ─── MODAL POST ─── */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.post-modal[hidden] { display: none; }

.post-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(75, 59, 53, .55);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: overlay-in .3s ease forwards;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.post-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100vw);
  height: 100dvh;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  animation: panel-in .38s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes panel-in {
  from { transform: translateX(100%); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}

.post-modal.closing .post-modal-overlay {
  animation: overlay-in .25s ease reverse forwards;
}

.post-modal.closing .post-modal-panel {
  animation: panel-in .28s cubic-bezier(.22, .68, 0, 1.2) reverse forwards;
}

.post-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 241, 236, .9);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s, transform .2s;
  backdrop-filter: blur(6px);
}

.post-modal-close:hover {
  background: var(--cream);
  transform: scale(1.08);
}

.post-modal-img-wrap {
  position: relative;
  aspect-ratio: 16/7;
  flex-shrink: 0;
  overflow: hidden;
}

.post-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-modal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(255,255,255,.55) 100%);
}

.post-modal-content {
  padding: 2rem 2.5rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.post-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 1.75rem;
}

.post-modal-body {
  flex: 1;
}

.post-modal-body p {
  font-size: .98rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.post-modal-body p:last-child { margin-bottom: 0; }

.post-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.75rem 0 .75rem;
}

.post-modal-body blockquote {
  border-left: 3px solid rgba(138, 143, 120, .7);
  background: rgba(138, 143, 120, .1);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.65;
}

.post-modal-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-modal-cta-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-mid);
  margin: 0 !important;
}

@media (max-width: 680px) {
  .post-modal-panel {
    width: 100vw;
    animation: panel-up .38s cubic-bezier(.16, 1, .3, 1) forwards;
  }

  @keyframes panel-up {
    from { transform: translateY(100%); opacity: .6; }
    to { transform: translateY(0); opacity: 1; }
  }

  .post-modal.closing .post-modal-panel {
    animation: panel-up .28s ease reverse forwards;
  }

  .post-modal-content { padding: 1.5rem 1.25rem 2.5rem; }
}

/* ─── CTA NEWSLETTER ─── */
.blog-cta {
  background: var(--sage);
  padding: 5rem 0;
}

.blog-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.blog-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.blog-cta-inner p {
  color: rgba(245,241,236,.8);
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 300;
}

.cta-wpp-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2rem;
  background: var(--white);
  color: var(--cta);
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, transform .2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.cta-wpp-btn:hover {
  background: var(--sage-pale);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--sage-dark);
  color: rgba(245, 241, 236, .6);
  padding: 3rem 0;
  border-top: 3px solid rgba(245,241,236,.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(245, 241, 236, .6);
}

footer p { font-size: .82rem; }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: rgba(245, 241, 236, .5);
  text-decoration: none;
  font-size: .8rem;
  transition: color .25s;
}

.footer-links a:hover { color: var(--cream); }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  background: #8A8F78;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 30px rgba(138, 143, 120, .5);
  text-decoration: none;
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.1); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 30px rgba(138, 143, 120, .5); }
  50% { box-shadow: 0 6px 50px rgba(138, 143, 120, .7), 0 0 0 8px rgba(138, 143, 120, .15); }
}

.wa-float svg { width: 28px; height: 28px; fill: #F5F1EC; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid .post-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid .post-card:first-child {
    grid-column: span 1;
  }

  .blog-hero { padding: 8rem 0 3.5rem; }
}
