/* TripVina shared design system — Phase 1 */
:root {
    --tv-color-primary: #0d47a1;
    --tv-color-primary-dark: #023047;
    --tv-color-primary-soft: #eaf2ff;
    --tv-color-accent: #ffb703;
    --tv-color-success: #16845f;
    --tv-color-danger: #e63946;
    --tv-color-heading: #172033;
    --tv-color-text: #4b5565;
    --tv-color-muted: #697386;
    --tv-color-border: #e3e8ef;
    --tv-color-surface: #ffffff;
    --tv-color-surface-alt: #f6f8fb;
    --tv-radius-sm: 8px;
    --tv-radius-md: 14px;
    --tv-radius-lg: 20px;
    --tv-shadow-sm: 0 2px 10px rgba(2, 48, 71, .07);
    --tv-shadow-md: 0 12px 32px rgba(2, 48, 71, .12);
    --tv-space-1: 4px;
    --tv-space-2: 8px;
    --tv-space-3: 12px;
    --tv-space-4: 16px;
    --tv-space-5: 24px;
    --tv-space-6: 32px;
    --tv-focus-ring: 0 0 0 3px rgba(41, 134, 246, .28);
    --primary: var(--tv-color-primary);
    --secondary: #2986f6;
    --text: var(--tv-color-text);
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--tv-color-primary);
    outline-offset: 3px;
}

.tv-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tv-space-2);
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tv-btn:hover { transform: translateY(-1px); }
.tv-btn--primary { background: var(--tv-color-primary); color: #fff; box-shadow: var(--tv-shadow-sm); }
.tv-btn--primary:hover { background: var(--tv-color-primary-dark); color: #fff; box-shadow: var(--tv-shadow-md); }
.tv-btn--secondary { background: #fff; color: var(--tv-color-primary); border-color: var(--tv-color-primary); }
.tv-btn--secondary:hover { background: var(--tv-color-primary-soft); color: var(--tv-color-primary-dark); }

.tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--tv-color-primary-soft);
    color: var(--tv-color-primary);
    font-size: 12px;
    font-weight: 700;
}

.tv-section-heading { margin-bottom: var(--tv-space-6); }
.tv-section-heading__eyebrow { color: var(--tv-color-primary); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tv-section-heading__title { color: var(--tv-color-heading); font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.2; }
.tv-section-heading__text { max-width: 680px; color: var(--tv-color-muted); }

.tv-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--tv-color-border);
    border-radius: var(--tv-radius-lg);
    background: var(--tv-color-surface);
    box-shadow: var(--tv-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.tv-card:hover { transform: translateY(-3px); box-shadow: var(--tv-shadow-md); }

.tv-site-header {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(227, 232, 239, .9);
    backdrop-filter: blur(12px);
}

.tv-site-header .navbar { min-height: 78px; padding: 10px 0; }
.tv-site-header__brand { width: min(190px, 42vw); }
.tv-site-header__brand img { width: 100%; max-height: 56px; object-fit: contain; object-position: left center; }
.tv-site-header .nav-link { position: relative; min-height: 44px; display: flex; align-items: center; margin-left: 8px; padding: 10px 12px; color: var(--tv-color-heading); font-size: 14px; }
.tv-site-header .nav-link:hover,
.tv-site-header .nav-link.active { color: var(--tv-color-primary); }
.tv-site-header .nav-link.active::after { content: ''; position: absolute; right: 12px; bottom: 5px; left: 12px; height: 2px; border-radius: 2px; background: var(--tv-color-primary); }
.tv-site-header__toggle { width: 44px; height: 44px; padding: 0; border: 1px solid var(--tv-color-border); border-radius: var(--tv-radius-sm); color: var(--tv-color-primary-dark); }
.tv-site-header__toggle:focus { box-shadow: var(--tv-focus-ring); }
.tv-site-header .dropdown-menu { padding: 8px; border: 1px solid var(--tv-color-border); border-radius: var(--tv-radius-md); box-shadow: var(--tv-shadow-md); }
.tv-site-header .dropdown-item { min-height: 42px; display: flex; align-items: center; border-radius: var(--tv-radius-sm); font-size: 14px; }
.tv-site-header .dropdown-item:hover { background: var(--tv-color-primary-soft); color: var(--tv-color-primary); }
.tv-site-header .dropdown-menu-diadiem { max-height: 70vh; min-width: 260px; overflow-y: auto; }
.tv-site-header .dropdown-menu-diadiem .dropdown-item { gap: 8px; }
.tv-site-header .dropdown-menu-diadiem i { width: 14px; flex-shrink: 0; color: var(--tv-color-danger); }

.tv-site-footer { padding: 56px 0 32px; background: var(--tv-color-surface-alt); border-top-color: var(--tv-color-border); }
.tv-site-footer h4 { color: var(--tv-color-heading); font-size: 18px; }
.tv-site-footer .footer-links a { min-height: 36px; display: inline-flex; align-items: center; color: var(--tv-color-text); }
.tv-site-footer .footer-links a:hover { padding-left: 0; color: var(--tv-color-primary); }
.tv-site-footer .company-info { margin-top: 0; color: var(--tv-color-text); }
.tv-site-footer .footer-bottom-info { margin-top: 36px; padding-top: 32px; border-color: var(--tv-color-border); }
.tv-site-footer .footer-social a { width: 44px; height: 44px; background: var(--tv-color-primary); }
.tv-site-footer .footer-social a:hover { background: var(--tv-color-primary-dark); }
.tv-site-footer .hotline { color: var(--tv-color-primary); font-size: clamp(28px, 4vw, 40px); }
.tv-site-footer .hotline a { color: inherit; text-decoration: none; }
.tv-site-footer .qr-code { border: 8px solid #fff; border-radius: var(--tv-radius-sm); box-shadow: var(--tv-shadow-sm); }

@media (min-width: 992px) {
    .tv-site-header .dropdown-menu-diadiem { min-width: 420px; columns: 2; column-gap: 8px; }
    .tv-site-header .dropdown-menu-diadiem li { break-inside: avoid; }
}

@media (max-width: 991px) {
    .tv-site-header .navbar { min-height: 68px; }
    .tv-site-header .navbar-collapse { margin-top: 10px; padding: 12px; border: 1px solid var(--tv-color-border); border-radius: var(--tv-radius-md); background: #fff; box-shadow: var(--tv-shadow-md); }
    .tv-site-header .nav-link { margin-left: 0; padding: 10px 12px; }
    .tv-site-header .nav-link.active::after { top: 10px; right: auto; bottom: 10px; left: 0; width: 3px; height: auto; }
    .tv-site-header__cta { width: 100%; margin-top: 10px; }
    .tv-site-footer .footer-bottom-info { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .tv-site-header__brand { width: 150px; }
    .tv-site-footer { padding-top: 40px; }
    .tv-site-footer .row { --bs-gutter-y: 2rem; }
    .tv-site-footer .footer-bottom-info { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; padding-top: 24px; }
    .tv-site-footer .footer-social { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto; animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; }
}
