/* =========================================================
   OUNOVA additions to the ITinfinite template.
   Scope: logo, language switcher, Arabic typography, forms,
   small content helpers. No template component is restyled.
   ========================================================= */

/* Logo */
.site-logo .navbar-brand img.oun-logo { height: 44px; width: auto; max-width: 100%; }
.header-default.is-sticky .site-logo .navbar-brand img.oun-logo { height: 38px; }
.main-menu-offcanvas .navbar-brand img.oun-logo { height: 36px; width: auto; }
.footer-logo img.oun-logo { height: 40px; width: auto; }
.oun-panel-logo { height: 40px; width: auto; }

/* Skip link */
.oun-skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 10000; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 4px; }
.oun-skip:focus { top: 1rem; color: #000; }

/* Language switcher: reuses the template submenu look */
.oun-lang .main-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.oun-lang .nav-item { position: relative; display: flex; align-items: center; }
.oun-lang .nav-item > a { font-family: "Jost", sans-serif; font-size: 17px; color: #fff; padding: 10px 0; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.oun-lang .nav-item > a i.fa-chevron-down { font-size: 11px; }
.oun-lang .nav-item:hover > a, .oun-lang .nav-item:focus-within > a { color: #77BEFF; }
.oun-lang .submenu { background: #212121; list-style: none; position: absolute; inset-inline-end: -20px; top: 100%; z-index: 20; min-width: 170px; opacity: 0; visibility: hidden; padding: 12px 0; margin-top: 15px; border-radius: 5px; box-shadow: 0 10px 50px rgba(0,0,0,.1); transition: all .3s ease-in-out; }
.oun-lang .nav-item:hover .submenu, .oun-lang .nav-item:focus-within .submenu { opacity: 1; visibility: visible; margin-top: 0; }
.oun-lang .submenu li { padding: 0 22px; }
.oun-lang .submenu li a { display: block; font-size: 16px; padding: 7px 0; color: #fff; }
.oun-lang .submenu li a:hover, .oun-lang .submenu li a.active { color: #77BEFF; }
.oun-lang .submenu a[lang="ar"] { font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif; }
.header-default .site-action { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.header-default .site-action .action-hamburger .hamburger { display: flex; width: 70px; height: 60px; background-image: linear-gradient(-55deg, #3663D8 2%, #77BEFF 56%, #00D1FF 99%); padding: 20px; align-items: center; justify-content: center; }
.oun-lang-mobile { display: flex; gap: 10px; align-items: center; }
.oun-lang-mobile a { color: #fff; font-size: 15px; padding: 4px 2px; opacity: .75; }
.oun-lang-mobile a.active { color: #77BEFF; opacity: 1; border-bottom: 2px solid #77BEFF; }
.header-default .mobile-action { display: none; gap: 24px; align-items: center; }
@media (max-width: 1199.98px) {
  .header-default .site-action { display: none; }
  .header-default .mobile-action { display: flex; }
  .header-default { padding: 0 20px; }
  .header-default .site-logo { min-width: 0; }
}
@media (max-width: 575.98px) {
  .site-logo .navbar-brand img.oun-logo { height: 32px; }
  .oun-lang-mobile { gap: 6px; }
  .oun-lang-mobile a { font-size: 13px; }
}

/* Hero: supporting paragraph under the headline */
.main-banner.main-banner-3 .oun-hero-text { max-width: 760px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.85); margin: 0 0 40px; }
.oun-sector-icons li a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; font-size: 18px; background-image: linear-gradient(-55deg, #3663D8 2%, #77BEFF 56%, #00D1FF 99%); border-radius: 50%; }
.clienti-profile.oun-sector-icons li { overflow: hidden; }

/* Content helpers */
.oun-need { font-style: italic; color: #b9c6dd; }
.oun-kicker { display: inline-block; color: #77BEFF; font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
.oun-block { scroll-margin-top: 110px; }
.oun-muted { color: rgba(255,255,255,.6); }
.oun-name-card { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 28px; }
.oun-cta-box p { color: rgba(255,255,255,.8); margin: 10px 0 30px; }
.oun-cta-actions { display: flex; justify-content: center; }
.newsletter-subscribe.oun-cta-box { text-align: center; }
.oun-close-note { color: rgba(255,255,255,.7); }
.blog-style-3 .blog-title a { color: inherit; }
.case-studies-wrapper .case-studies-img img { object-fit: cover; }
.service-title a { color: inherit; }

/* Footer call to action reuses the newsletter input look */
.oun-footer-cta { display: block; position: relative; text-decoration: none; }
.oun-footer-cta .form-control { display: block; cursor: pointer; }
.oun-footer-cta:hover .form-control { color: #77BEFF; }
.oun-footer-mail { word-break: break-all; }

/* Forms */
.oun-trap { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form select.form-control, .oun-close-form select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2377BEFF' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
[dir="rtl"] .contact-form select.form-control, [dir="rtl"] .oun-close-form select.form-control { background-position: left 18px center; padding-right: 20px; padding-left: 44px; }
.contact-form select.form-control option, .oun-close-form select option { background: #111; color: #fff; }
.oun-hint { display: block; color: rgba(255,255,255,.55); margin: -10px 0 20px; font-size: 14px; }
.btn.oun-submit[disabled] { opacity: .55; cursor: not-allowed; }
.form-status { color: rgba(255,255,255,.75); border-inline-start: 3px solid #77BEFF; padding-inline-start: 12px; }
input[dir="ltr"] { text-align: start; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }

/* Arabic typography */
[dir="rtl"] body, [dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select, [dir="rtl"] .btn, [dir="rtl"] a {
  font-family: "IBM Plex Sans Arabic", "Jost", sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .title, [dir="rtl"] .sub-title, [dir="rtl"] .service-title, [dir="rtl"] .counter-title, [dir="rtl"] .marquee-item .title,
[dir="rtl"] .case-studies-title, [dir="rtl"] .team-title, [dir="rtl"] .blog-title, [dir="rtl"] .widget-title, [dir="rtl"] .nav-link,
[dir="rtl"] .event-schedule h5, [dir="rtl"] .event-schedule h6, [dir="rtl"] .accordion-button, [dir="rtl"] .reviews-number,
[dir="rtl"] .newsletter-subscribe .title, [dir="rtl"] .process-title, [dir="rtl"] .city-name {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .main-banner.main-banner-3 .banner-inner .banner-conent .title { line-height: 1.35; }
[dir="rtl"] .btn-arrow svg, [dir="rtl"] .event-link svg, [dir="rtl"] .blog-action svg, [dir="rtl"] .service-links svg, [dir="rtl"] .case-study-link svg { transform: scaleX(-1); }
[dir="rtl"] .list img { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .marquee-inner, .rotate { animation-duration: 60s !important; }
}

/* Hero: the template's animated icon sits between words so it works in every language */
.main-banner.main-banner-3 .banner-inner .banner-conent .title .icon-title.oun-icon-inline { width: .62em; height: .62em; vertical-align: middle; margin: 0 .08em; }
.main-banner.main-banner-3 .banner-inner .banner-conent .title .icon-title.oun-icon-inline .banner-icon { position: static; width: 100%; height: 100%; display: block; }

/* Menu spacing: OUNOVA menu has seven items in four languages */
@media (min-width: 1200px) {
  .header-3 .site-menu .main-menu, .header-default .site-menu .main-menu { gap: 0 32px; flex-wrap: nowrap; }
  .header-3 .site-menu .main-menu .nav-item a, .header-default .site-menu .main-menu .nav-item a { font-size: 17px; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .header-3 .site-menu .main-menu, .header-default .site-menu .main-menu { gap: 0 22px; }
  .header-3 .site-menu .main-menu .nav-item a, .header-default .site-menu .main-menu .nav-item a { font-size: 16px; }
  .header-default .site-logo, .header-default .site-action { min-width: 0; }
  .header-3 .site-action { gap: 24px; }
}

/* Closing call to action (template newsletter block) */
.oun-close-title { text-align: center; margin-bottom: 30px; }
.newsletter-subscribe .title { white-space: nowrap; }

/* Footer idea link styled as the template newsletter field */
.site-footer.footer-dark .oun-footer-cta .form-control { background: transparent; color: #D4D6D7; padding-inline-end: 80px; margin: 0; }
.oun-footer-cta .subscribe-btn { display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .widget-newsletter .oun-footer-cta .subscribe-btn { right: auto; left: 0; }

/* Keep the marquee and decorative layers from widening the page (RTL) */
.marquee-wrapper { overflow: hidden; }
#page { overflow-x: clip; }

/* ---------- Round 3 ---------- */

/* OUNOVA mark replaces the template subtitle star and hero smiley */
.sub-title img.oun-mark { width: 24px; height: 24px; object-fit: contain; }

/* Headings keep the case written in the copy (sentence case in EN, natural case in FR/RU) */
.section-title .title, .main-banner .title, .inner-header .title, .case-studies-title, .service-title,
.blog-title, .package-title, .history-content h5 { text-transform: none; }

/* Long words (RU/FR) never push a grid or a heading past the screen */
h1, h2, h3, h4, h5, h6, .title, .service-title, .case-studies-title, .counter-title, .blog-title, p, li {
  overflow-wrap: break-word;
}
@media (max-width: 575.98px) {
  html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="fr"] h1, html[lang="fr"] h2, html[lang="fr"] h3 { hyphens: auto; }
}
.grid-wrapper > *, .row > *, .service-inner, .service-content { min-width: 0; }
@media (max-width: 575.98px) {
  html[lang="ru"] .inner-header .title, html[lang="fr"] .inner-header .title { font-size: 34px; line-height: 1.2; }
  html[lang="ru"] .section-title .title, html[lang="fr"] .section-title .title { font-size: 28px; }
}

/* Text links under an intro paragraph (hero and services) */
.oun-text-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.oun-text-links a { color: #77BEFF; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.oun-text-links a svg { stroke: #77BEFF; }
.oun-text-links a:hover { color: #fff; }
.oun-text-links a:hover svg { stroke: #fff; }
[dir="rtl"] .oun-text-links a svg { transform: scaleX(-1); }
.oun-hero-links { margin: -20px 0 36px; }

/* "Why OUNOVA" points carry a title and a sentence */
.about-details .list li span strong { color: #fff; font-weight: 600; }

/* Footer slogan */
.oun-footer-slogan { color: rgba(255,255,255,.7); margin-top: 10px; }

/* Languages inside the mobile menu */
.oun-lang-offcanvas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 10px; }
.oun-lang-offcanvas i { color: #77BEFF; }
.oun-lang-offcanvas a { color: rgba(255,255,255,.8); font-size: 16px; }
.oun-lang-offcanvas a.active { color: #77BEFF; }
.oun-lang-offcanvas a[lang="ar"] { font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif; }

/* M1: phones keep the header inside the screen; languages move into the menu */
@media (max-width: 575.98px) {
  .header .mobile-action .oun-lang-mobile { display: none; }
  .header .site-logo { min-width: 0; flex: 0 1 auto; }
  .header .site-logo .navbar-brand img.oun-logo { height: 30px; }
  .header-3 .header-inner, .header-default .header-inner { gap: 12px; }
}

/* M4: two-column lists collapse to one column on phones */
@media (max-width: 767.98px) {
  .list-wrapper .list.col-2 li { width: 100%; }
}

/* M2 + R4: sector cards on the home page */
.case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1.active .category { color: #fff; }
@media (max-width: 767.98px) {
  .case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1 .case-studies-img .category {
    top: 18px; inset-inline-end: 15px; right: auto; max-width: calc(100% - 30px);
    padding: 6px 16px; font-size: 13px; line-height: 1.35; white-space: normal; text-align: center;
  }
  [dir="ltr"] .case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1 .case-studies-img .category { right: 15px; }
  .case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1 .case-studies-info { padding: 20px 18px; }
  .case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1 .case-studies-title { font-size: 22px; line-height: 1.3; }
  .case-study-fancy-wrapper .case-studies-wrapper.case-studies-style-1 .case-studies-description {
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
}

/* R1: Arabic hero mirrors the photo so people sit opposite the text */
[dir="rtl"] .main-banner.main-banner-3 .banner-bg { transform: scaleX(-1); object-position: 100% 0; }

/* Tables (engineering software list) */
.oun-table { color: rgba(255,255,255,.85); --bs-table-bg: transparent; --bs-table-color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.12); }
.oun-table th { color: #fff; font-weight: 600; white-space: nowrap; }
.oun-table td, .oun-table th { padding: 12px 14px; vertical-align: top; }
[dir="rtl"] .oun-table td:last-child { direction: ltr; text-align: right; }

/* Method steps use the template history block; titles sit above the text */
.history-content h5 { margin-bottom: 10px; }

/* Contract options (template pricing accordion) */
.pgs-pricing .package-price { gap: 8px; align-items: baseline; }
[dir="rtl"] .pgs-pricing .pricing-link svg { transform: scaleX(-1); }

/* "Start with one step" tabs: three tabs sit to the right of a two-line title; keep labels on one line where possible */
@media (min-width: 992px) {
  .event-tabs .nav-link.btn { font-size: 18px; padding-left: 12px; padding-right: 12px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .event-tabs .nav-link.btn { font-size: 16px; white-space: normal; min-height: 64px; }
}

/* "Why OUNOVA" points carry full sentences, so the list keeps a smaller indent than the template's short labels */
@media (min-width: 992px) {
  [dir="ltr"] .about-details .list-wrapper { margin-left: 40px; margin-right: 0; }
  [dir="rtl"] .about-details .list-wrapper { margin-right: 40px; margin-left: 0; }
}

/* Value cards: every photo fills its card like the template team photos */
.team-item .team-img img { width: 100%; }
