/*
Theme Name: Nexus Blog
Description: Custom theme replicating the Nexus Radiologia main site design for the blog section.
Author: Nexus Consultoria Técnica em Radiologia
Version: 1.0
Text Domain: nexus-blog
*/

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
@font-face{font-family:'Raleway';font-style:normal;font-weight:700 900;font-display:swap;src:local('Raleway Bold'),local('Raleway-Bold')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 400;font-display:swap;src:local('Montserrat'),local('Montserrat-Regular')}
:root{
  --ink:#0A1422;--navy:#0F2035;--navy2:#1A3A5C;
  --teal:#1A9E8E;--teal2:#1A7A6E;--teal3:rgba(26,158,142,0.08);
  --muted:#6B7685;--silver:#8A9BB0;
  --off:#F2F4F7;--white:#fff;
  --border:rgba(255,255,255,0.07);
  --blight:#E2E8F0;
}
html{scroll-behavior:smooth}
body{font-family:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--off);color:var(--ink);line-height:1.7;overflow-x:hidden}

/* ── NAV ── */
nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(10,20,34,0.97);backdrop-filter:blur(20px);height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid var(--border)}
.nav-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.nav-logo{height:150px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:2.5rem;list-style:none}
.nav-links a{color:rgba(255,255,255,0.45);text-decoration:none;font-size:0.7rem;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;transition:color 0.2s}
.nav-links a:hover{color:var(--white)}
.nav-cta{background:var(--teal)!important;color:var(--white)!important;padding:0.5rem 1.4rem;border-radius:2px!important;letter-spacing:0.08em!important}
.nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--white);border-radius:1px;transition:all 0.3s}

/* ── PAGE HEADER (blog) ── */
.page-hero{background:var(--ink);padding:9rem 6% 4rem;position:relative;overflow:hidden}
.page-hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.018) 1px,transparent 1px);background-size:72px 72px}
.page-hero-inner{max-width:1240px;margin:0 auto;position:relative;z-index:1}
.page-hero-label{font-size:0.65rem;font-weight:600;letter-spacing:0.28em;text-transform:uppercase;color:var(--teal);margin-bottom:1.25rem;display:flex;align-items:center;gap:10px}
.page-hero-label::before{content:'';width:32px;height:1px;background:var(--teal)}
.page-hero h1{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:clamp(1.8rem,3vw,2.8rem);font-weight:900;color:var(--white);line-height:1.1;letter-spacing:-0.03em}
.page-hero p{color:rgba(255,255,255,0.45);font-size:0.9rem;font-weight:300;margin-top:0.75rem;max-width:560px}

/* ── SECTIONS ── */
section{padding:6rem 6%}
.si{max-width:1240px;margin:0 auto}
.eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:0.75rem}
.eyebrow-line{width:24px;height:1px;background:var(--teal)}
.eyebrow-text{font-size:0.64rem;font-weight:600;letter-spacing:0.22em;text-transform:uppercase;color:var(--teal)}
.section-title{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:clamp(1.6rem,2.4vw,2.6rem);font-weight:800;color:var(--ink);line-height:1.14;margin-bottom:1rem;letter-spacing:-0.02em}
.section-title.light{color:var(--white)}
.section-sub{color:var(--muted);font-size:0.88rem;font-weight:300;max-width:560px;margin-bottom:3.5rem;line-height:1.9}

/* ── BLOG GRID (index/archive) ── */
.blog-section{background:var(--off)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5px;background:var(--blight);border:1px solid var(--blight);border-radius:6px;overflow:hidden}
.blog-card{background:var(--white);padding:2rem;transition:background 0.2s;text-decoration:none;display:flex;flex-direction:column}
.blog-card:hover{background:#FAFBFD}
.blog-card-thumb{width:100%;height:170px;object-fit:cover;border-radius:4px;margin-bottom:1.25rem;background:var(--teal3)}
.blog-card-meta{font-size:0.65rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--teal);margin-bottom:0.6rem}
.blog-card-title{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:700;font-size:1.02rem;color:var(--ink);margin-bottom:0.6rem;letter-spacing:-0.01em;line-height:1.35}
.blog-card-excerpt{font-size:0.82rem;color:var(--muted);font-weight:300;line-height:1.8;flex-grow:1}
.blog-card-more{font-size:0.7rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--teal2);margin-top:1rem}

.blog-pagination{display:flex;justify-content:center;gap:0.5rem;margin-top:3rem}
.blog-pagination a,.blog-pagination span{padding:0.6rem 1rem;border:1px solid var(--blight);border-radius:3px;font-size:0.75rem;color:var(--ink);text-decoration:none;background:var(--white)}
.blog-pagination .current{background:var(--teal);color:var(--white);border-color:var(--teal)}

/* ── SINGLE POST ── */
.post-single{background:var(--white)}
.post-single-inner{max-width:760px;margin:0 auto}
.post-meta{font-size:0.65rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--teal);margin-bottom:1rem}
.post-title{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:clamp(1.6rem,2.6vw,2.4rem);font-weight:800;color:var(--ink);line-height:1.2;margin-bottom:1.5rem;letter-spacing:-0.02em}
.post-thumb{width:100%;border-radius:6px;margin-bottom:2rem}
.post-content{font-size:0.92rem;color:#333;font-weight:300;line-height:1.95}
.post-content p{margin-bottom:1.5rem}
.post-content h2{font-family:'Raleway',sans-serif;font-weight:800;color:var(--ink);font-size:1.4rem;margin:2.5rem 0 1rem;letter-spacing:-0.01em}
.post-content h3{font-family:'Raleway',sans-serif;font-weight:700;color:var(--ink);font-size:1.15rem;margin:2rem 0 0.85rem}
.post-content ul,.post-content ol{margin:0 0 1.5rem 1.25rem;color:#333}
.post-content li{margin-bottom:0.5rem}
.post-content img{max-width:100%;border-radius:4px;margin:1.5rem 0}
.post-content a{color:var(--teal2);text-decoration:underline}
.post-content blockquote{border-left:3px solid var(--teal);padding:0.5rem 0 0.5rem 1.5rem;color:var(--muted);font-style:italic;margin:1.5rem 0}
.post-back{display:inline-block;margin-top:3rem;font-size:0.72rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--teal2);text-decoration:none}

/* ── RECURSOS / ARTIGO (rdc-*) ── */
.rdc-page{background:var(--white)}
.rdc-hero{background:var(--ink);padding:9rem 6% 4rem;position:relative;overflow:hidden}
.rdc-hero::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.018) 1px,transparent 1px);background-size:72px 72px}
.rdc-hero .rdc-eyebrow,.rdc-hero h1,.rdc-hero .rdc-lead{position:relative;z-index:1;max-width:760px;margin-left:auto;margin-right:auto}
.rdc-eyebrow{font-size:0.65rem;font-weight:600;letter-spacing:0.28em;text-transform:uppercase;color:var(--teal);margin-bottom:1.25rem;display:flex;align-items:center;gap:10px}
.rdc-eyebrow::before{content:'';width:32px;height:1px;background:var(--teal)}
.rdc-hero h1{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:900;color:var(--white);line-height:1.18;letter-spacing:-0.03em;margin-bottom:1.25rem}
.rdc-lead{color:rgba(255,255,255,0.5);font-size:0.92rem;font-weight:300;line-height:1.95}

.rdc-section{max-width:760px;margin:0 auto;padding:3.5rem 6%}
.rdc-section h2{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:1.5rem;font-weight:800;color:var(--ink);margin-bottom:1.25rem;letter-spacing:-0.02em;line-height:1.3}
.rdc-section h3{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:1.05rem;font-weight:700;color:var(--ink);margin-bottom:0.6rem;letter-spacing:-0.01em}
.rdc-section p{color:#333;font-size:0.9rem;font-weight:300;line-height:1.95;margin-bottom:1.25rem}
.rdc-section p:last-child{margin-bottom:0}
.rdc-section a{color:var(--teal2);text-decoration:underline}
.rdc-section--highlight{background:var(--off);border-radius:8px;max-width:820px;padding:3rem}

.rdc-checklist{list-style:none;display:flex;flex-direction:column;gap:1.25rem}
.rdc-checklist li{position:relative;padding-left:1.75rem;font-size:0.9rem;color:#333;font-weight:300;line-height:1.9}
.rdc-checklist li::before{content:'✓';position:absolute;left:0;top:0.05rem;color:var(--teal);font-weight:700}
.rdc-checklist li strong{color:var(--ink);font-weight:700}

.rdc-steps{counter-reset:rdc-step;list-style:none;display:flex;flex-direction:column;gap:1.5rem}
.rdc-steps li{position:relative;padding-left:2.5rem;font-size:0.9rem;color:#333;font-weight:300;line-height:1.9}
.rdc-steps li::before{counter-increment:rdc-step;content:counter(rdc-step);position:absolute;left:0;top:0;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--teal);color:var(--white);font-family:'Raleway',sans-serif;font-weight:800;font-size:0.85rem;display:flex;align-items:center;justify-content:center}
.rdc-steps li strong{color:var(--ink);font-weight:700}

.rdc-faq-item{border-bottom:1px solid var(--blight);padding:1.5rem 0}
.rdc-faq-item:first-of-type{border-top:1px solid var(--blight)}
.rdc-faq-item h3{margin-bottom:0.5rem}
.rdc-faq-item p{margin-bottom:0;font-size:0.86rem}

.rdc-related-list{list-style:none;display:flex;flex-direction:column;gap:0.75rem}
.rdc-related-list a{font-size:0.88rem;font-weight:500;color:var(--teal2)}

.rdc-cta{background:var(--navy);text-align:center;padding:4rem 6%;max-width:none;border-radius:0}
.rdc-cta h2{color:var(--white);max-width:600px;margin:0 auto 0.75rem}
.rdc-cta p{color:rgba(255,255,255,0.5);max-width:520px;margin:0 auto 1.75rem}
.rdc-btn{display:inline-block;background:var(--teal);color:var(--white)!important;padding:0.95rem 2.2rem;border-radius:2px;text-decoration:none!important;font-family:'Raleway',sans-serif;font-weight:700;font-size:0.75rem;letter-spacing:0.12em;text-transform:uppercase;transition:background 0.2s}
.rdc-btn:hover{background:var(--teal2)}

/* ── FOOTER ── */
footer{background:var(--ink);padding:2.5rem 6%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;border-top:1px solid rgba(255,255,255,0.04)}
.footer-brand{font-family:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:800;font-size:0.82rem;color:rgba(255,255,255,0.3);letter-spacing:0.18em;text-transform:uppercase}
.footer-brand span{color:var(--teal)}
.footer-info{font-size:0.68rem;color:rgba(255,255,255,0.18);font-weight:300;text-align:right;line-height:1.7}
.footer-disc{font-size:0.62rem;color:rgba(255,255,255,0.12);font-weight:300;width:100%;text-align:center;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,0.04);font-style:italic;line-height:1.7}

/* ── RESPONSIVE ── */
@media(max-width:960px){
  .nav-links{display:none;position:fixed;top:68px;left:0;right:0;background:rgba(10,20,34,0.98);flex-direction:column;gap:0;padding:0.5rem 0;z-index:99;border-bottom:1px solid var(--border)}
  .nav-links.open{display:flex}
  .nav-links li{width:100%}
  .nav-links a{display:block;padding:1rem 6%;border-bottom:1px solid rgba(255,255,255,0.04);font-size:0.82rem}
  .nav-cta{margin:0.75rem 6%;display:block;text-align:center;border-radius:2px!important}
  .nav-toggle{display:flex}
  .blog-grid{grid-template-columns:1fr 1fr}
  footer{flex-direction:column;text-align:center}
  .footer-info{text-align:center}
}
@media(max-width:600px){
  section{padding:4rem 5%}
  nav{padding:0 5%}
  .page-hero{padding:8rem 5% 3rem}
  .blog-grid{grid-template-columns:1fr}
  footer{padding:2rem 5%}
  .rdc-hero{padding:8rem 5% 3rem}
  .rdc-section{padding:2.5rem 5%}
  .rdc-section--highlight{padding:2rem}
  .rdc-cta{padding:3rem 5%}
}
