/* ============================================================
   Virtualus Startas — one-pager styles
   Light theme · forest green + black · Outfit (self-hosted).
   ============================================================ */

/* Brand typeface — self-hosted, no external dependency */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f8f5;
  --surface:   #ffffff;
  --border:    #e6e8e2;
  --border-strong: #d4d8cd;

  --text:      #0d0f0c;
  --text-soft: #556058;
  --text-dim:  #8a908a;

  --green:       #166534;   /* forest primary */
  --green-dark:  #14532d;   /* hover */
  --green-bright:#15803d;   /* accent */
  --green-tint:  #e7f3ec;   /* light pill / icon bg */

  --ink:       #0d120e;     /* black button */
  --ink-hover: #000000;

  --grad: linear-gradient(120deg, #15803d, #166534);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;

  --shadow-sm: 0 2px 8px rgba(13, 25, 15, 0.05);
  --ring:      0 0 0 3px rgba(22, 101, 52, 0.22);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 100;
  transition: width 0.08s linear;
}

/* Dark-theme orbs not used in the light design */
.bg-orbs { display: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
}
.brand-logo { display: block; width: 210px; height: auto; }
.brand-static { display: none; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  background: #eef1ec;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: 600 13px/1 "Outfit", sans-serif;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang-btn.is-active {
  color: var(--green);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Primary = black */
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover {
  background: var(--ink-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.5);
}

/* Secondary = forest green */
.btn-ghost {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(22, 101, 52, 0.5);
}
.btn-ghost:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 120px 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-bright);
  margin: 0 0 14px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
}
.section-lead {
  color: var(--text-soft);
  margin: 18px auto 0;
  font-size: 18px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 90px;
  background: radial-gradient(1100px 560px at 82% -10%, rgba(22, 101, 52, 0.10), transparent 60%);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 800;
  color: var(--text);
}
.hero-title span { display: block; }
.grad-text {
  background: linear-gradient(120deg, #15803d, #166534);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 620px;
  margin: 26px auto 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 46px;
}
.hero-tags span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--green);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(22, 101, 52, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px -24px rgba(13, 40, 22, 0.25);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 22px;
}
.card-title { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card-text { color: var(--text-soft); font-size: 16px; margin: 0; }

/* ---------- Solutions ---------- */
.section-solutions { background: var(--bg-soft); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.solution {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.solution:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 44px -24px rgba(13, 40, 22, 0.22);
}
.solution-num {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
}
.solution-title { font-size: 20px; font-weight: 600; margin: 16px 0 10px; color: var(--text); }
.solution-text { color: var(--text-soft); font-size: 16px; margin: 0; }

.solutions-cta {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 44px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #eef6f0, #ffffff);
}
.solutions-cta p { margin: 0; font-size: 19px; font-weight: 500; color: var(--text); max-width: 520px; }

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-email:hover { color: var(--green); border-bottom-color: var(--green); }
.contact-btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--text);
}
.footer-logo { display: block; height: 22px; width: auto; }
.footer-email { color: var(--text-soft); transition: color 0.2s; }
.footer-email:hover { color: var(--green); }
.footer-copy { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.cards .card:nth-child(2),
.solutions-grid .solution:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(3),
.solutions-grid .solution:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .solutions-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 90px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .brand-logo { width: 150px; }
  .nav-inner { gap: 12px; }
  .nav-actions { gap: 10px; }
  /* Hide the nav CTA on phones so the top bar never overflows.
     Visitors still reach us via the hero button and contact section. */
  .nav-actions .btn { display: none; }
  .section { padding: 74px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
  /* No motion: show the static arrow logo instead of the animated GIF */
  .brand-anim { display: none; }
  .brand-static { display: block; }
}
