/* 
   Lito Group - Corporate Stylesheet
   Theme: Sharp, B2B, geometric, premium blue & white
   Direction: RTL
*/

:root {
    /* Color Palette - Premium Blue & White Corporate */
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    /* Light grey/blue block */
    --bg-surface: #ffffff;
    /* Card surface */
    --bg-surface-hover: #f8fafc;

    --text-primary: #0f172a;
    /* Deep slate */
    --text-secondary: #334155;
    --text-muted: #64748b;

    --accent: #0f4a9b;
    /* Premium Corporate Blue */
    --accent-hover: #1e3a8a;

    --border-color: rgba(15, 74, 155, 0.15);
    --border-strong: rgba(15, 74, 155, 0.3);

    /* Typography */
    --font-heading: 'Rubik', sans-serif;
    --font-subheading: 'Heebo', sans-serif;
    --font-body: 'Heebo', sans-serif;

    /* Layout & Spacing */
    --container-width: 1400px;
    --section-spacing: 120px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid {
    display: grid;
    gap: 40px;
}

.text-accent {
    color: var(--accent);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Tools */
.section-header {
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.align-start {
    align-items: flex-start;
    text-align: right;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin-bottom: 24px;
}

.section-description {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    max-width: 600px;
}

/* Buttons */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-subheading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(15, 74, 155, 0.1);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(15, 74, 155, 0.2);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(15, 74, 155, 0.15);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.brand-text {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
}

.nav-links li a.btn-primary {
    padding: 14px 40px;
    color: #ffffff !important;
}

.nav-links li a:not(.btn-primary) {
    color: var(--text-primary);
    display: inline-block;
    padding: 10px 0;
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 100;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--accent);
    background-color: var(--bg-surface-hover);
    padding-right: 30px;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../assets/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text-box {
    max-width: 800px;
    border-right: 4px solid var(--accent);
    padding-right: 32px;
}

.overline-text {
    font-family: var(--font-subheading);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--border-strong);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -100%;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    animation: scrollDrop 2s infinite ease-in-out;
}

.scroll-indicator span {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* Clients Section */
.clients-section {
    padding: 48px 0 32px 0;
    text-align: center;
}

.clients-title {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.clients-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 40px;
}

.client-logo {
    height: 42px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(15%);
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .clients-strip {
        gap: 20px 28px;
    }

    .client-logo {
        height: 32px;
        max-width: 90px;
    }
}

/* Subsidiaries Section */
.subsidiaries-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.subsidiary-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.subsidiary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
    z-index: 2;
}

.subsidiary-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 74, 155, 0.08);
}

.subsidiary-card:hover::before {
    transform: scaleX(1);
}

.card-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 74, 155, 0.2);
    transition: var(--transition);
}

.subsidiary-card:hover .card-image::after {
    background: transparent;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.subsidiary-card:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 32px;
}

.card-logo {
    height: 110px;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-number {
    font-family: var(--font-heading);
    color: var(--accent);
    opacity: 0.5;
    font-size: 1rem;
    font-weight: 700;
}

.card-content p {
    margin-bottom: 24px;
    min-height: 80px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.card-link svg {
    transition: var(--transition);
}

.card-link:hover {
    color: var(--accent-hover);
}

.card-link:hover svg {
    transform: translateX(-5px);
}

/* Engineering Render Section */
.engineering-render {
    padding: 0 0 var(--section-spacing) 0;
}

.engineering-render-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.engineering-render-image {
    max-width: 500px;
    width: 50%;
    height: auto;
    margin: 0;
    display: block;
    border: 1px solid var(--border-color);
    flex: 0 1 500px;
}

.why-choose-us {
    flex: 1 1 320px;
    max-width: 480px;
    min-width: 0;
}

.why-choose-us-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

.why-choose-us-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

.why-choose-us-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-choose-us-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.check-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .engineering-render-grid {
        flex-direction: column;
    }

    .engineering-render-image {
        width: 100%;
        height: auto;
        flex: none;
        object-fit: contain;
    }

    .why-choose-us {
        max-width: 100%;
    }
}

/* Promo Video Section */
.promo-video-section {
    text-align: center;
}

.promo-video-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.promo-video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 50.625%;
    /* 16:9 */
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.promo-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About Section */
.about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 32px;
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-bottom: 0px;
}

.stats-list li {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.about-image-wrapper {
    position: relative;
    padding: 24px;
}

.accent-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid var(--accent);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    box-shadow: 10px 10px 0px 0px var(--bg-alt);
}

/* Contact Section */
.contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-details {
    margin-top: 40px;
    display: grid;
    gap: 32px;
}

.detail-block h4 {
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.social-links {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: #1877F2;
    color: #ffffff;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: #145dc4;
    color: #ffffff;
    transform: scale(1.02);
}

.contact-map-wrapper {
    margin-top: 50px;
}

.contact-map-wrapper iframe {
    border-radius: 8px;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper {
    background-color: var(--bg-surface);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

input,
select,
textarea {
    background-color: var(--bg-main);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    margin-top: 16px;
    width: 100%;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%230f4a9b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: left 16px top 50%;
}

select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231e3a8a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
}


/* Footer */
.footer {
    background-color: #081226;
    color: #cbd5e1;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    color: #ffffff;
}

.footer-logo {
    height: 130px;
    object-fit: contain;
    margin-bottom: 24px;
}

.footer-brand .brand-text {
    color: #ffffff;
}

.footer-top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline {
    font-family: var(--font-subheading);
    margin-top: 16px;
    font-size: 1.1rem;
}

.footer-links h4 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    font-size: 0.95rem;
}

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

.legal-links a:hover {
    color: #ffffff;
}

/* Uniform Media Rows (videos/images side-by-side, aligned) */
.media-row {
    max-width: 1256px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.media-item {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-caption {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4px;
}

.media-caption h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
}

.media-fill {
    width: 300px;
    height: 480px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.media-fill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LTR Overrides (English mode) */
html[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="ltr"] .dropdown-menu li a:hover {
    padding-right: 24px;
    padding-left: 30px;
}

html[dir="ltr"] .hero-text-box {
    border-right: none;
    border-left: 4px solid var(--accent);
    padding-right: 0;
    padding-left: 32px;
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.2) 100%);
}

html[dir="ltr"] select {
    background-position: right 16px top 50%;
}

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

.lang-flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    opacity: 0.4;
    line-height: 0;
    transition: var(--transition);
}

.lang-flag-btn svg {
    display: block;
    border-radius: 2px;
}

.lang-flag-btn:hover {
    opacity: 0.8;
}

.lang-flag-btn.active {
    opacity: 1;
    border-color: var(--accent);
}

.lang-switcher-topbar {
    display: none;
}

@media (max-width: 768px) {
    .lang-switcher-topbar {
        display: flex;
    }
}

/* Mobile Gallery Lightbox */
.lito-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.lito-lightbox.active {
    display: flex;
}

.lito-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lito-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.lito-video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.lito-video-lightbox.active {
    display: flex;
}

.lito-video-lightbox video {
    max-width: 100%;
    max-height: 100%;
}

.video-play-icon {
    display: none;
}

.video-tap-overlay {
    display: none;
}

@media (max-width: 992px) {
    .image-gallery .gallery-item img {
        cursor: zoom-in;
    }

    .video-play-icon {
        display: flex;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        align-items: center;
        justify-content: center;
        pointer-events: none;
        z-index: 2;
    }

    .video-tap-overlay {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 3;
        cursor: pointer;
    }

    .media-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        max-width: 100%;
    }

    .media-item {
        width: 100%;
    }

    .video-standard-tall,
    .media-fill {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* Legal pages */
.legal-page-hero {
    padding: 130px 0 30px 0;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.legal-page-hero .section-header {
    margin-bottom: 0;
}

.legal-page-hero .section-line {
    margin: 0 auto 24px auto;
}

.legal-content {
    padding: 40px 0 80px 0;
}

.legal-body {
    max-width: 860px;
    margin: 0 auto;
}

.legal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 36px 0 12px 0;
}

.legal-body p,
.legal-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-body ul {
    list-style: disc;
    padding-inline-start: 24px;
    margin-bottom: 16px;
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
}

/* Contact form consent */
.consent-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.consent-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    padding: 0;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.consent-group label {
    font-weight: 400;
    line-height: 1.5;
}

.consent-group label a {
    color: var(--accent);
    text-decoration: underline;
}

/* Accessibility: skip link, focus, screen-reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    inset-inline-start: 12px;
    z-index: 6000;
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Accessibility toolbar */
.a11y-toggle {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 4500;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.a11y-panel {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 4500;
    width: 270px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 16px;
    direction: rtl;
}

html[dir="ltr"] .a11y-panel {
    direction: ltr;
}

.a11y-panel[hidden] {
    display: none;
}

.a11y-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.a11y-btn {
    padding: 10px 8px;
    border: 1px solid var(--border-strong);
    background: #f8fafc;
    color: #0f172a;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.a11y-btn[aria-pressed="true"] {
    background: var(--accent);
    color: #ffffff;
}

.a11y-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: var(--accent);
    text-decoration: underline;
    font-size: 0.9rem;
}

html.a11y-grayscale {
    filter: grayscale(1);
}

html.a11y-links a {
    text-decoration: underline !important;
}

html.a11y-readable * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em;
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.a11y-contrast body,
html.a11y-contrast section,
html.a11y-contrast nav,
html.a11y-contrast footer,
html.a11y-contrast div,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast span,
html.a11y-contrast label,
html.a11y-contrast input,
html.a11y-contrast select,
html.a11y-contrast textarea,
html.a11y-contrast button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-image: none !important;
    text-shadow: none !important;
}

html.a11y-contrast a {
    color: #ffeb3b !important;
    background-color: #000000 !important;
}

html.a11y-contrast .mobile-menu-btn span {
    background-color: #ffffff !important;
}

html.a11y-contrast .hero-overlay,
html.a11y-contrast .card-image::after {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }

    * {
        scroll-behavior: auto !important;
    }
}

/* Mobile Menu Toggle button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

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

    .hero-bg {
        background-image: url('../assets/phone-banner-version.png');
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar.menu-open .nav-links {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid var(--bg-alt);
    }

    .nav-links li a.btn-primary {
        text-align: center;
        margin-top: 10px;
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding: 0 20px 0 0;
        background-color: var(--bg-alt);
        display: none;
    }

    .nav-links li:hover .dropdown-menu,
    .nav-links li.active .dropdown-menu {
        display: block;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

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

    .hero-text-box {
        border-right: none;
        padding-right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
    }

    .stats-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    video {
        width: 100%;
        /* רוחב מלא */
        aspect-ratio: 16 / 9;
        /* שומר על היחס המקורי של הפוטאז' */
        height: auto;
        /* הגובה יתאים את עצמו לבד */
    }

    .gallery-item video {
        width: 100%;
        /* רוחב מלא של הקוביה */
        height: 100%;
        /* גובה מלא של הקוביה */
        object-fit: cover;
        /* זה הקסם: הסרטון ימלא את השטח בלי להימתח (יחתוך קצת קצוות אם צריך) */
        display: block;
        /* מבטל רווחים מיותרים למטה */
        border-radius: 8px;
        /* אופציונלי: כדי לתת לו פינות מעוגלות כמו שאר האתר */
    }

    /* אם אתה רוצה שהסרטון ישמור על פרופורציה של 16:9 בדיוק בלי להיחתך: */
    .gallery-item.keep-ratio video {
        object-fit: contain;
        /* יראה את כל הפריים, אבל עלול להשאיר שוליים שחורים */
        background: #000;
        /* רקע שחור לשוליים */
    }
}
/* Contact entry points */
.cta-band {
    background: var(--accent);
    color: #ffffff;
    padding: 56px 0;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-band h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
    color: #ffffff;
}
.cta-band p { margin: 0; opacity: 0.9; font-size: 1.1rem; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #ffffff; color: var(--accent); border-color: #ffffff; }
.cta-band .btn-primary:hover { background: var(--bg-alt); }
.cta-band .btn-outline { color: #ffffff; border-color: #ffffff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.contact-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 4400;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.contact-fab:hover { background: var(--accent-hover); color: #ffffff; }
@media (max-width: 992px) {
    .cta-band { padding: 40px 0; text-align: center; }
    .cta-band-inner { justify-content: center; }
    .cta-band-actions { justify-content: center; width: 100%; }
    .cta-band h2 { font-size: 1.6rem; }
}
.footer { padding-bottom: 70px; }
