/*
Theme Name: Netivei Ashrai
Theme URI: https://jons.co.il
Author: Jons Google Ads
Author URI: https://jons.co.il
Description: Hebrew landing page theme for Netivei Ashrai with filtered email lead form, disclosure, accessibility and privacy sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: netivei-ashrai
*/

:root {
  --green: #2f9f98;
  --green-dark: #237875;
  --ink: #315364;
  --muted: #5d6673;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #dce6e5;
  --yellow: #c0a36a;
  --font-display: "Polin", "Noto Sans Hebrew", Arial, sans-serif;
  --font-text: "Noto Sans Hebrew", Arial, sans-serif;
  --section-x: clamp(18px, 5vw, 72px);
  --section-y: clamp(36px, 6vw, 72px);
  --section-gap: clamp(32px, 6vw, 72px);
}

@font-face {
  font-family: "Polin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Polin-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Polin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Polin-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Polin";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/Polin-Black.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.48;
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--section-x);
  background: rgba(246, 248, 245, 0.88);
  border-bottom: 1px solid rgba(13, 17, 23, 0.08);
  backdrop-filter: blur(16px);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  transform: translateY(1px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: #27313a;
  font-weight: 700;
}

.header-call {
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: var(--section-y) var(--section-x);
  overflow-x: clip;
  overflow-y: visible;
}

main > section {
  min-height: calc(100vh - 78px);
  scroll-margin-top: 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  background:
    radial-gradient(circle at 42% 40%, rgba(185, 139, 63, 0.2), transparent 0 17%, transparent 18%),
    radial-gradient(circle at center, rgba(47, 159, 152, 0.17) 0 58%, transparent 59%);
  border-radius: 48% 52% 45% 55%;
  transform: translate(24%, -22%) rotate(-12deg);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 16px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: 0;
  animation: fadeUp 0.8s ease both;
}

.hero-copy {
  max-width: 590px;
  margin: 18px 0;
  color: #27313a;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background-color: var(--ink);
  background-image: linear-gradient(110deg, var(--ink), #3f6677, var(--ink));
  background-size: 220% 100%;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(13, 17, 23, 0.2);
  animation: shimmer 4.5s ease-in-out infinite;
}

.btn.secondary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.trust-row {
  margin-top: 18px;
}

.trust-row span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 12px;
  animation: floatPanel 5.2s ease-in-out infinite;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border: 1px solid rgba(13, 17, 23, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(13, 17, 23, 0.14);
}

.pulse-card,
.amount-card,
.mini-grid {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 17, 23, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(13, 17, 23, 0.12);
}

.pulse-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-weight: 900;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(31, 143, 138, 0.16);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(31, 143, 138, 0.16);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(31, 143, 138, 0.07);
  }
}

.amount-card {
  padding: 22px;
}

.amount-card small,
.amount-card span {
  display: block;
  color: var(--muted);
}

.amount-card strong {
  display: block;
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1;
  font-weight: 700;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.mini-grid div {
  padding: 14px 12px;
  border-inline-start: 1px solid var(--line);
}

.mini-grid div:first-child {
  border-inline-start: 0;
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid strong {
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 25px;
}

@media (min-width: 981px) and (max-height: 760px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 60px);
  }

  .hero-copy {
    font-size: 18px;
    margin: 14px 0;
  }

  .hero-image {
    aspect-ratio: 16 / 7.4;
  }

  .trust-row {
    margin-top: 14px;
  }
}

.section-band,
.services,
.process,
.contact,
.legal {
  margin: 0 var(--section-x) var(--section-gap);
}

.services,
.process {
  padding: var(--section-y) var(--section-x);
}

.intro,
.services,
.process,
.faq,
.contact,
.legal,
.stats {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.section-band {
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  padding: var(--section-y) var(--section-x);
  background:
    linear-gradient(135deg, rgba(47, 159, 152, 0.09), transparent 42%),
    var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.faq .eyebrow {
  color: var(--green);
}

.intro .eyebrow {
  color: var(--green-dark);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 0;
  max-width: 620px;
  color: #4f5964;
  font-size: 18px;
  line-height: 1.6;
}

.section-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 235px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover,
.steps li:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(13, 17, 23, 0.1);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e3f1f0;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 22px;
}

.service-card h3,
.steps h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.08;
  font-weight: 700;
}

.service-card p,
.steps p {
  margin: 0;
  color: #4f5964;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: var(--section-y) var(--section-x);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 159, 152, 0.1), transparent 34%),
    var(--white);
  color: var(--ink);
}

.stats-intro {
  max-width: 524px;
}

.stats-intro p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #4f5964;
  font-size: 18px;
  line-height: 1.6;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats-cards article {
  display: grid;
  align-content: center;
  place-items: center;
  min-height: 250px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  text-align: center;
}

.stats-cards article:first-child {
  background: var(--ink);
  color: var(--white);
}

.stats strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 700;
}

.stats span {
  font-weight: 700;
  color: inherit;
  margin-top: 8px;
}

.stats-cards p {
  max-width: 220px;
  margin: 12px 0 0;
  color: #4f5964;
  line-height: 1.55;
}

.stats-cards article:first-child p {
  color: #eef5ee;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 225px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.steps span {
  display: block;
  margin-bottom: 32px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
}

.faq {
  display: grid;
  align-content: center;
  padding: var(--section-y) var(--section-x);
  background:
    linear-gradient(135deg, rgba(47, 159, 152, 0.08), transparent 40%),
    var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(49, 83, 100, 0.06);
}

summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #4f5964;
  line-height: 1.55;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: var(--section-y) var(--section-x);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 159, 152, 0.1), transparent 38%),
    var(--white);
  border: 1px solid var(--line);
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.form-note-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 20px 46px rgba(49, 83, 100, 0.12);
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cfdcda;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  font: inherit;
  line-height: 1.2;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 159, 152, 0.12);
}

select option {
  color: var(--ink);
}

input::placeholder {
  color: #879296;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  color: #4f5964;
  font-weight: 500;
}

.checkbox a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.submit-btn {
  width: 100%;
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  box-shadow: none;
}

.form-message {
  min-height: 22px;
  margin: -2px 0 0;
  color: #9b332b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.form-message[data-type="success"] {
  color: var(--green-dark);
}

.thank-you {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  align-content: center;
  text-align: center;
}

.thank-you .section-title {
  align-items: center;
}

.thank-you p {
  margin: 0 auto 26px;
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.thank-you .btn {
  justify-self: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}

.legal {
  display: grid;
  align-content: center;
  padding: var(--section-y) var(--section-x);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.legal .eyebrow {
  color: var(--green-dark);
}

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

.legal article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.legal h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
}

.legal p {
  margin: 0 0 12px;
  color: #4f5964;
  line-height: 1.58;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal-note {
  margin: 18px 0 0;
  color: #5d6673;
  font-size: 14px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .steps,
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --section-x: 16px;
    --section-y: 28px;
    --section-gap: 32px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand small,
  .header-call {
    display: none;
  }

  .brand strong {
    font-size: 21px;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding: var(--section-y) var(--section-x);
  }

  main > section {
    min-height: calc(100svh - 68px);
    scroll-margin-top: 68px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .amount-card {
    padding: 22px;
  }

  .mini-grid,
  .service-grid,
  .stats,
  .stats-cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .mini-grid div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .mini-grid div:first-child {
    border-top: 0;
  }

  .section-band,
  .services,
  .process,
  .contact,
  .legal {
    margin-right: var(--section-x);
    margin-left: var(--section-x);
  }

  .intro,
  .services,
  .process,
  .faq,
  .contact,
  .legal {
    padding: var(--section-y) var(--section-x);
  }

  h2 {
    font-size: 31px;
    line-height: 1.05;
  }

  .service-card,
  .steps li,
  .legal article {
    min-height: auto;
    padding: 20px;
  }

  .lead-form {
    padding: 18px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

}
