
/* SMG V31.5 Production Release Cleanup
   Final visual + layout stabilization layer. Loaded after all older CSS. */
:root{
  --smg-black:#050505;
  --smg-panel:rgba(12,12,12,.86);
  --smg-line:rgba(212,175,55,.34);
  --smg-line-strong:rgba(212,175,55,.58);
  --smg-gold:#d4af37;
  --smg-gold-2:#f7e7a6;
  --smg-text:#f7f3e8;
  --smg-muted:rgba(247,243,232,.76);
  --smg-max:1180px;
  --smg-pad:clamp(18px,3vw,34px);
  --smg-section:clamp(48px,7vw,96px);
}
*{box-sizing:border-box} html{background:var(--smg-black);scroll-behavior:smooth} body{margin:0;min-width:0;overflow-x:hidden;background:radial-gradient(circle at 82% 12%,rgba(212,175,55,.12),transparent 30%),linear-gradient(180deg,#050505 0%,#090806 52%,#050505 100%)!important;color:var(--smg-text);}
body:before{content:"SMG";position:fixed;inset:auto -5vw 4vh auto;z-index:0;pointer-events:none;font-family:Georgia,serif;font-size:clamp(160px,23vw,420px);font-weight:700;letter-spacing:-.09em;line-height:.8;color:transparent;-webkit-text-stroke:1px rgba(212,175,55,.12);text-shadow:0 0 80px rgba(212,175,55,.06);opacity:.72;transform:rotate(-8deg)}
body:after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(rgba(212,175,55,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(212,175,55,.035) 1px,transparent 1px);background-size:72px 72px;mask-image:radial-gradient(circle at 60% 20%,#000 0%,transparent 70%);opacity:.46}
body>header,body>main,body>footer,.site-header,.smg-header,.topbar,.navbar{position:relative;z-index:2} main{display:block;width:100%;min-width:0;overflow:hidden;}
.wrap,.container,.section,.smg-container,.smg-section,main>section,main>.hero,main>.grid,main>.two{max-width:var(--smg-max)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--smg-pad)!important;padding-right:var(--smg-pad)!important;}
section,.section,.smg-section,main>section{margin-top:0!important;margin-bottom:0!important;padding-top:var(--smg-section)!important;padding-bottom:var(--smg-section)!important;clear:both;}
section+section,.section+.section{border-top:1px solid rgba(212,175,55,.08)}
.hero,.split,.two,.smg-split,.smg-hero,main>.hero,main>.two{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)!important;gap:clamp(24px,4vw,58px)!important;align-items:center!important;min-height:auto!important;}
.grid,.cards,.smg-grid,.smg-v2834-grid,.smg-v282-grid,.smg-v16-dashboard-grid,.smg-v28-admin-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:clamp(16px,2vw,26px)!important;align-items:stretch!important;}
.card,.panel,article,.smg-card,.smg-v2834-card,.smg-v282-card,.smg-v16-module,.smg-v28-admin-tile,form.panel,.form{min-width:0!important;height:auto!important;min-height:unset!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(18,18,18,.92),rgba(7,7,7,.88))!important;border:1px solid var(--smg-line)!important;border-radius:22px!important;box-shadow:0 18px 55px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05)!important;}
.card,.panel,.smg-card,.smg-v2834-card,.smg-v282-card,.smg-v16-module{padding:clamp(18px,2.2vw,30px)!important;}
img,picture,video,canvas,svg{max-width:100%!important;height:auto} img{display:block;object-fit:cover} figure{margin:0;min-width:0}.photo,.image,.portrait,.smg-photo,[class*="image"],[class*="photo"]{min-width:0!important;overflow:hidden!important;border-radius:22px!important}.photo img,.image img,.portrait img,.smg-photo img,[class*="image"] img,[class*="photo"] img{width:100%!important;max-height:min(62vh,620px);object-fit:cover!important;}
h1,h2,h3,.title,.smg-title,.smg-v2834-title,.smg-v16-title{max-width:100%;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;text-wrap:balance;color:var(--smg-gold-2)!important;background:linear-gradient(92deg,#fff4bd 0%,#d4af37 44%,#8b6b22 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;text-shadow:0 12px 48px rgba(212,175,55,.12);}
h1{font-size:clamp(42px,5.4vw,76px)!important;line-height:.98!important;letter-spacing:-.04em!important;margin:0 0 20px!important}h2{font-size:clamp(28px,3.3vw,46px)!important;line-height:1.06!important;margin:0 0 16px!important}h3{font-size:clamp(19px,2vw,28px)!important;line-height:1.18!important;margin:0 0 12px!important}.lead,p,li,small,span{word-break:normal!important;hyphens:none}.lead{font-size:clamp(17px,1.55vw,22px)!important;line-height:1.62!important;color:var(--smg-muted)!important}p,li{line-height:1.68;color:var(--smg-muted)}
.actions,.btns,.smg-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:center!important}.btn,button,[class*="btn"],a[class*="btn"]{white-space:normal!important;min-height:44px;align-items:center;justify-content:center}.btn.primary,.primary{background:linear-gradient(135deg,#f8e7a0,#d4af37 52%,#80611d)!important;color:#070707!important;border-color:rgba(255,232,166,.65)!important}.btn.secondary,.btn.ghost,.ghost{background:rgba(255,255,255,.035)!important;color:var(--smg-gold-2)!important;border-color:var(--smg-line)!important}
nav,.nav,.nav-links,.navbar,.site-nav,#navLinks{display:flex;align-items:center;gap:clamp(10px,1.2vw,18px);flex-wrap:wrap;min-width:0}nav a,.nav a,.nav-links a,#navLinks a{white-space:nowrap!important;line-height:1.1!important;padding:9px 10px!important}.brand,.logo{min-width:0}.brand strong,.logo strong{color:var(--smg-gold-2)!important}
footer,.footer,.site-footer{position:relative!important;z-index:2!important;margin-top:var(--smg-section)!important;padding:clamp(42px,6vw,80px) var(--smg-pad)!important;border-top:1px solid var(--smg-line)!important;background:linear-gradient(180deg,rgba(5,5,5,.92),rgba(0,0,0,.98))!important;clear:both!important;overflow:hidden!important}footer .wrap,footer .container{padding-left:0!important;padding-right:0!important}.footer-grid,footer .grid,footer [class*="footer"]{min-width:0}.footer-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:18px!important;align-items:start!important}.footer a{display:inline-flex!important;margin:0 12px 10px 0!important;white-space:normal!important;color:var(--smg-gold-2)!important}.footer-legal,.legal-links{display:flex!important;flex-wrap:wrap!important;gap:10px 18px!important;align-items:center!important}
[data-smg-contact-card="true"],[data-smg-ai-panel="true"]{margin-top:0!important;margin-bottom:0!important}.smg-v31-duplicate-cleaned{display:none!important}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.smg-v315-release-badge{position:fixed;left:14px;bottom:14px;z-index:99;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(247,231,166,.72);background:rgba(0,0,0,.35);border:1px solid rgba(212,175,55,.18);border-radius:999px;padding:7px 10px;backdrop-filter:blur(12px)}
.smg-v315-module-dock{position:fixed;right:16px;bottom:16px;z-index:90;display:grid;grid-template-columns:repeat(2,54px);gap:8px;pointer-events:auto}.smg-v315-module-dock a{height:54px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:11px;font-weight:800;letter-spacing:.08em;color:#090909;background:linear-gradient(135deg,#fff2b8,#d4af37 52%,#7c5d1e);border:1px solid rgba(255,236,174,.65);border-radius:16px;box-shadow:0 16px 36px rgba(0,0,0,.34)}
@media (max-width:1080px){.hero,.split,.two,.smg-split,.smg-hero,main>.hero,main>.two{grid-template-columns:1fr!important}.photo img,.image img,.portrait img,.smg-photo img,[class*="image"] img,[class*="photo"] img{max-height:520px}.smg-v315-module-dock{position:static;max-width:var(--smg-max);margin:18px auto 0;padding:0 var(--smg-pad);grid-template-columns:repeat(4,minmax(0,1fr))}.smg-v315-module-dock a{height:46px;border-radius:14px}}
@media (max-width:720px){:root{--smg-section:42px;--smg-pad:18px}body:before{font-size:150px;right:-80px;bottom:9vh}.grid,.cards,.smg-grid,.smg-v2834-grid,.smg-v282-grid,.smg-v16-dashboard-grid,.smg-v28-admin-grid{grid-template-columns:1fr!important}nav,.nav,.nav-links,#navLinks{gap:8px}.nav-links:not(.open),#navLinks:not(.open){display:none}.nav-links.open,#navLinks.open{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%;padding:14px 0}.nav-links.open a,#navLinks.open a{width:100%;padding:12px!important}.smg-v315-module-dock{grid-template-columns:repeat(2,minmax(0,1fr))}h1{font-size:clamp(36px,12vw,54px)!important}.smg-v315-release-badge{display:none}}
