/* ==========================================================================
   Landing HD — design system for Nhôm Đúc Hoàng Dương landing pages
   Scope: 4 dedicated landing pages only (loaded alongside the site's
   existing frontend CSS bundle, not a replacement for it).
   Prefix: .hd- / --hd- to avoid collisions with existing site classes.
   ========================================================================== */

:root {
    --hd-gold: #c9971f;
    --hd-gold-light: #e0b656;
    --hd-gold-bright: #f2cf6e;
    --hd-gold-pale: #f7e3b0;
    --hd-copper: #a85c2c;
    --hd-copper-dark: #7a4019;
    --hd-charcoal: #17171b;
    --hd-charcoal-mid: #232329;
    --hd-charcoal-light: #34343d;
    --hd-espresso: #2b1706;
    --hd-espresso-light: #4a2a0d;
    --hd-bronze: #6b3a12;
    --hd-bronze-light: #8a5a1a;
    --hd-royal-gold: #e8c56b;
    --hd-emerald: #0f4a3c;
    --hd-emerald-light: #1a6b57;
    --hd-emerald-bright: #218a6f;
    --hd-cream: #fdfaf3;
    --hd-cream-dark: #f3ead4;
    --hd-warm: #faf6ea;
    --hd-text-dark: #241a12;
    --hd-text-mid: #5c4a38;
    --hd-text-light: #8f7c68;
    --hd-red: #b0281f;
    --hd-red-light: #e2432f;
    --hd-zalo: #0068ff;
    --hd-radius: 10px;
    --hd-shadow: 0 10px 30px rgba(23, 23, 27, 0.12);
    --hd-shadow-lg: 0 20px 50px rgba(23, 23, 27, 0.18);
}

.hd-page { color: var(--hd-text-dark); font-family: inherit; overflow-x: hidden; }
.hd-page * { box-sizing: border-box; }
.hd-page section { padding: 64px 0; }
.hd-page img { max-width: 100%; }
.hd-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Section titles ---------------- */
.hd-stitle { text-align: center; margin-bottom: 44px; }
.hd-stitle .hd-eyebrow {
    display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--hd-copper); font-weight: 700; margin-bottom: 10px;
}
.hd-stitle h2 { font-size: 34px; font-weight: 800; color: var(--hd-charcoal); margin: 0 0 16px; }
.hd-stitle p { font-size: 16px; color: var(--hd-text-mid); max-width: 640px; margin: 0 auto; }
.hd-stitle .hd-underline {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px;
}
.hd-stitle .hd-underline::before, .hd-stitle .hd-underline::after {
    content: ""; width: 40px; height: 2px; background: var(--hd-gold);
}
.hd-stitle .hd-underline i {
    width: 8px; height: 8px; background: var(--hd-gold); transform: rotate(45deg); display: inline-block;
}
.hd-stitle.hd-light h2, .hd-stitle.hd-light .hd-eyebrow { color: #fff; }
.hd-stitle.hd-light p { color: rgba(255,255,255,0.75); }

/* ---------------- Buttons ---------------- */
.hd-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 50px;
    font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease; cursor: pointer;
}
.hd-btn:hover { transform: translateY(-2px); text-decoration: none; }
.hd-btn-gold { background: linear-gradient(135deg, var(--hd-gold-bright), var(--hd-gold)); color: #2a1c05; box-shadow: 0 8px 24px rgba(201,151,31,0.4); }
.hd-btn-gold:hover { color: #2a1c05; box-shadow: 0 12px 30px rgba(201,151,31,0.55); }
.hd-btn-call { background: var(--hd-red); color: #fff; box-shadow: 0 8px 24px rgba(176,40,31,0.35); }
.hd-btn-call:hover { color: #fff; background: var(--hd-red-light); }
.hd-btn-zalo { background: var(--hd-zalo); color: #fff; box-shadow: 0 8px 24px rgba(0,104,255,0.3); }
.hd-btn-zalo:hover { color: #fff; }
.hd-btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.hd-btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hd-btn-dark { background: var(--hd-charcoal); color: var(--hd-gold-bright); border-color: var(--hd-charcoal); box-shadow: 0 8px 24px rgba(23,23,27,0.35); }
.hd-btn-dark:hover { color: var(--hd-gold-bright); background: var(--hd-charcoal-mid); }
.hd-btn-lg { padding: 17px 38px; font-size: 16px; }
.hd-btn i { font-size: 18px; }

/* ---------------- Hero ---------------- */
.hd-hero {
    position: relative; padding: 70px 0 90px; overflow: hidden; color: var(--hd-text-dark);
    background:
        radial-gradient(ellipse at 15% 10%, rgba(255,255,255,0.4), transparent 55%),
        radial-gradient(ellipse at 90% 90%, rgba(255,255,255,0.2), transparent 55%),
        linear-gradient(135deg, var(--hd-bronze) 0%, var(--hd-bronze-light) 30%, var(--hd-gold) 65%, var(--hd-gold-light) 100%);
}
.hd-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
    background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 26px);
}
.hd-hero h1, .hd-hero-desc { text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.hd-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; position: relative; z-index: 2; }
.hd-hero-copy { flex: 1 1 480px; min-width: 300px; }
.hd-hero-media { flex: 1 1 420px; min-width: 280px; }
.hd-hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px 8px 16px; font-size: 13px;
    font-weight: 700; letter-spacing: .5px; color: var(--hd-gold-bright); background: var(--hd-charcoal);
    margin-bottom: 22px; text-transform: uppercase; box-shadow: 0 6px 18px rgba(23,23,27,0.3);
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.hd-hero h1 { font-size: 42px; line-height: 1.2; font-weight: 800; margin: 0 0 20px; color: var(--hd-charcoal); }
.hd-hero h1 span { color: var(--hd-red); }
.hd-hero-desc { font-size: 17px; color: var(--hd-text-mid); margin-bottom: 28px; max-width: 560px; font-weight: 500; }
.hd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hd-hero-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.hd-hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hd-text-dark); font-weight: 600; }
.hd-hero-trust i { color: var(--hd-red); }
.hd-hero-media-frame {
    position: relative; border-radius: var(--hd-radius); overflow: hidden;
    border: 3px solid var(--hd-charcoal); box-shadow: var(--hd-shadow-lg);
}
.hd-hero-media-frame img { width: 100%; height: 380px; object-fit: cover; display: block; }
.hd-hero-media-tag {
    position: absolute; bottom: 16px; left: 16px; background: var(--hd-charcoal); color: var(--hd-gold-bright);
    padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700;
}

/* ---------------- Trust bar ---------------- */
.hd-trust { background: var(--hd-cream-dark); padding: 30px 0; }
.hd-trust-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.hd-trust-item { flex: 1 1 200px; display: flex; align-items: center; gap: 14px; }
.hd-trust-item .hd-num { font-size: 28px; font-weight: 800; color: var(--hd-copper); }
.hd-trust-item .hd-label { font-size: 13px; color: var(--hd-text-mid); font-weight: 600; }

/* ---------------- Gallery ---------------- */
.hd-gallery { background: var(--hd-cream); }
.hd-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hd-gallery-grid.hd-gallery-3col { grid-template-columns: repeat(3, 1fr); }
.hd-gallery-item {
    position: relative; border-radius: 8px; overflow: hidden; background: #fff;
    box-shadow: var(--hd-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.hd-gallery-item:hover { transform: translateY(-6px); box-shadow: var(--hd-shadow-lg); }
.hd-gallery-item .hd-frame { position: relative; overflow: hidden; }
.hd-gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .4s ease; }
.hd-gallery-item:hover img { transform: scale(1.06); }
.hd-gallery-item::before, .hd-gallery-item::after,
.hd-gallery-item .hd-frame::before, .hd-gallery-item .hd-frame::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; }
.hd-gallery-item .hd-frame::before { top: 8px; left: 8px; border-top: 2px solid var(--hd-gold-bright); border-left: 2px solid var(--hd-gold-bright); }
.hd-gallery-item .hd-frame::after { top: 8px; right: 8px; border-top: 2px solid var(--hd-gold-bright); border-right: 2px solid var(--hd-gold-bright); }
.hd-gallery-item .hd-cap {
    padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--hd-text-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-gallery-item .hd-cap small { display: block; font-weight: 500; color: var(--hd-text-light); font-size: 12px; margin-top: 2px; }
.hd-gallery-item.hd-featured { grid-column: span 2; grid-row: span 2; }
.hd-gallery-item.hd-featured img { height: 484px; }
.hd-gallery-more { text-align: center; margin-top: 34px; }

/* ---------------- Pricing ---------------- */
.hd-pricing { background: var(--hd-warm); }
.hd-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hd-price-card {
    background: #fff; border-radius: var(--hd-radius); padding: 32px 26px; text-align: center;
    box-shadow: var(--hd-shadow); position: relative; border: 1px solid rgba(201,151,31,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hd-price-card:hover { transform: translateY(-6px); box-shadow: var(--hd-shadow-lg); }
.hd-price-card.hd-featured { border: 2px solid var(--hd-gold); transform: scale(1.04); z-index: 2; }
.hd-price-card.hd-featured:hover { transform: scale(1.04) translateY(-6px); }
.hd-price-hot {
    position: absolute; top: -12px; right: 20px; background: var(--hd-red); color: #fff; font-size: 12px;
    font-weight: 800; padding: 5px 14px; border-radius: 4px; letter-spacing: .5px;
}
.hd-price-card h3 { font-size: 19px; font-weight: 800; color: var(--hd-charcoal); margin: 6px 0 16px; }
.hd-price-card .hd-price { font-size: 30px; font-weight: 800; color: var(--hd-copper); margin-bottom: 4px; }
.hd-price-card .hd-price span { font-size: 14px; color: var(--hd-text-light); font-weight: 500; }
.hd-price-card .hd-price-old { font-size: 14px; color: var(--hd-text-light); text-decoration: line-through; margin-bottom: 18px; }
.hd-price-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.hd-price-card ul li { padding: 8px 0; font-size: 14px; color: var(--hd-text-mid); border-bottom: 1px dashed #eee; display: flex; gap: 8px; }
.hd-price-card ul li i { color: var(--hd-emerald-bright); margin-top: 2px; }
.hd-price-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--hd-text-light); }

/* ---------------- Promo box ---------------- */
.hd-promo {
    background: linear-gradient(135deg, var(--hd-copper-dark), var(--hd-red) 130%);
    border-radius: var(--hd-radius); padding: 44px; color: #fff; position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: space-between;
}
.hd-promo::before {
    content: "\f06b"; font-family: FontAwesome; position: absolute; right: -20px; bottom: -40px; font-size: 220px;
    color: rgba(255,255,255,0.08);
}
.hd-promo-copy { position: relative; z-index: 2; flex: 1 1 380px; }
.hd-promo-copy h3 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.hd-promo-copy p { font-size: 15px; opacity: .9; margin: 0; }
.hd-promo-cta { position: relative; z-index: 2; }

/* ---------------- USP ---------------- */
.hd-usp { background: var(--hd-cream); }
.hd-usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hd-usp-card { background: #fff; border-radius: var(--hd-radius); padding: 30px 22px; text-align: center; box-shadow: var(--hd-shadow); }
.hd-usp-icon {
    width: 66px; height: 66px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--hd-gold-bright), var(--hd-gold));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    color: var(--hd-charcoal); font-size: 26px;
}
.hd-usp-card h4 { font-size: 16px; font-weight: 800; color: var(--hd-charcoal); margin: 0 0 10px; }
.hd-usp-card p { font-size: 13.5px; color: var(--hd-text-mid); margin: 0; }

/* ---------------- Process ---------------- */
.hd-process {
    color: var(--hd-text-dark); position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.35), transparent 55%),
        radial-gradient(ellipse at 10% 85%, rgba(255,255,255,0.2), transparent 55%),
        linear-gradient(160deg, var(--hd-bronze-light) 0%, var(--hd-gold) 60%, var(--hd-gold-light) 100%);
}
.hd-process h2 { color: var(--hd-charcoal); text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.hd-process .hd-eyebrow { color: var(--hd-charcoal); }
.hd-process .hd-stitle p { color: var(--hd-text-dark); }
.hd-process .hd-underline::before, .hd-process .hd-underline::after, .hd-process .hd-underline i { background: var(--hd-charcoal); }
.hd-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.hd-process-step { text-align: center; position: relative; padding: 0 10px; }
.hd-process-step .hd-step-num {
    width: 54px; height: 54px; border-radius: 50%; background: var(--hd-charcoal);
    border: 2px solid var(--hd-gold-bright); color: var(--hd-gold-bright); font-weight: 800; font-size: 20px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(23,23,27,0.3);
}
.hd-process-step h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--hd-charcoal); }
.hd-process-step p { font-size: 13.5px; color: var(--hd-text-dark); opacity: .85; margin: 0; }
.hd-process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 27px; left: 60%; width: 80%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(36,26,18,0.35) 0 8px, transparent 8px 14px);
}

/* ---------------- Testimonials ---------------- */
.hd-testimonials { background: var(--hd-warm); }
.hd-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hd-testi-card { background: #fff; border-radius: var(--hd-radius); padding: 28px; box-shadow: var(--hd-shadow); }
.hd-testi-stars { color: var(--hd-gold); font-size: 14px; margin-bottom: 14px; }
.hd-testi-card p.hd-quote { font-size: 14.5px; color: var(--hd-text-mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.hd-testi-person { display: flex; align-items: center; gap: 12px; }
.hd-testi-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--hd-copper); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.hd-testi-person b { display: block; font-size: 14px; color: var(--hd-charcoal); }
.hd-testi-person span { font-size: 12.5px; color: var(--hd-text-light); }

/* ---------------- News slider ---------------- */
.hd-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hd-news-card { background: #fff; border-radius: var(--hd-radius); overflow: hidden; box-shadow: var(--hd-shadow); transition: transform .25s ease; }
.hd-news-card:hover { transform: translateY(-5px); }
.hd-news-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hd-news-card .hd-news-body { padding: 16px; }
.hd-news-card .hd-news-date { font-size: 12px; color: var(--hd-copper); font-weight: 700; margin-bottom: 6px; }
.hd-news-card h4 { font-size: 14.5px; font-weight: 700; color: var(--hd-charcoal); line-height: 1.4; margin: 0; }
.hd-news-card h4 a { color: inherit; }

/* ---------------- CTA final ---------------- */
.hd-cta-final {
    position: relative; text-align: center; color: var(--hd-text-dark); overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.4), transparent 60%),
        linear-gradient(160deg, var(--hd-bronze) 0%, var(--hd-bronze-light) 45%, var(--hd-gold) 100%);
}
.hd-cta-final h2 { font-size: 32px; font-weight: 800; margin: 0 0 14px; color: var(--hd-charcoal); text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.hd-cta-final p { font-size: 16px; color: var(--hd-text-mid); max-width: 560px; margin: 0 auto 30px; font-weight: 500; }
.hd-cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hd-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.hd-badges div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hd-text-dark); font-weight: 600; }
.hd-badges i { color: var(--hd-red); font-size: 18px; }

/* ---------------- Company strip ---------------- */
.hd-company { background: var(--hd-cream-dark); padding: 40px 0; }
.hd-company-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.hd-company-item { flex: 1 1 260px; display: flex; gap: 14px; align-items: flex-start; }
.hd-company-item i { color: var(--hd-copper); font-size: 20px; margin-top: 3px; }
.hd-company-item b { display: block; font-size: 14px; color: var(--hd-charcoal); }
.hd-company-item span { font-size: 13px; color: var(--hd-text-mid); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .hd-hero h1 { font-size: 32px; }
    .hd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-gallery-item.hd-featured { grid-column: span 2; grid-row: span 1; }
    .hd-gallery-item.hd-featured img { height: 230px; }
    .hd-price-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-price-card.hd-featured { transform: none; }
    .hd-usp-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-process-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-process-step:not(:last-child)::after { display: none; }
    .hd-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .hd-page section { padding: 44px 0; }
    .hd-hero { padding: 46px 0 60px; }
    .hd-hero h1 { font-size: 26px; }
    #hd-countdown { flex-wrap: wrap; gap: 8px !important; }
    #hd-countdown > div { min-width: 58px !important; padding: 8px 10px !important; }
    .hd-stitle h2 { font-size: 25px; }
    .hd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hd-gallery-item img { height: 150px; }
    .hd-gallery-item.hd-featured img { height: 150px; }
    .hd-price-grid { grid-template-columns: 1fr; }
    .hd-usp-grid { grid-template-columns: 1fr 1fr; }
    .hd-process-grid { grid-template-columns: 1fr 1fr; }
    .hd-testi-grid { grid-template-columns: 1fr; }
    .hd-news-grid { grid-template-columns: 1fr 1fr; }
    .hd-promo { padding: 28px; text-align: center; justify-content: center; }
    .hd-hero-actions, .hd-cta-final-actions { justify-content: center; }
    .hd-trust-item { flex: 1 1 100%; }
}
@media (max-width: 480px) {
    .hd-gallery-grid, .hd-usp-grid, .hd-process-grid, .hd-news-grid { grid-template-columns: 1fr; }
    .hd-btn { width: 100%; justify-content: center; }
}
