/* The V-Group, Inc. -- static site styles */

:root {
  --color-primary: #111111;
  --color-accent: #2b9dff;
  --color-accent-dark: #1c7fd6;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fc;
  --color-white: #ffffff;
  --color-border: #e5e9ee;
  --font-base: "Poppins", Arial, Helvetica, sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 100;
}

.topbar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar a {
  color: var(--color-white);
}

.topbar-brand {
  color: var(--color-white);
  font-weight: 600;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand .logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.navbar .btn {
  white-space: nowrap;
}

/* Hero */

.hero {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-copy .tagline {
  font-size: 1.1rem;
  color: #444;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Hero carousel (full-bleed) */

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0f1c;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  max-height: 640px;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

@media (max-width: 720px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Page header (non-home pages) */

.page-header {
  padding: 56px 0 40px;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header p {
  color: #555;
  max-width: 640px;
  margin: 0 auto;
}

.page-header p.wide {
  max-width: 1080px;
}

/* Feature grid */

.features {
  padding: 24px 0 72px;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading .lead {
  font-size: 1.4rem;
  color: #333;
}

.section-heading .company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  background: var(--color-white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  transform: translateY(-4px);
}

.feature-card img {
  border-radius: 6px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Content sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  margin-bottom: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

ul.check-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

ul.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #444;
}

ul.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.team-card .role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

/* Values */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.value-pill {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

/* Projects list */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 26px;
  background: var(--color-white);
}

.project-card h3 {
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.project-card p {
  margin-bottom: 0;
  color: #444;
  font-size: 0.95rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.contact-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.contact-card .value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* CTA band */

.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band .btn {
  margin-top: 8px;
}

/* Footer */

.site-footer {
  background: var(--color-primary);
  color: #cfd3d8;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
  color: #cfd3d8;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa0a8;
}

.footer-bottom a {
  color: #cfd3d8;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* Responsive */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .feature-grid,
  .team-grid,
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.06);
  }

  .nav-menu.open {
    display: flex;
  }

  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  .navbar .btn {
    order: 1;
  }

  h1 { font-size: 2rem; }

  .feature-grid,
  .team-grid,
  .project-list,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    justify-content: center;
  }
}

/* ---------- Accessibility: respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Accessibility toolbar ---------- */
#a11y-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: 3px solid #fff;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#a11y-toggle:hover { background: var(--color-accent-dark); }

#a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 250;
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  color: var(--color-primary);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.18);
  padding: 18px;
  display: none;
}
#a11y-panel.open { display: block; }
#a11y-panel h2 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a11y-row span { font-size: 0.9rem; font-weight: 700; }
.a11y-row .a11y-btns { display: flex; gap: 6px; }
.a11y-row button {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}
.a11y-row button[aria-pressed="true"] { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.a11y-row button:hover { border-color: var(--color-accent); }
#a11y-reset { width: 100%; margin-top: 4px; }

@media (max-width: 500px) {
  #a11y-toggle { right: 14px; bottom: 14px; width: 64px; height: 64px; font-size: 1.9rem; }
  #a11y-panel { right: 14px; bottom: 88px; }
}

.a11y-text-btns-row button { line-height: 1; }

/* ---------- Accessibility: underline links ---------- */
html.a11y-underline-links a:not(.btn):not(.nav-toggle) { text-decoration: underline !important; }

/* ---------- Accessibility: text size scaling ---------- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-text-xxl { font-size: 137.5%; }

/* ---------- Accessibility: high-contrast mode ---------- */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .topbar,
html.a11y-contrast .site-header,
html.a11y-contrast footer.site-footer,
html.a11y-contrast .page-header,
html.a11y-contrast .cta-band,
html.a11y-contrast .feature-card,
html.a11y-contrast .project-card,
html.a11y-contrast .contact-card,
html.a11y-contrast .team-card,
html.a11y-contrast .value-pill,
html.a11y-contrast #a11y-panel,
html.a11y-contrast .section-alt { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .site-header { border-bottom-color: #fff; }
html.a11y-contrast p,
html.a11y-contrast span,
html.a11y-contrast li,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast .footer-grid { color: #fff !important; }
html.a11y-contrast a { color: #ffe600 !important; text-decoration: underline !important; }
html.a11y-contrast .btn { background: #ffe600 !important; color: #000 !important; border-color: #ffe600 !important; }
html.a11y-contrast .btn-outline { color: #ffe600 !important; border-color: #ffe600 !important; background: #000 !important; }
html.a11y-contrast img:not(.logo) { filter: grayscale(0.2) contrast(1.1); }
