/* ============================================================
   style.css – Shared styles · תומר חשמל
   Design: Light cream / warm white, yellow CTA, dark bold type
   ============================================================ */

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

/* ---------- Design Tokens ---------- */
:root {
  --clr-yellow:       #F5C842;
  --clr-yellow-dark:  #D4A800;
  --clr-yellow-light: #FDF3C0;
  --clr-yellow-bg:    rgba(245,200,66,.13);

  --clr-bg:           #F7F3E8;
  --clr-bg-2:         #EDE8D5;
  --clr-bg-card:      #FFFFFF;

  --clr-border:       rgba(0,0,0,.09);
  --clr-border-hover: #F5C842;

  --clr-text:         #1A1A1A;
  --clr-muted:        #6B6557;
  --clr-heading:      #111111;
  --clr-eyebrow:      #B08A00;

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  100px;

  --font-display: 'Rubik', sans-serif;
  --font-body:    'Heebo', sans-serif;
  --transition:   0.2s ease;
  --pad-section:  72px 48px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--clr-bg);color:var(--clr-text);font-family:var(--font-body);direction:rtl;overflow-x:hidden;line-height:1.6}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* Scrollbar */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--clr-bg-2)}
::-webkit-scrollbar-thumb{background:#ccc5ab;border-radius:3px}

/* ============================================================ NAVBAR */
.navbar{
  position:fixed;inset-block-start:0;inset-inline:0;z-index:200;
  height:64px;background:var(--clr-bg);
  border-bottom:1px solid var(--clr-border);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 40px;
}
.navbar__logo{
  display:flex;align-items:center;gap:12px;
  font-family:var(--font-display);font-weight:800;font-size:1.12rem;color:var(--clr-heading);
}
.navbar__logo-icon{
  width:40px;height:40px;background:none;border-radius:10px;
  display:flex;align-items:center;justify-content:center;font-size:1.25rem;
  box-shadow:0 2px 10px rgba(245,200,66,.4);
}
.navbar__links{display:flex;gap:2px}
.navbar__links a{
  color:var(--clr-muted);font-size:.87rem;font-weight:500;
  padding:7px 13px;border-radius:var(--radius-sm);transition:all var(--transition);
}
.navbar__links a:hover,.navbar__links a.active{
  color:var(--clr-heading);background:var(--clr-yellow-bg);
}

/* ============================================================ PAGE */
.page-content{padding-top:64px;min-height:100vh}

/* ============================================================ SECTION */
.section{padding:var(--pad-section)}
.section--alt{background:var(--clr-bg-2)}
.section--white{background:var(--clr-bg-card)}

.section__eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  color:var(--clr-eyebrow);font-size:.78rem;font-weight:700;
  letter-spacing:1.5px;text-transform:uppercase;margin-bottom:12px;
}
.section__eyebrow::after{
  content:'';display:inline-block;width:28px;height:2px;
  background:var(--clr-yellow);border-radius:2px;
}
.section__title{
  font-family:var(--font-display);font-weight:900;
  font-size:clamp(1.75rem,3.5vw,2.6rem);color:var(--clr-heading);
  line-height:1.12;margin-bottom:40px;
}
.section__title em{color:var(--clr-yellow-dark);font-style:normal}

/* ============================================================ BUTTONS */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-body);font-weight:700;font-size:1rem;
  padding:14px 28px;border-radius:var(--radius-pill);
  border:none;cursor:pointer;transition:all var(--transition);
  text-decoration:none;white-space:nowrap;
}
.btn--primary{
  background:var(--clr-yellow);color:#111;
  box-shadow:0 2px 10px rgba(245,200,66,.4);
}
.btn--primary:hover{
  background:var(--clr-yellow-dark);transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(245,200,66,.5);
}
.btn--outline{
  background:transparent;color:var(--clr-text);
  border:1.5px solid rgba(0,0,0,.15);
}
.btn--outline:hover{border-color:var(--clr-yellow);background:var(--clr-yellow-bg)}

/* ============================================================ CARDS */
.card{
  background:var(--clr-bg-card);border:1px solid var(--clr-border);
  border-radius:var(--radius-md);padding:28px;
  transition:border-color var(--transition),transform var(--transition),box-shadow var(--transition);
}
.card:hover{border-color:var(--clr-yellow);transform:translateY(-3px);box-shadow:0 8px 28px rgba(0,0,0,.07)}
.card__icon{font-size:2rem;margin-bottom:16px;display:block}
.card__title{font-family:var(--font-display);font-weight:700;font-size:1.05rem;color:var(--clr-heading);margin-bottom:8px}
.card__text{color:var(--clr-muted);font-size:.9rem;line-height:1.75}

/* Icon badge (yellow circle) */
.icon-badge{
  width:44px;height:44px;border-radius:50%;
  background:var(--clr-yellow-bg);border:1.5px solid rgba(245,200,66,.4);
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0;
}

/* ============================================================ FORMULA CARD */
.formula-card{
  background:var(--clr-bg-card);border:1px solid var(--clr-border);
  border-radius:var(--radius-md);padding:22px 24px;
  transition:border-color var(--transition),transform var(--transition);
}
.formula-card:hover{border-color:var(--clr-yellow);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.06)}
.formula-card__label{color:var(--clr-muted);font-size:.78rem;font-weight:600;letter-spacing:.4px;margin-bottom:8px}
.formula-card__eq{font-family:var(--font-display);font-weight:800;font-size:1.5rem;color:var(--clr-heading);margin-bottom:10px}
.formula-card__desc{color:var(--clr-muted);font-size:.82rem;line-height:1.65;border-top:1px solid var(--clr-border);padding-top:10px}

/* ============================================================ GRIDS */
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}

/* ============================================================ SPEC TAG */
.spec-tag{
  display:inline-block;background:var(--clr-yellow-bg);color:#7A5800;
  font-size:.74rem;font-weight:600;padding:3px 10px;
  border-radius:var(--radius-pill);border:1px solid rgba(245,200,66,.35);
}

/* ============================================================ DATA TABLE */
.data-table{width:100%;border-collapse:separate;border-spacing:0 8px}
.data-table thead th{
  color:var(--clr-eyebrow);font-size:.74rem;letter-spacing:1.2px;
  text-transform:uppercase;padding:0 16px 8px;text-align:right;font-weight:700;
}
.data-table tbody td{
  background:var(--clr-bg-card);padding:14px 16px;font-size:.88rem;
  color:var(--clr-text);border-top:1px solid var(--clr-border);border-bottom:1px solid var(--clr-border);
}
.data-table tbody td:first-child{border-radius:0 10px 10px 0;border-right:1px solid var(--clr-border)}
.data-table tbody td:last-child{border-radius:10px 0 0 10px;border-left:1px solid var(--clr-border)}
.data-table tbody tr:hover td{background:var(--clr-yellow-light)}

/* ============================================================ FOOTER */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  background: var(--clr-bg);
  border-top: 1.5px solid var(--clr-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
}

.footer__text {
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-heading);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__contact {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.footer__contact:hover  { transform: scale(1.1); }
.footer__contact:active { transform: scale(.93); }

.footer__contact--call {
  background: var(--clr-yellow);
  color: #111;
  box-shadow: 0 3px 10px rgba(245,200,66,.4);
}
.footer__contact--call:hover { box-shadow: 0 5px 16px rgba(245,200,66,.55); }

.footer__contact--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37,211,102,.35);
}
.footer__contact--wa:hover { box-shadow: 0 5px 16px rgba(37,211,102,.5); }

/* Push all page content above the fixed footer */
.page-content { padding-bottom: 56px; }

/* ============================================================ HAMBURGER BUTTON */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--clr-bg-card);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.navbar__burger:hover {
  border-color: var(--clr-yellow);
  background: var(--clr-yellow-bg);
}
.burger-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--clr-heading);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
.navbar__burger.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open .burger-bar:nth-child(2) { opacity: 0; width: 0; }
.navbar__burger.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ MOBILE DRAWER */
.nav-drawer {
  position: fixed;
  top: 64px; right: 0; bottom: 56px; /* stop above footer */
  width: 260px;
  background: var(--clr-bg);
  border-left: 1.5px solid var(--clr-border);
  z-index: 199;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer__links { display: flex; flex-direction: column; }
.nav-drawer__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition), color var(--transition);
}
.nav-drawer__links a:hover,
.nav-drawer__links a.active {
  background: var(--clr-yellow-bg);
  color: var(--clr-heading);
}
.nav-drawer__links a.active { border-right: 3px solid var(--clr-yellow); }

/* Overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: all; }

/* ============================================================ RESPONSIVE */
@media(max-width:768px) {
  :root { --pad-section: 48px 20px; }
  .navbar { padding: 0 20px; }
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .footer { padding: 0; }
}
