/* Brand refinements – loaded last on every page. Keeps the existing Color Masterbatch
   palette and typefaces; fixes contrast, consistency and small-screen issues. */
:root{
  --cm-brand:#173f86;
  --cm-brand-deep:#0d2f6e;
  --cm-brand-cyan:#2db6db;
  --cm-brand-magenta:#cb4398;
  --cm-brand-cream:#fdf6f2;
  /* Shared button tokens: previously only defined on the home stylesheet, which left the
     WhatsApp button transparent (white text on white) on inner pages. */
  --cm-btn-ink:#173f86;
  --cm-btn-deep:#0d2f6e;
  --cm-btn-line:rgba(23,63,134,.18);
}

/* Fixed contact rail: same solid look on every page and over every background. */
.cm-contact-rail a.cm-contact-rail__phone{background:var(--cm-brand-cream)!important;color:var(--cm-brand)!important}
.cm-contact-rail a.cm-contact-rail__phone:hover{background:#f7ece4!important;color:var(--cm-brand-deep)!important}
.cm-contact-rail a.cm-contact-rail__whatsapp{background:linear-gradient(110deg,#1d4a91 0%,var(--cm-brand) 62%,var(--cm-brand-deep) 100%)!important;color:#fff!important}
.cm-contact-rail a.cm-contact-rail__whatsapp:hover{background:var(--cm-brand-deep)!important}
.cm-contact-rail__whatsapp .cm-contact-rail__label,.cm-contact-rail__whatsapp svg{color:#fff!important}
/* Same rail on pages that don't load the React stylesheet (production film, 404): no wave divider, white bar with
   a thin brand line, uppercase labels. Matches the rail as rendered on the main pages. */
.cm-contact-rail{background:#fff!important;border-top:1px solid rgba(18,58,129,.18)!important;box-shadow:0 -8px 24px rgba(9,37,83,.1)!important}
.cm-contact-rail::before{height:2px!important;background:#123a81!important}
.cm-contact-rail a.cm-contact-rail__phone,.cm-contact-rail a.cm-contact-rail__whatsapp{height:60px!important}
.cm-contact-rail__whatsapp::before{display:none!important}
.cm-contact-rail__label{font-size:.86rem!important;font-weight:800!important;letter-spacing:.09em!important;text-transform:uppercase}

/* Footer credit stays readable above the fixed rail and the cookie-settings button. */
@media (max-width:767px){
  .cm-site-footer{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}
}

/* About page hero: text sat directly on a busy factory video. A light brand veil keeps the
   video visible while making the copy readable (WCAG AA). */
body[data-cm-route="/kimligimiz"] main>section:first-of-type .bg-gradient-to-r{
  background:linear-gradient(90deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.84) 46%,rgba(255,255,255,.62) 72%,rgba(255,255,255,.42) 100%)!important;
}
[dir="rtl"] body[data-cm-route="/kimligimiz"] main>section:first-of-type .bg-gradient-to-r,
body.cm-rtl[data-cm-route="/kimligimiz"] main>section:first-of-type .bg-gradient-to-r{
  background:linear-gradient(270deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.84) 46%,rgba(255,255,255,.62) 72%,rgba(255,255,255,.42) 100%)!important;
}
body[data-cm-route="/kimligimiz"] main>section:first-of-type :is(h1,h2,h3,p,span,li,strong),
body[data-cm-route="/kimligimiz"] main>section:first-of-type .cm-identity-copy{
  color:var(--cm-brand)!important;-webkit-text-fill-color:currentColor;text-shadow:none!important;
}

/* Headings and copy: calmer line breaks, no edge-to-edge overflow on phones. */
main :is(h1,h2,h3){text-wrap:balance}
main p{text-wrap:pretty}
/* Page headings: the inner-page heroes used 110-144px display type, which overpowered the page and, with the
   product-name "nowrap" rule in localization-audit-fixes.css, let long words (e.g. "SERTİFİKATLAR", "ПРОИЗВОДСТВО")
   run over the intro text beside them. Calmer sizes, normal wrapping between words, and site-shell.js shrinks any
   heading whose longest word is still wider than its column (so words are never split or overlapped). */
main .grid > :has(h1){min-width:0}
main h1:not(.hero-title){white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important}
@media (min-width:481px){
  main h1.font-bold.uppercase{font-size:clamp(3rem,6vw,5.5rem)!important}
  body[data-cm-route^="/nedir/"] main h1.font-bold.uppercase{font-size:clamp(2.5rem,4.4vw,4.25rem)!important}
}
@media (max-width:480px){
  main h1:not(.hero-title){font-size:clamp(2.25rem,11vw,3.5rem)!important}
}
/* Section headings (uppercase h2) were 48px on phones and 72px on desktop; long words in kk/ru/az/sr clipped at the
   screen edge. Slightly smaller, and site-shell.js fits any that still overflow. */
main :is(h2,h3){overflow-wrap:normal;hyphens:manual}
@media (max-width:767px){main h2.font-bold.uppercase{font-size:clamp(1.85rem,8.4vw,2.6rem)!important}}
@media (min-width:768px){main h2.font-bold.uppercase[class*="text-7xl"]{font-size:clamp(2.75rem,4.6vw,3.9rem)!important}}

/* Keyboard focus that matches the brand on every interactive element. */
:where(a,button,summary,[role="button"],input,select,textarea):focus-visible{
  outline:3px solid var(--cm-brand-cyan);outline-offset:3px;
}

/* Prerendered text is for crawlers and no-JS visitors; JS visitors see the header at once and the React page as soon
   as it renders. theme-init.js removes .cm-js after 4s as a safety net if the app fails to start. */
.cm-js #root > .cm-initial-content{display:none}
/* Keep the content area one screen tall until React renders, so the footer never starts in view and gets pushed. */
.cm-js #root:has(> .cm-initial-content){min-height:100vh}
/* The shared header is fixed and 88px tall on every page; reserve its space before site-shell.js runs instead of
   when it adds body.cm-shared-shell (that late padding shifted the whole page by 88px). */
body{padding-top:88px!important}
/* Ad landing pages: ads-landing.js fills the hero quick-lead form after load; on one-column layouts reserve its height
   so the proof section below is not pushed down by ~750px. */
@media (max-width:980px){.ad-hero__quick[data-quick-lead-form]:not(:has(form)){min-height:780px}}
@media (max-width:620px){.ad-hero__quick[data-quick-lead-form]:not(:has(form)){min-height:810px}}

/* Home "trust" scroll-reveal headline: unrevealed letters started at 10% opacity (contrast ~1.1:1). 60% keeps the
   reveal effect while meeting the 3:1 large-text contrast minimum. */
.trust-reveal-section .trust-message-wrapper .trust-primary-message,
.trust-reveal-section .trust-message-wrapper .trust-support-message{color:rgba(26,66,138,.6)}

/* Cookie-settings control: a compact round icon button so it no longer covers hero copy, forms and the footer
   credit. The label stays in the accessibility tree and slides out on hover/keyboard focus. */
.cm-consent-settings{padding:6px!important;gap:0!important;min-height:0!important;border-radius:999px!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important}
.cm-consent-settings__label{max-width:0;overflow:hidden;white-space:nowrap;opacity:0;transition:max-width .25s ease,opacity .2s ease,margin .25s ease}
.cm-consent-settings:hover .cm-consent-settings__label,
.cm-consent-settings:focus-visible .cm-consent-settings__label{max-width:16rem;opacity:1;margin-inline:8px 6px}
@media (prefers-reduced-motion:reduce){.cm-consent-settings__label{transition:none}}

/* Browser surfaces in brand colours. */
::selection{background:rgba(45,182,219,.28);color:inherit}
:root{accent-color:var(--cm-brand);caret-color:var(--cm-brand)}

/* Contact page e-mail heading stays on one line (site-shell.css) but overflowed its card at tablet widths. */
@media (min-width:768px) and (max-width:1099px){body.cm-shared-shell[data-cm-route$="/iletisim"] main > section:nth-of-type(2) > div > a[href^="mailto:"] h2{font-size:clamp(.95rem,1.85vw,1.15rem)!important}}


/* Landing pages: long Turkish words in section headings overflowed on phones. */
@media (max-width:620px){.ad-section__head h2,.ad-detail__copy h2,.ad-form__heading h2{font-size:clamp(1.9rem,9.2vw,3.5rem)!important;overflow-wrap:anywhere;hyphens:auto}}
/* Dark mode: sections that kept a white background while the text turned light (2026-11-26). */
/* Landing pages (colour, market and product pages built on ads-landing.css) */
html[data-cm-theme="dark"] body :is(.ad-proof,.ad-process,.ad-faq,.ad-section,.ad-form-section){background:#071a33!important;color:#d9e6f6!important;border-color:#24446c!important}
html[data-cm-theme="dark"] body .ad-section:nth-of-type(even){background:#0b2448!important}
html[data-cm-theme="dark"] body .ad-proof article,html[data-cm-theme="dark"] body .ad-process__grid>*,html[data-cm-theme="dark"] body .ad-faq details,html[data-cm-theme="dark"] body .ad-faq__grid{border-color:#2b4d78!important}
html[data-cm-theme="dark"] body :is(.ad-proof,.ad-process,.ad-faq,.ad-section,.ad-form-section) :is(p,li,dd,td,span:not([class*="ad-button"])){color:#d9e6f6!important}
html[data-cm-theme="dark"] body :is(.ad-proof b,.ad-section__head p,.ad-form__heading p,.ad-process__grid span,.ad-quick-form__eyebrow){color:#9fe8f7!important}
html[data-cm-theme="dark"] body :is(.ad-section__head h2,.ad-section h2,.ad-section h3,.ad-process__grid h3,.ad-faq summary,.ad-form__heading h2,.ad-form-section h2,.ad-quick-form h2){color:#f2f7ff!important}
html[data-cm-theme="dark"] body :is(.ad-form,.ad-quick-form){background:#0b2448!important;border-color:#2b4d78!important;color:#eaf3ff!important;box-shadow:none!important}
html[data-cm-theme="dark"] body :is(.ad-form,.ad-quick-form) label>span{color:#bcd4ef!important}
html[data-cm-theme="dark"] body :is(.ad-form,.ad-quick-form) :is(input,select,textarea){color:#f4f8ff!important;background:#0a2142!important;border-color:#5d7ca2!important}
html[data-cm-theme="dark"] body :is(.ad-form,.ad-quick-form) select option{background:#0a2142;color:#f4f8ff}
html[data-cm-theme="dark"] body :is(.ad-form,.ad-quick-form) button[type="submit"]{background:#62d7f0!important;border-color:#62d7f0!important;color:#071a33!important}
html[data-cm-theme="dark"] body :is(.ad-section,.ad-faq) a:not(.ad-button){color:#9fe8f7}
/* Home page: white blocks with light text */
html[data-cm-theme="dark"] body.cm-shared-shell main :is(.trust-reveal-section,.cm-blog-showcase,.video-contact-cta-section,.cm-home-faq-host){background:#071a33!important;color:#eaf3ff!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .trust-reveal-section .bg-white{background:transparent!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .trust-reveal-section .bg-white [class*="text-[#1A428A]"]{color:#9fe8f7!important;border-color:#62d7f0!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .cm-blog-showcase :is(h2,h3,h4,a){color:#f2f7ff!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .cm-blog-showcase :is(p,span,small){color:#bcd4ef!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .cm-blog-showcase :is(article,li,[class*="card"]){background:#0b2448!important;border-color:#2b4d78!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .trust-reveal-section :is(.trust-primary-message,.trust-support-message),html[data-cm-theme="dark"] body.cm-shared-shell main .trust-reveal-section :is(.trust-primary-message,.trust-support-message)>div{color:#eaf3ff!important}
html[data-cm-theme="dark"] body.cm-shared-shell main .trust-reveal-section p{color:#9fe8f7!important}
/* Hero title: never wider than its mask, so the heading-fit script can shrink long titles (RU/KK/SR fonts are wider) instead of clipping them. */
.hero-container .hero-title-mask>.hero-title{min-width:0!important;max-width:100%!important}
/* Landing pages: links inside running text look like links. */
.ad-section[data-company-enrichment] :is(p,li) a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
