/*
Theme Name: המוביל בתיקונים
Theme URI: https://example.com
Author: Dany
Description: דף נחיתה מותאם לפרסום עבור עסק האינסטלציה "המוביל בתיקונים". עיצוב RTL בעברית, ממוקד המרה לוואטסאפ ולחיוג. עמוד הבית הוא דף הנחיתה.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamovil-batikunim
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --navy-900: #050d1a;
  --navy-800: #081427;
  --navy-700: #0c1f3c;
  --navy-600: #11294d;
  --navy-card: rgba(255, 255, 255, 0.04);
  --gold: #e6b34a;
  --gold-2: #f6d987;
  --gold-deep: #c9912f;
  --wa-green: #25d366;
  --wa-green-d: #1da851;
  --text: #f4f7fb;
  --text-muted: #a9b6cc;
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1100px;
}

/* ============================================================
   Base / reset
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Heebo", "Rubik", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn-wa {
  background: linear-gradient(180deg, var(--wa-green), var(--wa-green-d));
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { box-shadow: 0 16px 30px rgba(37, 211, 102, 0.5); }

.btn-call {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #20140a;
  box-shadow: 0 12px 26px rgba(230, 179, 74, 0.32);
}
.btn-call:hover { box-shadow: 0 16px 30px rgba(230, 179, 74, 0.5); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   Top bar (sticky)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 14, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.brand .logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--gold);
  font-size: 1.4rem;
  object-fit: cover;
}
.brand .name { font-size: 1.15rem; }
.brand .name small { display: block; font-size: .72rem; color: var(--gold-2); font-weight: 700; }

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 1.05rem;
  direction: ltr;
}
.phone-chip svg { width: 18px; height: 18px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(45, 120, 220, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(230, 179, 74, 0.10), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 30px;
  padding-block: 56px 64px;
}
.crown { line-height: 0; filter: drop-shadow(0 4px 10px rgba(230,179,74,.45)); }
.crown svg { width: 70px; height: auto; }
.logo svg { width: 30px; height: auto; }
@media (max-width: 860px) { .crown svg { width: 60px; } }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  margin-top: 8px;
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 800;
  color: var(--gold-2);
  margin-top: 14px;
}
.hero .subline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
  max-width: 46ch;
}
.hero .cta-row { margin-top: 26px; }
.hero .phone-line {
  margin-top: 18px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}
.hero .phone-line span { color: var(--gold-2); }

.hero-media {
  position: relative;
  justify-self: center;
}
.hero-photo {
  width: 100%;
  max-width: 300px;
  height: auto;            /* override the img height attribute so aspect-ratio wins */
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  /* fallback when no image file is present */
  background:
    radial-gradient(circle at 50% 30%, rgba(230,179,74,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-600), var(--navy-900));
}
.hero-photo.is-placeholder {
  display: grid;
  place-items: center;
  font-size: 6rem;
}

/* ============================================================
   Section heading
   ============================================================ */
section { padding-block: 56px; }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 900;
}
.section-head .rule {
  width: 90px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head .section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Services
   ============================================================ */
.services { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(230, 179, 74, 0.06);
}
.service-card .ico {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--gold);
}
.service-card .txt { font-weight: 700; font-size: 1.1rem; }

/* ============================================================
   Trust band
   ============================================================ */
.trust {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(45,120,220,.15), transparent 60%),
    var(--navy-900);
}
.trust-banner {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 40px;
}
.trust-banner .check { color: var(--gold-2); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.trust-item { text-align: center; }
.trust-item .badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.trust-item p { font-weight: 700; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 900;
}
.cta-band .big-phone {
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 900;
  margin: 14px 0 24px;
  direction: ltr;
  letter-spacing: 1px;
}
.cta-band .cta-row { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding-block: 34px;
  text-align: center;
  color: var(--text-muted);
}
.site-footer .f-brand { font-weight: 900; color: var(--text); font-size: 1.2rem; margin-bottom: 6px; }
.site-footer a { color: var(--gold-2); font-weight: 700; }
.site-footer .areas { margin-top: 6px; font-size: .92rem; }
.site-footer .copy { margin-top: 14px; font-size: .85rem; }

/* ============================================================
   Floating buttons
   ============================================================ */
.float-cta {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  animation: pulse 2.4s infinite;
}
.float-btn svg { width: 30px; height: 30px; }
.float-wa { background: var(--wa-green); color: #fff; }
.float-call { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); color: #20140a; }

@keyframes pulse {
  0% { box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.float-call { animation: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 40px 48px;
  }
  .hero .subline { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-media { order: -1; }
  .hero-photo { max-width: 200px; }
  .brand .name small { display: none; }
}

@media (max-width: 520px) {
  .btn { flex: 1 1 100%; }
  .phone-chip { font-size: .95rem; padding: 8px 12px; }
  .brand .name { font-size: 1rem; }
  section { padding-block: 44px; }
}

/* admin bar offset so the sticky bar isn't hidden */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
