/*
Theme Name: Conext Digital
Theme URI: https://conextsolution.com
Author: Conext Solution
Author URI: https://conextsolution.com
Description: Official website theme for Conext Solution — Odoo & SAP ERP Partner in Southeast Asia.
Version: 1.2
License: Private
Text Domain: conext-theme
*/

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:      #0D1B2A;
  --blue:      #1A8AC4;
  --blue-lt:   #E8F4FB;
  --blue-mid:  #157aad;
  --orange:    #D97706;
  --orange-lt: #FEF3C7;
  --white:     #FFFFFF;
  --off:       #F5F7FA;
  --border:    #E2E8F0;
  --text:      #1E293B;
  --muted:     #64748B;
  --faint:     #94A3B8;
  --card-r:    16px;
  --pill-r:    99px;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Utility ──────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--pill-r); background: var(--blue-lt); color: var(--blue); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-label--light { color: rgba(255,255,255,0.4); }

/* ── Navbar ───────────────────────────────────────── */
.cx-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.cx-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.cx-nav__logo { font-family: var(--font-head); font-size: 20px; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.cx-nav__logo span { color: var(--blue); font-style: italic; }
.cx-nav__links { display: flex; gap: 28px; list-style: none; }
.cx-nav__links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.cx-nav__links a:hover, .cx-nav__links a.active { color: var(--text); }
.cx-nav__cta { background: var(--blue); color: var(--white); border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; transition: background 0.2s, transform 0.1s; }
.cx-nav__cta:hover { background: #157aad; }
.cx-nav__cta:active { transform: scale(0.98); }
.cx-nav__hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; }
.cx-nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.cx-nav__actions { display: flex; align-items: center; gap: 12px; }
.cx-nav__search-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--off); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.cx-nav__search-btn:hover { background: var(--blue-lt); border-color: var(--blue); }
.cx-nav__search-btn svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-lang-toggle { display: flex; align-items: center; gap: 2px; background: var(--off); border: 1px solid var(--border); border-radius: var(--pill-r); padding: 3px; }
.cx-lang-btn { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 4px 9px; border-radius: var(--pill-r); border: none; background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s; font-family: var(--font-body); }
.cx-lang-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.cx-lang-btn:not(.active):hover { color: var(--text); }

/* ── Page Hero (inner pages) ──────────────────────── */
.cx-page-hero { background: var(--navy); padding: 72px 24px 64px; }
.cx-page-hero__inner { max-width: 1100px; margin: 0 auto; }
.cx-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.cx-breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.cx-breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.cx-breadcrumb span { margin: 0 8px; }
.cx-page-hero h1 { font-family: var(--font-head); font-size: clamp(30px,5vw,52px); font-weight: 400; color: var(--white); line-height: 1.12; margin-bottom: 16px; }
.cx-page-hero h1 em { color: var(--blue); font-style: italic; }
.cx-page-hero p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.65; }

/* ── Buttons ──────────────────────────────────────── */
.btn-primary { background: var(--blue); color: var(--white); border: none; border-radius: 8px; padding: 13px 24px; font-size: 15px; font-weight: 500; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 13px 24px; font-size: 15px; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border: none; border-radius: 8px; padding: 13px 24px; font-size: 15px; font-weight: 500; transition: background 0.2s; }
.btn-navy:hover { background: #162436; }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; padding: 11px 22px; font-size: 15px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--blue-lt); }

/* ── CTA Strip ────────────────────────────────────── */
.cx-cta-strip { background: var(--navy); padding: 72px 24px; text-align: center; }
.cx-cta-strip h2 { font-family: var(--font-head); font-size: clamp(26px,4vw,42px); font-weight: 400; color: var(--white); margin-bottom: 14px; }
.cx-cta-strip h2 em { color: var(--blue); font-style: italic; }
.cx-cta-strip p { font-size: 15px; color: rgba(255,255,255,0.5); max-width: 480px; margin: 0 auto 28px; line-height: 1.65; }

/* ── Footer ───────────────────────────────────────── */
.cx-footer { background: var(--navy); padding: 48px 24px 32px; }
.cx-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cx-footer__logo { font-family: var(--font-head); font-size: 18px; color: var(--white); font-style: italic; }
.cx-footer__logo span { color: var(--blue); }
.cx-footer__copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.cx-footer__links { display: flex; gap: 20px; }
.cx-footer__links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.cx-footer__links a:hover { color: rgba(255,255,255,0.8); }

/* ── Animations ───────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Search Overlay ───────────────────────────────── */
.cx-search-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(13,27,42,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: flex-start; justify-content: center; padding: 80px 24px 24px; overflow-y: auto; animation: cx-fade-in 0.2s ease; }
.cx-search-overlay.open { display: flex; }
@keyframes cx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.cx-search-panel { width: 100%; max-width: 640px; background: var(--white); border-radius: var(--card-r); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: cx-slide-up 0.25s ease; }
.cx-search-input-wrap { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); gap: 12px; }
.cx-search-input-wrap svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cx-search-input { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 16px; color: var(--text); background: transparent; }
.cx-search-input::placeholder { color: var(--faint); }
.cx-search-close { font-size: 11px; padding: 4px 10px; background: var(--off); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); cursor: pointer; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.04em; }
.cx-search-close:hover { background: var(--border); }
.cx-search-body { max-height: 460px; overflow-y: auto; padding: 8px 0 14px; }
.cx-search-section { padding: 8px 0; }
.cx-search-section__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 10px 22px 6px; }
.cx-search-result { display: flex; align-items: flex-start; gap: 14px; padding: 11px 22px; cursor: pointer; transition: background 0.15s; border: none; background: none; width: 100%; text-align: left; font-family: var(--font-body); }
.cx-search-result:hover, .cx-search-result.focused { background: var(--blue-lt); }
.cx-search-result__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cx-search-result__icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-search-result__content { flex: 1; min-width: 0; }
.cx-search-result__title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.cx-search-result__title mark { background: #FEF3C7; color: var(--text); padding: 0 2px; border-radius: 3px; }
.cx-search-result__desc { font-size: 12px; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-search-result__tag { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); padding: 2px 8px; border-radius: var(--pill-r); background: var(--blue-lt); flex-shrink: 0; align-self: center; }
.cx-search-empty { padding: 40px 22px; text-align: center; font-size: 14px; color: var(--muted); }
.cx-search-empty svg { width: 32px; height: 32px; stroke: var(--faint); fill: none; stroke-width: 1.5; margin: 0 auto 12px; display: block; }
.cx-search-empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.cx-search-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 22px 14px; }
.cx-search-chip { font-size: 12px; font-weight: 500; padding: 5px 12px; background: var(--off); border: 1px solid var(--border); border-radius: var(--pill-r); color: var(--muted); cursor: pointer; font-family: var(--font-body); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cx-search-chip:hover { background: var(--blue-lt); color: var(--blue); border-color: var(--blue); }
.cx-search-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--off); font-size: 11px; color: var(--faint); }
.cx-search-footer-keys { display: flex; gap: 14px; }
.cx-search-footer kbd { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: var(--font-body); font-size: 11px; color: var(--muted); margin: 0 3px; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .cx-nav__links { display: none; }
  .cx-nav__hamburger { display: flex; }
  .cx-nav__links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; list-style: none; z-index: 99; }
  .cx-nav__links.open li a { display: block; padding: 12px 24px; font-size: 15px; color: var(--text); }
  .cx-search-overlay { padding: 24px 16px; }
  .cx-search-footer { display: none; }
  .cx-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
