/* OLLIN Shared Styles — All pages (landing + sub-pages) */

:root {
  --brand: #1d84e8;
  --bg: #f6f9ff;
  --card-bg: #ffffff;
  --card-border: #d9e7fb;
  --text: #11243f;
  --text-muted: #5a6f8e;
  --text-light: #8a9bba;
  --radius: 16px;
}

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

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(800px, 92%);
  margin: 0 auto;
}

/* ---- NAV ---- */
nav {
  background: rgba(246, 249, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.lang-btn {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---- CONTENT ---- */
.content {
  flex: 1;
  padding: 48px 0 64px;
}
.content h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.lang-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

/* ---- CARD (content wrapper) ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  line-height: 1.8;
}

.card h2 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.card h2:first-child { margin-top: 0; }
.card h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.card p { margin-bottom: 12px; font-size: 0.92rem; }
.card ul, .card ol { padding-inline-start: 20px; margin-bottom: 12px; }
.card li { font-size: 0.92rem; margin-bottom: 6px; }
.card a { color: var(--brand); }

.card table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.88rem; }
.card th, .card td { border: 1px solid var(--card-border); padding: 8px 12px; text-align: start; }
.card th { background: var(--bg); font-weight: 600; }

.highlight {
  background: #f0f7ff; border-radius: 8px; padding: 12px 16px;
  margin: 12px 0; font-size: 0.9rem; border-inline-start: 3px solid var(--brand);
}

/* ---- SUPPORT CARDS ---- */
.support-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.support-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand);
}
.support-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.support-card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.support-card a:hover { text-decoration: underline; }

/* ---- FAQ ---- */
.faq-section { margin-top: 40px; }
.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  font-weight: 600;
  font-size: 1rem;
  margin-inline-end: 10px;
  transition: transform 0.2s;
}
.faq-item[open] summary::before { content: '\2212'; }
.faq-item .faq-answer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-inline-start: 34px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary { background: var(--brand); color: #fff; }

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- LANGUAGE SECTIONS ---- */
.section-he, .section-en { display: none; }
.section-he.visible, .section-en.visible { display: block; }
