/* ============================================================
   JVS Digital Group
   Editorial "paper" theme: warm off-white, ink, racing green.
   Fraunces (display serif) + Space Grotesk (UI/body).
   ============================================================ */

:root {
  --paper:      #f6f3ec;
  --paper-2:    #efe9dd;
  --ink:        #16140f;
  --ink-soft:   #4a463d;
  --green:      #1f5c3d;
  --green-deep: #0f1f16;
  --green-light:#2f7d54;
  --sand:       #d8cbb0;
  --line:       rgba(22, 20, 15, 0.12);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--green); }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 500; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--green); color: var(--paper); }
.btn--solid:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); }
.brand__logo {
  /* Logo slot. Intentionally blank, awaiting artwork */
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green);
  flex: 0 0 auto;
}
.brand__logo--footer { background: var(--green-light); }
.brand__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__sub { color: var(--ink-soft); font-weight: 400; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: .96rem; color: var(--ink-soft); position: relative; transition: color .25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--green); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 13vh, 150px) 0 clamp(48px, 8vh, 96px); }
.eyebrow { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 28px; }
.hero__title { font-size: clamp(2.3rem, 6.2vw, 5rem); max-width: 18ch; }
.hero__lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--ink-soft); margin-top: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__scroll { position: absolute; right: var(--pad); bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.hero__line { width: 1px; height: 48px; background: linear-gradient(var(--green), transparent); animation: lineflow 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes lineflow { 0% { transform: scaleY(.2); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.2); opacity: .3; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content; animation: scroll-x 28s linear infinite; font-family: var(--serif); font-size: 1.35rem; }
.marquee__track .dot { color: var(--green); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vh, 140px) 0; }
.kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.kicker--light { color: var(--sand); }

.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section__head--center { text-align: center; max-width: 22ch; margin: 0 auto clamp(40px, 6vw, 72px); }

.section__body p { color: var(--ink-soft); margin-bottom: 18px; }
.facts { list-style: none; display: grid; gap: 14px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.facts span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Vision (dark) ---------- */
.section--dark { background: var(--green-deep); color: var(--paper); }
.statement { font-size: clamp(1.9rem, 4.4vw, 3.6rem); max-width: 20ch; margin-bottom: 56px; }
.statement .hl { color: var(--green-light); font-style: italic; }
.vision__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.vision__cols p { color: rgba(246, 243, 236, .72); }
.vision__signoff { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-top: 56px; color: var(--sand); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px 34px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(15, 31, 22, .5); border-color: var(--green); }
.card--feature { background: var(--green); color: var(--paper); border-color: var(--green); }
.card--feature .card__tag, .card--feature .card__copy { color: rgba(246,243,236,.82); }
.card--feature .card__list li { border-color: rgba(246,243,236,.22); }
.card--feature .card__index { color: rgba(246,243,236,.55); }

.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card__index { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); }
.card__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.card__name { font-size: 1.8rem; margin-bottom: 14px; }
.card__copy { color: var(--ink-soft); font-size: .96rem; margin-bottom: 24px; flex-grow: 1; }
.card__list { list-style: none; display: grid; gap: 0; }
.card__list li { font-size: .92rem; padding: 11px 0; border-top: 1px solid var(--line); }

.card__links { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.card--feature .card__links { border-top-color: rgba(246,243,236,.22); }
.card__visit {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--green);
  border-bottom: 1px solid transparent; transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.card__visit:hover { gap: 11px; border-bottom-color: currentColor; }
.card__visit .arr { transition: transform .3s var(--ease); }
.card__visit:hover .arr { transform: translateX(3px); }
.card__alt { font-size: .86rem; color: var(--ink-soft); width: fit-content; border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.card__alt:hover { color: var(--ink); border-bottom-color: currentColor; }
.card--feature .card__visit { color: var(--paper); }
.card--feature .card__alt { color: rgba(246,243,236,.72); }
.card--feature .card__alt:hover { color: var(--paper); }

/* ---------- Credentials ---------- */
.creds { background: var(--ink); color: var(--paper); }
.creds__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 40px 8px; text-align: center; border-right: 1px solid rgba(246,243,236,.12); display: flex; flex-direction: column; gap: 8px; }
.cred:last-child { border-right: 0; }
.cred__k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.cred__v { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ---------- Contact ---------- */
.section--contact { background: var(--green); color: var(--paper); }
.section--contact .kicker { color: var(--sand); }
.contact__title { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.contact__lede { color: rgba(246,243,236,.78); max-width: 48ch; margin-top: 24px; font-size: 1.1rem; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }
.section--contact .btn--solid { background: var(--paper); color: var(--green-deep); }
.section--contact .btn--solid:hover { background: var(--ink); color: var(--paper); }
.contact__email { font-family: var(--serif); font-size: 1.2rem; border-bottom: 1px solid rgba(246,243,236,.4); padding-bottom: 2px; transition: border-color .3s var(--ease); }
.contact__email:hover { border-color: var(--paper); }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: var(--paper); padding: 56px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-family: var(--serif); font-size: 1.2rem; }
.footer__tag { color: rgba(246,243,236,.6); font-size: .9rem; }
.footer__nav { display: flex; gap: 26px; }
.footer__nav a { color: rgba(246,243,236,.78); font-size: .94rem; transition: color .25s var(--ease); }
.footer__nav a:hover { color: var(--paper); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(246,243,236,.12); padding-top: 24px; color: rgba(246,243,236,.5); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-2, .vision__cols { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .creds__inner { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(-n+2) { border-bottom: 1px solid rgba(246,243,236,.12); }
  .footer__inner { grid-template-columns: 1fr; align-items: start; }

  .header-cta { display: none; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 28px var(--pad) 36px;
  }
  .nav.is-open a { font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
