/*
Theme Name: Pick Your Battles
Theme URI: https://pickyourbattlesmethod.com
Author: Loodon / SALS Edge
Description: Faithful traditional WordPress theme for pickyourbattlesmethod.com, migrated from the Flywheel headless + Vercel Next.js build. Single scrolling one-page layout (Home / About / Blog / Order as anchor sections) plus a traditional blog. Reads page content from the imported ACF field groups. Woo-ready structure, no store built.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: pybm
*/

/* ---------------------------------------------------------------------------
   Brand tokens, taken byte-faithfully from the live site's compiled CSS:
     pybGray      rgb(209 211 212)  #d1d3d4   (the grey "Meet Miles & Trisha" band)
     pybLightBlue rgb(161 204 220)  #a1ccdc   ("Read an excerpt" button)
   Fonts mirror the live build: Arial for body, Times New Roman for the
   italic serif display headings (the live site's `font-serif`).
   --------------------------------------------------------------------------- */

:root {
  --pyb-gray: #d1d3d4;
  --pyb-light-blue: #a1ccdc;
  --pyb-ink: #000000;
  --pyb-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pyb-ink);
  background: #ffffff;
}

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

a { color: inherit; }

.pyb-serif {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-style: italic;
}

/* ---- Header / nav ---- */
.pyb-header { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.pyb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.pyb-logo img { max-height: 50px; width: auto; object-fit: contain; object-position: left center; }
.pyb-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.pyb-menu a {
  text-transform: uppercase;
  text-decoration: underline;
  font-weight: 300;
  font-size: 18px;
}
.pyb-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.pyb-menu-toggle svg { width: 35px; height: 35px; fill: currentColor; }

/* ---- Sections ---- */
.pyb-section { padding: 0 30px; }
.pyb-hero-title {
  display: flex;
  justify-content: center;
  font-size: 50px;
  padding-bottom: 10px;
}
.pyb-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.pyb-hero-cover { display: flex; justify-content: center; max-height: 750px; }
.pyb-hero-cover img { object-fit: contain; }
.pyb-hero-body { flex: 1; }
.pyb-order-header { display: flex; justify-content: center; }
.pyb-order-header h2 { font-size: 28px; margin: 0; }

.pyb-book-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 20px;
  min-height: 100px;
  align-items: center;
}
.pyb-book-links a {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pyb-book-links img { object-fit: contain; cursor: pointer; }

.pyb-rich { font-size: 18px; }
.pyb-rich h2 { text-align: center; }
.pyb-rich p { text-align: left; }
.pyb-rich ul { padding-left: 1.2em; }

.pyb-excerpt-wrap { display: flex; justify-content: center; }
.pyb-btn {
  background: var(--pyb-light-blue);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-style: italic;
  font-size: 28px;
  margin: 50px 0;
  padding: 10px 25px;
  border: 0;
  cursor: pointer;
  color: var(--pyb-ink);
  text-decoration: none;
  display: inline-block;
}

/* ---- About band ---- */
.pyb-about {
  background: var(--pyb-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pyb-about-title { font-size: 50px; padding: 30px 0 10px; text-align: center; }
.pyb-about-photo { display: flex; justify-content: center; max-height: 500px; }
.pyb-about-photo img { object-fit: contain; }
.pyb-about-bio { width: 83%; font-size: 18px; margin: 40px 0; }

/* ---- Blog section ---- */
.pyb-blog { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.pyb-blog-title { font-size: 50px; margin: 25px 0; }
.pyb-blog-card { width: 100%; }
.pyb-blog-card-inner { display: flex; flex-direction: column; margin: 50px 0; }
.pyb-blog-img { display: flex; justify-content: center; max-height: 350px; width: 100%; }
.pyb-blog-img img { object-fit: contain; }
.pyb-blog-body { flex: 1; }
.pyb-blog-body h3 { padding: 0 30px; font-size: 18px; margin-top: 30px; font-weight: 700; }
.pyb-blog-body .pyb-rich { padding: 0 30px; margin: 30px 0; }
.pyb-read-more { padding: 0 30px; font-size: 18px; font-weight: 700; display: inline-block; }

/* ---- Footer ---- */
.pyb-footer { background: var(--pyb-gray); display: flex; flex-direction: column; align-items: flex-end; }
.pyb-footer-nav { margin: 20px 50px 10px; }
.pyb-footer-menu { list-style: none; display: flex; flex-direction: column; max-width: 700px; margin: 0; padding: 0; }
.pyb-footer-menu li { text-align: right; }
.pyb-footer-menu a { text-transform: uppercase; text-decoration: underline; font-weight: 300; font-size: 18px; }
.pyb-copyright { align-self: center; margin-bottom: 20px; }

/* ---- Generic single/page/archive (blog reading) ---- */
.pyb-content { max-width: var(--pyb-max); margin: 0 auto; padding: 40px 30px; }
.pyb-content h1 { font-size: 40px; }
.pyb-content img { height: auto; }
.pyb-post-list { list-style: none; margin: 0; padding: 0; }
.pyb-post-list li { margin-bottom: 32px; }

/* ---- Responsive: the live site switches to row layouts at md (768px) ---- */
@media (min-width: 768px) {
  .pyb-nav { padding: 40px; }
  .pyb-hero { flex-direction: row; }
  .pyb-hero-cover, .pyb-hero-body { flex: 1; }
  .pyb-hero-title { margin-top: 70px; }
  .pyb-rich { padding: 0 60px; }
  .pyb-blog-card-inner { flex-direction: row; }
  .pyb-blog-img, .pyb-blog-body { flex: 1; }
}

/* Mobile polish: the nav collapses to a toggle (the live site's one rough edge). */
@media (max-width: 767px) {
  .pyb-menu {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: #fff;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.15);
    z-index: 20;
    text-align: right;
  }
  .pyb-menu.is-open { display: flex; }
  .pyb-menu-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
