/* ─────────────────────────────────────────────
   Beej Common Footer CSS
   Used by: index.html, PlaceAnOrder.html, registerbusiness.html
───────────────────────────────────────────── */

/* Required because footer is now loaded through <beej-footer></beej-footer> */
beej-footer {
  display: block;
}

.beej-footer {
  --footer-edge-space: clamp(24px, 3.5vw, 56px);
  --footer-card-space: 10px;

  background: #241007;
  color: #fffaf1;
  padding: 10px 0 8px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.beej-footer .container {
  width: auto;
  max-width: none;
  margin-left: var(--footer-edge-space);
  margin-right: var(--footer-edge-space);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  column-gap: 24px;
}

/* Keep footer brand and management as direct grid items */
.footer-top {
  display: contents;
}

/* ── Brand block ───────────────────────────── */

.footer-brand {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;

  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
}

.footer-logo {
  width: 108px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.footer-brand-copy {
  min-width: 0;
  padding-bottom: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #fffaf1;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}

.footer-sub {
  font-size: 12px;
  line-height: 1.22;
  color: rgba(255, 250, 241, 0.72);
  margin: 0;
}

/* ── Management Card ───────────────────────── */

.footer-management {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: end;

  flex-shrink: 0;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.mgmt-card {
  width: max-content;
  min-width: 0;
  max-width: none;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 20px;
  padding: 10px 12px;
  box-shadow: none !important;
}

.mgmt-card-inner {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 14px;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mgmt-avatar {
  flex: 0 0 102px;
  width: 102px;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mgmt-avatar-ring {
  width: 100px;
  height: 100px;
  padding: 0;
  border: none !important;
  border-radius: 50%;
  overflow: hidden;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mgmt-avatar::before,
.mgmt-avatar::after,
.mgmt-avatar-ring::before,
.mgmt-avatar-ring::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mgmt-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.mgmt-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  font-weight: 800;
  font-size: 22px;
  color: #e8c47d;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.mgmt-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.mgmt-name {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  color: #fffaf1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.mgmt-role {
  font-size: 9.5px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.7);
  margin-bottom: 3px;
  white-space: nowrap;
}

/* WhatsApp logo only — link remains active, no round border/background */
.mgmt-contact {
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin-top: 4px;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;

  border: none !important;
  border-radius: 0 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  color: #e8c47d;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;

  font-size: 0;
  line-height: 0;
  overflow: visible;
  transition: opacity 0.2s ease;
}

.mgmt-contact:hover {
  opacity: 0.82;
  transform: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.mgmt-contact svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  color: #e8c47d;
  flex-shrink: 0;
}

.mgmt-contact svg path {
  fill: currentColor;
}

/* ── Copyright center block ────────────────── */

.footer-bottom {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: center;

  text-align: center;
  padding: 0 0 8px;
  margin: 0;

  font-size: 10px;
  line-height: 1;
  color: rgba(255, 250, 241, 0.42);
  white-space: nowrap;
}

.footer-bottom a {
  color: rgba(255, 250, 241, 0.58);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 250, 241, 0.86);
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 900px) {
  .beej-footer {
    --footer-edge-space: 24px;
    --footer-card-space: 8px;
    padding: 10px 0 8px;
  }

  .beej-footer .container {
    display: block;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-brand {
    width: 100%;
    order: 1;
  }

  .footer-brand-copy {
    padding-bottom: 0;
  }

  .footer-management {
    width: 100%;
    order: 2;
  }

  .mgmt-card {
    width: 100%;
    min-width: 0;
  }

  .mgmt-card-inner {
    width: auto;
  }

  .footer-bottom {
    width: 100%;
    order: 3;
    padding: 2px 0 0;
    margin: 0;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .beej-footer {
    --footer-edge-space: 16px;
    --footer-card-space: 8px;
    padding: 10px 0 8px;
  }

  .footer-brand {
    align-items: center;
    gap: 12px;
  }

  .footer-logo {
    width: 88px;
  }

  .footer-tagline {
    font-size: 23px;
  }

  .footer-sub {
    font-size: 12px;
  }

  .mgmt-card {
    border-radius: 18px;
  }

  .mgmt-card-inner {
    gap: 12px;
  }

  .mgmt-avatar {
    flex-basis: 96px;
    width: 96px;
  }

  .mgmt-avatar-ring {
    width: 94px;
    height: 94px;
  }

  .mgmt-name {
    font-size: 15px;
  }

  .mgmt-role {
    font-size: 9px;
  }

  .mgmt-contact {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .mgmt-contact svg {
    width: 20px;
    height: 20px;
  }
}
