/* ==========================================================================
   Ordenalo Blog/SEO Pages — Mobile First
   Shared styles for all content pages
   ========================================================================== */

/* Reset & Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FFF3ED;
  --secondary: #1B2A4A;
  --secondary-light: #2D4373;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #FAFAF8;
  --white: #fff;
  --border: #e8e8e4;
  --green: #25D366;
  --green-dark: #1EBE57;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s }
a:hover { color: var(--primary-dark) }
img { max-width: 100%; height: auto; display: block }

/* Container */
.container { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px }

/* ========== NAV ========== */
.blog-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.blog-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px;
}
.blog-nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--secondary) }
.blog-nav-logo img { height: 32px; width: auto }
.blog-nav-links { display: flex; gap: 8px; align-items: center }
.blog-nav-links a {
  font-size: .85rem; font-weight: 600; padding: 8px 16px; border-radius: 8px; transition: all .2s;
}
.btn-ghost { color: var(--secondary) }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary) }
.btn-primary {
  background: var(--primary); color: var(--white) !important; 
  box-shadow: 0 2px 8px rgba(255,107,53,.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,.35) }

/* ========== ARTICLE HERO ========== */
.article-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,107,53,.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(255,107,53,.08) 0%, transparent 50%);
}
.article-hero .container { position: relative; z-index: 1 }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.breadcrumbs a { color: rgba(255,255,255,.7) }
.breadcrumbs a:hover { color: var(--white) }
.breadcrumbs span { color: rgba(255,255,255,.4) }

.article-hero .badge {
  display: inline-block;
  background: rgba(255,107,53,.2);
  color: var(--primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem; font-weight: 700; line-height: 1.2;
  color: var(--white); margin-bottom: 14px;
}

.article-hero .subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.6;
  max-width: 600px;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
.article-meta span { display: flex; align-items: center; gap: 5px }

/* ========== ARTICLE BODY ========== */
.article-body { padding: 40px 0 60px }
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; color: var(--secondary);
  margin: 40px 0 16px; line-height: 1.25;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary-light);
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin: 30px 0 12px;
}
.article-body p { margin-bottom: 18px; color: var(--text-light) }
.article-body ul, .article-body ol {
  margin: 0 0 20px 20px; color: var(--text-light);
}
.article-body li { margin-bottom: 8px; padding-left: 4px }
.article-body li::marker { color: var(--primary) }

/* Info Box */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 28px 0;
}
.info-box strong { color: var(--primary-dark); display: block; margin-bottom: 6px }

/* Stat cards */
.stat-row {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin: 28px 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; color: var(--primary);
  line-height: 1;
}
.stat-card .label {
  font-size: .85rem; color: var(--text-muted); margin-top: 6px;
}

/* Comparison table */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: .9rem; overflow-x: auto; display: block;
}
.comparison-table thead th {
  background: var(--secondary); color: var(--white);
  padding: 12px 14px; text-align: left; font-weight: 600;
  white-space: nowrap;
}
.comparison-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table tbody tr:nth-child(even) { background: var(--primary-light) }
.comparison-table .highlight { color: var(--primary); font-weight: 700 }

/* Steps */
.steps-list { margin: 24px 0; counter-reset: step }
.step-item {
  display: flex; gap: 16px; margin-bottom: 24px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--secondary) }
.step-content p { margin-bottom: 0; font-size: .95rem }

/* ========== FAQ ACCORDION ========== */
.faq-section { margin: 40px 0 }
.faq-section > h2 { margin-top: 0 }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm) }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; color: var(--text);
}
.faq-question::after {
  content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--primary);
  transition: transform .25s; flex-shrink: 0;
}
.faq-item.open .faq-question::after { content: '−' }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px; padding: 0 20px 18px;
}
.faq-answer p { font-size: .9rem; color: var(--text-light); margin-bottom: 8px }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius);
  padding: 36px 28px; margin: 40px 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,107,53,.15);
}
.cta-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem; color: var(--white); margin-bottom: 10px;
  position: relative;
}
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 20px; font-size: .95rem; position: relative }
.cta-buttons { display: flex; flex-direction: column; gap: 10px; position: relative }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  transition: all .25s; text-decoration: none;
}
.cta-btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px rgba(255,107,53,.3) }
.cta-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color: var(--white) }
.cta-btn-whatsapp { background: var(--green); color: var(--white) }
.cta-btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); color: var(--white) }

/* ========== RELATED ARTICLES ========== */
.related-section { padding: 0 0 60px }
.related-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem; color: var(--secondary); margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: 1fr; gap: 14px }
.related-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  transition: all .2s; text-decoration: none;
}
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px) }
.related-card-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.related-card-text h4 { font-size: .9rem; font-weight: 700; color: var(--secondary); margin-bottom: 2px }
.related-card-text span { font-size: .8rem; color: var(--text-muted) }

/* ========== FOOTER ========== */
.blog-footer {
  background: var(--secondary);
  padding: 40px 0 24px;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
.blog-footer .container { max-width: 1100px }
.footer-top { 
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { margin-top: 8px; font-size: .85rem; line-height: 1.5 }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.footer-brand .footer-logo img { height: 28px }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 700; margin-bottom: 12px }
.footer-col ul { list-style: none }
.footer-col li { margin-bottom: 8px }
.footer-col a { color: rgba(255,255,255,.6); font-size: .85rem }
.footer-col a:hover { color: var(--primary) }
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px; font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ========== WHATSAPP FLOAT ========== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  text-decoration: none;
}
.wa-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.45) }
.wa-btn svg { width: 28px; height: 28px }

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .article-hero { padding: 60px 0 50px }
  .article-hero h1 { font-size: 2.3rem }
  .stat-row { grid-template-columns: repeat(3, 1fr) }
  .cta-buttons { flex-direction: row; justify-content: center }
  .related-grid { grid-template-columns: repeat(2, 1fr) }
}

@media (min-width: 900px) {
  .article-hero { padding: 72px 0 60px }
  .article-hero h1 { font-size: 2.65rem }
  .article-body h2 { font-size: 1.7rem }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr }
  .footer-bottom { flex-direction: row; justify-content: space-between }
  .comparison-table { display: table }
  .related-grid { grid-template-columns: repeat(3, 1fr) }
}