/* JvV Solutions — Direction C "Studio" */
:root {
  --teal: #0F766E;
  --teal-dark: #0A524C;
  --cyan: #06F8F9;
  --ink: #0D1514;
  --muted: #46585A;
  --cloud: #EDF2F1;
  --line: #D3DCDB;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.teal { color: var(--teal); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
h1 { font-size: clamp(46px, 7.6vw, 112px); line-height: 0.94; letter-spacing: -0.045em; max-width: 13ch; }
h2 { font-size: clamp(36px, 5.4vw, 72px); max-width: 14ch; }
h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--teal); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.06em; text-decoration: none; color: var(--ink); line-height: 1; padding: 8px 0; }
.logo span { color: var(--teal); }
.logo-light { color: var(--white); }
.logo-light span { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--teal); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(36px, 5vw, 64px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Marquee */
.marquee { background: var(--teal); color: var(--white); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; white-space: nowrap; }
.marquee span:nth-child(even) { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 144px) 0; }
.section-cloud { background: var(--cloud); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { border-top: 3px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--teal); letter-spacing: 0; }
.service > p:not(.num) { color: var(--muted); }
.service ul { margin-top: 8px; border-top: 1px solid var(--line); }
.service li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { background: var(--white); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.project-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.project-visual { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-decoration: none; padding: 32px; text-align: center; }
.project-wide .project-visual { min-height: 420px; }
.visual-kofi { background: #2A1B14; color: #F3E9DA; }
.kofi-mark { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(64px, 9vw, 120px); letter-spacing: 0.14em; margin-right: -0.14em; line-height: 1; transition: letter-spacing .4s; }
.visual-kofi:hover .kofi-mark { letter-spacing: 0.2em; }
.kofi-sub { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #D9C7AE; }
.visual-jvv { background: var(--teal); }
.jvv-mark, .next-mark { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 9vw, 120px); letter-spacing: -0.06em; line-height: 1; color: var(--white); }
.jvv-mark i, .next-mark i { font-style: normal; color: var(--cyan); }
.visual-next { background: var(--ink); }
.visual-next i { color: var(--cyan); }
.project-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.project-body p:not(.tags) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; background: var(--cloud); color: var(--ink); }
.text-link { font-weight: 600; color: var(--teal); text-decoration: none; padding: 10px 0; align-self: flex-start; border-bottom: 2px solid transparent; }
.text-link:hover { border-bottom-color: var(--teal); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { background: var(--cloud); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { margin-bottom: 32px; }
.steps p { color: var(--muted); font-size: 16px; }

/* About */
.section-teal { background: var(--teal); color: var(--white); }
.section-teal .eyebrow { color: var(--white); } /* cyan is too faint for small text on teal */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 20px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }
.facts { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.3); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 16px; }
.facts dt { color: var(--white); font-weight: 400; }
.facts dd { font-weight: 600; text-align: right; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .lead { margin-top: 24px; }
.direct { margin-top: 40px; border-top: 1px solid var(--line); }
.direct-link { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.direct-label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.direct-value { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.03em; transition: color .2s; overflow-wrap: anywhere; }
.direct-link:hover .direct-value { color: var(--teal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--cloud); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full, .form .btn, .form-error { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.18); }
.form-error { color: #A4261D; font-size: 15px; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 48px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { font-size: 15px; text-decoration: none; padding: 10px 0; color: #C9D6D4; }
.footer-nav a:hover { color: var(--cyan); }
.copy { font-size: 14px; color: #C9D6D4; }
.copy a { color: inherit; }
.copy a:hover { color: var(--cyan); }

/* Simple pages: 404 and privacy */
.page { padding: clamp(64px, 10vw, 140px) 0; min-height: 60vh; }
.page h1 { margin-top: 16px; }
.page .lead { margin-top: 24px; }
.page .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.prose { max-width: 68ch; margin-top: 48px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--teal); font-weight: 600; }
.big-404 { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 18vw, 220px); line-height: .9; letter-spacing: -0.05em; color: var(--teal); margin: 0; }
.big-404 span { color: var(--ink); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-wide { grid-template-columns: 1fr; }
  .project-wide .project-visual { min-height: 300px; }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; }
  .work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps .num { margin-bottom: 8px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .actions, .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Hero with live demo ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-copy .eyebrow { margin-bottom: -8px; }
.hero-grid h1 { font-size: clamp(44px, 5.6vw, 88px); max-width: 11ch; }
.demo { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.demo-controls { display: flex; flex-direction: column; gap: 10px; }
.demo-label { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--line); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.browser {
  --m-bg: #2A1B14; --m-fg: #F3E9DA; --m-accent: #D9A441; --m-accent-fg: #2A1B14; --m-tile: #3D2B21;
  --m-font: Georgia, 'Times New Roman', serif; --m-weight: 400; --m-space: 0;
  border-radius: 16px; overflow: hidden; border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--teal);
  margin: 0 10px 10px 0;
}
.browser[data-kind="store"] { --m-bg: #FFFFFF; --m-fg: #141414; --m-accent: #141414; --m-accent-fg: #FFFFFF; --m-tile: #EFEBE4; --m-font: var(--display); --m-weight: 800; --m-space: -0.04em; }
.browser[data-kind="services"] { --m-bg: #F3F6FB; --m-fg: #14213D; --m-accent: #2452D9; --m-accent-fg: #FFFFFF; --m-tile: #DDE5F3; --m-font: var(--body); --m-weight: 600; --m-space: -0.03em; }
.browser[data-kind="salon"] { --m-bg: #F8EAE5; --m-fg: #3A2430; --m-accent: #A8456A; --m-accent-fg: #FFFFFF; --m-tile: #EFD3CB; --m-font: Georgia, 'Times New Roman', serif; --m-weight: 400; --m-space: -0.01em; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ink); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4A5A58; }
.browser-url { margin-left: 10px; flex: 1; min-width: 0; background: #24302F; color: #D5E0DE; font-size: 12px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock { background: var(--m-bg); color: var(--m-fg); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 22px; transition: background .35s, color .35s; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.mock-nav strong { font-family: var(--m-font); font-weight: 700; overflow-wrap: anywhere; }
.mock-links { display: flex; gap: 8px; flex-shrink: 0; }
.mock-links i { width: 26px; height: 5px; border-radius: 3px; background: currentColor; opacity: .35; }
.mock-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 10px 0 4px; }
.mock-kicker { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.mock-title { font-family: var(--m-font); font-weight: var(--m-weight); letter-spacing: var(--m-space); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; }
.mock-btn { background: var(--m-accent); color: var(--m-accent-fg); font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; transition: background .35s, color .35s; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-tiles i { height: 56px; border-radius: 8px; background: var(--m-tile); transition: background .35s; }
.browser[data-kind="cafe"] .mock-hero, .browser[data-kind="salon"] .mock-hero { align-items: center; text-align: center; }
.browser[data-kind="store"] .mock-tiles i { height: 84px; }
.browser[data-kind="services"] .mock-tiles { grid-template-columns: 2fr 1fr 1fr; }
.demo-cta { align-self: flex-start; font-weight: 600; color: var(--teal); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.demo-cta:hover { border-bottom-color: var(--teal); }

/* ---------- Brief builder ---------- */
.brief { background: var(--cloud); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.brief-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.brief-group { display: flex; flex-direction: column; gap: 10px; }
.brief-legend { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brief-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-preview { background: var(--white); border-radius: 16px 16px 16px 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line); }
#brief-text { font-size: 18px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 21, 20, .25); transition: transform .2s, background .2s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--teal); color: var(--white); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid h1 { max-width: 13ch; }
}
@media (max-width: 720px) {
  .brief-fields { grid-template-columns: 1fr; }
  .brief-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mock, .mock-btn, .mock-tiles i { transition: none; }
  .wa-float:hover { transform: none; }
}