/* =========================================================================
   Mẫu Website Đẹp – home.css (các section trang chủ)
   ========================================================================= */

/* Reveal on scroll */
.mwd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mwd-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mwd-reveal { opacity: 1; transform: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.mwd-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0f2c55 0%, #1e5aa8 55%, #2f6fbf 100%); color: #fff; padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 88px); }
.mwd-hero__bg { position: absolute; inset: 0; background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(500px 300px at 10% 100%, rgba(71, 144, 205, .35), transparent 60%); pointer-events: none; }
.mwd-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.mwd-hero .mwd-eyebrow { color: #ffd76a; }
.mwd-hero__title { font-size: clamp(1.85rem, 4.4vw, 3rem); line-height: 1.15; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
.mwd-hero__desc { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.65; color: #dbe8f7; margin: 0 0 26px; max-width: 560px; }
.mwd-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.mwd-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mwd-hero__points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #eaf2fc; }
.mwd-hero__points .mwd-ico { width: 21px; height: 21px; color: #7ee0a8; flex: 0 0 auto; }

/* Device mockup */
.mwd-hero__visual { position: relative; }
.mwd-mock { position: relative; }
.mwd-mock__desktop {
    display: block; background: #fff; border-radius: 14px; padding: 30px 10px 10px; box-shadow: 0 30px 60px rgba(6, 20, 45, .4);
    border: 1px solid rgba(255, 255, 255, .3); position: relative; overflow: hidden;
}
.mwd-mock__bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: #eef3f9; display: flex; align-items: center; gap: 6px; padding-left: 14px; }
.mwd-mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfdae6; display: block; }
.mwd-mock__img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mwd-mock__ph { display: block; width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, #e6eef8, #cfe0f3); border-radius: 6px; }
.mwd-mock__phone {
    position: absolute; right: -6px; bottom: -22px; width: 30%; max-width: 120px; background: #fff; border-radius: 16px;
    padding: 6px; box-shadow: 0 18px 40px rgba(6, 20, 45, .35); border: 3px solid #10233f; overflow: hidden;
}
.mwd-mock__phone .mwd-mock__img { border-radius: 9px; aspect-ratio: 9/16; object-fit: cover; }
.mwd-hero__badge {
    position: absolute; left: -10px; bottom: 6px; display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--mwd-text); border-radius: 12px; padding: 10px 14px; box-shadow: var(--mwd-shadow);
}
.mwd-hero__badge .mwd-ico { width: 26px; height: 26px; color: var(--mwd-primary); }
.mwd-hero__badge strong { color: var(--mwd-primary); }
.mwd-hero__badge span { font-size: .86rem; line-height: 1.3; }

/* =========================================================================
   FINDER (tìm mẫu theo ngành)
   ========================================================================= */
.mwd-finder { margin-top: -40px; position: relative; z-index: 5; padding-bottom: clamp(30px, 5vw, 56px); }
.mwd-finder__box { background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; box-shadow: var(--mwd-shadow); padding: clamp(22px, 3vw, 34px); text-align: center; }
.mwd-finder__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 6px; color: #14233b; }
.mwd-finder__sub { color: var(--mwd-muted); margin: 0 0 20px; }
.mwd-finder__form { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto 16px; position: relative; background: var(--mwd-bg); border: 1.5px solid var(--mwd-border); border-radius: 999px; padding: 6px 6px 6px 44px; }
.mwd-finder__form:focus-within { border-color: var(--mwd-primary); box-shadow: var(--mwd-ring); }
.mwd-finder__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mwd-muted); }
.mwd-finder__icon .mwd-ico { width: 20px; height: 20px; }
.mwd-finder__form input[type="search"] { flex: 1 1 auto; border: 0; background: transparent; font: inherit; padding: 10px 4px; outline: none; color: var(--mwd-text); }
.mwd-finder__chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.mwd-finder__chips-label { color: var(--mwd-muted); font-size: .88rem; }
.mwd-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--mwd-bg-soft); color: #2a4a72; font-size: .88rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.mwd-chip:hover { background: var(--mwd-primary); color: #fff; }

/* =========================================================================
   SERVICES (2 card lớn)
   ========================================================================= */
.mwd-services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mwd-scard { background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--mwd-shadow-sm); display: flex; flex-direction: column; }
.mwd-scard--alt { background: linear-gradient(165deg, #123457, #1e5aa8); color: #fff; border-color: transparent; }
.mwd-scard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mwd-scard__ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--mwd-bg-soft); color: var(--mwd-primary); flex: 0 0 auto; }
.mwd-scard--alt .mwd-scard__ico { background: rgba(255, 255, 255, .16); color: #fff; }
.mwd-scard__ico .mwd-ico { width: 28px; height: 28px; }
.mwd-scard__title { font-size: 1.4rem; margin: 0; color: #14233b; }
.mwd-scard--alt .mwd-scard__title { color: #fff; }
.mwd-scard__lead { color: var(--mwd-muted); margin: 0 0 18px; }
.mwd-scard--alt .mwd-scard__lead { color: #cfe0f3; }
.mwd-scard__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.mwd-scard__list li { display: flex; align-items: flex-start; gap: 8px; font-size: .94rem; }
.mwd-scard__list .mwd-ico { width: 18px; height: 18px; color: #2fa96a; flex: 0 0 auto; margin-top: 2px; }
.mwd-scard--alt .mwd-scard__list .mwd-ico { color: #8ce6b3; }
.mwd-scard__list span { line-height: 1.4; }
.mwd-scard .mwd-btn { margin-top: auto; }

/* =========================================================================
   TEMPLATES (kho mẫu nổi bật)
   ========================================================================= */
.mwd-templates__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mwd-tcard { background: #fff; border: 1px solid var(--mwd-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--mwd-shadow-sm); transition: transform .2s, box-shadow .2s; }
.mwd-tcard:hover { transform: translateY(-4px); box-shadow: var(--mwd-shadow); }
.mwd-tcard__thumb { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; background: var(--mwd-bg-soft); }
.mwd-tcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mwd-tcard:hover .mwd-tcard__img { transform: scale(1.05); }
.mwd-tcard__flag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--mwd-cta); color: var(--mwd-cta-text); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mwd-tcard__view { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 6px; background: rgba(30, 90, 168, .94); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; opacity: 0; transition: opacity .25s, transform .25s; }
.mwd-tcard__view .mwd-ico { width: 15px; height: 15px; }
.mwd-tcard:hover .mwd-tcard__view { opacity: 1; transform: translate(-50%, 0); }
.mwd-tcard__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.mwd-tcard__cat { align-self: flex-start; font-size: .74rem; font-weight: 600; color: var(--mwd-primary); background: var(--mwd-bg-soft); padding: 2px 9px; border-radius: 999px; }
.mwd-tcard__title { font-size: 1rem; line-height: 1.35; margin: 0; }
.mwd-tcard__title a { color: #14233b; text-decoration: none; }
.mwd-tcard__title a:hover { color: var(--mwd-primary); }
.mwd-tcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--mwd-muted); }
.mwd-tcard__price { color: var(--mwd-gold-ink); font-weight: 700; }
.mwd-tcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mwd-templates__more { text-align: center; margin-top: 36px; }

/* =========================================================================
   WHY (lý do)
   ========================================================================= */
.mwd-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mwd-why__item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--mwd-border); border-radius: 14px; padding: 22px; box-shadow: var(--mwd-shadow-sm); }
.mwd-why__ico { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--mwd-bg-soft); color: var(--mwd-primary); }
.mwd-why__ico .mwd-ico { width: 25px; height: 25px; }
.mwd-why__title { font-size: 1.06rem; margin: 0 0 6px; color: #14233b; }
.mwd-why__desc { color: var(--mwd-muted); font-size: .92rem; line-height: 1.55; margin: 0; }

/* =========================================================================
   PROCESS (quy trình)
   ========================================================================= */
.mwd-process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.mwd-process__step { position: relative; background: #fff; border: 1px solid var(--mwd-border); border-radius: 16px; padding: 26px 22px 22px; box-shadow: var(--mwd-shadow-sm); }
.mwd-process__num { position: absolute; top: 16px; right: 18px; font-size: 2rem; font-weight: 800; color: #e6eef8; line-height: 1; }
.mwd-process__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--mwd-primary); color: #fff; margin-bottom: 14px; }
.mwd-process__ico .mwd-ico { width: 24px; height: 24px; }
.mwd-process__title { font-size: 1.06rem; margin: 0 0 6px; color: #14233b; }
.mwd-process__desc { color: var(--mwd-muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* =========================================================================
   PACKAGES
   ========================================================================= */
.mwd-packages__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.mwd-pkg { position: relative; background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--mwd-shadow-sm); display: flex; flex-direction: column; }
.mwd-pkg--feat { border-color: var(--mwd-primary); box-shadow: var(--mwd-shadow); }
.mwd-pkg__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: var(--mwd-cta); color: var(--mwd-cta-text); font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.mwd-pkg__tag .mwd-ico { width: 15px; height: 15px; }
.mwd-pkg__ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--mwd-bg-soft); color: var(--mwd-primary); margin-bottom: 14px; }
.mwd-pkg__ico .mwd-ico { width: 27px; height: 27px; }
.mwd-pkg__name { font-size: 1.25rem; margin: 0 0 6px; color: #14233b; }
.mwd-pkg__lead { color: var(--mwd-muted); margin: 0 0 18px; font-size: .95rem; }
.mwd-pkg__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 11px; }
.mwd-pkg__list li { display: flex; align-items: flex-start; gap: 8px; font-size: .94rem; }
.mwd-pkg__list .mwd-ico { width: 18px; height: 18px; color: #2fa96a; flex: 0 0 auto; margin-top: 2px; }
.mwd-pkg__price { font-weight: 700; color: var(--mwd-primary); margin: 0 0 16px; }
.mwd-pkg .mwd-btn { margin-top: auto; }

/* =========================================================================
   HOSTING
   ========================================================================= */
.mwd-hosting { background: linear-gradient(160deg, #10233f, #1b4787); color: #fff; }
.mwd-hosting__feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.mwd-hosting__feat { display: flex; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px; }
.mwd-hosting__ico { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .12); color: #9fd0ff; }
.mwd-hosting__ico .mwd-ico { width: 23px; height: 23px; }
.mwd-hosting__ftitle { font-size: 1rem; margin: 0 0 5px; color: #fff; }
.mwd-hosting__fdesc { font-size: .86rem; color: #cfe0f3; margin: 0; line-height: 1.5; }
.mwd-hosting__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.mwd-htype { background: #fff; color: var(--mwd-text); border-radius: 16px; padding: 26px 22px; text-align: center; }
.mwd-htype__ico { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: var(--mwd-bg-soft); color: var(--mwd-primary); }
.mwd-htype__ico .mwd-ico { width: 28px; height: 28px; }
.mwd-htype__name { font-size: 1.15rem; margin: 0 0 8px; color: #14233b; }
.mwd-htype__desc { color: var(--mwd-muted); font-size: .92rem; margin: 0 0 16px; line-height: 1.55; }
.mwd-htype__link { display: inline-flex; align-items: center; gap: 6px; color: var(--mwd-primary); font-weight: 700; text-decoration: none; font-size: .92rem; }
.mwd-htype__link .mwd-ico { width: 16px; height: 16px; }
.mwd-hosting__cta { text-align: center; }

/* =========================================================================
   FAQ
   ========================================================================= */
.mwd-faq__list { display: grid; gap: 12px; }
.mwd-faq__item { background: #fff; border: 1px solid var(--mwd-border); border-radius: 12px; overflow: hidden; }
.mwd-faq__q { margin: 0; }
.mwd-faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 18px 20px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.02rem; color: #14233b; text-align: left; }
.mwd-faq__sign { transition: transform .25s; color: var(--mwd-primary); flex: 0 0 auto; }
.mwd-faq__btn[aria-expanded="true"] .mwd-faq__sign { transform: rotate(45deg); }
.mwd-faq__a { padding: 0 20px 18px; color: var(--mwd-muted); line-height: 1.65; }
.mwd-faq__a p { margin: 0; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.mwd-contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.mwd-contact__lead { color: var(--mwd-muted); margin: 0 0 20px; }
.mwd-contact__points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.mwd-contact__points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mwd-contact__points .mwd-ico { width: 21px; height: 21px; color: #2fa96a; flex: 0 0 auto; }
.mwd-contact__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mwd-contact__info li { display: flex; align-items: center; gap: 10px; }
.mwd-contact__info .mwd-ico { width: 20px; height: 20px; color: var(--mwd-primary); }
.mwd-contact__info a { color: var(--mwd-text); text-decoration: none; font-weight: 600; }
.mwd-contact__formwrap { background: #fff; border: 1px solid var(--mwd-border); border-radius: 18px; box-shadow: var(--mwd-shadow); padding: clamp(22px, 3vw, 32px); }
.mwd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mwd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mwd-field label { font-size: .9rem; font-weight: 600; color: #33415a; }
.mwd-field .req { color: var(--mwd-danger); }
.mwd-field input, .mwd-field select, .mwd-field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--mwd-border); border-radius: 10px; background: #fbfdff; color: var(--mwd-text); width: 100%; }
.mwd-field input:focus, .mwd-field select:focus, .mwd-field textarea:focus { outline: none; border-color: var(--mwd-primary); box-shadow: var(--mwd-ring); }
.mwd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mwd-consent label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: .9rem; color: var(--mwd-muted); cursor: pointer; }
.mwd-consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.mwd-consent a { color: var(--mwd-primary); }
.mwd-form__status { display: none; padding: 11px 14px; border-radius: 10px; font-size: .92rem; margin-bottom: 12px; }
.mwd-form__status.is-pending { display: block; background: #eef4fc; color: #245; }
.mwd-form__status.is-ok { display: block; background: #e7f7ee; color: #176c3a; border: 1px solid #b6e6c8; }
.mwd-form__status.is-error { display: block; background: #fdecec; color: #b4242a; border: 1px solid #f3c2c4; }
.mwd-form__micro { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: .82rem; color: var(--mwd-muted); }
.mwd-form__micro .mwd-ico { width: 15px; height: 15px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991px) {
    .mwd-hero__inner { grid-template-columns: 1fr; }
    .mwd-hero__visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
    .mwd-templates__grid { grid-template-columns: repeat(3, 1fr); }
    .mwd-hosting__feats { grid-template-columns: repeat(2, 1fr); }
    .mwd-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .mwd-services__grid, .mwd-packages__grid { grid-template-columns: 1fr; }
    .mwd-why__grid { grid-template-columns: 1fr 1fr; }
    .mwd-process__list { grid-template-columns: 1fr; gap: 0; position: relative; padding-left: 8px; }
    .mwd-process__step { border: 0; border-left: 2px solid var(--mwd-border); border-radius: 0; box-shadow: none; padding: 8px 8px 28px 26px; margin-left: 12px; }
    .mwd-process__num { position: absolute; top: 0; left: -14px; right: auto; font-size: 1rem; width: 28px; height: 28px; background: var(--mwd-primary); color: #fff; border-radius: 50%; display: grid; place-items: center; }
    .mwd-process__ico { display: none; }
    .mwd-templates__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mwd-hosting__types { grid-template-columns: 1fr; }
    .mwd-scard__list { grid-template-columns: 1fr; }
    .mwd-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .mwd-why__grid { grid-template-columns: 1fr; }
    .mwd-hosting__feats { grid-template-columns: 1fr; }
    .mwd-hero__cta .mwd-btn { flex: 1 1 100%; }
    .mwd-mock__phone { max-width: 92px; }
    .mwd-tcard__actions { grid-template-columns: 1fr; }
}

/* =========================================================================
   TEXT PROMINENCE — ghi đè màu/độ đậm tiêu đề của theme cha (.vs-scope hN)
   để chữ nổi bật đúng thiết kế. Dùng tiền tố .mwd-main để thắng specificity.
   ========================================================================= */
/* Tiêu đề trên nền sáng: đậm, tối, rõ */
.mwd-main .mwd-head__title,
.mwd-main .mwd-finder__title,
.mwd-main .mwd-scard__title,
.mwd-main .mwd-why__title,
.mwd-main .mwd-process__title,
.mwd-main .mwd-pkg__name,
.mwd-main .mwd-htype__name,
.mwd-main .mwd-tcard__title a,
.mwd-main .mwd-faq__btn { color: #12233d; font-weight: 700; }

/* Hero: chữ trắng + đậm + đổ bóng để tách khỏi nền gradient */
.mwd-main .mwd-hero__title { color: #ffffff; font-weight: 800; text-shadow: 0 2px 20px rgba(6, 18, 40, .40); }
.mwd-main .mwd-hero__desc { color: #eef5fe; font-weight: 500; text-shadow: 0 1px 10px rgba(6, 18, 40, .28); }
.mwd-main .mwd-hero__points li { color: #f4f9ff; font-weight: 600; }
.mwd-main .mwd-hero .mwd-eyebrow { color: #ffd561; font-weight: 700; text-shadow: 0 1px 6px rgba(6, 18, 40, .30); }

/* Tiêu đề trên nền tối (giữ trắng, thắng cả rule ở trên nhờ specificity cao hơn) */
.mwd-main .mwd-head--light .mwd-head__title,
.mwd-main .mwd-scard--alt .mwd-scard__title { color: #ffffff; }

/* Chữ phụ trên nền màu — sáng hơn cho dễ đọc */
.mwd-hosting .mwd-hosting__fdesc,
.mwd-hosting .mwd-head--light .mwd-head__sub { color: #e0edfb; }
.mwd-scard--alt .mwd-scard__lead { color: #e0edfb; }
.mwd-main .mwd-hosting__ftitle { color: #ffffff; font-weight: 700; }

/* Eyebrow các section nổi bật hơn chút */
.mwd-main .mwd-eyebrow { font-weight: 700; letter-spacing: .07em; }
