/* =========================
   PCEC Global Styles (Elegant + Simple)
   Theme: navy + goldenrod (named colors only)
   ========================= */

/* Base Reset / Defaults */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.7;
  color: black;
  background-color: whitesmoke;
}

.section-divider {
    height: 3px;
    width: 96%;
    margin: 2.2rem auto;
    background: linear-gradient(to right, goldenrod 5%, navy 55%, goldenrod 100%);
    border-radius: 2px;
    opacity: .22;
  }
p { margin: 0 0 1rem; }
a { text-decoration: none; color: navy; }
a:hover { text-decoration: underline; }

/* Headings — unified look */
h1 {
    font-size: 2rem;
    color: goldenrod;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.8rem;
    color: navy;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    text-align: center;
    position: relative;
  }
  
  h3 {
    font-size: 1.2rem;
    color: navy;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    text-align: center;
  }
  
  /* Goldenrod accent under headings */
  h1::after,
  h2::after,
  h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: goldenrod;
    margin: 0.5rem auto 0; 
    border-radius: 2px;
    margin-bottom: 1rem;
  }
  h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: goldenrod;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }

/* Width helpers */
.section-narrow { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.section-wide   { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* =========================
   Hero
   ========================= */
.hero {
  background: linear-gradient(rgba(0,0,64,0.7), rgba(0,0,64,0.7)), url('/Images/community.png') center/cover no-repeat;
  background-blend-mode: multiply;
  color: white;
  text-align: center;
  padding: 5rem 1rem 4rem;
  border-top: 2px solid goldenrod;
  border-bottom: 4px solid goldenrod;
}
.hero-content { max-width: 850px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; }
.hero p  { font-size: 1.1rem; opacity: 0.95; }

/* Buttons */
.btn, .btn-outline {
  display: inline-block;
  font-weight: bold;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  margin: 0.25rem;
  transition: transform 0.08s ease-in, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn { background: goldenrod; color: navy; }
.btn:hover { 
    background: navy;
    color: white;
    border: 2px solid goldenrod;
    box-shadow: 0 6px 16px goldenrod;
    transform: translateY(-2px);
}
.btn-outline { background: transparent; color: goldenrod; border: 2px solid goldenrod; }
.btn-outline:hover { 
    background: navy; 
    color: white; 
    border: 2px solid goldenrod;
    box-shadow: 0 6px 16px goldenrod;
    transform: translateY(-2px)}

/* =========================
   About
   ========================= */
.about-section { background: floralwhite; padding: 3rem 0; }
.about-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.highlight-card {
  background: white;
  border: 1px solid gainsboro;
  border-left: 4px solid goldenrod;
  border-radius: 12px;
  padding: 1.25rem;
}
.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

/* =========================
   What We Do
   ========================= */
.what-we-do {
  background: whitesmoke;
  padding: 3rem 0;
  /*border-top: 1px solid gainsboro;
  border-bottom: 1px solid gainsboro;*/
  border-top: 4px solid goldenrod;
  border-bottom: 4px solid goldenrod;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.service-card {
  background: floralwhite;
  border: 1px solid gainsboro;
  border-left: 4px solid goldenrod;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

/* =========================
   Impact
   ========================= */
.impact-section { background: floralwhite; padding: 3rem 0; }
.impact-container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.impact-container ul {
  list-style: none;
  padding-left: 2rem;
  margin: 0;
}
.impact-container li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}
.impact-container li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: goldenrod;
  font-weight: bold;
}

/* =========================
   Founder Section
   ========================= */
   .founder-section {
    background: whitesmoke;
    padding: 3rem 1rem;
    border-top: 4px solid goldenrod;
    border-bottom: 4px solid goldenrod;
  }
  
  .founder-container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .founder-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  
  .founder-photo img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid goldenrod;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .founder-bio h3 {
    color: goldenrod;
    font-size: 1.5rem;
    text-align: center;
  }
  .founder-bio p {
    margin-bottom: 1rem;
    text-align: justify;
  }
  
  @media (max-width: 768px) {
    .founder-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .founder-bio h3 { text-align: center; }
    .founder-bio p { text-align: left; }
  }

/* =========================
   Call To Action
   ========================= */
.cta-section {
    background: navy;  
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-top: 4px solid goldenrod;
}
.cta-section p { opacity: 0.95; margin-bottom: 1.5rem; }

/* =========================
   Utilities
   ========================= */
hr.divider {
  border: none;
  border-top: 1px solid gainsboro;
  margin: 2rem auto;
  max-width: 800px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid goldenrod;
  outline-offset: 2px;
}

/* ===== Back to Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  background-color: goldenrod;
  color: navy;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  display: none; /* hidden by default */
}

#backToTop:hover {
  background-color: navy;
  color: white;
  transform: translateY(-2px);
}

/* ===============================
   MEDIA QUERIES
=============================== */
/* Responsive for Tablets and Phones (480px to 1024px) */

/* ===== Desktop-first defaults above ===== */

/* ========== Large Tablets / Small Laptops (≤1200px) ========== */
@media (max-width: 1200px) {
    .section-wide { max-width: 1000px; }
    .hero { padding: 4.5rem 1rem 3.5rem; }
    .hero h1 { font-size: 2.2rem; }
  }
  
  /* ========== Tablets Landscape (≤1024px) ========== */
  @media (max-width: 1024px) {
    .section-wide { max-width: 920px; }
    .services-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
    .about-highlights { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .founder-grid { grid-template-columns: 280px 1fr; gap: 1.5rem; }
    .hero { padding: 4rem 1rem 3.25rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; }
  }
  
  /* ========== Tablets Portrait (≤900px) ========== */
  @media (max-width: 900px) {
    .section-wide { max-width: 840px; }
    .hero { padding: 3.75rem 1rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .impact-container { max-width: 920px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
  }
  
  /* ========== Large Phones / Small Tablets (≤768px) ========== */
  @media (max-width: 768px) {
    .section-narrow, .section-wide, .about-container { padding: 0 0.75rem; }
    .hero { padding: 3.25rem 1rem 2.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }
  
    /* Grids collapse to single column where it makes sense */
    .services-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .founder-grid { grid-template-columns: 1fr; gap: 1rem; }
    .founder-bio p { text-align: left; } /* keep bios easy to read on mobile */
  
    /* Forms (shared pattern used across pages) */
    .grid-2 { grid-template-columns: 1fr; }
    .btn, .btn-outline { padding: 0.65rem 1.25rem; }
  
    /* Spacing tweaks */
    .what-we-do { padding: 2.25rem 0; }
    .about-section { padding: 2.25rem 0; }
  }
  
  /* ========== Phones (≤640px) ========== */
  @media (max-width: 640px) {
    .hero { padding: 3rem 0.75rem 2.25rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 0.95rem; }
  
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.05rem; }
  
    .service-card { padding: 1rem; }
    .highlight-card { padding: 1rem; }
    .founder-photo img { max-width: 520px; margin: 0 auto; display: block; }
  
    /* Tighten list spacing for impact bullets on small screens */
    .impact-container li { margin: 0.35rem 0; }
  }
  
  /* ========== Small Phones (≤480px) ========== */
  @media (max-width: 480px) {
    .section-wide, .section-narrow { padding: 0 0.65rem; }
    .hero { padding: 2.5rem 0.65rem 2rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
  
    .btn, .btn-outline {
      padding: 0.6rem 1.1rem;
      font-size: 0.95rem;
    }
  
    /* Make cards breathe but stay compact */
    .service-card, .highlight-card { border-radius: 10px; }
    .founder-bio h3 { font-size: 1.3rem; }
  
    /* Forms: make inputs comfy and full-width */
    .field input, .field textarea { padding: 0.65rem 0.75rem; }
  }

/*
@media (max-width: 900px) {
  .hero { padding: 4.25rem 1rem 3.5rem; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
}*/