/* ============================================
   BLACK ROCK FOOD PANTRY - CUSTOM THEME
   Mobile-First Responsive Design
   Colors & Typography preserved from original
   ============================================ */

/* ========== DISABLE DARK MODE ========== */
/* Force light mode regardless of user's system preference */
html {
  color-scheme: light only;
}

/* ========== BASE STYLES (MOBILE FIRST) ========== */
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: white !important;
}

body {
  color: #333 !important;
}

/* Typography - Font families only, let Bulma handle sizing */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans Condensed', Arial, sans-serif;
  font-weight: 700;
  color: #333 !important;
}

/* Ensure all Bulma title/subtitle classes also stay dark */
.title, .subtitle {
  color: #333 !important;
}

p, a, ol, li {
  font-family: 'Open Sans', 'Corbel', 'Gill Sans', sans-serif;
  font-weight: 600;
  color: #333;
}

.osc-text {
  font-family: 'Open Sans Condensed';
  font-weight: 300;
}

/* ========== LINE HEIGHT UTILITIES ========== */
/* Base classes (apply to all breakpoints unless overridden) */
.lh-tight {
  line-height: 1.2 !important;
}

.lh-snug {
  line-height: 1.3 !important;
}

.lh-normal {
  line-height: 1.4 !important;
}

.lh-relaxed {
  line-height: 1.5 !important;
}

.lh-loose {
  line-height: 1.6 !important;
}

/* Mobile-specific (< 768px) */
.lh-tight-mobile {
  line-height: 1.2 !important;
}

.lh-snug-mobile {
  line-height: 1.3 !important;
}

.lh-normal-mobile {
  line-height: 1.4 !important;
}

.lh-relaxed-mobile {
  line-height: 1.5 !important;
}

.lh-loose-mobile {
  line-height: 1.6 !important;
}

/* Tablet and up (>= 768px) */
@media screen and (min-width: 768px) {
  .lh-tight-tablet {
    line-height: 1.2 !important;
  }

  .lh-snug-tablet {
    line-height: 1.3 !important;
  }

  .lh-normal-tablet {
    line-height: 1.4 !important;
  }

  .lh-relaxed-tablet {
    line-height: 1.5 !important;
  }

  .lh-loose-tablet {
    line-height: 1.6 !important;
  }
}

/* Desktop and up (>= 1024px) */
@media screen and (min-width: 1024px) {
  .lh-tight-desktop {
    line-height: 1.2 !important;
  }

  .lh-snug-desktop {
    line-height: 1.3 !important;
  }

  .lh-normal-desktop {
    line-height: 1.4 !important;
  }

  .lh-relaxed-desktop {
    line-height: 1.5 !important;
  }

  .lh-loose-desktop {
    line-height: 1.6 !important;
  }
}

/* ========== HERO HEADER ========== */
.hero.is-fullheight {
  background-image: url("../img/food-pantry-1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: auto !important; /* Override Bulma's 100vh */
}

.hero-body {
  padding: 100px 1.5rem 3rem;
}

/* Tablet and up: add more bottom padding for breathing room */
@media screen and (min-width: 768px) {
  .hero-body {
    padding: 120px 2rem 4rem;
  }
}

.header-text {
  color: white;
  text-align: center;
  text-shadow: rgb(0, 0, 0) 1px 0px 11px;
  width: 100%;
}

.header-text h1,
.header-text .title {
  color: white !important;
  padding: 0 15px;
  margin: 0 15px 15px;
}

.header-text p,
.header-text .subtitle {
  color: white !important;
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: #25389e;
  box-shadow: 0px 2px 0px rgba(12, 206, 107, 0.5);
  min-height: 3.25rem;
  max-height: 3.25rem;
}

/* Navbar scroll hide/show with smooth transition */
.navbar.is-fixed-top {
  transition: transform 0.3s ease-in-out;
}

.navbar.is-fixed-top.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-brand .navbar-item {
  color: white;
  font-family: 'Open Sans Condensed', Arial, sans-serif;
  font-weight: 700;
  padding: 0 20px;
}

.navbar-menu {
  background-color: #25389e;
}

.navbar-item {
  color: #0cce6b;
  text-transform: uppercase;
}

.navbar-item:hover,
.navbar-item.is-active {
  background-color: #25389e;
  color: white;
}

.navbar-burger {
  color: white;
}

.navbar-burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile navbar: vertical list, right-aligned, constrained width */
@media screen and (max-width: 1023px) {
  /* Keep solid background on navbar, remove from dropdown containers */
  #navbarMenu.navbar-menu,
  #navbarMenu.navbar-menu.is-active {
    padding: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Position navbar-menu to take full width for proper alignment */
  #navbarMenu.navbar-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }

  /* Only show menu when active */
  #navbarMenu.navbar-menu.is-active {
    display: flex !important;
    justify-content: flex-end;
  }

  /* Apply background and constraints to the actual menu in both states */
  #navbarMenu .navbar-end,
  #navbarMenu.is-active .navbar-end {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    background-color: #25389e;
    width: auto;
    padding: 0.5rem 0;
    border-radius: 0 0 0 8px; /* Rounded corner on bottom-left for visual distinction */
    box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.2);
  }

  #navbarMenu .navbar-end .navbar-item {
    width: auto;
    text-align: right;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem; /* Smaller base size for mobile */
    white-space: nowrap;
  }
}

/* Very small mobile (360px and smaller) - even smaller text */
@media screen and (max-width: 360px) {
  .navbar-end .navbar-item {
    font-size: 0.8125rem; /* Extra small for tiny screens */
    padding: 0.65rem 1.25rem;
  }
}

/* Larger mobile/small tablet (414px+) - slightly bigger */
@media screen and (min-width: 414px) and (max-width: 767px) {
  .navbar-end .navbar-item {
    font-size: 0.9375rem; /* Medium size for larger phones */
  }
}

/* Tablet (768px - 1023px) - closer to desktop size */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .navbar-end .navbar-item {
    font-size: 1rem; /* Standard size for tablets */
  }
}

/* ========== DONATION CTA BOX ========== */
.donation-cta {
  max-width: 90%;
  margin: 15px auto;
  padding: 15px;
  border: 3px solid white;
  border-radius: 8px;
  background-color: rgba(37, 56, 158, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.donation-cta .cta-text {
  color: white;
  text-shadow: rgb(0, 0, 0) 1px 0px 8px;
  line-height: 1.4;
}

.donation-cta .cta-text .emphasis {
  color: #0cce6b;
  font-weight: 700;
}

/* Tablet and up: larger CTA box */
@media screen and (min-width: 768px) {
  .donation-cta {
    max-width: 700px;
    margin: 25px auto;
    padding: 20px 30px;
  }
}

/* ========== CONTENT SECTIONS ========== */
/* Mobile-first: 16px side padding (standard mobile margin) */
#main-content {
  padding: 40px 16px 0;
}

.heros {
  padding: 20px 16px;
}

/* Tablet and up: increase side padding */
@media screen and (min-width: 768px) {
  #main-content {
    padding: 40px 30px 0;
  }

  .heros {
    padding: 30px;
  }
}

.open-text {
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

/* ========== WAYS TO HELP SECTION ========== */
.way-to-help {
  padding: 10px;
  border: 1px solid black;
  background-color: #25389e;
}

.way-to-help .columns {
  margin: 0;
}

/* Help items - mobile first with tighter desktop spacing */
.help-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px !important;
  color: white;
  text-align: left;
}

.help-item .icon {
  color: white;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.help-item p {
  color: white;
  margin: 0;
  width: 100%;
}

.help-item a {
  color: #0cce6b;
}

/* Prayer message styling */
.help-item-prayer {
  padding: 20px 10px !important;
  text-align: center;
}

.pray {
  font-family: 'Open Sans Condensed';
  font-weight: 300;
  color: white !important;
  margin: 0;
}

/* Tablet and up: reduce padding for tighter layout */
@media screen and (min-width: 768px) {
  .way-to-help {
    padding: 20px;
  }

  .help-item {
    padding: 15px 10px !important;
  }

  .help-item-prayer {
    padding: 15px 10px !important;
  }

  /* Constrain text width for better readability on wide screens */
  .help-item p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== BUTTONS ========== */
.button.is-primary {
  color: white;
  background-color: #0cce6b;
  border: none;
}

.button.is-primary:hover {
  color: #0cce6b;
  border-color: #0cce6b;
  background-color: white;
}

.button.is-primary:active,
.button.is-primary:focus {
  color: white;
  background-color: #0cce6b;
}

/* ========== FOOTER ========== */
.footer {
  background-color: #25389e;
  padding: 30px 16px 20px;
}

.footer h2,
.footer h3,
.footer p,
.footer a {
  color: white !important;
}

.footer .title,
.footer .subtitle {
  color: white !important;
}

.footer .contacts a {
  color: #0cce6b;
}

.footer .contacts p {
  margin-bottom: 0.5em;
}

.footer #break-center {
  color: #0cce6b;
}

.footer .jb a {
  color: #0cce6b;
}

/* Fix footer visibility on tablet */
.footer .column {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Tablet and up: increase footer padding */
@media screen and (min-width: 768px) {
  .footer {
    padding: 30px 30px 20px;
  }
}

/* Desktop and up: more padding */
@media screen and (min-width: 1024px) {
  .footer {
    padding: 30px 40px 20px;
  }

  /* Hero-body padding handled in dedicated hero section above */
}

/* ========== SOCIAL ICONS ========== */
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.social a {
  margin: 5px;
}

.fa-stack-1x {
  color: white;
}

.icon-facebook {
  color: #3b5998;
}

.icon-facebook:hover .fa-stack-1x {
  color: #3b5998;
}

.icon-facebook:hover {
  color: white;
}

.icon-facebook:focus {
  outline: none;
}

/* ========== GOOGLE MAPS ========== */
.map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map iframe {
  pointer-events: none;
  max-width: 100%;
}

/* ========== SCROLL TO TOP BUTTON ========== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  color: rgba(12, 206, 107, 1);
  cursor: pointer;
  padding: 3px;
  border-radius: 2px;
  background: none;
}

#scrollTopBtn:hover {
  color: rgba(12, 206, 107, 0.8);
}

/* ========== VOLUNTEER MODAL ========== */
.modal {
  display: none;
}

.modal.is-active {
  display: flex;
}

.modal-card-head,
.modal-card-foot {
  background-color: #25389e;
}

.modal-card-title {
  color: white;
  font-family: 'Open Sans Condensed', Arial, sans-serif;
  font-weight: 700;
}

.delete {
  background-color: white;
}

.modal-card-body .field label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #333;
}

/* ========== HERO SECTION (Our Heroes page) ========== */
.hero-pros .column {
  padding: 20px;
}

.ty-top {
  margin: 20px 0;
}

.news {
  margin-top: 30px;
  margin-bottom: 0;
  border: 1px solid #222;
  padding: 20px;
}

/* Add padding to main-content section to push footer down */
#main-content {
  padding-bottom: 60px;
}

/* ========== UTILITY CLASSES ========== */
.volun-text {
  margin: 30px 0;
}

.credits {
  margin-top: 20px;
}

.credits p {
  margin-bottom: 0;
}

.centered {
  margin: 0 auto;
  display: block;
}

/* Donation widget containers - COMMENTED OUT for testing */
/* Uncomment if layout needs these styles */

.donation-widget-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.donation-cta .donation-widget-wrapper {
  margin-top: 20px;
}

.donation-widget-caption {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
}

/* Contact groups - semantic styling without wrapper divs */
.contact-group {
  margin-bottom: 0.5em;
  font-style: normal; /* Reset default italic styling of <address> */
}

.contact-group:last-child {
  margin-bottom: 0;
}

/* ========== MOBILE FIRST RESPONSIVE ADJUSTMENTS ========== */

/* Small mobile optimization (base styles above apply) */

/* Medium mobile and up */
@media screen and (min-width: 375px) {
  /* Hero-body padding handled in dedicated hero section above */
}

/* Large mobile and up */
@media screen and (min-width: 414px) {
  #intro {
    padding: 40px 30px 0;
  }
}

/* Tablet and up */
@media screen and (min-width: 768px) {
  /* Hero-body padding handled in dedicated hero section above */
}

/* Desktop and up */
@media screen and (min-width: 1024px) {
  .contacts {
    flex-direction: column;
  }
}

.footer .contacts .contact-title {
  margin-bottom: 0;
}