/* ==========================================================================
   VirtualMachines.net — site stylesheet (2026 rebuild)
   Mobile-first. Replaces Bootstrap 3, the vm_core/vm_child WordPress theme,
   Font Awesome, Glyphicons, flexslider and the WordPress block library CSS.
   ========================================================================== */

:root {
  --green: #9bc73a;          /* brand green (buttons, accents on dark) */
  --green-hover: #aed64f;
  --green-ink: #4f7a0f;      /* brand green dark enough for text on white */
  --on-green: #16210a;       /* text on green buttons */
  --dark: #232a31;           /* header / pricing heads */
  --darker: #1a1f25;
  --ink: #1f262d;
  --text: #4a525b;
  --muted: #6b737c;
  --line: #e1e5ea;
  --surface: #ffffff;
  --soft: #f4f6f8;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.07);
  --gutter: 16px;
  --max: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
strong { color: var(--ink); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--green); color: var(--on-green); padding: .6em 1em; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 10px; }
.accent { color: var(--green-ink); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.5em; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--green); color: var(--on-green); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--green-hover); color: var(--on-green); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9em 2em; font-size: 1.05rem; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333c45; color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo img { width: 200px; }
.nav-toggle {
  display: none; align-items: center; gap: .5em; background: transparent; color: #fff; border: 1px solid #4a535d;
  border-radius: 6px; padding: .45em .8em; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; color: #e6eaee; text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a.btn { color: var(--on-green); }
.main-nav a.btn:hover, .main-nav a.btn[aria-current="page"] { color: var(--on-green); }

/* Mobile menu (JS adds .js to <html>; without JS the menu is simply always open) */
@media (max-width: 959px) {
  .site-header .container { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .js .nav-toggle { display: inline-flex; }
  .main-nav { width: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav ul { padding: 6px 0 10px; border-top: 1px solid #39424b; }
  .main-nav li a { padding: .75em .25em; border-bottom: 1px solid #2f373f; }
  .main-nav li:last-child a { margin-top: 10px; border: 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(rgba(20,25,30,.72), rgba(20,25,30,.82)), url("/assets/img/hero.webp") center / cover no-repeat, var(--dark);
  padding: 56px 0 64px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: 1.1rem; color: #d7dde3; max-width: 46ch; margin: 0 auto 1.4em; }
.page-hero { padding: 34px 0 30px; text-align: left; }
.page-hero h1 { margin: 0; }
.page-hero p { margin: .5em 0 0; max-width: 70ch; }
.breadcrumbs { font-size: .85rem; margin-bottom: 8px; color: #b9c2cb; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4em; }
.breadcrumbs a { color: #d7dde3; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-head h2 { color: var(--green-ink); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Feature grids */
.pillars, .features, .testimonials, .plans, .feature-lists { display: grid; gap: 24px; }
.pillar { text-align: center; padding: 8px 12px; }
.pillar img { margin: 0 auto 12px; width: 72px; }
.pillar h3 { margin-bottom: .3em; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; align-items: start; }
.feature img { width: 48px; margin-top: 2px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.feature p { margin: 0; }

/* Testimonials */
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; }
.testimonial img { margin: 0 auto 14px; max-height: 90px; width: auto; }
.testimonial blockquote { margin: 0 0 12px; font-style: italic; flex: 1; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-weight: 700; color: var(--ink); font-size: .9rem; }

/* Pricing cards */
.plans { margin-top: 12px; }
.plan { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 44px; }
.plan-head { position: relative; border-radius: var(--radius) var(--radius) 0 0; background: var(--dark); color: #fff; text-align: center; padding: 58px 16px 18px; }
.plan-price {
  position: absolute; left: 50%; top: -44px; transform: translateX(-50%);
  width: 100px; height: 100px; border-radius: 50%; background: var(--green); color: var(--on-green);
  display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 1.2rem; line-height: 1.05;
  border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.plan-price small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plan-head h3 { color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.plan-head p { margin: .1em 0 0; color: #aab4be; font-size: .9rem; }
.plan ul { list-style: none; margin: 0; padding: 8px 18px; flex: 1; background: #f3f4f6; }
.plan li { padding: .55em 0; border-bottom: 1px solid #dde1e5; text-align: center; font-size: .95rem; }
.plan li:last-child { border-bottom: 0; }
.plan .btn { border-radius: 0 0 var(--radius) var(--radius); padding: 1em; }
.plans-note { text-align: center; margin-top: 18px; }

/* Tick lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: .3em 0 .3em 1.9em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 1.2em; height: 1.2em; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2316210a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.feature-lists h2 { color: var(--green-ink); font-size: 1.5rem; }

/* ---------- Content pages ---------- */
.page { padding: 36px 0 52px; }
.page-grid { display: grid; gap: 36px; }
.prose h2 { color: var(--green-ink); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose figure { margin: 1.2em 0 1.6em; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.prose .callout { background: var(--soft); border-left: 5px solid var(--green); padding: 14px 18px; border-radius: 6px; }
.prose .callout p:last-child { margin: 0; }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: .2em; }
.two-col { display: grid; gap: 8px 32px; }

/* Sidebar */
.sidebar { display: grid; gap: 20px; align-content: start; }
.side-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h2 { font-size: 1.15rem; color: var(--green-ink); margin-bottom: .6em; }
.side-card .ticks { font-size: .95rem; margin: 0; }
.mini-plan { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.mini-plan + .mini-plan { margin-top: 12px; }
.mini-plan h3 { font-size: 1rem; margin: 0 0 .3em; }
.mini-plan ul { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.mini-plan .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-plan .price { font-weight: 800; color: var(--ink); }
.mini-plan .btn { padding: .5em 1em; font-size: .85rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 46px 14px 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { display: inline; font-size: 1rem; color: var(--ink); margin: 0; letter-spacing: 0; line-height: 1.4; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--on-green); font-weight: 800; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 12px 16px 2px; }
.faq-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.faq-tools button { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--green-ink); text-decoration: underline; cursor: pointer; }

/* Contact form */
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.form .req { color: #b3261e; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c1ca; border-radius: 6px; padding: .65em .8em;
}
.form textarea { resize: vertical; min-height: 9em; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(155,199,58,.35); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
.form ::placeholder { color: #8a929b; }
.form button[disabled] { opacity: .65; cursor: progress; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.form-status.ok { background: #eef7e1; color: #2f4d07; border: 1px solid #c5e09a; }
.form-status.err { background: #fdecea; color: #8e1c1c; border: 1px solid #f5b5ae; }
.form-note { font-size: .9rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .45em 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border: 0; }

/* Legal pages (terms, acceptable use) */
.legal { font-size: .97rem; max-width: 80ch; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1rem; }
.legal a { overflow-wrap: anywhere; }
.legal .tldr { font-size: 1.05rem; background: var(--soft); border-left: 5px solid var(--green); padding: 12px 16px; border-radius: 6px; }
.legal .toc { list-style: none; padding: 0; columns: 1; }
.legal .toc li { break-inside: avoid; padding: .15em 0; }
@media (min-width: 600px) { .legal .toc { columns: 2; column-gap: 2em; } }

/* ---------- Footer ---------- */
.site-footer {
  color: #c3cbd3; font-size: .92rem;
  background: linear-gradient(rgba(26,31,37,.93), rgba(26,31,37,.96)), url("/assets/img/hero.webp") center / cover no-repeat, var(--darker);
}
.site-footer .cols { display: grid; gap: 28px; padding: 44px 0 28px; }
.site-footer h2 { color: var(--green); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .ticks li::before { width: 1em; height: 1em; top: .5em; }
.site-footer .ticks li { padding-left: 1.6em; }
.site-footer .logo-foot img { width: 220px; margin-bottom: 12px; }
.site-footer .phone { font-size: 1.15rem; color: #fff; }
.site-footer .phone a { color: var(--green); }
.site-footer .bottom { border-top: 1px solid #343c45; padding: 16px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.site-footer .bottom p { margin: 0; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feature-lists, .two-col { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  :root { --gutter: 24px; }
  body { font-size: 1.0625rem; }
  .site-header .container { min-height: 76px; }
  .logo img { width: 250px; }
  .main-nav ul { display: flex; align-items: center; gap: 4px; }
  .main-nav li a { padding: .6em .75em; }
  .main-nav a.btn { margin-left: 8px; padding: .65em 1.2em; }
  .hero { padding: 96px 0 104px; }
  .page-hero { padding: 44px 0 40px; }
  .section { padding: 72px 0; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .plans.three { grid-template-columns: repeat(3, 1fr); }
  .page-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .page-grid.wide-aside { grid-template-columns: minmax(0, 1fr) 360px; }
  .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media print {
  .site-header, .hero, .site-footer, .nav-toggle, .btn, .faq-tools { display: none !important; }
  body { color: #000; }
  .faq details > .answer { display: block; }
}
