/*
Theme Name: Titan Child
Theme URI: https://titan.com.mk
Description: TitanPharm child theme for Hello Elementor. Mobile-first design system, no page builder.
Author: TitanPharm Export Import
Template: hello-elementor
Version: 1.0.0
Text Domain: titan-child
*/

/* ---------- Tokens (swap palette here once the logo is final) ---------- */
:root {
  --ink: #0b1730;
  --ink-2: #142447;
  --text: #1d2a44;
  --muted: #5b6784;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dfe5ef;
  --accent: #2457f5;
  --accent-dark: #1a40c4;
  --accent-soft: #e8eeff;
  --ok: #0f8a5f;
  --err: #c0262d;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .06), 0 8px 24px rgba(11, 23, 48, .08);
  --gutter: 20px;
  --maxw: 1180px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.t-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 200; }
.t-skip:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */
.t-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.t-section { padding-block: clamp(3rem, 8vw, 6rem); }
.t-section--paper { background: var(--paper); }
.t-section--dark { background: var(--ink); color: #d5dcef; }
.t-section--dark h2, .t-section--dark h3 { color: #fff; }
.t-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.t-section--dark .t-eyebrow, .t-hero .t-eyebrow { color: #8fb0ff; }
.t-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.t-section--dark .t-lead, .t-hero .t-lead { color: #b7c3e0; }
.t-center { text-align: center; }
.t-center .t-lead { margin-inline: auto; }
.t-head { margin-bottom: clamp(1.75rem, 5vw, 3rem); }

/* ---------- Buttons ---------- */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font: 600 1rem/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.t-btn--primary { background: var(--accent); color: #fff; }
.t-btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.t-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.t-btn--ghost:hover { border-color: #fff; color: #fff; }
.t-btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.t-btn--line:hover { border-color: var(--ink); color: var(--ink); }
.t-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.t-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.t-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.t-brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.t-brand img { max-height: 40px; width: auto; }
.t-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; background: none; border: 0; cursor: pointer; }
.t-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.t-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.t-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.t-nav { width: 100%; flex-basis: 100%; order: 3; padding-bottom: 1rem; }
.js .t-nav { display: none; }
.js .t-nav.is-open { display: block; }
.t-nav__list { list-style: none; margin: 0; padding: 0; }
.t-nav__list a { display: block; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.t-nav__list .current-menu-item > a, .t-nav__list a:hover { color: var(--accent); }
.t-nav__tools { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.t-lang { display: inline-flex; gap: .25rem; font-size: .85rem; font-weight: 700; }
.t-lang a { padding: .35rem .6rem; border-radius: 999px; color: var(--muted); text-decoration: none; }
.t-lang a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.t-header .t-btn { min-height: 44px; padding: .6rem 1.25rem; }
@media (min-width: 960px) {
  .t-burger { display: none; }
  .t-header__bar { flex-wrap: nowrap; }
  .t-nav, .js .t-nav { display: flex; align-items: center; gap: 1.75rem; width: auto; flex-basis: auto; order: 0; padding: 0; }
  .t-nav__list { display: flex; gap: 1.5rem; }
  .t-nav__list a { border: 0; padding: .5rem 0; font-size: .95rem; }
  .t-nav__tools { border: 0; padding: 0; }
}

/* ---------- Hero ---------- */
.t-hero { position: relative; overflow: hidden; color: #fff; padding-block: clamp(3.5rem, 11vw, 8rem); background: var(--ink); background-image: radial-gradient(52rem 28rem at 88% -8%, rgba(36, 87, 245, .55), transparent 62%), radial-gradient(38rem 24rem at -10% 110%, rgba(36, 87, 245, .28), transparent 60%); }
.t-hero h1 { color: #fff; max-width: 15ch; }
.t-hero .t-lead { margin-top: 1.25rem; }

/* ---------- Grid and cards ---------- */
.t-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .t-grid--2, .t-grid--3, .t-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .t-grid { gap: 1.5rem; } .t-grid--3 { grid-template-columns: repeat(3, 1fr); } .t-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.t-section--paper .t-card { border-color: transparent; box-shadow: var(--shadow); }
.t-section--dark .t-card { background: var(--ink-2); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.t-card h3 { margin-bottom: .4rem; }
.t-card p:last-child { margin-bottom: 0; }
.t-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 1rem; }
.t-section--dark .t-card__icon { background: rgba(143, 176, 255, .16); color: #8fb0ff; }

/* ---------- Proof strip ---------- */
.t-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .t-proof { grid-template-columns: repeat(4, 1fr); } }
.t-proof strong { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.t-proof span { font-size: .9rem; color: var(--muted); }

/* ---------- Steps ---------- */
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 760px) { .t-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.t-steps li { position: relative; padding: 3.25rem 0 0; border-top: 2px solid var(--line); }
.t-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: .9rem; left: 0; font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.t-steps h3 { margin-bottom: .3rem; }

/* ---------- Principals / logos ---------- */
.t-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 640px) { .t-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .t-logos { grid-template-columns: repeat(5, 1fr); } }
.t-logos > * { display: grid; place-items: center; min-height: 88px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-weight: 700; color: var(--muted); text-align: center; }
.t-logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.t-logos > *:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.t-cta { border-radius: var(--radius); padding: clamp(1.75rem, 6vw, 3.5rem); background: var(--ink); color: #d5dcef; background-image: radial-gradient(34rem 18rem at 100% 0, rgba(36, 87, 245, .5), transparent 65%); }
.t-cta h2 { color: #fff; }

/* ---------- Prose (legal pages, long text) ---------- */
.t-prose { max-width: 46rem; margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 5rem); padding-inline: var(--gutter); }
.t-prose h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
.t-prose h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin-top: 2rem; }
.t-woo { max-width: var(--maxw); }

/* ---------- Form ---------- */
.t-form { display: grid; gap: 1rem; }
@media (min-width: 760px) { .t-form--2 { grid-template-columns: repeat(2, 1fr); } .t-form .t-full { grid-column: 1 / -1; } }
.t-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.t-field input[type=text], .t-field input[type=email], .t-field input[type=tel], .t-field select, .t-field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--white); border: 1px solid #c4cde0; border-radius: var(--radius-sm); }
.t-field textarea { min-height: 140px; resize: vertical; }
.t-field input:focus, .t-field select:focus, .t-field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.t-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.t-check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; }
.t-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.t-notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.t-notice--ok { background: #e3f6ee; color: var(--ok); }
.t-notice--err { background: #fde8e9; color: var(--err); }

/* ---------- Footer ---------- */
.t-footer { background: var(--ink); color: #b7c3e0; padding-block: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; font-size: .95rem; }
.t-footer a { color: #d5dcef; text-decoration: none; }
.t-footer a:hover { color: #fff; text-decoration: underline; }
.t-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.t-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .t-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.t-footer ul { list-style: none; margin: 0; padding: 0; }
.t-footer li { margin-bottom: .5rem; }
.t-footer__brand { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: .75rem; }
.t-footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Palette from the logo + page components (v1.1) ---------- */
:root{--ink:#0f1838;--ink-2:#19265c;--text:#1d2548;--muted:#566086;--paper:#f4f6fb;--line:#dde3ef;--accent:#167a6b;--accent-dark:#0f5f53;--accent-soft:#e2f3ef;--brand:#384898;--brand-dark:#2b3980;--brand-soft:#e8ebf8;--teal-light:#4fc3ae}
.t-eyebrow{color:var(--accent)}
.t-section--dark .t-eyebrow,.t-hero .t-eyebrow{color:var(--teal-light)}
.t-hero{background-image:radial-gradient(52rem 28rem at 90% -10%,rgba(56,72,152,.75),transparent 62%),radial-gradient(40rem 26rem at -10% 115%,rgba(26,136,120,.38),transparent 60%)}
.t-btn--primary{background:var(--accent)}
.t-btn--primary:hover{background:var(--accent-dark)}
.t-btn--navy{background:var(--brand);color:#fff}
.t-btn--navy:hover{background:var(--brand-dark);color:#fff}
.t-lang a[aria-current="true"]{background:var(--brand-soft);color:var(--brand)}
.t-card__icon{background:var(--brand-soft);color:var(--brand)}
.t-steps li::before{color:var(--accent)}
.t-cta{background-image:radial-gradient(34rem 18rem at 100% 0,rgba(26,136,120,.55),transparent 65%)}
.t-cta .t-lead{color:#c3cdea}
.t-section--dark .t-card__icon{background:rgba(79,195,174,.16);color:var(--teal-light)}
.t-route{display:grid;gap:1rem;margin-top:2.25rem;grid-template-columns:1fr}
@media(min-width:760px){.t-route{grid-template-columns:1fr 1fr;max-width:52rem}}
.t-route a{display:block;padding:1.4rem 1.5rem;border-radius:var(--radius);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);color:#fff;text-decoration:none;transition:background .15s,border-color .15s,transform .15s}
.t-route a:hover{background:rgba(255,255,255,.13);border-color:var(--teal-light);transform:translateY(-2px);color:#fff}
.t-route small{display:block;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-light);margin-bottom:.4rem}
.t-route strong{display:block;font-size:1.2rem;margin-bottom:.35rem;letter-spacing:-.01em}
.t-route span{display:block;color:#c3cdea;font-size:.95rem;line-height:1.5}
.t-route em{display:inline-block;margin-top:.9rem;font-style:normal;font-weight:700;color:var(--teal-light)}
.t-brandwall{display:grid;gap:.85rem;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.t-brandwall{grid-template-columns:repeat(4,1fr)}}
.t-featured{display:grid;gap:1.5rem;margin-top:1.5rem;padding:clamp(1.5rem,5vw,2.5rem);border-radius:var(--radius);background:var(--brand);color:#dfe4f7;background-image:radial-gradient(30rem 16rem at 100% 0,rgba(79,195,174,.35),transparent 65%)}
@media(min-width:760px){.t-featured{grid-template-columns:1.3fr 1fr;align-items:center}}
.t-featured h3{color:#fff;font-size:clamp(1.3rem,3.4vw,1.9rem)}
.t-featured .t-eyebrow{color:var(--teal-light)}
.logo-slot{display:grid;place-items:center;min-height:140px;border-radius:var(--radius-sm);text-align:center;padding:1rem}
.t-pagehead{background:var(--ink);color:#fff;padding:clamp(2rem,6vw,3.5rem) 0;background-image:radial-gradient(40rem 20rem at 95% -20%,rgba(56,72,152,.7),transparent 62%),radial-gradient(30rem 18rem at -5% 120%,rgba(26,136,120,.35),transparent 60%)}
.t-pagehead h1{color:#fff;font-size:clamp(1.8rem,5vw,2.8rem);max-width:30ch}
.t-pagehead .t-lead{color:#c3cdea;max-width:46rem}
.t-pagehead .t-eyebrow{color:var(--teal-light)}
.t-crumbs{font-size:.85rem;color:#9fb0d8;margin:0 0 .75rem}.t-crumbs a{color:#c3cdea}
.t-two{display:grid;gap:2rem}@media(min-width:900px){.t-two{grid-template-columns:1.5fr 1fr;align-items:start}}
.t-prose-l h2{font-size:1.4rem;margin:1.6rem 0 .6rem}.t-prose-l h2:first-child{margin-top:0}
.t-ticks{list-style:none;padding:0;margin:.5rem 0}.t-ticks li{position:relative;padding-left:1.6rem;margin:.5rem 0}
.t-ticks li::before{content:"";position:absolute;left:0;top:.45em;width:.9rem;height:.5rem;border-left:3px solid var(--accent);border-bottom:3px solid var(--accent);transform:rotate(-45deg) scale(.8)}
.t-fact dl{display:grid;grid-template-columns:auto 1fr;gap:.6rem 1rem;margin:1rem 0}.t-fact dt{font-weight:700;color:var(--muted);font-size:.85rem}.t-fact dd{margin:0}
.t-fact .t-btn{margin-top:.5rem}
.t-note{font-size:.88rem;color:var(--muted)}
.t-card--link{display:block;text-decoration:none;color:inherit;transition:transform .15s,box-shadow .15s}.t-card--link:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.t-faq details{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;margin:.6rem 0;padding:0 1.1rem}
.t-faq summary{cursor:pointer;padding:1rem 0;font-weight:700;color:var(--ink)}.t-faq p{margin:0 0 1rem;color:var(--muted)}
.wm{display:grid;place-items:center;align-content:center;gap:.25rem;min-height:110px;padding:.9rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);text-decoration:none;text-align:center;transition:transform .15s,box-shadow .15s}
a.wm:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.wm b{font-size:1.7rem;letter-spacing:-.02em;line-height:1}.wm small{font-size:.75rem;color:var(--muted);font-weight:600}
.wm--yuwell b{color:#e5322d;font-weight:800}
.wm--chemence b{color:var(--brand);font-weight:800;letter-spacing:.14em;font-size:1.25rem}
.wm--next{border:1px dashed #b9c3de;background:transparent}.wm--next b{color:var(--accent);font-weight:400}
.wm-feature{border:0!important;background:#fff!important;color:var(--muted)!important}
.wm-feature b{color:#e5322d;font-size:2.6rem;font-weight:800;display:block}.wm-feature small{display:block;margin-top:.4rem;font-size:.8rem;font-weight:600}
.t-brandcard .wm{margin-bottom:1rem;min-height:90px}.t-brandcard em{font-style:normal;font-weight:700;color:var(--accent)}
.t-nav__list a[aria-current="page"]{color:var(--accent)}
@media(min-width:960px){.t-nav__list a[aria-current="page"]{box-shadow:inset 0 -3px 0 var(--accent)}}
.t-main>.t-section:first-child,.t-main>.t-pagehead:first-child{margin-top:0}
