/* =========================================================
   HyperTech 2025 – Global Styles
   Palette:
   - Primary:  #DAA520 (HyperTech Gold)
   - Dark:     #0F172A / #020617 (Header, Hero, Footer)
   - Text:     #111827 (Main), #6B7280 (Muted)
   - Surface:  #FFFFFF (Cards), #F3F4F6 (Section light)
   ========================================================= */

/* -----------------------------
   1. ROOT & GLOBAL RESET
   ----------------------------- */

:root {
    /* Brand colors */
    --ht-gold: #DAA520;
    --ht-gold-soft: #F5E6B5;

    /* Neutrals & darks */
    --ht-bg-body: #F3F4F6;       /* nền chung nhẹ */
    --ht-bg-surface: #FFFFFF;    /* card, block trắng */
    --ht-bg-soft: #F9FAFB;       /* section xen kẽ */
    --ht-bg-hero-from: #020617;  /* đầu gradient hero */
    --ht-bg-hero-to: #111827;    /* cuối gradient hero */
    --ht-bg-header: #020617;     /* header/nav */
    --ht-bg-footer: #020617;     /* footer */

    /* Text */
    --ht-text-main: #111827;
    --ht-text-muted: #6B7280;
    --ht-text-light: #F9FAFB;

    /* Border & shadow */
    --ht-border-soft: #E5E7EB;
    --ht-border-strong: #DAA520;
    --ht-radius-lg: 18px;
    --ht-radius-pill: 999px;
    --ht-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Reset nhỏ cho layout gọn hơn */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ht-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--ht-bg-body);
    color: var(--ht-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Link mặc định */
a {
    color: var(--ht-gold);
    text-decoration: none;
}

a:hover {
    color: #c9961c;
    text-decoration: underline;
}

/* -----------------------------
   2. HEADER & NAVIGATION
   ----------------------------- */

.ht-header {
    background: linear-gradient(90deg, var(--ht-bg-header), #111827);
    color: var(--ht-text-light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.ht-logo-img {
    height: 40px;
    width: auto;
}

.ht-logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ht-text-light);
}

.ht-logo-sub {
    font-size: 0.75rem;
    color: rgba(249, 250, 251, 0.7);
}

.ht-navbar .nav-link {
    color: rgba(249, 250, 251, 0.82) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.ht-navbar .nav-link:hover,
.ht-navbar .nav-link.active {
    color: var(--ht-gold) !important;
}

.btn-gold {
    background-color: var(--ht-gold);
    border-color: var(--ht-gold);
    color: #1F2933;
    font-weight: 600;
    border-radius: var(--ht-radius-pill);
    padding: 0.4rem 1.1rem;
    font-size: 0.86rem;
}

.btn-gold:hover {
    background-color: #c9961c;
    border-color: #c9961c;
    color: #111827;
}

.ht-main {
    padding-top: 0;
}

/* -----------------------------
   3. HERO SECTION
   ----------------------------- */

.ht-hero {
    background: radial-gradient(circle at top left, #1E293B 0, var(--ht-bg-hero-to) 45%, var(--ht-bg-hero-from) 100%);
    color: var(--ht-text-light);
    padding: 4rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.ht-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 0%, rgba(218, 165, 32, 0.14), transparent 60%);
    pointer-events: none;
}

.ht-hero > .container {
    position: relative;
    z-index: 1;
}

.ht-hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: rgba(249, 250, 251, 0.7);
    margin-bottom: 0.5rem;
}

.ht-hero-title {
    font-size: clamp(2.2rem, 3.1vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ht-hero-subtitle {
    font-size: 0.98rem;
    max-width: 540px;
    color: rgba(249, 250, 251, 0.8);
}

.ht-hero-badges {
    margin-top: 1.25rem;
    gap: 0.75rem;
}

.ht-hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--ht-radius-pill);
    padding: 0.25rem 0.9rem;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(218, 165, 32, 0.3);
    font-size: 0.8rem;
    color: rgba(249, 250, 251, 0.9);
}

.ht-hero-card {
    background-color: rgba(15, 23, 42, 0.92);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: var(--ht-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Form trong hero */
.ht-hero-card .form-control,
.ht-hero-card .form-select {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--ht-text-light);
    border-radius: 10px;
    font-size: 0.84rem;
}

.ht-hero-card .form-control::placeholder,
.ht-hero-card .form-select::placeholder {
    color: rgba(209, 213, 219, 0.8);
}

.ht-hero-card .form-control:focus,
.ht-hero-card .form-select:focus {
    border-color: var(--ht-gold);
    box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.4);
}

/* -----------------------------
   4. SECTIONS & TYPOGRAPHY
   ----------------------------- */

.ht-section {
    padding: 3rem 0;
    background-color: var(--ht-bg-surface);
}

.ht-section-light {
    background-color: var(--ht-bg-soft);
}

.ht-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--ht-text-main);
}

.ht-section-subtitle {
    font-size: 0.94rem;
    color: var(--ht-text-muted);
    max-width: 620px;
}

/* Chữ nhỏ & muted */
small,
.small {
    font-size: 0.8rem;
}

/* -----------------------------
   5. CARDS & ELEMENTS
   ----------------------------- */

.ht-card {
    background-color: var(--ht-bg-surface);
    border-radius: var(--ht-radius-lg);
    border: 1px solid var(--ht-border-soft);
    padding: 1.25rem;
    box-shadow: 0 0 0 transparent;
    transition: all 0.18s ease-out;
}

.ht-card:hover {
    box-shadow: var(--ht-shadow-soft);
    transform: translateY(-2px);
}

.ht-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 20%, var(--ht-gold-soft), rgba(248, 250, 252, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--ht-gold);
}

/* Badge mềm sử dụng cho label nhỏ */
.badge-soft {
    background-color: #F9FAFB;
    color: var(--ht-text-muted);
    border-radius: var(--ht-radius-pill);
    padding: 0.18rem 0.7rem;
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Text vàng tái sử dụng */
.text-gold {
    color: var(--ht-gold) !important;
}

/* -----------------------------
   6. PRICING CARDS
   ----------------------------- */

.ht-pricing-card {
    border-radius: 24px;
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--ht-border-soft);
    background-color: var(--ht-bg-surface);
    box-shadow: 0 0 0 transparent;
    transition: all 0.18s ease-out;
}

.ht-pricing-card--featured {
    border-color: var(--ht-gold);
    box-shadow: 0 14px 35px rgba(218, 165, 32, 0.18);
}

.ht-pricing-card .display-6 {
    font-size: 2rem;
}

/* -----------------------------
   7. PROCESS STEPS (Quy trình 5 bước)
   ----------------------------- */

.ht-step-card {
    background-color: var(--ht-bg-surface);
    border-radius: 16px;
    border: 1px solid var(--ht-border-soft);
    padding: 0.9rem 0.8rem;
    text-align: center;
    box-shadow: 0 0 0 transparent;
    transition: all 0.16s ease-out;
}

.ht-step-card:hover {
    border-color: rgba(218, 165, 32, 0.7);
    box-shadow: var(--ht-shadow-soft);
    transform: translateY(-1px);
}

/* -----------------------------
   8. FORMS (trang contact & form dưới)
   ----------------------------- */

form .form-label {
    font-size: 0.8rem;
    color: var(--ht-text-muted);
}

form .form-control,
form .form-select,
form textarea.form-control {
    border-radius: 10px;
    border: 1px solid var(--ht-border-soft);
    font-size: 0.86rem;
    padding: 0.45rem 0.75rem;
    background-color: #FFFFFF;
}

form .form-control:focus,
form .form-select:focus,
form textarea.form-control:focus {
    border-color: var(--ht-gold);
    box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.35);
}

/* -----------------------------
   9. FOOTER
   ----------------------------- */

.ht-footer {
    background-color: var(--ht-bg-footer);
    color: rgba(249, 250, 251, 0.88);
    font-size: 0.9rem;
    margin-top: 3rem;
}

.ht-footer a {
    color: var(--ht-gold);
}

.ht-footer-map iframe {
    border-radius: 14px;
}

/* Đường kẻ footer */
.ht-footer hr {
    border-color: rgba(55, 65, 81, 0.9);
}

/* -----------------------------
   10. UTILITIES & RESPONSIVE
   ----------------------------- */

@media (max-width: 991.98px) {
    .ht-hero {
        padding: 3rem 0 3rem;
    }

    .ht-hero-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .ht-section {
        padding: 2.3rem 0;
    }

    .ht-header .container {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}
/* =========================================================
   PROJECT CARDS
   ========================================================= */

.ht-project-card {
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--ht-bg-surface);
    border: 1px solid var(--ht-border-soft);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ht-project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.ht-project-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease-out;
}

.ht-project-card:hover .ht-project-image {
    transform: scale(1.04);
}

.ht-project-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ht-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background-color: rgba(249, 250, 251, 0.95);
    color: var(--ht-text-muted);
}

.ht-chip-dark {
    background-color: rgba(15, 23, 42, 0.9);
    color: #F9FAFB;
    border-color: transparent;
}

.ht-chip-light {
    background-color: rgba(249, 250, 251, 0.95);
    color: var(--ht-text-muted);
}

.ht-chip-primary {
    background-color: rgba(218, 165, 32, 0.14);
    color: var(--ht-gold);
    border-color: rgba(218, 165, 32, 0.6);
}

.ht-project-body {
    padding: 1.2rem 1.3rem 0.8rem;
}

.ht-project-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.ht-project-desc {
    font-size: 0.86rem;
    color: var(--ht-text-muted);
    margin-bottom: 0.6rem;
}

.ht-project-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ht-text-muted);
    margin-bottom: 0.3rem;
}

.ht-project-list {
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.ht-project-list li {
    font-size: 0.83rem;
    color: var(--ht-text-main);
    margin-bottom: 0.15rem;
}

.ht-project-footer {
    padding: 0.3rem 1.3rem 1rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ht-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ht-project-link {
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */

.ht-product-card {
    border-radius: 22px;
    background-color: var(--ht-bg-surface);
    border: 1px solid var(--ht-border-soft);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ht-product-image-wrapper {
    position: relative;
    border-bottom: 1px solid var(--ht-border-soft);
    overflow: hidden;
}

.ht-product-image-wrapper .ht-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.ht-product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease-out;
}

.ht-product-card:hover .ht-product-image {
    transform: scale(1.04);
}

.ht-product-body {
    padding: 1rem 1.1rem 0.6rem;
}

.ht-product-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.ht-product-meta {
    font-size: 0.82rem;
    color: var(--ht-text-muted);
    margin-bottom: 0.55rem;
}

.ht-product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.ht-product-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ht-gold);
}

.ht-product-price-old {
    font-size: 0.78rem;
    color: var(--ht-text-muted);
    text-decoration: line-through;
}

.ht-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.ht-product-footer {
    padding: 0 1.1rem 1rem;
    margin-top: auto;
}
