/*
Theme Name: RoundTable UniFi
Theme URI: https://roundtablenetworks.com/
Author: RoundTable Networks, LLC
Description: Clean, controller-style theme for RoundTable Networks — light surfaces, crisp blue accents and a live network topology hero.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rtn
*/

:root{
  --bg:#131519; --surface:#1a1d22; --surface-2:#22262c; --line:#2d3239;
  --text:#e9ebee; --muted:#9ba1aa; --blue:#2e86ff; --blue-dk:#1a73ec; --blue-soft:rgba(46,134,255,.14);
  --green:#2ad07a; --tile:#eceef1; --radius-lg:14px; --radius:10px; --radius-sm:6px;
  --wrap:1180px; --font:"Figtree",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.6;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dk)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
h1,h2,h3{line-height:1.15;letter-spacing:-.02em;margin:0 0 .5em;font-weight:700}
h1{font-size:clamp(2.2rem,4.4vw,3.2rem)}
h2{font-size:clamp(1.7rem,3vw,2.3rem)}
h3{font-size:1.2rem;letter-spacing:-.01em}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:16px;z-index:99;background:var(--surface-2);padding:8px 12px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(19,21,25,.88);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700;font-size:1.05rem}
.brand img,.custom-logo{height:55px;width:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.nav a{display:block;padding:8px 14px;border-radius:var(--radius-sm);color:var(--muted);font-weight:500;font-size:.95rem}
.nav a:hover,.nav .current-menu-item>a,.nav .current_page_item>a{color:var(--text);background:var(--surface)}
.header-cta{margin-left:12px}
.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px 10px;cursor:pointer}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--text);margin:3px 0}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:var(--radius);font-weight:600;font-size:.97rem;border:1px solid transparent;transition:background .15s,border-color .15s}
.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-dk);color:#fff}
.btn-ghost{background:transparent;border-color:#3a4049;color:var(--text)}.btn-ghost:hover{border-color:#5a616c;color:var(--text);background:var(--surface-2)}
.btn-sm{padding:8px 16px;font-size:.9rem}

/* Hero */
.hero{background:var(--surface);border-bottom:1px solid var(--line);padding:72px 0 80px;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1fr 1.1fr;gap:56px;align-items:center}
.hero p.lead{font-size:1.18rem;color:var(--muted);max-width:34em}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.status-pill{display:inline-flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:6px 14px 6px 10px;font-size:.88rem;color:var(--muted);margin-bottom:22px}
.dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(42,208,122,.2)}

/* Topology panel */
.topology{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.topology-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line);font-size:.85rem;color:var(--muted)}
.topology-bar strong{color:var(--text);font-weight:600}
.topology-bar .tabs{display:flex;gap:4px}
.topology-bar .tabs span{padding:3px 10px;border-radius:var(--radius-sm)}
.topology-bar .tabs .on{background:var(--blue-soft);color:var(--blue);font-weight:600}
.topology svg{display:block;width:100%;height:auto}
.topology .link{stroke:var(--blue);stroke-width:2;fill:none;stroke-dasharray:5 7;animation:flow 1.6s linear infinite}
.topology .link.static{stroke:#454b55;animation:none;stroke-dasharray:none}
@keyframes flow{to{stroke-dashoffset:-24}}
@media (prefers-reduced-motion:reduce){.topology .link{animation:none}html{scroll-behavior:auto}}
.node rect{fill:var(--surface-2);stroke:#353b43}
.node .ico{stroke:var(--text);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.node text{font-family:var(--font);font-size:11px;fill:var(--text);font-weight:600}
.node text.sub{fill:var(--muted);font-weight:400;font-size:10px}
.topology-foot{display:flex;gap:24px;padding:12px 18px;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted)}
.topology-foot b{color:var(--text);font-weight:600}

/* Sections */
.section{padding:96px 0}
.section-head{max-width:640px;margin-bottom:48px}
.section-head p{color:var(--muted);font-size:1.08rem}

.services{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.service{border:1px solid var(--line);border-radius:var(--radius-lg);padding:30px;background:var(--surface)}
.service .icon{width:48px;height:48px;border-radius:var(--radius);background:var(--blue-soft);display:grid;place-items:center;margin-bottom:22px}
.service .icon svg{width:24px;height:24px;stroke:var(--blue);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.service p{color:var(--muted);font-size:.98rem}
.service ul{list-style:none;padding:0;margin:18px 0 0;border-top:1px solid var(--line)}
.service li{padding:10px 0;border-bottom:1px solid var(--line);font-size:.94rem;display:flex;gap:10px;align-items:center}
.service li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--blue);flex:none}

.process{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--bg);overflow:hidden}
.step{padding:28px;border-right:1px solid var(--line)}
.step:last-child{border-right:0}
.step .num{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--blue);color:var(--blue);font-weight:700;font-size:.85rem;margin-bottom:16px}
.step p{color:var(--muted);font-size:.95rem;margin:0}

.clients{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.client{border:1px solid var(--line);border-radius:var(--radius);background:var(--tile);aspect-ratio:3/2;display:grid;place-items:center;padding:14px}
.client img{max-height:64px;object-fit:contain;filter:grayscale(1);opacity:.75;transition:filter .2s,opacity .2s}
.client:hover img{filter:none;opacity:1}

.cta-band{padding:0 0 96px}
.cta-card{background:linear-gradient(135deg,#0a5fd6,#0048b0);color:#fff;border-radius:var(--radius-lg);padding:56px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.cta-card h2{margin:0 0 6px}
.cta-card p{margin:0;opacity:.88}
.cta-card .btn-primary{background:#fff;color:var(--blue)}
.cta-card .btn-primary:hover{background:#eaf2ff;color:var(--blue-dk)}
.cta-card .btn-ghost{background:transparent;border-color:rgba(255,255,255,.45);color:#fff}
.cta-card .btn-ghost:hover{border-color:#fff}

/* Inner pages */
.page-hero{background:var(--surface);border-bottom:1px solid var(--line);padding:56px 0 48px}
.crumbs{font-size:.88rem;color:var(--muted);margin-bottom:10px}
.crumbs a{color:var(--muted)}
.page-body{padding:56px 0 96px}
.page-layout{display:grid;grid-template-columns:1fr 320px;gap:40px;align-items:start}
.entry{max-width:760px}
.entry img{border-radius:var(--radius)}
.entry input[type=text],.entry input[type=email],.entry input[type=tel],.entry textarea,.entry select{width:100%;font:inherit;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}
.entry input:focus,.entry textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px var(--blue-soft)}
.entry button,.entry input[type=submit]{background:var(--blue);color:#fff;border:0;border-radius:var(--radius);padding:12px 22px;font:inherit;font-weight:600;cursor:pointer}
.side-card{border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px;background:var(--surface);position:sticky;top:100px}
.side-card h3{margin-bottom:8px}
.side-card p{color:var(--muted);font-size:.95rem}
.side-card .row{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line);font-size:.93rem}
.side-card .row span{color:var(--muted)}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:#0e1013;padding:48px 0 32px;font-size:.93rem;color:var(--muted)}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;margin-bottom:36px}
.site-footer h4{color:var(--text);font-size:.95rem;margin:0 0 12px}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:8px}
.site-footer a{color:var(--muted)}.site-footer a:hover{color:var(--text)}
.foot-bottom{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

/* Responsive */
@media (max-width:980px){
  .hero .wrap,.page-layout{grid-template-columns:1fr}
  .services{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .step:nth-child(2){border-right:0}
  .step:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .clients{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .side-card{position:static}
}
@media (max-width:760px){
  .menu-toggle{display:block}
  .nav{position:absolute;top:76px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);display:none;padding:12px 24px 20px}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
  .header-cta{display:none}
  .section{padding:64px 0}
  .steps{grid-template-columns:1fr}
  .step{border-right:0;border-bottom:1px solid var(--line)}
  .step:last-child{border-bottom:0}
  .clients{grid-template-columns:repeat(2,1fr)}
  .cta-card{padding:36px 28px}
  .foot-grid{grid-template-columns:1fr}
  .topology-foot{flex-wrap:wrap;gap:10px 20px}
}

/* UniFi reseller */
.unifi{border-top:1px solid var(--line)}
.unifi-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:56px;align-items:start}
.unifi-grid .section-head{margin-bottom:28px}
.checks{list-style:none;padding:0;margin:0 0 28px}
.checks li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);color:var(--text)}
.checks li svg{flex:none;width:20px;height:20px;margin-top:3px;stroke:var(--green);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lines{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.line-item{background:var(--surface);padding:26px}
.line-item h3{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.line-item h3 svg{width:22px;height:22px;stroke:var(--blue);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.line-item p{color:var(--muted);font-size:.95rem;margin:0}
.brand img,.custom-logo{background:#fff;border-radius:8px;padding:2px 6px}
@media (max-width:980px){.unifi-grid{grid-template-columns:1fr;gap:36px}}
@media (max-width:560px){.lines{grid-template-columns:1fr}}
