/* ============================================================
   JVY Infotech — site styles
   Monotone graphite palette, Space Grotesk + Manrope
   ============================================================ */

:root {
  /* Monochrome deep-blue palette — one hue, seven tints */
  --ink:      #0f1e38;   /* deep navy — headings, buttons, dark band */
  --graphite: #2c4373;   /* mid navy — body emphasis, borders on dark */
  --slate:    #5d6e96;   /* muted blue — secondary text */
  --mist:     #a9b6d1;   /* pale blue — hints, dividers on dark */
  --fog:      #dfe5f0;   /* blue-tinted line color */
  --paper:    #f4f6fa;   /* blue-tinted page background */
  --white:    #ffffff;

  --display: "Space Grotesk", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,250,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fog);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--slate); font-weight: 500; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: .92rem; font-weight: 600; color: var(--graphite);
  text-decoration: none; letter-spacing: .01em;
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav .btn { text-decoration: none; }

.menu-toggle { display: none; background: none; border: 1px solid var(--mist); border-radius: 6px; padding: 8px 12px; font-family: var(--mono); font-size: .8rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 6px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--graphite); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--fog); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: var(--fog); border-color: var(--fog); }

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  display: block; margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
.lede { font-size: 1.12rem; color: var(--graphite); max-width: 60ch; }

section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 7vw, 90px);
  border-bottom: 1px solid var(--fog);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(44,67,115,.10), transparent 65%),
    linear-gradient(180deg, #e9eef7 0%, var(--paper) 55%);
}

.hero-bg {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(15,30,56,.93) 0%, rgba(28,46,84,.88) 60%, rgba(44,67,115,.84) 100%);
}

/* logo image */
.logo-img { display: flex; align-items: center; text-decoration: none; }
.logo-img img { height: 46px; width: auto; display: block; }
.site-footer .logo-img img { height: 38px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 700; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--mist); }
.hero .lede { margin: 26px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* capability ticker — signature strip */
.ticker {
  border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog);
  overflow: hidden; background: var(--white);
  padding: 16px 0; white-space: nowrap;
}
.ticker-track { display: inline-block; animation: tick 36s linear infinite; }
.ticker span {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); padding: 0 34px;
  position: relative;
}
.ticker span::after { content: "/"; position: absolute; right: -6px; color: var(--mist); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- services ---------- */

.grid { display: grid; gap: 1px; background: var(--fog); border: 1px solid var(--fog); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); padding: 34px 30px; }
.card .idx { font-family: var(--mono); font-size: .75rem; color: var(--mist); letter-spacing: .1em; display: block; margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--slate); }

/* ---------- process ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .idx { font-family: var(--mono); font-size: .78rem; color: var(--slate); letter-spacing: .12em; display: block; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--slate); }

/* ---------- reviews (dark band) ---------- */

.reviews {
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(93,110,150,.22), transparent 60%),
    var(--ink);
  color: var(--paper);
}
.reviews .eyebrow { color: var(--mist); }
.reviews h2 { color: var(--white); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 44px); }
.review {
  border: 1px solid rgba(169,182,209,.28); border-radius: 8px;
  padding: 30px 28px; background: rgba(255,255,255,.04);
  display: flex; flex-direction: column; gap: 18px;
}
.review blockquote { font-size: 1rem; line-height: 1.7; color: var(--fog); }
.review .who { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--mist); margin-top: auto; }
.stars { color: var(--mist); letter-spacing: 3px; font-size: .85rem; }

/* ---------- CTA band ---------- */

.cta { border-top: 1px solid var(--fog); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 18ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--white); border-top: 1px solid var(--fog); padding: 48px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer p, .site-footer a { font-size: .9rem; color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-nav { display: flex; gap: 22px; }
.copyright { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--fog); font-family: var(--mono); font-size: .75rem; color: var(--mist); }

/* ---------- inner pages ---------- */

.page-hero { padding: clamp(64px, 9vw, 100px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--fog); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.page-hero .lede { margin-top: 20px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.two-col h2 { margin-bottom: 18px; }
.two-col p + p { margin-top: 16px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fog); border: 1px solid var(--fog); }
.value { background: var(--white); padding: 30px 28px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: .93rem; color: var(--slate); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info dl { display: grid; gap: 24px; margin-top: 8px; }
.contact-info dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 5px; }
.contact-info dd { font-size: 1.05rem; font-weight: 600; }
.contact-info dd a { color: var(--ink); text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--fog); border-radius: 8px; padding: clamp(24px, 4vw, 40px); }
.form label { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--mist); border-radius: 6px; background: var(--paper);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--slate); }

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid.cols-3, .review-grid, .steps, .values { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-3, .review-grid, .steps, .values { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
         background: var(--paper); border-bottom: 1px solid var(--fog);
         flex-direction: column; align-items: flex-start; padding: 20px var(--pad) 24px; gap: 18px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}
