/* public/css/site.css — mobashwir.com (Direction B + C: light, service-first)
   One file: tokens, base, components, sections. --accent is set per site from Admin → Settings. */

:root {
  --accent: #2B4BF2;
  --ink: #0E1116;
  --text: #2F3540;
  --muted: #4A505C;
  --subtle: #5B6270;
  --line: #E6E8EC;
  --line-strong: #CDD1D8;
  --surface: #F4F5F7;
  --tint: #EEF1FE;
  --bg: #FFFFFF;
  --wa: #128C4A;
  --wa-hover: #0E7339;
  --dark: #0E1116;
  --dark-line: #262B33;
  --dark-muted: #B9BFCA;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --radius-lg: 20px;
  --container: 1240px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 112px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.icon { flex: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 9px 16px; }
.btn-lg { min-height: 54px; padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(.92); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { border-color: #4A505C; color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14,17,22,.06); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 10px; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 56px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero-copy { flex: 999 1 540px; min-width: 0; }
.eyebrow { font-size: 14px; color: var(--subtle); margin-bottom: 24px; }
.hero-title { font-weight: 800; font-size: clamp(40px, 6vw, 86px); line-height: 1.0; letter-spacing: -0.045em; }
.lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); max-width: 600px; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--subtle); }

.results { flex: 1 1 380px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-title { font-weight: 700; font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 14px; padding: 16px; }
.stat-value { font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; line-height: 1.15; }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--subtle); line-height: 1.4; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { flex: none; width: 116px; color: var(--muted); }
.bar-track { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.bar-fill.is-accent { background: var(--accent); }
.bar-value { flex: none; width: 52px; text-align: right; }

/* ---------- band ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; padding-top: 26px; padding-bottom: 26px; }
.band-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }

/* ---------- sections ---------- */
.section { padding-top: var(--section); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 44px; }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.04em; }
.section-head p { font-size: 17px; max-width: 460px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin-top: 4px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.ticks { margin: 0; padding-left: 18px; color: var(--text); font-size: 15px; line-height: 1.9; }

/* work rows */
.work-list { border-top: 1px solid var(--ink); }
.work-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.work-row:hover { background: linear-gradient(90deg, transparent, var(--surface) 12%, var(--surface) 88%, transparent); }
.work-name { display: flex; gap: 18px; align-items: baseline; }
.work-name h3 { font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); }
.work-name p { margin-top: 4px; font-size: 15px; }
.work-summary { font-size: 15px; line-height: 1.6; }
.work-metrics { display: flex; gap: 24px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.metric-value { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.metric-label { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.work-arrow { color: var(--subtle); transition: transform .15s, color .15s; }
.work-row:hover .work-arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 900px) {
  .work-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .work-metrics { justify-content: flex-start; }
  .work-arrow { display: none; }
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--line-strong); padding-top: 22px; }
.step.is-first { border-top-color: var(--accent); }
.step h3 { font-weight: 700; font-size: 22px; margin: 12px 0 8px; }
.step p:last-child { font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px 48px; }
.about-text { font-weight: 600; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.45; letter-spacing: -0.02em; }
.about-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact { margin-top: var(--section); background: var(--dark); color: #fff; }
.contact-row { display: flex; flex-wrap: wrap; gap: 48px; padding-top: clamp(64px, 8vw, 88px); padding-bottom: clamp(64px, 8vw, 88px); }
.contact-copy { flex: 1 1 400px; min-width: 0; }
.contact-copy h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1.04; }
.contact-copy > p { margin-top: 20px; color: var(--dark-muted); font-size: 18px; max-width: 480px; }
.contact-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 380px; }
.contact-form { flex: 1 1 400px; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form .optional { font-weight: 400; color: var(--subtle); }
.contact-form input, .contact-form select, .contact-form textarea { font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: var(--wa); font-weight: 600; }
.form-status.is-error { color: #B42318; font-weight: 600; }

/* footer */
.site-footer { background: var(--dark); color: #9AA1AD; border-top: 1px solid var(--dark-line); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 36px; }

/* ---------- project page ---------- */
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); text-decoration: none; margin-top: 40px; }
.crumb:hover { color: var(--ink); }
.case-hero { padding-top: 28px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.case-hero h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -0.045em; line-height: 1.04; max-width: 980px; margin-top: 18px; }
.case-hero .lead { max-width: 720px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 36px; }
.case-meta dt { font-size: 13px; color: var(--subtle); }
.case-meta dd { margin: 4px 0 0; font-weight: 600; }
.case-meta a { color: var(--accent); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-top: 48px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.metric-card .metric-value { font-size: clamp(28px, 3vw, 38px); }
.metric-card .metric-label { font-size: 14px; margin-top: 6px; }
.case-cover { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.case-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 20px 48px; padding-top: 56px; }
.case-block h2 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--subtle); }
.case-block .body { font-size: 18px; line-height: 1.7; color: var(--text); }
.did-list { margin: 0; padding: 0; list-style: none; counter-reset: did; display: flex; flex-direction: column; gap: 16px; }
.did-list li { counter-increment: did; display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: 17px; line-height: 1.6; }
.did-list li::before { content: counter(did, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--accent); padding-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 56px; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--subtle); margin-top: 8px; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: var(--section); padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.next-case h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); margin-top: 6px; }
.next-case .icon { color: var(--accent); }
@media (max-width: 760px) { .case-block { grid-template-columns: 1fr; padding-top: 40px; } }

/* ---------- creative page ---------- */
.page-title { font-weight: 800; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; }
.g-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.g-cats a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.g-cats a:hover { border-color: var(--ink); }
.g-group + .g-group { margin-top: 56px; }
.g-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.g-grid { columns: 3 300px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; }
.g-item img, .g-item video { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.g-item figcaption { font-size: 14px; color: var(--subtle); margin-top: 8px; }

/* error */
.error-page { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding-top: 80px; padding-bottom: 80px; }
.error-page h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
