/* ============================================
   HOORAN FOOTER — Responsive Edition
   ============================================ */

.hf-footer,
.hf-footer *,
.hf-footer *::before,
.hf-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hf-footer {
  position: relative;
  width: 100%;
  direction: rtl;
  font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
  background: #080604;
}

/* ══ Hero ══════════════════════════════════════════════ */
.hf-hero {
  position: relative;
  width: 100%;
  height: clamp(280px, 36vw, 440px);
  overflow: hidden;
}

.hf-footer .hf-hero-img,
.hf-hero-img {
  width: 100%   !important;
  height: 100%  !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 40% !important;
  display: block !important;
  filter: brightness(.72) saturate(.88);
}

.hf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8,6,4,.08) 0%,
    rgba(8,6,4,.22) 35%,
    rgba(8,6,4,.78) 75%,
    rgba(8,6,4,1)  100%
  );
  pointer-events: none;
}

/* ── Topbar (logo + tagline) ────────────────────────── */
.hf-hero-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: clamp(14px, 2.5vw, 26px) clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hf-footer .hf-logo-img,
.hf-logo-img {
  width: 52px  !important;
  height: 52px !important;
  max-width: 52px !important;
  border-radius: 12px;
  object-fit: contain !important;
  flex-shrink: 0;
}

.hf-logo-name {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(244,234,217,.9);
  letter-spacing: .02em;
}

.hf-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(201,169,110,.85);
  letter-spacing: .22em;
  direction: ltr;
  text-shadow: 0 1px 14px rgba(0,0,0,.9);
}

/* ── Menu bar (overlaid on bottom of hero) ──────────── */
.hf-menu-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 clamp(18px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hf-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.hf-menu-col {
  padding: clamp(12px, 1.8vw, 18px) 0;
}

.hf-menu-col:not(:last-child) {
  border-left: 1px solid rgba(255,255,255,.07);
  padding-left: clamp(14px, 2.5vw, 32px);
}

.hf-menu-col:not(:first-child) {
  padding-right: clamp(14px, 2.5vw, 32px);
}

.hf-menu-col-title {
  font-size: 10px;
  letter-spacing: .26em;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.hf-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hf-menu-links a {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: color .25s, padding-right .25s;
}

.hf-menu-links a:hover {
  color: rgba(201,169,110,.9);
  padding-right: 4px;
}

.hf-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-family: 'IRANSans', 'Vazirmatn', sans-serif;
  cursor: pointer;
  text-decoration: none;
  direction: rtl;
  transition: border-color .3s, color .3s, background .3s;
}

.hf-send-btn:hover {
  border-color: rgba(201,169,110,.5);
  color: #C9A96E;
  background: rgba(201,169,110,.08);
}

/* ══ Typography strip ══════════════════════════════════ */
.hf-typo-wrap {
  position: relative;
  overflow: hidden;
  height: clamp(70px, 12vw, 140px);
  background: #080604;
}

.hf-typo-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.hf-typo-text {
  position: absolute;
  bottom: -.18em;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 700;
  letter-spacing: -.02em;
  direction: ltr;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,.15);
}

.hf-typo-text.hf-typo-img {
  -webkit-text-stroke: 0;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: cover;
  background-position: center 40%;
}

/* ══ Bottom bar ════════════════════════════════════════ */
.hf-bottom-bar {
  padding: 14px clamp(18px, 4vw, 40px) 20px;
  border-top: 1px solid rgba(201,169,110,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #080604;
  flex-wrap: wrap;
  text-align: center;
}

.hf-copy {
  font-size: 11px;
  color: rgba(180,165,140,.35);
  font-weight: 300;
  direction: rtl;
}

.hf-credit {
  font-size: 11px;
  color: rgba(180,165,140,.28);
  direction: ltr;
  letter-spacing: .04em;
  white-space: nowrap;
}

.hf-credit a {
  color: rgba(201,169,110,.5);
  text-decoration: none;
  transition: color .3s;
}

.hf-credit a:hover { color: #C9A96E; }

/* ══ Responsive ════════════════════════════════════════ */

/* tablet */
@media (max-width: 900px) {
  .hf-hero {
    height: clamp(320px, 55vw, 440px);
  }
}

/* موبایل — menu همیشه ۳ ستون */
@media (max-width: 680px) {
  .hf-hero {
    height: clamp(360px, 80vw, 480px);
  }

  /* ۳ ستون همیشه — فقط فشرده‌تر */
  .hf-menu-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }

  .hf-menu-col {
    padding: 10px 0;
  }

  .hf-menu-col:not(:last-child) {
    padding-left: clamp(8px, 2vw, 18px);
  }

  .hf-menu-col:not(:first-child) {
    padding-right: clamp(8px, 2vw, 18px);
  }

  .hf-menu-col-title {
    font-size: 9px;
    letter-spacing: .14em;
    margin-bottom: 6px;
  }

  .hf-menu-links {
    gap: 3px;
  }

  .hf-menu-links a {
    font-size: 11px;
  }

  .hf-send-btn {
    font-size: 10px;
    padding: 5px 10px;
    margin-top: 8px;
  }

  .hf-tagline {
    display: none;
  }

  .hf-logo-img,
  .hf-footer .hf-logo-img {
    width: 42px  !important;
    height: 42px !important;
    max-width: 42px !important;
  }

  .hf-logo-name {
    font-size: 14px;
  }

  .hf-typo-wrap {
    height: clamp(50px, 14vw, 90px);
  }

  .hf-bottom-bar {
    flex-direction: column;
    gap: 5px;
  }
}

/* موبایل کوچک */
@media (max-width: 400px) {
  .hf-hero {
    height: clamp(380px, 95vw, 480px);
  }

  .hf-menu-col-title {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .hf-menu-links a {
    font-size: 10px;
  }

  .hf-send-btn {
    display: none; /* فضا کمه، مخفی کن */
  }

  .hf-logo-img,
  .hf-footer .hf-logo-img {
    width: 36px  !important;
    height: 36px !important;
    max-width: 36px !important;
  }

  .hf-logo-name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-footer *,
  .hf-footer *::before,
  .hf-footer *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
