/* ============================================================
   FAHRUNTERNEHMEN COSMOS THEME SYSTEM
   Token-driven multi-color design system.
   One dominant color + intelligent supporting palette + glass.
   ============================================================ */

:root {
  --fh-radius: 14px;
  --fh-radius-lg: 22px;
  --fh-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fh-trans: .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- THEME PALETTES ---------- */
[data-fh-theme="nebula"] {
  --fh-primary:#2563eb; --fh-primary-2:#38bdf8; --fh-accent:#8b5cf6; --fh-gold:#d4af37;
  --fh-bg:#070d1a; --fh-bg2:#0b1526; --fh-surface:rgba(17,28,48,.72); --fh-glass:rgba(23,37,62,.55);
  --fh-border:rgba(96,165,250,.22); --fh-border-hi:rgba(56,189,248,.5);
  --fh-heading:#f2f7ff; --fh-text:#dbe6f5; --fh-text2:#9db4d0;
  --fh-btn-text:#ffffff; --fh-footer:#04070f; --fh-glow:rgba(37,99,235,.35);
}
[data-fh-theme="ocean"] {
  --fh-primary:#0284c7; --fh-primary-2:#22d3ee; --fh-accent:#6366f1; --fh-gold:#d4af37;
  --fh-bg:#041521; --fh-bg2:#072433; --fh-surface:rgba(10,40,56,.72); --fh-glass:rgba(14,52,70,.55);
  --fh-border:rgba(34,211,238,.22); --fh-border-hi:rgba(34,211,238,.5);
  --fh-heading:#eefbfff; --fh-text:#d8ecf6; --fh-text2:#96c4d8;
  --fh-btn-text:#ffffff; --fh-footer:#020c13; --fh-glow:rgba(2,132,199,.35);
}
[data-fh-theme="midnight"] {
  --fh-primary:#4f46e5; --fh-primary-2:#818cf8; --fh-accent:#38bdf8; --fh-gold:#d4af37;
  --fh-bg:#080818; --fh-bg2:#101028; --fh-surface:rgba(24,24,52,.72); --fh-glass:rgba(32,32,66,.55);
  --fh-border:rgba(129,140,248,.24); --fh-border-hi:rgba(129,140,248,.55);
  --fh-heading:#f3f3ff; --fh-text:#dcdcf2; --fh-text2:#a3a3cc;
  --fh-btn-text:#ffffff; --fh-footer:#050510; --fh-glow:rgba(79,70,229,.4);
}
[data-fh-theme="emerald"] {
  --fh-primary:#059669; --fh-primary-2:#34d399; --fh-accent:#d4af37; --fh-gold:#d4af37;
  --fh-bg:#04140f; --fh-bg2:#07231a; --fh-surface:rgba(9,38,28,.72); --fh-glass:rgba(12,48,36,.55);
  --fh-border:rgba(52,211,153,.22); --fh-border-hi:rgba(52,211,153,.5);
  --fh-heading:#f0fdf7; --fh-text:#d9f2e6; --fh-text2:#97c9b4;
  --fh-btn-text:#ffffff; --fh-footer:#020b08; --fh-glow:rgba(5,150,105,.35);
}
[data-fh-theme="forest"] {
  --fh-primary:#16a34a; --fh-primary-2:#84cc16; --fh-accent:#b45309; --fh-gold:#d4af37;
  --fh-bg:#0a1208; --fh-bg2:#12200e; --fh-surface:rgba(22,36,17,.74); --fh-glass:rgba(30,46,24,.55);
  --fh-border:rgba(132,204,22,.2); --fh-border-hi:rgba(132,204,22,.48);
  --fh-heading:#f6fcef; --fh-text:#e3efdc; --fh-text2:#aecba0;
  --fh-btn-text:#ffffff; --fh-footer:#060b04; --fh-glow:rgba(22,163,74,.32);
}
[data-fh-theme="purple"] {
  --fh-primary:#7c3aed; --fh-primary-2:#c084fc; --fh-accent:#ec4899; --fh-gold:#d4af37;
  --fh-bg:#120822; --fh-bg2:#1d0f36; --fh-surface:rgba(34,19,60,.72); --fh-glass:rgba(45,26,76,.55);
  --fh-border:rgba(192,132,252,.24); --fh-border-hi:rgba(192,132,252,.52);
  --fh-heading:#faf5ff; --fh-text:#eadefa; --fh-text2:#c0aee0;
  --fh-btn-text:#ffffff; --fh-footer:#0a0416; --fh-glow:rgba(124,58,237,.4);
}
[data-fh-theme="lavender"] {
  --fh-primary:#8b5cf6; --fh-primary-2:#c4b5fd; --fh-accent:#f472b6; --fh-gold:#d4af37;
  --fh-bg:#151225; --fh-bg2:#221c3a; --fh-surface:rgba(37,31,60,.72); --fh-glass:rgba(48,40,74,.55);
  --fh-border:rgba(196,181,253,.24); --fh-border-hi:rgba(196,181,253,.55);
  --fh-heading:#f7f4ff; --fh-text:#e6e0f6; --fh-text2:#bcb1da;
  --fh-btn-text:#ffffff; --fh-footer:#0c0a18; --fh-glow:rgba(139,92,246,.38);
}
[data-fh-theme="rose"] {
  --fh-primary:#e11d48; --fh-primary-2:#fb7185; --fh-accent:#d4af37; --fh-gold:#d4af37;
  --fh-bg:#1c0810; --fh-bg2:#2c0f1c; --fh-surface:rgba(48,18,32,.72); --fh-glass:rgba(60,24,40,.55);
  --fh-border:rgba(251,113,133,.24); --fh-border-hi:rgba(251,113,133,.52);
  --fh-heading:#fff5f6; --fh-text:#f6dee2; --fh-text2:#d8a7b1;
  --fh-btn-text:#ffffff; --fh-footer:#12060d; --fh-glow:rgba(225,29,72,.38);
}
[data-fh-theme="sunset"] {
  --fh-primary:#ea580c; --fh-primary-2:#fb923c; --fh-accent:#db2777; --fh-gold:#fbbf24;
  --fh-bg:#170a05; --fh-bg2:#26130a; --fh-surface:rgba(46,24,13,.72); --fh-glass:rgba(58,31,17,.55);
  --fh-border:rgba(251,146,60,.24); --fh-border-hi:rgba(251,146,60,.52);
  --fh-heading:#fff8f0; --fh-text:#f6e5d8; --fh-text2:#d8b9a3;
  --fh-btn-text:#ffffff; --fh-footer:#0e0502; --fh-glow:rgba(234,88,12,.36);
}
[data-fh-theme="gold"] {
  --fh-primary:#d4af37; --fh-primary-2:#f5d76e; --fh-accent:#8b6914; --fh-gold:#d4af37;
  --fh-bg:#0f0c06; --fh-bg2:#1c1710; --fh-surface:rgba(32,26,16,.76); --fh-glass:rgba(42,35,22,.58);
  --fh-border:rgba(212,175,55,.26); --fh-border-hi:rgba(212,175,55,.55);
  --fh-heading:#fdf6e0; --fh-text:#efe6cc; --fh-text2:#c9bb96;
  --fh-btn-text:#1a1408; --fh-footer:#080604; --fh-glow:rgba(212,175,55,.32);
}
[data-fh-theme="graphite"] {
  --fh-primary:#64748b; --fh-primary-2:#94a3b8; --fh-accent:#38bdf8; --fh-gold:#d4af37;
  --fh-bg:#0b0e13; --fh-bg2:#131822; --fh-surface:rgba(24,30,40,.74); --fh-glass:rgba(32,39,51,.55);
  --fh-border:rgba(148,163,184,.2); --fh-border-hi:rgba(148,163,184,.45);
  --fh-heading:#f4f7fa; --fh-text:#dde4ec; --fh-text2:#a3b0bf;
  --fh-btn-text:#ffffff; --fh-footer:#07090d; --fh-glow:rgba(100,116,139,.3);
}
[data-fh-theme="aurora"] {
  --fh-primary:#6d28d9; --fh-primary-2:#22d3ee; --fh-accent:#ec4899; --fh-gold:#d4af37;
  --fh-bg:#0a0718; --fh-bg2:#130e2c; --fh-surface:rgba(26,18,52,.72); --fh-glass:rgba(35,20,66,.55);
  --fh-border:rgba(34,211,238,.22); --fh-border-hi:rgba(34,211,238,.5);
  --fh-heading:#f5f3ff; --fh-text:#e2def4; --fh-text2:#ada6d4;
  --fh-btn-text:#ffffff; --fh-footer:#060412; --fh-glow:rgba(109,40,217,.4);
}

/* ---------- BASE ATMOSPHERE ---------- */
html.fh-on body {
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--fh-glow), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, var(--fh-glow), transparent 55%),
    linear-gradient(180deg, var(--fh-bg) 0%, var(--fh-bg2) 100%) !important;
  color: var(--fh-text) !important;
  font-family: var(--fh-font) !important;
  transition: background .4s ease;
}
html.fh-on body::before {
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background: radial-gradient(600px 300px at 50% 110%, var(--fh-glow), transparent 65%);
  opacity:.5;
}
html.fh-on main, html.fh-on #nicegenic-primary-content { position:relative; z-index:1; }

/* ---------- HIDE OLD WP HEADER/FOOTER ---------- */
.ekit-template-content-header, .ekit-template-content-footer { display:none !important; }

/* ---------- CHRISTMAS / NEW YEAR BANNER ---------- */
#fh-xmas {
  position:relative; z-index:60; overflow:hidden;
  background: linear-gradient(90deg, #7f1d1d 0%, #166534 30%, #7f1d1d 60%, #14532d 100%);
  background-size: 300% 100%; animation: fhXmasSlide 14s linear infinite;
  color:#fff; text-align:center; padding:10px 44px 10px 16px;
  font:600 14px/1.5 var(--fh-font); letter-spacing:.2px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
@keyframes fhXmas { 0%{background-position:0% 0} 100%{background-position:300% 0} }
#fh-xmas { animation-name: fhXmas; }
#fh-xmas .fh-xmas-inner { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; justify-content:center; }
#fh-xmas .fh-promo {
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.14);
  border:1px dashed rgba(255,255,255,.55); border-radius:999px; padding:3px 14px;
  font-weight:800; letter-spacing:1.5px; backdrop-filter:blur(6px);
}
#fh-xmas .fh-promo b { color:#fde047; }
#fh-xmas .fh-xmas-close {
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(0,0,0,.3); color:#fff; font-size:14px; line-height:1;
}
#fh-xmas .fh-snow { position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 60% 70%, #fff, transparent), radial-gradient(2.5px 2.5px at 80% 20%, #fff, transparent), radial-gradient(2px 2px at 40% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 55%, #fff, transparent), radial-gradient(2px 2px at 10% 65%, #fff, transparent);
}

/* ---------- NEW GLASS HEADER ---------- */
#fh-header {
  position:sticky; top:0; z-index:59;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--fh-glass);
  border-bottom:1px solid var(--fh-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}
#fh-header .fh-hwrap {
  max-width:1280px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; gap:18px;
}
#fh-header .fh-logo {
  font:800 21px var(--fh-font); text-decoration:none; color:var(--fh-heading) !important;
  display:flex; align-items:center; gap:10px; white-space:nowrap;
}
#fh-header .fh-logo .fh-logo-badge {
  width:38px; height:38px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-primary-2));
  color:var(--fh-btn-text); font-weight:900; font-size:19px;
  box-shadow: 0 4px 16px var(--fh-glow);
}
#fh-header .fh-logo em { font-style:normal; color:var(--fh-primary-2); }
#fh-header nav.fh-mainnav { display:flex; gap:4px; margin-left:auto; align-items:center; }
#fh-header nav.fh-mainnav a {
  color:var(--fh-text) !important; text-decoration:none !important; font:600 13.5px var(--fh-font);
  padding:9px 13px; border-radius:10px; transition: all var(--fh-trans); white-space:nowrap;
}
#fh-header nav.fh-mainnav a:hover { background:var(--fh-glass); color:var(--fh-heading) !important; box-shadow: inset 0 0 0 1px var(--fh-border); }
#fh-header .fh-cta {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-primary-2));
  color:var(--fh-btn-text) !important; font-weight:700 !important;
  box-shadow: 0 4px 18px var(--fh-glow);
}
#fh-header .fh-cta:hover { transform:translateY(-1px); box-shadow: 0 8px 24px var(--fh-glow); }
#fh-header .fh-iconbtns { display:flex; gap:8px; align-items:center; }
.fh-iconbtn {
  width:40px; height:40px; border-radius:12px; border:1px solid var(--fh-border);
  background:var(--fh-surface); color:var(--fh-text); cursor:pointer;
  display:grid; place-items:center; font-size:17px; transition:all var(--fh-trans);
}
.fh-iconbtn:hover { border-color:var(--fh-border-hi); color:var(--fh-heading); transform:translateY(-1px); }

/* hamburger + fullscreen menu */
#fh-burger { display:none; }
#fh-menu-overlay {
  position:fixed; inset:0; z-index:70; display:none;
  background: linear-gradient(180deg, var(--fh-bg) 0%, var(--fh-bg2) 100%);
  overflow-y:auto; padding:90px 24px 40px;
}
#fh-menu-overlay.open { display:block; animation: fhFade .25s ease; }
@keyframes fhFade { from{opacity:0; transform:translateY(-8px)} to{opacity:1; transform:none} }
#fh-menu-overlay .fh-menu-grid { max-width:860px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; }
#fh-menu-overlay a {
  display:flex; align-items:center; gap:12px; padding:15px 18px; border-radius:var(--fh-radius);
  background:var(--fh-surface); border:1px solid var(--fh-border); color:var(--fh-text) !important;
  text-decoration:none !important; font:600 14.5px var(--fh-font); transition:all var(--fh-trans);
  backdrop-filter: blur(10px);
}
#fh-menu-overlay a:hover { border-color:var(--fh-border-hi); transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.3); color:var(--fh-heading) !important; }
#fh-menu-overlay .fh-menu-title { max-width:860px; margin:0 auto 18px; color:var(--fh-heading); font:800 22px var(--fh-font); }
#fh-menu-close { position:fixed; top:22px; right:22px; z-index:71; }

/* ---------- THEME SWITCHER PANEL ---------- */
#fh-theme-panel {
  position:fixed; top:76px; right:18px; z-index:72; width:300px; display:none;
  background:var(--fh-surface); border:1px solid var(--fh-border); border-radius:var(--fh-radius-lg);
  backdrop-filter: blur(22px); box-shadow:0 20px 60px rgba(0,0,0,.45); padding:16px;
  max-height:70vh; overflow-y:auto;
}
#fh-theme-panel.open { display:block; animation:fhFade .22s ease; }
#fh-theme-panel h4 { margin:0 0 12px; color:var(--fh-heading); font:700 14px var(--fh-font); }
.fh-theme-opt {
  display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px; margin-bottom:6px;
  border-radius:12px; border:1px solid var(--fh-border); background:transparent; cursor:pointer;
  color:var(--fh-text); font:600 13px var(--fh-font); transition:all var(--fh-trans); text-align:left;
}
.fh-theme-opt:hover { border-color:var(--fh-border-hi); }
.fh-theme-opt.active { border-color:var(--fh-primary-2); background:var(--fh-glass); box-shadow:0 0 0 1px var(--fh-primary-2); }
.fh-theme-dots { display:flex; gap:4px; }
.fh-theme-dots i { width:16px; height:16px; border-radius:50%; border:1px solid rgba(255,255,255,.25); }

/* ---------- CONTENT POLISH (sections, headings, buttons) ---------- */
html.fh-on h1 { color:var(--fh-heading) !important; }
html.fh-on h2 { color:var(--fh-heading) !important; }
html.fh-on h3, html.fh-on h4 { color:var(--fh-primary-2) !important; }
html.fh-on #nicegenic-primary-content p, html.fh-on #nicegenic-primary-content li { color:var(--fh-text); }
html.fh-on .elementor-section { position:relative; z-index:1; }

/* make WP/Elementor buttons themed */
html.fh-on a.elementor-button, html.fh-on .elementor-button-wrapper a,
html.fh-on button.elementor-button, html.fh-on input[type="submit"], html.fh-on .wpcf7-submit {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-primary-2)) !important;
  color: var(--fh-btn-text) !important; border:none !important; border-radius:12px !important;
  padding:13px 26px !important; font:700 14px var(--fh-font) !important; cursor:pointer;
  box-shadow:0 6px 20px var(--fh-glow) !important; transition:all var(--fh-trans) !important;
  text-decoration:none !important; display:inline-block;
}
html.fh-on a.elementor-button:hover, html.fh-on .wpcf7-submit:hover {
  transform:translateY(-2px) scale(1.02) !important; box-shadow:0 12px 30px var(--fh-glow) !important;
}
html.fh-on a.elementor-button:active { transform:translateY(0) scale(.99) !important; }

/* forms */
html.fh-on .wpcf7 input[type="text"], html.fh-on .wpcf7 input[type="email"],
html.fh-on .wpcf7 input[type="tel"], html.fh-on .wpcf7 textarea, html.fh-on .wpcf7 select {
  background:var(--fh-surface) !important; border:1px solid var(--fh-border) !important;
  border-radius:10px !important; color:var(--fh-text) !important; padding:12px 14px !important;
  backdrop-filter:blur(8px);
}
html.fh-on .wpcf7 input:focus, html.fh-on .wpcf7 textarea:focus {
  border-color:var(--fh-primary-2) !important; box-shadow:0 0 0 3px var(--fh-glow) !important; outline:none !important;
}

/* ---------- ACCORDION (junky content → reveal buttons) ---------- */
.fh-acc { margin:14px 0; border:1px solid var(--fh-border); border-radius:var(--fh-radius); overflow:hidden;
  background:var(--fh-surface); backdrop-filter:blur(10px); }
.fh-acc > .fh-acc-btn {
  width:100%; display:flex; align-items:center; gap:12px; padding:16px 18px; cursor:pointer;
  background:transparent; border:none; color:var(--fh-heading) !important;
  font:700 15.5px var(--fh-font); text-align:left; transition:all var(--fh-trans);
}
.fh-acc > .fh-acc-btn:hover { background:var(--fh-glass); }
.fh-acc > .fh-acc-btn .fh-acc-ic {
  width:30px; height:30px; border-radius:9px; display:grid; place-items:center; flex:none;
  background:linear-gradient(135deg,var(--fh-primary),var(--fh-primary-2)); color:var(--fh-btn-text);
  font-size:15px; transition:transform var(--fh-trans);
}
.fh-acc.open > .fh-acc-btn .fh-acc-ic { transform:rotate(45deg); }
.fh-acc > .fh-acc-body { display:none; padding:4px 20px 18px; }
.fh-acc.open > .fh-acc-body { display:block; animation:fhFade .3s ease; }
.fh-acc > .fh-acc-body::after { content:""; display:block; clear:both; }

/* reveal-more button for very long sections */
.fh-reveal-btn {
  display:inline-flex; align-items:center; gap:8px; margin:8px 0; padding:12px 22px;
  border-radius:999px; border:1px solid var(--fh-border-hi); cursor:pointer;
  background:var(--fh-glass); color:var(--fh-heading) !important; font:700 13.5px var(--fh-font);
  transition:all var(--fh-trans); backdrop-filter:blur(8px);
}
.fh-reveal-btn:hover { transform:translateY(-2px); box-shadow:0 10px 26px var(--fh-glow); }

/* ---------- NEW FOOTER ---------- */
#fh-footer {
  position:relative; z-index:1; margin-top:70px;
  background: linear-gradient(180deg, transparent, var(--fh-footer) 18%);
  border-top:1px solid var(--fh-border);
}
#fh-footer .fh-fwrap { max-width:1280px; margin:0 auto; padding:56px 20px 110px; }
#fh-footer .fh-fgrid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:36px; }
#fh-footer h5 { color:var(--fh-heading); font:800 14px var(--fh-font); letter-spacing:1px; text-transform:uppercase; margin:0 0 16px; }
#fh-footer a { color:var(--fh-text2) !important; text-decoration:none !important; display:block; padding:5px 0; font:500 13.5px var(--fh-font); transition:all var(--fh-trans); }
#fh-footer a:hover { color:var(--fh-primary-2) !important; transform:translateX(4px); }
#fh-footer .fh-fbrand p { color:var(--fh-text2); font:400 13.5px/1.7 var(--fh-font); max-width:300px; }
#fh-footer .fh-fbottom { border-top:1px solid var(--fh-border); margin-top:36px; padding-top:20px;
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; color:var(--fh-text2); font:500 12.5px var(--fh-font); }

/* ---------- MOBILE APP BAR ---------- */
#fh-appbar {
  position:fixed; left:0; right:0; bottom:0; z-index:65; display:none;
  background:var(--fh-glass); backdrop-filter:blur(20px) saturate(1.4);
  border-top:1px solid var(--fh-border); padding:8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow:0 -8px 30px rgba(0,0,0,.35);
}
#fh-appbar .fh-appbar-row { display:flex; justify-content:space-around; }
#fh-appbar a {
  display:flex; flex-direction:column; align-items:center; gap:3px; text-decoration:none !important;
  color:var(--fh-text2) !important; font:600 10.5px var(--fh-font); padding:6px 12px; border-radius:12px;
  transition:all var(--fh-trans);
}
#fh-appbar a span { font-size:19px; }
#fh-appbar a:hover, #fh-appbar a.fh-active { color:var(--fh-primary-2) !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  #fh-header nav.fh-mainnav { display:none; }
  #fh-burger { display:grid; }
  #fh-appbar { display:block; }
  #fh-footer .fh-fgrid { grid-template-columns:1fr 1fr; gap:26px; }
  #fh-footer .fh-fwrap { padding-bottom:130px; }
}
@media (max-width: 560px) {
  #fh-footer .fh-fgrid { grid-template-columns:1fr; }
  #fh-header .fh-hwrap { padding:10px 14px; gap:10px; }
  #fh-header .fh-logo { font-size:18px; }
  #fh-theme-panel { right:8px; left:8px; width:auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  #fh-xmas { animation:none; }
  * { transition:none !important; }
}

/* ---------- CONTENT SURFACE CONVERSION (contrast fix) ---------- */
html.fh-on #nicegenic-primary-content,
html.fh-on #nicegenic-primary-content .elementor-section,
html.fh-on #nicegenic-primary-content .elementor-container,
html.fh-on #nicegenic-primary-content .elementor-column,
html.fh-on #nicegenic-primary-content .elementor-widget-wrap,
html.fh-on #nicegenic-primary-content .elementor-widget-container,
html.fh-on #nicegenic-primary-content .elementor-widget,
html.fh-on #nicegenic-primary-content .e-con,
html.fh-on #nicegenic-primary-content .e-container {
  background-color: transparent !important;
}
/* headings and text readable on the themed background */
html.fh-on #nicegenic-primary-content,
html.fh-on #nicegenic-primary-content p,
html.fh-on #nicegenic-primary-content li,
html.fh-on #nicegenic-primary-content span,
html.fh-on #nicegenic-primary-content div {
  border-color: var(--fh-border) !important;
}
html.fh-on #nicegenic-primary-content p,
html.fh-on #nicegenic-primary-content li {
  color: var(--fh-text) !important;
}
html.fh-on #nicegenic-primary-content a:not(.elementor-button):not(.fh-reveal-btn) {
  color: var(--fh-primary-2) !important;
}
/* card-like widgets get glass */
html.fh-on #nicegenic-primary-content .elementor-icon-box-wrapper,
html.fh-on #nicegenic-primary-content .elementor-price-table,
html.fh-on #nicegenic-primary-content .elementor-testimonial,
html.fh-on #nicegenic-primary-content .elementor-widget-image-box .elementor-widget-container,
html.fh-on #nicegenic-primary-content .elementor-flip-box {
  background: var(--fh-surface) !important;
  border: 1px solid var(--fh-border) !important;
  border-radius: var(--fh-radius) !important;
  backdrop-filter: blur(10px);
}
/* counter/accordion/toggle widgets themed */
html.fh-on .elementor-accordion-item, html.fh-on .elementor-toggle-item {
  background: var(--fh-surface) !important;
  border: 1px solid var(--fh-border) !important;
  border-radius: var(--fh-radius) !important;
  margin-bottom: 10px; overflow: hidden;
}
html.fh-on .elementor-tab-title, html.fh-on .elementor-toggle-title {
  color: var(--fh-heading) !important;
}
html.fh-on .elementor-tab-content, html.fh-on .elementor-toggle-content {
  color: var(--fh-text) !important;
}
/* image boxes keep images crisp */
html.fh-on img { border-radius: 10px; }
/* icon colors */
html.fh-on .elementor-icon { color: var(--fh-primary-2) !important; }

/* Hide old block-theme header/footer template parts (replaced by fh-header/fh-footer) */
header.wp-block-template-part, footer.wp-block-template-part { display:none !important; }

/* ===== ghml language switcher — dark glass restyle ===== */
.ghml-switcher__toggle{background:rgba(13,22,41,.88)!important;color:#e6eeff!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(0,0,0,.4)!important}
.ghml-switcher__panel{background:#0d1629!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;box-shadow:0 22px 60px rgba(0,0,0,.55)!important;color:#e6eeff!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.ghml-switcher__search{background:rgba(255,255,255,.07)!important;color:#e6eeff!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:10px!important}
.ghml-switcher__search::placeholder{color:rgba(230,238,255,.45)!important}
.ghml-switcher__list{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.ghml-switcher__item{color:#e6eeff!important;border-radius:10px!important}
.ghml-switcher__item:hover{background:rgba(255,255,255,.08)!important}
.ghml-switcher__item.is-current{background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(56,189,248,.22))!important}
.ghml-switcher__eng{color:rgba(230,238,255,.55)!important}
.ghml-switcher__tag{color:var(--fh-primary-2,#38bdf8)!important}

/* ===== read-more collapser ===== */
.fh-readmore{position:relative;max-height:230px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent)}
.fh-readmore.open{max-height:none;-webkit-mask-image:none;mask-image:none}
.fh-readmore-btn{display:inline-flex;align-items:center;gap:8px;margin:6px 0 18px;padding:11px 22px;border:none;border-radius:999px;cursor:pointer;font:600 14px/1 var(--fh-font,inherit);color:var(--fh-btn-text,#fff);background:linear-gradient(135deg,var(--fh-primary,#2563eb),var(--fh-primary-2,#38bdf8));box-shadow:0 6px 18px rgba(0,0,0,.35);transition:transform .18s ease,box-shadow .18s ease}
.fh-readmore-btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.45)}
.fh-readmore-btn .fh-acc-ic{font-weight:800}
