/* 
Theme Name: Newrole Minimal
Theme URI: https://newrole.ai
Author: Newrole
Author URI: https://newrole.ai
Description: Apple/Microsoft-inspired light theme for Newrole AI Audit + EU AI Act/GDPR pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newrole
*/

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface2:#f5f5f7;
  --text:#0b0f17;
  --muted:#5b5f67;
  --muted2:#6b7280;
  --line:#e5e7eb;
  --brand:#2563eb;
  --brandHover:#1d4ed8;
  --brandSoftBg: rgba(37, 99, 235, 0.08);
  --brandSoftBorder: rgba(37, 99, 235, 0.15);
  --brandSoftBg2: rgba(37, 99, 235, 0.06);
  --radius:16px;
  --shadow:0 18px 50px rgba(0,0,0,.08);
  --max:1120px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.site-header .inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:700;letter-spacing:.2px;
}
.logo{
  width:28px;height:28px;border-radius:10px;
  /* background:linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow:0 10px 24px rgba(37,99,235,.18); */
}
.nav{
  display:flex;gap:10px;flex-wrap:wrap;
  font-size:14px;color:var(--muted2);
  list-style: none;
}
.nav a{
  padding:8px 10px;border-radius:10px;
}
.nav a:hover{
  background:rgba(0,0,0,.04);
  color:var(--text);
}
.cta-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ===== Dropdown menu (2nd level) ===== */

.nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav .menu > li { position: relative; }

.nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
}

/* Chevron for items with children */
.nav .menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 20px;
  transform: translateY(-1px);
}

/* Submenu */
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;

  min-width: 240px;
  list-style: none;
  margin-left: 0;
  padding: 8px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16,24,40,.12);

  display: none;
  z-index: 1000;
}

@media (min-width: 901px) {
  /* Hover bridge to prevent dropdown from closing */
  .nav .menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .nav .menu > li:hover > .sub-menu,
  .nav .menu > li:focus-within > .sub-menu {
    display: block;
  }
}

.nav .sub-menu li a {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.nav .sub-menu li a:hover { background: #f5f7fb; }

/* Mobile: stacked menu + open class (если добавишь JS ниже) */
@media (max-width: 900px) {
  .nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav .sub-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    margin-top: 6px;
    padding: 6px;
  }

  .nav .menu > li.open > .sub-menu { display: block; }

  .nav .menu > li.menu-item-has-children > a {
    justify-content: space-between;
    width: 100%;
  }
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.8);
  color:var(--text);
  font-weight:600;font-size:14px;
}
.btn:hover{background:rgba(0,0,0,.03)}
.btn.primary{
  background:var(--brand);
  border-color:rgba(37,99,235,.35);
  color:#fff;
  box-shadow:0 14px 32px rgba(37,99,235,.18);
}
.btn.primary:hover{background:var(--brandHover)}
.btn.ghost{background:transparent}

/* Typography */
h1{font-size:44px;line-height:1.08;margin:20px 0 20px;letter-spacing:-.02em}
h2{font-size:22px;line-height:1.2;margin:0 0 10px;letter-spacing:-.01em}
h3{font-size:16px;margin:0 0 8px}
p{margin:0 0 12px}
.lead{font-size:18px;color:rgba(11,15,23,.82)}
.muted{color:var(--muted2)}
.small{font-size:12px;color:var(--muted)}

/* Layout blocks */
.section{padding:28px 0}
.hero{padding:64px 0 18px}
.grid{display:grid;gap:18px}
.hero-grid{grid-template-columns:1.35fr .65fr}
@media (max-width:920px){.hero-grid{grid-template-columns:1fr} h1{font-size:36px}}

.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:900px){.cards{grid-template-columns:1fr}}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.06);
}
.list{margin:0;padding-left:18px;color:var(--muted2)}
.list li{margin:6px 0}

.steps{display:grid;gap:12px}
.step{
  display:grid;grid-template-columns:34px 1fr;gap:12px;
  padding:14px;border-radius:14px;border:1px solid var(--line);
  background:rgba(245,245,247,.8);
}
.num{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background: var(--brandSoftBg);
  border: 1px solid var(--brandSoftBorder);
  font-weight:800;color:#0b0f17;
}

.notice{
  border:1px dashed rgba(0,0,0,.18);
  background:rgba(245,245,247,.8);
  border-radius:14px;
  padding:12px 14px;
  color:var(--muted2);
  font-size:13px;
}

.tagrow{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.tag{
  padding:6px 10px;border-radius:999px;border:1px solid var(--line);
  background:rgba(245,245,247,.9);
  font-size:13px;color:var(--muted2);
}

.faq details{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(245,245,247,.85);
  padding:12px 14px;
}
.faq details + details{margin-top:10px}
.faq summary{cursor:pointer;font-weight:700}
.faq p{margin:8px 0 0;color:var(--muted2);font-size:14px}

.anchor{scroll-margin-top:90px}

/* Footer */
.site-footer{
  padding:36px 0 44px;
  border-top:1px solid var(--line);
  margin-top:20px;
}
.footgrid{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start}
@media (max-width:720px){.footgrid{grid-template-columns:1fr}}
.inline-links{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted2);font-size:13px}
.inline-links a:hover{color:var(--text);text-decoration:underline}

/* WordPress core niceties */
.wp-block{max-width:var(--max)}
.entry-content p{max-width:78ch}

/* Built by engineers block */
.nr-built {
  background: #ffffff;
}

.nr-built__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--brandSoftBg2), rgba(255, 255, 255, 0));
}

.nr-built__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brandSoftBg);
  border: 1px solid var(--brandSoftBorder);
  padding: 6px 10px;
  border-radius: 999px;
}

.nr-built__title {
  margin: 12px 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.nr-built__lead {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
}

.nr-built__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.nr-built__list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.nr-built__list li {
  margin: 6px 0;
}

.nr-built__fineprint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 640px) {
  .nr-built__title { font-size: 18px; }
  .nr-built__inner { padding: 16px 16px; }
}

/* Footer */
.nr-footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 48px 0 32px;
  margin-top: 64px;
}

.nr-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nr-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.nr-footer__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.nr-footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #c7d2fe;
  max-width: 420px;
}

.nr-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nr-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e0e7ff;
  margin-bottom: 12px;
}

.nr-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nr-footer__col li {
  margin: 8px 0;
}

.nr-footer__col a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
}

.nr-footer__col a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.nr-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nr-footer__disclaimer {
  font-size: 12px;
  color: #a5b4fc;
  max-width: 720px;
}

.nr-footer__copy {
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .nr-footer__top {
    grid-template-columns: 1fr;
  }
  .nr-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .nr-footer__cols {
    grid-template-columns: 1fr;
  }
}


/* Optional helpers for plugins (assessment / kit) */
.nrqa-hidden{display:none !important;}
.nrqa-btn-secondary{background:#fff;border:1px solid var(--line);color:var(--text);}
.nrqa-btn-secondary:hover{background:rgba(0,0,0,.03);}
.nrqa-btn-tertiary{background:transparent;border:1px solid transparent;color:var(--brand);padding:8px 6px;}
.nrqa-btn-tertiary:hover{text-decoration:underline;background:transparent;}

/* Horizontal steps (How we work) */
.nr-steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.nr-step{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 150px;
}

.nr-step__num{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  background: var(--brandSoftBg);
  border: 1px solid var(--brandSoftBorder);
}

.nr-step__title{
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nr-step__text{
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* arrows between steps on desktop */
@media (min-width: 900px){
  .nr-step:not(:last-child)::after{
    content: "→";
    position: absolute;
    right: -23px;
    top: 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 900;
    background: #fff;
  }
}

/* responsive: 2x2 on medium, stacked on small */
@media (max-width: 1100px){
  .nr-steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nr-step:not(:last-child)::after{ content: ""; } /* disable arrows */
}

@media (max-width: 620px){
  .nr-steps{ grid-template-columns: 1fr; }
}

/* ===== Mobile header / off-canvas nav ===== */
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  border-radius:12px;
  padding:10px 12px;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:14px;
  color:var(--text);
}
.nav-toggle:hover{ background:rgba(0,0,0,.03); }

.nav-toggle__bars{
  width:18px;height:12px;display:inline-block;position:relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after{
  content:"";
  position:absolute;left:0;right:0;
  height:2px;border-radius:2px;
  background:var(--text);
}
.nav-toggle__bars::before{ top:1px; }
.nav-toggle__bars::after{ bottom:1px; }

.nav-wrap{
  display:block;
}

/* Desktop: keep existing inline nav layout */
@media (min-width: 901px){
  .nav-wrap{
    position:static;
    transform:none;
    width:auto;height:auto;
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .nav-wrap__head{ display:none; }
  .nav-overlay{ display:none !important; }
}

/* Mobile: burger + off-canvas */
@media (max-width: 900px){

  .risk-assessment-button{
    margin-right: 20px;
  }

  #blogname_title{
    display: none;
  }

  .site-header .inner{
    gap:10px;
  }

  .nav-toggle{
    display:inline-flex;
    margin-left:auto; /* pushes CTA to the far right only when CTA wraps */
  }

  .cta-row{
    margin-left:0;
  }

  .cta-row .btn.primary{
    padding:10px 12px;
    font-size:13px;
    border-radius:14px;
  }

  /* hide normal nav; show inside panel */
  .nav-wrap{
    position:fixed;
    top:0; right:0;
    width:min(86vw, 340px);
    height:100vh;
    background:#fff;
    border-left:1px solid var(--line);
    box-shadow:0 20px 60px rgba(0,0,0,.18);
    transform:translateX(105%);
    transition:transform .22s ease;
    z-index:9999;
    padding:14px;
    overflow:auto;
  }

  body.nav-open .nav-wrap{
    transform:translateX(0);
  }

  .nav-wrap__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-bottom:10px;
    border-bottom:1px solid var(--line);
    margin-bottom:10px;
  }
  .nav-wrap__title{
    font-weight:800;
    letter-spacing:-.01em;
  }
  .nav-close{
    border:1px solid var(--line);
    background:#fff;
    border-radius:12px;
    width:40px;height:40px;
    display:inline-flex;
    align-items:center;justify-content:center;
    font-size:18px;
  }
  .nav-close:hover{ background:rgba(0,0,0,.03); }

  .nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease;
    z-index:9998;
  }
  body.nav-open .nav-overlay{
    opacity:1;
    pointer-events:auto;
  }

  /* menu inside drawer */
  .nav{
    display:block;
    color:var(--muted2);
  }
  .nav .menu{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }
  .nav .sub-menu{
    position:static;
    display:block; /* show nested items in drawer by default */
    box-shadow:none;
    border:0;
    padding:6px 0 0 10px;
    margin-top:6px;
  }
  .nav .sub-menu li a{
    padding:8px 10px;
  }

  .logo{
    margin-left: 20px;
  }
}
