/* =========================================================
   Venza Consulting — modern rebuild
   Theme built from the three logo colors:
   #2B4197 navy · #5988BC steel · #39BBEF cyan
   ========================================================= */

:root {
  /* Logo colors (identical in both themes — used for gradients & accents) */
  --navy: #2b4197;
  --steel: #5988bc;
  --cyan: #39bbef;
  /* Signature tri-color gradient using all three logo colors */
  --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--steel) 52%, var(--cyan) 100%);
  --grad-bar: linear-gradient(90deg, var(--navy), var(--steel), var(--cyan));

  /* Brand roles (light): navy=primary, steel=mid, cyan=accent */
  --brand: #2b4197;
  --brand-dark: #21316f;
  --brand-mid: #5988bc;
  --brand-light: #39bbef;
  --brand-pale: #dce7f7;

  /* Surfaces & text (light) */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --text: #1f2733;
  --text-muted: #5b6672;
  --border: #e3e9f2;
  --shadow: 0 1px 2px rgba(31, 39, 51, .05), 0 8px 24px rgba(31, 39, 51, .06);
  --shadow-lg: 0 12px 40px rgba(31, 39, 51, .12);

  --header-h: 160px;
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  /* Logo colors slightly brightened so gradients pop on dark surfaces */
  --navy: #3a54c0;
  --steel: #6ea0d6;
  --cyan: #4fc8f6;
  --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--steel) 52%, var(--cyan) 100%);
  --grad-bar: linear-gradient(90deg, var(--navy), var(--steel), var(--cyan));

  /* Brand roles (dark): lightened for legible text/links on dark bg */
  --brand: #7fb0ea;
  --brand-dark: #6ea0d6;
  --brand-mid: #6ea0d6;
  --brand-light: #4fc8f6;
  --brand-pale: #24344d;

  --bg: #0d1420;
  --bg-alt: #111a29;
  --surface: #16202f;
  --surface-2: #1b2739;
  --text: #e7edf6;
  --text-muted: #9fb0c7;
  --border: #24334a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .6em;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(43, 65, 151, .38); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Signature tri-color accent bar (navy → steel → cyan) */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--grad-bar);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
/* Logo scaled to fit by height; aspect ratio preserved. Light/dark variants swap by theme. */
.brand-logo { flex: none; display: flex; }
.brand-logo img { height: 140px; width: auto; }
/* Theme swap — keep these as the only rules that set `display` on the variants */
.logo-light { display: block; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--text-muted); font-style: italic; }

.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text-muted); font-weight: 600; font-size: .95rem; padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-weight: 700; font-size: .9rem;
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px;
}
.phone-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 55% at 88% 8%, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 70%),
    radial-gradient(50% 55% at 72% 20%, color-mix(in srgb, var(--steel) 22%, transparent), transparent 70%),
    radial-gradient(50% 60% at 6% 92%, color-mix(in srgb, var(--navy) 18%, transparent), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 1.12rem; color: var(--text-muted); max-width: 34em; margin: 0 0 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--brand); letter-spacing: -.02em; }
/* Each stat carries one of the three logo colors */
.hero-stats li:nth-child(1) strong { color: var(--navy); }
.hero-stats li:nth-child(2) strong { color: var(--steel); }
.hero-stats li:nth-child(3) strong { color: var(--cyan); }
html[data-theme="dark"] .hero-stats li:nth-child(1) strong { color: var(--brand); }
.hero-stats span { font-size: .85rem; color: var(--text-muted); }
.hero-art { position: relative; }
.hero-art .photo-frame { transform: rotate(-1.2deg); }

/* ---------- Photos ---------- */
.photo-frame {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface);
}
.photo-frame img { width: 100%; height: auto; display: block; }
.hero-art-badge {
  position: absolute; left: -12px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .85rem;
}
.hero-art-badge svg { color: var(--brand); }

/* Software-development spotlight band */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.spotlight-copy p { color: var(--text-muted); }
.spotlight-list { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 11px; }
.spotlight-list li { position: relative; padding-left: 26px; color: var(--text); }
.spotlight-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px;
  border-radius: 50%; background: var(--grad-brand);
}

/* Team banner introducing the About section */
.about-team { margin-bottom: clamp(28px, 4vw, 44px); }
.about-team img { aspect-ratio: 16 / 6; object-fit: cover; object-position: center 40%; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42em; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 0 22px 26px; }
.card-icon {
  position: relative; z-index: 1; margin-top: -26px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 13px; color: #fff; background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--surface), 0 8px 18px rgba(43, 65, 151, .32);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Approach features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; box-shadow: var(--shadow);
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px;
  border-radius: 4px; background: linear-gradient(var(--navy), var(--steel), var(--cyan));
}
.feature h3 { margin-left: 14px; }
.feature p { margin: 0 0 0 14px; color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.about-copy p { color: var(--text-muted); }
.about-mission {
  background: linear-gradient(160deg, var(--navy) 0%, #2f56a8 55%, var(--steel) 100%);
  color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
/* cyan accent stripe along the top */
.about-mission::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cyan);
}
.about-mission h3 { color: #fff; }
.about-mission h3 + blockquote { margin-bottom: 24px; }
.about-mission blockquote {
  margin: 0 0 8px; padding-left: 16px; border-left: 3px solid var(--cyan);
  color: rgba(255, 255, 255, .92); font-size: .98rem;
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-card {
  display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb {
  flex: none; width: 64px; height: 64px; border-radius: 13px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--steel), var(--cyan));
}
.news-tag { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--brand); margin: 0 0 .4em; }
.news-body h3 { font-size: 1.1rem; margin-bottom: .4em; }
.news-body p { color: var(--text-muted); font-size: .93rem; margin: 0 0 .8em; }
.link-arrow { font-weight: 600; font-size: .9rem; }
.link-arrow span { transition: margin .15s ease; display: inline-block; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { margin-left: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-intro p { color: var(--text-muted); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border: 1px solid var(--border);
}
.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--brand); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field textarea { resize: vertical; }
.form-note { font-size: .84rem; color: var(--text-muted); margin: 14px 0 0; text-align: center; }

/* Honeypot — hidden from people, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact form submit status */
.form-status { margin: 14px 0 0; font-size: .9rem; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c23b3b; }
html[data-theme="dark"] .form-status.ok { color: #56c98a; }
html[data-theme="dark"] .form-status.err { color: #f08a8a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding: 56px 24px 40px; }
.footer-logo { display: block; margin-bottom: 14px; }
.footer-logo img { height: 68px; width: auto; }
.footer-brand .brand-name { display: block; font-weight: 800; font-size: 1.05rem; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 30em; margin: .6em 0 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: var(--text); font-size: .92rem; font-weight: 500; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.to-top { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.to-top:hover { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-top: 8px; }
  .spotlight { grid-template-columns: 1fr; gap: 28px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-team img { aspect-ratio: 16 / 8; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 84px; }
  .brand-logo img { height: 68px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; box-shadow: var(--shadow-lg);
    clip-path: inset(0 0 100% 0); transition: clip-path .28s ease;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .phone-link span { display: none; }
  .phone-link { padding: 8px 11px; }
  .card-grid, .feature-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
