/* ============================================
   MyRemoteVA — Design Tokens & Base
   Palette: black / white / beige (premium, niche)
   ============================================ */
:root {
  --ink: #14120f;
  --ink-soft: #423d34;
  --paper: #faf7f1;
  --paper-alt: #f1ead9;
  --beige: #e8dfc9;
  --beige-deep: #cdbf9c;
  --line: #e2d9c4;
  --white: #ffffff;
  --accent: #14120f;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--beige-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); background: #2a261e; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; }
.brand img.logo-full { height: 26px; width: auto; display: block; }
.footer-brand .brand img.logo-on-dark { filter: brightness(0) invert(1); opacity: 0.95; height: 24px; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 34px; list-style: none; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 22px; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; padding: 0; align-items: center;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  padding: 0 20px; background: var(--paper); border-bottom: 1px solid transparent;
}
.mobile-nav.open { max-height: 480px; opacity: 1; padding: 10px 20px 22px; border-bottom-color: var(--line); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-nav a { font-size: 16px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-nav .btn { margin-top: 14px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(232, 223, 201, 0.65), transparent 60%),
    var(--paper);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--beige-deep) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 60% at 78% 15%, black, transparent 75%);
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 40px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  max-width: 820px;
  margin-top: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink-soft);
  position: relative;
}
.hero-sub {
  max-width: 380px;
  font-size: 16px;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 34px; }
.hero-note { font-size: 13px; color: var(--ink-soft); }

.hero-stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero-stats div { border-left: 1px solid var(--line); padding: 0 24px; }
.hero-stats div:first-child { border-left: none; padding-left: 0; }
.hero-stats strong {
  display: block; font-family: var(--font-display);
  font-size: 34px; font-weight: 500; margin-bottom: 4px;
}
.hero-stats span { font-size: 13px; color: var(--ink-soft); }

/* ============ Marquee (logos) ============ */
.marquee-section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.marquee-label { text-align: center; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track {
  display: flex; gap: 80px; width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee-track span { font-family: var(--font-display); font-size: 22px; color: var(--beige-deep); white-space: nowrap; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Section shell ============ */
.section { padding: 130px 0; }
.section-alt { background: var(--paper-alt); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 64px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 46px); max-width: 560px; margin-top: 14px; }
.section-head p { max-width: 340px; font-size: 15px; color: var(--ink-soft); padding-bottom: 6px; }

/* ============ Services grid (home teaser) ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card {
  background: var(--paper); padding: 44px 36px;
  transition: background 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 22px; min-height: 300px;
}
.service-card:hover { background: var(--white); }
.service-index { font-size: 13px; color: var(--beige-deep); font-weight: 600; }
.service-card h3 { font-size: 22px; margin-top: auto; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }
.service-card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.service-card .tag {
  font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line);
  border-radius: 20px; color: var(--ink-soft);
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
  font-weight: 600; margin-top: 4px;
}
.service-link svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ============ Process ============ */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: 40px;
  align-items: start; padding: 44px 0; border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--font-display); font-size: 30px; color: var(--beige-deep); }
.process-item h3 { font-size: 23px; }
.process-item p { font-size: 15px; color: var(--ink-soft); max-width: 440px; }

/* ============ Testimonial ============ */
.testimonial {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 90px 80px;
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 10px; left: 40px;
  font-family: var(--font-display); font-size: 220px; color: rgba(250,247,241,0.06); line-height: 1;
}
.testimonial blockquote {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px);
  font-weight: 400; max-width: 780px; position: relative; z-index: 1;
}
.testimonial-foot { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--beige-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--ink); font-size: 17px;
}
.testimonial-foot strong { display: block; font-size: 14.5px; }
.testimonial-foot span { font-size: 13px; color: var(--beige-deep); }

/* ============ CTA banner ============ */
.cta-banner {
  text-align: center; padding: 130px 0;
  border-top: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(34px, 5vw, 58px); max-width: 760px; margin: 18px auto 40px; }
.cta-banner .btn { margin: 0 auto; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: var(--paper); padding: 90px 0 34px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 70px; border-bottom: 1px solid rgba(250,247,241,0.14);
}
.footer-brand .brand span { color: var(--paper); }
.footer-brand p { margin-top: 18px; font-size: 14px; color: rgba(250,247,241,0.6); max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,247,241,0.5); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(250,247,241,0.85); transition: opacity 0.25s; }
.footer-col a:hover { opacity: 0.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; font-size: 13px; color: rgba(250,247,241,0.5);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: flex; }
  .site-header { padding: 16px 0; }

  .hero { padding: 130px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .hero-stats div:nth-child(3) { border-left: none; }
  .services-grid { grid-template-columns: 1fr !important; }
  .process-item { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .testimonial { padding: 60px 32px; }
  .section { padding: 76px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head p { max-width: 100%; padding-bottom: 0; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-sub { max-width: 100%; padding-bottom: 0; }
  .marquee-track span { font-size: 18px; }
  .rate-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 118px 0 56px; }
  .hero h1, h1 { font-size: clamp(32px, 9vw, 44px) !important; }
  .cta-banner h2 { font-size: clamp(26px, 8vw, 36px) !important; }
  .section-head h2 { font-size: clamp(24px, 7vw, 32px) !important; }
  .hero-actions, .process-item .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-banner .btn { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; row-gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .testimonial { padding: 44px 24px; }
  .testimonial blockquote { font-size: 22px !important; }
  .service-card { padding: 32px 26px; min-height: auto !important; }
  .process-item { padding: 30px 0; }
  .site-footer { padding: 64px 0 28px; }
}
