/*
Theme Name: Juris Magna
Theme URI: https://jurismagna.ch/
Author: Juris Magna
Author URI: https://jurismagna.ch/
Description: Premium Swiss-style consulting theme: matte charcoal with subtle vignette, white navigation, gold accents, separate editable pages (About, Services, Articles, Consultation).
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juris-magna
Tags: custom-menu, blog, one-column

Version: 2.0.1
*/

:root{
  --bg:#12151a;
  --bg2:#171b22;
  --card:#1d212a;
  --text:#f6f7f9;
  --muted:#b7bfcc;
  --gold:#c9a24d;
  --gold2:#b98d33;
  --border:#2a3040;
  --max:1120px;
  --radius:20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  color:var(--text);
  line-height:1.65;
  background:
    radial-gradient(1200px 700px at 30% 10%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 600px at 70% 55%, rgba(201,162,77,.07), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.96}
.container{width:min(var(--max),calc(100% - 44px));margin:0 auto}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(18,21,26,.86);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(42,48,64,.9);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0;
}
.brand-logo{
  display:flex;
  align-items:center;
}
.site-header .brand-logo img{
  height:120px;           /* visually large */
  width:auto;
  display:block;
}

/* Nav */
.primary-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:22px;
  margin:0;
  padding:0;
}
.primary-nav a{
  color:rgba(255,255,255,.92);
  font-size:14px;
  letter-spacing:.4px;
  padding:10px 0;
}
.primary-nav a:hover{color:#fff;text-decoration:underline}

.primary-nav a[href*="/consultation"]{
  padding:10px 16px;
  border-radius:14px;
  background:linear-gradient(180deg, var(--gold), var(--gold2));
  color:#111;
  font-weight:650;
  box-shadow:0 10px 20px rgba(0,0,0,.25);
  text-decoration:none;
}
.primary-nav a[href*="/consultation"]:hover{
  filter:brightness(1.03);
  text-decoration:none;
}

/* Hero */
.hero{padding:76px 0 26px}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(30px,4vw,48px);
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.6px;
}
.hero p{
  margin:0;
  max-width:820px;
  color:var(--muted);
  font-size:16px;
}

/* Sections */
.section{
  padding:42px 0 68px;
  border-top:1px solid rgba(42,48,64,.85);
}
.section h2{
  margin:0 0 14px;
  font-size:22px;
  font-weight:650;
  color:var(--gold);
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:18px;
}
.card{
  background:linear-gradient(180deg, rgba(29,33,42,.92), rgba(29,33,42,.65));
  border:1px solid rgba(42,48,64,.9);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
.card h3{margin:0 0 8px;font-size:16px;font-weight:700}
.card p{margin:0;color:var(--muted);font-size:14px}

.entry-content{max-width:920px}
.entry-content a{color:var(--gold)}
.entry-content a:hover{text-decoration:underline}
hr.sep{border:0;border-top:1px solid rgba(42,48,64,.85);margin:26px 0}

/* Articles list */
.article-list{display:grid;gap:14px;margin-top:18px}
.article-item{
  padding:16px 18px;
  border:1px solid rgba(42,48,64,.9);
  border-radius:var(--radius);
  background:rgba(29,33,42,.55);
}
.article-item .meta{color:var(--muted);font-size:13px;margin-top:6px}

/* Consultation form */
.form-card{
  background:rgba(29,33,42,.85);
  border:1px solid rgba(42,48,64,.9);
  border-radius:var(--radius);
  padding:22px;
  max-width:760px;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
label{
  display:block;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:1.2px;
  margin:0 0 6px;
}
input,select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(42,48,64,.95);
  background:rgba(18,21,26,.7);
  color:var(--text);
  outline:none;
}
input:focus,select:focus{
  border-color:rgba(201,162,77,.65);
  box-shadow:0 0 0 3px rgba(201,162,77,.12);
}
.form-actions{margin-top:16px}
button.btn-submit{
  cursor:pointer;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
  background:linear-gradient(180deg, var(--gold), var(--gold2));
  color:#111;
  font-size:14px;
  font-weight:750;
}
button.btn-submit:hover{filter:brightness(1.03)}

/* Footer */
.site-footer{
  border-top:1px solid rgba(42,48,64,.85);
  padding:28px 0;
  color:var(--muted);
  font-size:13px;
}
.small{color:var(--muted);font-size:13px}

@media (max-width:980px){
  .grid-3{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .site-header .brand-logo img{height:96px}
  .primary-nav ul{gap:14px}
  .primary-nav a{font-size:13px}
}

/* About intro + languages (front page) */
.jm-about-intro{margin-top:18px}
.jm-split{display:grid;grid-template-columns: 1.2fr .8fr;gap:22px;align-items:start}
.jm-split-text{min-width:0}
.jm-prose p{color:var(--muted);line-height:1.75;margin:0 0 12px}
.jm-prose p:last-child{margin-bottom:0}

.jm-split-media{position:relative}
.jm-about-image{
  width:100%;
  height:auto;
  display:block;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  filter: saturate(.95) contrast(1.03);
}

.jm-lang-block{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.jm-lang-title{
  text-align:center;
  font-size:22px;
  letter-spacing:.2px;
  margin:0 0 14px;
  color:var(--text);
}
.jm-lang-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  align-items:center;
}
.jm-lang-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:18px;
  background: rgba(18,21,26,.55);
  border:1px solid rgba(42,48,64,.95);
  min-width:110px;
}
.jm-lang-item img{
  width:34px;height:24px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
}
.jm-lang-item span{
  color:var(--text);
  font-weight:800;
  font-size:13px;
}

@media (max-width: 980px){
  .jm-split{grid-template-columns:1fr}
  .jm-split-media{order:-1}
}

/* Services CTA */
.jm-lang-cta{
  margin-top:16px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.jm-lang-cta-strong{
  color:var(--text);
  font-size:16px;
  letter-spacing:.2px;
}

/* Services CTA under language flags */
.jm-services-cta{
  margin-top: 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.jm-services-cta__text{
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
}
.jm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.jm-btn--gold{
  padding:10px 14px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(201,162,77,.95), rgba(185,141,51,.95));
  color:#0b0d11;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.jm-btn--gold:hover{filter:brightness(1.03);box-shadow: 0 14px 34px rgba(0,0,0,.42);}

/* Force language flags to stay on a single row (no wrapping) */
.jm-lang-row--single{
  flex-wrap: nowrap !important;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.jm-lang-row--single::-webkit-scrollbar{height:6px}
.jm-lang-row--single::-webkit-scrollbar-track{background: rgba(255,255,255,.06); border-radius: 999px}
.jm-lang-row--single::-webkit-scrollbar-thumb{background: rgba(201,162,77,.35); border-radius: 999px}
.jm-lang-row--single .jm-lang-item{
  min-width: 88px !important;
  flex: 0 0 auto;
}

/* Big primary CTA on About Us */
.jm-services-maincta{
  display:flex;
  justify-content:center;
  margin: 10px 0 18px;
}
.jm-btn--large{
  font-size:16px;
  padding:14px 26px;
  border-radius:20px;
  letter-spacing:.3px;
}
