/*
Theme Name: Parker's Warriors
Theme URI: https://parkerswarriors.com
Author: Parker's Warriors
Description: A warm, editable nonprofit WordPress theme for Parker's Warriors, converted from the original Next.js website.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parkers-warriors
*/

:root {
  --paper: #fffaf4;
  --paper-strong: #fff3e7;
  --ink: #4f311d;
  --muted-ink: #7b5f49;
  --accent: #ef8e48;
  --accent-strong: #d96c1c;
  --sand-soft: #f5e1c7;
  --warm-line: rgba(119, 75, 40, 0.1);
  --heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 142, 72, 0.16), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(255, 222, 197, 0.8), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #fff7ef 42%, #fffaf5 100%);
  color: var(--ink);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(rgba(119, 75, 40, 0.035) 0.6px, transparent 0.6px);
  background-position: center;
  background-size: auto, 18px 18px;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(239, 142, 72, 0.2);
}

.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;
}

.pw-container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.pw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(119, 75, 40, 0.08);
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(18px);
}

.pw-utility {
  border-bottom: 1px solid rgba(119, 75, 40, 0.08);
  background: rgba(255, 255, 255, 0.35);
}

.pw-utility-inner,
.pw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pw-utility-inner {
  min-height: 54px;
  color: var(--muted-ink);
  font-size: 14px;
}

.pw-header-inner {
  min-height: 96px;
}

.pw-logo {
  display: inline-flex;
  align-items: center;
  max-width: min(420px, calc(100vw - 96px));
  border-radius: 999px;
}

.pw-logo img {
  width: auto;
  height: 64px;
}

.pw-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pw-nav ul,
.pw-footer ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pw-nav a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted-ink);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pw-nav a:hover,
.pw-nav .current-menu-item > a,
.pw-nav .current_page_item > a {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 12px 32px -24px rgba(90, 53, 29, 0.8);
}

.pw-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 53, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
}

.pw-menu-toggle span,
.pw-menu-toggle span::before,
.pw-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.pw-menu-toggle span {
  position: relative;
}

.pw-menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.pw-menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.pw-mobile-nav {
  display: none;
}

.pw-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pw-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(119, 75, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  transition: border 180ms ease, background 180ms ease, color 180ms ease;
}

.pw-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pw-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #f29a57, #d96c1c);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 18px 42px -28px rgba(90, 53, 29, 0.85);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pw-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 52px -30px rgba(90, 53, 29, 0.95);
}

.pw-button-secondary,
.pw-button-outline {
  border-color: rgba(119, 75, 40, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.pw-button-light {
  background: #fff;
  color: var(--accent-strong);
}

.pw-button-light-outline {
  border-color: rgba(255, 255, 255, 0.52);
  background: transparent;
  color: #fff;
}

.pw-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 96px;
}

.pw-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at left top, rgba(239, 142, 72, 0.22), transparent 28%),
    radial-gradient(circle at right top, rgba(255, 215, 186, 0.8), transparent 32%),
    linear-gradient(180deg, #fffaf5 0%, #fff6ef 100%);
  content: "";
}

.pw-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

.pw-eyebrow {
  display: inline-flex;
  border: 1px solid rgba(239, 142, 72, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 20px 45px -35px rgba(90, 53, 29, 0.7);
  backdrop-filter: blur(12px);
}

.pw-heading {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(52px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

.pw-subtitle {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted-ink);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.45;
}

.pw-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-ink);
  font-size: 18px;
  line-height: 1.8;
}

.pw-actions,
.pw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pw-chip {
  border: 1px solid rgba(90, 53, 29, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 18px 35px -30px rgba(90, 53, 29, 0.9);
}

.pw-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
  box-shadow: 0 38px 100px -52px rgba(90, 53, 29, 0.7);
  backdrop-filter: blur(12px);
}

.pw-image-frame::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 197, 156, 0.65), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  content: "";
}

.pw-image-frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 29px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(245, 228, 211, 0.92));
}

.pw-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}

.pw-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 228, 202, 0.75), transparent 26%),
    linear-gradient(180deg, rgba(255, 248, 241, 0.6), rgba(255, 248, 241, 0));
  content: "";
}

.pw-section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pw-section-heading h2,
.pw-page-card h1,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--heading);
  letter-spacing: 0;
}

.pw-section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
}

.pw-section-heading p {
  margin: 20px 0 0;
  color: var(--muted-ink);
  font-size: 18px;
  line-height: 1.8;
}

.pw-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pw-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  padding: 24px;
  box-shadow: 0 28px 90px -60px rgba(90, 53, 29, 0.75);
  backdrop-filter: blur(12px);
}

.pw-card-icon,
.pw-highlight-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 21px;
  background: rgba(239, 142, 72, 0.14);
  color: var(--accent-strong);
}

.pw-card h3 {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 26px;
}

.pw-card p {
  flex: 1;
  margin: 16px 0 0;
  color: var(--muted-ink);
  font-size: 16px;
  line-height: 1.7;
}

.pw-card .pw-button {
  align-self: flex-start;
  margin-top: 32px;
}

.pw-donation {
  padding: 24px 0 72px;
}

.pw-donation-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #f29a57 0%, #dd7222 52%, #c86118 100%);
  padding: 48px 40px;
  color: #fff;
  box-shadow: 0 42px 120px -60px rgba(115, 54, 16, 0.9);
}

.pw-donation-panel::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%);
  content: "";
}

.pw-donation-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  align-items: center;
  gap: 40px;
}

.pw-donation h2 {
  margin: 16px 0 0;
  font-family: var(--heading);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.1;
}

.pw-donation p {
  margin: 20px 0 0;
  color: rgba(255, 246, 239, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.pw-page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.pw-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at left top, rgba(239, 142, 72, 0.16), transparent 26%),
    linear-gradient(180deg, #fffaf5 0%, #fff6ef 100%);
  content: "";
}

.pw-page-grid {
  display: grid;
  grid-template-columns: 0.98fr 0.72fr;
  align-items: start;
  gap: 32px;
}

.pw-page-card,
.pw-highlight-card,
.entry-content {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 34px 110px -65px rgba(90, 53, 29, 0.75);
  backdrop-filter: blur(12px);
}

.pw-page-card {
  border-radius: 35px;
  padding: 36px;
}

.pw-page-card h1 {
  margin: 20px 0 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
}

.pw-highlights {
  display: grid;
  gap: 16px;
}

.pw-highlight-card {
  border-radius: 27px;
  padding: 20px;
}

.pw-highlight-card p {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.entry-content {
  width: min(100% - 32px, 900px);
  margin: 40px auto 0;
  border-radius: 28px;
  padding: 32px;
  color: var(--muted-ink);
  font-size: 18px;
  line-height: 1.8;
}

.entry-content:empty {
  display: none;
}

.pw-footer {
  margin-top: 80px;
  background: #5b351f;
  color: #fff4ea;
}

.pw-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 0.9fr;
  gap: 32px;
  padding: 56px 0;
}

.pw-footer-brand {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.07);
  padding: 24px;
  box-shadow: 0 28px 90px -55px rgba(0, 0, 0, 0.65);
}

.pw-footer-brand img {
  width: auto;
  height: 64px;
}

.pw-footer p,
.pw-footer li {
  color: #f7dfcd;
  font-size: 14px;
  line-height: 1.7;
}

.pw-footer h3 {
  margin: 0;
  color: #f6c8a8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pw-footer ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pw-footer a:hover {
  color: #fff;
}

.pw-footer .pw-social a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pw-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  color: #f0d5c2;
  font-size: 14px;
}

.pw-footer-bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1024px) {
  .pw-nav,
  .pw-header-donate {
    display: none;
  }

  .pw-menu-toggle {
    display: inline-flex;
  }

  .pw-mobile-nav.is-open {
    display: block;
  }

  .pw-mobile-nav {
    display: none;
    border-top: 1px solid rgba(119, 75, 40, 0.08);
    background: rgba(255, 250, 244, 0.96);
    padding: 20px 0;
    box-shadow: 0 28px 80px -55px rgba(90, 53, 29, 0.6);
  }

  .pw-mobile-nav ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .pw-mobile-nav a {
    display: block;
    border-radius: 20px;
    padding: 14px 16px;
    color: var(--muted-ink);
    font-weight: 700;
  }

  .pw-mobile-nav a:hover,
  .pw-mobile-nav .current-menu-item > a,
  .pw-mobile-nav .current_page_item > a {
    background: #fff;
    color: var(--ink);
  }

  .pw-hero-grid,
  .pw-donation-grid,
  .pw-page-grid {
    grid-template-columns: 1fr;
  }

  .pw-card-grid,
  .pw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pw-utility-inner > p {
    display: none;
  }

  .pw-utility-inner {
    justify-content: flex-end;
  }

  .pw-logo img {
    height: 54px;
  }

  .pw-heading {
    font-size: 52px;
  }

  .pw-card-grid,
  .pw-footer-grid {
    grid-template-columns: 1fr;
  }

  .pw-donation-panel,
  .pw-page-card,
  .entry-content {
    padding: 28px 22px;
  }

  .pw-actions .pw-button {
    width: 100%;
  }
}

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