/* ========== Variables ========== */
:root {                                    /* FIXED: changed from root to :root */
  --bg-color: #ffffffc0;                   /* FIXED: removed stray semicolon */
  --text-color: #000000;
  --accent-color: #0055aa;
  --font-size: 1rem;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: var(--font-size);
  line-height: 1.6;
}

body.high-contrast {
  --bg-color: #000000;                     /* FIXED: removed stray semicolon */
  --text-color: #ffffffc0;                 /* FIXED */
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 0;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

/* ========== Sticky Header ========== */
.site-header {
  position: sticky;
  top: 0;
  background-color: #000000;
  color: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.logo-wrapper {
  flex: 1;
  text-align: left;
}

.logo {
  max-height: 50px;
}

.accessibility-tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;                    
}

#fontSize {
  margin-bottom: 1rem;
  padding: 0.3rem;
  font-size: 1rem;
  background-color: #555555;
  color: #ffffff;
  border: none;
}

#contrastToggle {
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  padding: 0;
  background-color: transparent;
  border: 1px solid #fff;
  color: var(--text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;                    
  justify-content: center;                }

/* ========== Main Navigation ========== */
/* ====== TUNE YOUR DROPDOWN WIDTH & TRANSPARENCY ====== */

.main-nav {
  /* Ensure it lays on top of the hero */
  position: absolute;
  top: 100%;
  left: 0;
  
  /* Start hidden off-screen for slide-in effect */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  
  /* Make it a fixed width (tweak 250px as needed) */
  width: 150px;               /* ↓ your new narrow width */
  
  /* Semi-transparent dark so background shines through */
  background-color: rgba(17,17,17,0.8);  
  padding: 1rem 0;
  z-index: 1001;              /* above header (1000) */
}

/* When the menu’s open, slide it into view */
.main-nav.open {
  display: block;  
  transform: translateX(0);
}

/* Reset default display:none to keep transform working */
.main-nav {
  /* remove `display: none;` if you still have it in your CSS */
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.nav-links li {
  margin-bottom: 1rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
}

/* ========== Main Content ========== */
main {
  margin-left: 0;
  padding: 0;
}

/* ========== Hero Section ========== */
.hero {
  padding: 0;
  margin: 0;  
  
}

.hero .container {
  padding:2rem;
  background-color: #000000;
  color: #ffffff;
  background-image: url("https://studioofhope.org/images/1hand.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 70vh;       /* adjust to taste: 50vh, 100vh, etc. */
}

body.high-contrast .hero {
  color: #ffffff; 
}

/* ========== Utility Containers ========== */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== Headings & Buttons ========== */
.hero h1,
.mission h2,
.newsletter h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-button,
.cta-button-secondary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1px;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.cta-button:hover,
.cta-button-secondary:hover {
  background-color: #003377;
}

/* ========== Mission Section ========== */
.mission-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.mission-text,
.mission-image {
  flex: 1 1 45%;
}

.mission-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--text-color);
}

/* ========== Newsletter ========== */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 80%;
}

.newsletter-form input {
  flex: 1 1 auto;
  padding: 0.5rem;
  font-size: 1rem;
}

/* ========== Contact Section ========== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info,
.contact-form-container {
  flex: 1 1 45%;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 80%;
  padding: 0.5rem;
  font-size: 1rem;
}

/* ========== Footer ========== */
.site-footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  border-top: 2px solid var(--text-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-content nav img {
  max-width: 200px;
}

	/* 1) HERO BACKGROUND IMAGE: correct the relative path from include/style2.css */
.hero {  /* …other rules… */
  background-image: url("https://studioofhope.org/images/1hand.jpg");
\}

/* 2) HEADER LAYOUT IN MOBILE: don’t force a single-column stack */
@media (max-width: 768px) {
  /* Only mission, contact & footer stay columnar */
  .mission-content,
  .contact-grid,
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }
}
.side-nav {
    width: 80%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
  }

  main {
    margin-left: 0;
    padding-top: 1px;
  }

  .cta-button,
  .cta-button-secondary,
  #contrastToggle {
    width: 5%;
    font-size: 1.2rem;
  }

  .newsletter-form input,
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
}