/* ============ Vesta Tech: site styles ============ */
:root {
  /* Brand palette (from the Vesta Tech logo) */
  --navy: #1b2a4a;
  --navy-2: #243659;
  --orange: #e8772e;
  --orange-dark: #d9661c;
  --orange-text: #b9560f;   /* orange that passes contrast on light backgrounds */
  --green: #2f7d4f;
  --green-bright: #3c9a5f;

  --ink: var(--navy);
  --ink-2: #2b3a5a;
  --text: #3a4760;
  --muted: #6b7690;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e2e6ee;
  --accent: var(--orange);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,42,74,.05), 0 8px 24px rgba(27,42,74,.07);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.narrow { width: min(780px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,119,46,.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd5e1; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: .8rem;
}
.eyebrow.light { color: #f2a36b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,250,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.logo { height: 58px; width: auto; }
.logo-sm { height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .98rem; }
.nav-menu a:not(.btn):hover { color: var(--orange-text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hl { color: var(--orange-dark); }
.lead { font-size: 1.2rem; max-width: 36rem; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.hero-points li { padding-left: 1.6rem; position: relative; font-size: .98rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-bright); border-bottom: 2.5px solid var(--green-bright); transform: rotate(-45deg); }

.hero-visual { position: relative; height: 450px; }
.grid-bg {
  position: absolute; inset: -10% -30% -10% 0; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}
.stack-card {
  position: absolute; z-index: 1; width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.stack-card small { color: var(--muted); font-size: .85rem; }
.c1 { top: 0; left: 10px; }
.c2 { top: 112px; left: 130px; animation-delay: -1.5s; }
.c3 { top: 224px; left: 30px; animation-delay: -3s; }
.c4 { top: 336px; left: 150px; animation-delay: -4.5s; }
.dot.sql { background: var(--green-bright); }
.sc-head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.az, .az-bg { background: var(--navy); }
.dot.m365, .m365-bg { background: var(--green); }
.dot.vm, .vm-bg { background: var(--orange); }
.sc-bar { height: 8px; background: #eef2f6; border-radius: 99px; overflow: hidden; margin-bottom: .5rem; }
.sc-bar i { display: block; height: 100%; background: var(--green-bright); border-radius: 99px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-row { display: flex; align-items: center; gap: 2rem; padding: 1.2rem 0; flex-wrap: wrap; }
.trust-row > span { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0; padding: 0; }
.trust li { font-family: var(--font-head); font-weight: 700; color: var(--ink-2); opacity: .75; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: #eef1f6; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p:last-child { font-size: 1.1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.services-grid .checks { columns: 2; column-gap: 1.6rem; }
.services-grid .checks li { break-inside: avoid; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,27,42,.1); }
.service-card { border-top: 4px solid var(--navy); }
.service-card.featured { border-top-color: var(--green); }
.service-card.vmware { border-top-color: var(--orange); }
.service-card.sql { border-top-color: var(--green-bright); }
.service-card.citrix { border-top-color: var(--orange-dark); }
.citrix-bg { background: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); }
/* An odd last card spans the full row, with its list in 3 columns */
.services-grid .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.services-grid .service-card:last-child:nth-child(odd) .checks { columns: 3; }
.sql-bg { background: var(--navy-2); box-shadow: inset 0 -3px 0 var(--green-bright); }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 1.2rem; }
.icon svg { width: 26px; height: 26px; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }

/* Engagement */
.engage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.engage { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.engage p { margin: 0; font-size: .97rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; padding-top: 1.4rem; border-top: 3px solid var(--line); }
.steps li:first-child { border-top-color: var(--orange); }
.num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: #cdd3df; display: block; line-height: 1; margin-bottom: .6rem; }
.steps p { font-size: .97rem; }

/* Why (dark) */
.section.dark { background: var(--navy); color: #c9d0de; }
.section.dark h2 { color: #fff; }
.muted-light { color: #aeb8cc; font-size: 1.1rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--navy-2); padding: 1.8rem; border-top: 3px solid transparent; }
.stat:nth-child(1), .stat:nth-child(4) { border-top-color: var(--orange); }
.stat:nth-child(2), .stat:nth-child(3) { border-top-color: var(--green-bright); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .95rem; color: #aeb8cc; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.4rem; margin-bottom: .8rem; }
summary { cursor: pointer; padding: 1.15rem 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding-bottom: 1.1rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list span { display: inline-block; width: 70px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-form { background: var(--surface); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: .7rem .85rem;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,119,46,.2); background: #fff; }
.contact-form .invalid { border-color: #d64545; }
.form-note { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-note.ok { color: #0f8a5f; }
.form-note.err { color: #d64545; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 2rem 0; font-size: .92rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 1.5rem; }
.footer-row nav a { color: var(--text); }
.site-footer { border-top: 3px solid var(--navy); }
.footer-row p { margin: 0; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr; max-width: 640px; }
  .services-grid .checks, .services-grid .service-card:last-child:nth-child(odd) .checks { columns: 1; }
  .engage-grid, .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { height: 380px; max-width: 460px; }
}
@media (max-width: 760px) {
  .logo { height: 38px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 4% 1.2rem; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 4rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-visual { display: none; }
  .engage-grid, .steps, .contact-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
