/* Hà Tiên Network Premium Footer — owner-supplied design adapted for Multisite. */
.htf-footer,
.htf-footer * { box-sizing: border-box; }

.htf-footer {
    --htf-bg: #0b161c;
    --htf-bg-deep: #071116;
    --htf-card: #112129;
    --htf-gold: var(--ht-gold, #d6aa6d);
    --htf-gold-light: #f0d2a8;
    --htf-white: #ffffff;
    --htf-text: #d7e0e5;
    --htf-muted: #9eabb3;
    --htf-border: rgba(214, 170, 109, 0.28);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 0;
    color: var(--htf-white);
    background:
        radial-gradient(circle at 12% 0%, rgba(214, 170, 109, 0.12), transparent 29rem),
        radial-gradient(circle at 92% 34%, rgba(214, 170, 109, 0.08), transparent 25rem),
        linear-gradient(145deg, var(--htf-bg) 0%, var(--htf-bg-deep) 100%);
    font: inherit;
    font-size: 16.5px;
    line-height: 1.65;
}

.htf-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: 0.22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.htf-icon-sprite { position: absolute; overflow: hidden; width: 0; height: 0; }
.htf-topline { height: 4px; background: linear-gradient(90deg, transparent 0%, var(--htf-gold) 18%, var(--htf-gold-light) 50%, var(--htf-gold) 82%, transparent 100%); box-shadow: 0 0 24px rgba(214, 170, 109, 0.34); }
.htf-container { width: min(calc(100% - 48px), 1420px); margin-inline: auto; }
.htf-main { padding: 66px 0 48px; }
.htf-upper { display: grid; grid-template-columns: minmax(285px, 0.8fr) minmax(0, 2.2fr); gap: clamp(34px, 5vw, 76px); align-items: stretch; }
.htf-brand { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-right: 10px; }
.htf-logo { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 14px; color: var(--htf-white) !important; text-decoration: none !important; }
.htf-logo-media { min-width: 0; display: grid; place-items: center; }
.htf-logo-image,
.htf-logo-media img { width: auto; max-width: min(190px, 40vw); max-height: 70px; object-fit: contain; }
.htf-logo-mark { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border: 1px solid rgba(214, 170, 109, 0.65); border-radius: 16px 4px 16px 4px; background: linear-gradient(145deg, rgba(214, 170, 109, 0.18), rgba(255, 255, 255, 0.03)); color: var(--htf-gold-light); font-size: 21px; font-weight: 800; letter-spacing: 0.04em; box-shadow: inset 0 0 0 5px rgba(214, 170, 109, 0.04), 0 18px 36px rgba(0, 0, 0, 0.24); }
.htf-logo-type { min-width: 0; display: grid; gap: 5px; line-height: 1; }
.htf-logo-type strong { color: var(--htf-white); font-size: clamp(22px, 1.8vw, 31px); font-weight: 750; line-height: 1.15; letter-spacing: 0.025em; overflow-wrap: anywhere; }
.htf-logo-type small { color: var(--htf-gold); font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: 0.22em; text-transform: uppercase; }
.htf-slogan { max-width: 430px; margin: 26px 0 10px; color: var(--htf-white); font-size: clamp(20px, 1.65vw, 25px); font-weight: 700; line-height: 1.42; }
.htf-slogan::before { width: 64px; height: 2px; display: block; margin-bottom: 18px; content: ""; background: var(--htf-gold); box-shadow: 0 0 15px rgba(214, 170, 109, 0.35); }
.htf-brand-copy { max-width: 440px; margin: 0; color: var(--htf-text); font-size: 16px; line-height: 1.72; }
.htf-contact-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.htf-pill { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--htf-border); border-radius: 999px; background: rgba(255, 255, 255, 0.035); color: var(--htf-white) !important; font-size: 14px; font-weight: 650; text-decoration: none !important; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.htf-pill:hover { border-color: var(--htf-gold); background: rgba(214, 170, 109, 0.12); transform: translateY(-2px); }
.htf-pill svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--htf-white); }
.htf-office-wrap { min-width: 0; }
.htf-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--htf-gold); font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; }
.htf-kicker::after { height: 1px; flex: 1; content: ""; background: linear-gradient(90deg, rgba(214, 170, 109, 0.42), transparent); }
.htf-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.htf-office { position: relative; min-width: 0; min-height: 254px; display: flex; flex-direction: column; overflow: hidden; padding: 25px 23px 22px; border: 1px solid var(--htf-border); border-radius: 6px 20px 6px 20px; background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)); color: var(--htf-white) !important; text-decoration: none !important; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2); transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease; }
.htf-office::after { position: absolute; right: -42px; bottom: -55px; width: 140px; height: 140px; border: 1px solid rgba(214, 170, 109, 0.16); border-radius: 50%; content: ""; pointer-events: none; box-shadow: 0 0 0 18px rgba(214, 170, 109, 0.025), 0 0 0 38px rgba(214, 170, 109, 0.018); }
.htf-office:hover { border-color: rgba(214, 170, 109, 0.72); background: linear-gradient(155deg, rgba(214, 170, 109, 0.13), rgba(255, 255, 255, 0.025)); transform: translateY(-5px); box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(214, 170, 109, 0.08); }
.htf-office-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.htf-office-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(214, 170, 109, 0.42); border-radius: 50%; background: rgba(214, 170, 109, 0.1); color: var(--htf-white); }
.htf-office-icon svg { width: 21px; height: 21px; }
.htf-country { color: var(--htf-gold); font-size: 11px; font-weight: 800; letter-spacing: 0.17em; }
.htf-office h3,
.htf-menu h2 { text-wrap: balance; }
.htf-office h3 { margin: 0 0 11px; color: var(--htf-white); font-size: 17px; font-weight: 700; line-height: 1.35; }
.htf-office address { margin: 0; color: var(--htf-text); font-size: 15px; font-style: normal; line-height: 1.58; }
.htf-map-action { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 20px; color: var(--htf-white); font-size: 14px; font-weight: 700; }
.htf-map-action svg { width: 16px; height: 16px; transition: transform 180ms ease; }
.htf-office:hover .htf-map-action { color: var(--htf-gold); }
.htf-office:hover .htf-map-action svg { transform: translateX(4px); }
.htf-divider { height: 1px; margin: 48px 0 42px; border: 0; background: linear-gradient(90deg, transparent, rgba(214, 170, 109, 0.52) 18%, rgba(214, 170, 109, 0.22) 82%, transparent); }
.htf-menus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 4vw, 56px); }
.htf-menus--1 { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.htf-menus--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.htf-menus--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.htf-menu { min-width: 0; }
.htf-menu-title { display: flex; align-items: center; gap: 11px; margin: 0 0 19px; color: var(--htf-white); font-size: 16px; font-weight: 750; line-height: 1.4; letter-spacing: 0.025em; }
.htf-menu-title-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border: 1px solid var(--htf-border); border-radius: 10px 3px 10px 3px; background: rgba(214, 170, 109, 0.08); color: var(--htf-white); }
.htf-menu-title-icon svg { width: 18px; height: 18px; }
.htf-menu ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.htf-menu li { margin: 0; padding: 0; border: 0; }
.htf-menu a { min-height: 40px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; color: var(--htf-text) !important; font-size: 15.5px; line-height: 1.45; text-decoration: none !important; transition: color 170ms ease, transform 170ms ease; }
.htf-menu a svg { width: 16px; height: 16px; color: var(--htf-white); opacity: 0.88; transition: color 170ms ease, opacity 170ms ease; }
.htf-menu a:hover { color: var(--htf-gold) !important; transform: translateX(4px); }
.htf-menu a:hover svg { color: var(--htf-white); opacity: 1; }
.htf-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.18); }
.htf-bottom-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.htf-legal { max-width: 760px; margin: 0; color: var(--htf-muted); font-size: 14px; line-height: 1.6; }
.htf-legal strong { color: var(--htf-white); font-weight: 700; }
.htf-quick-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.htf-quick-links a { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; color: var(--htf-text) !important; font-size: 14px; font-weight: 650; text-decoration: none !important; }
.htf-quick-links a:hover { color: var(--htf-gold) !important; }
.htf-quick-links svg { width: 15px; height: 15px; color: var(--htf-white); }
.htf-footer a:focus-visible { outline: 3px solid var(--htf-gold-light); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1180px) {
    .htf-upper { grid-template-columns: 1fr; }
    .htf-brand { max-width: 760px; padding-right: 0; }
}

@media (max-width: 920px) {
    .htf-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .htf-office:first-child { grid-column: 1 / -1; min-height: 220px; }
    .htf-menus,
    .htf-menus--3,
    .htf-menus--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .htf-footer { font-size: 16px; }
    .htf-container { width: min(calc(100% - 32px), 1420px); }
    .htf-main { padding: 48px 0 36px; }
    .htf-logo { align-items: flex-start; }
    .htf-logo-image,
    .htf-logo-media img { max-width: 132px; max-height: 58px; }
    .htf-logo-mark { width: 56px; height: 56px; flex-basis: 56px; font-size: 18px; }
    .htf-logo-type strong { font-size: 21px; }
    .htf-logo-type small { font-size: 9px; letter-spacing: 0.14em; }
    .htf-contact-pills { display: grid; grid-template-columns: 1fr; }
    .htf-pill { justify-content: center; }
    .htf-offices,
    .htf-menus,
    .htf-menus--2,
    .htf-menus--3,
    .htf-menus--4 { grid-template-columns: 1fr; }
    .htf-office:first-child { grid-column: auto; }
    .htf-office { min-height: 224px; padding: 23px 21px 20px; }
    .htf-divider { margin: 39px 0 35px; }
    .htf-menu-title { margin-bottom: 12px; }
    .htf-menu a { min-height: 44px; padding: 8px 0; font-size: 16px; }
    .htf-bottom-inner { min-height: 0; flex-direction: column; align-items: flex-start; padding: 23px 0 26px; }
    .htf-quick-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .htf-footer *,
    .htf-footer *::before,
    .htf-footer *::after { scroll-behavior: auto !important; transition: none !important; }
}
