/* VillTech.net: main stylesheet
   Brand colors are sampled from the official logo file (VILLTECH-LOGO1.png). */

:root {
  --green: #7AB140;        /* logo green: accents, icons, highlights on dark backgrounds */
  --green-dark: #4E7A22;   /* accessible green for text on white */
  --navy: #005692;         /* logo navy: buttons, links, headings */
  --navy-dark: #003B66;    /* hover state */
  --ink: #0A1F33;          /* dark sections and body text */
  --ink-2: #102C47;
  --text: #2B3A4A;
  --muted: #5F6E7D;
  --line: #E3E9EF;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 51, .08);
  --max: 1200px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; } /* keep the sticky header from covering section headings */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #8CC451; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10,31,51,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--navy); }
.nav .btn { padding: 11px 22px; font-size: .92rem; }
.nav a.nav-phone { color: var(--navy); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.header-call { display: none; margin-left: auto; margin-right: 6px; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(122,177,64,.15); color: var(--green-dark); }
.header-call svg { width: 20px; height: 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(0,86,146,.55), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(122,177,64,.18), transparent 60%),
              var(--ink);
  color: #C9D6E2;
  padding: 110px 0 120px;
}
.hero::before { /* subtle grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--green); }
.hero .lead { color: #B4C4D3; font-size: 1.2rem; max-width: 560px; }
.hero .eyebrow { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 26px; font-size: .9rem; color: #8DA2B6; display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(122,177,64,.2); }

/* Integration diagram */
.hub { position: relative; aspect-ratio: 1 / 1; max-width: 500px; margin-left: auto; width: 100%; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub .lines path { fill: none; stroke: rgba(122,177,64,.35); stroke-width: 1.5; stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03), 0 20px 60px rgba(0,0,0,.4);
}
.hub-core img { width: 70%; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-family: var(--font-head); font-size: .85rem; font-weight: 500;
  padding: 10px 16px; border-radius: 12px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.node i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.node.ai i { background: #5FB4F0; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 34px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.trust-item span { font-size: .93rem; color: var(--muted); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(122,177,64,.13); color: var(--green-dark); margin-bottom: 22px;
}
.card.featured .icon { background: rgba(0,86,146,.1); color: var(--navy); }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card .tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--green); color: var(--ink); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }

/* Platforms row */
.platforms { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); text-align: center; }
.platforms-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 22px; }
.platforms-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 900px; margin: 0 auto; }
.platforms-list span {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--text);
  padding: 9px 18px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.platforms-list span.ai { background: rgba(0,86,146,.07); border-color: rgba(0,86,146,.2); color: var(--navy); }
.platforms-list span.more-chip { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 600; }

/* Process */
.process { background: var(--ink); color: #B4C4D3; }
.process h2, .process h3 { color: #fff; }
.process .eyebrow { color: var(--green); }
.process .lead { color: #9FB1C2; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--green); margin-bottom: 14px; line-height: 1;
}
.step p { font-size: .96rem; margin: 0; }

/* Industries + About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.values { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.values li { display: flex; gap: 16px; }
.values li svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 3px; }
.values strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; display: block; }
.values span { color: var(--muted); font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font-size: .88rem; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); }

/* Testimonials */
.quotes-wrap { position: relative; }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; display: flex; flex-direction: column; }
.quote .mark { font-family: Georgia, serif; font-size: 3.4rem; line-height: .6; color: var(--green); height: 28px; }
.quote blockquote { margin: 0 0 24px; flex: 1; color: var(--text); font-size: .99rem; }
.quote cite { font-style: normal; display: block; }
.quote cite strong { display: block; color: var(--ink); font-family: var(--font-head); }
.quote cite span { font-size: .88rem; color: var(--muted); }
.quote-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
.quote-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.quote-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.quote-nav svg { width: 20px; height: 20px; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 55%, var(--ink) 100%);
  border-radius: 24px; padding: 64px; color: #CFE0EE;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(122,177,64,.18); }
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.cta-actions a.phone { color: #fff; font-family: var(--font-head); font-weight: 500; }

/* Inner pages (services, clients, about, FAQ) */
.page-hero { padding: 64px 0 72px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 860px; }
.page-hero .lead { max-width: 760px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: #8DA2B6; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 8px; color: #6F8499; }
.breadcrumbs a { color: #C9D6E2; display: inline-block; padding: 3px 0; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current] { color: #fff; }
.nav a[aria-current="page"]:not(.btn) { color: var(--navy); box-shadow: inset 0 -2px 0 var(--green); }

.page-body { padding-top: 64px; }
.content > h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 56px 0 18px; max-width: 760px; }
.content > h2:first-child { margin-top: 0; }
.content > h3 { margin-top: 32px; }
.content > p, .content > ul, .content > ol { max-width: 760px; }
.content > p { color: var(--text); }
.content a { text-decoration: underline; text-decoration-color: rgba(0,86,146,.35); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: currentColor; }
.content .card a, .content .related a { text-decoration: none; }
.note { font-size: .92rem; color: var(--muted); margin-top: 20px; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(122,177,64,.18); }
.steps-list { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: st; display: grid; gap: 16px; }
.steps-list li { counter-increment: st; position: relative; padding-left: 46px; min-height: 32px; }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: grid; place-items: center; }
.steps-list strong, .checks strong { color: var(--ink); }

.cards-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 16px; }
.cards-wide .card h3 a { color: var(--ink); }
.cards-wide .card h3 a:hover { color: var(--navy); }
.cards-wide .card .best { font-size: .9rem; color: var(--muted); flex: none; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 900px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--bg-soft); font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.table-wrap tbody th { font-weight: 400; color: var(--text); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 8px; }
.quote figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.quote figcaption span { font-size: .88rem; color: var(--muted); }
.quote-grid .quote { margin: 0; }

.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.related h2 { font-size: 1rem; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .94rem; }
.related a:hover { border-color: var(--navy); }
@media (max-width: 600px) {
  .page-hero { padding: 44px 0 52px; }
  .page-body { padding-top: 44px; }
  .content > h2 { margin-top: 44px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; }
}

/* FAQ */
.faq { max-width: 860px; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 34px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(122,177,64,.15); color: var(--green-dark); font-size: 1.1rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 600px) { .faq details { padding: 0 18px; } .faq summary { font-size: 1rem; } }

/* Footer */
.site-footer { background: var(--ink); color: #93A6B8; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-grid img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer .footer-h { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer li a { display: inline-block; padding: 4px 0; min-height: 24px; } /* comfortable tap targets on phones */
.site-footer a { color: #93A6B8; }
.site-footer a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.socials a:hover { background: var(--green); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.footer-bottom a { display: inline-block; padding: 4px 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hub .lines path { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 80px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .menu-toggle { display: block; }
  .header-call { display: grid; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 72px 0 80px; }
  .hero-grid, .split, .cta { grid-template-columns: 1fr; }
  .hub { margin: 10px auto 0; max-width: 420px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { gap: 44px; }
  .cta { padding: 44px 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .brand img { height: 38px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .quotes { grid-auto-columns: 88%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .node { font-size: .74rem; padding: 7px 11px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .trust-item { padding: 24px 16px; }
  .trust-item strong { font-size: 1.3rem; }
}
