/* ------------------------------------------------------------
   MAIN.CSS — CSS Grid Layout
   Pajaro Valley Loaves & Fishes
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   GLOBAL RESET & BASE TYPOGRAPHY
   ------------------------------------------------------------ */

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css");
@import url("https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900");

body {
  background: #222833;
}

body, input, select, textarea {
  color: #000;
  font-family: 'Raleway', sans-serif;
  font-size: 13pt;
  font-weight: 300;
  line-height: 1.75em;
}

html, body {
  overflow-x: hidden;
}

a {
  color: #3ac984;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

p, ul, ol, dl, table, blockquote {
  margin: 0 0 2em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-weight: 700;
  line-height: 1.75em;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

/* ------------------------------------------------------------
   CONTAINER
   ------------------------------------------------------------ */

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ------------------------------------------------------------
   MODERN GRID SYSTEM
   ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Column spans */
.col-12 {
  grid-column: span 12;
}

.col-7 {
  grid-column: span 7;
}

.col-6 {
  grid-column: span 6;
}

.col-5 {
  grid-column: span 5;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

/* Column offset */
.col-offset-1 {
  grid-column-start: 2;
}

.col-offset-2 {
  grid-column-start: 3;
}

.col-offset-4 {
  grid-column-start: 5;
}

/* Responsive stacking */
@media (max-width: 980px) {

  .col-7,
  .col-6,
  .col-5,
  .col-4,
  .col-3 {
    grid-column: span 12;
  }
}

/* Auto-fit grid for 3‑column sections */
.grid.auto-fit {
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 840px) {
  .grid.auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

#header {
  background: #333 url("../images/navNbkgd/vegetableDisplay.webp") no-repeat;
  background-size: cover;
  background-position: 0% 65%;
  color: #fff;
  padding: 6em 0;
  text-align: center;
  position: relative;
}

#header:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 48, 0.25);
}

#header>* {
  position: relative;
  z-index: 1;
}

header h2 {
  margin: 0;
  padding: 0;
  font-size: 2.5em;
  font-weight: 600;
}

header .byline {
  font-size: 1.6em;
}

.homepage #header {
  padding: 8em 0;
  background-position: center;
}

/* ------------------------------------------------------------
   Main
   ------------------------------------------------------------ */

.no-sidebar #main .major, .left-sidebar #main .major, .right-sidebar #main .major {
  text-align: left;
}

.homepage #main .major {
  text-align: center;
}

#main {
  padding: 6em 0;
}

#main .sidebar .major {
  padding-bottom: 2em;
}

#main .sidebar .major h2 {
  font-size: 1.8em;
}

#main .sidebar .default li {
  border-color: #cdcdcd;
}

#main .sidebar .default a {
  color: #464646;
}

#main .sidebar> :first-child {
  margin-bottom: 3em;
}

/* ------------------------------------------------------------
  INPUT FIELD BACKGROUND DECORATION AND LAYOUT
--------------------------------------------------------------- */

/* Form Layout */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  width: 100%;
  max-width: 90%;
}

.field {
  display: flex;
  flex-direction: column;
}

.half {
  width: calc(50% - 12px);
  /* gap compensation */
}

.third {
  width: 31%;
  /* leaves room for gap */
}

.full {
  width: 100%;
}

.city-60 {
  width: 60%;
}

.state-12 {
  width: 12%;
}

.zip-20 {
  width: 20%;
}

/* Inputs sized to fill their block */
.field input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* --- Mobile Collapse --- */
@media (max-width: 640px) {
  .form-grid>.field {
    width: 100% !important;
  }
}

input#fName {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/firstName.png) 5px 4px no-repeat;
}

input#lName {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/lastName.png) 5px 4px no-repeat;
}

input#street {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/street.png) 5px 4px no-repeat;
}

input#city {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/city.png) 5px 4px no-repeat;
}

input#zip {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/zip.png) 5px 4px no-repeat;
}

input#email {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/email.png) 5px 4px no-repeat;
}

input#phone {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/phone.png) 5px 4px no-repeat;
}

input#number {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/hash.png) 5px 4px no-repeat;
}

input#donateAmt, input#payAmt {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/dollar.png) 5px 4px no-repeat;
}

textarea#message {
  padding-left: 48px;
  background: #fff url(../images/bkgInput/pen.png) 5px 4px no-repeat;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle span {
  position: absolute;
  width: 24px;
  height: 4px;
  background: yellow;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

/* Top bar */
.mobile-nav-toggle span:nth-child(1) {
  transform: translateY(-8px);
}

/* Middle bar */
.mobile-nav-toggle span:nth-child(2) {
  transform: translateY(0);
}

/* Bottom bar */
.mobile-nav-toggle span:nth-child(3) {
  transform: translateY(8px);
}

/* OPEN STATE → perfect X */
.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -100vw;
  /* fully hidden off-screen */
  width: 80vw;
  /* responsive width */
  max-width: 260px;
  /* cap for larger phones */
  height: 100%;
  background: #3ac984;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transition: left 0.6s ease;
  z-index: 1999;
  padding: 1rem;
}

.mobile-nav-panel.open {
  left: 0;
  /* slide in */
}

.mobile-nav-panel ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mobile-nav-panel li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.mobile-nav-panel a {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}

.mobile-nav-panel ul li ul li{
  margin-left: 20px;
}


/* Desktop nav */
#nav>ul {
  margin: 0;
  padding: 0;
}

#nav>ul>li {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.5em 1.5em;
  border-radius: 10px 10px 0 0;
}

#nav>ul>li:first-child {
  margin-left: 0;
}

#nav>ul>li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
}

#nav .navBig {
  font-size: 1.5em;
  font-weight: bold;
}

/* Hide desktop nav on mobile */
@media (max-width: 840px) {
  .mobile-nav-toggle {
    /* display: block; ... changed to flex when toggle was animated*/
     display: flex;
  }

  #nav {
    display: none;
  }
}

#nav>ul>li {
  position: relative;
}

#nav .dropotron {
  left: 0 !important;
  top: 100% !important;
  transform: none !important;
}

#nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   DROPOTRON (vanilla version)
   ------------------------------------------------------------ */

.dropotron {
  margin-top: -2px;
  background: #3ac984;
  border-radius: 10px;
  color: white;
  min-width: 12em;
  padding: 1em 0;
  display: none;
}

.dropotron>li {
  line-height: 2em;
  padding: 0 1em;
}

.dropotron>li>a {
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------
   BANNER
   ------------------------------------------------------------ */

#banner {
  text-align: center;
  padding: 4em 0 0 0;
}

#banner .major h2 {
  font-size: 3.5em;
}

/* ------------------------------------------------------------
   WRAPPERS
   ------------------------------------------------------------ */

.wrapper.style1 {
  background: #fff;
}

.wrapper.style2 {
  background: #ececec;
  padding: 6em 0;
  text-align: center;
}

.wrapper.style3 {
  padding: 2em 0 3.5em 0;
  background: #ececec;
}

.wrapper.style3 span {
  display: inline-block;
  padding-top: 0.80em;
  font-size: 2em;
  font-weight: 600;
}

.wrapper.style3 .button {
  float: right;
}

/* ------------------------------------------------------------
   IMAGES
   ------------------------------------------------------------ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image.fit img,
.image.feature img {
  width: 100%;
  display: block;
}

/* Display image with text in same line */
.inline {
  display: inline-block
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

#footer {
  padding: 4em 0;
  color: #fff;
}

#footer .copyright {
  margin-top: 3em;
  padding-top: 3em;
  border-top: 1px solid rgba(192, 192, 192, 0.15);
  text-align: center;
}

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */

.center {
  text-align: center;
}

.left {
  text-align: left;
}

.noDisplay {
  display: none;
}

.size2 {
  font-size: 1.2em;
}

.size4 {
  font-size: 1.4em;
}

.size6 {
  font-size: 1.6em;
}

.size8 {
  font-size: 1.8em;
}

.size2x {
  font-size: 2em;
  line-height: 1em;
}

.size3x {
  font-size: 3em;
  line-height: .9em;
}

.spaceAfter0 {
  margin-bottom: 0;
}

.spaceAfter1 {
  margin-bottom: 1em;
}

.spaceAfter2 {
  margin-bottom: 2em;
}

.spaceBefore-1 {
  margin-top: -1em;
}

.spaceBefore-2 {
  margin-top: -2em;
}

.spaceBefore-3 {
  margin-top: -3em;
}

.spaceBefore-4 {
  margin-top: -4em;
}

.spaceBefore-6 {
  margin-top: -6em;
}

.blueB {
  color:blue;
  font:bold;
}
.colorGreen {
  color: green;
}

.bgGrnAwesome {
  font-size: 36px;
  color: #32b777;
}

/* ------------------------------------------------------------
   Lists
   ------------------------------------------------------------ */
ol.default {
  list-style: decimal;
  padding-left: 1.25em;
}

ol.default li {
  padding-left: 0.25em;
}

ul {
  margin: 0;
  padding: 0;
}

ul.bullet {
  list-style: disc;
  padding-left: 1.25em;
}

ul.bullet li {
  line-height: 1.25em;
  padding-bottom: 1em;
}

ul.bullet li:last-child {
  padding-bottom: 1em;
}

ul.default {
  list-style: none;
}

ul.default li {
  display: block;
  padding: 0.60em 0;
  border-top: 1px solid;
  border-color: rgba(192, 192, 192, 0.15);
}

ul.default> :first-child {
  padding-top: 0;
  border-top: none;
}

ul.icons {
  cursor: default;
}

ul.icons li {
  display: inline-block;
  line-height: 1em;
  padding-left: 0.5em;
}

ul.icons li:first-child {
  padding-left: 0;
}

ul.actions {
  cursor: default;
}

ul.actions:last-child {
  margin-bottom: 0;
}

ul.actions li {
  display: inline-block;
  padding: 0 0 0 1.5em;
}

ul.actions li:first-child {
  padding: 0;
}

ul.actions.vertical li {
  display: block;
  padding: 1.5em 0 0 0;
}

ul.actions.vertical li:first-child {
  padding: 0;
}

ul.contact, ul.list {
  list-style: none;
}

ul.contact li {
  padding: 1.05em 0;
  border-top: 1px solid;
  border-color: rgba(192, 192, 192, 0.15);
}

ul.contact li>span {
  display: inline-block;
}

ul.contact li .address, ul.contact li .mail, ul.contact li .phone {
  float: left;
  width: 100px;
  font-weight: 600;
}

ul.contact> :first-child {
  padding-top: 0;
  border-top: none;
}

ul.style li {
  clear: both;
  display: block;
  padding-top: 3em;
}

ul.style> :first-child {
  padding-top: 0;
}

ul.style h3 {
  display: block;
  margin: 0;
  padding-bottom: 0.50em;
  font-size: 1.1em;
  font-weight: 700;
  color: #404040;
}

ul.style .fa {
  float: left;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-right: 1em;
  background: #3ac984;
  line-height: 80px;
  text-align: center;
  border-radius: 10px;
  font-size: 2em;
  color: white;
}

ul.list li {
  display: block;
  padding: 0.60em 0;
  border-top: 1px solid;
  border-color: red;
}

ul.list> :first-child {
  padding-top: 0;
  border-top: none;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */

.button {
  background: #3ac984;
  border-radius: 20px;
  color: white;
  padding: 0.70em 2em;
  font-size: 1.2em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #32b777;
}

/* ------------------------------------------------------------
   MOBILE TWEAKS
   ------------------------------------------------------------ */

@media (max-width: 840px) {
  .container {
    max-width: 100%;
    padding: 1rem;
  }
}

/* ----------------------------------------------
   MOBILE FIXES — iOS Safari overflow corrections
   ---------------------------------------------- */
@media (max-width: 840px) {

  /* Fix container overflow */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  /* Fix grid overflow */
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Fix header image overflow */
  #header {
    background-position: center;
    padding: 3em 0;
  }
}

.short-text {
  display: none;
}

@media (max-width: 430px) {
 #header {
  padding: 3em 0;
 }

 #header .major .byline{
  font-size: 1.2em;
  line-height: 1;
 }

 #banner .major h2{
  font-size: 1.8em;
  line-height: 1;
 }
 
  .button {
    font-size: 0.95em !important;
  }
  
  .short-text {
    display: inline-block;
    font-size: 0.75em;
  }

  .full-text {
    display: none;
  }

  .homepage #header, #banner {
    padding: 0;
  }
  .homepage .short-text{
    display:none;
  }
}

#header:before {
  pointer-events: none !important;
}