/* ==========================================================
   PROTECT MARANA SITE TEMPLATE
   Civic desert-modern WordPress/Colibri override CSS
   Author: RU Ready / ChatGPT working draft
   Notes:
   - Built as a static prototype first.
   - Later, sections can be split into Colibri HTML blocks.
   - Replace image URLs with WordPress Media Library URLs.
   ========================================================== */

:root {
  --pm-navy: #061522;
  --pm-navy-2: #0b2033;
  --pm-ink: #142334;
  --pm-cream: #f5efe4;
  --pm-paper: #fbf6ec;
  --pm-paper-2: #efe5d6;
  --pm-rust: #a94731;
  --pm-rust-2: #c9573a;
  --pm-gold: #d9a441;
  --pm-blue: #3f7f99;
  --pm-sage: #7d8f68;
  --pm-white: #ffffff;
  --pm-muted: #6d6b64;
  --pm-border: rgba(20, 35, 52, 0.16);
  --pm-shadow: 0 18px 45px rgba(6, 21, 34, 0.18);
  --pm-radius: 12px;
  --pm-radius-lg: 22px;
  --pm-max: 1180px;
}

/* Global reset scoped for easier WordPress drop-in */
.pm-site,
.pm-site * {
  box-sizing: border-box;
}

.pm-site {
  margin: 0;
  color: var(--pm-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 164, 65, 0.10), transparent 28rem),
    linear-gradient(180deg, var(--pm-paper), var(--pm-cream));
  font-family: "Inter", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.pm-site img {
  display: block;
  max-width: 100%;
}

.pm-site a {
  color: inherit;
  text-decoration: none;
}

.pm-container {
  width: min(var(--pm-max), calc(100% - 40px));
  margin: 0 auto;
}

.pm-kicker {
  color: var(--pm-rust);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}

.pm-title,
.pm-display {
  font-family: "Oswald", "Archivo Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 0.96;
}

.pm-section-title {
  font-family: "Oswald", "Archivo Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.pm-section-lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 760px;
  margin: 0 auto 34px;
  color: rgba(20, 35, 52, 0.82);
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 3px;
  border: 2px solid transparent;
  background: var(--pm-rust);
  color: var(--pm-white);
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.pm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(169, 71, 49, 0.25);
  background: var(--pm-rust-2);
}

.pm-btn.pm-btn-outline {
  background: rgba(6, 21, 34, 0.55);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--pm-white);
}

.pm-btn.pm-btn-light {
  background: var(--pm-paper);
  border-color: rgba(6, 21, 34, 0.15);
  color: var(--pm-navy);
}

.pm-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  box-shadow: 0 10px 28px rgba(6, 21, 34, 0.08);
}

/* ==========================================================
   Top Navigation
   ========================================================== */

.pm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 21, 34, 0.96);
  color: var(--pm-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.pm-nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.pm-logo {
  display: grid;
  gap: 1px;
  line-height: 0.9;
  font-family: "Oswald", "Archivo Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pm-logo-mark {
  width: 74px;
  height: 17px;
  position: relative;
  margin-bottom: 2px;
}

.pm-logo-mark::before,
.pm-logo-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  height: 4px;
  width: 42px;
  background: var(--pm-rust-2);
  transform-origin: left center;
}

.pm-logo-mark::before {
  left: 0;
  transform: rotate(-25deg);
}

.pm-logo-mark::after {
  left: 32px;
  transform: rotate(25deg);
}

.pm-logo-small {
  font-size: 1.18rem;
  font-weight: 900;
}

.pm-logo-large {
  font-size: 1.5rem;
  font-weight: 900;
}

.pm-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
}

.pm-nav-links a {
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  opacity: 0.9;
}

.pm-nav-links a:hover,
.pm-nav-links a.pm-active {
  color: var(--pm-gold);
  opacity: 1;
}

.pm-nav .pm-btn {
  min-height: 42px;
  padding: 10px 18px;
}

/* ==========================================================
   Hero
   ========================================================== */

.pm-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: var(--pm-white);
  background:
    linear-gradient(90deg, rgba(6, 21, 34, 0.82), rgba(6, 21, 34, 0.45), rgba(6, 21, 34, 0.62)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  overflow: hidden;
}

.pm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 95%, rgba(6,21,34,.8)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.03) 0 1px,
      transparent 1px 84px
    );
  pointer-events: none;
}

.pm-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 130px;
  background: linear-gradient(0deg, var(--pm-paper), rgba(245, 239, 228, 0));
}

.pm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 90px 0 160px;
}

.pm-hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 10rem);
  text-shadow: 0 10px 30px rgba(0,0,0,.38);
}

.pm-hero-subtitle {
  margin: 14px 0 28px;
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  color: var(--pm-gold);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  max-width: 620px;
}

.pm-hero-text {
  font-size: 1.1rem;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.pm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================
   Intro / Pillars
   ========================================================== */

.pm-intro {
  padding: 70px 0 48px;
  text-align: center;
}

.pm-intro-copy {
  max-width: 800px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

.pm-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.pm-pillar {
  background: var(--pm-navy);
  color: var(--pm-white);
  padding: 34px 26px;
  min-height: 230px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.pm-pillar::after {
  content: "";
  position: absolute;
  inset: auto -40px -75px auto;
  width: 150px;
  height: 150px;
  background: rgba(217, 164, 65, 0.15);
  border-radius: 999px;
}

.pm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--pm-gold);
}

.pm-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.pm-pillar h3,
.pm-issue-card h3,
.pm-story-card h3,
.pm-action-card h3 {
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 10px;
}

.pm-pillar p {
  margin: 0;
  color: rgba(255,255,255,.84);
}

/* ==========================================================
   History Preview
   ========================================================== */

.pm-roots {
  padding: 40px 0 74px;
  text-align: center;
}

.pm-story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 34px 0 34px;
}

.pm-story-card {
  overflow: hidden;
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(6,21,34,.08);
}

.pm-story-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.pm-story-card:nth-child(2) img,
.pm-story-card:nth-child(3) img {
  filter: sepia(0.35) saturate(0.65) contrast(1.03);
}

.pm-story-card-body {
  padding: 20px;
}

.pm-story-card p {
  margin: 0;
  color: rgba(20,35,52,.78);
}

/* ==========================================================
   Fight For Band
   ========================================================== */

.pm-fight {
  padding: 70px 0 74px;
  background:
    linear-gradient(180deg, rgba(6, 21, 34, 0.98), rgba(6, 21, 34, 0.94)),
    radial-gradient(circle at 10% 20%, rgba(217,164,65,.18), transparent 30rem);
  color: var(--pm-white);
  text-align: center;
}

.pm-fight-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.pm-fight-item {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: start;
}

.pm-fight-item .pm-icon {
  color: var(--pm-gold);
  margin: 0;
}

.pm-fight-item h3 {
  margin: 0;
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ==========================================================
   CTA Signup Band
   ========================================================== */

.pm-cta {
  position: relative;
  color: var(--pm-white);
  background:
    linear-gradient(90deg, rgba(6,21,34,.84), rgba(6,21,34,.50)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  padding: 86px 0;
}

.pm-cta .pm-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
}

.pm-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
}

.pm-cta p {
  max-width: 520px;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
}

.pm-mini-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: rgba(255,255,255,.13);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.pm-mini-form input,
.pm-form input,
.pm-form textarea {
  width: 100%;
  border: 1px solid rgba(20,35,52,.16);
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 3px;
  background: rgba(255,255,255,.92);
  color: var(--pm-ink);
  font: inherit;
}

.pm-mini-form input::placeholder,
.pm-form input::placeholder,
.pm-form textarea::placeholder {
  color: rgba(20,35,52,.54);
}

/* ==========================================================
   History Timeline Page Section
   ========================================================== */

.pm-history-page {
  padding: 80px 0;
  background:
    linear-gradient(rgba(251,246,236,.94), rgba(251,246,236,.94)),
    radial-gradient(circle at 90% 20%, rgba(169,71,49,.12), transparent 30rem);
}

.pm-history-header {
  text-align: center;
  margin-bottom: 56px;
}

.pm-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.pm-timeline::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(var(--pm-rust), rgba(169,71,49,.25));
  border-radius: 999px;
}

.pm-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr 260px;
  gap: 38px;
  align-items: center;
  margin-bottom: 28px;
}

.pm-timeline-year {
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: right;
  color: var(--pm-navy);
}

.pm-timeline-dot {
  position: absolute;
  left: 159px;
  width: 26px;
  height: 26px;
  background: var(--pm-paper);
  border: 4px solid var(--pm-rust);
  border-radius: 999px;
  z-index: 2;
}

.pm-timeline-copy {
  padding-left: 10px;
}

.pm-timeline-copy h3 {
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.pm-timeline-copy p {
  margin: 0;
  color: rgba(20,35,52,.78);
}

.pm-timeline-img {
  height: 145px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(6,21,34,.12);
  filter: sepia(.18) saturate(.82) contrast(1.03);
}

/* ==========================================================
   Issues Page Section
   ========================================================== */

.pm-issues-page {
  padding: 80px 0 92px;
  background: var(--pm-paper);
  text-align: center;
}

.pm-issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.58);
  box-shadow: var(--pm-shadow);
  margin-top: 36px;
}

.pm-issue-card {
  min-height: 250px;
  padding: 38px 30px;
  border-right: 1px solid var(--pm-border);
  border-bottom: 1px solid var(--pm-border);
  background: rgba(255,255,255,.6);
}

.pm-issue-card:nth-child(3n) {
  border-right: 0;
}

.pm-issue-card:nth-child(n+4) {
  border-bottom: 0;
}

.pm-issue-card .pm-icon {
  color: var(--pm-navy);
  margin-bottom: 14px;
}

.pm-issue-card p {
  margin: 0;
  color: rgba(20,35,52,.78);
}

/* ==========================================================
   Get Involved Page Section
   ========================================================== */

.pm-involved-page {
  padding: 80px 0;
  background:
    linear-gradient(rgba(245,239,228,.93), rgba(245,239,228,.93)),
    url("https://images.unsplash.com/photo-1516937941344-00b4e0337589?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.pm-involved-header {
  text-align: center;
  margin-bottom: 38px;
}

.pm-action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.pm-action-card {
  padding: 22px 16px;
  text-align: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--pm-border);
  border-radius: 9px;
  min-height: 160px;
}

.pm-action-card .pm-icon {
  width: 40px;
  height: 40px;
  color: var(--pm-navy);
  margin-bottom: 10px;
}

.pm-action-card h3 {
  font-size: 0.98rem;
}

.pm-action-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(20,35,52,.72);
}

.pm-form-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.pm-form {
  padding: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  box-shadow: var(--pm-shadow);
}

.pm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pm-form textarea {
  min-height: 150px;
  resize: vertical;
  grid-column: 1 / -1;
}

.pm-checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 4px 0 8px;
  font-size: 0.9rem;
}

.pm-checkbox-row label,
.pm-consent label {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
}

.pm-checkbox-row input,
.pm-consent input {
  margin-top: 4px;
}

.pm-consent {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: rgba(20,35,52,.72);
  margin-top: 4px;
}

.pm-form .pm-btn {
  grid-column: 1 / -1;
  width: 100%;
}

.pm-form-image {
  border-radius: 12px;
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--pm-shadow);
}

.pm-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   Footer
   ========================================================== */

.pm-footer {
  background: var(--pm-navy);
  color: var(--pm-white);
  padding: 52px 0 28px;
}

.pm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .9fr;
  gap: 42px;
  align-items: start;
}

.pm-footer p,
.pm-footer li {
  color: rgba(255,255,255,.78);
}

.pm-footer h3 {
  font-family: "Oswald", "Archivo Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 12px;
}

.pm-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-footer li {
  margin: 8px 0;
}

.pm-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pm-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  font-weight: 900;
}

.pm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .85rem;
  color: rgba(255,255,255,.62);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 980px) {
  .pm-nav-inner {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .pm-nav-links {
    display: none;
  }

  .pm-hero {
    min-height: 650px;
  }

  .pm-pillar-grid,
  .pm-issue-grid,
  .pm-form-wrap,
  .pm-cta .pm-container {
    grid-template-columns: 1fr;
  }

  .pm-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-fight-grid,
  .pm-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-issue-card,
  .pm-issue-card:nth-child(3n),
  .pm-issue-card:nth-child(n+4) {
    border-right: 0;
    border-bottom: 1px solid var(--pm-border);
  }

  .pm-issue-card:last-child {
    border-bottom: 0;
  }

  .pm-timeline::before {
    left: 18px;
  }

  .pm-timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 54px;
  }

  .pm-timeline-year {
    text-align: left;
  }

  .pm-timeline-dot {
    left: 7px;
    top: 2px;
  }

  .pm-timeline-img {
    height: 210px;
  }

  .pm-mini-form {
    grid-template-columns: 1fr;
  }

  .pm-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .pm-container {
    width: min(100% - 28px, var(--pm-max));
  }

  .pm-hero-content {
    padding: 72px 0 130px;
  }

  .pm-hero h1 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
  }

  .pm-hero-actions,
  .pm-footer-bottom {
    flex-direction: column;
  }

  .pm-story-grid,
  .pm-fight-grid,
  .pm-action-grid,
  .pm-form-grid {
    grid-template-columns: 1fr;
  }

  .pm-cta,
  .pm-intro,
  .pm-roots,
  .pm-fight,
  .pm-history-page,
  .pm-issues-page,
  .pm-involved-page {
    padding-left: 0;
    padding-right: 0;
  }
}
