/* ============================================================
   /iletisim — premium 2026 contact experience.
   breadcrumb + hero (comms illustration) → 2x2 topic-card grid +
   real form card → response-info band → violet final-CTA band.

   Token-driven throughout — but ALWAYS rendered light, regardless of
   the visitor's OS/browser color-scheme preference or the (marketing-
   page-only) `data-theme` cookie. app.css's bare `:root { --bg:#0c0c0e; … }`
   is dark by default; light values only apply via an explicit
   `[data-theme="light"]` cookie (no toggle exists on public pages any
   more) or `prefers-color-scheme: light`. Without a local override, a
   visitor whose OS has no light preference (or prefers dark) would see
   this whole page render in the raw dark palette. `.cx-page` below
   re-declares the SAME real light-theme values app.css's own
   `:root[data-theme="light"]` block ships (copied verbatim) so every
   var(--bg)/var(--text)/var(--accent)/etc. reference inside this page
   resolves to light unconditionally — zero change to :root, body,
   header or footer, and no effect on any other page.
   ============================================================ */

.cx-page {
    --bg: #ffffff; --bg-1: #f7f7f4; --bg-2: #eeeeea;
    --surface: #ffffff; --surface-2: #f4f4f0;
    --line: color-mix(in srgb, #0c0c0e 12%, transparent);
    --line-2: color-mix(in srgb, #0c0c0e 20%, transparent);
    --text: #14140f; --text-1: #45443d; --text-2: #605f57;
    --accent: #6237e0; --accent-ink: #ffffff; --coral: #cf4a2c; --violet: #6237e0;
    --shadow-1: 0 1px 2px rgba(17,17,15,.05), 0 10px 30px -16px rgba(17,17,15,.16);
    --shadow-2: 0 30px 80px -34px rgba(17,17,15,.20), 0 8px 24px -14px rgba(17,17,15,.10);

    background: var(--bg);
    color: var(--text);
}

.cx-accent { color: var(--accent); }

/* ---- Hero --------------------------------------------------------- */
.cx-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.cx-hero__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
@media (max-width: 60rem) {
    .cx-hero__inner { grid-template-columns: 1fr; }
    .cx-hero__visual { display: none; }
}

.cx-page .crumbs { margin-bottom: 1.4rem; }

.cx-hero__title {
    font-family: var(--font-display, inherit);
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 0 0 1.1rem;
    text-wrap: balance;
}
.cx-hero__lede {
    color: var(--text-1);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    max-width: 44ch;
    margin: 0 0 1.8rem;
}

.cx-hero__chips { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.cx-hero__chips li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-1);
    font-size: .86rem;
    font-weight: 560;
}
.cx-hero__chips .pi { color: var(--accent); }

/* ---- Hero visual: decorative communication illustration ---------- */
.cx-hero__visual { position: relative; }
.cx-hero__glow {
    position: absolute; inset: -15% -10%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%);
    filter: blur(20px);
    z-index: 0;
}
.cx-msgcard {
    position: relative; z-index: 1;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    padding: 1.5rem;
    max-width: 24rem;
    margin: 0 auto;
    display: grid;
    gap: .9rem;
}
.cx-msgcard__dots { display: flex; gap: .35rem; margin-bottom: .3rem; }
.cx-msgcard__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.cx-msgcard__row { display: flex; align-items: flex-end; gap: .5rem; }
.cx-msgcard__row p {
    margin: 0; padding: .7rem 1rem; border-radius: 14px;
    font-size: .88rem; line-height: 1.4; max-width: 15rem;
}
.cx-msgcard__row--in { justify-content: flex-start; }
.cx-msgcard__row--in p { background: var(--bg-1); color: var(--text-1); border-bottom-left-radius: 4px; }
.cx-msgcard__row--out { justify-content: flex-end; }
.cx-msgcard__row--out p { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.cx-msgcard__send {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--bg-1); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.cx-msgcard__send .pi { width: 14px; height: 14px; }

.cx-hero__float {
    position: absolute; border-radius: 50%;
    background: color-mix(in srgb, var(--violet) 30%, transparent);
    z-index: 0;
}
.cx-hero__float--a { width: 2.6rem; height: 2.6rem; top: -1rem; right: 6%; }
.cx-hero__float--b { width: 1.3rem; height: 1.3rem; bottom: 8%; left: -.5rem; background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- Main contact area -------------------------------------------- */
.cx-main { padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 6.5rem); }
.cx-main__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 60rem) {
    .cx-main__inner { grid-template-columns: 1fr; }
}

.cx-main__col { position: sticky; top: 6rem; }
@media (max-width: 60rem) { .cx-main__col { position: static; } }

.cx-main__title {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -.02em;
    margin: .9rem 0 .7rem;
    text-wrap: balance;
}
.cx-main__lede { color: var(--text-1); font-size: 1rem; max-width: 40ch; margin: 0 0 1.8rem; }

.cx-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 30rem) { .cx-topics { grid-template-columns: 1fr; } }

.cx-topic {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: .3rem 0;
    transition: border-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.cx-topic:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.cx-topic__icon {
    grid-column: 1;
    width: 2.4rem; height: 2.4rem; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .5rem;
}
.cx-topic strong { grid-column: 1 / -1; color: var(--text); font-weight: 600; font-size: .98rem; }
.cx-topic span { grid-column: 1 / -1; color: var(--text-2); font-size: .86rem; line-height: 1.4; }
.cx-topic__arrow { grid-column: 2; grid-row: 1; justify-self: end; width: 15px; height: 15px; margin-top: .6rem; color: var(--text-2); }

/* ---- Right: form card ------------------------------------------- */
.cx-panel {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    padding: clamp(1.6rem, 3.5vw, 2.8rem);
    box-shadow: var(--shadow-1);
}
.cx-panel__title {
    font-family: var(--font-display, inherit);
    font-size: 1.5rem;
    letter-spacing: -.02em;
    margin: 0 0 1.5rem;
}

.cx-alert {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1.4rem;
    font-size: .92rem; line-height: 1.5;
}
.cx-alert svg { flex: none; margin-top: .1rem; }
.cx-alert--ok {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    color: var(--text);
}
.cx-alert--err {
    background: color-mix(in srgb, var(--coral) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--coral) 38%, transparent);
    color: var(--text);
}

.cx-form { display: grid; gap: 1.2rem; }
.cx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 32rem) { .cx-form__row { grid-template-columns: 1fr; } }

.cx-field { display: grid; gap: .45rem; }
.cx-field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.cx-field__opt { font-weight: 400; color: var(--text-2); }
.cx-field input,
.cx-field textarea {
    width: 100%;
    min-height: 54px;
    padding: .85rem 1rem;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--bg-1);
    color: var(--text);
    font: inherit;
    transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}
.cx-field textarea { resize: vertical; min-height: 9rem; }
.cx-field input:focus,
.cx-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.cx-field [aria-invalid="true"] { border-color: var(--coral); }
.cx-field__err { color: var(--coral); font-size: .82rem; }

.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cx-form__foot { display: grid; gap: .8rem; margin-top: .4rem; }
.cx-form__foot .btn { justify-self: start; }
.cx-form__note { color: var(--text-2); font-size: .82rem; margin: 0; }
.cx-form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

[data-contact-submit][aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ---- Response info band ------------------------------------------ */
.cx-info {
    background: color-mix(in srgb, var(--violet) 7%, var(--bg-1));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cx-info__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 2.6rem) var(--gutter);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.2rem 3rem;
}
.cx-info__label {
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-2); margin: 0; flex-basis: 100%;
}
@media (min-width: 60.01rem) { .cx-info__label { flex-basis: auto; margin-right: .5rem; } }
.cx-info__item { display: flex; align-items: center; gap: .9rem; }
.cx-info__item .pi { width: 22px; height: 22px; color: var(--accent); flex: none; }
.cx-info__k { display: block; font-size: .78rem; color: var(--text-2); font-weight: 600; }
.cx-info__v { display: block; color: var(--text); font-weight: 500; font-size: .96rem; }

/* ---- Final CTA ----------------------------------------------------- */
.cx-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.cx-cta__inner {
    position: relative; overflow: hidden;
    padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--line-2); border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--violet) 10%, var(--bg-1));
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cx-cta__glow {
    position: absolute; top: -60%; left: 15%; width: 45%; aspect-ratio: 2 / 1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 26%, transparent), transparent);
    filter: blur(10px);
}
.cx-cta__copy { position: relative; max-width: 38rem; }
.cx-cta__title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.cx-cta__text { color: var(--text-1); margin: .6rem 0 0; }
.cx-cta__actions { position: relative; flex: none; }

@media (max-width: 40rem) {
    .cx-cta__inner { flex-direction: column; align-items: flex-start; }
    .cx-cta__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .cx-topic { transition: none; }
    .cx-topic:hover { transform: none; }
}
