/*
 Theme Name: JBcar Care
 Theme URI: https://jbcar-care.example
 Author: Niels B. & ChatGPT
 Description: Volledige, donkergrijze WordPress theme voor JB CAR Care. Inclusief menu, logo, favicon en verbergt 'Community' item.
 Version: 1.0.0
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 7.4
 Text Domain: jbcar-care
 License: GPL-2.0+
*/

:root{
  --jb-bg:#14161b;
  --jb-surface:#1b1f24;
  --jb-card:#20252e;
  --jb-border:#2f3642;
  --jb-text:#eceff6;
  --jb-muted:#c2c8d4;
  --jb-gold:#d6b15c;
  --jb-silver:#c6ccd6;
  --jb-link:#d6b15c;
  --radius:16px;
}

html, body{ background:var(--jb-bg); color:var(--jb-text); }

a{ color:var(--jb-link); text-decoration:none; }
a:hover{ color:#f0d389; }

.container{ max-width:1200px; margin:0 auto; padding:24px; }

/* Header */
.site-header{ position:sticky; top:0; z-index:50; background:linear-gradient(180deg,#121318,#0f1014); border-bottom:1px solid var(--jb-border); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 24px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand .logo{ max-height:140px; height:auto; width:auto; }
.brand .title{ font-size:20px; font-weight:700; letter-spacing:.3px; }

/* Nav */
.nav{ display:flex; align-items:center; gap:18px; }
.nav a{ color:var(--jb-text); padding:8px 10px; border-radius:10px; }
.nav a:hover{ background:#1a1d24; color:var(--jb-link); }

/* Cards */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
.card{ background:var(--jb-card); border:1px solid var(--jb-border); border-radius:var(--radius); padding:22px; box-shadow:0 6px 24px rgba(0,0,0,.35); }
.card h3{ margin-top:0; margin-bottom:10px; }
.card p{ color:var(--jb-muted); margin:0; }

/* Hide any 'Community' blocks/links */
a[href*="community"], .menu-item a[href*="community"], .nav a[href*="community"]{ display:none !important; }

/* Footer */
.site-footer{ background:#0f1014; color:var(--jb-muted); padding:30px 24px; border-top:1px solid var(--jb-border); text-align:center; }

/* Responsive */
@media (max-width: 960px){
  .cards{ grid-template-columns:1fr; }
  .brand .logo{ max-height:100px; }
}

/* Avoid header overlap */
main.container{ padding-top: 8px; }

.card a{ text-decoration: none; border-bottom: 1px dotted var(--jb-gold); }
.card a:hover{ border-bottom-color: transparent; }


/* --- Menu layout & hamburger --- */
.header-inner{ position:relative; }
.nav ul{ display:flex; gap:18px; list-style:none; margin:0; padding:0; }
.nav li{ list-style:none; }
.menu-toggle{ display:none; background:#1a1d24; border:1px solid var(--jb-border); border-radius:10px; padding:8px 10px; color:var(--jb-text); cursor:pointer; }
@media (max-width: 960px){
  .menu-toggle{ display:block; }
  .nav{ position:absolute; right:24px; top:64px; }
  .nav ul{ display:none; flex-direction:column; background:#1a1d24; border:1px solid var(--jb-border); border-radius:12px; padding:12px; min-width:200px; }
  #primaryNav.open ul{ display:flex; }
}

/* Carbon look */
.site-header{
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0)),
    repeating-linear-gradient(45deg, #21262d 0 6px, #1a1f26 6px 12px) !important;
}
.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.05)),
    repeating-linear-gradient(45deg, #20252e 0 8px, #1b2028 8px 16px) !important;
}
/* Accent gradient strip on cards */
.card{ position:relative; overflow:hidden; }
.card::before{
  content:""; position:absolute; left:0; top:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--jb-gold), var(--jb-silver));
  opacity:.9;
}
/* Accent underline on headings */
h1,h2,h3{ position:relative; }
h1::after, h2::after, h3::after{
  content:""; display:block; width:56px; height:3px; margin-top:6px;
  background: linear-gradient(90deg, var(--jb-gold), var(--jb-silver));
  border-radius:2px;
}
/* Buttons refined */
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button{
  background: linear-gradient(180deg, #e1c777, #c9a84f) !important;
  color:#0c0c0c !important;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover{
  filter: brightness(1.07);
  transform: translateY(-1px);
}
/* Links accent */
a{ color: var(--jb-gold); }
a:hover{ color:#f3d98b; }

body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,.03), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(255,255,255,.03), transparent 60%),
    var(--jb-bg) !important;
}

/* Premium tweaks v6 */
.card::before{ height:4px; box-shadow:0 0 10px rgba(214,177,92,.25); }
h1::after, h2::after, h3::after{ width:72px; height:4px; box-shadow:0 0 6px rgba(214,177,92,.25); }
.nav a{ position:relative; }
.nav a::after{
  content:""; position:absolute; left:8px; right:8px; bottom:2px; height:2px;
  background:linear-gradient(90deg, var(--jb-gold), var(--jb-silver));
  transform:scaleX(0); transform-origin:left; transition:transform .2s ease;
}
.nav a:hover::after{ transform:scaleX(1); }
.brand .logo{ filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button{
  position:relative; overflow:hidden;
}
.button::before, .wp-element-button::before, .woocommerce a.button::before, .woocommerce button.button::before{
  content:""; position:absolute; left:-40%; top:-160%; width:80%; height:300%;
  background:linear-gradient(120deg, rgba(255,255,255,.25), rgba(255,255,255,0) 60%);
  transform:rotate(15deg);
}
