/*
Theme Name: Sapir Scaffolding
Theme URI: https://sapir-scaffolding.co.il/
Author: Codex
Description: Custom RTL WordPress theme for Sapir Scaffolding with upgraded header, footer, catalog, and WhatsApp lead form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Text Domain: sapir-scaffolding
*/

@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --ink: #111820;
  --muted: #5b6572;
  --line: #e3e7ec;
  --paper: #f7f8fa;
  --white: #ffffff;
  --brand: #f0b323;
  --brand-dark: #20272f;
  --green: #20b358;
  --accent: #007c89;
  --shadow: 0 18px 48px rgba(17, 24, 32, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  direction: rtl;
  font-family: "Heebo", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

body *,
button,
input,
textarea,
select {
  font-family: "Heebo", Arial, sans-serif !important;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.bsad {
  background: var(--brand-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 16px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
}

.brand img {
  width: 112px;
  max-height: 64px;
  object-fit: contain;
}

.brand-name {
  font-weight: 900;
  line-height: 1.1;
}

.brand-name span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.main-nav,
.social-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #28323d;
  font-weight: 800;
  font-size: 16px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: var(--paper);
}

.icon-link,
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 900;
}

.phone-pill,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #161616;
  font-weight: 900;
  cursor: pointer;
}

.primary-button.dark {
  background: var(--brand-dark);
  color: var(--white);
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: #101820;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 16, 0.42), rgba(8, 12, 16, 0.88));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 84px;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
}

.hero p {
  max-width: 700px;
  margin: 22px 0 30px;
  font-size: 23px;
  color: #eef3f7;
}

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

.section {
  padding: 86px 0;
}

.section.alt { background: var(--paper); }

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 900;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.95fr 1.05fr; }

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

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

.lead {
  font-size: 21px;
  color: #26313d;
}

.grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.product-card,
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 24, 32, 0.06);
}

.service-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: #f2f4f7;
}

.service-card-content,
.product-card-content,
.feature-card {
  padding: 22px;
}

.service-card h3,
.product-card h3,
.feature-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(240, 179, 35, 0.18);
  color: #8a6100;
  font-weight: 900;
}

.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 18px;
}

.product-card-content p {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta-band {
  background: var(--brand-dark);
  color: var(--white);
  padding: 54px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  color: var(--white);
  background: #101820;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 58px 0;
}

.footer-logo {
  width: 128px;
  margin-bottom: 14px;
}

.footer-main h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

.footer-main a,
.footer-main p {
  color: #d9e0e7;
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main li + li { margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  color: #b7c0ca;
  font-size: 15px;
}

.wa-float {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 60;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 29px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 16, 22, 0.58);
}

.modal.is-open { display: flex; }

.modal-panel {
  width: min(470px, 100%);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 24px;
}

.close-modal {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
}

.wa-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.wa-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.wa-form input,
.wa-form textarea {
  width: 100%;
  border: 1px solid #cdd5dd;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
}

.wa-form textarea { min-height: 110px; resize: vertical; }

.page-hero {
  background: var(--brand-dark);
  color: var(--white);
  padding: 86px 0;
}

.thanks {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; }

  .main-nav {
    position: absolute;
    inset-inline: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .header-actions .phone-pill { display: none; }
  .split,
  .split.reverse { grid-template-columns: 1fr; }
  .services-grid,
  .feature-grid,
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .cta-band .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .brand-name { display: none; }
  .social-links { display: none; }
  .header-inner { min-height: 74px; }
  .brand img { width: 92px; }
  .hero { min-height: 590px; }
  .hero p { font-size: 20px; }
  .section { padding: 62px 0; }
  .services-grid,
  .feature-grid,
  .catalog-grid { grid-template-columns: 1fr; }
  .wa-float { width: 58px; height: 58px; inset-inline-start: 16px; bottom: 16px; }
}
