/*
Theme Name:   Univa Kadence
Theme URI:    https://univa.asia/
Description:  Child theme of Kadence for Univa Asia Sdn Bhd. The homepage is built with Elementor (free); header and footer use the Kadence Header/Footer Builder. This theme only adds small style details and a 404 page.
Author:       Univa Asia
Template:     kadence
Version:      2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain:  univa-kadence
License:      GNU General Public License v3.0 (or later)
*/

/* ---------- Site ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.elementor [id^="u-"] { scroll-margin-top: 16px; }

/* ---------- Elementor details free widgets cannot draw ---------- */
/* Eyebrow: Heading widget with CSS class "u-eyebrow" gets the short line before it. */
.u-eyebrow .elementor-heading-title,
p.u-eyebrow { display: flex; align-items: center; gap: 10px; }
.u-eyebrow .elementor-heading-title::before,
p.u-eyebrow::before { content: ""; display: block; width: 22px; height: 2px; background: currentColor; flex-shrink: 0; }
/* Status pill dot (Heading widget with class "u-status"). */
.u-status .elementor-heading-title { display: inline-flex; align-items: center; gap: 8px; }
.u-status .elementor-heading-title::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* Approach steps: small ring on the top line (container class "u-step"). */
.u-step { position: relative; }
.u-step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 2px solid #C6B7EB; background: #10082E; border-radius: 50%; }
/* Innovation diagram: vertical connector behind the nodes (container class "u-diagram"). */
.u-diagram { position: relative; }
.u-diagram::before { content: ""; position: absolute; left: 31px; top: 25px; bottom: 25px; width: 1px; background: #A893CA; }
.u-diagram > .elementor-element { position: relative; z-index: 1; }
/* Text links (Button widgets with class "u-textlink"). */
.u-textlink.u-underline .elementor-button-text { text-decoration: underline; text-underline-offset: 5px; }
.u-textlink:not(.u-underline) .elementor-button:hover .elementor-button-text { text-decoration: underline; text-underline-offset: 5px; }
.u-textlink .elementor-button { min-height: 44px; }
.u-btn .elementor-button { min-height: 48px; }
.u-contact-link .elementor-button-text { overflow-wrap: anywhere; text-align: left; }
/* Text Editor: no stray bottom margin after the last paragraph. */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Kadence header / footer details ---------- */
.site-branding .site-title { letter-spacing: -1.4px; text-transform: uppercase; }
.site-branding .site-description { letter-spacing: .11em; text-transform: uppercase; margin-top: 7px; }
.site-footer .footer-html-inner a, .site-footer .widget a { text-underline-offset: 3px; }
.univa-footer-brand { font: 800 24px/1 Arial, "Helvetica Neue", sans-serif; letter-spacing: -1.2px; color: #fff; margin: 0; }
.univa-footer-tagline { font-size: 12px; color: #D2C9DE; margin: 10px 0 0; }
.univa-footer-contact { font-size: 12px; line-height: 1.8; color: #D2C9DE; margin: 16px 0 0; }

/* ---------- Inner pages ---------- */
.univa-draft-note { padding: 16px 20px; border-left: 3px solid #40308B; background: #EEEAF8; border-radius: 0 8px 8px 0; font-size: 14px; }

/* ---------- 404 ---------- */
.univa-404 { background: #F5F4FA; padding: 96px 20px; }
.univa-404__inner { max-width: 760px; margin: 0 auto; }
.univa-404 .u-eyebrow { font: 600 11px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; color: #40308B; margin: 0 0 20px; }
.univa-404 h1 { font: 800 clamp(32px, 4vw, 48px)/1.1 Arial, "Helvetica Neue", sans-serif; letter-spacing: -.04em; color: #19152B; margin: 0; }
.univa-404__lead { font-size: 18px; color: #625B73; margin: 24px 0 0; max-width: 60ch; }
.univa-404__actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 32px 0 0; }
.univa-404__link { font-weight: 700; color: #40308B; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 767px) { .univa-404 { padding: 56px 20px; } }
.univa-footer-legal { font-size: 10px; color: #BEB0D0; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
