/* Virtual Village — shared styles */

:root {
  --vv-orange-dark: #c97a1f;
  --vv-orange: #e8952d;
  --vv-orange-light: #f4c542;
  --vv-blue-dark: #3a5bc7;
  --vv-blue: #4a72d6;
  --vv-blue-light: #6fb1f5;
  --ink: #1f2430;
  --ink-soft: #4b5265;
  --paper: #fdfbf8;
  --paper-alt: #f6f2ea;
  --line: #e7e1d6;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(31, 36, 48, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(31, 36, 48, 0.14);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--vv-blue); text-decoration: none; }
a:hover { color: var(--vv-blue-dark); }

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

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

/* Gradient accents reused from the logo mark */
.grad-text {
  background: linear-gradient(90deg, var(--vv-orange) 0%, var(--vv-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 34px; width: auto; }

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

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-links a.active { color: var(--vv-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(95deg, var(--vv-orange) 0%, var(--vv-orange-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-outline:hover { border-color: var(--vv-blue); color: var(--vv-blue); }

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
@media (min-width: 860px) { .menu-toggle { display: none; } }

.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero {
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(232, 149, 45, 0.14), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(74, 114, 214, 0.16), transparent 70%);
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--paper-alt), var(--white));
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-art img { width: 60%; max-width: 260px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

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

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--vv-orange), var(--vv-blue));
  color: var(--white);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding-top: 8px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--vv-orange), var(--vv-blue));
  margin-bottom: 14px;
}

/* Model comparison */
.model-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .model-grid { grid-template-columns: 1fr 1fr; } }

.model-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}
.model-card.dedicated { border-top: 4px solid var(--vv-orange); }
.model-card.shared { border-top: 4px solid var(--vv-blue); }
.model-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.model-card li { margin-bottom: 6px; }

/* CTA band */
.cta-band {
  border-radius: 24px;
  background: linear-gradient(110deg, var(--vv-blue-dark), var(--vv-blue) 45%, var(--vv-orange) 130%);
  color: var(--white);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin: 0 auto 24px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.cta-band .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }

/* Quote / values */
.value-list { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .value-list { grid-template-columns: repeat(3, 1fr); } }
.value-pill {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

.timeline { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline .card { border-left: 4px solid var(--vv-blue); }
.timeline .card:nth-child(2) { border-left-color: var(--vv-orange); }
.timeline .card:nth-child(3) { border-left-color: var(--vv-blue-dark); }

/* Forms */
form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--vv-blue);
}
textarea { resize: vertical; min-height: 130px; }

/* Contact info cards */
.contact-info {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; }
footer h4 { font-size: 0.95rem; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--vv-blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 56px 0 40px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero p.lead { max-width: 62ch; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Text-based wordmark (Ministry Back Office has no logo asset yet) */
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark img { height: 26px; width: auto; flex-shrink: 0; }
.wordmark .wm-primary { color: var(--ink); }
.wordmark .wm-accent {
  background: linear-gradient(90deg, var(--vv-orange) 0%, var(--vv-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand .wordmark { font-size: 1.1rem; margin-bottom: 12px; }
