/* ==========================================================================
   UZCAN 2026 — shared theme
   Loaded on every page. On inner pages it is loaded AFTER the legacy
   stylesheet, so it re-skins the legacy components through their tokens.
   ========================================================================== */

:root {
  /* New palette */
  --navy: #102a43;
  --navy-deep: #0a1c2e;
  --deck: #243b53;
  --slate: #486581;
  --slate-2: #627d98;
  --fog: #d9e2ec;
  --mist: #bcccdc;
  --hull: #f5f7fa;
  --orange: #ef6c1a;
  --orange-deep: #b8500f;
  --wa: #117a3d;            /* WhatsApp green, 5.4:1 with white */
  --wa-deep: #0c5f2f;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;

  /* Legacy tokens remapped so old components adopt the new look */
  --yellow: var(--orange); --yellow-dark: var(--orange-deep); --yellow-light: #f59352; --yellow-pale: #fdf0e7;
  --amber: var(--orange); --amber-dark: var(--orange-deep); --amber-700: var(--orange-deep);
  --black: var(--navy); --black-soft: var(--deck); --black-card: var(--deck);
  --off-white: var(--hull); --grey-50: var(--hull); --grey-100: #e6ecf2; --grey-200: var(--fog);
  --grey-300: var(--slate); --grey-400: var(--slate); --grey-500: #334e68;
  --slate-900: var(--navy); --slate-300: var(--mist);
  --font-display: var(--display); --font-body: var(--body);
  --radius-sm: 3px; --radius-md: 4px; --radius-lg: 4px; --radius-xl: 6px;
  --shadow-sm: none; --shadow-md: 0 8px 24px rgba(16,42,67,.10); --shadow-lg: 0 16px 40px rgba(16,42,67,.14);
  --shadow-yellow: none;
  --border: 1px solid var(--fog);
  --container: var(--wrap);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: #fff; line-height: 1.6; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.u-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.u-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none; }
.u-skip:focus { left: 0; outline: 3px solid var(--orange); }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Buttons (shared with legacy .btn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: 14px 22px; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; box-shadow: none; transform: none;
}
.btn:hover { transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-xl { padding: 15px 26px; font-size: 1rem; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--deck); }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }

/* ---------- Header ---------- */
.u-header { position: relative; z-index: 50; color: #fff; background: var(--navy); }
.u-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.u-nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.u-logo { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: .06em; line-height: 1; text-decoration: none; color: #fff; }
.u-logo span { color: var(--orange); }
.u-menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.u-menu a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .92; }
.u-menu a:hover, .u-menu a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.u-actions { display: flex; align-items: center; gap: 12px; }
.u-phone { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.u-lang { position: relative; }
.u-lang-btn, .u-menu-btn {
  background: none; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
  font: 500 .85rem var(--body); cursor: pointer; min-height: 40px; padding: 6px 12px;
}
.u-lang-list {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px;
  list-style: none; background: #fff; color: var(--navy); border-radius: 4px; box-shadow: 0 12px 30px rgba(16,42,67,.25); z-index: 60;
}
.u-lang.is-open .u-lang-list { display: block; }
.u-lang-list a { display: block; padding: 9px 12px; color: var(--navy); text-decoration: none; border-radius: 3px; font-size: .92rem; }
.u-lang-list a:hover, .u-lang-list a[aria-current="true"] { background: var(--hull); }
.u-lang-list a[aria-current="true"] { font-weight: 600; }
.u-menu-btn { display: none; align-items: center; gap: 8px; }
.u-menu-btn .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.u-menu-btn .bars::before, .u-menu-btn .bars::after, .u-menu-btn .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.u-menu-btn .bars::before { top: 0; } .u-menu-btn .bars span { top: 5px; } .u-menu-btn .bars::after { bottom: 0; }

@media (max-width: 1080px) {
  .u-menu-btn { display: inline-flex; }
  .u-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 20px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 30px rgba(0,0,0,.25);
  }
  .u-header.is-open .u-menu { display: flex; }
  .u-menu a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .u-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .u-phone { display: none; }
  .u-nav { gap: 12px; }
  .u-logo { font-size: 1.7rem; }
}

/* ---------- Footer (new markup and legacy markup) ---------- */
.u-footer, footer { background: var(--navy-deep); color: var(--mist); font-size: .95rem; }
.u-footer { padding: 64px 0 28px; }
.u-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.u-footer h2 { font: 600 .95rem var(--body); color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.u-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.u-footer a, footer a { color: var(--mist); text-decoration: none; }
.u-footer a:hover, footer a:hover { color: #fff; text-decoration: underline; }
.u-foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.u-foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.u-foot-legal ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 1080px) { .u-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .u-foot-grid { grid-template-columns: 1fr; } }

/* legacy footer re-skin (language pages keep their own footer links) */
footer:not(.u-footer) { padding-top: 64px; }
.footer-logo-text { font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 1.9rem; }
.footer-desc, .footer-copy, .footer-legal a, .footer-links a, .footer-cities a, .footer-email { color: var(--mist); font-size: .92rem; }
.footer-legal a { font-size: .85rem; }
.footer-col-title { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; color: #fff; }
.footer-phone { font-family: var(--body); color: #fff; }
.footer-wa { color: #7ee2a0; font-size: .92rem; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

/* ---------- Mobile quick-contact bar (new + legacy #sticky-cta) ---------- */
.u-mobile-bar { display: none; }
@media (max-width: 760px) {
  .u-mobile-bar, #sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 150;
    padding: 0 0 env(safe-area-inset-bottom, 0px); background: var(--navy); border: 0; backdrop-filter: none;
  }
  #sticky-cta .sticky-cta-inner { display: contents; }
  .u-mobile-bar a, #sticky-cta .sticky-btn {
    display: flex; align-items: center; justify-content: center; min-height: 58px; margin: 0; padding: 0 12px;
    color: #fff; font: 600 1rem var(--body); text-decoration: none; border-radius: 0; box-shadow: none; background: var(--navy);
  }
  .u-mobile-bar a:first-child, #sticky-cta .sticky-btn-call { background: var(--orange-deep); color: #fff; }
  #sticky-cta .sticky-btn-wa { background: var(--wa); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Legacy component re-skin (inner pages)
   ========================================================================== */
.container { max-width: var(--wrap); padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt, .section-dark { background: var(--hull); }
.section-darker { background: #e6ecf2; }
.section-black { background: var(--navy); }

.section-title, .page-h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: .005em; line-height: 1.04;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem); color: var(--navy);
}
.section-title.on-dark, .section-black .section-title { color: #fff; }
.section-sub, .page-desc { color: var(--slate); font-size: 1.08rem; line-height: 1.65; max-width: 62ch; }
.section-header { margin-bottom: 48px; }

/* Page hero */
.page-hero {
  padding: 88px 0 72px; color: #fff; border: 0;
  background-color: var(--navy);
  background-image: linear-gradient(100deg, rgba(16,42,67,.96) 0%, rgba(16,42,67,.88) 55%, rgba(16,42,67,.6) 100%),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1600&q=60");
  background-size: cover; background-position: center;
}
.page-hero::before, .page-hero::after { display: none !important; }
.page-hero-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; color: #fff; max-width: 20ch; margin-bottom: 20px;
}
.page-hero-sub { color: var(--fog); font-size: 1.1rem; max-width: 62ch; line-height: 1.65; }
.page-hero-sub strong { color: #fff; }
.page-hero-badge {
  font: 600 .95rem var(--body); letter-spacing: 0; text-transform: none; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 3px; padding: 6px 12px; margin-bottom: 18px;
}
.page-breadcrumb, .page-breadcrumb a, .page-hero .page-breadcrumb span { color: var(--mist); font-size: .9rem; }
.page-breadcrumb a:hover { color: #fff; }
.page-hero .hero-stats, .hero-stats {
  background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.22); border-radius: 0;
  padding: 20px 0 0; margin: 28px 0; box-shadow: none; backdrop-filter: none; gap: 24px; justify-content: flex-start; max-width: none;
}
.page-hero .hero-stat { text-align: left; }
.page-hero .stat-num, .hero-stat-num { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: .01em; display: block; }
.page-hero .stat-label, .hero-stat-label { color: var(--mist); font-size: .88rem; }
.page-hero .hero-ctas, .hero-ctas, .page-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .btn-primary { background: var(--orange); color: var(--navy); }
.responsibility-note { color: var(--fog); font-size: .95rem; margin-top: 20px; max-width: 70ch; }

/* Cards: quieter, one radius, no hover-lift */
.content-grid { gap: 28px; }
.content-card, .process-step, .price-table-wrap, .blog-card {
  background: #fff; border: 1px solid var(--fog); border-radius: 4px; box-shadow: none;
}
.content-card:hover, .blog-card:hover { transform: none; box-shadow: none; border-color: var(--slate-2); }
.content-card { padding: 28px; border-top: 3px solid var(--navy); }
.content-card h3, .content-card-title, .blog-title, .step-title {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--navy); letter-spacing: .005em;
}
.content-card p, .content-card-desc, .step-desc, .blog-body p { color: var(--slate); font-size: 1rem; line-height: 1.65; }
.card-icon, .content-card-icon { background: var(--yellow-pale); border: 0; border-radius: 3px; }

/* FAQ */
.faq-list { max-width: 820px; gap: 0; margin-left: 0; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--fog); border-radius: 0; box-shadow: none; }
.faq-item.open { border-color: var(--fog); }
.faq-question {
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--navy);
  padding: 22px 4px 22px 0; background: none; border: 0; text-align: left;
}
.faq-question:hover { color: var(--orange-deep); }
.faq-chevron, .faq-item.open .faq-chevron { color: var(--orange-deep); }
.faq-answer-inner { color: var(--slate); font-size: 1rem; line-height: 1.7; padding: 0 0 24px; max-width: 70ch; }
.faq-answer-inner strong { color: var(--navy); }
.faq-item:not(.open) .faq-answer { visibility: hidden; }

/* Tables */
.price-table { font-size: .95rem; }
.price-table th { background: var(--hull); color: var(--navy); border-bottom: 2px solid var(--navy); font-family: var(--body); }
.price-table td { color: #334e68; }

/* CTA banner */
.cta-banner { background: var(--navy); border-radius: 4px; }
.cta-banner h2 { font-family: var(--display); text-transform: uppercase; font-weight: 800; letter-spacing: .01em; font-size: clamp(2rem, 4vw, 3rem); }
.cta-banner p { color: var(--fog); font-size: 1.02rem; }

/* Long-form guides */
.blog-content { color: #334e68; font-size: 1.05rem; line-height: 1.75; }
.blog-content h2 { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--navy); }
.blog-content h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.blog-content a { color: var(--orange-deep); }

/* Legacy chrome now replaced by the new header */
.lang-bar, .lang-bar-top, #emergency-bar { display: none !important; }

/* Small screens */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }
  .page-hero .hero-stat { flex: 0 0 auto; }
  .page-hero .hero-ctas .btn, .cta-banner-btns .btn { width: 100%; }
  .content-card { padding: 22px; }
  .faq-question { font-size: 1.3rem; }
  table { max-width: 100%; }
}

/* ---------- Long-form documents (legal pages) ---------- */
.u-doc main { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; color: #334e68; font-size: 1.02rem; line-height: 1.75; }
.u-doc main h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--navy); margin: 0 0 12px; }
.u-doc main h2 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: var(--navy); margin: 40px 0 12px; }
.u-doc main h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--navy); margin: 28px 0 8px; }
.u-doc main p, .u-doc main ul, .u-doc main ol { margin: 0 0 16px; }
.u-doc main ul, .u-doc main ol { padding-left: 22px; }
.u-doc main li { margin-bottom: 6px; }
.u-doc main a { color: var(--orange-deep); }
.u-doc main strong { color: var(--navy); }
.u-doc main table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; display: block; overflow-x: auto; }
.u-doc main th, .u-doc main td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fog); }
.u-doc main .date { color: var(--slate); font-size: .95rem; margin-bottom: 32px; }
.u-doc main .info-block { background: var(--hull); border-left: 4px solid var(--orange); padding: 16px 20px; margin: 0 0 20px; }
.u-doc *, .u-doc *::before, .u-doc *::after { box-sizing: border-box; }

/* ---------- Overflow safety on narrow screens ---------- */
body { overflow-wrap: break-word; }
.content-grid > *, .process-steps > *, .hero-stats > * { min-width: 0; }
.blog-content table, .section table:not(.price-table) { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) {
  .content-grid, .content-grid.cols-2, .content-grid.cols-3, .content-grid.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .hero-title-accent { white-space: normal; } }

/* ---------- Section heading rhythm (left-aligned, like the homepage) ---------- */
.section-header { text-align: left; }
.section-title { margin: 0 0 20px; }
.section-sub { margin: 0 0 40px; }
.section-header .section-sub { margin: 0; }
.section-title + .content-grid, .section-title + .faq-list, .section-title + .process-steps { margin-top: 36px; }
[tabindex="-1"]:focus { outline: none; }
html { scroll-padding-top: 16px; }
@media (max-width: 760px) {
  .page-hero { background-image: linear-gradient(rgba(16,42,67,.92), rgba(16,42,67,.86)),
    url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=900&q=60"); }
}
.page-hero-title, .section-title, .u-doc main h1 { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .page-hero-title { font-size: 2.4rem; } }

/* Image cards: if a photo fails, show a solid panel instead of alt text */
.img-service-card img, .service-card-img img, .blog-thumb img { background-color: var(--deck); color: transparent; font-size: 0; object-fit: cover; }

/* Language offer bar */
.u-langhint { background: var(--hull); color: var(--navy); border-bottom: 1px solid var(--fog); font-size: .95rem; }
.u-langhint-in { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.u-langhint p { margin: 0; }
.u-langhint a { font-weight: 600; color: var(--orange-deep); }
.u-langhint button { margin-left: auto; background: none; border: 0; color: var(--navy); font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 4px; }
.u-langhint button:hover { background: #e6ecf2; }
.u-langhint--overlay { position: relative; z-index: 60; }
.u-langhint--overlay ~ .u-header--overlay { top: 52px; }
.il-grid > *, .il-card { min-width: 0; }
@media (max-width: 400px) { .il-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* WhatsApp form note */
.wa-form-note { margin: 10px 0 0; font-size: .88rem; line-height: 1.5; color: var(--slate); }
.wa-form-note.is-sent, .form-note.is-sent { color: var(--wa); font-weight: 600; }
