/*
Theme Name: OuterNet OnePage (Mobile Fixed v2)
Theme URI: https://outernetcom.ca/
Author: Bruno Tassone
Description: One-page WordPress theme template for OuterNet Communications.
Version: 1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outernet-onepage-mobile-v2
*/

:root{
  --max: 1120px;
  --radius: 18px;
  --border: rgba(0,0,0,0.12);
  --muted: rgba(11,18,32,0.72);
  --text: #0b1220;
  --bg: #ffffff;
  --panel: #ffffff;
  --shadow: 0 18px 55px rgba(0,0,0,0.10);
  --shadow-sm: 0 10px 28px rgba(0,0,0,0.08);
  --accent: #1e40af;
  --accent-2: #16a34a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --topbar-h: 82px;
  /* Extra spacing added when navigating to #anchors. Set to 0 for a tighter landing. */
  --anchor-extra: 0px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 500px at 16% 12%, rgba(37,99,235,0.10), transparent 60%),
              radial-gradient(900px 520px at 86% 20%, rgba(22,163,74,0.08), transparent 60%),
              linear-gradient(180deg, #f5f9ff, #ffffff);
  line-height:1.55;
  padding-top: var(--topbar-h);
  overflow-x:hidden;
}
a{ color:inherit; }
#top, section[id]{ scroll-margin-top: calc(var(--topbar-h) + var(--anchor-extra)); }

.wrap{ max-width: var(--max); margin:0 auto; padding: 22px 18px 70px; }

/* Top bar */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.topbar .wrap{ padding: 10px 18px; }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:14px; }

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 0;
}
.brand img{
  height: 62px !important; /* overrides inline height on the base64 logo */
  width: auto !important;
  display:block;
  transform: none !important; /* overrides inline transform */
}

.links{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.links a{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(11,18,32,0.78);
  border: 1px solid transparent;
}
.links a:hover{ color: var(--text); border-color: var(--border); background: rgba(0,0,0,0.04); }

.cta{
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color:#ffffff;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 12px 35px rgba(37,99,235,0.18);
}
.cta:hover{ filter: brightness(1.03); }

.menuBtn{
  display:none;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.menuBtn:hover{ background: rgba(0,0,0,0.07); }
.mobileMenu{ display:none; margin-top:10px; gap:10px; flex-wrap:wrap; }
.mobileMenu a{ text-decoration:none; padding: 8px 10px; border-radius: 12px; border:1px solid var(--border); background: rgba(0,0,0,0.03); }
.mobileMenu.show{ display:flex; }

/* Hero */
.hero{ padding: 18px 0 24px; }
.grid{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: stretch; }

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.heroCard{ padding: 28px; position:relative; overflow:hidden; }
.heroCard:before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(650px 260px at 0% 0%, rgba(30,64,175,.16), transparent 60%),
              radial-gradient(520px 240px at 100% 20%, rgba(30,64,175,.10), transparent 60%);
  pointer-events:none;
}
.heroCard > *{ position:relative; }

.badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
  color: rgba(11,18,32,0.70);
  font-size: 12px;
}
.dot{ width:8px; height:8px; border-radius:999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }

.heroTitle{
  margin: 12px 0 10px;
  text-align:center;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.1px;
}

h1{ margin: 14px 0 10px; font-size: clamp(28px, 3.6vw, 44px); line-height:1.08; letter-spacing:-0.3px; }
.lead{ margin: 0 0 18px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }

.heroActions{ display:flex; flex-wrap:wrap; gap:12px; }
.heroActions .btn{ flex: 1 1 0; min-width: 170px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  text-decoration:none;
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.btn:hover{ background: rgba(0,0,0,0.04); }
.btn.primary{
  background: linear-gradient(135deg, #16a34a, rgba(22,163,74,.78));
  color:#ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 35px rgba(22,163,74,0.18);
}

.stats{ padding: 22px; display:grid; grid-template-columns: 1fr; gap: 12px; }
.stat{ padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(37,99,235,0.06); box-shadow: var(--shadow-sm); }
.stat strong{ display:block; font-size: 18px; }
.stat span{ color: var(--muted); font-size: 12px; }

.heroImage{
  width:100%;
  max-height: 680px;
  object-fit: contain;
  margin: 6px 0 6px;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.18));
}

/* Sections */
section{ padding: 18px 0; }
.sectionHead{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin: 10px 0 14px; }
.kicker{ margin:0; color: var(--muted); font-size: 13px; }
.tag{ display:inline-flex; align-items:center; gap:8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,0.03); color: rgba(11,18,32,.70); font-size:12px; }

h2{ margin:0; font-size: 22px; letter-spacing: -0.2px; }

.tiles{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.tile{
  position:relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,0.06);
  box-shadow: var(--shadow-sm);
}
.tile p{ margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }

.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel{ padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: rgba(37,99,235,0.06); box-shadow: var(--shadow-sm); }
ul{ margin: 10px 0 0 18px; color: var(--muted); }
li{ margin: 8px 0; }
.small{ color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Product images + magnify button */
.productImg{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display:block;
  margin-top: 10px;
}
.zoomBtn{
  margin-top: 10px;
  margin-left: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
}
.zoomBtn:hover{ background: rgba(0,0,0,0.04); }

/* Reference charts */
.chartsHead{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin: 10px 0 14px; }
.chartsTitleRow{ display:flex; align-items:center; gap:12px; }
.chartsTiles{ display:grid; grid-template-columns: 1fr; gap: 14px; }
.refChartRow{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,0.06);
  box-shadow: var(--shadow-sm);
}
.chartThumb{ width: min(520px, 100%); height:auto; border-radius: 14px; border: 1px solid var(--border); background:#ffffff; display:block; }
.refZoomBtn{
  margin-left: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#ffffff;
  cursor:pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.refZoomBtn:hover{ background: rgba(0,0,0,0.04); }

/* Contact */
.contact{ padding: 22px; }
.contactGrid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 14px; align-items: start; }
label{ display:block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.16);
  background: #ffffff;
  color: var(--text);
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }

.formSuccess{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,.30);
  background: rgba(22,163,74,.12);
  color: #0b3d1e;
  font-size: 14px;
}

/* QR */
.qrBox{
  margin-top: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,0.06);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.qrImg{
  width: 160px;
  height: 160px;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: var(--shadow-sm);
}
.qrLink{ font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }

/* Lightbox (magnify) */
.lightbox-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index: 20000;
  background: rgba(0,0,0,0.70);
  padding: 22px;
  align-items:center;
  justify-content:center;
}

.lightbox-overlay.is-open{
  display:flex;
}
.lightbox-inner{
  width: min(1100px, 100%);
  max-height: calc(100vh - 44px);
  border-radius: 18px;
  background: #0b1220;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position:relative;
}
.lightbox-img{
  width:100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display:block;
  background: #0b1220;
}
.lightbox-close{
  position:absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  color:#ffffff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.12); }
.lightboxOpen{ overflow:hidden; }

/* Footer */
footer{ margin-top: 0; padding: 26px 18px; border-top: 1px solid var(--border); color: rgba(11,18,32,0.65); font-size: 12px; }
.footerBar{ max-width: var(--max); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footerLeft, .footerRight{ white-space: nowrap; }

/* Responsive */
@media (max-width: 1024px){
  .tiles{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  :root{ --topbar-h: 74px; }
  .hero{ padding: 16px 0 24px; }
  .links{ display:none; }
  .menuBtn{ display:inline-flex; }
  .brand img{ height: 52px !important; }
  .tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  #products .tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats{ grid-template-columns: 1fr; }
  .heroActions .btn{ min-width: 100%; }
  .footerLeft, .footerRight{ white-space: normal; }
  .refChartRow{ flex-direction: column; align-items: stretch; }
  .refZoomBtn{ margin-left: 0; width: fit-content; }
}
@media (max-width: 420px){
  .tiles{ grid-template-columns: 1fr; }
  #products .tiles{ grid-template-columns: 1fr; }
}



/* ===== Anti-spam (Turnstile + fallback question) ===== */
.turnstileWrap{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.turnstileHint{
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
}

.humanInline{
  display:none;            /* shown by JS when needed */
  align-items:center;
  gap:10px;
  flex: 2 1 360px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
}

.humanInline .humanQ{
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(30,64,175,0.10); /* JS will override to match --accent */
  white-space: nowrap;
}

.humanInline .humanA{
  width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: #fff;
}

.srOnly{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
