/* ============================================
   Scouting @ First Presbyterian
   Professional unit website styles
   Colors aligned with Scouting America brand
   ============================================ */

:root {
  /* Official Scouting America colors */
  --scout-red: #CE1126;
  --scout-blue: #003F87;
  --scout-yellow: #FCD116;
  --scout-tan: #D6CEBD;
  --scout-dark-blue: #002a5c;
  --scout-light-blue: #e8f0f8;
  --scout-gray: #515354;
  --scout-light-gray: #f5f6f7;
  /* Scouts BSA olive (official program color) – used for Troop 7136 */
  --scout-olive: #243E2C;
  --scout-olive-mid: #2d5a3d;
  --scout-olive-light: #e8f0ea;
  --white: #ffffff;
  --black: #1a1a1a;

  /* Typography */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Spacing & radius */
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 63, 135, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 63, 135, 0.15);
  --max-width: 1140px;
  --transition: 0.25s ease;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--scout-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--scout-red);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--scout-dark-blue);
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER / NAV ========== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--scout-dark-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span:first-child {
  font-size: 0.95rem;
  color: var(--scout-blue);
}

.logo-text span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--scout-gray);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--scout-dark-blue);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--scout-light-blue);
  color: var(--scout-blue);
}

.nav-cta {
  background: var(--scout-red) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: #b00e20 !important;
  color: var(--white) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--scout-blue);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; }
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--scout-dark-blue) 0%, var(--scout-blue) 55%, #0055a5 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text .tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 32ch;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(320px, 85%);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--scout-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #b00e20;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(206, 17, 38, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--scout-blue);
  border: 2px solid var(--scout-blue);
}

.btn-outline:hover {
  background: var(--scout-blue);
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text .tagline { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero { padding: 3rem 0 4rem; }
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--scout-light-gray);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--scout-gray);
  font-size: 1.1rem;
}

/* Unit cards on home */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.unit-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.unit-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.unit-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.unit-icon.pack { background: #fff3cd; color: #856404; }
.unit-icon.troop-boys { background: #d4e6f7; color: var(--scout-blue); }
.unit-icon.troop-girls { background: var(--scout-olive-light); color: var(--scout-olive); }
.unit-icon.crew { background: #e8f5e9; color: #2e7d32; }

.unit-card-body {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.unit-card-body p {
  color: var(--scout-gray);
  font-size: 0.95rem;
  flex: 1;
}

.unit-card-body .ages {
  font-weight: 600;
  color: var(--scout-blue);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.unit-card .btn {
  margin-top: 1rem;
  width: 100%;
}

/* Features / Why join */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--scout-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--scout-blue);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--scout-gray);
  font-size: 0.95rem;
}

/* Oath & Law box */
.oath-law {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.oath-law > div {
  padding: 2rem;
}

.oath-law .oath {
  background: var(--scout-blue);
  color: var(--white);
}

.oath-law .oath h3 {
  color: var(--white);
}

.oath-law .law {
  background: var(--white);
}

.oath-law ul {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 0.5rem 2rem;
}

.oath-law li {
  padding: 0.2rem 0;
  font-weight: 500;
}

@media (max-width: 700px) {
  .oath-law {
    grid-template-columns: 1fr;
  }
  .oath-law ul { columns: 1; }
}

/* Unit page specific */
.unit-hero {
  background: linear-gradient(135deg, var(--scout-dark-blue), var(--scout-blue));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.unit-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.unit-hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.unit-hero .ages-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 850px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--scout-blue);
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.6rem;
}

.info-card li:last-child { border-bottom: none; }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.contact-form h3 {
  margin-bottom: 1.25rem;
  color: var(--scout-blue);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--scout-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--scout-blue);
  box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--scout-gray);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Charter / About strip */
.charter-strip {
  background: var(--scout-dark-blue);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.charter-strip h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.charter-strip p {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #0d1b2a;
  color: #a0aec0;
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 72px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.footer-brand p {
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #a0aec0;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #a0aec0;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--scout-yellow);
  outline-offset: 2px;
}
/* ========== UNIT PAGE HEROES ========== */
.page-hero {
  background: linear-gradient(135deg, var(--scout-dark-blue) 0%, var(--scout-blue) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--scout-yellow);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 540px;
}

.unit-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.unit-badge.pack { background: rgba(252, 209, 22, 0.2); border-color: var(--scout-yellow); color: var(--scout-yellow); }
.unit-badge.troop-boys { background: rgba(206, 17, 38, 0.25); }
.unit-badge.troop-girls { background: rgba(36, 62, 44, 0.35); border-color: rgba(255,255,255,0.35); }
.unit-badge.crew { background: rgba(45, 106, 79, 0.35); }

/* Subtle color accents for different unit heroes */
.pack-hero { background: linear-gradient(135deg, #002a5c 0%, #003F87 60%, #1a5276 100%); }
.troop-hero { background: linear-gradient(135deg, #002a5c 0%, #003F87 100%); }
.troop-girls-hero { background: linear-gradient(135deg, #1a2e22 0%, var(--scout-olive) 45%, var(--scout-olive-mid) 100%); }
.crew-hero { background: linear-gradient(135deg, #0b2e1a 0%, #1b4332 50%, #2d6a4f 100%); }

/* ========== CONTENT GRID (unit pages) ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.main-content h2 {
  margin-top: 0;
}

.main-content h3 {
  margin-top: 1.75rem;
  color: var(--scout-blue);
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--scout-red);
  font-weight: 700;
}

.info-box {
  background: var(--scout-light-blue);
  border-left: 4px solid var(--scout-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.info-box h3 {
  margin-top: 0;
  color: var(--scout-dark-blue);
  font-size: 1.15rem;
}

.info-box .note {
  font-size: 0.95rem;
  color: var(--scout-gray);
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--scout-dark-blue);
}

.contact-card {
  border-top: 4px solid var(--scout-red);
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.95rem;
}

.fact-list li:last-child {
  border-bottom: none;
}

/* Forms */
.contact-form {
  margin-top: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--scout-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--scout-blue);
  box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--scout-gray);
  margin-top: 1rem;
  margin-bottom: 0;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Ensure buttons look good */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--scout-red);
  color: var(--white);
  border-color: var(--scout-red);
}

.btn-primary:hover {
  background: #a80e1e;
  border-color: #a80e1e;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--scout-blue);
  border-color: var(--scout-blue);
}

.btn-outline:hover {
  background: var(--scout-blue);
  color: var(--white);
}
