/*
Theme Name: Shea Peach
Author: Built with Purpose
Description: Run a powerful grassroots campaign with Shea, a bold and accessible WordPress theme designed for independent candidates and community organizers.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

.darkgrey {
  background-color: #333333;
  color: white;
}
.lightgrey {
  background-color: #D9D9D9;
  color: #333333;
}
.purple {
  background-color: #9C89B8;
  color: white;
}
.blue {
  background-color: #1989AC;
  color: white;
}
.orange {
  background-color: #F4A261;
  color: white;
}
.peach {
  background-color: #FEF5EA;
  color: #333333;
}
.white {
  background-color: white;
  color: #333333;
}
.bg-peach {
 background-color: #FEF5EA;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}
body{
  font-family: "Public Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
img.custom-logo {
	width: auto !important;
  height: 50px !important;
}
header {
  background-color: #FEF5EA;
}
header .col {
  padding: 0;
}
header .container {
  padding-left: 0px;
  padding-right: 0px;
}
.site-title {
  margin-bottom: 0;
}
.navbar {
    float: right;
}
.navbar-nav li {
  line-height: 34px;
}
/* ===== Base Dropdown Styling ===== */
.navbar-nav,
.navbar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  position: relative;
}

.navbar-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FEF5EA;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  border-radius: 5px;
}

@media (min-width: 768px) {
  .navbar-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 768px) {
  .wp-block-columns.hero {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .wp-block-columns.hero > .wp-block-column {
    flex: 1 1 50% !important; /* two columns equal width */
    max-width: 50% !important;
  }
}


/* ===== Always show dropdowns on mobile ===== */
@media (max-width: 767px) {
  .mobile-menu .navbar-nav li ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
  }

  .mobile-menu .navbar-nav li ul li {
    padding: 0 0;
  }
}

/* ===== Optional cleanup ===== */
.navbar-nav li ul li a {
  display: block;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 16px;
}

.navbar-nav .menu-item.featured-link a {
  font-family: "Lexend Deca", sans-serif;
  background-color: #F4A261;
  color: white !important;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.2s ease-in-out;
}
.navbar-nav .menu-item.featured-link {
  margin-top: 15px;
}
.navbar-nav .menu-item.featured-link a:hover {
  background-color: #e68e45;
}
.navbar-nav .menu-item.featured-link-2 a {
  font-family: "Lexend Deca", sans-serif;
  background-color: #1989AC;
  color: white !important;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.2s ease-in-out;
}
.navbar-nav .menu-item.featured-link-2 {
  margin-top: 15px;
}
.navbar-nav .menu-item.featured-link-2 a:hover {
  background-color: #03779a;
}
.has-pale-pink-background-color {
  background-color: transparent !important;
}
.my-hero {
  background-color: #1989AC;
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}
.wp-block-button__link {
  font-family: "Lexend Deca", sans-serif;
  color: #fff;
  background-color: #F4A261;
  border-radius: 5px;
  font-weight: 600;
  padding: 10px 25px;
  font-size: 16px;
  transition: 0.2s ease-in-out;
}
.wp-block-button__link:hover {
  background-color: #e68e45;
}
.field-wrap input[type="submit"] {
  font-family: "Lexend Deca", sans-serif !important;
  color: #fff !important;
  background-color: #1989AC;
  border-radius: 5px !important;
  font-weight: 600 !important;
  padding: 13px 25px !important;
  font-size: 16px !important;
  border: none !important;
  width: 100% !important;
  display: inline-block;
  transition: background-color 0.2s ease-in-out !important;
  -webkit-transition: background-color 0.2s ease-in-out !important;
  -moz-transition: background-color 0.2s ease-in-out !important;
}
.field-wrap input[type="submit"]:hover {
  background-color: #03779a;
  transition: background-color 0.2s ease-in-out !important;
  -webkit-transition: background-color 0.2s ease-in-out !important;
  -moz-transition: background-color 0.2s ease-in-out !important;
}
.hero {
  background-color: #FEF5EA;
  flex-direction: column-reverse;
  margin-bottom: 0;
  margin-bottom: 10px;
  padding-top: 0 !important;
}
.hero h1 {
  font-size: 2em;
  margin-bottom: 15px;
}
.hero h2 {
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 30px;
}
.hero img {
  object-fit: cover;
  aspect-ratio: auto !important;
}
h2.home-header {
  font-size: 1.7em;
}
.signup-pattern h2 {
  font-size: 1.7em;
}
.wp-block-image img {
  border-radius:5px;
}
.hero-text {
  font-size: 1.5rem;
}
figure {
  margin-bottom: 0;
}
:where(.wp-block-columns) {
  margin-bottom: 0;
}
.section-inner {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.7rem;
  padding-bottom: 2.7rem;
}
details {
  transition: max-height 0.4s ease;
}

details[open] {
  max-height: 500px;
}

details.is-animating {
  transition: max-height 0.4s ease;
}
summary::marker {
  float: right;
  content: "+ ";
}
.wp-block-details summary {
  cursor: pointer;
  color: #F4A261;
  font-weight: 800;
  font-size: 22px;
}



.wp-block-heading {
  margin-bottom: 15px;
}
.wp-block-social-links {
  margin-top: 20px;
}

/* Base state: all fields except checkboxes/radios */
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select,
.nf-element {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 500;
  color: #4d4d4d;
  border: 3px solid transparent;
  padding: 0.75em;
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out;
}

/* Focus state: match GiveWP orange border */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input:not([type]):focus,
textarea:focus,
select:focus,
.iti__tel-input:focus,
.nf-element:focus {
  border-color: #F4A261;
  outline: none;
  box-shadow: none;
}
.label-right .checkbox-wrap .nf-field-element {
  width: 30px !important;
}



/* Footer at bottom */
html, body {
  height: 100%; /* Full viewport height */
  margin: 0; /* Remove default margin */
}

body {
  display: flex;
  flex-direction: column; /* Stack children (header, main, footer) vertically */
  min-height: 100vh; /* Ensure the body takes at least the full height of the viewport */
}

main {
  flex-grow: 1; /* The main content will take up the available space */
}
/* Footer at bottom */
ul.modal-donate {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  gap: 10px;
}
.modal-donate a {
  font-family: "Lexend Deca", sans-serif;
  background-color: #F4A261;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  width: 100%;
  display: block;
  padding: 15px 0;
  font-size: 28px;
  border-radius: 5px;
  transition: 0.2s ease-in-out;
}
.modal-donate a:hover {
  background-color: #e68e45;
}





/* Forms */

/* Base form styles for consistency */
form input,
form textarea,
form select {
  font-family: "Lexend Deca", sans-serif;
  width: 100%;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  appearance: none; /* Removes native styles (esp. dropdown arrow in WebKit) */
  -webkit-appearance: none;
  -moz-appearance: none;
}
.nf-form-fields-required {
  display: none;
}
.nf-error.listimage-wrap .nf-field-element ul, .nf-error .ninja-forms-field {
  border: 3px solid #F4A261 !important;
}
.nf-error-msg {
  font-size: 14px;
}


/* Optional: add arrow back to select */
form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem auto;
  padding-right: 2rem;
}

/* Focus state for accessibility */
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #1989AC;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}


/* Grid for homepage donate panel */
.home-donate-grid.is-layout-grid {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  margin-top: 30px;
}
.home-donate-grid .wp-block-button__link {
  font-family: "Lexend Deca", sans-serif;
  background-color: #F4A261;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 25px 0;
  border-radius: 5px;
  transition: 0.2s ease-in-out;
}
.home-donate-grid .wp-block-button__link:hover {
  background-color: #e48c45;
}
.home-donate-grid .wp-block-buttons > .wp-block-button {
  width: 100%;
}
footer.py-4 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.footer-logo {
  width: auto;
  height: 90px;
  margin: auto;
  display: block;
  margin-bottom: 15px;
  max-width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-direction: row; /* default desktop layout */
}
footer p {
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  margin-top: 30px;
}
.meet-order {
  order: 1;
}
footer i {
  font-size: 20px;
  color: #1989AC;  
  transition: 0.2s ease-in-out;
}
footer i:hover {
  color: #0056b3;
}

.accordion-toggle + .wp-block-group {
  max-height: 0;
  overflow: hidden;.secondary-footer a
  transition: max-height 0.4s ease;
}
.accordion-toggle + .wp-block-group.open {
  max-height: 500px; /* Adjust if needed */
}

h2.accordion-toggle {
  color: #F4A261;
  position: relative;
  padding-left: 1em;
  font-size: 1.5em;
  transition: 0.3s ease;
}
h2.accordion-toggle:hover {
  color: #e48c45;
}
h2.accordion-toggle::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -7px;
  font-weight: bold;
  font-size: 1.2em; /* slightly larger if you want emphasis */
  line-height: 1.2; /* aligns better vertically */
}
.accordion-content {
  padding-left: 25px;
}
.quote {
  background-color: #f0fbfd;
  padding: 30px;
  border-radius: 5px;
  font-size: 18px;
  margin-top: 35px;
  margin-bottom: 20px;
}
.quote img {
  margin-bottom: 35px;
}
.wp-block-quote > cite {
  font-family: "Lexend Deca", sans-serif;
}
.nf-form-cont {
  background-color:#cff3fc;
  padding: 30px 40px;
  border-radius: 5px;
}
.contact-info p {
    margin-bottom: 0.5rem;
}
.nf-field-label label {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 500 !important;
  font-size: 13px;
  color: #1989AC;
}

.root-data-givewp-embed iframe {
  border-radius: 5px;
}
.page-not-found {
  text-align: center;
  padding: 50px;
  background-color: #FEF5EA;
}
.page-not-found h1 {
  font-size: 36px;
  color: #F4A261;
  margin-bottom: 15px;
}
.page-not-found p {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
}
.page-not-found a {
  background-color: #1989AC; 
  color: #ffffff;
  font-family: "Lexend Deca", sans-serif;
  padding:10px 25px;
  border-radius:4px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.2s ease-in-out;
  text-decoration: none;
}
.page-not-found a:hover {
  background-color: #067a9e; 
}

/* MODAL */

/* Modal backdrop */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s 0.4s; /* Add transition for visibility */
}

/* Modal visible */
.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible; /* Make it visible */
  transition: opacity 0.4s ease; /* Remove the delay on visibility */
}

/* Modal fading out */
.modal.fade-out {
  opacity: 0;
  visibility: hidden; /* Hide it after fade */
  transition: opacity 0.4s ease, visibility 0s 0.4s; /* Make visibility change after fade */
}

/* Modal box */
.modal-content {
  display: block;
  background-color: #FEF5EA;
  padding: 2rem;
  border-radius: 5px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.4s ease both; /* Use a simple fade-in without the up-shift */
}

/* Modal header */
.modal-header {
  display: flex;
  justify-content: flex-end;
}

/* Close button */
#closeModal {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
  float: right;
  margin-top: -10px;
}

#closeModal:hover {
  color: #ffdddd;
}

/* Modal body */
.modal-body {
  text-align: center;
  margin-top: 1rem;
}

.modal-content h2 {
  color: #F4A261;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.modal-content p {
}

/* Opening animation without vertical shift */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.highlighted-amount a {
  background-color: #1989AC !important;
} 
.highlighted-amount a:hover {
  background-color: #067a9e !important;
}
.nf-field input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 22px !important;
  height: 20px !important;
  margin: 0 10px 0 0;
  border-radius: 5px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}
.nf-field input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid #1989AC;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.nf-response-msg p {
  font-family: "Lexend Deca", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}
.pattern-signup-text {
  align-content: center;
}
.action-header h1 {
  font-size: 2.5em;
  line-height: 1em;
}










@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column; /* stacks vertically on mobile */
    align-items: center;
  }
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.secondary-footer {
  width: 100%;
  max-width: 100%;
  font-family: "Public Sans", sans-serif;
}
.secondary-footer .row {
  text-align: center;
  padding: 14px 0;
  color: #F4A261;
}
.secondary-footer a {
  color: #FFF;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
.secondary-footer a:hover {
  text-decoration: underline;
}
.secondary-footer small {
  font-family: "Lexend Deca", sans-serif;
  display: block;
  font-size: .775em !important;
  font-weight: 300;
  line-height: 1.2em;
  margin-bottom: 0;
  padding: 0 25px;
}
.home-issues-more a {
  color: #333;
  margin-top: 20px;
  display: block;
  font-weight: 700;
  margin-left: 25px;
  transition: 0.2s ease-in-out;
}
.home-issues-more a:hover {
  color: #F4A261;
}
.home-issues-more {
  margin-bottom: 0;
}
.dontate-section-margin-bottom .section-inner {
  padding-bottom: 2rem;
}
.dontate-section-margin-top {
  margin-top: -10px;
}
.dontate-section-margin-top .section-inner {
  padding-top: 0;
  padding-bottom: 3rem;
}
.givewp-donation-form__steps-body {
  min-height: auto;
}
body.single-give_forms iframe {
  padding: 15px;
}
body.single-give_forms footer.py-4 {
  border-top: #eee 1px solid;
}




/* Base Reset */
.mobile-menu,
#menu-toggle span {
  transition: all 0.3s ease;
}

/* Hide mobile nav by default */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #FEF5EA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.4s ease;
  text-align: center;
}

/* Show mobile menu when active */
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}
.menu-item a {
  font-family: "Lexend Deca", sans-serif;
  text-decoration:none;
  color: #333;
  font-weight: 600;
  font-size: 1.1em;
  transition:  0.3s ease;
}
.menu-item a:hover {
  color: #F4A261;
}
.footer-nav .menu-item a {
  color: #666666;
  font-size: 0.9em;
}
.footer-nav .menu-item a:hover {
  color: #333;
}
.footer-nav li {
  line-height: 16px;
}
.footer-disclaimer {
  border: 1px solid #333;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #333;
  padding: 25px 45px;
}
.footer-disclaimer p {
  font-size: 10px;
  line-height: 14px;
  margin-bottom: 0;
  font-weight: 400;
  margin-top: 0;
}


/* Lock scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hamburger button styles */
#menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

#menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #F4A261;
  transition: all 0.4s ease;
}

/* Animate hamburger into X */
body.menu-open #menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open #menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open #menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop nav visible only on lg+ */
.desktop-nav {
  display: none;
}
@media (min-width: 768px) {
  .desktop-nav {
    display: block !important;
  }
  .hamburger {
    display: none !important;
  }
  .navbar-nav {
    flex-direction: initial;
  }
}


@media only screen and (min-width : 480px) {
  
.footer-disclaimer {
  font-size: 12px;
}
}

@media only screen and (min-width : 576px) {
header  .container {
  max-width: 100%;
}
.home-donate-grid .wp-block-button__link {
  padding: 35px 0;
}

}

@media only screen and (min-width : 768px) {
header .container {
  padding-left: 5px;
  padding-right: 5px;
}
.navbar-nav li ul li a {
  font-size: 14px;
}
.mobile-menu .navbar-nav li ul li {
  padding: 5px 0 !important;
}
.navbar-nav li {
  line-height: 24px;
}
.navbar-nav li ul {
  padding: 10px 7px;
  background-color: #fff;
}
.hero {
  flex-direction: initial;
}
.hero img {
  height: 380px;
}
.hero .wp-block-column {
  align-content: center;
}
.meet-home .wp-block-column,
.meet-page .wp-block-column  {
  align-content: center;
}
.menu-item a {
  font-size: 0.9em;
  padding: 0 7px;
}
.meet-order {
  order: 0;
}
.navbar-nav .menu-item.featured-link a,
.navbar-nav .menu-item.featured-link-2 a,
.home-signup-form form input[type="submit"],
.wp-block-button__link {
  font-size: 18px;
}
.accordion-content {
  padding-left: 30px;
}
.home-donate-grid.is-layout-grid {
  grid-template-columns: repeat(4, 1fr);
}
.home-donate-grid .wp-block-button__link {
  font-size: 28px;
}
.navbar-nav .menu-item.featured-link,
.navbar-nav .menu-item.featured-link-2 {
  margin-top: 0;
  margin-left: 10px;
}
.inner-hero {
padding-top: 1.7em !important;
  padding-bottom: 3em;
}
footer.py-4 {
  padding-top: 3.5rem !important;
}
.footer-logo {
  margin-bottom: 25px;
}
.footer-nav {
  margin-bottom: 25px;
}
.footer-disclaimer {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer p {
  font-size: 12px;
}
body.single-give_forms iframe {
  min-width: 540px !important;
  margin: 20px auto 20px auto;
  display: block;
}
.home-issues-more {
  text-align: right;
}
}


@media only screen and (min-width : 992px) {
header .container {
  max-width: 1110px;
  margin-left: auto;
  margin-right: auto;
}
.hero img {
  height: 420px;
}
.hero h1 {
  font-size: 2.5em;
}
.home-donate-grid .wp-block-button__link {
    font-size: 32px;
}
h2.accordion-toggle {
  font-size: 1.7em;
}
.home-donate-grid.is-layout-grid {
  width: 900px;
  margin: auto;
  margin-top: 40px;
}
.centre-p {
  width: 750px;
  margin: auto;
}
.section-inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.menu-item a {
  font-size: 1em;
  padding: 0 10px;
}
footer.py-4 {
  padding-top: 4.5rem !important;
  padding-top: 3.5rem !important;
}
h2.home-header {
  font-size: 2em;
}
.signup-pattern h2 {
  font-size: 2em;
}
}
@media only screen and (min-width : 1200px) {
header .container {
    max-width: 1140px;
    padding-left: 1rem;
    padding-right: 1rem;
}
.hero h1, 
.action-header h1 {
  font-size: 3em;
}
.hero img {
  height: 460px;
}
h2.accordion-toggle {
  font-size: 1.8em;
  line-height: 1.1em;
}
.section-inner {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
footer.py-4 {
  padding-top: 5.5rem !important;
  padding-top: 4.5rem !important;
}
}