/* fa-cpa.co.il — v2 facelift */
:root {
  --navy: #0a2a4a;
  --navy-2: #0e3a63;
  --brand: #003366;
  --accent: #0e8ba0;
  --accent-strong: #0b7285;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #e2e9f1;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(10, 42, 74, 0.09);
  --shadow-sm: 0 2px 10px rgba(10, 42, 74, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; color: var(--navy); font-size: 17px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }

.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 10px;
}
.main-nav a:hover { background: #eef4f9; text-decoration: none; }
.main-nav a.active { color: var(--brand); font-weight: 700; background: #e8f1f8; }
.main-nav a.btn { color: #fff; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-strong); color: #fff !important; font-weight: 600;
  padding: 11px 22px; border-radius: 12px; border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent); text-decoration: none !important; transform: translateY(-1px); }
.btn.ghost {
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(14, 139, 160, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 60%, #14507e 100%);
  color: #fff; padding: 88px 0 72px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; line-height: 1.25; max-width: 720px; }
.hero h1 em { font-style: normal; color: #7fd4e2; }
.hero p.lead {
  margin-top: 18px; max-width: 640px; font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; max-width: 640px;
}
.stat {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 16px 20px;
}
.stat b { display: block; font-size: 28px; font-weight: 800; color: #7fd4e2; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 44px; align-items: center; }
.hero-art-wrap { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 520px; height: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; align-items: center; }
.page-hero-art svg { width: 100%; height: auto; display: block; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; padding: 48px 0 42px;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.page-hero p { margin-top: 8px; color: rgba(255, 255, 255, 0.85); max-width: 700px; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-bottom: 10px; }
.crumbs a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-strong); background: #e3f2f5; border-radius: 999px;
  padding: 4px 14px; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.3; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: block; color: inherit;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: #e8f4f6; color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }

/* ---------- Prose / article ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: start; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.prose p { margin-bottom: 15px; color: #2a3743; }
.prose ul { margin: 0 0 18px; padding-inline-start: 22px; color: #2a3743; }
.prose li { margin-bottom: 8px; }
.prose h2 {
  font-size: 21px; font-weight: 800; color: var(--navy);
  margin: 30px 0 12px; padding-inline-start: 12px;
  border-inline-start: 4px solid var(--accent);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-2); margin: 20px 0 8px; }
.prose figure { margin: 18px 0 26px; }
.prose figure img { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); width: 100%; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-box h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.side-nav { list-style: none; }
.side-nav a {
  display: block; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14.5px; font-weight: 500;
}
.side-nav a:hover { background: #eef4f9; text-decoration: none; }
.side-nav a.active { background: #e8f1f8; color: var(--brand); font-weight: 700; }
.side-cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border: none; }
.side-cta h4 { color: #fff; }
.side-cta p { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }

/* ---------- Logos ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  height: 104px; display: flex; align-items: center; justify-content: center; padding: 14px;
}
.logo-tile img {
  max-height: 72px; object-fit: contain;
  filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s;
}
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.person-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.person-head img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.person h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.person .creds { font-size: 13.5px; font-weight: 600; color: var(--accent-strong); }
.person .contact-line { font-size: 14px; margin-top: 6px; color: var(--muted); }
.person ul { padding-inline-start: 20px; color: #2a3743; font-size: 14.5px; }
.person li { margin-bottom: 6px; }
.badge-row { margin-top: 16px; }
.badge-row img { height: 84px; }

/* ---------- Contact / footer ---------- */
.contact-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.contact-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 8px; }
.contact-band > .container > p { color: rgba(255, 255, 255, 0.85); max-width: 620px; }
.contact-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.contact-card {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 24px;
}
.contact-card h3 { font-size: 17px; font-weight: 700; }
.contact-card .role { font-size: 13.5px; color: #7fd4e2; margin-bottom: 12px; }
.contact-card a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.contact-card a:hover { color: #7fd4e2; text-decoration: none; }
.contact-card svg { width: 18px; height: 18px; flex: none; }

.site-footer { background: #071e35; color: rgba(255, 255, 255, 0.75); padding: 26px 0; font-size: 13.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.site-footer a { color: rgba(255, 255, 255, 0.9); }

/* ---------- Misc ---------- */
.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dl-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  color: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.dl-item .icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: #e8f4f6; color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.dl-item .icon svg { width: 22px; height: 22px; }
.dl-item h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.dl-item p { font-size: 13.5px; color: var(--muted); }

.two-col-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }

.note {
  background: #eef7f9; border: 1px solid #cfe7ec; border-radius: 12px;
  padding: 14px 18px; font-size: 14.5px; color: #135e6d; margin: 18px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 6px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 60px 0 52px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art-wrap { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .prose { padding: 24px; }
}
