/* ==========================================================
   HAMASTA MEDIA — site footer (includes/footer.php)
   Own "hmf-" namespace so the older .footer-modern rules don't apply.
   ========================================================== */
.hmf {
    --hmf-bg: #0b0c11;
    --hmf-panel: rgba(255, 255, 255, 0.035);
    --hmf-line: rgba(255, 255, 255, 0.08);
    --hmf-text: #e9ebf1;
    --hmf-muted: #8b93a7;
    --hmf-dim: #5f677b;
    --hmf-red: #be1622;
    --hmf-red-soft: #ef5b63;
    --hmf-blue: #009fe3;
    position: relative;
    margin-top: 64px;
    padding: 0;           /* main.css styles every <footer> */
    background:
        radial-gradient(900px 380px at 100% 0%, rgba(128, 0, 0, 0.22), transparent 70%),
        radial-gradient(700px 320px at 0% 100%, rgba(0, 159, 227, 0.07), transparent 70%),
        var(--hmf-bg);
    color: var(--hmf-muted);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}
/* Brand stripe across the top */
.hmf::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, #800000 0%, var(--hmf-red) 45%, var(--hmf-blue) 100%);
}
.hmf a { color: inherit; text-decoration: none; transition: color .2s; }
.hmf a:hover { color: #fff; }
.hmf ul { list-style: none; margin: 0; padding: 0; }
.hmf h2, .hmf h3, .hmf p { margin: 0; }
.hmf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; }
.hmf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hmf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Newsletter band ── */
.hmf-cta {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
    margin: 0 0 8px; padding: 44px 0 40px;
    border-bottom: 1px solid var(--hmf-line);
}
.hmf-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hmf-red-soft);
    margin-bottom: 10px;
}
.hmf-cta h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.hmf-cta-text p { margin-top: 8px; color: var(--hmf-muted); }
.hmf-news { display: flex; flex-wrap: wrap; gap: 10px; }
.hmf-news input[type="email"] {
    flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hmf-line); border-radius: 14px;
    color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.hmf-news input[type="email"]::placeholder { color: var(--hmf-dim); }
.hmf-news input[type="email"]:focus { border-color: var(--hmf-red); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(190, 22, 34, 0.18); }
.hmf-news button {
    height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #a10f1a, var(--hmf-red)); color: #fff;
    font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 26px rgba(190, 22, 34, 0.3); transition: transform .15s, box-shadow .2s, opacity .2s;
}
.hmf-news button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(190, 22, 34, 0.4); }
.hmf-news button:disabled { opacity: .6; cursor: progress; transform: none; }
.hmf-news button i { font-size: 13px; transition: transform .2s; }
.hmf-news button:hover i { transform: translateX(3px); }
.hmf-news-msg { flex-basis: 100%; min-height: 20px; font-size: 13px; }
.hmf-news-msg.ok { color: #4ade80; }
.hmf-news-msg.err { color: #fca5a5; }

/* ── Columns ── */
.hmf-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.35fr; gap: 36px;
    padding: 44px 0 40px;
}
.hmf-logo { display: inline-flex; align-items: center; gap: 12px; }
.hmf-logo img {
    width: 56px; height: 56px; object-fit: contain; border-radius: 16px; padding: 6px;
    background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.hmf-logo strong { display: block; font-size: 18px; font-weight: 900; letter-spacing: .4px; color: var(--hmf-blue); line-height: 1.1; }
.hmf-logo strong em { font-style: normal; color: var(--hmf-red-soft); }
.hmf-logo small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--hmf-muted); }
.hmf-about { margin-top: 16px; max-width: 330px; font-size: 13.5px; line-height: 1.7; }
.hmf-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hmf-social a {
    width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--hmf-panel); border: 1px solid var(--hmf-line); color: #c3c8d4; font-size: 15px;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.hmf-social a:hover { transform: translateY(-3px); background: var(--hmf-red); border-color: var(--hmf-red); color: #fff; }
.hmf-app {
    margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px;
    border-radius: 14px; border: 1px solid var(--hmf-line); background: var(--hmf-panel); color: #fff; cursor: pointer;
    font: inherit; text-align: left; transition: background .2s, border-color .2s, transform .15s;
}
.hmf-app[hidden] { display: none; }
.hmf-app:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.hmf-app img { border-radius: 9px; background: #fff; }
.hmf-app small { display: block; font-size: 10.5px; color: var(--hmf-muted); line-height: 1.2; }
.hmf-app strong { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.hmf-app i { margin-left: 6px; color: var(--hmf-red-soft); }

.hmf-col h3 {
    font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #fff;
    margin-bottom: 18px;
}
.hmf-col li + li { margin-top: 11px; }
.hmf-col a { font-size: 14px; color: var(--hmf-muted); display: inline-flex; align-items: center; gap: 0; }
.hmf-col nav a, .hmf-col ul a { position: relative; }
.hmf-col a:hover { color: #fff; }
.hmf-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.hmf-contact li + li { margin-top: 14px; }
.hmf-contact i {
    width: 32px; height: 32px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(190, 22, 34, 0.14); color: var(--hmf-red-soft); font-size: 13px;
}
.hmf-contact span { padding-top: 5px; line-height: 1.55; }
.hmf-contact a { color: #c3c8d4; }

/* ── Bottom bar ── */
.hmf-bottom {
    display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
    padding: 22px 0 26px; border-top: 1px solid var(--hmf-line);
    font-size: 12.5px; color: var(--hmf-dim);
}
.hmf-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.hmf-legal a { color: var(--hmf-muted); }
.hmf-bottom .hmf-credit { margin-left: auto; }   /* beats ".hmf p { margin: 0 }" */
.hmf-credit a { color: var(--hmf-red-soft); font-weight: 700; }
.hmf-credit a:hover { color: #fff; }
.hmf-top {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hmf-line); background: var(--hmf-panel);
    color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
    transition: background .2s, transform .2s, border-color .2s;
}
.hmf-top:hover { background: var(--hmf-red); border-color: var(--hmf-red); transform: translateY(-2px); }
.hmf a:focus-visible, .hmf button:focus-visible { outline: 2px solid var(--hmf-blue); outline-offset: 3px; border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hmf-grid { grid-template-columns: 1fr 1fr 1fr; }
    .hmf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: start; }
    .hmf-brand .hmf-logo { grid-row: span 2; }
    .hmf-about { margin-top: 0; max-width: none; }
    .hmf-social, .hmf-app { grid-column: 2; margin-top: 8px; }
    .hmf-contact { grid-column: span 3; }
    .hmf-contact ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
    .hmf-contact li + li { margin-top: 0; }
}
@media (max-width: 760px) {
    .hmf { margin-top: 44px; }
    .hmf-wrap { padding: 0 20px; }
    .hmf-cta { grid-template-columns: 1fr; gap: 20px; padding: 36px 0 30px; text-align: center; }
    .hmf-eyebrow { justify-content: center; }
    .hmf-news button { flex: 1 1 100%; justify-content: center; }
    .hmf-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 34px 0 30px; }
    .hmf-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .hmf-about { margin-top: 14px; }
    .hmf-social { justify-content: center; }
    .hmf-col:not(.hmf-contact) h3 { margin-bottom: 14px; }
    .hmf-contact { grid-column: 1 / -1; }
    .hmf-contact ul { grid-template-columns: 1fr; }
    .hmf-bottom { flex-direction: column; text-align: center; gap: 10px; padding-bottom: 24px; }
    .hmf-legal { justify-content: center; }
    .hmf-bottom .hmf-credit { margin-left: 0; }
    .hmf-top { order: -1; }
}
@media (max-width: 380px) {
    .hmf-grid { grid-template-columns: 1fr; }
    .hmf-col:not(.hmf-contact) { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .hmf *, .hmf *::before { transition: none !important; }
}
