/* BOCAJM Websites. No framework, no web fonts: system typefaces keep it fast. */
:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-2: #ece5d6;
  --card: #fffdf8;
  --ink: #16232a;
  --ink-2: #3f4b51;
  --line: #ddd4c3;
  --accent: #1f4d57;
  --accent-dark: #163a42;
  --clay: #9a4f2a;
  --night: #15232a;
  --night-2: #1d2f37;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Iowan Old Style", "Sitka Heading", "Charter", "Bitstream Charter", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(22, 35, 42, .06), 0 4px 14px -6px rgba(22, 35, 42, .14);
  --shadow-lg: 0 2px 4px rgba(22, 35, 42, .05), 0 24px 48px -18px rgba(22, 35, 42, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow { margin: 0 0 14px; color: var(--clay); font: 650 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(22,35,42,.12), 0 8px 20px -10px rgba(31,77,87,.7); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(22,35,42,.25); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--paper); font: 600 1.2rem/1 var(--serif); }
.brand-text { display: flex; flex-direction: column; font: 750 1.02rem/1 var(--sans); letter-spacing: .1em; }
.brand-text span { margin-top: 4px; color: var(--ink-2); font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { background: rgba(22,35,42,.06); color: var(--ink); }
.site-nav .nav-cta { margin-left: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(22,35,42,.35); }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  html:not(.js) .site-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 0 0 10px; box-shadow: none; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); max-width: 13ch; }
.hero h1 em { color: var(--accent); font-style: italic; }
.lede { max-width: 36em; margin: 24px 0 32px; color: var(--ink-2); font-size: clamp(1.08rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; color: var(--ink-2); font-size: .92rem; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8a63; box-shadow: 0 0 0 4px rgba(63,138,99,.16); }

/* Device frames (real screenshots) */
.device-browser { overflow: hidden; border: 1px solid rgba(22,35,42,.12); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #efe9dd; border-bottom: 1px solid rgba(22,35,42,.08); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4cab8; }
.browser-bar span { flex: 1; margin: 0 28px 0 14px; padding: 3px 10px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.7); color: #5d686d; font-size: .72rem; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.device-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device-phone { overflow: hidden; border: 5px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: var(--shadow-lg); }
.device-phone img { width: 100%; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; border-radius: 25px; }

.hero-visual { position: relative; margin: 0; padding: 0 9% 64px 0; }
.hero-visual .device-phone { position: absolute; right: 0; bottom: 0; width: 26%; min-width: 108px; max-width: 180px; }
.hero-visual figcaption { position: absolute; left: 0; bottom: 8px; max-width: 60%; color: var(--ink-2); font-size: .85rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2, .about h2, .contact h2, .faq h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.section-head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: 1.1rem; }

/* Work */
.work { background: var(--card); border-block: 1px solid var(--line); }
.project { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.project + .project { margin-top: clamp(64px, 9vw, 120px); }
@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .project-flip .project-visual { order: 2; }
}
.project-visual { position: relative; padding: 0 10% 48px 0; }
.project-visual .device-phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 96px; max-width: 160px; border-width: 4px; border-radius: 26px; }
.project-visual .device-phone img { border-radius: 22px; }
.tag { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.project h3 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.project-copy > p:not(.tag) { color: var(--ink-2); }
.facts { margin: 22px 0 24px; padding: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 650; text-decoration-thickness: 1.5px; }
.text-muted { margin: 0; color: var(--ink-2); font-size: .95rem; font-style: italic; }

/* Included */
.included-inner { display: grid; gap: 0 64px; }
@media (min-width: 1000px) { .included-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .included .section-head { position: sticky; top: 110px; align-self: start; } }
.inclusions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .inclusions { grid-template-columns: 1fr 1fr; } }
.inclusions li { position: relative; padding: 20px 20px 20px 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
.inclusions li::before { content: ""; position: absolute; left: 20px; top: 23px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 2.9 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.inclusions strong { display: block; margin-bottom: 3px; font-weight: 650; }
.inclusions span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.note { margin: 24px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 1000px) { .included .note { grid-column: 2; } }

/* Process */
.process { background: var(--paper-2); }
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 28px 24px 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.step-num { display: block; margin-bottom: 36px; color: var(--clay); font: 500 1.05rem/1 var(--serif); letter-spacing: .04em; }
.steps h3 { margin-bottom: 10px; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* About */
.about-inner { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .about-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.about-copy { max-width: 640px; font-size: 1.12rem; }
.about-copy p { color: var(--ink-2); }
.about-copy p:first-child { color: var(--ink); font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.45; }
.areas { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2) !important; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

/* Contact */
.contact { background: var(--night); color: #eef0ee; }
.contact .eyebrow { color: #e3a57f; }
.contact h2 { color: #fff; }
.contact-inner { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; } }
.contact-copy > p:not(.eyebrow) { margin-top: 20px; color: #c9d0d2; font-size: 1.1rem; }
.email-link { display: inline-block; margin: 12px 0 28px; color: #fff; font: 500 clamp(1.4rem, 3.4vw, 2rem)/1.25 var(--serif); text-decoration: underline; text-decoration-color: rgba(227,165,127,.7); text-decoration-thickness: 2px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.email-link:hover { color: #fff; text-decoration-color: #e3a57f; }
.contact :focus-visible { outline-color: #e3a57f; }
.contact-name { margin: 0; color: #fff; font-weight: 600; }
.contact-name span { color: #b9c2c5; font-weight: 400; font-size: .95rem; }

.enquiry { padding: clamp(22px, 4vw, 36px); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.enquiry :focus-visible { outline-color: var(--clay); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: .93rem; font-weight: 600; }
.optional { color: var(--ink-2); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #cfc6b5; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,77,87,.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { display: block; margin-top: 6px; color: #b3261e; font-size: .88rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn { width: 100%; margin-top: 6px; }
.form-note { margin: 14px 0 0; color: var(--ink-2); font-size: .88rem; text-align: center; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .97rem; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 6px; }
.form-status.is-pending { background: var(--paper); color: var(--ink-2); }
.form-status.is-success { background: #e4f1e8; color: #1d4d31; }
.form-status.is-error { background: #fbe9e7; color: #7d1d16; }
.form-status a { color: inherit; font-weight: 650; }

/* FAQ */
.faq-inner { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .faq-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font-size: 1.08rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { max-width: 60ch; margin: -4px 0 22px; color: var(--ink-2); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; color: var(--ink-2); font-size: .92rem; }
.footer-inner p { margin: 0; }
.brand-small .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.copyright { width: 100%; font-size: .85rem; }

/* Mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 759px) {
  .js .mobile-cta { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(22,35,42,.6); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .js .mobile-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .js body { padding-bottom: 80px; }
}

/* Privacy page */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page .wrap { max-width: 720px; }
.page h1 { margin-bottom: 24px; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page p, .page li { color: var(--ink-2); }
.page h2 { margin: 36px 0 12px; font-size: 1.45rem; color: var(--ink); }
