/*
    -----------------------------------------------------
    EUROPEYE - עיצוב מודרני בסגנון KERATO.LIFE
    -----------------------------------------------------
*/

/* בסיס גלובלי ופונטים */
:root{
    --header-offset: 90px;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.7;
    color: #333;
    margin: 0;
    padding: var(--header-offset, 90px) 0 0 0;
    background-color: #f8f8f8;
    direction: rtl; /* לשמירת כיוון RTL (ברירת מחדל) */
}

/* קונטיינר מרכזי */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* כותרות וטיפוגרפיה */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #004d99; /* כחול כהה ראשי */
    font-weight: 900;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: 300;
}

/*
    -----------------------------------------------------
    HEADER & NAVIGATION & TABS
    -----------------------------------------------------
*/
header {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

.header-content {
    display: flex;
    justify-content: space-between; /* מרווח בין הבלוקים */
    align-items: center;
}

/* פיצול ההדר ל-3 אזורים: לוגו | לשוניות | שפות */
.header-left, .header-right {
    flex-grow: 0;
    flex-shrink: 0;
}

.tabs-container {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* תופס את המקום הפנוי וממרכז את התוכן שלו */
    margin: 0 20px; /* רווח מהצדדים */
}

.israeye-logo {
    max-height: 70px;
}

/* Language selector removed */

/* לשוניות ראשיות ומשניות */
.sub-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin: 0 5px;
}

.tab-button.main-tab {
    font-size: 1.1rem;
}

.tab-button:hover {
    color: #007bff;
}

.tab-button.active {
    color: #004d99;
    border-bottom-color: #004d99;
}

/* עדיפות חזותית ל-FLAAK */
.tab-button.active.flaak-btn {
    color: #ff9900;
    border-bottom-color: #ff9900;
}

/* תוכן הלשוניות */
/* הסתרת כל לשוניות התוכן הראשיות כברירת מחדל */
.main-content-wrapper .tab-content {
    display: none;
}

/*
    -----------------------------------------------------
    HERO SECTION
    -----------------------------------------------------
*/
.hero-section {
    /* שינוי: רקע תמונה במקום צבע */
    background-image: url('eyetop1.png'); 
    background-size: cover;
    background-position: center 30%; /* כיוון כדי שהתמונה תיראה טוב */
    background-repeat: no-repeat;
    
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 10px;
    min-height: 350px; /* גובה מינימלי להצגת התמונה */
    
    /* הפיכת הטקסט לבהיר יותר כדי שיתבלט על רקע כהה */
    color: white; 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.hero-title {
    font-size: 3.5rem; /* הגדלה קלה של הטקסט */
    font-weight: 900;
    color: white; /* ודא שהכותרת לבנה */
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: 1.6rem;
    color: white; /* ודא שכותרת המשנה לבנה */
}

/*
    -----------------------------------------------------
    TECH BLOCKS (ICLASE & FLAAK)
    -----------------------------------------------------
*/
.tech-block {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    border-right: 5px solid #007bff; /* ICLASE - כחול */
}

.tech-block.flaak-theme {
    border-right: 5px solid #ff9900; /* FLAAK - כתום */
}

.tech-section-title {
    font-size: 2rem;
    color: #007bff;
    padding-bottom: 10px;
    margin-top: 0;
    text-align: right;
}

.tech-block.flaak-theme .tech-section-title {
    color: #ff9900;
}

.tech-description {
    text-align: right;
    font-weight: 300;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
}

.info-title {
    font-size: 1.4rem;
    color: #004d99;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.two-columns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.two-columns > div {
    flex: 1;
    min-width: 300px;
}

/* רשימות נקיות */
.clean-list {
    list-style: disc;
    padding-right: 20px;
    margin: 0;
}
.clean-list li {
    margin-bottom: 8px;
}
.safety-rules .danger-zone {
    color: #dc3545; /* אדום/סכנה */
}

/* טבלאות נתונים */
.grade-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 5px;
}
.grade-data-table th, .grade-data-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}
.grade-data-table th {
    background-color: #007bff;
    color: white;
    font-weight: 700;
}
.tech-block.flaak-theme .grade-data-table th {
    background-color: #ff9900;
}
.range-text {
    font-size: 1.1rem;
    text-align: center;
    padding: 10px 0;
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* תמונות ופוטר טכנולוגי */
.image-wrapper {
    text-align: center;
    margin: 40px 0;
}
.responsive-image {
    max-width: 100%;
    height: auto;
    /* הוסרו border-radius ו-box-shadow כדי לאפשר לתמונה שקופה להשתלב ברקע */
}
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin: 40px 0;
}
.footer-text {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 5px;
    color: #004d99;
    border: 1px solid #cce5ff;
}

/*
    -----------------------------------------------------
    PACKAGES SECTION
    -----------------------------------------------------
*/
.package-details-content {
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-right: 4px solid #007bff;
}

.package-details-content.flaak-theme {
    border-right: 4px solid #ff9900;
}

.package-details-content h3 {
    color: #007bff;
    border-bottom: 1px solid #cce5ff;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.package-details-content.flaak-theme h3 {
    color: #ff9900;
    border-bottom: 1px solid #ffeeba;
}

.package-list {
    list-style: none;
    padding: 0;
}

.package-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.5;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.package-list .icon {
    font-size: 2rem;
    margin-left: 15px;
    color: #28a745; /* אייקונים ירוקים */
    line-height: 1;
}

.package-list strong {
    display: block;
    font-size: 1.1rem;
    color: #004d99;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    text-align: center;
    font-size: 0.95rem;
}

/*
    -----------------------------------------------------
    ABOUT, CONTACT & CTA
    -----------------------------------------------------
*/
.about-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-h4 {
    font-size: 1.6rem;
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.vip-service .about-h4 {
    color: #28a745;
}

.contact-section {
    background-color: #fff;
    padding: 50px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-details {
    text-align: center;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 10px 0;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
}

.cta-section {
    background-color: #004d99;
    color: white;
    text-align: center;
    padding: 50px 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 900;
    color: white;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff9900; /* כתום מודגש */
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.main-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    color: #777;
    font-size: 0.9rem;
}

.israeye-footer-icon {
    max-height: 20px;
    vertical-align: middle;
}

/*
    -----------------------------------------------------
    רספונסיביות
    -----------------------------------------------------
*/
@media (max-width: 768px) {
    /* מאפשר לבלוקים להתפרס על שורות נפרדות בנייד */
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .header-left, .header-right {
        margin-bottom: 10px;
    }
    
    .header-left { order: 1; }
    .header-right { order: 2; }

    /* כפתורי הניווט הראשיים יתפרסו על כל הרוחב */
    .tabs-container {
        width: 100%;
        margin: 10px 0;
        order: 3;
    }
    .tab-button.main-tab {
        padding: 8px 10px;
        font-size: 1rem;
        flex-grow: 1;
    }
    .hero-section {
        padding: 60px 20px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .two-columns {
        flex-direction: column;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------------------------------
   LANGUAGE SELECTOR (Flags)
----------------------------------------------------- */
.language-selector{
    display:flex;
    gap:1px;
    align-items:center;
    justify-content:flex-end;
}

/* remembered style */
.lang-button {
    background: none;
    border: 2px solid transparent;
    padding: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.lang-button img {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    display:block;
}

/* -----------------------------------------------------
   FOOTER SOCIAL ICONS
----------------------------------------------------- */
.footer-social{
    display:flex;
    gap:14px;
    justify-content:center;
    align-items:center;
    margin-top:10px;
}
.social-link{
    display:inline-flex;
    width:30px;
    height:30px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    text-decoration:none;
    border:1px solid #eee;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.social-link:hover{
    transform: translateY(-2px);
    border-color:#004d99;
}
.social-link svg{
    width:18px;
    height:18px;
    fill:#004d99;
}

/* -----------------------------------------------------
   LTR/RTL GLOBAL FLIP (full site)
----------------------------------------------------- */
html[dir="ltr"] body{
    direction:ltr;
}
html[dir="ltr"] .section-title,
html[dir="ltr"] .section-subtitle,
html[dir="ltr"] .contact-details,
html[dir="ltr"] .footer-text,
html[dir="ltr"] .range-text{
    text-align:center;
}

/* Flip common right-aligned blocks to left for LTR */
html[dir="ltr"] .tech-section-title,
html[dir="ltr"] .tech-description{
    text-align:left;
}
html[dir="ltr"] .tech-block{
    border-right:none;
    border-left:5px solid #007bff;
}
html[dir="ltr"] .tech-block.flaak-theme{
    border-left:5px solid #ff9900;
}
html[dir="ltr"] .package-details-content{
    border-right:none;
    border-left:4px solid #007bff;
}
html[dir="ltr"] .package-details-content.flaak-theme{
    border-left:4px solid #ff9900;
}

/* Clean list bullets flip */
html[dir="ltr"] .clean-list li{
    padding-right:0;
    padding-left:20px;
}
html[dir="ltr"] /* Tabs order: keep Hebrew as-is, reverse for LTR languages */
html[dir="ltr"] .tabs-container{
    flex-direction: row;
}

/* -----------------------------------------------------
   Global CENTER text everywhere (as requested)
----------------------------------------------------- */
body, body * {
    text-align: center !important;
}

/* -----------------------------------------------------
   New Eye Paris logo as a subtle background behind text
----------------------------------------------------- */
.bg-neweye {
    position: relative;
    overflow: hidden;
}
.bg-neweye::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("NewEyeParis.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5; /* subtle watermark */
    pointer-events: none;
    z-index: 0;
}
.bg-neweye > * {
    position: relative;
    z-index: 1;
}


/* =====================================================
   PACKAGES -> CARDS GRID (3 per row)
   ===================================================== */
#packages .package-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    margin: 0;
}

#packages .package-list li{
    margin: 0;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#packages .package-list li:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(0,0,0,0.10);
    border-color: rgba(0,123,255,0.35);
}

/* keep the icon clean on top */
#packages .package-list .icon{
    font-size: 2.4rem;
    margin: 0 0 12px 0;
    line-height: 1;
}

/* text inside card */
#packages .package-list li > div{
    width: 100%;
}

#packages .package-list strong{
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #004d99;
}

#packages .package-list li span{
    display: block;
}

/* make links inside cards feel consistent */
#packages .package-list a{
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

/* responsive: 2 cards per row on tablets, 1 on mobile */
@media (max-width: 1024px){
    #packages .package-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px){
    #packages .package-list{
        grid-template-columns: 1fr;
    }
}

/* BEFORE / AFTER VIDEOS */
.before-after-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 50px;
}

.before-after-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.before-after-content.active {
    display: grid;
}

.before-after-content video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

.video-credit {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 25px;
}
.video-credit a {
    color: #004d99;
    font-weight: 700;
    text-decoration: none;
}


/* Footer legal links */
.footer-legal-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    align-items:center;
    margin: 8px 0 14px 0;
    font-size: 14px;
    line-height: 1.4;
}
.footer-legal-links a{
    color:#004d99;
    text-decoration:none;
    cursor:pointer;
    opacity:0.9;
}
.footer-legal-links a:hover{
    text-decoration:underline;
    opacity:1;
}
.footer-legal-links .sep{
    opacity:0.4;
}

/* Legal pages */
.legal-page .section-title{
    margin-top: 10px;
}
.legal-content{
    max-width: 900px;
    margin: 0 auto;
    text-align: right;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 16px;
}
.legal-content h3{
    margin-top: 14px;
    margin-bottom: 8px;
}
.legal-content p, .legal-content li{
    margin-bottom: 10px;
}
.legal-content ul{
    padding-right: 18px;
}
html[dir="ltr"] .legal-content{
    text-align:left;
}


/* Font Awesome icons in contact */
.contact-details .icon i {
    margin-left: 8px;
    color: #28a745;
}
.precheck-section {
  display: flex;
  justify-content: center;
  margin: 80px 0;
}

.precheck-box {
  background: linear-gradient(135deg, #003a75, #005fa3);
  color: #ffffff;
  padding: 40px;
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.precheck-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #ffffff;
}

.precheck-subtitle {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
}

.precheck-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
}

.form-block label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  font-weight: 500;
}

.precheck-button {
  margin-top: 10px;
  background-color: #ff9900;
  color: #ffffff;
  border: none;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.precheck-button:hover {
  background-color: #e68a00;
  transform: translateY(-2px);
}

.precheck-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lead-status {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.lead-status.ok {
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.lead-status.err {
  background: rgba(231, 76, 60, 0.16);
  border: 1px solid rgba(231, 76, 60, 0.35);
}


/* === FIX: prevent horizontal scroll (Contact tab) without touching lead logic === */
html, body {
  overflow-x: hidden;
}

/* Anti-spam honeypot: visually hidden WITHOUT pushing layout sideways */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Flex inputs should be allowed to shrink inside rows (prevents subtle overflow) */
.form-row input {
  min-width: 0;
}

