/* =============================================
   MohelUSA.org — Global Stylesheet
   ============================================= */

:root {
  --navy:      #1b3a6b;
  --navy-dark: #122850;
  --gold:      #c9a84c;
  --gold-light:#e8c96b;
  --white:     #ffffff;
  --off-white: #f7f8fc;
  --gray-100:  #f1f3f7;
  --gray-200:  #e2e6ef;
  --gray-400:  #9aa3b5;
  --gray-700:  #4a5568;
  --gray-900:  #1a202c;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(27,58,107,0.10);
  --shadow-lg: 0 8px 32px rgba(27,58,107,0.15);
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-links a.btn-donate {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  margin-left: 8px;
}
.nav-links a.btn-donate:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../Mohel/Image_fx-175.jpg');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.28;
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: white;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: 1.15rem;
  max-width: 540px;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  color: white;
}
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-1px);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--gold);
  padding: 20px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   SECTIONS
   ============================================= */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* =============================================
   SEARCH WIDGET (Homepage)
   ============================================= */
.search-section {
  background: var(--off-white);
  padding: 56px 24px;
}
.search-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}
.search-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.search-card p {
  color: var(--gray-700);
  margin-bottom: 24px;
}
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.search-select {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: white;
  cursor: pointer;
  transition: border-color var(--transition);
}
.search-select:focus {
  outline: none;
  border-color: var(--navy);
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gold);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* =============================================
   MOHEL DIRECTORY
   ============================================= */
.directory-section { background: var(--off-white); padding: 56px 24px; }

.filters-bar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.filters-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}
.filter-select, .filter-input {
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--gray-900);
  background: white;
  transition: border-color var(--transition);
  width: 100%;
}
.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--navy);
}
.filter-btn {
  padding: 10px 24px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.93rem;
  transition: background var(--transition);
  height: 42px;
  white-space: nowrap;
  align-self: flex-end;
}
.filter-btn:hover { background: var(--navy-dark); }
.filter-btn.reset {
  background: var(--gray-200);
  color: var(--gray-700);
}
.filter-btn.reset:hover { background: var(--gray-400); color: white; }

.results-meta {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count strong { color: var(--navy); }

.mohel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.mohel-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mohel-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
  transform: translateY(-1px);
}
.mohel-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.mohel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tag-qual {
  background: #e8f0ff;
  color: var(--navy);
}
.tag-qual.md    { background: #e6f4ea; color: #1a6b3a; }
.tag-qual.do    { background: #e6f4ea; color: #1a6b3a; }
.tag-qual.rabbi { background: #e8eeff; color: #2a3a8b; }
.tag-qual.chabad{ background: #fff3e0; color: #b35d00; }
.tag-qual.certified { background: #f3e8ff; color: #6b1a8b; }
.tag-state {
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
}
.mohel-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--gray-700);
  margin-top: 4px;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}
.mohel-contact a { color: var(--navy); font-weight: 500; }
.mohel-contact a:hover { color: var(--gold); }
.contact-row { display: flex; align-items: center; gap: 8px; }
.contact-icon { font-size: 0.9rem; opacity: 0.6; }

.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-700);
  grid-column: 1 / -1;
}
.no-results h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.2rem; }

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 60px 24px;
  color: white;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   CONTENT PROSE
   ============================================= */
.prose-section { padding: 64px 24px; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.prose p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li {
  list-style: disc;
  color: var(--gray-700);
  margin-bottom: 6px;
  line-height: 1.65;
}
.prose a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-question.open { background: var(--navy); color: white; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 1.1rem;
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 20px 24px;
  background: var(--off-white);
  color: var(--gray-700);
  line-height: 1.75;
  border-top: 1px solid var(--gray-200);
}
.faq-answer.open { display: block; }

/* =============================================
   FORM
   ============================================= */
.form-section { padding: 64px 24px; background: var(--off-white); }
.form-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: white;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 6px;
}
.required { color: #e53e3e; }

/* =============================================
   DONATE
   ============================================= */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.donate-option {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.donate-option:hover, .donate-option.selected {
  border-color: var(--navy);
  background: var(--off-white);
}
.donate-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}
.donate-label { font-size: 0.82rem; color: var(--gray-700); margin-top: 4px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-logo p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-nav { position: sticky; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 28px; }
  .search-row { flex-direction: column; }
  .filters-row { flex-direction: column; }
  .hero-content { padding: 60px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mohel-grid { grid-template-columns: 1fr; }
}
