/*
Theme Name: Yossi Halafim Landing
Theme URI: https://jons.co.il
Author: Jons
Author URI: https://jons.co.il
Description: דף נחיתה RTL ליוסי חלפים - שירות החלפת פנסים ומראות לרכב.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: yossi-halafim
*/

:root {
  --ink: #15191f;
  --muted: #5a6370;
  --line: #d9dde3;
  --paper: #f7f8f4;
  --white: #ffffff;
  --amber: #f6b73c;
  --red: #c93a35;
  --green: #147f64;
  --shadow: 0 20px 50px rgba(20, 25, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 221, 227, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.header-call,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--red);
  border-radius: 8px;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #323942;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--amber);
}

.header-call {
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.header-call svg,
.btn svg,
.part-card svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(18px, 7vw, 88px) 86px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 35% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 25, 31, 0.16), rgba(21, 25, 31, 0.88) 58%, rgba(21, 25, 31, 0.92)),
    linear-gradient(0deg, rgba(21, 25, 31, 0.74), rgba(21, 25, 31, 0.06) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--ink);
  background: var(--amber);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.btn.dark {
  color: var(--white);
  background: var(--ink);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px clamp(18px, 4vw, 52px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  padding: 86px clamp(18px, 6vw, 76px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.part-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.part-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 25, 31, 0.06);
}

.part-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.part-card div {
  padding: 22px;
}

.part-card svg {
  color: var(--red);
}

.part-card h3 {
  margin: 10px 0 8px;
  font-size: 1.32rem;
}

.part-card p,
.service-copy p,
.step p,
.contact p {
  color: var(--muted);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 36px;
  align-items: start;
  background: var(--white);
}

.service-copy {
  position: sticky;
  top: 100px;
}

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

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.step span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.step strong {
  font-size: 1.18rem;
}

.step p {
  margin-bottom: 0;
}

.field-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 34px;
  align-items: center;
  background: #eef1ee;
}

.field-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.field-copy p {
  max-width: 560px;
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 72px clamp(18px, 6vw, 76px);
  padding: clamp(26px, 5vw, 52px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 25, 31, 0.86), rgba(21, 25, 31, 0.72)),
    url("https://images.pexels.com/photos/5233268/pexels-photo-5233268.jpeg?auto=compress&cs=tinysrgb&w=1500") center/cover;
  border-radius: 8px;
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  max-width: 570px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.address-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 800;
}

.address-line svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
  border-bottom: 2px solid var(--amber);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .header-call {
    padding-inline: 12px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 180px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(21, 25, 31, 0.2), rgba(21, 25, 31, 0.86) 44%, rgba(21, 25, 31, 0.94)),
      linear-gradient(0deg, rgba(21, 25, 31, 0.78), rgba(21, 25, 31, 0.12));
  }

  .trust-strip,
  .part-grid,
  .service,
  .field-proof {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .header-call {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 94vh;
    padding-bottom: 52px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 18vw, 4.7rem);
  }

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

  .section {
    padding-block: 62px;
  }
}
