/* =========================================================
   Viacode Solutions — Static Marketing Site
   Design system + components
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* "navy" slots now hold the black/charcoal scale (kept names so all rules cascade) */
  --navy-900: #000000;
  --navy-800: #0c0c0c;
  --navy-700: #151515;
  --navy-600: #1f1f1f;

  --ink: #14110a;
  --slate-900: #221d12;
  --slate-700: #564d3b;
  --slate-500: #837860;
  --slate-300: #b3a98f;

  --line: #ece6d8;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --surface-3: #f3eddf;

  --brand: #d4af37;       /* gold */
  --brand-dark: #a87d23;  /* deeper gold for text on light backgrounds */
  --violet: #f0c75e;      /* champagne (secondary accent) */
  --cyan: #b8860b;        /* dark goldenrod */

  --grad: linear-gradient(120deg, #f4d36b 0%, #d4af37 50%, #a9781d 120%);
  --grad-soft: linear-gradient(120deg, rgba(212,175,55,.16), rgba(168,125,35,.12));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(20, 16, 4, .07);
  --shadow-md: 0 12px 30px rgba(20, 16, 4, .12);
  --shadow-lg: 0 24px 60px rgba(20, 16, 4, .20);
  --shadow-glow: 0 18px 50px rgba(212, 175, 55, .40);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p { color: var(--slate-700); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 68px 0; }
.section--alt { background: var(--surface-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--grad-soft);
  border: 1px solid rgba(212,175,55,.22);
  padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.section-head .eyebrow { margin-bottom: 18px; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: var(--pad); border-radius: 12px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #1a1505; background: var(--grad); background-size: 160% 160%; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(212,175,55,.45); background-position: 100% 0; }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(212,175,55,.4); }
.btn-light { color: var(--ink); background: #fff; }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-lg { --pad: 17px 32px; font-size: 1.02rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: rgba(212,175,55,.28); box-shadow: 0 8px 30px rgba(0,0,0,.55); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand .logo-mark { /* legacy text-mark fallback (no longer used in markup) */
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 1.05rem; box-shadow: var(--shadow-glow);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 500; font-size: .97rem; color: #d8cfb8;
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #f0d588; background: rgba(212,175,55,.14); }
.nav-links .btn { display: none; } /* in-menu CTA: shown only on mobile (see media query) */
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #f0e6cf; margin: 5px auto; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #2e2611 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff; padding: 116px 0 130px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0;
}
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, #d4af37, transparent 70%); top: -120px; right: -60px; }
.hero::after { width: 420px; height: 420px; background: radial-gradient(circle, #8a6510, transparent 70%); bottom: -160px; left: -80px; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 860px; }
.hero h1 { color: #fff; }
.hero h1 .text-grad { background: linear-gradient(120deg,#f7e08f,#e7c45a 55%,#caa233); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 500;
  font-size: .85rem; letter-spacing: .04em; color: #ecdcae;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5cf2a3; box-shadow: 0 0 0 4px rgba(92,242,163,.2); }
.hero p.sub { color: #d8cfb8; font-size: 1.18rem; margin: 22px 0 36px; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 58px; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 1.9rem; color: #fff; display: block; }
.hero-stats .stat span { color: #b3a98f; font-size: .92rem; }

/* ---------- Intro / welcome ---------- */
.intro-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.intro-split .lead { font-size: 1.14rem; }
.intro-card-stack { display: grid; gap: 16px; }
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mini-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.mini-card .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); color: var(--brand-dark); display: grid; place-items: center; }
.mini-card .ic svg { width: 22px; height: 22px; }
.mini-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 3px; }
.mini-card p { font-size: .94rem; margin: 0; }

/* ---------- Service cards grid ---------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 56px; height: 56px; border-radius: 15px; background: var(--grad-soft); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 20px; transition: transform .35s var(--ease);
}
.card:hover .ic { transform: rotate(-6deg) scale(1.06); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand-dark); }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Feature / why-us list ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature .ic { flex: none; width: 50px; height: 50px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 5px; }
.feature p { font-size: .96rem; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-glow); margin-bottom: 18px;
}
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff; text-align: center;
  background: radial-gradient(120% 140% at 50% -20%, #3a2f12, var(--navy-800)); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .14; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ddd2b5; max-width: 600px; margin: 16px auto 30px; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(120% 130% at 85% -20%, #2e2611, var(--navy-800) 55%, var(--navy-900));
  color: #fff; padding: 88px 0 72px; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .55; background: radial-gradient(circle,#d4af37,transparent 70%); top: -120px; right: -60px; }
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8cfb8; font-size: 1.15rem; margin-top: 18px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: #9a8f76; margin-bottom: 18px; font-family: var(--font-head); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- About ---------- */
.story p + p { margin-top: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border-left: 4px solid transparent; transition: border-color .3s, transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-left-color: var(--brand); }
.value h3 { font-size: 1.08rem; margin-bottom: 6px; }
.value p { font-size: .96rem; }
.do-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.do-item { background: var(--grad-soft); border: 1px solid rgba(212,175,55,.18); border-radius: var(--radius-lg); padding: 30px 26px; }
.do-item .tag { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); display: block; margin-bottom: 8px; }
.do-item p { font-size: .98rem; color: var(--slate-700); }

/* ---------- Services detail blocks ---------- */
.svc-block { scroll-margin-top: 100px; }
.svc-block + .svc-block { margin-top: 26px; }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.svc-head .badge-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); flex: none; }
.svc-head .badge-ic svg { width: 28px; height: 28px; }
.svc-intro { font-size: 1.06rem; max-width: 760px; margin: 6px 0 30px; }
.svc-cta-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.svc-cta-line p { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin: 0; }

/* services overview pills */
.svc-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 40px 36px; position: relative; overflow: hidden; }
.contact-info::after { content:""; position:absolute; width:280px;height:280px;border-radius:50%;filter:blur(70px);opacity:.55;background:radial-gradient(circle,#d4af37,transparent 70%);bottom:-120px;right:-80px; }
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.contact-info > p { color: #d8cfb8; margin-bottom: 28px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(212,175,55,.12); display: grid; place-items: center; color: #e7c45a; flex: none; }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line .label { font-size: .8rem; color: #9a8f76; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-head); }
.contact-line .val { color: #fff; font-weight: 500; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(212,175,55,.13); }
.reassure { margin-top: 18px; font-size: .92rem; color: var(--slate-500); display: flex; align-items: center; gap: 9px; }
.reassure svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.form-note { display:none; margin-top:16px; padding:14px 16px; border-radius:11px; background: var(--grad-soft); border:1px solid rgba(212,175,55,.25); color: var(--brand-dark); font-weight:500; font-size:.95rem; }
.form-note.is-error { background: #fdecec; border-color: #f3c0c0; color: #b3261e; }
.form-note.is-loading { background: var(--surface-3); border-color: var(--line); color: var(--slate-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #d8cfb8; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { color: #9a8f76; font-size: .96rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col li { color: #c3b896; font-size: .95rem; padding: 5px 0; display: block; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 11px; color: #c3b896; font-size: .95rem; padding: 0; }
.footer-contact svg { width: 17px; height: 17px; color: #e7c45a; flex: none; }
.footer-contact a, .footer-contact span { color: inherit; font-size: inherit; padding: 0; display: inline; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .9rem; color: #8a7f66; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #d8cfb8; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-3, .steps, .svc-overview, .do-list { grid-template-columns: repeat(2,1fr); }
  .intro-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(8,8,8,.98); padding: 18px 20px 24px; border-bottom: 1px solid rgba(212,175,55,.25); box-shadow: 0 20px 40px rgba(0,0,0,.5);
    transform: translateY(-130%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 8px; }
  .cards-3, .cards-2, .steps, .why-grid, .values-grid, .svc-overview, .do-list, .form-row, .portfolio-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 96px; }
  .hero-stats { gap: 28px; }
  .svc-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
