/* =========================================================
   HappyChannukah.com — styles
   Layout mirrors HappyPurim.com; palette is Chanukah blue,
   silver and gold.
   ========================================================= */

:root {
  --blue-900: #071d4f;
  --blue-800: #0b2d78;
  --blue-700: #1240a3;
  --blue-600: #1d5fd1;
  --blue-400: #5b8fe8;
  --blue-50:  #f2f6fd;
  --gold:     #f2b01e;
  --gold-dk:  #d6940a;
  --gold-lt:  #ffd76a;
  --text:     #505964;
  --heading:  #2e3134;
  --footer:   #1c2433;
  --white:    #ffffff;
  --radius:   6px;
  --shadow:   0 6px 24px rgba(10, 30, 80, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue-600); }

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 70px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-family: "Lobster", cursive;
  font-size: 30px;
  color: var(--blue-600);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--gold-dk); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav ul a {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.main-nav ul a:hover,
.main-nav ul a.active { color: var(--blue-600); }

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid #e3e6ea;
}
.icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6b7480;
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background .15s;
}
.icon-circle:hover { background: var(--blue-600); }
.icon-circle svg { width: 16px; height: 16px; fill: currentColor; }
.admin-link {
  margin-left: 10px;
  font-size: 13px;
  line-height: 1.25;
  color: var(--blue-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: var(--blue-600);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 72% 55%, rgba(255, 200, 80, .28), transparent 55%),
    linear-gradient(115deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  padding: 90px 0 70px;
  min-height: 640px;
}
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 8%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 75%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 92%, #ffe9a8 50%, transparent 51%);
  opacity: .7;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }

.hero-menorah {
  position: absolute;
  right: 3%;
  bottom: -10px;
  width: min(54vw, 620px);
  opacity: .95;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}
.flame {
  transform-origin: 0 0;
  animation: flicker 1.6s ease-in-out infinite alternate;
}
.flames g:nth-child(2n) .flame { animation-duration: 1.2s; }
.flames g:nth-child(3n) .flame { animation-duration: 1.9s; animation-delay: -.4s; }
@keyframes flicker {
  0%   { transform: scale(1, 1) skewX(0deg); }
  50%  { transform: scale(.92, 1.08) skewX(3deg); }
  100% { transform: scale(1.05, .95) skewX(-3deg); }
}

.hero-dreidel {
  position: absolute;
  left: 46%;
  top: 70px;
  width: 54px;
  opacity: .85;
  animation: spin-float 6s ease-in-out infinite;
}
@keyframes spin-float {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%      { transform: translateY(-16px) rotate(12deg); }
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 90px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.hero-demo h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--gold-lt);
}
.hero-demo p {
  font-size: 14px;
  font-weight: 500;
  max-width: 470px;
  margin: 0 0 26px;
}

/* Login card */
.login-card {
  flex: 0 0 172px;
  width: 172px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  margin-top: -60px;
}
.login-card input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 11px;
  padding: 8px 6px;
  margin-bottom: 18px;
  border: 1px solid #d5d9df;
  border-radius: 2px;
  color: var(--text);
}
.login-card input[type="text"]:focus { outline: 2px solid var(--blue-400); border-color: transparent; }
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text);
  margin-bottom: 14px;
  gap: 6px;
}
.login-row label { display: flex; align-items: center; gap: 4px; }
.login-row a { color: var(--blue-600); }
.btn-signin {
  width: 100%;
  background: var(--blue-600);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px;
  border-radius: 20px;
}
.btn-signin:hover { background: var(--blue-700); }

/* ---------- Info tabs ---------- */
.info-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.info-tab {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  background: var(--white);
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.info-tab-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.tab-icon { width: 18px; height: 18px; flex: none; fill: #c5cad1; }
.info-tab-arrow {
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  background: var(--gold);
  transition: background .15s;
}
.info-tab-arrow svg { width: 18px; height: 18px; fill: var(--white); transition: transform .2s; }
.info-tab:hover .info-tab-arrow,
.info-tab[aria-expanded="true"] .info-tab-arrow { background: var(--blue-600); }
.info-tab[aria-expanded="true"] .info-tab-arrow svg { transform: rotate(90deg); }

.info-panel {
  background: var(--blue-50);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  margin-top: 12px;
  font-size: 15px;
}
.info-panel p { margin: 0; }

/* ---------- Start Giving ---------- */
.start-giving {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 6px;
}
.section-title.center { justify-content: center; margin-bottom: 36px; }
.title-icon { width: 22px; height: 22px; fill: #c5cad1; }
.sg-copy p { font-size: 16px; margin: 0 0 22px; }

.sg-art { display: grid; place-items: center; }
.sg-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue-400), var(--blue-700));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(29, 95, 209, .1), 0 0 0 28px rgba(242, 176, 30, .12);
}
.sg-circle svg { width: 130px; height: 130px; }

/* ---------- How it works ---------- */
.how-it-works {
  background: var(--blue-50);
  padding: 60px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 { color: var(--heading); font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.step p { margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial-wrap { padding-top: 60px; padding-bottom: 50px; }
.testimonial {
  display: grid;
  grid-template-columns: 2fr 1fr;
  box-shadow: var(--shadow);
  background: var(--white);
}
.testimonial-quote { position: relative; padding: 40px 40px 40px 60px; }
.quote-mark {
  position: absolute;
  left: 30px;
  top: 10px;
  font-size: 64px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.testimonial-quote p { font-size: 16px; margin: 10px 0 0; }
.testimonial-author {
  background: #f6f7f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-400);
  overflow: hidden;
  margin-bottom: 8px;
}
.avatar svg { width: 100%; height: 100%; }
.testimonial-author strong { color: var(--heading); font-size: 17px; font-weight: 600; }
.testimonial-author span { color: var(--gold-dk); font-size: 12px; font-weight: 600; }

.divider { border: 0; border-top: 1px solid #e6e8eb; max-width: 520px; margin: 20px auto 40px; }
.serving {
  text-align: center;
  color: var(--blue-600);
  letter-spacing: .06em;
  margin: 0 0 50px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #dfe4ec; font-size: 13px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 30px;
}
.site-footer h5 { color: var(--gold); font-size: 13px; font-weight: 500; margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer p { margin: 0; }
.site-footer a { color: #dfe4ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 16px 0;
  font-size: 12px;
  color: #9aa4b4;
}
.footer-bottom a { color: #9aa4b4; }
.sep { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 14px; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 12px; }
  .header-social { border-left: 0; padding-left: 0; }

  .hero { padding: 50px 0 280px; min-height: 0; }
  .hero-inner { flex-direction: column-reverse; }
  .login-card { margin-top: 0; width: 100%; max-width: 320px; flex-basis: auto; }
  .hero h1 { margin-bottom: 40px; }
  .hero-menorah { width: 92%; right: 4%; }
  .hero-dreidel { left: auto; right: 20px; top: 20px; }

  .info-tabs,
  .start-giving,
  .steps,
  .testimonial { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .logo { font-size: 24px; }
  .hero h1 { font-size: 36px; }
  .btn-gold { padding: 14px 40px; font-size: 16px; }
  .testimonial-quote { padding: 40px 20px 30px 40px; }
  .quote-mark { left: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Inner pages
   ========================================================= */

/* Curved page banner (mirrors HappyPurim's orange arc) */
.page-banner {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: 70px 16px 90px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 200, 80, .3), transparent 60%),
    linear-gradient(115deg, var(--blue-900), var(--blue-700) 55%, var(--blue-600));
  border-bottom-left-radius: 50% 60px;
  border-bottom-right-radius: 50% 60px;
}
.page-banner::before,
.page-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 215, 106, .25);
  border-radius: 50%;
  pointer-events: none;
}
.page-banner::before { width: 900px; height: 900px; left: -300px; top: -620px; }
.page-banner::after  { width: 700px; height: 700px; right: -260px; top: -460px; }
.page-banner .hero-stars { opacity: .5; }
.page-banner h1 {
  position: relative;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.page-banner p {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  color: #e3ebfb;
}

.page-section { padding-top: 50px; padding-bottom: 30px; }
.page-section h3 { color: var(--heading); font-size: 18px; font-weight: 600; margin: 28px 0 4px; }
.page-section p { font-size: 16px; margin: 0 0 18px; }
.lead { font-size: 17px; }

.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.side-card {
  background: var(--blue-50);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.side-card h4 { margin: 0 0 8px; color: var(--blue-700); font-size: 18px; }
.side-card p { font-size: 14px; }
.side-card .btn-gold { padding: 12px 30px; font-size: 15px; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform .15s;
}
.feature:hover { transform: translateY(-3px); }
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--blue-700); }
.feature p, .feature ul { margin: 0; font-size: 14px; }
.feature ul { padding-left: 18px; }

/* Calculator / example box */
.example-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 10px;
}
.example-box label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--heading); gap: 6px; }
.example-box input {
  font-family: inherit;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #d5d9df;
  border-radius: 4px;
}
.example-result {
  font-size: 18px;
  color: var(--heading);
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.example-result strong { color: var(--blue-600); font-size: 26px; }

/* FAQ accordion */
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { margin-bottom: 16px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(10, 30, 80, .08);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 16px 20px;
  font-weight: 600;
  color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 48px;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -16px 0;
  background: var(--gold);
  color: var(--white);
  font-size: 24px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; background: var(--blue-600); }
.faq-item .faq-body { padding: 0 20px 16px; }
.faq-item .faq-body p:last-child,
.faq-item .faq-body ul:last-child { margin-bottom: 0; }

/* Testimonials list */
.testimonial-list { display: grid; gap: 26px; }
.testimonial-list .testimonial-quote p { font-size: 15px; }

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--heading); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid #d5d9df;
  border-radius: 4px;
  color: var(--text);
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue-400); border-color: transparent; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.contact-form .radio-row { display: flex; gap: 20px; font-weight: 400; }
.contact-form .radio-row label { flex-direction: row; align-items: center; font-weight: 400; }
.form-note { font-size: 13px; color: #8a929c; }
.form-status { font-weight: 600; color: var(--blue-700); }
.form-status.error { color: #c0392b; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.post-thumb {
  height: 150px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: var(--gold-lt);
  font-size: 54px;
}
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--gold-dk); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post h3 { margin: 6px 0 10px; font-size: 18px; }
.post h3 a { color: var(--heading); text-decoration: none; }
.post h3 a:hover { color: var(--blue-600); }
.post p { font-size: 14px; margin: 0 0 14px; flex: 1; }
.read-more { font-weight: 600; font-size: 14px; text-decoration: none; }
.read-more::after { content: " \2192"; }

/* Article page */
.article { max-width: 780px; }
.article h2 { color: var(--blue-600); margin-top: 34px; }
.article ul { font-size: 16px; padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 36px;
  margin: 30px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h4 { margin: 0 0 4px; font-size: 22px; color: var(--gold-lt); }
.cta-band p { margin: 0; font-size: 15px; }
.cta-band .btn-gold { flex: none; padding: 14px 40px; }

@media (max-width: 900px) {
  .page-banner h1 { font-size: 36px; }
  .two-col,
  .contact-form,
  .blog-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .example-box { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .feature-grid,
  .example-box { grid-template-columns: 1fr; }
}
