/* =====================================================================
   SERVICE-PAGE STYLESHEET - שייך לכל דפי השירות (waterproofing, exterior-walls וכל דף שירות עתידי)
   נטען בנוסף ל-assets/base.css. כולל: page-header, info-cards, article-section,
   faq-section, talk-section, features-section, gallery-section, cta-section.
   ===================================================================== */

    /* ===== PAGE HEADER ===== */
    .page-header {
      padding-top: 68px;
      position: relative;
      overflow: hidden;
      /* כל דף שירות קובע תמונת רקע משלו באמצעות style="--hero-bg:url(...)" על תג ה-header,
         כדי שכל דף יוכל להציג תמונה שונה (הנתיב חייב להיות יחסי לדף ה-HTML, לא ל-CSS) */
      text-align: center;
    }
    .page-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: var(--hero-bg);
      background-size: cover;
      background-position: center;
      transform: scale(1);
      animation: pageHeaderZoomIn 5s ease-out forwards;
    }
    @keyframes pageHeaderZoomIn {
      from { transform: scale(1); }
      to   { transform: scale(1.12); }
    }
    .page-header::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(21,57,89,0.88) 0%, rgba(21,101,168,0.82) 100%);
    }
    .page-header-inner {
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 0 auto;
      padding: 4.5rem 2rem 1rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      text-align: right;
    }
    .header-testimonials-wrap {
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 0 auto;
      padding: 1.5rem 2rem 4rem;
    }
    .header-testimonials {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }
    .header-testimonial-card {
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 14px;
      padding: 1.25rem 1.5rem;
      backdrop-filter: blur(6px);
    }
    .header-testimonial-card .stars {
      color: #f5a623;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }
    .header-testimonial-card blockquote {
      color: rgba(255,255,255,0.92);
      font-size: 0.85rem;
      line-height: 1.6;
      font-style: italic;
      margin-bottom: 0.75rem;
    }
    .header-testimonial-card .reviewer-name { color: #ffffff; font-weight: 700; font-size: 0.85rem; }
    .header-testimonial-card .reviewer-type { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
    .header-text {
      opacity: 0;
      transform: translateY(30px);
      animation: headerTextIn 0.9s ease-out forwards;
    }
    @keyframes headerTextIn {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .breadcrumb {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.75);
      margin-bottom: 1rem;
    }
    .breadcrumb a { color: rgba(255,255,255,0.9); font-weight: 600; }
    .breadcrumb a:hover { text-decoration: underline; }
    .page-header h1 {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 0.8rem;
    }
    .page-header p {
      color: rgba(255,255,255,0.88);
      font-size: 1.05rem;
      max-width: 480px;
    }
    .header-contact-form {
      background: rgba(255,255,255,0.97);
      border-radius: 16px;
      padding: 1.5rem;
      max-width: 420px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.25);
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: flex-end;
    }
    .header-contact-form .form-group {
      flex: 1 1 150px;
      text-align: right;
    }
    .header-contact-form label {
      display: block;
      font-size: 0.78rem;
      color: var(--gray);
      margin-bottom: 0.4rem;
    }
    .header-contact-form input {
      width: 100%;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.65rem 0.9rem;
      color: #1a2d3e;
      font-size: 0.9rem;
      direction: rtl;
      outline: none;
      transition: border-color 0.2s;
      font-family: inherit;
    }
    .header-contact-form input:focus { border-color: var(--blue); }
    .header-contact-form button {
      flex: 1 1 100%;
      background: var(--blue);
      color: #ffffff;
      border: none;
      border-radius: 8px;
      padding: 0.75rem;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      transition: background 0.2s;
      font-family: inherit;
    }
    .header-contact-form button:hover { background: var(--blue2); }

    /* ===== INFO CARDS (two paragraphs side by side) ===== */
    .info-section { background: #ffffff; }
    .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
    .info-card {
      background: #f4f8fb;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem 2rem;
    }
    .info-icon {
      width: 56px; height: 56px;
      background: rgba(26,127,193,0.1);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.7rem;
      margin-bottom: 1.2rem;
    }
    .info-card h2 {
      font-size: 1.25rem;
      font-weight: 700;
      color: #1a2d3e;
      margin-bottom: 1rem;
    }
    .info-card p { font-size: 0.97rem; color: var(--gray); line-height: 1.75; }

    /* ===== ARTICLE SECTION (dark box, right-aligned content) ===== */
    .article-section { background: #ffffff; }
    .article-inner {
      max-width: 900px;
      margin: 0 auto;
      text-align: right;
      background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
      border-radius: 20px;
      padding: 3rem 3rem;
      box-shadow: 0 20px 50px rgba(26,127,193,0.25);
    }
    .article-inner h2 {
      font-size: 1.3rem;
      font-weight: 800;
      color: #ffffff;
      margin: 2.5rem 0 1rem;
    }
    .article-inner h2:first-child { margin-top: 0; }
    .article-inner p {
      font-size: 0.97rem;
      color: rgba(255,255,255,0.85);
      line-height: 1.85;
      margin-bottom: 1rem;
    }
    .article-inner ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      margin: 1rem 0 1.5rem;
      text-align: right;
    }
    .article-inner ul li {
      position: relative;
      padding-right: 1.7rem;
      color: rgba(255,255,255,0.85);
      font-size: 0.97rem;
      line-height: 1.75;
    }
    .article-inner ul li::before {
      content: '\2713';
      position: absolute;
      right: 0;
      top: 0;
      color: #ffffff;
      font-weight: 800;
      font-size: 0.95rem;
    }
    .article-inner ul li a {
      color: #ffffff;
      font-weight: 600;
      font-size: 0.95rem;
      transition: color 0.2s;
      text-decoration: underline;
      text-decoration-color: rgba(255,255,255,0.4);
    }
    .article-inner ul li a:hover { text-decoration-color: #ffffff; }
    .article-inner .article-cta {
      font-weight: 600;
      color: #ffffff;
    }
    .article-inner .article-cta a { color: #ffffff; text-decoration: underline; }

    /* ===== PRICE TABLE (טבלת גורמי מחיר בתוך article-section) ===== */
    .price-table-wrap {
      overflow-x: auto;
      margin: 1rem 0 1.5rem;
      border-radius: 12px;
      background: rgba(255,255,255,0.08);
    }
    .price-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.93rem;
    }
    .price-table th,
    .price-table td {
      padding: 0.9rem 1.1rem;
      text-align: right;
      color: rgba(255,255,255,0.9);
      border-bottom: 1px solid rgba(255,255,255,0.15);
      line-height: 1.6;
    }
    .price-table th {
      background: rgba(255,255,255,0.12);
      font-weight: 700;
      color: #ffffff;
      white-space: nowrap;
    }
    .price-table tr:last-child td { border-bottom: none; }
    .price-table-note {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.65);
      margin: -0.5rem 0 1.5rem;
    }

    /* ===== FAQ SECTION (תוכן ייחודי לכל דף שירות, לטובת SEO) ===== */
    .faq-section { background: #ffffff; }
    .faq-list {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .faq-item {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.1rem 1.4rem;
      background: var(--navy2);
    }
    .faq-item summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      font-weight: 700;
      font-size: 1.02rem;
      color: #1a2d3e;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: '+';
      flex-shrink: 0;
      font-size: 1.4rem;
      line-height: 1;
      color: var(--blue);
      transition: transform 0.2s;
    }
    .faq-item[open] summary::after { content: '−'; }
    .faq-item p {
      margin-top: 0.85rem;
      color: var(--gray);
      font-size: 0.93rem;
      line-height: 1.75;
    }

    /* ===== TALK TO US SECTION ===== */
    .talk-section { background: var(--sky); }
    .talk-box { max-width: 700px; margin: 0 auto; text-align: center; }
    .talk-box .section-title { margin-bottom: 1.5rem; }
    .talk-info p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0.4rem; }
    .talk-info a { color: var(--blue); font-weight: 600; }
    .talk-info a:hover { text-decoration: underline; }
    .talk-icons {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: 2rem 0;
      padding: 2rem;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 16px;
      flex-wrap: wrap;
    }
    .talk-icon {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: rgba(26,127,193,0.1);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.8rem;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .talk-icon:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(26,127,193,0.2); }
    .talk-icon.whatsapp { background: rgba(37,211,102,0.14); }
    .talk-hours strong { display: block; color: #1a2d3e; margin-bottom: 0.6rem; font-size: 1rem; }
    .talk-hours p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.2rem; }

    /* ===== FEATURES SECTION (separate from info section) ===== */
    .features-section {
      background: var(--sky);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .feature-card {
      background: #ffffff;
      border: 1px solid var(--border);
      border-top: 4px solid var(--blue);
      border-radius: 16px;
      padding: 2.2rem 1.5rem;
      text-align: center;
      box-shadow: 0 8px 24px rgba(26,127,193,0.07);
      transition: transform 0.25s, box-shadow 0.25s;
    }
    .feature-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 36px rgba(26,127,193,0.14);
    }
    .feature-icon {
      width: 60px; height: 60px;
      background: rgba(26,127,193,0.1);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.8rem;
      margin: 0 auto 1.2rem;
    }
    .feature-card h2 {
      font-size: 1.15rem;
      font-weight: 700;
      color: #1a2d3e;
      margin-bottom: 0.7rem;
    }
    .feature-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

    /* ===== GALLERY SECTION ===== */
    .gallery-section { background: #ffffff; }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .gallery-item {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(26,127,193,0.1);
      aspect-ratio: 4/3;
    }
    .gallery-item img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .gallery-item:hover img { transform: scale(1.08); }
    .gallery-caption {
      position: absolute;
      inset: auto 0 0 0;
      background: linear-gradient(0deg, rgba(21,57,89,0.85) 0%, rgba(21,57,89,0) 100%);
      color: #ffffff;
      padding: 2rem 1.2rem 0.9rem;
      font-size: 0.92rem;
      font-weight: 600;
    }

    /* ===== BEFORE/AFTER (תוך article-section) ===== */
    .before-after-wrap {
      margin: 1.5rem 0 2rem;
    }
    .before-after-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
    }
    .before-after-item {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 4/3;
      box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }
    .before-after-item img {
      width: 100%; height: 100%;
      object-fit: cover;
    }
    .before-after-label {
      position: absolute;
      top: 0.8rem;
      right: 0.8rem;
      background: var(--blue, #1a7fc1);
      color: #ffffff;
      font-size: 0.85rem;
      font-weight: 800;
      padding: 0.3rem 0.9rem;
      border-radius: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* ===== CTA ===== */
    .cta-section {
      background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
      text-align: center;
    }
    .cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #ffffff; margin-bottom: 1rem; }
    .cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; }
    .cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
    .btn-primary {
      background: #ffffff;
      color: var(--blue);
      padding: 0.9rem 2rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 1rem;
      transition: background 0.2s, transform 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .btn-primary:hover { background: #e8f2fb; transform: translateY(-1px); }
    .cta-phone {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: transparent;
      border: 2px solid rgba(255,255,255,0.7);
      color: #ffffff;
      padding: 0.9rem 2rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 1.1rem;
      transition: background 0.2s;
    }
    .cta-phone:hover { background: rgba(255,255,255,0.12); }

    /* ===== MOBILE ===== */
    @media (max-width: 900px) {
      .info-grid { grid-template-columns: 1fr; }
      .features-grid { grid-template-columns: 1fr; }
      .page-header-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
      .page-header p { margin: 0 auto; }
      .header-contact-form { max-width: 420px; margin: 0 auto; }
      .header-testimonials { grid-template-columns: 1fr; }
      .gallery-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 600px) {
      .page-header-inner { padding: 3.5rem 1.2rem 2.5rem; }
      .cta-actions { flex-direction: column; align-items: center; }
      .article-inner { padding: 2rem 1.5rem; border-radius: 16px; }
      .gallery-grid { grid-template-columns: 1fr; }
      .price-table th, .price-table td { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
      .before-after-grid { grid-template-columns: 1fr; }
    }
