/* ==========================================================
   GoDigital Inc. design system
   Brand: teal #02aaa1, orange #fcb13e. Dark + glassmorphism.
   ========================================================== */
:root {
  --bg: #061317;
  --bg-2: #0a1c21;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --text: #e8f1f2;
  --muted: #9db4b7;
  --teal: #02aaa1;
  --teal-light: #2fd6cb;
  --orange: #fcb13e;
  --on-brand: #041012;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(2, 170, 161, 0.22), transparent 60%),
    radial-gradient(700px 420px at 0% 30%, rgba(252, 177, 62, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* fine grid pattern */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 80%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--orange); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-primary { background: var(--teal); color: var(--on-brand); box-shadow: 0 6px 24px rgba(2,170,161,.35); }
.btn-primary:hover { background: var(--teal-light); }
.btn-accent { background: var(--orange); color: var(--on-brand); box-shadow: 0 6px 24px rgba(252,177,62,.3); }
.btn-accent:hover { background: #ffc468; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-strong); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(6,19,23,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 48px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-link { color: var(--text); font-weight: 500; font-size: 0.93rem; padding: 10px 8px 10px 12px; border-radius: 8px; }
.nav-item:not(.has-dropdown) .nav-link { padding-right: 12px; }
.nav-link:hover { color: var(--teal-light); text-decoration: none; }
.nav-link.active { color: var(--orange); }
.dd-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 8px 8px 2px; border-radius: 8px; }
.dropdown {
  list-style: none; margin: 0; padding: 10px; min-width: 280px;
  position: absolute; top: 100%; left: 0; z-index: 10;
  background: rgba(10,28,33,.96); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.dropdown a:hover { background: var(--surface-strong); text-decoration: none; }
.dropdown strong { display: block; font-size: 0.92rem; }
.dropdown span { display: block; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 961px) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(6,19,23,.98); border-bottom: 1px solid var(--border); padding: 12px 20px 24px; gap: 14px;
    max-height: calc(100vh - 72px); overflow-y: auto; display: none;
  }
  .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-row { justify-content: space-between; border-bottom: 1px solid var(--border); }
  .nav-link { flex: 1; padding: 14px 4px; }
  .dd-toggle { padding: 14px 10px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 4px 0 8px 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .grad { background: linear-gradient(90deg, var(--teal-light), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; }
.hero-visual > img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }
.float-card { position: absolute; left: -18px; bottom: 24px; padding: 14px 18px; max-width: 250px; font-size: 0.85rem; }
.float-card strong { display: block; color: var(--orange); font-size: 1.4rem; line-height: 1.1; }
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px; }
.metric { text-align: center; padding: 6px 10px; }
.metric .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--teal-light); line-height: 1.1; }
.metric .lbl { color: var(--muted); font-size: 0.88rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(47,214,203,.45); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card-body h3 a { color: var(--text); }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.card-pad { padding: 28px; }
.badge { align-self: flex-start; display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); margin-bottom: 12px; }
.badge-b2b { background: rgba(2,170,161,.18); color: var(--teal-light); }
.badge-b2c { background: rgba(252,177,62,.18); color: var(--orange); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.checklist li { padding-left: 24px; position: relative; margin-bottom: 4px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--teal-light); border-bottom: 2px solid var(--teal-light); transform: rotate(-45deg); }
.meta { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }

.segment-card { padding: 34px; position: relative; overflow: hidden; }
.segment-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; filter: blur(30px); opacity: .25; }
.segment-b2b::after { background: var(--teal); }
.segment-b2c::after { background: var(--orange); }
.segment-card .btn { margin-top: 8px; }

/* ---------- Clients ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.logo-chip { background: #fff; border-radius: 14px; width: 190px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.logo-chip img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logo-chip:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(2,170,161,.25), rgba(252,177,62,.12)); }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.team-card { text-align: center; padding: 24px; }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 16px; border: 3px solid var(--teal); }
.team-card .role { color: var(--orange); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form { padding: 32px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 46px;
}
select option { background: var(--bg-2); color: var(--text); }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f898d; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }

/* ---------- Directory ---------- */
.search-panel { padding: 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 0; list-style: none; }
.pills a, .pills button { display: inline-block; font: 500 .85rem var(--font); padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: transparent; cursor: pointer; text-decoration: none !important; }
.pills a:hover, .pills a.active, .pills button.active { background: var(--teal); color: var(--on-brand); border-color: var(--teal); }
.biz-card .card-body { padding: 22px; }
.verified { color: var(--teal-light); font-size: .8rem; font-weight: 600; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.dl dt { color: var(--muted); font-size: .85rem; }
.dl dd { margin: 0; }
.notice { border-left: 3px solid var(--orange); padding: 12px 16px; background: rgba(252,177,62,.08); border-radius: 0 10px 10px 0; font-size: .9rem; margin-bottom: 24px; }

/* ---------- Posts / prose ---------- */
.post-cover { border-radius: var(--radius); border: 1px solid var(--border); margin: 8px 0 32px; width: 100%; }
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--teal); color: var(--muted); }
.prose code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: #02090c; border: 1px solid var(--border); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tag-list li { font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 12px; border-radius: 999px; }
.share { display: flex; gap: 14px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 28px; }
.author-box { display: flex; gap: 18px; padding: 22px; align-items: flex-start; margin-bottom: 20px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.author-box span { display: block; color: var(--orange); font-size: .82rem; }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(3,10,12,.6); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 300px; }
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 14px; }
.footer-col ul, .social-links { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .social-links a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover, .social-links a:hover { color: var(--teal-light); }
.social-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .profile-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search-panel { grid-template-columns: 1fr; }
  .float-card { left: 12px; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 32px; }
  .grid-2, .grid-3, .grid-4, .form-row, .metrics { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .form { padding: 22px; }
  .btn { width: auto; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .logo-chip { width: calc(50% - 8px); height: 84px; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-nav {
  margin: 0 auto; /* Centers nav between logo and right action button */
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* Adjust horizontal spacing between links */
  list-style: none;
  margin: 0;
  padding: 0;
}