/*
Theme Name: SyncEdge v3
Theme URI: https://syncedgedigital.com
Author: SyncEdge Digital
Author URI: https://syncedgedigital.com
Description: SyncEdge Digital official WordPress theme — Salesforce consulting, development, and ISV partner. Native-first. Strategy to scale.
Version: 1.0.0
License: Proprietary
Text Domain: syncedge-v3
*/

/* ============================================================
   DESIGN TOKENS — Brand Brief v1.0
   ============================================================ */
:root {
  /* Primary */
  --navy:       #0A1628;
  --navy-deep:  #060F1C;
  --navy-soft:  #1E3A5F;

  --white:      #FFFFFF;
  --paper:      #F8F9FB;
  --paper-2:    #EEF1F6;

  /* Brand accent — electric blue */
  --cobalt:     #0070F3;
  --cobalt-600: #0058C4;
  --cobalt-100: #E0EDFE;

  /* Functional */
  --c-success:  #10B981;
  --c-warn:     #F59E0B;
  --c-error:    #EF4444;
  --c-sf-blue:  #00A1E0;

  /* Product accents (kept for variety on cards) */
  --p-blue:     #0070F3;
  --p-violet:   #7C5CFF;
  --p-teal:     #10B981;
  --p-amber:    #F59E0B;

  /* Dark surface vars */
  --d-text:     #FFFFFF;
  --d-soft:     #B7C3D9;
  --d-mute:     #64748B;
  --d-line:     rgba(255,255,255,0.08);
  --d-line-2:   rgba(255,255,255,0.16);

  /* Light surface vars */
  --l-text:     #0A1628;
  --l-soft:     #334155;
  --l-mute:     #64748B;
  --l-line:     #E2E8F0;
  --l-line-2:   #CBD5E1;

  --grad-hero:  linear-gradient(100deg, #3399FF 0%, #0070F3 50%, #7C5CFF 100%);

  --maxw: 1200px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--navy);
  color: var(--d-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Surfaces */
.s-dark  { background: var(--navy);      color: var(--d-text); --soft: var(--d-soft); --mute: var(--d-mute); --line: var(--d-line); --line2: var(--d-line-2); }
.s-deep  { background: var(--navy-deep); color: var(--d-text); --soft: var(--d-soft); --mute: var(--d-mute); --line: var(--d-line); --line2: var(--d-line-2); }
.s-slate { background: var(--navy-soft); color: var(--d-text); --soft: var(--d-soft); --mute: var(--d-mute); --line: var(--d-line); --line2: var(--d-line-2); }
.s-white { background: var(--white);     color: var(--l-text); --soft: var(--l-soft); --mute: var(--l-mute); --line: var(--l-line); --line2: var(--l-line-2); }
.s-paper { background: var(--paper);     color: var(--l-text); --soft: var(--l-soft); --mute: var(--l-mute); --line: var(--l-line); --line2: var(--l-line-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.6;
}

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--d-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
}
.brand-mark {
  width: 38px; height: 38px;
  background-size: 100%;
  background-position: center;
  border-radius: 8px;
}
.brand-text {
  font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-text span { color: var(--d-mute); font-weight: 500; margin-left: 6px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--d-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.current { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn-primary   { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-600); }
.btn-cobalt    { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-600); }
.btn-white     { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--cobalt); color: #fff; }
.btn-ghost-d   { background: transparent; color: var(--d-soft); border: 1px solid var(--d-line-2); }
.btn-ghost-d:hover { color: #fff; border-color: #fff; }
.btn-ghost-l   { background: transparent; color: var(--l-text); border: 1px solid var(--l-line-2); }
.btn-ghost-l:hover { border-color: var(--cobalt); color: var(--cobalt); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--d-line); background: transparent; color: #fff; cursor: pointer;
}

/* ============== PILL ============== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 500;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--d-line-2);
  color: #fff;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 8px var(--c-success); }

/* ============== FORM (shared) ============== */
.cta-form {
  display: grid; gap: 12px;
  position: relative; z-index: 1;
}
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form input, .cta-form select, .cta-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--d-line-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.cta-form textarea { resize: vertical; min-height: 110px; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--d-mute); }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { border-color: var(--cobalt); }
.cta-form select { color: var(--d-soft); appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.cta-form button { padding: 13px 18px; }
.cta-foot {
  font-size: 12px; color: var(--d-mute);
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px;
}
.cta-foot a { color: var(--d-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Interests checkbox group */
.cta-interests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid var(--d-line-2);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
}
.cta-interests > .interests-label {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-mute);
  margin-bottom: 4px;
}
.cta-interests label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--d-soft); cursor: pointer;
}
.cta-interests input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--cobalt);
  cursor: pointer;
}

/* ============== FOOTER ============== */
.footer {
  padding: 60px 0 28px;
  background: var(--navy-deep);
  color: var(--d-soft);
  border-top: 1px solid var(--d-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; color: var(--d-mute); max-width: 280px; }
.footer-contact {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 10px;
}
.footer-contact li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--d-mute);
}
.footer-contact svg { flex: 0 0 14px; opacity: 0.7; color: var(--cobalt); }
.footer-contact a { color: var(--d-mute); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--d-mute); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .certs { display: grid; gap: 8px; font-size: 12.5px; color: var(--d-mute); }
.footer-col .certs span { display: flex; align-items: center; gap: 8px; }
.footer-col .certs span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--d-line);
  font-size: 12px; color: var(--d-mute);
  flex-wrap: wrap; gap: 12px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid var(--d-line);
  display: grid; place-items: center;
  color: var(--d-mute);
  transition: all 0.2s;
}
.socials a:hover { color: #fff; border-color: var(--d-line-2); }

/* ============== REVEAL ============== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============== SHARED PAGE-HERO ============== */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 380px at 80% 10%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(ellipse 600px 280px at 5% 100%, rgba(0,112,243,0.20), transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
}
.page-hero .eyebrow {
  color: var(--d-mute);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 14px 0 22px;
}
.page-hero .lede {
  font-size: 18px;
  color: var(--d-soft);
  max-width: 680px;
}
.page-hero .crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-mute);
  display: inline-flex; gap: 10px; align-items: center;
  margin-bottom: 18px;
}
.page-hero .crumbs a { color: var(--d-mute); text-decoration: none; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero .crumbs .here { color: #fff; }

/* ============== SHARED SUB-NAV ============== */
.sub-nav {
  position: sticky; top: 71px; z-index: 50;
  background: rgba(10,22,40,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--d-line);
}
.sub-nav-list {
  display: flex; gap: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sub-nav-list a {
  display: block;
  padding: 14px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--d-soft); text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sub-nav-list a:hover {
  color: #fff; border-bottom-color: var(--cobalt);
}

/* ============== SHARED CTA BANNER (page closing) ============== */
.sec.closing-cta { padding: 90px 0; }
.cta-banner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px 56px;
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  border: 1px solid var(--d-line-2);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,112,243,0.18), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin: 12px 0 14px;
  position: relative;
}
.cta-banner p {
  font-size: 15.5px; color: var(--d-soft); max-width: 540px;
  position: relative;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--navy);
    padding: 22px 32px; gap: 16px;
    border-bottom: 1px solid var(--d-line);
  }
}
@media (max-width: 980px) {
  .cta-banner { grid-template-columns: 1fr; padding: 44px 32px; }
  .sub-nav { top: 65px; }
}
@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-form .row { grid-template-columns: 1fr; }
  .cta-interests { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0 50px; }
  .cta-banner { padding: 32px 22px; }
  .sec.closing-cta { padding: 90px 0; }
}
