/* ============================================
   VTG — Vranjes Technologies Group
   Design tokens: ink navy / warm off-white / muted brass
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #10192E;
  --navy-2: #182645;
  --cream: #F6F2E9;
  --cream-2: #EDE6D6;
  --brass: #A8834F;
  --brass-light: #C6A874;
  --ink: #1B1B18;
  --muted: #6B6558;
  --line: rgba(16, 25, 46, 0.12);
  --line-on-navy: rgba(246, 242, 233, 0.16);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo strong { color: var(--brass); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--brass); }

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 0.92rem;
}
.nav-cta:hover { background: var(--navy-2); color: var(--cream) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-primary { background: var(--brass); color: var(--navy); }
.btn-primary:hover { background: var(--brass-light); }
.btn-outline { background: transparent; border-color: var(--line-on-navy); color: var(--cream); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-outline-navy { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline-navy:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 100px 0 90px;
}
.hero .eyebrow {
  color: var(--brass-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero p.lead {
  color: rgba(246,242,233,0.78);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 22px 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--cream-2); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--cream); }
.section-navy p { color: rgba(246,242,233,0.75); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow {
  color: var(--brass);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {
  border-top: 2px solid var(--brass);
  padding-top: 20px;
}
.step .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 40px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 32px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- Contact / form ---------- */
.form-wrap {
  max-width: 620px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 20px 0 6px;
  color: var(--navy);
}
label:first-of-type { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 2px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 110px; }
.form-note { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.form-success {
  display: none;
  background: var(--cream-2);
  border: 1px solid var(--brass);
  padding: 20px;
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(246,242,233,0.7);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--cream); }
.footer-logo-img { width: 160px; height: auto; }
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  text-transform: none;
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: rgba(246,242,233,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  border-top: 1px solid var(--line-on-navy);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */
.legal-body h2 { margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.error-page .code {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--brass);
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.2s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  border-top: 1px solid var(--line-on-navy);
}
.mobile-cta-bar a {
  display: block;
  text-align: center;
  background: var(--brass);
  color: var(--navy);
  padding: 13px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 700px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 64px; }
}

/* ---------- Hero preview (WhatsApp mockup) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.wa-mock {
  background: #0B141A;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.wa-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.wa-mock-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--navy); font-size: 0.9rem;
}
.wa-mock-name { color: #E9EDEF; font-size: 0.92rem; font-weight: 600; }
.wa-mock-status { color: #8696A0; font-size: 0.75rem; }
.wa-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.wa-in { background: #202C33; color: #E9EDEF; border-top-left-radius: 2px; }
.wa-out { background: #005C4B; color: #E9EDEF; margin-left: auto; border-top-right-radius: 2px; }
.wa-time { font-size: 0.68rem; color: #8696A0; display: block; margin-top: 4px; text-align: right; }

.wa-thread {
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.wa-bubble.enter { animation: wa-in-up 0.32s ease forwards; }
@keyframes wa-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 10px;
  animation: wa-in-up 0.25s ease forwards;
}
.wa-typing.wa-in { border-top-left-radius: 2px; }
.wa-typing.wa-out { border-top-right-radius: 2px; margin-left: auto; }
.wa-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8696A0;
  animation: wa-bounce 1.1s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.wa-system {
  align-self: center;
  background: rgba(246,242,233,0.08);
  color: #8696A0;
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 2px 0 10px;
  text-align: center;
}
.wa-system.enter { animation: wa-in-up 0.3s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .wa-bubble.enter, .wa-typing { animation: none; opacity: 1; }
}

/* ---------- AI Agents in Action ---------- */
.agents-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-btn {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.agent-btn:hover { border-color: var(--brass); }
.agent-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.agent-demo-panel { max-width: 460px; }
.agent-desc {
  color: var(--muted);
  margin: 18px 4px 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .agents-layout { grid-template-columns: 1fr; }
  .agent-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .agent-btn { flex: 0 0 auto; white-space: nowrap; }
  .agent-demo-panel { max-width: 100%; }
}

/* ---------- Lead calculator ---------- */
.calc-card {
  background: var(--navy);
  color: var(--cream);
  padding: 40px;
  border-radius: 4px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0 30px;
}
.calc-grid label { color: var(--cream); margin: 0 0 6px; }
.calc-grid input, .calc-grid select {
  background: rgba(246,242,233,0.06);
  border: 1px solid var(--line-on-navy);
  color: var(--cream);
}
.calc-result {
  border-top: 1px solid var(--line-on-navy);
  padding-top: 22px;
  margin-top: 4px;
}
.calc-result .figure {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--brass-light);
  display: block;
}
.calc-note { color: rgba(246,242,233,0.55); font-size: 0.85rem; margin-top: 10px; }
