/* Palette lifted from the 2015 wildrose.ca NationBuilder theme */
:root {
  --teal: #2a8899;
  --mid-blue: #2a7899;
  --dark-blue: #2a5f99;
  --link-blue: #275e9b;
  --button-blue: #004897;
  --pink: #e24976;
  --pink-bright: #f05281;
  --pink-dark: #c02651;
  --green: #569109;
  --panel: #f8f8f8;
  --grey: #e1e1e1;
  --text: #505054;
  --muted: #827a79;
  --slab: "Roboto Slab", "PMN Caecilia", Rockwell, serif;
  --sans: "Open Sans", Tahoma, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Soft backdrop with faint stripes at the same 115° angle as the hero panel */
body {
  margin: 0;
  background-color: #e8edf2;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(115deg, rgba(42, 95, 153, 0.035) 0 2px, transparent 2px 18px);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 var(--sans);
}

/* The page sits on a white sheet, topped with a stripe in the four tab colours */
.wrap {
  max-width: 1280px;
  margin: 0 auto 2.5em;
  padding-bottom: 0.5em;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 50, 80, 0.06), 0 12px 40px rgba(30, 50, 80, 0.12);
}

.wrap::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--teal) 0 25%, var(--mid-blue) 25% 50%,
    var(--dark-blue) 50% 75%, var(--pink) 75% 100%);
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: #008cba;
}

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 400;
  margin: 0;
}

.width-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 8px;
}

.site-logo img,
.footerLogo {
  display: block;
  max-width: 100%;
  height: auto;
}

.userPanel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.userPanel .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--muted);
  color: #fff;
  font-size: 17px;
}

.userPanel .social:hover {
  background: var(--link-blue);
}

.userPanel .myButton {
  display: inline-block;
  background: var(--button-blue);
  color: #fff;
  padding: 0 20px;
  height: 55px;
  line-height: 55px;
  font-size: 0.85em;
  text-transform: uppercase;
}

.userPanel .myButton:hover {
  background: var(--dark-blue);
}

/* Sign-in drop panel */
.memberBox {
  background: #342e2d;
  color: #afaaaa;
  padding: 24px 32px;
}

.memberBox[hidden] {
  display: none;
}

.testuser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.testuser .note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.85em;
}

.sso {
  display: inline-block;
  color: #fff;
  border-radius: 3px;
  padding: 7px 14px;
}

.sso:hover {
  color: #fff;
  opacity: 0.9;
}

.sso .fa {
  margin-right: 6px;
}

.sso-facebook {
  background: #3b5998;
}

.sso-twitter {
  background: #4cc2ff;
}

/* ---------- Tabbed navigation ---------- */

.tabs {
  margin-bottom: 30px;
}

.transformer-primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.transformer-primary a {
  display: block;
  min-width: 13em;
  padding: 1em;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.transformer-primary a:hover {
  color: #fff;
  filter: brightness(1.1);
}

.tab-platform { background: var(--teal); }
.tab-party    { background: var(--mid-blue); }
.tab-involved { background: var(--dark-blue); }
.tab-donate   { background: var(--pink); }

.menu-toggle {
  display: none;
}

.tab-panel {
  display: none;
  padding: 3em 3.5em;
  color: #fff;
}

.tab-panel.active {
  display: block;
}

#platform     { background: var(--teal); }
#party        { background: var(--mid-blue); }
#get_involved { background: var(--dark-blue); }

.tertiaryNav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

.tertiaryNav a {
  color: #fff;
  display: block;
}

.tertiaryNav a:hover {
  color: #000;
}

.navTitle,
.navTitle a {
  display: block;
  margin-bottom: 0.6em;
  font-family: var(--slab);
  font-size: 1.2em;
  text-transform: uppercase;
}

.navList a {
  line-height: 1.6em;
  margin-bottom: 0.3em;
  font-size: 0.95em;
}

.involvedNav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5em;
}

.involvedNav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--slab);
  font-size: 1.15em;
}

.involvedNav .fa {
  font-size: 44px;
}

.involvedNav a:hover {
  color: #000;
}

/* ---------- Feature slider + signup ---------- */

.featureBox {
  position: relative;
}

.feature-slides {
  position: relative;
  aspect-ratio: 1200 / 610;
  overflow: hidden;
  background: var(--dark-blue);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 7%;
  color: #fff;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide:hover {
  color: #fff;
}

.slide-1 { background: linear-gradient(115deg, var(--dark-blue) 0%, var(--dark-blue) 55%, var(--mid-blue) 55%, var(--teal) 100%); }
.slide-2 { background: linear-gradient(115deg, var(--teal) 0%, var(--teal) 55%, #3fa1b2 55%, #5bb7c4 100%); }
.slide-3 { background: linear-gradient(115deg, #1f4a7a 0%, #1f4a7a 55%, var(--dark-blue) 55%, var(--mid-blue) 100%); }
.slide-4 { background: linear-gradient(115deg, var(--pink-dark) 0%, var(--pink) 55%, #ea6d92 55%, #f2a0b8 100%); }

.slide-kicker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 2.4vw, 22px);
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.85;
}

.slide-title {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(32px, 6.5vw, 84px);
  line-height: 1;
  margin: 0.15em 0 0.4em;
  max-width: 50%;
}

.slide-cta {
  align-self: flex-start;
  background: var(--pink-bright);
  padding: 0.6em 1.2em;
  font-size: clamp(12px, 1.4vw, 17px);
  text-transform: uppercase;
  font-weight: 600;
}

.slide-4 .slide-cta {
  background: var(--dark-blue);
}

.slide-dots {
  position: absolute;
  left: 7%;
  bottom: 6%;
  display: flex;
  gap: 8px;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slide-dots button.active {
  background: #fff;
}

.launchform .form-wrap {
  position: absolute;
  top: 5%;
  right: 2.5%;
  width: 30%;
  padding: 20px 25px;
  background: var(--panel);
}

.launchform label {
  display: block;
  font-size: 0.85em;
  margin-bottom: 2px;
}

.launchform input[type="text"],
.launchform input[type="email"] {
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font: inherit;
}

.submit-button {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: 2px;
  background: var(--pink-bright);
  color: #fff;
  font: 600 1em var(--sans);
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--pink-dark);
}

.form-thanks {
  margin: 8px 0 0;
  color: var(--green);
  font-weight: 600;
  text-align: center;
}

.socialFront {
  text-align: center;
}

.socialFront p {
  margin: 0;
  line-height: 2.4em;
  color: #4d4d4d;
}

.socialFront .sso {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85em;
}

/* ---------- Action tiles ---------- */

.action-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.action-nav li {
  border: 1px solid #fff;
}

.action-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2.5em 0.5em;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.action-nav a:hover {
  color: #fff;
  filter: brightness(1.12);
}

.act-volunteer a { background: var(--teal); }
.act-lawnsign a  { background: var(--mid-blue); }
.act-member a    { background: var(--dark-blue); }
.act-donate a    { background: var(--pink); }

.action-nav .fa {
  font-size: 1.3em;
}

/* ---------- Two-column blocks ---------- */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.block-title {
  margin: 0;
  padding-left: 0.5em;
  color: #fff;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 2em;
}

.block-title a {
  color: #fff;
}

.darkgreen  { background: var(--dark-blue); }
.lightgreen { background: var(--mid-blue); }

.blogExcerpt {
  padding: 1em 1.5em;
}

.blogPost {
  margin-bottom: 1.5em;
}

.blogThumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: 10px auto 14px;
  width: 90%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 56px;
}

.thumb-a { background: linear-gradient(135deg, var(--dark-blue), var(--teal)); }
.thumb-b { background: linear-gradient(135deg, var(--mid-blue), #5bb7c4); }
.thumb-c { background: linear-gradient(135deg, var(--pink-dark), var(--pink-bright)); }

.blogLink {
  font-family: var(--slab);
  margin-bottom: 5px;
}

.blogLink a {
  font-size: 1.35em;
  line-height: 1.15;
}

.blog_teaser {
  font-size: 0.85em;
  line-height: 1.4;
}

.blogread {
  text-align: right;
  margin-bottom: 2em;
}

.blogread a {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 1em;
  margin-bottom: 4em;
}

.learn-inner,
.footer-actions-inner {
  padding: 1em 1.5em;
}

.bottomNav {
  list-style: none;
  margin: 1em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.bottomNav a {
  display: block;
  font-size: 0.8em;
  color: var(--mid-blue);
  line-height: 1.7;
}

.subBottomTitle {
  display: block;
  margin-bottom: 0.6em;
  color: var(--link-blue);
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-actions-inner {
  display: flex;
  gap: 1.5em;
}

.footer-text {
  flex: 1.2;
}

.footer-text h3 {
  color: var(--link-blue);
  font-size: 1.6em;
  margin: 0.3em 0 0.5em;
}

.footer-links {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 1.5em 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em 0.5em;
  text-align: center;
}

.footer-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85em;
}

.footer-links .fa {
  font-size: 30px;
  color: #9fadbc;
}

.footer-links a:hover,
.footer-links a:hover .fa {
  color: var(--pink);
}

.footer-left {
  margin: 2em 0 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--grey);
  font-size: 0.85em;
  color: var(--muted);
}

/* ---------- Parody homepage ---------- */

html {
  scroll-behavior: smooth;
}

.page-section {
  margin-bottom: 2.5em;
  scroll-margin-top: 16px;
}

/* Photo sits on the right; a diagonal blue panel covers the left for the text */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 40vw, 500px);
  color: #fff;
  background: var(--dark-blue);
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, var(--dark-blue) 0%, var(--dark-blue) 44%, rgba(42, 120, 153, 0.55) 44%, rgba(42, 136, 153, 0) 56%);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 48%;
  padding: 3em 0 3em 7%;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 70px);
  line-height: 1;
  margin: 0.15em 0 0.35em;
}

.hero-text p {
  max-width: 34em;
  margin: 0 0 1.6em;
  font-size: 1.1em;
  opacity: 0.92;
}

.hero .slide-cta,
.cta-band .slide-cta {
  display: inline-block;
  color: #fff;
}

.hero .slide-cta:hover,
.cta-band .slide-cta:hover {
  background: var(--pink-dark);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  margin-top: 0;
  margin-bottom: 2.5em;
  background: var(--panel);
}

.hero-stats div {
  padding: 1em;
  border: 1px solid #fff;
  text-align: center;
}

.hero-stats dt {
  font-size: 0.8em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  margin: 0;
  font-family: var(--slab);
  font-size: 1.8em;
  color: var(--pink);
}

.section-intro {
  max-width: 46em;
  margin: 1.2em 1.5em;
  font-size: 1.05em;
}

.feature-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-tiles li {
  border: 1px solid #fff;
  padding: 2em 1.2em;
  color: #fff;
  text-align: center;
}

.feature-tiles .act-volunteer { background: var(--teal); }
.feature-tiles .act-lawnsign  { background: var(--mid-blue); }
.feature-tiles .act-member    { background: var(--dark-blue); }
.feature-tiles .act-donate    { background: var(--pink); }

.feature-tiles .fa {
  font-size: 36px;
}

.feature-tiles h3 {
  margin: 0.6em 0 0.4em;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-tiles p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.92;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  padding: 1.5em;
}

.quotes blockquote {
  margin: 0;
  padding-left: 1em;
  border-left: 4px solid var(--pink);
}

.quotes p {
  margin: 0 0 0.6em;
  font-family: var(--slab);
  font-size: 1.3em;
  line-height: 1.3;
  color: var(--link-blue);
}

.quotes cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85em;
}

.quotes cite span {
  font-weight: 400;
  color: var(--muted);
}

.cta-band {
  margin-bottom: 2.5em;
  padding: 3em 7%;
  text-align: center;
  color: #fff;
  background: var(--teal);
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.cta-band p {
  max-width: 40em;
  margin: 0 auto 1.6em;
  font-size: 1.05em;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  padding: 1.5em;
}

.contact-text h3 {
  color: var(--link-blue);
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

.contact-details {
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 0.7em;
}

.contact-details .fa {
  width: 1.6em;
  color: var(--pink);
}

.contact-form {
  background: var(--panel);
  padding: 20px 25px;
}

.contact-form label {
  display: block;
  font-size: 0.85em;
  margin-bottom: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 10px 0 0;
  color: var(--green);
  font-weight: 600;
  text-align: center;
}

.form-status.error {
  color: var(--pink-dark);
}

.parody-footer {
  margin-top: 0;
}

.parody-footer .disclaimer {
  max-width: 46em;
  margin: 1em 0 0;
  font-size: 0.55em;
  color: var(--muted);
}

@media (max-width: 900px) {
  /* Stack the photo above the text */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero::before {
    display: none;
  }

  .hero-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-text {
    max-width: none;
    padding: 2em 7% 2.5em;
  }

  .feature-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .quotes,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-layout,
  .quotes {
    padding: 1.5em 0;
  }

  .section-intro {
    margin: 1.2em 0;
  }

  .parody-footer .footerLogo {
    margin: 0 auto;
  }

  .parody-footer .disclaimer {
    text-align: center;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .launchform .form-wrap {
    position: static;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .tertiaryNav {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .wrap {
    margin-bottom: 0;
    box-shadow: none;
  }

  .width-container {
    width: auto;
    margin: 0 16px;
  }

  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    padding: 1em;
    border: 0;
    background: var(--teal);
    color: #fff;
    font: 600 1em var(--sans);
    text-transform: uppercase;
    text-align: right;
    cursor: pointer;
  }

  .transformer-primary {
    display: none;
    flex-direction: column;
  }

  .transformer-primary.open {
    display: flex;
  }

  .transformer-primary a {
    min-width: 0;
    text-align: left;
  }

  .tab-panel {
    padding: 2em 1.5em;
  }

  .slide-title {
    max-width: 90%;
  }

  .action-nav ul {
    grid-template-columns: 1fr 1fr;
  }

  .blogThumb {
    display: none;
  }

  .bottomNav,
  .footer-text {
    display: none;
  }

  .footer-left {
    text-align: center;
  }
}
