/*
Theme Name: Online Legion
Theme URI: https://onlinelegion.bg/
Author: Online Legion
Description: A modern, animated marketing agency WordPress theme.
Version: 1.0.21
Text Domain: online-legion
*/
@import url('assets/css/style.css');

.form-status { color: var(--acid); font-size: 12px; margin: 15px 0 0; }
.custom-logo-wrap .custom-logo-link { display: block; }
.custom-logo-wrap .custom-logo { display: block; max-height: 42px; max-width: 180px; width: auto; }
.ol-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Online Legion identity: cobalt blue from the supplied logo. */
:root { --acid: #176be9; --coral: #ff684f; }
.button-light, .header-cta { color: #fff; }
.hero-sphere { background: radial-gradient(circle at 34% 24%, #8fc2ff 0, #176be9 29%, #0b3d89 60%, #091b38 100%); }
.hero-logo { width: 55%; height: 68%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.brand-lockup { gap: 9px; }
.brand-mark-shell { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: #f4f1eb; padding: 3px; }
.brand-mark-shell img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: .9; letter-spacing: .5px; }
.brand-text small { font-size: 7px; font-weight: 800; letter-spacing: 1.65px; }
.brand-text strong { font-size: 13px; letter-spacing: .55px; }
@media (max-width: 760px) { .brand-mark-shell { width: 32px; height: 32px; flex-basis: 32px; } .brand-text strong { font-size: 11px; } }

.manifesto-logo { width: 50%; max-height: 72%; object-fit: contain; filter: brightness(0) invert(1); opacity: .98; }
@media (max-width: 760px) { .manifesto-logo { width: 45%; max-height: 70%; } }
.manifesto-wordmark { color: #fff; display: flex; flex-direction: column; align-items: center; line-height: .78; letter-spacing: -.07em; transform: rotate(-7deg); }
.manifesto-wordmark small { font-size: clamp(16px, 2vw, 28px); font-weight: 800; letter-spacing: .32em; margin: 0 0 13px .32em; }
.manifesto-wordmark strong { font-size: clamp(58px, 7vw, 108px); font-weight: 800; }
@media (max-width: 760px) { .manifesto-wordmark small { font-size: 14px; margin-bottom: 10px; } .manifesto-wordmark strong { font-size: 58px; } }

.service-link { color: inherit; text-decoration: none; cursor: pointer; }
.service-link:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
.service-arrow { font-size: 22px; font-style: normal; justify-self: end; transition: transform .25s ease; }
.service-link:hover .service-arrow { transform: translate(4px, -4px); }
.service-detail[id] { scroll-margin-top: 108px; }

/* Higher-contrast copy and a richer navy background for the brand. */
:root { --ink: #101522; --muted: #5d6572; }
.hero { background-color: #071021; background-image: radial-gradient(circle at 83% 76%, rgba(20,103,239,.62), transparent 37%), radial-gradient(circle at 7% 18%, rgba(73,132,255,.24), transparent 34%), linear-gradient(135deg, #07101f 0%, #0d1d39 53%, #071426 100%); }
.page-hero, .statement, .contact-section, .site-footer { background-color: #0c1220; background-image: radial-gradient(circle at 100% 0%, rgba(23,107,233,.16), transparent 31%), linear-gradient(135deg, #0b101a 0%, #111a2a 100%); }
.hero .eyebrow { color: #f5f8ff; font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero .eyebrow span { width: 34px; background: #78aeff; }
.art-caption { padding: 7px 10px; border-radius: 99px; background: rgba(8,13,24,.62); color: #eff5ff; font-size: 9px; letter-spacing: 1.05px; }
.service-row p { color: #3b4350; font-size: 14px; font-weight: 500; line-height: 1.55; }
.service-description p { color: #303845; font-size: 14px; }
.manifesto-logo-plate { width: min(74%, 315px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; transform: rotate(7deg); }
.manifesto-logo-plate:before { display: none; }
.manifesto-logo-mark { width: 86%; height: 79%; object-fit: contain; position: relative; z-index: 1; filter: brightness(0) invert(1) drop-shadow(0 10px 15px rgba(0,0,0,.12)); }
.manifesto-logo-type { color: #fff; display: flex; flex-direction: column; align-items: center; line-height: .86; letter-spacing: .5px; position: relative; z-index: 1; text-shadow: 0 3px 12px rgba(0,0,0,.16); }
.manifesto-logo-type small { font-size: 9px; font-weight: 800; letter-spacing: 2.5px; margin-left: 2.5px; }
.manifesto-logo-type strong { font-size: 22px; letter-spacing: .75px; }
.card-top { padding: 20px; gap: 42px; }
.card-top small { font-size: 10px; line-height: 1.45; letter-spacing: 1px; font-weight: 700; }
.card-top i { font-size: 21px; }
.card-bottom { padding: 19px 23px; }
.card-bottom strong { font-size: 32px; }
.card-bottom small { font-size: 10px; letter-spacing: .35px; font-weight: 600; }
@media (max-width: 760px) { .hero .eyebrow { font-size: 10px; letter-spacing: 1.35px; } .art-caption { font-size: 8px; } .service-row p { color: #323945; } .manifesto-logo-plate { width: min(82%, 270px); } .manifesto-logo-mark { width: 84%; height: 78%; } .manifesto-logo-type strong { font-size: 21px; } .card-top { transform: scale(.83); } .card-bottom { transform: scale(.83); } }
.value-grid h3 { font-size: 32px; }
.value-grid p { color: #303846; font-size: 14px; line-height: 1.72; }

/* Stronger emphasis makes the two-part headlines read as one complete idea. */
.hero h1 em, .page-hero h1 em, .statement h2 em, .cta-banner h2 em, .intro h2 em, .service-detail h2 em, .manifesto h2 em { font-weight: 700; font-style: italic; letter-spacing: -.06em; }
.intro h2 em { display: block; max-width: 900px; font-size: .9em; line-height: 1.1; }
.hero-text, .intro-right p, .page-lead, .service-description p, .manifesto-copy > p:last-child { font-weight: 500; }
.intro-highlight { display: inline-block; margin-top: .2em; color: #fff; font-family: var(--display); font-size: .78em; font-weight: 800; line-height: 1.2; letter-spacing: -.065em; background: linear-gradient(108deg, #176be9 0%, #1254bd 100%); padding: .14em .3em .18em; box-shadow: 8px 9px 0 rgba(16,21,34,.12); }
.service-detail h2 em, .manifesto-copy h2 em { font-family: var(--display); font-weight: 800; font-style: normal; letter-spacing: -.065em; }
@media (max-width: 760px) { .intro-highlight { font-size: .74em; line-height: 1.25; margin-top: .22em; box-shadow: 5px 6px 0 rgba(16,21,34,.12); } }

/* Mobile-first composition: a compact top bar and a full-screen navigation. */
.mobile-menu-cta { display: none; }
@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }
  .site-header { position: fixed; height: 68px; padding: 0 5vw; background: rgba(23, 23, 26, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .site-header .logo { position: relative; z-index: 12; }
  .brand-mark-shell { width: 35px; height: 35px; flex-basis: 35px; border-radius: 8px; }
  .brand-text small { font-size: 6px; }
  .brand-text strong { font-size: 12px; }
  .menu-toggle { position: relative; z-index: 12; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(244,241,235,.35); border-radius: 50%; }
  .menu-toggle span { width: 15px; transition: transform .3s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.7px) rotate(-45deg); }
  .main-nav { display: flex; position: fixed; inset: 0; z-index: 11; padding: 124px 8vw 42px; margin: 0; background: #17171a; gap: 14px; visibility: hidden; opacity: 0; transform: translateX(100%); transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .25s, visibility .45s; }
  .main-nav.open { display: flex; visibility: visible; opacity: 1; transform: translateX(0); }
  .main-nav a { color: #f4f1eb; font-size: clamp(34px, 10vw, 46px); font-weight: 800; letter-spacing: -.065em; line-height: 1.05; width: fit-content; }
  .main-nav a:after { bottom: -2px; background: var(--acid); }
  .main-nav .mobile-menu-cta { display: flex; font-size: 13px; letter-spacing: 0; margin-top: auto; margin-bottom: 10px; align-items: center; gap: 20px; padding: 16px 19px; width: 100%; justify-content: space-between; border-radius: 99px; background: var(--acid); color: #fff; }
  .mobile-menu-cta i { font-size: 20px; font-style: normal; }
  .hero { min-height: 710px; padding: 118px 7vw 310px; }
  .hero h1 { font-size: clamp(49px, 14vw, 66px); line-height: .94; }
  .hero-text { font-size: 13px; max-width: 315px; margin: 22px 0; }
  .hero-actions { gap: 17px; flex-wrap: wrap; }
  .hero-actions .button { padding: 15px 18px; }
  .hero-art { right: -4vw; bottom: 28px; width: 290px; height: 260px; }
  .hero-sphere { width: 242px; height: 242px; right: 5px; top: 0; }
  .hero-logo { width: 53%; height: 68%; }
  .card-top { top: -6px; right: 0; transform: scale(.72); transform-origin: right top; }
  .card-bottom { bottom: -9px; left: -7px; transform: scale(.72); transform-origin: left bottom; }
  .art-caption { display: none; }
  .marquee-section { padding: 12px 0; }
  .section-pad { padding: 74px 7vw; }
  .intro-grid { gap: 24px; }
  .intro h2, .statement h2 { font-size: clamp(35px, 10vw, 46px); }
  .intro-right p { font-size: 13px; }
  .services-preview { padding-top: 16px; padding-bottom: 74px; }
  .service-row { padding: 25px 0; }
  .service-row:hover { padding-left: 0; }
  .selected-work { padding-top: 72px; }
  .project-large .project-visual, .project-visual { height: 300px; }
  .project-meta { padding-top: 11px; }
  .statement { min-height: 430px; padding-bottom: 130px; }
  .statement:after { font-size: 138px; bottom: 6px; right: -15px; }
  .round-link { bottom: 38px; width: 76px; height: 76px; }
  .cta-banner { min-height: 410px; padding: 58px 7vw; }
  .cta-banner h2 { font-size: clamp(32px, 9vw, 42px); }
  .site-footer { padding: 48px 7vw 27px; }
  .footer-top { gap: 27px; padding-bottom: 42px; }
  .footer-top p { max-width: 280px; }
  .page-hero { min-height: 455px; padding: 123px 7vw 62px; }
  .page-hero h1 { font-size: clamp(47px, 13vw, 62px); }
  .page-lead { font-size: 13px; }
  .service-detail { padding: 45px 0; }
  .service-detail h2 { font-size: 32px; }
  .portfolio-image { height: 315px; }
  .manifesto { gap: 42px; }
  .manifesto-shape { width: 100%; height: 270px; }
  .manifesto-copy h2 { font-size: 36px; }
  .value-grid { gap: 30px; }
  .contact-section { padding: 118px 7vw 68px; gap: 45px; }
  .contact-intro h1 { font-size: 56px; }
  .contact-form label { font-size: 9px; margin-bottom: 22px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .contact-form .button { width: 100%; justify-content: space-between; padding: 17px 20px; }
}

/* Mobile menu repair and arrow-free touch UI. */
@media (max-width: 760px) {
  .site-header { z-index: 1000; }
  .main-nav,
  .main-nav.open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 142px 8vw 34px !important;
    background: #17171a !important;
    background-image: radial-gradient(circle at 110% 0%, rgba(23,107,233,.28), transparent 32%) !important;
    z-index: 999 !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow-y: auto;
  }
  .main-nav.open { visibility: visible !important; opacity: 1 !important; transform: translateX(0) !important; }
  .main-nav:not(.open) { visibility: hidden !important; opacity: 0 !important; transform: translateX(100%) !important; pointer-events: none; }
  .button b,
  .hero-actions .text-link span,
  .arrow-link b,
  .service-row a,
  .service-arrow,
  .round-link i,
  .mobile-menu-cta i,
  .contact-mail span,
  .footer-mail span,
  .contact-form .button b { display: none; }
  .button, .hero-actions .button { gap: 0; }
  .hero-actions .button { justify-content: center; }
  .hero-actions .text-link { padding-bottom: 5px; }
  .service-row { grid-template-columns: 13% 1fr; }
  .service-link { -webkit-tap-highlight-color: transparent; }
  .service-link:active h3 { color: var(--acid); }
  .arrow-link { gap: 0; }
  .round-link { font-size: 8px; }
  .hero-art { isolation: isolate; }
  .hero-sphere { overflow: hidden !important; clip-path: circle(50% at 50% 50%); -webkit-clip-path: circle(50% at 50% 50%); box-shadow: none !important; animation: none; }
  .hero-sphere:after { inset: 8px; }
}
