/* ==========================================================================
   1. Google Fonts & CSS Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Lato:wght@400;700&family=Montserrat:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  --font-primary: 'Roboto Slab', serif;
  --font-secondary: 'Fjalla One', sans-serif;
  --font-tertiary: 'Montserrat', sans-serif;
  --font-quote: 'Lato', sans-serif;

  --color-black: #000000;
  --color-dark-text: #2a2a2a;
  --color-muted: #888888;
  --color-cream: #FDF0D5;
  --color-white: #ffffff;
  --color-border: #E0E0E0;
  --color-btn-bg: rgba(51, 51, 51, 0.6);
  --color-link-blue: #24418d;
}

/* ==========================================================================
   2. Global Resets & Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--color-btn-bg);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--color-black);
}

h1,
h2,
h3 {
  font-family: var(--font-tertiary);
  color: var(--color-black);
  font-weight: 700;
}

h2 {
  font-size: 48px;
  line-height: 1.2;
  padding-bottom: 15px;
}

h3 {
  font-size: 24px;
  margin-top: 15px;
  margin-bottom: 10px;
}

p {
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 20px;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ==========================================================================
   3. Header Bar & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--color-white);
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  max-height: 60px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.desktop-nav a {
  font-family: var(--font-tertiary);
  font-size: 16px;
  color: var(--color-black);
  text-transform: lowercase;
  padding-bottom: 7px;
}

.desktop-nav a:hover {
  border-bottom: 2px solid var(--color-btn-bg);
  padding-bottom: 5px;
}

/* Hamburger Toggle Button */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
}

.hamburger-icon {
  width: 18px;
  height: 15px;
  position: relative;
  margin-right: 10px;
}

.hamburger-icon .line {
  display: block;
  position: absolute;
  width: 18px;
  height: 3px;
  background-color: var(--color-black);
  transition: all 0.3s ease;
}

.hamburger-icon .line:nth-child(1) {
  top: 0;
}

.hamburger-icon .line:nth-child(2) {
  top: 6px;
}

.hamburger-icon .line:nth-child(3) {
  top: 12px;
}

.hamburger-toggle.active .line:nth-child(1) {
  transform: rotate(45deg);
  top: 6px;
}

.hamburger-toggle.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active .line:nth-child(3) {
  transform: rotate(-45deg);
  top: 6px;
}

.menu-text {
  font-family: var(--font-tertiary);
  font-size: 16px;
  color: var(--color-black);
}

/* Fixed Mobile Dropdown Screen Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  background-color: #f4f4f4;
  padding: 40px 30px;
  z-index: 999;
  overflow-y: auto;
  box-shadow: inset 0px 4px 6px rgba(0, 0, 0, 0.05);
}

.mobile-nav.active {
  display: block !important;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
  font-family: var(--font-tertiary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
  display: block;
}

/* ==========================================================================
   4. Hero Banner Section
   ========================================================================== */
.hero-banner {
  margin-top: 80px;
  min-height: 715px;
  background-image: url('books.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-card {
  background-color: var(--color-white);
  padding: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 30px;
  align-items: center;
}

.hero-subtitle {
  font-style: italic;
  color: var(--color-dark-text);
  font-size: 16px;
  padding-bottom: 10px;
}

.hero-description {
  color: #080809;
  font-size: 20px;
  line-height: 1.4;
  padding-bottom: 0;
}

/* ==========================================================================
   5. Content Sections
   ========================================================================== */
.about-section,
.contact-section {
  background-color: var(--color-cream);
}

.about-section p {
  color: var(--color-dark-text);
  font-size: 20px;
}

.link-bold {
  color: var(--color-link-blue);
  font-weight: bold;
}

.info-section {
  background-color: var(--color-white);
}

.hours-text {
  color: var(--color-dark-text);
  font-size: 20px;
}

.closures-text {
  color: var(--color-dark-text);
  font-size: 16px;
}

.address-text a {
  color: var(--color-dark-text);
  font-size: 20px;
}

.map-wrapper iframe {
  width: 100%;
  border: 0;
}

.donation-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.donation-list li {
  font-size: 16px;
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

/* ==========================================================================
   6. Custom Forms & Buttons
   ========================================================================== */
.custom-form {
  margin-top: 10px;
}

.required-note {
  font-size: 14px;
  padding-bottom: 10px;
}

.req {
  color: #ff2825;
}

.form-field {
  margin-bottom: 15px;
}

.form-field label {
  font-family: var(--font-tertiary);
  display: block;
  margin-bottom: 5px;
  color: var(--color-black);
  font-size: 16px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 500px;
  font-family: var(--font-primary);
  font-size: 16px;
  padding: 10px;
  color: #252525;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  outline: none;
  transition: border-color 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #adadad;
}

.submit-btn {
  background-color: var(--color-btn-bg);
  border: 1px solid var(--color-btn-bg);
  padding: 16px 18px;
  min-width: 170px;
  cursor: pointer;
  transition: all 300ms ease;
}

.submit-btn span {
  font-family: var(--font-tertiary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  text-transform: lowercase;
}

.submit-btn:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
}

.submit-btn:hover span {
  color: var(--color-white);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 35px 20px;
}

.footer-info {
  font-size: 16px;
  color: var(--color-white);
  padding-bottom: 20px;
}

.footer-link {
  color: var(--color-white);
  text-decoration: underline;
  transition: color 200ms ease;
}

.footer-link:hover {
  color: var(--color-cream);
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-btn-bg);
  color: var(--color-white);
  transition: all 200ms ease;
  font-size: 18px;
}

.footer-socials a:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-socials svg {
  display: block;
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-toggle {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .hero-banner {
    margin-top: 60px;
    min-height: auto;
  }

  .two-col-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 28px;
  }
}