/* === SHARED STYLES (MINIMAL & GLOBAL) === */

:root {
    --main-color: #77bfa3;
    --hover-color: #5f9ea0;
    --bg-color: #fcfcf9;
    --text-color: #333;
    --accent: #b4dfd2;
    --font: 'Quicksand', sans-serif;
}

html,
body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 3rem 1rem;
    text-align: center;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

h2, .section h2 {
    text-align: center;
}


.btn {
    background-color: var(--main-color);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: var(--hover-color);
}

/* RTL Support */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .container,
html[dir="rtl"] .section,
html[dir="rtl"] .footer-links {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] nav ul {
    flex-direction: row!important;
}

html[dir="rtl"] .lang-switch button {
    direction: rtl;
}

/* === Header Fixes === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: #fff;
}

.logo {
    height: 48px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}


nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--main-color);
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
}
/* === Footer Fixes === */
footer {
    background-color: #fff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #777;
}

footer .container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: inherit;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    margin: 0 0.8rem;
    text-decoration: none;
    color: var(--main-color);
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social {
    margin-top: 0.5rem;
}

.social a {
    margin: 0 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.social a:hover {
    color: var(--main-color);
}

.contactflow-highlight .btn {
    margin-top: 1.5rem;
}

#contact .btn {
    margin-top: 1.5rem;
}

html[dir="rtl"] .highlight-text {
    text-align: right;
    padding-right: 2rem;
}

html[dir="rtl"] .footer-links,
html[dir="rtl"] .hero-left,
html[dir="rtl"] .container {
    text-align: right;
}

html[dir="rtl"] .btn {
    margin-top: 1rem;
}

#backToTop .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    display: none;
}
#backToTop:hover .tooltip {
    display: block;
}

#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="rtl"] #backToTop {
    right: auto;
    left: 1.5rem;
}
@media (max-width: 768px) {
    nav ul {
        gap: 0.6rem;
    }
}
