/* Visware site styles (v2) - no JavaScript */

/* ---------- Light theme (default) ---------- */
:root {
  --bg: #ffffff;
  --text: #202124;          /* Google-like neutral */
  --muted: #5f6368;
  --brand: #111827;
  --accent: #1a73e8;        /* Google link blue */
  --accent-2: #e5e7eb;      /* borders */
  --card: #f8fafc;

  --link: var(--accent);
  --link-hover: #1558b0;
  --surface: #ffffff;
}

html {
  color-scheme: light;
  /* Prevent width “judder” when vertical scrollbars appear/disappear */
  scrollbar-gutter: stable both-edges;
}

/* ---------- Dark theme ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;         /* deep slate */
    --text: #e6eaee;
    --muted: #a5abb3;
    --brand: #f1f5f9;
    --accent: #8ab4f8;     /* Google dark link */
    --accent-2: #1f2937;
    --card: #11161c;

    --link: var(--accent);
    --link-hover: #a8c6fb;
    --surface: #0b0f14;
  }
  html { color-scheme: dark; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

/* Links: no underline by default; underline/border on hover/focus */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-underline-offset: 2px;
  transition: color .15s ease, border-color .15s ease, text-decoration-thickness .15s ease;
}
a:hover,
a:focus {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Containers */
.container { width: min(1080px, 92%); margin: 0 auto; }
.narrow { width: min(800px, 92%); margin: 0 auto; }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 0; top: 0; background: var(--accent); color: #fff;
  padding: .5rem 1rem; z-index: 1000;
}
:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--accent-2);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand); font-weight: 700;
  border-bottom: none !important; /* prevent brand link underline */
}
.logo { width: 44px; height: 44px; border-radius: 6px; }
@media (max-width: 639px) { .logo { width: 40px; height: 40px; } }

/* Your requested gradient wordmark */
#mainLogoText {
  font-size: 26px;
  font-weight: normal;
  margin: 0;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 20px;
  background: linear-gradient(17deg, #4285f4 12%, #9b72cb 40%, #d96570 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 639px) { #mainLogoText { font-size: 24px; padding-right: 12px; } }

/* Only the word “Visware” (not the whole row) shows hover effect */
.brand:hover #mainLogoText,
.brand:focus #mainLogoText {
  border-bottom: 1px solid currentColor;
}

/* Top nav */
.nav a {
  margin-left: 1rem; font-weight: 500; display: inline-block; padding-bottom: 2px;
}
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Mission strip */
.mission {
  padding: 1.25rem 0;
  background: linear-gradient(180deg, var(--card), var(--surface));
  border-bottom: 1px solid var(--accent-2);
}
.mission-grid { display: flex; grid-template-columns: 1fr 2fr;

    gap: 38px;
    align-items: center;
  }

.mission-text { font-size: 18px; margin: 0; color: var(--muted); flex: 1; }

.mission-title { margin: 0; font-size: clamp(1.6rem, 1.4rem + 1.3vw, 2.2rem);

  /* NEW: shrink wrap the element so the gradient area equals the label width */
  display: inline-block;

  flex: 0;

  line-height: 125%;
  font-weight: 500;

  background: linear-gradient(135deg, #217bfe, #078efb 33%, #ac87eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Sections */
.section-title { margin-top: 0; }
.feature { padding: 1.75rem 0 1.5rem; }
.services-summary { padding: 1.25rem 0 2rem; }

.grid-2 { display: grid; gap: 1.4rem; grid-template-columns: 1.3fr .7fr; }

/* Cards & elements */
.card {
  background: var(--card);
  border: 1px solid var(--accent-2);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
}
.card h3 { margin-top: .2rem; }

.feature-list { margin: .6rem 0 1rem 1.25rem; }
.feature-list li { margin: .25rem 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600;
}
.btn-icon { width: 24px; height: 24px; border-radius: 4px; }

/* Workspace badge under CTA */
.workspace-badge {
  margin-top: .75rem;
  display: inline-flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
}
.gwm-badge { height: 48px; width: auto; display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--accent-2);
  background: var(--surface);
  margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 1.25rem; padding: 1.25rem 0;
  grid-template-columns: repeat(3, 1fr);
}
.legal { padding: .75rem 0 1.25rem; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.reg { vertical-align: super; font-size: .7em; margin-left: .08rem; }
.links a { margin-right: .35rem; }
.dot { margin: 0 .35rem; color: var(--muted); }

/* Brand page helpers */
.do-list, .dont-list { list-style: none; padding-left: 0; margin: .5rem 0 0; }
.do-list li, .dont-list li { position: relative; padding-left: 1.4rem; margin: .3rem 0; }
.do-list li::before, .dont-list li::before {
  position: absolute; left: 0; top: 0; font-weight: 700; line-height: 1.4;
}
.do-list li::before { content: "✓"; }
.dont-list li::before { content: "✕"; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Mobile (<= 639px) ---------- */
@media (max-width: 639px) {
  .header-grid { grid-template-columns: 1fr; row-gap: .5rem; }
  .nav { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav a { margin: 0 .8rem 0 0; display: inline-block; padding-bottom: 2px; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission { padding: 1rem 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .feature { padding: 1.25rem 0; }
  .services-summary { padding: 1rem 0 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
}
