/*
Theme Name: Black Bear PC Repair
Theme URI: https://blackbearpcrepair.com/
Author: Black Bear PC Repair
Description: A simple brochure theme for Black Bear PC Repair. Home, prices, contact form, and a blog. Built to match the printed flyer.
Version: 1.0.13
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: black-bear-pc-repair
Tags: custom, simple, business, blog
*/

:root {
  --slate: #23272e;
  --slate-light: #33383f;
  --cream: #f5f1e8;
  --stone: #e9e4d8;
  --gold: #c9a227;
  --gold-dark: #a98720;
  --ink: #1f2226;
  --muted: #5a5e63;
  --paper: #ffffff;
  --line: #ddd6c7;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--slate); }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--slate); margin: 0 0 0.5em; text-wrap: balance; }
h4, h5, h6 { text-wrap: balance; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--slate);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-brand img { width: 64px; height: 64px; display: block; }
.site-brand .site-name {
  font-size: 1.25rem; font-weight: 800; line-height: 1.15;
  color: var(--slate); letter-spacing: 0.01em;
}
.site-brand .site-tagline { font-size: 0.85rem; color: var(--muted); }
.site-header .header-phone { margin-left: auto; text-align: right; }
.site-header .header-phone a {
  font-weight: 800; color: var(--slate); text-decoration: none; white-space: nowrap;
}

.main-nav { background: var(--slate); }
.main-nav .wrap { display: flex; justify-content: flex-end; }
.main-nav ul {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.main-nav a {
  display: block; padding: 12px 16px; color: var(--cream);
  text-decoration: none; font-weight: 600;
}
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--slate-light); color: #fff; }

/* Buttons */
.button {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--gold); color: var(--slate); font-weight: 800;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem;
}
.button:hover { background: var(--gold-dark); color: #fff; }
.button-ghost {
  background: transparent; color: var(--slate);
  box-shadow: inset 0 0 0 2px var(--slate);
}
.button-ghost:hover { background: var(--slate); color: var(--cream); }

/* Hero */
.hero { background: var(--cream); text-align: center; }
.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.25em; }
.hero .hero-sub { font-size: 1.25rem; color: var(--muted); margin-bottom: 0.4em; }
.hero .hero-area { font-weight: 700; color: var(--slate); margin-bottom: 1.4em; }
.hero .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero.has-bg { background-size: cover; background-position: center; position: relative; }
.hero.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(245, 241, 232, 0.8);
}
.hero.has-bg .wrap { position: relative; z-index: 1; }

/* About */
.about-text { max-width: 720px; margin: 0 auto; }
.about-text h2 { margin-top: 1.6em; }
.about-text p { margin-bottom: 1em; }

/* Sections */
.section { padding: 48px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--slate); color: var(--cream); }
.section-dark h2 { color: var(--cream); }
.section-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
.section-dark .section-intro { color: #d8d2c2; }
.section-title { text-align: center; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.section-cream .service-card { background: var(--paper); }
.service-card h3 { margin-bottom: 0.35em; }
.service-card p { margin: 0; color: var(--muted); }
.service-icon { display: block; width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; }
.service-icon svg { display: block; width: 30px; height: 30px; }
.service-head h3 { margin-bottom: 0.35em; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--slate);
  font-size: 1.5rem; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin-bottom: 0.3em; }
.step p { margin: 0; color: var(--muted); }

/* Prices */
.price-list { max-width: 760px; margin: 0 auto; }
.price-row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .price-name { font-weight: 700; color: var(--slate); }
.price-row .price-name span { display: block; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.price-row .price-amount { margin-left: auto; font-weight: 800; color: var(--slate); white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); margin-top: 24px; }
.price-note strong { color: var(--slate); }

/* Contact strip */
.contact-strip { text-align: center; }
.contact-strip .phone-big {
  display: block; font-size: 1.9rem; font-weight: 800;
  color: var(--cream); text-decoration: none; margin: 8px 0;
}
.contact-strip a.email-link { color: var(--cream); font-weight: 600; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.post-card .post-thumb { display: block; }
.post-card .post-thumb img { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-card .post-body { padding: 18px 20px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.post-card h3 a { text-decoration: none; }
.post-date { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5em; }
.post-card p { color: var(--muted); margin: 0; }

.page-head { background: var(--cream); }
.page-head .wrap { padding-top: 36px; padding-bottom: 36px; }
.page-head h1 { margin: 0; }
.page-content { padding: 40px 0 56px; }
.page-content .wrap { max-width: 760px; }

.entry-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2em; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.pagination { margin-top: 32px; text-align: center; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; margin: 0 2px; }
.pagination .current { background: var(--slate); color: #fff; border-color: var(--slate); }

/* Forms */
.bbpr-form { max-width: 620px; }
.bbpr-form p { margin-bottom: 16px; }
.bbpr-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.bbpr-form input[type="text"],
.bbpr-form input[type="email"],
.bbpr-form input[type="tel"],
.bbpr-form textarea {
  width: 100%; padding: 11px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.bbpr-form textarea { min-height: 150px; resize: vertical; }
.bbpr-form .field-hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.notice {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 24px;
  background: #eef6e9; border: 1px solid #9cc384; color: #2c4a1e;
}
.notice-error { background: #fbeeee; border-color: #d99a9a; color: #6d1f1f; }

/* Footer */
.site-footer { background: var(--slate); color: var(--cream); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; }
.footer-inner { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .logo-disc {
  background: var(--cream); border-radius: 50%;
  padding: 5px; flex: 0 0 auto; line-height: 0;
}
.footer-brand .logo-disc img { width: 58px; height: 58px; display: block; border-radius: 50%; }
.footer-brand .footer-name { font-weight: 800; font-size: 1.1rem; }
.footer-brand .footer-area { font-size: 0.9rem; color: #cfc8b6; }
.footer-contact { margin-left: auto; text-align: right; }
.footer-contact a { color: var(--cream); font-weight: 700; text-decoration: none; display: block; }
.footer-contact span { display: block; font-size: 0.9rem; color: #cfc8b6; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--slate-light);
  padding-top: 16px; margin-top: 28px;
  font-size: 0.85rem; color: #a9a294;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
}
.footer-bottom .site-credit { color: var(--gold); }

@media (max-width: 860px) {
  .services-grid, .post-list, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  .services-grid, .post-list, .steps { grid-template-columns: 1fr; }
  .service-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.35em; }
  .service-head .service-icon { margin-bottom: 0; flex: 0 0 auto; }
  .service-head h3 { margin-bottom: 0; }
  .site-brand .site-tagline { display: none; }
  .site-header .header-phone { display: none; }
  .main-nav a { padding: 10px 12px; }
  .footer-contact { margin-left: 0; text-align: left; }
  .price-row { flex-wrap: wrap; }
  .price-row .price-amount { margin-left: 0; }
}
