/*
Theme Name: GeniusEdge Technologies
Theme URI: https://geniusedgetech.com
Author: GeniusEdge Technologies
Description: A lightweight custom WordPress theme for GeniusEdge Technologies, a North American distributor and technical enablement partner for embedded hardware brands.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: geniusedge
*/

:root {
  --ge-navy: #07162d;
  --ge-blue: #146cff;
  --ge-cyan: #24b8ff;
  --ge-green: #58e69a;
  --ge-ink: #152033;
  --ge-muted: #627086;
  --ge-light: #f4f8fc;
  --ge-white: #ffffff;
  --ge-border: #dfe7f0;
  --ge-radius: 18px;
  --ge-shadow: 0 20px 50px rgba(7, 22, 45, .12);
  --ge-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ge-ink);
  background: var(--ge-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.ge-container { width: min(calc(100% - 40px), var(--ge-width)); margin-inline: auto; }
.ge-section { padding: 92px 0; }
.ge-section--light { background: var(--ge-light); }
.ge-kicker { margin: 0 0 12px; color: var(--ge-blue); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ge-section-title { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.035em; }
.ge-section-copy { max-width: 720px; margin: 18px 0 0; color: var(--ge-muted); font-size: 1.08rem; }

.ge-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,231,240,.8); backdrop-filter: blur(14px); }
.ge-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ge-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.ge-brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ge-white); background: linear-gradient(135deg, var(--ge-blue), var(--ge-cyan)); box-shadow: 0 8px 20px rgba(20,108,255,.28); }
.ge-brand-text small { display: block; color: var(--ge-muted); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.custom-logo { max-height: 46px; width: auto; }
.ge-nav { display: flex; align-items: center; gap: 28px; }
.ge-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.ge-nav a { font-size: .95rem; font-weight: 650; }
.ge-nav a:hover { color: var(--ge-blue); }
.ge-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }

.ge-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 21px; border-radius: 999px; border: 1px solid transparent; font-weight: 760; transition: .2s ease; }
.ge-button:hover { transform: translateY(-1px); }
.ge-button--primary { color: var(--ge-white); background: linear-gradient(135deg, var(--ge-blue), #1646d8); box-shadow: 0 10px 24px rgba(20,108,255,.26); }
.ge-button--secondary { color: var(--ge-white); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.ge-button--outline { color: var(--ge-ink); border-color: var(--ge-border); background: var(--ge-white); }

.ge-hero { position: relative; overflow: hidden; color: var(--ge-white); background: radial-gradient(circle at 75% 24%, rgba(36,184,255,.28), transparent 28%), linear-gradient(145deg, #061226 0%, #0a2453 58%, #0a3974 100%); }
.ge-hero::before, .ge-hero::after { content: ""; position: absolute; border: 1px solid rgba(88,230,154,.26); border-radius: 50%; }
.ge-hero::before { width: 500px; height: 500px; right: -180px; top: -210px; }
.ge-hero::after { width: 290px; height: 290px; right: 150px; bottom: -190px; }
.ge-hero-inner { position: relative; z-index: 2; min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 80px 0; }
.ge-hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .96; letter-spacing: -.06em; }
.ge-hero h1 span { color: var(--ge-green); }
.ge-hero p { max-width: 660px; margin: 25px 0 0; color: #c8d8eb; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.ge-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.ge-hero-note { margin-top: 24px; color: #9fb3ca; font-size: .91rem; }
.ge-board-visual { position: relative; min-height: 440px; }
.ge-board-card { position: absolute; inset: 40px 20px 20px 40px; border-radius: 28px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.04)); box-shadow: 0 35px 90px rgba(0,0,0,.34); backdrop-filter: blur(10px); transform: rotate(-4deg); }
.ge-pcb { position: absolute; inset: 74px 56px 54px 68px; padding: 28px; border-radius: 24px; color: #d8ffea; background: linear-gradient(145deg, #073b34, #0a6a56); box-shadow: 0 30px 55px rgba(0,0,0,.38); transform: rotate(5deg); }
.ge-pcb-grid { position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 28px 28px; border-radius: inherit; }
.ge-chip { position: relative; z-index: 2; width: 48%; min-width: 150px; aspect-ratio: 1.3; margin: 58px auto 0; display: grid; place-items: center; border: 10px solid #1e2731; border-radius: 14px; background: #111820; box-shadow: inset 0 0 0 2px #495463, 0 16px 30px rgba(0,0,0,.28); font-weight: 850; letter-spacing: .05em; }
.ge-pins { position: absolute; inset: 24px 18px; border-left: 6px dotted #e7c166; border-right: 6px dotted #e7c166; opacity: .9; }
.ge-pcb-label { position: relative; z-index: 2; margin-top: 28px; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.ge-float-tag { position: absolute; z-index: 5; padding: 12px 16px; border-radius: 14px; color: var(--ge-ink); background: var(--ge-white); box-shadow: var(--ge-shadow); font-size: .86rem; font-weight: 800; }
.ge-float-tag--one { left: 0; top: 48px; }
.ge-float-tag--two { right: 0; bottom: 38px; }

.ge-trustbar { border-bottom: 1px solid var(--ge-border); background: var(--ge-white); }
.ge-trustbar-inner { min-height: 96px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; gap: 20px; }
.ge-trust-item { display: flex; align-items: center; gap: 12px; color: var(--ge-muted); font-size: .93rem; font-weight: 700; }
.ge-icon-dot { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--ge-blue); background: #e9f2ff; }

.ge-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 42px; }
.ge-product-card { overflow: hidden; display: flex; flex-direction: column; min-height: 440px; border: 1px solid var(--ge-border); border-radius: var(--ge-radius); background: var(--ge-white); box-shadow: 0 12px 38px rgba(7,22,45,.06); transition: .2s ease; }
.ge-product-card:hover { transform: translateY(-5px); box-shadow: var(--ge-shadow); }
.ge-product-media { min-height: 190px; padding: 24px; display: grid; place-items: center; background: linear-gradient(145deg, #edf5ff, #f7fbff); }
.ge-mini-board { width: 150px; height: 92px; position: relative; border-radius: 10px; background: linear-gradient(145deg, #0b6a58, #0a443a); box-shadow: 0 18px 28px rgba(7,22,45,.23); transform: rotate(-5deg); }
.ge-mini-board::before { content: ""; position: absolute; width: 62px; height: 46px; inset: 23px auto auto 44px; border-radius: 6px; background: #182029; box-shadow: inset 0 0 0 3px #414b58; }
.ge-mini-board::after { content: ""; position: absolute; inset: 10px 6px; border-left: 4px dotted #ddb958; border-right: 4px dotted #ddb958; }
.ge-product-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.ge-product-tag { align-self: flex-start; margin-bottom: 12px; padding: 5px 9px; border-radius: 999px; color: #075c3d; background: #ddf9ea; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.ge-product-card h3 { margin: 0; font-size: 1.24rem; line-height: 1.25; }
.ge-product-card p { margin: 12px 0 18px; color: var(--ge-muted); font-size: .94rem; }
.ge-text-link { margin-top: auto; color: var(--ge-blue); font-weight: 800; }

.ge-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.ge-feature { padding: 30px; border-radius: var(--ge-radius); background: var(--ge-white); border: 1px solid var(--ge-border); }
.ge-feature svg { color: var(--ge-blue); }
.ge-feature h3 { margin: 18px 0 8px; }
.ge-feature p { margin: 0; color: var(--ge-muted); }

.ge-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ge-panel { padding: 42px; border-radius: 26px; background: linear-gradient(145deg, #0b1c39, #0b315f); color: var(--ge-white); box-shadow: var(--ge-shadow); }
.ge-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 28px; }
.ge-stat { padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.ge-stat strong { display: block; font-size: 1.7rem; color: var(--ge-green); }
.ge-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ge-checks li { display: flex; align-items: flex-start; gap: 11px; }
.ge-checks span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #075c3d; background: #ddf9ea; font-weight: 900; }

.ge-resource-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px; }
.ge-resource { padding: 26px; border-radius: 17px; border: 1px solid var(--ge-border); background: var(--ge-white); }
.ge-resource h3 { margin: 12px 0 5px; }
.ge-resource p { margin: 0; color: var(--ge-muted); font-size: .93rem; }

.ge-cta { padding: 84px 0; color: var(--ge-white); background: linear-gradient(135deg, #0b1f3d, #0b4a7a); }
.ge-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ge-cta h2 { margin: 0; font-size: clamp(2.1rem,4vw,3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.ge-cta p { max-width: 700px; color: #bfd1e3; }

.ge-content { padding: 70px 0; }
.ge-content > *:first-child { margin-top: 0; }
.ge-content a { color: var(--ge-blue); text-decoration: underline; }

.ge-footer { color: #aebed0; background: #050d1a; }
.ge-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,.7fr); gap: 50px; padding: 70px 0 44px; }
.ge-footer h3, .ge-footer h4 { color: var(--ge-white); }
.ge-footer h4 { margin: 0 0 15px; }
.ge-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ge-footer a:hover { color: var(--ge-white); }
.ge-footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }

@media (max-width: 980px) {
  .ge-hero-inner, .ge-split { grid-template-columns: 1fr; }
  .ge-board-visual { min-height: 400px; }
  .ge-products, .ge-resource-grid { grid-template-columns: repeat(2,1fr); }
  .ge-feature-grid { grid-template-columns: repeat(2,1fr); }
  .ge-footer-grid { grid-template-columns: 1fr 1fr; }
  .ge-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 24px 20px 30px; background: var(--ge-white); border-bottom: 1px solid var(--ge-border); box-shadow: 0 20px 40px rgba(7,22,45,.12); }
  .ge-nav.is-open { display: block; }
  .ge-nav ul { display: grid; gap: 18px; margin-bottom: 20px; }
  .ge-menu-toggle { display: inline-grid; }
}

@media (max-width: 680px) {
  .ge-container { width: min(calc(100% - 28px), var(--ge-width)); }
  .ge-section { padding: 68px 0; }
  .ge-hero-inner { min-height: auto; padding: 70px 0; }
  .ge-hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .ge-board-visual { min-height: 330px; }
  .ge-board-card { inset: 30px 10px 15px 22px; }
  .ge-pcb { inset: 58px 30px 38px 40px; }
  .ge-chip { margin-top: 40px; }
  .ge-float-tag { font-size: .75rem; }
  .ge-trustbar-inner, .ge-products, .ge-feature-grid, .ge-resource-grid, .ge-stat-grid, .ge-footer-grid { grid-template-columns: 1fr; }
  .ge-trustbar-inner { padding: 22px 0; }
  .ge-cta-inner { align-items: flex-start; flex-direction: column; }
  .ge-panel { padding: 30px 24px; }
}


/* WordPress-managed product cards */
.ge-product-media { text-decoration: none; }
.ge-product-media img { width: 100%; height: 190px; object-fit: contain; display: block; }
.ge-product-card h3 a { color: inherit; text-decoration: none; }
.ge-product-card h3 a:hover { color: var(--ge-blue); }
.ge-products-empty { grid-column: 1 / -1; padding: 42px; border: 1px dashed var(--ge-border); border-radius: var(--ge-radius); background: var(--ge-light); text-align: center; }
.ge-products-empty h3 { margin-top: 0; font-size: 1.5rem; }
.ge-products-empty p { max-width: 650px; margin: 0 auto 24px; color: var(--ge-muted); }
.ge-product-detail-image img { width: 100%; height: auto; border-radius: var(--ge-radius); }

/* Brand portfolio additions */
.ge-product-brand {
  display: inline-flex;
  margin: 0 8px 10px 0;
  color: var(--ge-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ge-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}
.ge-brand-card {
  padding: 34px;
  border: 1px solid var(--ge-border);
  border-radius: var(--ge-radius);
  background: var(--ge-white);
  box-shadow: 0 12px 36px rgba(7, 22, 45, .07);
}
.ge-brand-card--featured {
  border-color: rgba(20, 108, 255, .35);
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}
.ge-brand-card-label {
  margin-bottom: 12px;
  color: var(--ge-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ge-brand-card h3 { margin: 0 0 10px; font-size: 1.8rem; }
.ge-brand-card p { margin: 0 0 18px; color: var(--ge-muted); }
@media (max-width: 760px) {
  .ge-brand-grid { grid-template-columns: 1fr; }
}


/* About and contact pages */
.ge-page-hero { background: linear-gradient(135deg, #07162d, #0c2850); color: #fff; padding: 92px 0 76px; }
.ge-page-hero .ge-section-title { color: #fff; max-width: 850px; }
.ge-page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.15rem; }
.ge-about-grid, .ge-contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.ge-about-card, .ge-contact-card { padding: 34px; border: 1px solid var(--ge-border); border-radius: var(--ge-radius); background: #fff; box-shadow: 0 12px 36px rgba(7,22,45,.07); }
.ge-about-card h3, .ge-contact-card h3 { margin-top: 0; }
.ge-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.ge-value { padding: 24px; border-radius: 16px; background: var(--ge-light); }
.ge-value h3 { margin: 0 0 8px; font-size: 1.1rem; }
.ge-value p { margin: 0; color: var(--ge-muted); }
.ge-contact-form { display: grid; gap: 18px; }
.ge-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ge-field label { display: block; margin-bottom: 7px; font-weight: 750; color: var(--ge-ink); }
.ge-field input, .ge-field select, .ge-field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--ge-border); border-radius: 10px; background: #fff; color: var(--ge-ink); font: inherit; }
.ge-field textarea { min-height: 160px; resize: vertical; }
.ge-field input:focus, .ge-field select:focus, .ge-field textarea:focus { outline: 3px solid rgba(20,108,255,.15); border-color: var(--ge-blue); }
.ge-notice { margin-bottom: 24px; padding: 16px 18px; border-radius: 10px; font-weight: 650; }
.ge-notice--success { background: #e8fbf1; color: #17613b; border: 1px solid #aee8c8; }
.ge-notice--error { background: #fff0f0; color: #8b2525; border: 1px solid #f0bcbc; }
.ge-contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.ge-contact-list li { padding: 14px 0; border-bottom: 1px solid var(--ge-border); }
.ge-contact-list strong { display: block; margin-bottom: 3px; }
@media (max-width: 820px) { .ge-about-grid, .ge-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ge-values, .ge-form-row { grid-template-columns: 1fr; } }
