/* ================================================================
   MAPLETEL - Global Styles
   Color Palette:
   Dark Blue:    #003366
   Medium Blue:  #1A5276
   Light Blue:   #2980B9  ← HEADER COLOR
   Sky Blue:     #85C1E9
   White:        #FFFFFF
   Light Gray:   #F8F9FA
   Dark Text:    #1A2A3A
   ================================================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1A2A3A;
    line-height: 1.6;
    background: #FFFFFF;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #5DADE2;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1A5276;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 14px;
}

/* ---------- HEADER (LIGHT BLUE) ---------- */
header {
    background: #5DADE2;  /* LIGHT BLUE HEADER */
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(41, 128, 185, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    max-height: 50px;
    max-width: 220px;
    object-fit: contain;
}

/* For dark logo on light header, no filter needed */
.logo-img {
    filter: none;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li {
    position: relative;
}

nav ul li > a {
    color: #FFFFFF;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

nav ul li > a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.arrow {
    font-size: 10px;
    margin-left: 4px;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dropdown-menu li a {
    color: #1A2A3A;
    padding: 8px 20px;
    display: block;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background: #F8F9FA;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
}

/* ---------- HERO (DARK BLUE GRADIENT) ---------- */
.hero {
    background: linear-gradient(135deg, #003366 0%, #1A5276 100%);
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.hero-sub {
    color: #85C1E9;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- PILLARS ---------- */
.pillars {
    padding: 80px 0;
    background: #FFFFFF;
}

.pillars h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 48px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: #FFFFFF;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.1);
}

.pillar-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.pillar-card h3 {
    font-size: 22px;
    color: #003366;
    margin-bottom: 12px;
}

.pillar-card p {
    color: #1A2A3A;
    margin-bottom: 16px;
    font-size: 15px;
}

.pillar-benefit {
    background: #5DADE2;
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.pillar-link {
    color: #5DADE2;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s;
}

.pillar-link:hover {
    color: #003366;
}

/* ---------- ADVANTAGE ---------- */
.advantage {
    padding: 80px 0;
    background: #F8F9FA;
}

.advantage h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 16px;
}

.advantage-intro {
    text-align: center;
    color: #1A2A3A;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 48px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.advantage-card {
    background: #FFFFFF;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.08);
}

.advantage-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.advantage-card h4 {
    font-size: 16px;
    color: #003366;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: #1A2A3A;
    line-height: 1.5;
}

/* ---------- AUTOMATION ---------- */
.automation {
    padding: 80px 0;
    background: #FFFFFF;
}

.automation h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 16px;
}

.automation-intro {
    text-align: center;
    color: #1A2A3A;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 48px;
}

.automation-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.step-box {
    padding: 28px 24px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.step-box:hover {
    transform: scale(1.01);
}

.step-box-1 {
    background: #85C1E9;
    color: #1A2A3A;
}

.step-box-2 {
    background: #5DADE2;
    color: #FFFFFF;
}

.step-box-3 {
    background: #003366;
    color: #FFFFFF;
}

.step-box-4 {
    background: #1A5276;
    color: #FFFFFF;
}

.step-icon {
    font-size: 24px;
}

.step-box h4 {
    font-size: 18px;
    margin: 8px 0 8px;
}

.step-box p {
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- LAUNCH ---------- */
.launch {
    padding: 80px 0;
    background: #F8F9FA;
}

.launch h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 48px;
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.launch-item {
    background: #FFFFFF;
    border: 2px solid #e0e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
    font-weight: 500;
    color: #003366;
    transition: border-color 0.3s, transform 0.3s;
}

.launch-item:hover {
    border-color: #5DADE2;
    transform: translateY(-2px);
}

/* ---------- QUOTE ---------- */
.quote {
    padding: 80px 0;
    background: #003366;
}

.quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote blockquote p {
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1.6;
    font-style: italic;
}

.quote blockquote cite {
    display: block;
    margin-top: 16px;
    color: #85C1E9;
    font-size: 16px;
    font-style: normal;
}

/* ---------- PARTNERS ---------- */
.partners {
    padding: 80px 0;
    background: #FFFFFF;
}

.partners h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 16px;
}

.partners-intro {
    text-align: center;
    color: #1A2A3A;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 48px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partner-card {
    background: #F8F9FA;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.partner-card:hover {
    border-color: #5DADE2;
    transform: translateY(-4px);
}

.partner-card h4 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 8px;
}

.partner-card p {
    color: #1A2A3A;
    font-size: 14px;
}

.partner-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 80px 0;
    background: #F8F9FA;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 16px;
}

.about-intro {
    text-align: center;
    color: #5DADE2;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-col h3 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 16px;
}

.about-col p {
    color: #1A2A3A;
    font-size: 16px;
    line-height: 1.8;
}

.about-col ul {
    list-style: none;
}

.about-col ul li {
    color: #1A2A3A;
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px solid #e0e8f0;
}

.about-col ul li:last-child {
    border-bottom: none;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 80px 0;
    background: #FFFFFF;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 16px;
}

.contact-intro {
    text-align: center;
    color: #1A2A3A;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 48px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.contact-card {
    background: #F8F9FA;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.contact-card:hover {
    border-color: #5DADE2;
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.contact-card h4 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    color: #1A2A3A;
    font-size: 14px;
}

.contact-email {
    text-align: center;
    font-size: 20px;
    color: #5DADE2;
    font-weight: 600;
}

/* ---------- FINAL CTA ---------- */
.cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, #003366 0%, #1A5276 100%);
    text-align: center;
}

.cta-final h2 {
    color: #FFFFFF;
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-final p {
    color: #85C1E9;
    font-size: 18px;
    margin-bottom: 32px;
}

/* ---------- FOOTER ---------- */
footer {
    background: #003366;
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-img {
    height: 35px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1); /* Makes dark logo white for footer */
}

.footer-tagline {
    color: #85C1E9;
    font-size: 14px;
    margin-top: 8px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #85C1E9;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #85C1E9;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

.footer-copy {
    color: #85C1E9;
    font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .pillar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advantage-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .automation-steps {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #5DADE2;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 16px 24px;
        gap: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    nav ul.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: none;
        padding: 4px 0 4px 16px;
    }

    .dropdown-menu li a {
        color: #FFFFFF;
        padding: 6px 12px;
        font-size: 13px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #FFFFFF;
    }

    .hero {
        padding: 60px 0 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .advantage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-options {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 35px;
        max-height: 40px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .launch-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .step-box {
        padding: 20px 16px;
    }

    .step-box h4 {
        font-size: 16px;
    }

    .logo-img {
        height: 28px;
        max-height: 32px;
        max-width: 130px;
    }


    /* ================================================================
   RTL (Right-to-Left) Language Support
   For Hebrew, Arabic, etc.
   ================================================================ */

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

/* RTL navigation */
body.rtl nav ul {
    direction: rtl;
}

body.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

body.rtl .dropdown-menu li a {
    text-align: right;
}

/* RTL hero */
body.rtl .hero h1,
body.rtl .hero-sub,
body.rtl .hero-cta {
    text-align: center;
}

/* RTL pillars */
body.rtl .pillar-card {
    text-align: right;
}

body.rtl .pillar-benefit {
    float: right;
}

/* RTL advantage */
body.rtl .advantage-card {
    text-align: right;
}

/* RTL launch grid - keep centered */
body.rtl .launch-item {
    text-align: center;
}

/* RTL quote */
body.rtl .quote blockquote {
    text-align: center;
}

/* RTL footer */
body.rtl .footer-col ul li {
    text-align: right;
}

body.rtl .footer-legal {
    direction: rtl;
}

/* RTL language switcher */
body.rtl .lang-switcher .dropdown-menu {
    right: 0;
    left: auto;
}

/* Language Switcher Styles */
.lang-switcher .lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switcher .lang-flag {
    font-size: 18px;
}

.lang-switcher .lang-name {
    font-size: 13px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px !important;
}

.lang-option .lang-flag {
    font-size: 20px;
}

.lang-option.active {
    background: #F0F4F8;
    font-weight: 600;
}

.lang-option:hover {
    background: #F8F9FA;
}

/* Language loading indicator */
#language-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 20px;
}

#language-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive RTL adjustments */
@media (max-width: 768px) {
    body.rtl nav ul {
        padding-right: 16px;
        padding-left: 0;
    }
    
    body.rtl .dropdown-menu {
        padding-right: 16px;
        padding-left: 0;
    }
    
    .lang-switcher .lang-name {
        display: none;
    }
}
