/*
* איצאב מתכות - קובץ CSS ראשי
* גרסה: 1.0
* תאריך: 06/04/2025
*/

/* === ריסט והגדרות בסיסיות === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4367;
    --secondary-color: #e67e22;
    --accent-color: #c0392b;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --dark-max: #000;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 6rem 0;
}

/* === לחצנים === */
.cta-button,
.cta-button-secondary,
.submit-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.6rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.cta-button:hover {
    background-color: #d35400;
    color: var(--light-text);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 100%;
}

.submit-button:hover {
    background-color: #0e2a3f;
}

/* === תפריט ניווט === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-text);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 1.5rem 0;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo a img {
    width: 5rem;
    height: auto;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-right: 2rem;
}

.rtl .nav-links li {
    margin-right: 0;
    margin-left: 2rem;
}

.nav-links a {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.rtl .nav-links a::after {
    right: 0;
    left: auto;
}

.ltr .nav-links a::after {
    left: 0;
    right: auto;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.language-switch button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: var(--transition);
}

.language-switch button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* === כותרות מקטעים === */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--dark-bg);
    font-size: 1.8rem;
    margin-bottom: 5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: .5rem;
}

/* === דף כותרת === */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12rem 0 6rem;
    text-align: center;
    margin-bottom: 5rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* === פוטר === */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--light-text);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-contact i {
    margin-left: 1rem;
    color: var(--secondary-color);
}

.ltr .footer-contact i {
    margin-left: 0;
    margin-right: 1rem;
}

.footer-contact a {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === תצוגה במובייל === */
@media screen and (max-width: 992px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 820px) {
    .nav-links {
        position: fixed;
        top: 7.5rem;
        right: -100%;
        width: 70%;
        height: calc(100vh - 7.5rem);
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
    }

    .ltr .nav-links {
        right: auto;
        left: -100%;
    }

    .nav-links.active {
        right: 0;
    }

    .ltr .nav-links.active {
        right: auto;
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .rtl .nav-links li,
    .ltr .nav-links li {
        margin-right: 0;
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }

    .logo a span {
        display: none;
    }
}

/* שיפור מראה לפוטר במובייל */
@media screen and (max-width: 768px) {
    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* הוספת flexbox לחלק התחתון של הפוטר */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* סגנון וידג'ט וואטסאפ */
.whatsapp-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes float-whatsapp {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

.whatsapp-button {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    will-change: transform;
    transition: transform 0.3s ease;
    animation:
        pulse-whatsapp 2s infinite,
        float-whatsapp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background-color: #128C7E;
    animation: none;
}

.whatsapp-button i {
    font-size: 24px;
    margin-left: 10px;
}

.whatsapp-text {
    font-weight: 600;
    margin-right: 10px;
}

.rtl .whatsapp-button i {
    margin-left: 0;
    margin-right: 10px;
}

.rtl .whatsapp-text {
    margin-right: 0;
    margin-left: 10px;
}

/* הסתרת הטקסט במסכים קטנים */
@media screen and (max-width: 576px) {
    .whatsapp-button {
        padding: 0;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-button i {
        margin: 0 !important;
    }
}

/* קישורים לרשתות חברתיות */
.social-links {
    display: flex;
    margin-top: 2rem;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.social-links i {
    font-size: 2rem;
}

/* עיצוב של הצהרת נגישות */
.accessibility-statement {
    margin-top: 1rem;
}

.accessibility-statement a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.accessibility-statement a:hover {
    color: var(--light-text);
}

/* שיפור מראה לכפתור חזרה למעלה */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

.ltr .back-to-top {
    right: auto;
    left: 20px;
}

/* שיפור מראה לפוטר במובייל */
@media screen and (max-width: 768px) {
    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* הוספת flexbox לחלק התחתון של הפוטר */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spacode-credit {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.spacode-credit a {
    color: var(--light-text);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: var(--transition);
}

.spacode-credit a:hover {
    opacity: 1;
    color: var(--secondary-color);
}