/* =================================================================
   YES Office — Design tokens & component overrides
   Load SAU bootstrap.min.css và SAU <style>themeCss()</style>.
   themeCss() (động từ admin Settings) cung cấp --primary, --accent,
   --bg, --text, --font-*. File này bổ sung token tĩnh + style component.
   ================================================================= */

:root {
    /* Token tĩnh — không quản qua admin Settings */
    --bg-2:          #efebe1;
    --surface:       #ffffff;
    --ink:           #14181f;
    --ink-2:         #2a3038;
    --muted:         #6b7280;
    --muted-2:       #9aa1ab;
    --border:        #e6e0d1;
    --border-strong: #d6cdb8;
    --accent-soft:   #fbe7d5;
    --success:       #2f7d5b;
    --primary-hover: #0e342e;

    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   18px;
    --r-xl:   24px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(20,24,31,.06), 0 1px 3px rgba(20,24,31,.04);
    --shadow-md: 0 6px 18px -8px rgba(20,24,31,.12), 0 2px 6px rgba(20,24,31,.05);
    --shadow-lg: 0 24px 48px -20px rgba(20,24,31,.22), 0 8px 16px -8px rgba(20,24,31,.08);

    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* Bootstrap override */
    --bs-body-bg:            #f6f3ec;
    --bs-body-color:         #14181f;
    --bs-border-color:       #e6e0d1;
    --bs-border-radius:      12px;
    --bs-border-radius-sm:   8px;
    --bs-border-radius-lg:   18px;
    --bs-border-radius-xl:   24px;
    --bs-border-radius-pill: 999px;
}

/* Container — design muốn 1240px (Bootstrap default 1320px) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1240px;
    }
}

body {
    background: var(--bg-2, #f6f3ec);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

/* ---------- Typography scale ---------- */
.t-display { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.t-h1      { font-size: clamp(34px, 4.5vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.t-h2      { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1;  letter-spacing: -0.02em; }
.t-h3      { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.t-lead    { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.t-muted   { color: var(--muted); }

/* ---------- Eyebrow (section label, mono) ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--primary, #14443c); font-weight: 500;
}
.eyebrow::before {
    content: ""; display: inline-block; width: 24px; height: 1px;
    background: currentColor; opacity: .6;
}
.eyebrow-accent { color: var(--accent, #d97b3a); }
.eyebrow-light  { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn-primary {
    --bs-btn-bg: #14181f;            /* primary CTA = màu ink */
    --bs-btn-border-color: #14181f;
    --bs-btn-hover-bg: #14443c;
    --bs-btn-hover-border-color: #14443c;
    --bs-btn-active-bg: #0e342e;
    --bs-btn-active-border-color: #0e342e;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-dark {
    --bs-btn-color: #14181f;
    --bs-btn-border-color: #d6cdb8;
    --bs-btn-hover-bg: #14181f;
    --bs-btn-hover-border-color: #14181f;
    --bs-btn-hover-color: #fff;
}
.btn .bi-arrow-right, .btn .arrow { transition: transform .15s; display: inline-block; }
.btn:hover .bi-arrow-right, .btn:hover .arrow { transform: translateX(3px); }

/* Ghost link button (dùng cho "Xem tất cả →") */
.btn-ghost {
    color: var(--primary, #14443c); font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { color: var(--primary-hover); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-color: var(--border);
    border-radius: var(--r-sm);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary, #14443c);
    box-shadow: 0 0 0 3px rgba(20,68,60,.12);
}
.form-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { border-color: var(--border); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

/* ---------- Section rhythm ---------- */
.section      { padding: 96px 0; }
.section-sm   { padding: 48px 0; }
.section-tight{ padding: 64px 0 80px; }   /* hero — ngay sau header */
.bg-ink       { background: var(--ink); color: #fff; }
.bg-alt       { background: var(--bg-2); }
.bg-surface   { background: var(--surface); }

/* ---------- Eyebrow + section head ---------- */
.section-head { margin-bottom: 48px; }

/* ---------- Placeholder pattern (thay ảnh stock) ---------- */
.placeholder-pattern {
    background:
        repeating-linear-gradient(135deg, transparent 0 10px, rgba(20,24,31,.04) 10px 11px),
        linear-gradient(180deg, #f1ede0, #e9e3d1);
    border: 1px dashed var(--border-strong);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
    border-radius: var(--r-md);
}
.placeholder-pattern .placeholder-label {
    padding: 4px 8px; background: rgba(255,255,255,.85);
    border-radius: 4px; border: 1px solid var(--border);
}

/* ---------- Marquee (logo strip) ---------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex; gap: 64px; width: max-content;
    animation: yo-marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes yo-marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.yo-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(246,243,236,.85);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.yo-logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.yo-logo .yes    { color: var(--primary, #14443c); }
.yo-logo .office { color: var(--accent, #d97b3a); }
.yo-nav-pill {
    padding: 8px 14px; border-radius: var(--r-pill);
    color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none;
    transition: background-color .15s;
}
.yo-nav-pill:hover  { background: rgba(20,24,31,.06); color: var(--ink); }
.yo-nav-pill.active { background: var(--ink); color: #fff; }
.yo-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2314181f' stroke-width='2.5' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}
.yo-hotline {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-2); font-weight: 600; font-size: 14px;
    text-decoration: none; white-space: nowrap;
}
.yo-hotline:hover  { color: var(--primary, #14443c); }
.yo-hotline i      { color: var(--primary, #14443c); }

/* Dropdown trong header (mục menu có menu con) */
.yo-header .dropdown-menu {
    border-color: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    margin-top: 6px;
    font-size: 15px;
}
.yo-header .dropdown-item {
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: normal;
}
.yo-header .dropdown-item:hover,
.yo-header .dropdown-item:focus {
    background: rgba(20,24,31,.06);
    color: var(--ink);
}

/* ---------- Hero ---------- */
.yo-hero {
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(217,123,58,.10), transparent 60%),
        radial-gradient(600px 400px at 10% 100%, rgba(20,68,60,.06), transparent 60%);
}
.yo-pill-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--r-pill);
    background: var(--accent-soft); color: #b5601f;
    font-size: 13px; font-weight: 600;
}
.yo-hero-h1 .accent-line { color: var(--primary, #14443c); }
.yo-trust-avatars { display: flex; }
.yo-trust-avatars .av {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--bg, #f6f3ec); margin-left: -10px;
    background: linear-gradient(135deg, var(--primary,#14443c), var(--accent,#d97b3a));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}
.yo-trust-avatars .av:first-child { margin-left: 0; }

/* Browser frame mockup */
.yo-browser {
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--border-strong); background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.yo-browser-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: #f1ede0; border-bottom: 1px solid var(--border);
}
.yo-browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.yo-browser-url {
    flex: 1; margin-left: 8px; font-family: var(--font-mono);
    font-size: 12px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-pill); padding: 4px 12px; text-align: center;
}

/* ---------- Stats bar ---------- */
.yo-stat-grid { display: flex; flex-wrap: wrap; }
.yo-stat-num { font-size: clamp(34px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.yo-stat-label { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 6px; }
.yo-stat-cell { flex: 1 1 50%; padding-left: 32px; border-left: 1px solid rgba(255,255,255,.12); }
.yo-stat-cell:first-child { border-left: 0; padding-left: 0; }
@media (min-width: 768px) { .yo-stat-cell { flex: 1 1 25%; } }
@media (max-width: 767.98px) {
    .yo-stat-cell { border-left: 0; padding: 10px 0; }
}

/* ---------- Service card ---------- */
.yo-service-tag {
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    padding: 4px 10px; border-radius: var(--r-pill);
    background: var(--bg-2); color: var(--primary, #14443c);
}
.yo-arrow-circle {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-2); transition: background-color .15s, color .15s;
}
.card-hover:hover .yo-arrow-circle { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Process ---------- */
.yo-process-circle {
    width: 60px; height: 60px; border-radius: 50%;
    border: 1px solid var(--border-strong); background: var(--bg, #f6f3ec);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: var(--primary, #14443c);
    position: relative; z-index: 2;
}
.yo-process-line {
    position: absolute; top: 30px; left: 12.5%; right: 12.5%;
    height: 1px; background: var(--border-strong); z-index: 1;
}
.yo-duration-tag {
    font-family: var(--font-mono); font-size: 12px; color: var(--accent, #d97b3a);
    font-weight: 500;
}

/* ---------- Case study (dark) ---------- */
.yo-quote-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-lg); padding: 32px;
}
.yo-quote-mark { font-size: 48px; line-height: 1; color: var(--accent, #d97b3a); font-family: Georgia, serif; }
.yo-metric-num { font-size: 28px; font-weight: 800; color: var(--accent, #d97b3a); letter-spacing: -0.02em; }

/* ---------- News card ---------- */
.yo-news-cover { aspect-ratio: 4/3; border-bottom: 1px solid var(--border); }
.yo-cat-pill {
    display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
    background: var(--bg-2); color: var(--primary, #14443c);
    font-size: 12px; font-weight: 600;
}

/* ---------- Contact panel ---------- */
.yo-contact-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden;
}
.yo-contact-info {
    background: var(--primary, #14443c); color: #fff; padding: 48px;
}
.yo-contact-info .ico {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Footer ---------- */
.yo-footer { background: var(--ink); color: var(--muted-2); padding: 64px 0 32px; }
.yo-footer h6 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.yo-footer a { color: var(--muted-2); text-decoration: none; }
.yo-footer a:hover { color: #fff; }
.yo-social {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .15s;
}
.yo-social:hover { background: var(--accent, #d97b3a); color: #fff; }
