/* =====================================================
   Quality Braille Transcriptions LLC — shared brand styles
   Used by service / detail pages. Home page has its own
   inline styles to stay self-contained.
   ===================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: rgba(20, 20, 20, 0.78);
  --bg-card: rgba(26, 26, 26, 0.85);
  --border: #2a2a1f;
  --gold: #c9a961;
  --gold-bright: #e6c47e;
  --gold-soft: #f1d79a;
  --text: #f5f1e8;
  --text-muted: #a8a294;
  --text-dim: #948e82;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) url('/background.png') center / cover no-repeat fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.88) 50%,
    rgba(10, 10, 10, 0.94) 100%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold-bright); }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- Nav ----- */
nav.site-nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo .qbt {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.nav-links a:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(201,169,97,0.06);
}
.nav-links a.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
  font-weight: 500;
}
.nav-links a.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0a0a0a;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold-soft);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0a0a0a;
}
.btn-secondary {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold);
}
.btn-secondary:hover { background: rgba(201, 169, 97, 0.1); color: var(--gold-bright); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Page hero (for service pages) ----- */
.page-hero {
  padding: 80px 0 50px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero .lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ----- Section blocks ----- */
section.block {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
section.block:first-of-type { border-top: none; padding-top: 24px; }
section.block h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--text);
}
section.block h2 em { color: var(--gold); font-style: italic; }
section.block p { color: var(--text); margin: 0 0 18px; }
section.block .muted { color: var(--text-muted); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0 0;
}
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}
.detail-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--gold-soft);
}
.detail-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ----- FAQ ----- */
.faq-list { margin-top: 12px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--gold-soft);
}
.faq-item p { color: var(--text-muted); margin: 0; font-size: 16px; }

/* ----- CTA block ----- */
.cta-block {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.cta-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 18px;
}
.cta-block h2 em { color: var(--gold); font-style: italic; }
.cta-block p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ----- Footer ----- */
footer.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 12px; max-width: 320px; }
.footer-brand .creds { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.footer-brand .creds strong { color: var(--text-muted); }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); margin-left: 24px; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; text-align: center; padding: 14px 18px; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .page-hero { padding: 50px 0 30px; }
  section.block { padding: 40px 0; }
}

@media (max-width: 500px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
