/* ===== VieGo Fulfillment — main stylesheet =====
 * Brand palette taken from the VIEGO logo: navy #26316f + green #189a18.
 */

:root {
  --navy-900: #1f2a5e;
  --navy-800: #26316f;
  --navy-700: #3a4899;
  --green-600: #189a18;
  --green-700: #127c12;
  --green-400: #3fbf3f;  /* accents on dark backgrounds */
  --green-50: #eaf7ea;
  --ink: #1c2438;
  --ink-soft: #4d5a75;
  --line: #e4e8f1;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 94, 0.08);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container-narrow { width: min(820px, 92%); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(24, 154, 24, 0.3);
}

.btn-primary:hover { background: var(--green-700); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-ghost {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn-ghost:hover { background: var(--navy-800); color: #fff; }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; }

.logo-mark { width: 46px; height: 33px; flex-shrink: 0; }

.logo-text { color: var(--navy-800); letter-spacing: 0.02em; }
.logo-text-light { color: #fff; }
.logo-accent { color: var(--green-600); }

.main-nav { display: flex; gap: 1.8rem; }

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--navy-800); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.active { background: var(--navy-800); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #2e3c8a 100%);
  color: #fff;
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(63, 191, 63, 0.16);
  color: #8ce28c;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.08rem;
  color: #ccd4ee;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-illustration { width: 100%; height: auto; }

.stats-bar {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: rgba(31, 42, 94, 0.55);
  padding: 1.4rem 1.2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-400);
}

.stat-label { font-size: 0.86rem; color: #bcc6e6; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-eyebrow {
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.section-head h2, .contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy-800);
}

.section-sub { margin-top: 0.9rem; color: var(--ink-soft); }

/* ===== Service cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy-800); margin-bottom: 0.5rem; }

.card p { font-size: 0.94rem; color: var(--ink-soft); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--green-400);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy-800); margin-bottom: 0.5rem; }

.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== Why us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2rem;
}

.why-item { display: flex; gap: 1rem; align-items: flex-start; }

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--green-400);
}

.why-icon svg { width: 22px; height: 22px; }

.why-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy-800); margin-bottom: 0.3rem; }

.why-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 0.9rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(225deg); }

.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .section-sub { margin-bottom: 2rem; }

.contact-list { list-style: none; display: grid; gap: 1rem; }

.contact-list li { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-soft); }

.contact-list svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

.contact-list a:hover { color: var(--navy-800); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 1.1rem; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(24, 154, 24, 0.15);
}

.contact-form textarea { resize: vertical; }

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: #e9f9ef;
  color: #157347;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-error {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: #fdecec;
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #bcc6e6;
  padding: 3rem 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand { max-width: 22rem; }

.footer-brand p { margin-top: 1rem; font-size: 0.92rem; }

.footer-brand .logo-accent { color: var(--green-400); }

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a { font-size: 0.92rem; transition: color 0.15s ease; }

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 0.85rem 1.6rem; }

  .menu-toggle { display: flex; }

  /* keep the portal button visible on mobile; hide only the quote CTA */
  .header-actions .btn-quote { display: none; }

  .card-grid, .why-grid, .steps, .form-row-split { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
}
