/*
Theme Name: Jewish Calendar Tools Theme
Theme URI: https://jewishcalendartools.com/
Author: JewishCalendarTools.com
Author URI: https://jewishcalendartools.com/
Description: Lightweight classic WordPress theme for JewishCalendarTools.com, faithfully built from the locked v9.0 approved prototype.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jct
*/

:root {
  --blue: #1A56B5;
  --blue-dark: #13458F;
  --deep: #0B2F6B;
  --deep2: #164A96;
  --active: #4F83DB;
  --ink: #17233A;
  --muted: #647184;
  --white: #FFFFFF;
  --bg: #F7FAFF;
  --soft: #EDF4FF;
  --icon: #EAF2FF;
  --line: #D9E4F5;
  --shadow: 0 18px 48px rgba(26,86,181,.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(26,86,181,.32);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--blue);
  color: #ffffff;
  padding: 12px 18px;
  z-index: 10000;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Announcement Notice */
.notice {
  padding: 8px 18px;
  text-align: center;
  background: #fff7dc;
  color: #725c23;
  font-size: 11px;
}

.notice b {
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Topbar / Utility Bar */
.topbar {
  min-height: 38px;
  background: var(--deep);
  color: #dbe8ff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 max(18px, calc((100vw - 1220px)/2));
  font-size: 11px;
}

.topbar .bh {
  font-weight: 800;
  color: white;
}

.topbar p {
  flex: 1;
  margin: 0;
  text-align: center;
}

.topbar a {
  font-weight: 800;
}

.topbar .later {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: .08em;
}

/* Header */
.header {
  height: 88px;
  max-width: 1220px;
  margin: auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: white;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--deep);
  position: relative;
  box-shadow: 0 7px 18px rgba(11,47,107,.14);
  display: block;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid #dce9ff;
  border-radius: 5px;
}

.mark::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 16px;
  border-top: 2px solid #dce9ff;
}

.brand strong {
  display: block;
  font: 600 17px Georgia, "Times New Roman", serif;
  color: var(--deep);
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: .28em;
  font-weight: 900;
  color: var(--blue);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 800;
  color: #34465f;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #34465f;
}

.nav a:hover {
  color: var(--blue);
}

.findBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--deep);
  font-weight: 900;
  font-size: 11px;
}

.findBtn:hover {
  border-color: #9db9e8;
  background: var(--bg);
}

.mobileMenu {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  width: 44px;
  height: 44px;
  font-weight: 900;
  color: var(--deep);
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0, #f8fbff 100%);
  text-align: center;
  padding: 45px 18px 30px;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid #eef4ff;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -250px;
  top: -270px;
}

.hero::after {
  width: 370px;
  height: 370px;
  right: -220px;
  top: -230px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .17em;
  font-weight: 900;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--deep);
  font: 500 clamp(42px, 5vw, 64px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.hero .sub {
  max-width: 740px;
  margin: 17px auto 0;
  color: #52647d;
  font-size: 15px;
  line-height: 1.7;
}

.heroActions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.primary, .secondary {
  min-height: 49px;
  padding: 0 19px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.primary:hover {
  background: var(--blue-dark);
}

.secondary {
  background: white;
  color: var(--deep);
}

.secondary:hover {
  border-color: #96b4e5;
  background: #fbfdff;
}

.trustline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 17px;
  color: #4e627c;
  font-size: 10px;
  font-weight: 800;
}

.trustline span::before {
  content: "✓";
  color: var(--blue);
  margin-right: 5px;
}

/* Workspace Section */
.workspace {
  max-width: 1220px;
  margin: 0 auto 70px;
  padding: 0 26px;
  position: relative;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 0;
}

.tabs button, .tabs a {
  min-height: 72px;
  padding: 12px 9px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: #f5f9ff;
  color: var(--deep);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tabs button:hover, .tabs a:hover {
  background: #eaf2ff;
  border-color: #abc2e8;
}

.tabs button.active, .tabs a.active {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}

.tabs button.active::after, .tabs a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 4px;
  background: var(--active);
  border-radius: 4px 4px 0 0;
}

.surface {
  display: grid;
  grid-template-columns: 48% 52%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.formPanel {
  padding: 34px;
  border-right: 1px solid var(--line);
}

.resultPanel {
  padding: 38px;
  display: flex;
  align-items: center;
  min-height: 460px;
  background: linear-gradient(150deg, #f9fbff, #eef5ff);
}

.formPanel h2, .resultPanel h2 {
  margin: 0;
  color: var(--deep);
  font: 500 30px/1.1 Georgia, "Times New Roman", serif;
}

.intro {
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.fields {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  color: #33445b;
  font-size: 10px;
  font-weight: 900;
}

.field input, .field select {
  width: 100%;
  height: 45px;
  padding: 0 11px;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}

.checkrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: #50617a;
  font-size: 10px;
  font-weight: 700;
}

.calculate {
  width: 100%;
  min-height: 49px;
  margin-top: 17px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.calculate:hover {
  background: var(--blue-dark);
}

.privacy {
  margin: 10px 0 0;
  color: #6a7890;
  text-align: center;
  font-size: 9px;
}

.empty, .success {
  width: 100%;
  text-align: center;
}

.resultIcon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  color: var(--blue);
  font: 600 24px Georgia, serif;
  box-shadow: 0 10px 26px rgba(26,86,181,.08);
}

.kicker {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 900;
}

.resultPanel h2 {
  font-size: 34px;
}

.resultPanel p {
  max-width: 500px;
  margin: 12px auto;
  color: #60718a;
  font-size: 12px;
  line-height: 1.7;
}

.method {
  max-width: 540px;
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid #cbdcf4;
  border-radius: 10px;
  background: white;
  color: #4f6078;
  font-size: 10px;
  line-height: 1.6;
  text-align: left;
}

.demo {
  margin-top: 12px !important;
  font-size: 8px !important;
  color: #75839a !important;
}

/* Sections & Cards */
.section {
  max-width: 1220px;
  margin: auto;
  padding: 72px 26px;
}

.section.soft {
  max-width: none;
  background: var(--bg);
}

.sectionInner {
  max-width: 1220px;
  margin: auto;
}

.sectionHead {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.sectionHead h2 {
  margin: 0;
  color: var(--deep);
  font: 500 clamp(34px, 4vw, 48px)/1.08 Georgia, "Times New Roman", serif;
}

.sectionHead p {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cardGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 2;
  position: relative;
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-align: left;
  box-shadow: 0 8px 24px rgba(26,86,181,.04);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: block;
  text-decoration: none;
}

.card:nth-child(7) {
  grid-column: 3 / span 2;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #96b4e5;
  box-shadow: 0 15px 34px rgba(26,86,181,.10);
}

.cardNum {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #9aa8bc;
  font: 600 13px Georgia, serif;
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.badge.later {
  background: #f1f3f7;
  color: #697489;
}

.cardIcon {
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: var(--icon);
  display: grid;
  place-items: center;
  color: var(--blue);
  font: 600 18px Georgia, serif;
  margin-bottom: 17px;
}

.card h3 {
  margin: 0;
  color: var(--deep);
  font: 600 22px/1.15 Georgia, "Times New Roman", serif;
}

.card p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.cardLink {
  display: block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

/* Methodology */
.methodology {
  max-width: 1220px;
  margin: auto;
  padding: 76px 26px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.methodology h2 {
  margin: 0;
  color: var(--deep);
  font: 500 44px/1.08 Georgia, serif;
}

.methodology > div > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.principles {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.principles div {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.principles div:last-child {
  border-bottom: 0;
}

.principles strong {
  color: var(--deep);
  font-size: 11px;
}

.principles p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Location Grid */
.locationGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: auto;
}

.location {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  font-size: 11px;
  font-weight: 900;
  color: var(--deep);
  text-decoration: none;
}

.location b {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 9px;
}

.location span {
  margin-left: auto;
  color: var(--blue);
}

/* FAQ */
.faq {
  max-width: 880px;
  margin: auto;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
}

summary {
  list-style: none;
  cursor: pointer;
  color: var(--deep);
  font-weight: 900;
  font-size: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* Dedicated / Tool Page layout */
.dedicated {
  max-width: 1180px;
  margin: auto;
  padding: 28px 26px 80px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--blue);
  font-weight: 900;
}

.crumbs button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 900;
}

.dedHero {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 55px;
  align-items: end;
  padding: 24px 0 22px;
}

.dedHero h1 {
  margin: 0;
  color: var(--deep);
  font: 500 clamp(38px, 4.5vw, 56px)/1.04 Georgia, serif;
  letter-spacing: -.035em;
}

.dedHero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.freeNote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.freeNote span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
}

.demoLabel {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff7dc;
  color: #715d2a;
  font-size: 9px;
}

.dedTool {
  margin-top: 16px;
}

.dedCopy {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
  padding: 72px 0 10px;
}

.copyNav {
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: white;
}

.copyNav strong {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 8px;
  letter-spacing: .14em;
}

.copyNav a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #53657e;
}

.article h2 {
  margin: 0 0 13px;
  color: var(--deep);
  font: 500 33px Georgia, serif;
}

.article h3 {
  margin: 32px 0 10px;
  color: var(--deep);
  font: 600 20px Georgia, serif;
}

.article p {
  color: #5f7088;
  font-size: 12px;
  line-height: 1.8;
}

.article .facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.article .fact {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.article .fact b {
  display: block;
  color: var(--deep);
  font-size: 10px;
}

.article .fact span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.related {
  padding: 55px 0 0;
}

.related h2 {
  color: var(--deep);
  font: 500 31px Georgia, serif;
}

.relatedGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.relatedGrid a, .relatedGrid button {
  padding: 17px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--deep);
  font-size: 10px;
  font-weight: 900;
  display: block;
  text-decoration: none;
}

.coming {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed #bfcde0;
  border-radius: 16px;
  background: #f7f9fc;
}

.coming .cardIcon {
  margin: 0 auto 16px;
}

.coming h2 {
  color: var(--deep);
  font: 500 37px Georgia, serif;
  margin: 0 0 10px;
}

.coming p {
  max-width: 590px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: #082756;
  color: #cbd9f0;
  padding: 55px 26px 22px;
}

.footerInner {
  max-width: 1220px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr;
  gap: 50px;
}

.footer h3 {
  margin: 0 0 10px;
  color: white;
  font: 600 20px Georgia, serif;
}

.footer p {
  margin: 0;
  color: #b7c8e3;
  font-size: 10px;
  line-height: 1.7;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #d8e5f7;
  font-size: 10px;
}

.footer a:hover {
  color: white;
}

.legal {
  max-width: 1220px;
  margin: 35px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9fb1ce;
  font-size: 9px;
}

.legal a {
  display: inline;
  color: #9fb1ce;
}

.legal a:hover {
  color: white;
}

/* Responsive Media Queries */
@media(max-width: 1000px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .mobileMenu {
    display: flex;
  }
  .findBtn {
    display: none;
  }
  .tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .surface {
    grid-template-columns: 1fr;
  }
  .formPanel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cardGrid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card {
    grid-column: span 2;
  }
  .card:nth-child(7) {
    grid-column: 2 / span 2;
  }
  .methodology {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dedHero, .dedCopy {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .copyNav {
    display: none;
  }
}

@media(max-width: 680px) {
  .notice {
    text-align: left;
  }
  .topbar {
    padding: 8px 14px;
  }
  .topbar p {
    text-align: left;
  }
  .topbar a {
    display: none;
  }
  .header {
    height: 75px;
    padding: 0 16px;
  }
  .brand strong {
    font-size: 15px;
  }
  .mark {
    width: 41px;
    height: 41px;
  }
  .hero {
    padding: 34px 16px 24px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero .sub {
    font-size: 13px;
  }
  .heroActions {
    flex-direction: column;
  }
  .primary, .secondary {
    width: 100%;
  }
  .workspace {
    padding: 0 12px;
    margin-bottom: 52px;
  }
  .tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 7px;
  }
  .tabs button, .tabs a {
    min-width: 145px;
    scroll-snap-align: start;
  }
  .formPanel, .resultPanel {
    padding: 25px 18px;
  }
  .resultPanel {
    min-height: 390px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 58px 16px;
  }
  .cardGrid {
    grid-template-columns: 1fr;
  }
  .card, .card:nth-child(7) {
    grid-column: auto;
    min-height: 220px;
  }
  .methodology {
    padding: 58px 16px;
  }
  .methodology h2 {
    font-size: 36px;
  }
  .locationGrid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 45px 18px 20px;
  }
  .footerInner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal {
    flex-direction: column;
  }
  .dedicated {
    padding: 22px 14px 60px;
  }
  .dedHero {
    padding-top: 15px;
  }
  .dedHero h1 {
    font-size: 39px;
  }
  .article .facts {
    grid-template-columns: 1fr;
  }
  .relatedGrid {
    grid-template-columns: 1fr;
  }
}

@media(prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
