/* =========================================================
   Covenant Judaism — Inspiring Jewish Visual (Full Reset CSS)her
   Works with your existing HTML classes:
   site-header, nav-wrap, brand, hero, container, section, card,
   grid, pillars, table-wrap, btn, badge, footer, book-hero, etc.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  /* Brand palette (Jewish flag / Star blue family) */
  --blue-900: #0b2a6f;
  --blue-800: #0b3a8a;
  --blue-700: #0038b8;   /* Star of David blue */
  --blue-600: #0b4ea2;
  --blue-100: #eaf2ff;
  --blue-050: #f5f9ff;

  /* Ink + neutrals */
  --ink: #142236;        /* blue-black for body text */
  --ink-muted: #4a5d73;  /* muted */
  --line: #d6e2f0;

  /* Surfaces */
  --bg: #ffffff;         /* parchment/flag white */
  --surface: #f7f9fc;    /* soft blue-white */
  --surface-2: #eef4fb;  /* hover/alt surface */

  /* Accents */
  --gold: #c89b3c;       /* covenant gold (restrained) */
  --link: var(--blue-600);

  /* Layout */
  --max: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 30, 80, 0.08);

  /* Type scale */
  --fs-hero: clamp(30px, 4vw, 44px);
  --fs-h2: clamp(20px, 2.2vw, 26px);
  --fs-h3: clamp(16px, 1.6vw, 19px);
  --fs-body: 16px;
}

/* ---------- Global Reset ---------- */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }
:focus-visible{
  outline: 3px solid rgba(0,56,184,0.35);
  outline-offset: 3px;
}
::selection{
  background: rgba(0,56,184,0.15);
}

/* ---------- Body + Background ---------- */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: var(--fs-body);
}

/* Subtle “tallit stripe” vibe (very light, non-intrusive) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,56,184,0.035) 0%, rgba(255,255,255,0) 28%),
    repeating-linear-gradient(
      90deg,
      rgba(0,56,184,0.018) 0px,
      rgba(0,56,184,0.018) 10px,
      rgba(255,255,255,0) 10px,
      rgba(255,255,255,0) 80px
    );
  opacity: 0.55;
  z-index: -1;
}

/* ---------- Container ---------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 64px 18px;
}

/* ---------- Header / Navigation (simple, usable on mobile) ---------- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Optional tallit stripe accent under header */
header.site-header::after{
  content:"";
  display:block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600), var(--blue-700));
  opacity: 0.35;
}

.nav-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.brand, .brand:hover{ text-decoration:none !important; } /* prevents underline-on-hover */
.brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand .title{
  display:flex;
  flex-direction:column;
  line-height: 1.15;
}
.brand .title strong{
  color: var(--blue-800);
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand .title span{
  color: var(--ink-muted);
  font-size: 12px;
}

/* Nav stays visible on mobile by wrapping */
nav{
  display:flex;
  flex-wrap: wrap;
  justify-content:flex-end;
  gap: 6px;
  align-items:center;
  max-width: 65%;
}
nav a{
  display:inline-block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--blue-900);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
nav a:hover{
  background: var(--blue-050);
  border-color: rgba(0,56,184,0.12);
  text-decoration:none;
}
nav a.active{
  background: rgba(0,56,184,0.10);
  border-color: rgba(0,56,184,0.22);
  color: var(--blue-800);
}

/* ---------- Hero (includes top banner image if present) ---------- */
.hero{
  padding: 26px 0 8px 0;
}
.hero-text{
  max-width: 760px;     /* adjust as desired */
  margin: 0 auto;       /* centers the whole block */
  text-align: left;     /* keeps text left-justified */
}

/* Top-of-page cover image support: place your <section class="hero"><img ...></section> */
.hero img{
  width: min(100%, 720px);  /* caps width on desktop, shrinks on mobile - 960, 840, 720 are options */
  height: auto;
  display: block;
  margin: 0 auto 18px auto; /* centers */
}

/* Textual hero blocks (kicker/title/summary) */
.hero .kicker{
  color: var(--blue-600);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.hero h1{
  margin: 10px 0 10px 0;
  font-size: var(--fs-hero);
  line-height: 1.1;
  color: var(--blue-800);
}
.hero p{
/*  margin: 0 0 16px 0; */
  margin: 0 auto 16px auto;   /* centers the paragraph block */
  color: var(--ink-muted);
  max-width: 820px;
  font-size: 16px;
}


/* ---------- Buttons / CTAs ---------- */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 8px 0;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,56,184,0.18);
  background: #ffffff;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 13px;
  text-decoration:none;
  box-shadow: 0 6px 18px rgba(10, 30, 80, 0.06);
}
.btn:hover{
  background: var(--blue-050);
  text-decoration:none;
}
.btn.primary{
  background: linear-gradient(180deg, rgba(0,56,184,0.14), rgba(0,56,184,0.08));
  border-color: rgba(0,56,184,0.28);
}
.btn.primary:hover{
  background: linear-gradient(180deg, rgba(0,56,184,0.18), rgba(0,56,184,0.10));
}

/* ---------- Badges ---------- */
.badge{
  display:inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0,56,184,0.16);
  background: var(--blue-050);
  border-radius: 999px;
  font-size: 12px;
  color: var(--blue-800);
  margin-top: 8px;
}
.hero .badge{
  display: table;          /* or display:block; */
  margin: 8px auto 0 auto; /* centers it */
}

/* ---------- Sections ---------- */
.section{
  margin-top: 28px;
  padding: 22px 22px 24px 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 30, 80, 0.05);
}

.section h2{
  margin: 0 0 12px 0;
  font-size: var(--fs-h2);
  color: var(--blue-800);
  letter-spacing: -0.2px;
}
.section h3{
  margin: 18px 0 8px 0;
  font-size: var(--fs-h3);
  color: var(--blue-600);
}
.section p, .section li{
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}
.section ul{
  padding-left: 20px;
  margin: 12px 0;
}
.section li{ margin-bottom: 7px; }

/* ---------- Separator ---------- */
hr.sep{
  border: none;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}

/* ---------- Grid / Cards ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pillars{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(10, 30, 80, 0.05);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.card:hover{
  background: var(--surface-2);
  border-color: rgba(0,56,184,0.22);
  transform: translateY(-2px);
}
.card .card-title{
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--blue-800);
}
.card p{
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.card .card-link{
  display:inline-block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--blue-600);
}
.card .card-link:hover{ text-decoration: underline; }

/* ---------- Tables ---------- */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #ffffff;
}

th, td{
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  color: var(--ink);
}

th{
  text-align: left;
  background: var(--blue-050);
  color: var(--blue-800);
  font-weight: 800;
}

tr.highlight td{
  background: rgba(0,56,184,0.08);
}

/* ---------- Blockquotes ---------- */
blockquote{
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(0,56,184,0.45);
  background: var(--blue-050);
  color: var(--blue-900);
  border-radius: 12px;
}

/* ---------- Footer ---------- */
footer{
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px; /* vertical | horizontal spacing */
  margin-bottom: 10px;
}
.footer-meta{
  display: flex;
  justify-content: flex-end;
  gap: 18px;   /* horizontal spacing between links */
}

.footer-meta a{
  text-decoration: none;
  color: var(--blue-700);
}
.small{ font-size: 12px; color: var(--ink-muted); }

/* ---------- Book layout ---------- */
.book-hero{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items:start;
}
.book-hero img{
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

/* HERO CLASS modifications to center on page */
.hero h1,
.hero h2,
.hero ul,
.hero li,
.hero p,
.hero .badge,
.hero .actions {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Responsive Breakpoints (covers small phones → large screens)
   ========================================================= */

/* Large tablets / small laptops */
@media (max-width: 1024px){
  .container{ padding: 20px 16px 56px 16px; }
  nav{ max-width: 70%; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones + small tablets */
@media (max-width: 768px){
  .nav-wrap{ align-items:flex-start; flex-direction: column; }
  nav{ max-width: 100%; justify-content:flex-start; }
  .brand img{ width: 40px; height: 40px; }
  .hero img{ border-radius: 14px; }
  .section{ padding: 18px; }
  .grid, .pillars{ grid-template-columns: 1fr; }
  .book-hero{ grid-template-columns: 1fr; }
}

/* Very small phones (iPhone SE, older Android) */
@media (max-width: 420px){
  .container{ padding: 16px 12px 52px 12px; }
  nav a{ padding: 7px 9px; font-size: 12px; }
  .actions .btn{ width: 100%; }
  .hero img{ border-radius: 14px; }
  .section{ padding: 16px; }
}
