/* PJR Sourcing. Inter only, warm ink neutrals, one red accent. 4px grid. */
:root {
  --ink: #241b17;
  --ink-muted: #5e544d;
  --dark: #211915;
  --darker: #1a1411;
  --cream: #f7f3ee;
  --beige: #ece5dc;
  --rule: #e4dbd0;
  --red: #971111;
  --red-dark: #6b0e10;
  --on-dark: #f7f3ee;
  --on-dark-2: rgba(247, 243, 238, 0.8);
  --on-dark-3: rgba(247, 243, 238, 0.64);
  --line-dark: rgba(247, 243, 238, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--on-dark); }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 900px) { .container { padding-inline: 48px; } }

.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: var(--cream); }
.skip:focus { top: 16px; }

/* Sections */
section { padding-block: 64px; }
@media (min-width: 900px) { section { padding-block: 96px; } }
.dark { background: var(--dark); color: var(--on-dark); }
.cream { background: var(--cream); }
.beige { background: var(--beige); }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 900px) { h2 { font-size: 44px; } }
.cjk h1, .cjk h2 { letter-spacing: 0; }
/* Break Chinese and Japanese lines between phrases, not inside words. */
.cjk h1, .cjk h2, .cjk h3, .cjk .lead, .cjk p { word-break: auto-phrase; }
.cjk .hero h1 { max-width: none; }
.n { font-size: 14px; font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; }
.dark .n { color: #e0574f; }
.lead { font-size: 19px; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(247, 243, 238, 0.6); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(247, 243, 238, 0.1); border-color: var(--on-dark); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--rule); }
.bar { height: var(--header); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.nav-desktop { display: none; gap: 28px; margin-inline-start: auto; }
.nav-desktop a { font-size: 16px; transition: color 150ms var(--ease); }
.nav-desktop a:hover { color: var(--red); }
.bar-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.btn-cta { display: none; min-height: 44px; padding: 10px 20px; }
.menu-toggle { min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .bar-end { margin-inline-start: 0; }
  .menu-toggle { display: none; }
}
@media (min-width: 1180px) { .btn-cta { display: inline-flex; } }

.nav-mobile { position: absolute; inset-inline: 0; top: 100%; height: calc(100dvh - var(--header)); overflow-y: auto; background: var(--cream); border-top: 1px solid var(--rule); }
.nav-mobile .container { display: flex; flex-direction: column; padding-block: 16px 48px; }
.nav-mobile a:not(.btn) { padding-block: 20px; border-bottom: 1px solid var(--rule); font-size: 19px; }
.nav-mobile .btn { margin-top: 32px; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* Language switch */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { color: var(--red); transition: transform 150ms var(--ease); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 208px; max-height: 60vh; overflow-y: auto; padding-block: 8px; background: var(--cream); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(36, 27, 23, 0.24); }
.lang li a { display: block; padding: 8px 16px; font-size: 15px; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.lang li a:hover { background: var(--beige); }
.lang li a[aria-current] { color: var(--red); }

/* Hero */
.hero { min-height: calc(100svh - var(--header)); display: flex; align-items: center; }
.hero-grid { display: grid; gap: 48px; }
.hero h1 { font-size: clamp(36px, 3.2vw + 20px, 64px); line-height: 1.05; letter-spacing: -0.025em; max-width: 14em; }
.hero .lead { margin-top: 24px; max-width: 34em; color: var(--on-dark-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cats { border-top: 1px solid var(--line-dark); }
.cats li { display: flex; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
.cats .w { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.cjk .cats .w { letter-spacing: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 4fr; gap: 64px; align-items: center; }
  .cats li { padding-block: 16px; }
  .cats .w { font-size: 28px; }
}

/* Services */
.service-grid { display: grid; margin-top: 40px; }
.service { padding-block: 32px; border-top: 1px solid var(--rule); }
.service h3 { margin-top: 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.service p { margin-top: 12px; }
.service ul { margin-top: 24px; }
.service li { padding-block: 12px; border-top: 1px solid var(--rule); color: var(--ink-muted); font-size: 16px; }
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--rule); }
  .service { padding: 32px; border-top: 0; }
  .service:first-child { padding-inline-start: 0; }
  .service:last-child { padding-inline-end: 0; }
  .service + .service { border-inline-start: 1px solid var(--rule); }
}

/* Method */
.steps { display: grid; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.steps li { padding-block: 24px; border-bottom: 1px solid var(--line-dark); }
.steps h3 { margin-top: 8px; font-size: 20px; line-height: 1.25; }
.steps p { margin-top: 4px; color: var(--on-dark-2); font-size: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; }
  .steps li { padding-block: 24px 0; border-bottom: 0; }
}

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid rgba(36, 27, 23, 0.14); }
.faq-list details { border-bottom: 1px solid rgba(36, 27, 23, 0.14); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 18px; font-weight: 500; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; color: var(--red); }
.faq-list summary .v { transition: opacity 150ms var(--ease); }
.faq-list details[open] summary .v { opacity: 0; }
.faq-list details p { padding-bottom: 20px; max-width: 40em; color: var(--ink-muted); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.contact-text .lead { margin-top: 16px; color: var(--on-dark-2); }
.contact-lines { margin-top: 32px; display: grid; gap: 16px; }
.contact-lines li, .contact-lines a { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); overflow-wrap: anywhere; }
.contact-lines svg { flex: none; color: var(--on-dark-3); }
.contact-lines a { transition: color 150ms var(--ease); }
.contact-lines a:hover { color: var(--on-dark); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

.panel { background: var(--cream); color: var(--ink); border-radius: 12px; padding: 24px; }
@media (min-width: 640px) { .panel { padding: 32px; } }
form { display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: #fffdfa; font-size: 16px; transition: border-color 150ms var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 1px var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.err { margin-top: 8px; font-size: 14px; color: var(--red); }
.err:empty { display: none; }
form .btn { justify-self: start; min-width: 160px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sent h3 { font-size: 24px; }
.sent p { margin-top: 12px; }
.sent .muted { color: var(--ink-muted); }
.sent .muted a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.link { margin-top: 20px; padding: 0; border: 0; background: none; color: var(--red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Footer */
.site-footer { background: var(--darker); color: var(--on-dark-2); padding-block: 48px; font-size: 16px; }
.brand-light { color: var(--on-dark); }
.site-footer p { margin-top: 16px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-contact a { transition: color 150ms var(--ease); overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--on-dark); }
.site-footer .copy { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-3); }

/* One entrance per section */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
