/* ============================================
   TechVista Solutions — Site Stylesheet
   Edit the colors below to match your brand.
   ============================================ */
:root {
  --primary: #0f4c81;      /* main brand color */
  --primary-dark: #0a3559;
  --accent: #f5a623;       /* buttons / highlights */
  --text: #1f2933;
  --text-light: #52606d;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --max-width: 1140px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e4e7eb;
  backdrop-filter: blur(6px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--primary); }

/* ---------- Hero with video ---------- */
.hero {
  position: relative; height: 82vh; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); /* fallback if video missing */
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 30, 50, 0.55); z-index: 1; /* dark overlay so text stays readable */
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 1.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 2rem; opacity: 0.95; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.9rem; border-radius: 50px;
  font-weight: 600; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 0.75rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-light); max-width: 640px; margin: 0 auto 3rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid #e4e7eb; border-radius: var(--radius);
  padding: 2rem; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15,76,129,0.12); }
.card .icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; color: var(--primary); }
.card p { color: var(--text-light); font-size: 0.97rem; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 4rem 1.25rem;
}
.page-banner h1 { font-size: 2.4rem; }
.page-banner p { opacity: 0.9; margin-top: 0.5rem; }

/* ---------- Two-column ---------- */
.two-col { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.two-col h2 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.two-col p { color: var(--text-light); margin-bottom: 1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat h3 { font-size: 2.4rem; color: var(--accent); }
.stat p { color: var(--text-light); }

/* ---------- Case studies ---------- */
.case { border-left: 4px solid var(--accent); }
.case .tag {
  display: inline-block; background: var(--bg-alt); color: var(--primary);
  font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.7rem;
  border-radius: 50px; margin-bottom: 0.8rem;
}
blockquote {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1.5rem; font-style: italic; color: var(--text-light); margin-top: 1rem;
}
blockquote footer { font-style: normal; font-weight: 600; color: var(--text); margin-top: 0.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr 1.2fr; }
form label { display: block; font-weight: 600; margin: 1rem 0 0.3rem; }
form input, form textarea, form select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid #cbd2d9;
  border-radius: var(--radius); font: inherit;
}
form input:focus, form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
form button { margin-top: 1.5rem; border: none; cursor: pointer; font-size: 1rem; }
.contact-info li { list-style: none; margin-bottom: 1rem; color: var(--text-light); }
.contact-info strong { color: var(--text); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; text-align: center;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #10181f; color: #9aa5b1; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer a { color: #9aa5b1; } .site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a3540; padding-top: 1.25rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid #e4e7eb;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.9rem 1.5rem; border-top: 1px solid #eef1f4; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
}
