/* ============================================================
   CVA Equity — Computer Systems Design and IT Services
   Original Design System — No Templates Used
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-deep: #0B1D3A;
  --color-midnight: #13294B;
  --color-slate: #1E3A5F;
  --color-teal: #00A896;
  --color-teal-dark: #008575;
  --color-gold: #D4940A;
  --color-gold-light: #F0B830;
  --color-white: #FFFFFF;
  --color-offwhite: #F2F4F7;
  --color-lightgray: #E4E7EC;
  --color-gray: #6B7280;
  --color-text: #111827;
  --color-text-light: #374151;
  --color-border: #D1D5DB;
  --color-danger: #DC2626;
  --color-success: #059669;
  --font-heading: Georgia, Times New Roman, serif;
  --font-body: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  --font-mono: SF Mono, Monaco, Consolas, monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --max-width: 1240px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-teal-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-deep);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--color-deep);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--color-teal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand-icon span {
  transform: rotate(-45deg);
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 0 16px;
  height: 72px;
  line-height: 72px;
  color: var(--color-lightgray);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--color-teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-list a:hover {
  color: var(--color-white);
}
.nav-list a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.3s;
}

/* ---------- Hero Section — Diagonal Split ---------- */
.hero {
  position: relative;
  background: var(--color-deep);
  color: var(--color-white);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content h1 .accent {
  color: var(--color-teal);
}

.hero-content p {
  font-size: 1.15rem;
  color: #C9D1D9;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  line-height: 1.2;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-deep);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-diagram {
  width: 100%;
  max-width: 480px;
}

.diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.diagram-node {
  background: var(--color-midnight);
  border: 2px solid var(--color-slate);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, border-color 0.3s;
}
.diagram-node:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
}
.diagram-node:nth-child(2) {
  margin-top: 20px;
}
.diagram-node:nth-child(3) {
  margin-top: -20px;
}

.diagram-node .node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.diagram-node .node-dot.green { background: var(--color-teal); }
.diagram-node .node-dot.gold { background: var(--color-gold); }
.diagram-node .node-dot.blue { background: #3B82F6; }
.diagram-node .node-dot.purple { background: #8B5CF6; }

.diagram-node .node-label {
  color: var(--color-lightgray);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.diagram-connector {
  display: none;
}

/* ---------- Section Headers ---------- */
.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-gray);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-lightgray);
  border-top: 4px solid var(--color-teal);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  background: var(--color-offwhite);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card:nth-child(3n+2) {
  border-top-color: var(--color-gold);
}
.service-card:nth-child(3n) {
  border-top-color: var(--color-midnight);
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-teal);
}
.service-card:nth-child(3n+2) .card-icon {
  background: var(--color-gold);
}
.service-card:nth-child(3n) .card-icon {
  background: var(--color-midnight);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--color-midnight);
  color: var(--color-white);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- Process Steps ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: process;
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-lightgray);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.process-step .step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-deep);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* ---------- Feature Split ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-visual .visual-block {
  background: var(--color-deep);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.visual-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.visual-row:last-child {
  margin-bottom: 0;
}

.visual-bar {
  height: 8px;
  border-radius: 4px;
}
.visual-bar.teal { background: var(--color-teal); }
.visual-bar.gold { background: var(--color-gold); }
.visual-bar.light { background: var(--color-slate); }

.feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.feature-text p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.feature-list li::before {
  content: '';
  min-width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  margin-top: 10px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--color-deep);
  color: var(--color-white);
  text-align: center;
  padding: 96px 24px;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  color: #A0AEC0;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ---------- Contact Footer ---------- */
.site-footer {
  background: var(--color-midnight);
  color: #C9D1D9;
  padding: 72px 0 36px;
  border-top: 4px solid var(--color-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about h3 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.8;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: #A0AEC0;
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  border-top: 1px solid var(--color-slate);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

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

/* ---------- Legal Pages Layout ---------- */
.legal-hero {
  background: var(--color-deep);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.legal-hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 12px;
}
.legal-hero .legal-date {
  color: var(--color-teal);
  font-size: 1rem;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px;
}

.legal-section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-lightgray);
}
.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.6rem;
  color: var(--color-deep);
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 4px solid var(--color-teal);
}

.legal-section h3 {
  font-size: 1.2rem;
  color: var(--color-midnight);
  margin: 28px 0 12px;
}

.legal-section p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.legal-section ul li,
.legal-section ol li {
  color: var(--color-text-light);
  line-height: 1.8;
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
}

.legal-section ol {
  counter-reset: legal-counter;
}
.legal-section ol li {
  counter-increment: legal-counter;
}
.legal-section ol li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 600;
}

.legal-contact {
  background: var(--color-offwhite);
  border: 1px solid var(--color-lightgray);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 28px;
}

.legal-contact h3 {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 100px;
  }
  .hero-content p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-diagram { max-width: 400px; margin: 0 auto; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-list::before { display: none; }
  .feature-split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-deep);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--color-teal);
  }
  .nav-list.active {
    display: flex;
  }
  .nav-list a {
    height: 52px;
    line-height: 52px;
    padding: 0 24px;
  }
  .nav-list a::after { display: none; }
  .mobile-toggle { display: block; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .legal-hero h1 { font-size: 2rem; }
  .legal-section h2 { font-size: 1.3rem; }

  .hero-content h1 { font-size: 2.25rem; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
