/*
Theme Name: Bitus PFA
Theme URI: https://bitus.ro/
Author: Bogdan Nițu
Author URI: https://bitus.ro/
Description: Single-page presentation theme for NIȚU B. BOGDAN-CRISTIAN PFA. Calm, restrained, technical-profile aesthetic with a custom hairline-grid services section, monospace headings (JetBrains Mono) and Inter body. Bilingual via Polylang, content editable via ACF.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitus-pfa
Tags: one-page, custom-colors, custom-menu, translation-ready
*/

/* ---------- Self-hosted fonts ----------
 * Inter (regular, 500, 600) — body
 * JetBrains Mono (500, 600, 700) — headings & monospace labels
 * Files in /assets/fonts/ — license: SIL Open Font License (OFL).
 * If a font file is missing, the system fallback in --f-sans/--f-mono kicks in.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-muted: #6B7280;
  --hairline: #E5E7EB;
  --hairline-strong: #D1D5DB;
  --blue: #3B6BB0;
  --blue-ink: #2A4F85;
  --blue-soft: #EAF0F9;
  --red: #B23A48;

  --max: 1100px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 6px;

  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 104px 0; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
h1, h2, h3 {
  font-family: var(--f-mono);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--f-mono);
  font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand .brand-mark { display: inline-block; color: var(--blue); margin-right: 6px; }
.nav { display: none; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .current-menu-item > a,
.nav a.active { color: var(--ink); border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
@media (min-width: 768px) { .nav { display: flex; } }

.lang-switch {
  display: flex; gap: 0;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2px;
  background: var(--surface);
  list-style: none;
  margin: 0;
}
.lang-switch li { margin: 0; }
.lang-switch a {
  display: block;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--ink-soft);
  text-transform: uppercase;
  line-height: 1;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch .current-lang a,
.lang-switch li.current-lang a {
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 1024px) { .hero { padding: 128px 0 96px; } }
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 22ch;
}
.hero h1 .pfa {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero .lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 28px;
}

/* Hero CTA buttons */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-soft); text-decoration: none; }

/* ---------- Credibility strip ---------- */
.cred {
  border-bottom: 1px solid var(--hairline);
  background: #FFFFFF;
  padding: 28px 0;
}
.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cred-row span { white-space: nowrap; }
.cred-row span + span { position: relative; }
.cred-row span + span::before {
  content: "";
  position: absolute; left: -23px; top: 50%;
  width: 3px; height: 3px;
  background: var(--hairline-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}
.cred-row-4 { gap: 12px 36px; }

/* ---------- Section heading ---------- */
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700; line-height: 1.25;
}
.section-head .sub {
  color: var(--ink-soft);
  font-size: 16.5px; line-height: 1.6;
  margin: 12px 0 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; } }
.about-grid p { color: var(--ink-soft); font-size: 16px; }
.about-grid p + p { margin-top: 1em; }

.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.fact-list li { border-left: 2px solid var(--blue); padding: 2px 0 2px 16px; }
.fact-list .k {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.fact-list .v { font-size: 15px; color: var(--ink); font-weight: 500; }
.fact-list a.v { color: var(--ink); }
.fact-list a.v:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service {
  background: var(--surface);
  padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.service-head { display: flex; align-items: center; gap: 12px; }
.service-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--blue);
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 {
  font-family: var(--f-mono);
  font-size: 15px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.005em;
}
.service ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.service li {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft);
  position: relative; padding-left: 16px;
}
.service li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px; background: var(--ink-muted);
}
.service li.outcome {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  font-size: 14px;
  color: var(--ink);
  font-style: normal;
}
.service li.outcome::before {
  background: var(--blue); width: 8px;
}

.availability {
  margin-top: 32px;
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- How I work ---------- */
.how-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 8px; overflow: hidden;
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-step {
  background: var(--surface);
  padding: 24px 24px 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.how-num {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.how-step-title {
  font-family: var(--f-mono);
  font-size: 14.5px; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0;
}
.how-step-desc {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Tech stack ---------- */
#stack { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stack-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 640px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stack-grid { grid-template-columns: repeat(3, 1fr); } }
.stack-cat {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 18px 20px 20px;
  background: var(--bg);
}
.stack-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stack-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--blue);
}
.stack-icon svg { width: 20px; height: 20px; }
.stack-cat-label {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.stack-items {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
}
.stack-disclaimer {
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 65ch;
  border-left: 2px solid var(--hairline-strong);
  padding: 4px 0 4px 14px;
}
.stack-trademark {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 65ch;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; max-width: 800px; }
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  font-family: var(--f-mono);
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding-right: 8px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "+";
  font-family: var(--f-mono); font-weight: 600;
  color: var(--blue);
  display: inline-block; width: 14px; text-align: center;
  transition: transform .15s ease;
}
.faq-item[open] .faq-q::before { content: "−"; }
.faq-a {
  margin: 12px 0 0 26px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Experience ---------- */
.exp-section { background: #FFFFFF; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.exp-summary { display: grid; gap: 16px; max-width: 70ch; }
.exp-summary p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.exp-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Contact preview ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-grid h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 700; }
.contact-grid .lede { color: var(--ink-soft); font-size: 16.5px; margin-top: 12px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-list li {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-list li:first-child { border-top: 1px solid var(--hairline); }
.contact-list .icn { color: var(--blue); margin-top: 3px; }
.contact-list .icn svg { width: 18px; height: 18px; }
.contact-list .lbl {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.contact-list .val { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.contact-list a.val { color: var(--ink); }
.contact-list a.val:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Contact form area */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px 24px 22px;
}
.contact-form-placeholder {
  border: 1px dashed var(--hairline-strong);
  border-radius: 6px;
  padding: 18px;
  background: var(--bg);
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
}
.contact-form-placeholder .lbl {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.contact-gdpr-note {
  margin: 16px 0 0;
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink-muted);
  max-width: 65ch;
}
.contact-gdpr-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.contact-gdpr-note a:hover { color: var(--blue); }

/* Contact-form plugin output overrides — keep CF7 / Fluent Forms looking native. */
.contact-form-wrap .wpcf7 form,
.contact-form-wrap .ff-el-group { margin: 0; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea,
.contact-form-wrap select {
  font-family: var(--f-sans);
  font-size: 15px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.contact-form-wrap input[type="submit"],
.contact-form-wrap button[type="submit"] {
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 600;
  background: var(--blue); color: #fff;
  border: 0; border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
}
.contact-form-wrap input[type="submit"]:hover,
.contact-form-wrap button[type="submit"]:hover { background: var(--blue-ink); }
.contact-form-wrap label { font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: #FFFFFF;
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--ink-soft);
}
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.foot-h {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-list .row { display: flex; gap: 8px; line-height: 1.55; }
.foot-list .k {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-muted);
  flex: 0 0 auto; min-width: 86px;
}
.foot-list .v { font-size: 13px; color: var(--ink); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--ink); }
.foot-links a:hover { color: var(--blue); }
.foot-privacy-claim {
  margin: 18px 0 0;
  font-family: var(--f-mono);
  font-size: 11px; line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.foot-bottom {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- WordPress admin bar offset ---------- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
