/*
Theme Name: Barqya
Theme URI: https://barqya.com
Author: Barqya
Description: Custom theme for Barqya — software support, hardware repair and certified used laptops.
Version: 1.0.0
Text Domain: barqya
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #F1F2F0;
  --ink: #0B0D10;
  --card: #FBFBFA;
  --card-muted: #EDEEEA;
  --border: #E1E3E0;
  --border-soft: #E9EBE7;
  --border-soft-2: #E6E8E4;
  --input-border: #DDDFDB;
  --input-bg: #F4F5F2;

  --text-secondary: #5C6169;
  --text-label: #6B7078;
  --text-muted: #8A8F96;
  --text-mono-meta: #8A9068;

  --accent: #C6F24E;
  --accent-hover: #D6FA72;
  --accent-glow-16: rgba(198, 242, 78, .16);
  --accent-glow-35: rgba(198, 242, 78, .35);

  --dark: #0B0D10;
  --dark-2: #0F1216;
  --dark-3: #15181D;
  --on-dark-body: #C8CDD3;
  --on-dark-muted: #7E858C;
  --on-dark-secondary: #9BA1A8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --container: 1240px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-label);
  text-transform: uppercase;
}

h1, h2, h3, .heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--sm { height: 44px; padding: 0 18px; font-size: 13.5px; border-radius: 11px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #20242B; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; border: 1px solid var(--input-border); color: var(--ink); }
.btn--outline:hover { background: #F1F2EE; }
.btn--outline-dark { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.btn--outline-dark:hover { background: rgba(255,255,255,.07); }

/* ---------- Cards & badges ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card--white { background: #fff; }
.card--dark { background: var(--dark); color: #fff; border: none; }
.card--accent-top { position: relative; overflow: hidden; }
.card--accent-top::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent-glow-16);
  padding: 5px 10px;
  border-radius: 7px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(241,242,240,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header__row {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand__mark { position: relative; width: 24px; height: 24px; flex: none; }
.brand__mark-dot {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); transform: translate(-50%,-50%);
}
.brand__mark svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.brand__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.03em; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.primary-nav a {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-label);
  position: relative;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--accent);
}

.header-spacer { flex: 1; }

.header-cta {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.header-cta:hover { background: #20242B; }
.header-cta__initials {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { pointer-events: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 16px 16px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 4px; }
  .primary-nav a.is-active::after { display: none; }
  .header-cta span:first-child { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--dark); color: #fff; }
.site-footer__top {
  padding: 52px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .eyebrow { color: var(--on-dark-muted); margin-bottom: 16px; }
.footer-about p { font-size: 13.5px; line-height: 1.7; color: var(--on-dark-secondary); margin-top: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.footer-social a:hover { background: rgba(255,255,255,.07); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--on-dark-body); }
.footer-links a:hover { color: #fff; }
.site-footer__bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-muted); letter-spacing: .04em;
}
.site-footer__bottom-links { display: flex; gap: 20px; }
.site-footer__bottom-links a:hover { color: #fff; }

@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ---------- Page hero (About/Contact/Legal) ---------- */
.page-intro { max-width: 880px; margin: 0 auto; padding: 40px 28px 0; }
.page-intro--narrow { max-width: 760px; }
.page-intro--wide { max-width: 960px; }
.page-intro h1 { font-size: 38px; margin-top: 12px; }
.page-intro__lede { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-top: 16px; max-width: 640px; }

@media (max-width: 760px) {
  .page-intro h1 { font-size: 30px; }
}
