/* ═══════════════════════════════════════════════════════════════
   ROSELI MOREIRA - BLOG STYLES
   Styles all rm-* classes used by blog article pages
   Depends on: style.css (design tokens must be loaded first)
   ═══════════════════════════════════════════════════════════════ */

/* ── CONTAINER ───────────────────────────────────────────────── */
.rm-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.rm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}

/* On dark hero: start transparent with light text */
.rm-nav.rm-nav-on-dark {
  background: transparent;
}
.rm-nav.rm-nav-on-dark .rm-logo-name { color: #F9F6F1; }
.rm-nav.rm-nav-on-dark .rm-logo-title { color: rgba(249,246,241,.6); }
.rm-nav.rm-nav-on-dark .rm-nav-link { color: rgba(249,246,241,.8); }
.rm-nav.rm-nav-on-dark .rm-nav-link:hover,
.rm-nav.rm-nav-on-dark .rm-nav-link.rm-active {
  color: #F9F6F1;
  background: rgba(249,246,241,.14);
  box-shadow: inset 0 0 0 1px rgba(249,246,241,.16);
}
.rm-nav.rm-nav-on-dark .rm-hamburger span { background: #F9F6F1; }


/* Scrolled: switch to light */
.rm-nav.rm-nav-scrolled,
.rm-nav:not(.rm-nav-on-dark) {
  background: rgba(250,250,249,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.rm-nav.rm-nav-scrolled .rm-logo-name { color: var(--text); }
.rm-nav.rm-nav-scrolled .rm-logo-title { color: var(--text-3); }
.rm-nav.rm-nav-scrolled .rm-nav-link { color: var(--text-2); }
.rm-nav.rm-nav-scrolled .rm-hamburger span { background: var(--text); }
.rm-nav.rm-nav-scrolled .rm-nav-link:hover,
.rm-nav.rm-nav-scrolled .rm-nav-link.rm-active,
.rm-nav:not(.rm-nav-on-dark) .rm-nav-link:hover,
.rm-nav:not(.rm-nav-on-dark) .rm-nav-link.rm-active {
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 18%, white);
  box-shadow: inset 0 0 0 1px rgba(202,138,4,.18);
}

.rm-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rm-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.rm-logo-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  transition: color var(--ease);
}
.rm-logo-title {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.rm-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rm-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
  cursor: pointer;
}
.rm-nav-link:hover,
.rm-nav-link.rm-active {
  color: var(--text);
  background: var(--bg-2);
}

/* CTA button in nav */
.rm-nav-link.rm-nav-cta.rm-btn.rm-btn-gold {
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.rm-nav-link.rm-nav-cta.rm-btn.rm-btn-gold:hover {
  background: var(--gold-d);
}

/* Hamburger */
.rm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  padding: 4px;
}
.rm-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.rm-hamburger.rm-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rm-hamburger.rm-open span:nth-child(2) { opacity: 0; }
.rm-hamburger.rm-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ──────────────────────────────────────────────── */
.rm-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rm-mobile-nav.rm-open {
  transform: translateX(0);
}
.rm-mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.rm-mobile-nav-link:hover { background: var(--bg-2); }
.rm-mobile-nav-link.rm-active {
  background: color-mix(in srgb, var(--gold) 18%, white);
  color: var(--text);
}
.rm-mobile-nav-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.rm-mobile-nav-bottom a {
  font-size: 0.875rem;
  color: var(--text-3);
}

/* ── SECTIONS ────────────────────────────────────────────────── */
.rm-section {
  padding-block: 96px;
}
.rm-section-sm {
  padding-block: 64px;
}
.rm-bg-white { background: var(--white); }
.rm-bg-ivory { background: var(--bg-2); }
.rm-bg-dark  { background: var(--dark); }

/* ── PAGE HERO (article header) ──────────────────────────────── */
.rm-page-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: linear-gradient(160deg, #1C1917 0%, #292524 60%, #3D2A0A 100%);
  position: relative;
  overflow: hidden;
}
.rm-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(202,138,4,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── ORB (decorative) ────────────────────────────────────────── */
.rm-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
}
.rm-orb-gold { background: radial-gradient(circle, #CA8A04, transparent 70%); }

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.rm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(249,246,241,.5);
  margin-bottom: 20px;
}
.rm-breadcrumb a {
  color: rgba(249,246,241,.5);
  transition: color var(--ease);
  cursor: pointer;
}
.rm-breadcrumb a:hover { color: rgba(249,246,241,.9); }
.rm-breadcrumb-sep { color: rgba(249,246,241,.3); }
.rm-breadcrumb-current { color: rgba(249,246,241,.8); }

/* ── PILL TAG ────────────────────────────────────────────────── */
.rm-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(202,138,4,.18);
  border: 1px solid rgba(202,138,4,.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FDE68A;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────────── */
.rm-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.rm-eyebrow-light { color: rgba(202,138,4,.8); }
.rm-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.rm-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 16px;
}
.rm-divider-center { margin-inline: auto; }

.rm-title-xl { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
.rm-title-lg { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; }
.rm-title-md { font-family: var(--serif); font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.25; }
.rm-title-light { color: #F9F6F1; }
.rm-title-gold em,
.rm-title-gold { color: var(--gold); }
.rm-italic { font-style: italic; }
.rm-body-lg { font-size: 1.0625rem; line-height: 1.75; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.rm-section-header { margin-bottom: 48px; }
.rm-section-header-center { text-align: center; }
.rm-section-header-center .rm-eyebrow { justify-content: center; }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.rm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rm-reveal.rm-visible {
  opacity: 1;
  transform: none;
}
.rm-reveal-delay-1 { transition-delay: 0.1s; }
.rm-reveal-delay-2 { transition-delay: 0.2s; }
.rm-reveal-delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .rm-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── ARTICLE BODY ────────────────────────────────────────────── */
.rm-article-body {
  max-width: 720px;
  margin: 0 auto;
}

.rm-article-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.rm-article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.rm-article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.rm-article-body ul,
.rm-article-body ol {
  padding-left: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-article-body ul li,
.rm-article-body ol li {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}
.rm-article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.rm-article-body ol {
  counter-reset: list;
  list-style: none;
}
.rm-article-body ol li {
  counter-increment: list;
}
.rm-article-body ol li::before {
  content: counter(list) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.rm-article-body blockquote {
  margin: 2rem 0;
  padding: 24px 28px;
  background: var(--bg-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.rm-article-body strong {
  color: var(--text);
  font-weight: 600;
}

.rm-article-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.rm-article-img img {
  width: 100%;
  display: block;
}

@media (min-width: 901px) {
  .rm-article-img.rm-parallax-ready {
    background-attachment: fixed;
    min-height: clamp(380px, 48vw, 560px);
  }

  .rm-article-img.rm-parallax-ready img {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── HIGHLIGHT BOX ───────────────────────────────────────────── */
.rm-highlight-box {
  background: #FEF3C7;
  border: 1px solid rgba(202,138,4,.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 2rem 0;
}
.rm-highlight-box p {
  font-size: 0.9375rem;
  color: #92400E;
  margin-bottom: 0;
}

/* ── GRID ────────────────────────────────────────────────────── */
.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── BLOG CARD (related articles) ───────────────────────────── */
.rm-blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.rm-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.rm-blog-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.rm-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.rm-blog-card:hover .rm-blog-img img { transform: scale(1.04); }

.rm-blog-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rm-blog-tag {
  display: inline-block;
  background: var(--gold-p);
  color: var(--gold-d);
  border: 1px solid rgba(202,138,4,.2);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}
.rm-blog-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}
.rm-blog-meta {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 16px;
  margin-top: auto;
}
.rm-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: gap var(--ease);
}
.rm-blog-read:hover { gap: 10px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.rm-btn-sm  { font-size: 0.8125rem; padding: 7px 16px; }
.rm-btn-lg  { font-size: 1rem; padding: 14px 32px; border-radius: 12px; }
.rm-btn:not(.rm-btn-sm):not(.rm-btn-lg) { font-size: 0.9375rem; padding: 11px 24px; }

.rm-btn-gold {
  background: var(--gold);
  color: var(--white);
}
.rm-btn-gold:hover {
  background: var(--gold-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(202,138,4,.3);
}

.rm-btn-wa {
  background: #25D366;
  color: var(--white);
}
.rm-btn-wa:hover {
  background: #1DA851;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.rm-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 50;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  color: var(--white);
}
.rm-wa-float svg { width: 28px; height: 28px; }
.rm-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.rm-footer {
  background: var(--dark);
  padding-block: 64px 32px;
}
.rm-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.rm-footer-logo-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #F9F6F1;
  margin-bottom: 2px;
}
.rm-footer-logo-title {
  font-size: 0.6875rem;
  color: rgba(249,246,241,.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rm-footer-desc {
  font-size: 0.875rem;
  color: rgba(249,246,241,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}
.rm-footer-socials {
  display: flex;
  gap: 8px;
}
.rm-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,246,241,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249,246,241,.6);
  transition: background var(--ease), color var(--ease);
  cursor: pointer;
}
.rm-social-icon:hover {
  background: rgba(202,138,4,.2);
  color: var(--gold);
}
.rm-footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249,246,241,.5);
  margin-bottom: 16px;
}
.rm-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-footer-link {
  font-size: 0.875rem;
  color: rgba(249,246,241,.6);
  cursor: pointer;
  transition: color var(--ease);
}
.rm-footer-link:hover { color: #F9F6F1; }

.rm-footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.rm-footer-contact-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.rm-footer-contact-text {
  font-size: 0.875rem;
  color: rgba(249,246,241,.6);
  line-height: 1.5;
}
a.rm-footer-contact-text { cursor: pointer; }
a.rm-footer-contact-text:hover { color: #F9F6F1; }

.rm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rm-footer-copy {
  font-size: 0.8125rem;
  color: rgba(249,246,241,.35);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rm-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .rm-nav-links { display: none; }
  .rm-hamburger { display: flex; }

  .rm-page-hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 48px;
    min-height: auto;
  }

  .rm-section { padding-block: 64px; }
  .rm-section-sm { padding-block: 48px; }

  .rm-grid-3 { grid-template-columns: 1fr; }
  .rm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .rm-footer-bottom { flex-direction: column; text-align: center; }

  .rm-article-body h2 { font-size: 1.375rem; }
  .rm-title-xl { font-size: 2rem; }
}

@media (max-width: 480px) {
  .rm-container { padding: 0 16px; }
  .rm-wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .rm-wa-float svg { width: 24px; height: 24px; }
}
