/* =========================================================
   Congregation Anshe Sholom of New Rochelle — Site Styles
   ========================================================= */

:root {
  --navy: #0c2340;
  --navy-light: #1a3a5c;
  --teal: #2c5873;
  --teal-brand: #3db8d1;     /* matches logo teal */
  --gold: #c5a04e;
  --gold-light: #e8c766;
  --red-brand: #c8323d;      /* matches logo red */
  --cream: #faf6ec;
  --cream-warm: #f4ecd8;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6773;
  --line: #e5dfd0;
  --shadow: 0 10px 40px rgba(12,35,64,0.08);
  --shadow-lg: 0 20px 60px rgba(12,35,64,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); }
img { max-width: 100%; display: block; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left span { margin-right: 18px; }
.topbar-left .sep { opacity: 0.3; margin: 0 12px; }
.topbar-right a { display: inline-block; margin-left: 14px; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.logo img { height: 64px; width: auto; }
/* Logo now has text built in — hide the separate text labels */
.logo-text { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav a:hover,
.nav a.active {
  background: var(--cream);
  color: var(--navy);
}
.nav .btn-donate {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  margin-left: 8px;
  padding: 10px 22px;
}
.nav .btn-donate:hover {
  background: var(--gold-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; gap: 0; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 16px; }
  .nav .btn-donate { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
  .logo-text { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(197,160,78,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(61,184,209,0.1) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(197,160,78,0.4);
  border-radius: 100px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.85);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Simpler page-top hero for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}
.page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  font-size: 17px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(197,160,78,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold-light);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-cream { background: var(--cream); }
.section-warm { background: var(--cream-warm); }
.section-navy { background: var(--navy); color: var(--white); }

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.section-subtitle {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* ============ FEATURE CARD ============ */
.feature-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 48px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197,160,78,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.feature-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
@media (max-width: 720px) {
  .feature-inner { grid-template-columns: 1fr; }
  .feature-card { padding: 32px; }
}
.feature-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-weight: 600;
}
.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}
.feature-date {
  text-align: center;
  border: 1px solid rgba(197,160,78,0.4);
  border-radius: 8px;
  padding: 16px 24px;
  min-width: 140px;
}
.feature-date .month {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
}
.feature-date .day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  margin: 4px 0;
}
.feature-date .year {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.feature-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ SERVICE TIMES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
}
.service-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.service-time {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream);
}
.service-time:last-child { border: none; }
.service-time strong { color: var(--navy); font-weight: 600; }
.service-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============ SHABBAT WIDGET ============ */
.shabbat-widget {
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-top: 28px;
}
.shabbat-widget .label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.shabbat-widget h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 16px;
}
.shabbat-times {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.shabbat-time {
  text-align: center;
}
.shabbat-time .t-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.shabbat-time .t-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}
.shabbat-parsha {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(197,160,78,0.3);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ SPLIT LAYOUT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
.split-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.split-text p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.split-text .label {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.split-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-image.has-image {
  background: transparent;
  aspect-ratio: auto;
  display: block;
  height: auto;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(12, 35, 64, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}
.split-image img { width: 100%; height: auto; display: block; object-fit: cover; }
.split-image.has-image::after { display: none; }  /* drop the inner gold border on real photos */
.split-image::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(197,160,78,0.4);
  border-radius: 12px;
  pointer-events: none;
}
.split-image .placeholder {
  text-align: center;
  font-size: 14px;
  z-index: 1;
}
.split-image .placeholder span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ============ QUOTE ============ */
.quote-section {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 400px;
  color: rgba(197,160,78,0.06);
  line-height: 1;
}
.quote-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 24px;
}
.quote-text em {
  color: var(--gold-light);
  font-style: normal;
}
.quote-attr {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============ NEWS CARDS ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream));
  position: relative;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(197,160,78,0.15) 100%);
  pointer-events: none;
}
.news-thumb .news-cat {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--white);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 1;
}
.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}
.news-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.news-more {
  margin-top: 16px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #b88f3d 100%);
  color: var(--navy);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0.9;
}
.cta-banner .btn {
  background: var(--navy);
  color: var(--gold-light);
}
.cta-banner .btn:hover {
  background: var(--navy-light);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.site-footer .logo-text .logo-name { color: var(--white); }
.site-footer p, .site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
}
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

/* ============ BULLETIN GRID ============ */
.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.bulletin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.bulletin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.bulletin-card .thumb {
  aspect-ratio: 8.5/11;
  background: var(--cream);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.bulletin-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bulletin-card .info {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bulletin-card .info strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--navy);
}
.bulletin-card .info .pdf-tag {
  font-size: 10px;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 700;
}

/* ============ PROSE CONTENT ============ */
.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--navy);
  margin: 48px 0 20px;
  font-weight: 500;
}
.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 600;
}
.prose p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.prose ul {
  margin: 0 0 18px 20px;
  color: var(--text);
  line-height: 1.8;
}

/* ============ FORMS (contact etc.) ============ */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-shell label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-shell input,
.form-shell textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--cream);
}
.form-shell input:focus,
.form-shell textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-shell textarea { min-height: 140px; resize: vertical; }
