/* AsGas - טכנאי גז - עיצוב בסיסי */

:root {
  --blue-gas: #0d6cb0;
  --blue-dark: #0a3d62;
  --blue-light: #e7f2fa;
  --fire: #cc4a14;
  --fire-dark: #a83a10;
  --fire-bright: #ff6a2b;
  --fire-on-dark: #ff8c42;
  --gray-100: #f5f6f8;
  --gray-200: #e9ebee;
  --gray-400: #b8c0c7;
  --text: #22303a;
  --text-light: #5b6b73;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 61, 98, 0.1);
  --whatsapp: #25d366;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Assistant", "Segoe UI", Arial, sans-serif;
  background: var(--gray-100);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(10,61,98,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-dark);
}

.logo .flame { color: var(--fire); font-size: 1.6rem; }

.logo img.logo-img { height: 92px; width: auto; display: block; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue-gas);
  border-bottom-color: var(--fire);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blue-dark);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}

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

.btn-fire {
  background: linear-gradient(135deg, var(--fire), var(--fire-dark));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(255, 106, 43, 0.35);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #0b3d1f;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue-gas);
  border: 2px solid var(--blue-gas);
}

.btn-call {
  background: var(--blue-gas);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(13, 108, 176, 0.3);
}

.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(to left, rgba(10,61,98,0.94) 0%, rgba(10,61,98,0.8) 32%, rgba(10,61,98,0.4) 68%, rgba(10,61,98,0.08) 100%),
    url('../img/hero-flame.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 420px; }

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hero-text h1 span { color: var(--fire-on-dark); }

.hero-text p {
  font-size: 1.15rem;
  color: #dbeaf5;
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero-visual {
  flex: 1 1 320px;
  min-height: 1px;
  display: flex;
  justify-content: center;
}

.hero-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  align-self: flex-start;
}

.hero-form-body { padding: 18px 20px; }
.hero-form-body h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 1.02rem; text-align: center; }
.hero-form-body .form-group { margin-bottom: 8px; }
.hero-form-body label {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.78rem;
}
.hero-form-body input,
.hero-form-body select,
.hero-form-body textarea {
  width: 100%;
  padding: 7px 10px;
  border: 2px solid var(--gray-200);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.86rem;
  background: var(--gray-100);
}
.hero-form-body textarea { resize: vertical; }
.hero-form-body button.btn { padding: 9px 18px; font-size: 0.88rem; }
.hero-form-body input:focus,
.hero-form-body select:focus,
.hero-form-body textarea:focus {
  outline: none;
  border-color: var(--blue-gas);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,108,176,0.25);
}

/* ===== Urgent Banner ===== */
.urgent-banner {
  background: var(--fire);
  color: var(--white);
}

.urgent-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.urgent-banner strong { font-size: 0.88rem; }

.urgent-banner .btn-whatsapp {
  background: var(--white);
  color: var(--fire-dark);
  padding: 7px 16px;
  font-size: 0.85rem;
}

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  color: var(--fire);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--blue-dark);
  margin: 8px 0 10px;
}

.section-head p { color: var(--text-light); }

/* ===== Cards Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,61,98,0.16); }

.card-media {
  margin: -28px -28px 20px;
  height: 170px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue-gas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 1.2rem; }
.card p { color: var(--text-light); margin: 0 0 14px; }
.card .card-link { color: var(--blue-gas); font-weight: 700; font-size: 0.95rem; }

/* ===== Areas list ===== */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-chip {
  background: var(--white);
  border: 2px solid var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ===== Pricing table ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th, .price-table td {
  padding: 18px 20px;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
}

.price-table th {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1rem;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table td.price { color: var(--fire-dark); font-weight: 800; white-space: nowrap; }

.price-note {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 0.95rem;
  background: var(--blue-light);
  padding: 14px 18px;
  border-radius: 10px;
}

/* ===== About ===== */
.about-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.license-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: block;
}

.license-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.about-text { flex: 1 1 380px; }
.about-text h2 { color: var(--blue-dark); font-size: 1.8rem; }

.trust-badges { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ===== Contact form ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--gray-100);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-gas);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,108,176,0.25);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fire);
  outline-offset: 2px;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  background: var(--blue-dark);
  color: var(--white);
  padding: 26px;
  border-radius: var(--radius);
}

.contact-info-card a { font-weight: 700; }

.contact-info-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.blog-card .thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--blue-light), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--blue-gas);
}

.blog-card .blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { color: var(--blue-dark); font-size: 1.1rem; margin: 0 0 10px; }
.blog-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }

.article-hero {
  background: var(--blue-light);
  padding: 40px 0;
}

.article-hero h1 { color: var(--blue-dark); font-size: 1.9rem; margin-bottom: 8px; }
.article-hero .meta { color: var(--text-light); font-size: 0.9rem; }

.article-hero.has-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px 0;
}

.article-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10,61,98,0.9), rgba(10,61,98,0.5));
}

.article-hero.has-photo .container { position: relative; z-index: 1; }
.article-hero.has-photo h1 { color: var(--white); }
.article-hero.has-photo .meta { color: #dbeaf5; }

.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-body h2 { color: var(--blue-dark); margin-top: 34px; }
.article-body p { margin-bottom: 18px; font-size: 1.05rem; }
.article-body ul { margin-bottom: 18px; padding-right: 22px; }
.article-body li { margin-bottom: 8px; }

.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta h3 { margin-top: 0; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-dark);
  color: #cfe1ee;
  padding: 50px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 { color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--fire-on-dark); }

.footer-legal {
  text-align: center;
  font-size: 0.82rem;
  color: #9db6c6;
  margin-bottom: 14px;
}

.footer-legal a { color: #cfe1ee; }
.footer-legal a:hover { color: var(--fire-on-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9db6c6;
}

/* ===== Floating WhatsApp button ===== */
.wa-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: middle;
}

.whatsapp-float .wa-icon {
  width: 32px;
  height: 32px;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--whatsapp);
  color: #0b3d1f;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 22px rgba(37,211,102,0.5);
  z-index: 999;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-text h1 { font-size: 1.9rem; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-wrap { flex-direction: column; }
}

/* ===== נגישות: קישור דילוג לתוכן ===== */
.skip-link {
  position: absolute;
  right: 10px;
  top: -60px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 2000;
  transition: top .2s;
  font-weight: 700;
}

.skip-link:focus {
  top: 10px;
}

/* ===== נגישות: תפריט נגישות צף ===== */
.a11y-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.a11y-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10,61,98,0.4);
}

.a11y-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 250px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  padding: 16px;
  border: 1px solid var(--gray-200);
}

.a11y-panel h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--blue-dark);
}

.a11y-panel button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.a11y-panel button:hover,
.a11y-panel button[aria-pressed="true"] {
  border-color: var(--blue-gas);
  background: var(--blue-light);
}

.a11y-panel button.a11y-reset {
  background: var(--fire);
  color: var(--white);
  border-color: var(--fire);
  margin-bottom: 0;
}

/* מצבי נגישות המופעלים על html */
html.a11y-underline a { text-decoration: underline !important; }

html.a11y-stop-anim *,
html.a11y-stop-anim *::before,
html.a11y-stop-anim *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-grayscale { filter: grayscale(1); }

html.a11y-contrast { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast img,
html.a11y-contrast .wa-icon,
html.a11y-contrast video {
  filter: invert(1) hue-rotate(180deg);
}

html.a11y-contrast.a11y-grayscale {
  filter: invert(1) hue-rotate(180deg) grayscale(1);
}
html.a11y-contrast.a11y-grayscale img,
html.a11y-contrast.a11y-grayscale .wa-icon,
html.a11y-contrast.a11y-grayscale video {
  filter: invert(1) hue-rotate(180deg) grayscale(1);
}

@media (max-width: 480px) {
  .a11y-panel { width: 220px; }
}
