/* ============================================================
   Vedik Systems — vediksys.com
   Palette drawn from the Vedik logotype:
   navy #06264F → citrus #A9B845 gradient, teal #2E7396,
   ice-blue #DBE9F4 (logo background)
   ============================================================ */

:root {
  --navy: #06264f;
  --navy-2: #0b3a73;
  --teal: #2e7396;
  --teal-deep: #1f5674;
  --citrus: #a9b845;
  --citrus-deep: #7e8f33;
  --ice: #dbe9f4;
  --ice-2: #edf4fa;
  --ink: #13273c;
  --muted: #4a6076;
  --line: rgba(6, 38, 79, 0.14);
  --white: #ffffff;
  --grad: linear-gradient(115deg, var(--navy) 0%, var(--teal) 55%, var(--citrus) 115%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 38, 79, 0.1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--navy); }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* circuit-node marker used across the site */
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border: 2px solid var(--citrus);
  border-radius: 50%;
  background: transparent;
  flex: none;
}

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

.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 38, 79, 0.28);
}

.btn-citrus {
  background: var(--citrus);
  color: var(--navy);
}
.btn-citrus:hover {
  background: #b9c65b;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(126, 143, 51, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}

.nav-logo img { height: 66px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ice);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 110px;
  max-width: 720px;
}

.hero .lead { margin: 22px 0 34px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-circuit {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  max-width: 60vw;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.hero-circuit path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: trace 2.6s ease forwards;
}

.hero-circuit circle {
  fill: var(--ice);
  stroke-width: 2.5;
  opacity: 0;
  animation: nodein 0.5s ease forwards;
}

@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes nodein { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-circuit path { animation: none; stroke-dashoffset: 0; }
  .hero-circuit circle { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Sections ---------- */

.section { padding: 92px 0; }
.section-ice { background: var(--ice-2); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255, 255, 255, 0.78); }
.section-navy .eyebrow { color: var(--citrus); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; color: var(--muted); }
.section-navy .section-head p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Stats strip ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.stat { text-align: left; padding-left: 20px; border-left: 3px solid var(--citrus); }
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat .label { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--teal-deep); }

/* Specialization chips */

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

.spec {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.spec:hover { border-color: var(--citrus); transform: translateY(-3px); }

.spec .node {
  width: 11px; height: 11px;
  border: 2.5px solid var(--citrus);
  border-radius: 50%;
  flex: none;
}
.spec small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* ---------- Process (dark section) ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.step { padding: 0 26px 0 0; position: relative; }

.step .step-node {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
}

.step .dot {
  width: 15px; height: 15px;
  border: 3px solid var(--citrus);
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}

.step .wire {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(169, 184, 69, 0.7), rgba(46, 115, 150, 0.35));
}

.step:last-child .wire { background: linear-gradient(90deg, rgba(169, 184, 69, 0.7), transparent); }

.step .step-num {
  font-family: var(--font-mono);
  color: var(--citrus);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; }

/* ---------- Why Vedik / feature rows ---------- */

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature .f-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
}
.feature .f-icon svg { width: 24px; height: 24px; stroke: var(--teal-deep); }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--grad);
  border-radius: 20px;
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 10px; max-width: 46ch; }
.cta-band .btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-white {
  background: var(--white);
  color: var(--navy);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.2); color: var(--navy); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--ice);
  padding: 74px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }

/* ---------- About / content blocks ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.value-list { list-style: none; margin-top: 26px; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .node {
  margin-top: 7px;
  width: 10px; height: 10px;
  border: 2.5px solid var(--citrus);
  border-radius: 50%;
  flex: none;
}
.value-list strong { font-family: var(--font-display); color: var(--navy); }
.value-list p { color: var(--muted); font-size: 0.96rem; }

.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-card iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info .info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .f-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
}
.contact-info .f-icon svg { width: 22px; height: 22px; stroke: var(--teal-deep); }
.contact-info h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { color: var(--muted); font-size: 0.95rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 7px 0; color: var(--muted); }
.hours-table td:last-child { text-align: right; color: var(--ink); font-weight: 500; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--ice-2);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-circuit {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 420px;
  opacity: 0.1;
  pointer-events: none;
}
.footer-circuit path { fill: none; stroke: var(--citrus); stroke-width: 2.5; stroke-linecap: round; }
.footer-circuit circle { fill: var(--navy); stroke: var(--citrus); stroke-width: 2.5; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  position: relative;
  z-index: 2;
}

.footer-grid img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-grid p { font-size: 0.93rem; line-height: 1.7; }

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

.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; }
.footer-grid ul a:hover { color: var(--citrus); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { border-color: var(--citrus); background: rgba(169, 184, 69, 0.15); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .grid-4, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-circuit { opacity: 0.35; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(6, 38, 79, 0.12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .grid-2, .grid-3, .grid-4, .spec-grid, .form-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .hero-inner { padding: 70px 0 80px; }
  .cta-band { padding: 44px 30px; }
  .section { padding: 70px 0; }
  .hero-circuit { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
