/*
Theme Name: David Eliyahu Towing
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: Landing page theme for דוד אליהו - גרר אור יהודה.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: david-eliyahu-towing
*/

:root {
  --ink: #101820;
  --muted: #51606f;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --line: #dfe5ea;
  --blue: #0756a6;
  --blue-strong: #003f82;
  --yellow: #ffc72c;
  --green: #168b48;
  --road: #25292e;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  color: var(--ink);
  background: var(--paper);
  font-family: "Assistant", "Rubik", Arial, sans-serif;
  line-height: 1.55;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 900;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.15);
}

.btn-call {
  background: var(--yellow);
  color: #151100;
}

.btn-whatsapp {
  background: var(--green);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue-strong);
  border-color: rgba(7, 86, 166, 0.22);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  background: #1f2b36;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 16, 22, 0.1), rgba(12, 16, 22, 0.84)), var(--hero-image);
  background-position: center;
  background-size: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.82), rgba(16, 24, 32, 0));
  z-index: -1;
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 54px;
  color: #fff;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #151100;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 950;
}

.lead {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}

.fact {
  min-height: 88px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.fact strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.08rem;
}

.fact span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.section {
  padding: 68px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-title h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 950;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

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

.service-card,
.contact-panel {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.service-card {
  min-height: 190px;
  padding: 24px;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(7, 86, 166, 0.1);
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.service-band {
  background: var(--road);
  color: #fff;
}

.service-band .section-title p {
  color: rgba(255, 255, 255, 0.76);
}

.area-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 850;
}

.contact {
  padding-bottom: 92px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.contact-panel {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.contact-list b {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 199, 44, 0.28);
  color: #5d4400;
  font-weight: 950;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-panel {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-mobile {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(251, 251, 248, 0.96);
  border-top: 1px solid rgba(16, 24, 32, 0.12);
  backdrop-filter: blur(10px);
}

.site-footer {
  padding: 22px 0;
  background: #111820;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .top-actions {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero::before {
    background-image: linear-gradient(0deg, rgba(12, 16, 22, 0.88), rgba(12, 16, 22, 0.26)), var(--hero-image);
    background-position: 38% center;
  }

  .hero-inner {
    padding: 56px 0 34px;
  }

  .hero-facts,
  .services-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .sticky-mobile {
    display: grid;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 22px, 1160px);
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-sub {
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.06rem;
  }

  .section {
    padding: 50px 0;
  }

  .service-card,
  .contact-panel {
    padding: 20px;
  }

  .photo-panel {
    min-height: 250px;
  }
}
