/* ============================================================
   NUTMEG BUSINESS NETWORKING — style.css
   Colors: #304699 (primary blue), #e29a2e (gold/accent),
           #0137d2 (button blue), #777777 (body text)
   Font: Open Sans (Google Fonts)
   ============================================================ */

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Initial hidden states */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

/* Visible state — added by JS when element enters viewport */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for sibling elements */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------- RESET / BASE ------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #777777;
  background-color: #ffffff;
}

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

a {
  color: #0137d2;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e29a2e;
}

ul {
  list-style: none;
}

/* ------------------- CONTAINER ------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------- TYPOGRAPHY ------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: #304699;
}

h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #304699;
}

h1 { font-size: clamp(2rem, 5vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: #e29a2e; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ------------------- BUTTONS ------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

/* Outline on dark background (hero) */
.btn-outline {
  color: #ffffff;
  border-color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: #ffffff;
  color: #304699;
}

/* Solid (chapter box) */
.btn-solid {
  background-color: #0137d2;
  color: #ffffff;
  border-color: #0137d2;
}

.btn-solid:hover {
  background-color: #304699;
  border-color: #304699;
  color: #ffffff;
}

/* Outline on light background (membership section) */
.btn-outline-dark {
  color: #0137d2;
  border-color: #0137d2;
  background: transparent;
}

.btn-outline-dark:hover {
  background: #0137d2;
  color: #ffffff;
}

/* Gold — for use on dark/blue backgrounds */
.btn-gold {
  color: #ffffff;
  border-color: #e29a2e;
  background: #e29a2e;
}

.btn-gold:hover {
  background: transparent;
  color: #e29a2e;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background-color: #304699;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

/* Logo */
.logo-link {
  flex-shrink: 0;
}

.site-logo {
  width: 200px;
  height: auto;
}

/* ---- Primary Nav ---- */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a {
  display: block;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: #e29a2e;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown > a .fa-chevron-down {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.has-dropdown:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  color: #304699;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f4ff;
  color: #0137d2;
}

/* ---- Mobile toggle ---- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open state */
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  background-color: #304699;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ken Burns: separate div so zoom doesn't overflow the section */
.hero-bg {
  position: absolute;
  inset: -4%;          /* slight bleed so edges don't show during zoom */
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1)    translate(0,    0);   }
  to   { transform: scale(1.08) translate(-2%, 1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(48, 70, 153, 0.78);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 100px;   /* extra room above the diagonal shape */
  max-width: 760px;
  margin: 0 auto;
}

/* Diagonal bottom edge */
.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-shape svg {
  display: block;
  width: 100%;
  height: 70px;
}

.hero-content h5.hero-eyebrow {
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: #e29a2e;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-body {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  position: relative;
  background: #1e2d6e;
  padding: 52px 0 80px;   /* extra bottom padding clears the diagonal shape */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: #e29a2e;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Shared diagonal shape used by multiple sections */
.section-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.section-shape svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* ============================================================
   JOIN US SECTION
   ============================================================ */
.join-section {
  padding: 80px 0;
  background: #ffffff;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.join-text h2 {
  margin-bottom: 20px;
  color: #304699;
}

.join-text p {
  color: #777777;
}

.join-image img {
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   ROCKY HILL CHAPTER SECTION
   ============================================================ */
.chapter-section {
  padding: 60px 0;
  background-color: #f4f6fb;
}

.chapter-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(48, 70, 153, 0.1);
  min-height: 480px;
}

.chapter-info {
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-map {
  position: relative;
}

.chapter-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chapter-box h3 {
  color: #304699;
  margin-bottom: 12px;
  font-size: 2rem;
}

.chapter-schedule {
  font-weight: 600;
  color: #304699;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.chapter-location {
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}

.chapter-parking {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.chapter-box .btn {
  margin-bottom: 28px;
}

.chapter-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.chapter-social a {
  color: #304699;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.chapter-social a:hover {
  color: #0137d2;
}

.chapter-social i {
  font-size: 1.4rem;
}

.weather-policy {
  border-top: 1px solid #e8ecf4;
  padding-top: 20px;
  font-size: 0.875rem;
  color: #888;
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.testimonials-heading {
  margin-bottom: 48px;
}

/* Carousel wrapper */
.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 280px;
}

/* Slides — all stacked, only .active is visible */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative; /* keeps the track height sized to the active slide */
}

.quote-icon {
  font-size: 2rem;
  color: #e29a2e;
  margin-bottom: 20px;
  line-height: 1;
}

.quote-text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #304699;
}

.author-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e29a2e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Controls row */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #304699;
  background: transparent;
  color: #304699;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #304699;
  color: #ffffff;
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d6e8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #e29a2e;
  transform: scale(1.25);
}

/* ============================================================
   MEMBERSHIP CTA SECTION
   ============================================================ */
.membership-section {
  padding: 80px 0;
  background: #304699;
  color: #fff;
}

.membership-section h5.section-eyebrow {
  color: #e29a2e;
  margin-bottom: 12px;
}

.membership-section h2 {
  color: #ffffff;
  margin-bottom: 24px;
}

.membership-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.membership-text {
  max-width: 560px;
}

.membership-text .btn-outline {
  margin-top: 12px;
}

.membership-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e29a2e;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(226, 154, 46, 0.35);
}

.step-content {
  padding-top: 8px;
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 0;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: rgba(226, 154, 46, 0.3);
  margin-left: 23px;   /* centers under the 48px circle: (48/2) - 1 */
}

/* ============================================================
   MEETUP SECTION
   ============================================================ */
.meetup-section {
  padding: 70px 0;
  background: #ffffff;
  text-align: center;
}

.meetup-inner h2 {
  margin-bottom: 24px;
}

.meetup-inner h2 a {
  color: #304699;
}

.meetup-inner h2 a:hover {
  color: #e29a2e;
}

.meetup-logo {
  margin: 0 auto;
  max-width: 300px;
  transition: opacity 0.2s ease;
}

.meetup-logo:hover {
  opacity: 0.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #304699;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-logo {
  width: 180px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #e29a2e;
}

.footer-social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.8rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
  color: #e29a2e;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .join-grid,
  .membership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .membership-steps {
    margin-top: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-logo {
    grid-column: 1 / -1;
  }

  /* Rocky Hill page */
  .rh-meeting-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Membership page */
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .fee-callout {
    flex-direction: column;
  }

  .fee-notice {
    max-width: 100%;
  }

  .application-form {
    padding: 36px 28px;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .reference-block {
    padding: 24px 20px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #304699;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }

  .primary-nav.is-open {
    max-height: 600px;
    padding: 12px 0 20px;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1rem;
    width: 100%;
  }

  /* Mobile dropdown stays visible when parent toggled */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0;
    display: none;
  }

  .has-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.85);
    padding-left: 40px;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e29a2e;
  }

  /* Hero */
  .hero-section {
    min-height: 400px;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Sections */
  .join-section,
  .testimonials-section,
  .membership-section,
  .meetup-section {
    padding: 56px 0;
  }

  .carousel-track {
    min-height: 340px;
  }

  .quote-text {
    font-size: 0.95rem;
  }

  .chapter-box {
    grid-template-columns: 1fr;
  }

  .chapter-map {
    height: 300px;
    position: relative;
  }

  .chapter-social {
    gap: 16px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col-logo {
    grid-column: unset;
  }
}

/* ============================================================
   PAGE HERO (interior pages — no Ken Burns)
   ============================================================ */
.page-hero {
  position: relative;
  background-color: #304699;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: -4%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(48, 70, 153, 0.72);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 110px;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero-title {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-hero-body {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   APPLICATION PROCESS SECTION
   ============================================================ */
.process-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.process-section > .container > h5 {
  margin-bottom: 8px;
}

.process-section > .container > h2 {
  margin-bottom: 56px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #304699;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(48, 70, 153, 0.28);
}

.process-step-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   FEES SECTION
   ============================================================ */
.fees-section {
  padding: 0 0 80px;
  background: #ffffff;
}

.fee-callout {
  background: #f4f6fb;
  border-left: 5px solid #e29a2e;
  border-radius: 8px;
  padding: 40px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.fee-callout-main h3 {
  color: #304699;
  margin-bottom: 10px;
}

.fee-amount {
  font-size: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #e29a2e;
  line-height: 1;
  margin-bottom: 4px;
}

.fee-period {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.fee-payment {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

.fee-notice {
  background: #fff8ec;
  border: 1px solid rgba(226, 154, 46, 0.35);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: #555;
  max-width: 380px;
  line-height: 1.6;
  align-self: center;
}

/* ============================================================
   APPLICATION FORM SECTION
   ============================================================ */
.application-section {
  padding: 80px 0;
  background: #f4f6fb;
}

.application-section > .container > h5 {
  margin-bottom: 8px;
}

.application-section > .container > h2 {
  margin-bottom: 12px;
}

.application-section > .container > p {
  margin-bottom: 40px;
  color: #777;
}

.application-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 52px 56px;
  box-shadow: 0 4px 24px rgba(48, 70, 153, 0.08);
  max-width: 880px;
  margin: 0 auto;
}

.form-section-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #304699;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e8ecf4;
  padding-bottom: 10px;
  margin-top: 44px;
  margin-bottom: 28px;
}

.form-section-heading:first-child {
  margin-top: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #304699;
  margin-bottom: 8px;
}

.required {
  color: #e29a2e;
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  margin-top: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dde2f0;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #304699;
  box-shadow: 0 0 0 3px rgba(48, 70, 153, 0.1);
}

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

.form-input-file {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 0;
}

.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-row .form-group {
  margin-bottom: 24px;
}

.form-radio-group {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #555;
  cursor: pointer;
}

.form-radio-label input[type="radio"] {
  accent-color: #304699;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-references-intro {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 28px;
  margin-top: -16px;
}

.reference-block {
  background: #f9fafd;
  border: 1px solid #e8ecf4;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.reference-heading {
  color: #304699;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.file-type-notice {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-type-notice i {
  color: #e29a2e;
}

.file-type-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.form-submit-area {
  margin-top: 44px;
  text-align: center;
  padding-top: 36px;
  border-top: 2px solid #e8ecf4;
}

.form-submit-area p {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 16px;
  margin-bottom: 0;
}

.btn-large {
  padding: 16px 48px;
  font-size: 1rem;
}

/* ============================================================
   ROCKY HILL — MEETING INFO SECTION
   ============================================================ */
.rh-meeting-section {
  padding: 80px 0;
  background: #ffffff;
}

.rh-meeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.rh-meeting-info h2 {
  margin-bottom: 24px;
}

.rh-meeting-info .chapter-social {
  align-items: flex-start;
}

.rh-address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

.rh-address i {
  color: #e29a2e;
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.rh-address strong {
  color: #304699;
  display: block;
}

.rh-parking {
  font-size: 0.9rem;
  color: #888;
  margin-left: 34px;
  margin-bottom: 0;
}

.rh-meeting-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rh-meeting-photo img {
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rh-map {
  border-radius: 8px;
  overflow: hidden;
  height: 260px;
  box-shadow: 0 4px 16px rgba(48, 70, 153, 0.1);
}

.rh-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   LEARN MORE CARDS SECTION
   ============================================================ */
.learn-section {
  padding: 80px 0;
  background: #f4f6fb;
  text-align: center;
}

.learn-section > .container > h5 {
  margin-bottom: 8px;
}

.learn-section > .container > h2 {
  margin-bottom: 52px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.learn-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(48, 70, 153, 0.07);
  display: flex;
  flex-direction: column;
}

.learn-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #304699;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.learn-card-title {
  font-size: 1.15rem;
  color: #304699;
  margin-bottom: 12px;
}

.learn-card-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.learn-card-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.learn-card-toggle i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.learn-card-content {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e8ecf4;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
}

.learn-card-content h4 {
  font-size: 1rem;
  color: #304699;
  margin-top: 20px;
  margin-bottom: 12px;
}

.learn-card-content h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #304699;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 16px;
  margin-bottom: 6px;
}

.learn-card-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 8px;
}

.learn-card-content ul li {
  margin-bottom: 4px;
}

.learn-card-content ul ul {
  margin-top: 4px;
  list-style: circle;
}

/* Agenda list */
.agenda-list {
  list-style: none;
  padding: 0;
}

.agenda-list > li {
  padding: 10px 0;
  border-bottom: 1px solid #e8ecf4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.agenda-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #e29a2e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agenda-list ul {
  list-style: disc;
  padding-left: 18px;
  margin-top: 4px;
}

/* ============================================================
   OPEN SEATS SECTION
   ============================================================ */
.open-seats-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.open-seats-section > .container > h5 {
  margin-bottom: 8px;
}

.open-seats-section > .container > h2 {
  margin-bottom: 16px;
}

.open-seats-section > .container > p {
  margin-bottom: 36px;
  color: #777;
}

.seats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.seat-tag {
  background: #f0f4ff;
  border: 2px solid #dde4f5;
  color: #304699;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.seat-tag:hover {
  background: #304699;
  border-color: #304699;
  color: #ffffff;
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community-section {
  padding: 80px 0;
  background: #f4f6fb;
  text-align: center;
}

.community-section > .container > h5 {
  margin-bottom: 8px;
}

.community-section > .container > h2 {
  margin-bottom: 52px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.community-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(48, 70, 153, 0.07);
}

.community-card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto;
  padding-top: 0;
  display: block;
}

.community-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e29a2e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.community-card h3 {
  font-size: 1.05rem;
  color: #304699;
  margin-bottom: 12px;
}

.community-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   MEMBERS PAGE
   ============================================================ */
.members-section {
  padding: 64px 0 80px;
  background: #f4f6fb;
}

.members-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.75;
}

/* Search bar */
.members-search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.members-search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.members-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0b8d0;
  font-size: 0.9rem;
  pointer-events: none;
}

.members-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid #dde2f0;
  border-radius: 100px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.members-search input:focus {
  outline: none;
  border-color: #304699;
  box-shadow: 0 0 0 3px rgba(48, 70, 153, 0.1);
}

.members-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #aab;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-bottom: 0;
}

.members-no-results {
  text-align: center;
  color: #999;
  font-size: 1rem;
  padding: 48px 0;
}

/* Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.member-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(48, 70, 153, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(48, 70, 153, 0.13);
}

/* Photo */
.member-photo-wrap {
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8edf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}

.member-card:hover .member-photo-wrap img {
  transform: scale(1.04);
}

/* Avatar (no photo) */
.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-color, #304699);
}

.member-initials {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  user-select: none;
}

/* Card body */
.member-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.member-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #304699;
  margin-bottom: 4px;
  line-height: 1.25;
}

.member-company {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e29a2e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.member-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

/* Contact links */
.member-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid #edf0f8;
  margin-top: auto;
}

.member-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #304699;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.member-contact-link i {
  color: #e29a2e;
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.member-contact-link:hover {
  color: #0137d2;
}

/* ============================================================
   RESPONSIVE — MEMBERS
   ============================================================ */
@media (max-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .members-search-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .members-search {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================================
   LEARN MORE MODAL
   ============================================================ */
.learn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 40, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.2s ease;
}

.learn-modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.learn-modal-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 48px 52px 44px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: modalSlideUp 0.25s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.learn-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #aab;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.learn-modal-close:hover {
  background: #f0f4ff;
  color: #304699;
}

.learn-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #304699;
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8ecf4;
}

@media (max-width: 600px) {
  .learn-modal-panel {
    padding: 36px 24px 32px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .site-logo {
    width: 160px;
  }

  .hero-body {
    font-size: 1rem;
  }

  .chapter-section {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Rocky Hill page */
  .community-grid {
    grid-template-columns: 1fr;
  }

  /* Membership page */
  .process-grid {
    grid-template-columns: 1fr;
  }

  .application-form {
    padding: 28px 16px;
  }

  .fee-callout {
    padding: 28px 24px;
  }
}
