/* =================================
   Global Styles & Variables
   ================================= */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00A8E8;
    --light-gray-color: #f8f9fa;
    --dark-text-color: #343a40;
    --light-text-color: #ffffff;
    --font-family: 'Heebo', sans-serif;
}

/* CSS Reset & Box Sizing */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800&display=swap');

/* General Body Styling */
body {
    font-family: var(--font-family);
    direction: rtl;
    line-height: 1.7;
    color: var(--dark-text-color);
    background-color: #fff;
    scroll-behavior: smooth;
    padding-top: 85px; 
}

/* Base Typography (Mobile First) */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }

/* Utility Classes */
.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
.section-padding { padding: 50px 0; }
.section-title { margin-bottom: 20px; color: var(--primary-color); }
.section-subtitle { margin-bottom: 30px; font-size: 1.1rem; color: #6c757d; }
.section-pre-title { display: block; font-weight: 500; color: var(--primary-color); margin-bottom: 8px; }
.section-header { margin-bottom: 40px; }
.bg-light { background-color: var(--light-gray-color); }
.text-center { text-align: center; }

/* Buttons */
.btn { padding: 10px 25px; border-radius: 50px; font-weight: 500; font-size: 1rem; transition: all 0.3s ease; border: none; cursor: pointer; display: inline-block; }
.btn-primary { background-color: var(--secondary-color); color: var(--light-text-color); }
.btn-primary:hover { background-color: #0095cc; color: var(--light-text-color); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--light-text-color); }
.btn-light { background-color: var(--light-text-color); color: var(--primary-color); }
.btn-light:hover { background-color: #f1f1f1; color: var(--primary-color); }
.btn-link-details { display: inline-block; font-weight: 500; color: var(--primary-color); margin: 0 20px 20px 20px; }
.btn-link-details i { transition: transform 0.3s ease; margin-right: 5px; }
.btn-link-details:hover i { transform: translateX(-3px); }
.btn-full-width { width: 100%; padding-top: 15px; padding-bottom: 15px; font-size: 1.1rem; }

/* Form Controls */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ced4da; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2); }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }


/* =================================
   Component: Header & Navigation (Final Version)
   ================================= */
.main-header { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--light-text-color); z-index: 1000; transition: box-shadow 0.3s ease, height 0.3s ease-in-out; border-top: 3px solid var(--primary-color); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 85px; transition: height 0.3s ease-in-out; }
.navbar-logo { text-decoration: none; }
.logo-main-name { font-size: 1.7rem; font-weight: 800; color: var(--dark-text-color); display: block; line-height: 1.2; }
.logo-subtitle-new { font-size: 0.8rem; font-weight: 500; color: #888; letter-spacing: 0.5px; }
.nav-menu { display: none; list-style: none; gap: 40px; } /* <<<<<<< THE FIX IS HERE (display: none) */
.nav-link { font-weight: 500; font-size: 1.05rem; color: var(--dark-text-color); padding: 5px 0; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover, .nav-link.active-link { color: var(--primary-color); font-weight: 700; }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }
.navbar-actions { display: flex; align-items: center; }
.nav-cta-btn { display: none; padding: 8px 22px; }
.hamburger { display: block; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-text-color); border-radius: 2px; transition: all 0.3s ease-in-out; }

/* =================================
   Here starts the rest of the page sections...
   ================================= */

/* HERO */
.hero-section { position: relative; background: url('../img/hero-background.webp') no-repeat center center; background-size: cover; color: var(--light-text-color); min-height: calc(100vh - 85px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 50, 80, 0.65); }
.hero-section .container { position: relative; z-index: 2; }
.hero-profile-img-v2 {
    width: 280px;   /* <--- הוגדל מ-180px */
    height: 280px;  /* <--- הוגדל מ-180px */
    border-radius: 50%;
    border: 5px solid var(--secondary-color); /* מסגרת מעט עבה יותר */
    margin-bottom: 30px; /* רווח גדול יותר מהטקסט */
    box-shadow: 0 5px 30px rgba(0,0,0,0.3); /* צל מודגש יותר */
}.hero-section h1 { font-size: 2.8rem; margin-bottom: 5px; }
.hero-section .h2-alt { font-size: 1.4rem; font-weight: 400; margin-bottom: 30px; }
.hero-features-centered { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; margin-bottom: 40px; font-size: 1.1rem; }
.hero-features-centered span { display: flex; align-items: center; gap: 8px; }
.hero-features-centered .separator { display: none; }
.hero-features-centered i { color: var(--secondary-color); }
.hero-cta-group-centered .btn { padding: 15px 35px; font-size: 1.1rem; }
.hero-cta-group-centered .cta-note { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.about-image-wrapper { position: relative; max-width: 400px; margin: 0 auto; }
.about-image-bg-shape { position: absolute; width: 100%; height: 100%; background-color: var(--secondary-color); opacity: 0.2; border-radius: 15px; transform: rotate(-5deg); z-index: 1; }
.about-main-image { position: relative; width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 2; }
.core-values-list { list-style: none; margin: 25px 0; }
.core-values-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 1.05rem; }
.core-values-list i { color: var(--secondary-color); margin-top: 5px; }
.stats-counter { display: flex; justify-content: space-around; text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
.stat-label { font-size: 0.9rem; color: #6c757d; }

/* SERVICES */
.services-accordion { max-width: 800px; margin: 0 auto; border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.accordion-item { border-bottom: 1px solid #e0e0e0; }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { display: flex; align-items: center; width: 100%; padding: 20px; background-color: #fff; border: none; cursor: pointer; text-align: right; font-family: var(--font-family); transition: background-color 0.3s ease; }
.accordion-header:hover { background-color: #f9f9f9; }
.accordion-icon { font-size: 1.8rem; color: var(--primary-color); margin-left: 15px; width: 40px; text-align: center; }
.accordion-title { flex-grow: 1; font-size: 1.2rem; font-weight: 500; color: var(--dark-text-color); }
.accordion-indicator { font-size: 1.2rem; color: #aaa; transition: transform 0.3s ease-in-out; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out; background-color: #fdfdfd; }
.accordion-content p { padding: 0 20px 20px 20px; line-height: 1.8; }
.accordion-item.active .accordion-header { background-color: #f3f8fd; }
.accordion-item.active .accordion-indicator { transform: rotate(180deg); }
.accordion-item.active .accordion-content { max-height: 500px; padding-top: 10px; }
.services-summary-cta { text-align: center; margin-top: 50px; padding: 30px; background-color: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.services-summary-cta h3 { color: var(--primary-color); }

/* TESTIMONIALS */
.testimonials-section { background-color: var(--light-gray-color); }
.testimonials-slider { width: 100%; padding: 20px 0 50px 0; }
.swiper-slide { display: flex; justify-content: center; align-items: center; padding: 5px; }
.testimonial-card-v2 { background-color: #fff; border-radius: 15px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); max-width: 500px; width: 100%; margin: 0 auto; position: relative; }
.quote-icon { position: absolute; top: 20px; right: 20px; font-size: 3rem; color: var(--primary-color); opacity: 0.1; }
.testimonial-body { margin-bottom: 20px; }
.testimonial-body blockquote { font-size: 1.1rem; font-style: italic; color: #555; line-height: 1.8; }
.testimonial-footer { display: flex; align-items: center; gap: 15px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--secondary-color); }
.testimonial-meta { flex-grow: 1; }
.testimonial-name { font-weight: 700; color: var(--dark-text-color); }
.testimonial-location { font-size: 0.9rem; color: #777; }
.testimonial-rating { color: #FFC107; }
.swiper-pagination-bullet { background-color: #ccc; width: 10px; height: 10px; opacity: 0.8; }
.swiper-pagination-bullet-active { background-color: var(--primary-color); }

/* WEBLITE CTA */
.weblite-promo-v2 { background: linear-gradient(45deg, var(--primary-color), #007ac7); color: var(--light-text-color); }
.weblite-promo-v2 .section-pre-title, .weblite-promo-v2 .section-title { color: var(--light-text-color); }
.weblite-cta-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.weblite-cta-image { text-align: center; }
.weblite-cta-image img { max-width: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }
.weblite-features-list { list-style: none; margin: 30px 0; }
.weblite-features-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.05rem; }
.weblite-features-list i { background-color: var(--secondary-color); color: var(--light-text-color); width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.price-and-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 30px; }
.price-display-v2 { font-size: 1.2rem; font-weight: 500; padding: 10px 20px; background-color: rgba(255, 255, 255, 0.1); border-radius: 8px; }
.price-display-v2 span { font-size: 2.2rem; font-weight: 700; margin: 0 5px; }

/* CONTACT */
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 30px; background-color: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid #eee; }
.contact-info h3 { color: var(--primary-color); }
.contact-details-list { list-style: none; margin: 20px 0; }
.contact-details-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-details-list i { background-color: var(--light-gray-color); color: var(--primary-color); width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; color: #888; font-size: 0.9rem; }
.contact-detail-text a, .contact-detail-text span { font-size: 1.1rem; font-weight: 500; }
.contact-socials { display: flex; gap: 15px; margin-top: 20px; }
.contact-socials a { color: var(--primary-color); font-size: 1.5rem; transition: transform 0.3s ease; }
.contact-socials a:hover { transform: scale(1.1); color: var(--secondary-color); }

/* FOOTER */
.pre-footer-cta { background-color: var(--secondary-color); color: var(--light-text-color); padding: 50px 0; }
.pre-footer-cta h3 { font-size: 2rem; margin-bottom: 15px; }
.pre-footer-cta p { max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }
.pre-footer-cta .btn-light { font-weight: 700; }
.main-footer-v2 { background-color: var(--primary-color); color: #ccc; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-widget .widget-title { color: var(--light-text-color); font-size: 1.2rem; margin-bottom: 20px; }
.about-widget .footer-logo { font-size: 1.8rem; color: var(--light-text-color); }
.about-widget .footer-tagline { color: var(--secondary-color); margin-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--light-text-color); padding-right: 5px; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { color: #ccc; font-size: 1.3rem; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #4a7aa4; border-radius: 50%; transition: all 0.3s ease; }
.footer-socials a:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); color: var(--light-text-color); transform: translateY(-3px); }
.footer-bottom-v2 { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 20px; border-top: 1px solid #4a7aa4; font-size: 0.9rem; }
.footer-bottom-v2 a { color: var(--secondary-color); font-weight: 500; }
.back-to-top-btn { position: fixed; bottom: 20px; left: 20px; background-color: var(--secondary-color); color: var(--light-text-color); width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; }
.back-to-top-btn.active { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { transform: translateY(-4px); color: var(--light-text-color); }

/* =================================
   JS Effects Helpers
   ================================= */
.main-header.scrolled .navbar { height: 70px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* =================================
   Responsive Design (Media Queries)
   ================================= */

/* Mobile Menu Flyout */
@media (max-width: 991.98px) {
    .nav-menu { display: flex; position: fixed; right: -100%; top: 85px; flex-direction: column; background-color: #fff; width: 100%; height: calc(100vh - 85px); text-align: center; transition: right 0.4s ease-in-out; gap: 0; z-index: 999; }
    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; }
    .nav-link { display: block; padding: 20px; border-bottom: 1px solid #f1f1f1; }
    .nav-link:hover::after { width: 0; }
    .nav-cta-btn { margin: 20px auto; width: fit-content; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container { max-width: 720px; }
    .section-padding { padding: 80px 0; }
    .hero-features-centered { flex-direction: row; flex-wrap: wrap; }
    .hero-features-centered .separator { display: block; }
    .price-and-cta { flex-direction: row; align-items: center; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-v2 { flex-direction: row; justify-content: space-between; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container { max-width: 960px; }
    .navbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; }
    .navbar-logo { justify-self: start; }
    .nav-menu { display: flex; justify-self: center; position: static; flex-direction: row; width: auto; height: auto; background-color: transparent; border: none; }
    .navbar-actions { justify-self: end; }
    .nav-cta-btn { display: inline-block; }
    .hamburger { display: none; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .hero-section h1 { font-size: 3.8rem; }
    .hero-section .h2-alt { font-size: 1.7rem; }
    .about-grid { grid-template-columns: 4fr 6fr; gap: 60px; }
    .weblite-cta-grid { grid-template-columns: 55% 45%; gap: 60px; }
    .weblite-cta-image { order: 1; }
    .contact-wrapper { grid-template-columns: 1fr 1.5fr; padding: 50px; gap: 50px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}
