/* ============================================
   Yachad BeYeshua — Shared styles
   Used by: yachad-beyeshua-homepage.html, contact.html, membership.html
   Page-specific styles (hero sections, section layouts, buttons, etc.)
   stay in each page's own <style> block.
   ============================================ */

:root {
  --navy: #1a2744;
  --royal: #1e3a8a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --cream: #f9f5ed;
  --white: #ffffff;
  --text: #2d2d2d;
  --muted: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  backdrop-filter: blur(8px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo picture { display: block; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; font-weight: 700;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-donate {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 22px; border-radius: 2px;
}
.nav-donate:hover { background: var(--navy); color: var(--white) !important; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── FOOTER ── */
footer {
  background: #0f1a33;
  padding: 60px 8% 40px;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 12px;
}
.footer-brand picture { display: block; }
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s; width: fit-content;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom { font-size: 0.8rem; text-align: center; }

/* ── FOOTER MAILCHIMP SIGNUP ── */
.footer-signup {
  max-width: 440px;
}
.footer-signup-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; color: var(--white); margin-bottom: 0.3rem;
}
.footer-signup-sub {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  margin-bottom: 1.4rem; line-height: 1.6;
}
.mc-fields {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.mc-fields input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 13px;
  font-family: 'Lato', sans-serif; font-size: 0.88rem;
  border-radius: 2px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.mc-fields input::placeholder { color: rgba(255,255,255,0.3); }
.mc-fields input:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); }
/* Mailchimp feedback — mc-validate.js writes results into these */
#mce-responses .response {
  font-size: 0.82rem; line-height: 1.5;
  padding: 9px 12px; margin-bottom: 0.9rem;
  border-radius: 2px; border-left-width: 2px; border-left-style: solid;
}
#mce-responses #mce-error-response {
  color: #ffb4a8; background: rgba(255,90,70,0.1); border-left-color: #ff6b52;
}
#mce-responses #mce-error-response a { color: inherit; text-decoration: underline; }
#mce-responses #mce-success-response {
  color: var(--gold); background: rgba(255,255,255,0.06); border-left-color: var(--gold);
}
#mc-embedded-subscribe {
  background: var(--gold); color: var(--navy);
  border: none; cursor: pointer;
  padding: 11px 28px; width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
#mc-embedded-subscribe:hover { background: var(--white); color: var(--navy); }
#mc-embedded-subscribe:disabled {
  background: rgba(201,168,76,0.4); color: rgba(11,26,47,0.6); cursor: default;
}

/* ── RESPONSIVE (shared nav/footer) ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding: 0.5rem 5% 1.25rem;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links li { width: 100%; }
  nav .nav-links a { display: block; padding: 12px 0; }
  nav .nav-links .nav-donate { display: inline-block; margin-top: 8px; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
