/* 
  Professional Footer — Shahin Accounting
  Desktop-optimized 4-widget grid (brand | nav | tracks | contact)
*/

.site-footer {
  background: linear-gradient(135deg, #0e2b4a 0%, #0a1f38 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -45%;
  left: 8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(193, 159, 91, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -28%;
  right: 4%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(193, 159, 91, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Desktop: balanced 4-column widget layout */
.footer-shell {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 0.9fr)
    minmax(0, 1.05fr)
    minmax(0, 1fr);
  column-gap: clamp(1.5rem, 2.5vw, 2.75rem);
  row-gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-brand,
.footer-nav,
.footer-tracks,
.footer-contact {
  min-width: 0;
}

/* Brand widget */
.footer-brand {
  text-align: right;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(193, 159, 91, 0.18);
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.footer-brand__logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(193, 159, 91, 0.1);
  padding: 0.45rem;
  border: 1px solid rgba(193, 159, 91, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
}

.footer-brand__logo img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193, 159, 91, 0.2);
}

.footer-brand__title {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.footer-brand__subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(193, 159, 91, 0.95);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.footer-brand__description {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 1rem 0 0;
  max-width: 28ch;
}

.footer-brand__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-brand__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer-brand__btn--primary {
  background: linear-gradient(135deg, #c19f5b 0%, #a88b4a 100%);
  color: #0e2b4a;
  box-shadow: 0 4px 14px rgba(193, 159, 91, 0.28);
}

.footer-brand__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(193, 159, 91, 0.38);
}

.footer-brand__btn--secondary {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand__btn i,
.footer-brand__btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

/* Shared widget headings — aligned baseline across columns */
.footer-nav__heading,
.footer-tracks__heading,
.footer-contact__heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(193, 159, 91, 0.95);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(193, 159, 91, 0.12);
  line-height: 1.4;
}

/* Nav widget */
.footer-nav__list,
.footer-tracks__list,
.footer-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-nav__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 0.45rem 0.35rem 0.45rem 0;
  border-radius: 8px;
  transition: color 0.2s ease, padding 0.2s ease, background 0.2s ease;
  position: relative;
  background: transparent;
  border: 0;
  min-height: 0;
}

.footer-nav__link::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #c19f5b, transparent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.footer-nav__link:hover {
  color: #c19f5b;
  padding-right: 0.55rem;
  background: transparent;
  border: 0;
}

.footer-nav__link:hover::before {
  width: 10px;
}

.footer-nav__link i,
.footer-nav__link svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
  flex-shrink: 0;
  display: block;
}

/* Tracks widget */
.footer-tracks__list {
  gap: 0.35rem;
}

.footer-tracks__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  line-height: 1.45;
}

.footer-tracks__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #c19f5b;
  transform: translateX(3px);
}

.footer-tracks__icon,
.footer-tracks__item > i,
.footer-tracks__item > svg {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  color: rgba(193, 159, 91, 0.75);
  stroke: currentColor;
  flex-shrink: 0;
  display: block;
  transition: color 0.2s ease;
}

.footer-tracks__item:hover .footer-tracks__icon,
.footer-tracks__item:hover > svg {
  color: #c19f5b;
}

/* Contact widget */
.footer-contact__list {
  gap: 0.75rem;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.footer-contact__item:hover {
  transform: translateX(3px);
}

.footer-contact__icon,
.footer-contact__item > i,
.footer-contact__item > svg {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: rgba(193, 159, 91, 0.75);
  stroke: currentColor;
  flex-shrink: 0;
  display: block;
  transition: color 0.2s ease;
}

.footer-contact__item:hover .footer-contact__icon,
.footer-contact__item:hover > svg {
  color: #c19f5b;
}

.footer-contact__content {
  flex: 1;
  min-width: 0;
}

.footer-contact__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(193, 159, 91, 0.9);
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.footer-contact__value {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact__value:hover {
  color: #c19f5b;
}

.footer-contact__value--email {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.78rem;
  direction: ltr;
  text-align: right;
}

/* Social */
.footer-social {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(193, 159, 91, 0.12);
}

.footer-social__link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social__link svg,
.footer-social__link i {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: currentColor;
  stroke: none;
}

.footer-social__link .lucide,
.footer-social__link [data-lucide],
.footer-social__link svg[data-lucide] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-social__link:hover {
  background: rgba(193, 159, 91, 0.15);
  color: #c19f5b;
  border-color: rgba(193, 159, 91, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 159, 91, 0.2);
}

/* Bottom bar — mobile-first */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(14, 43, 74, 0.55);
  position: relative;
  z-index: 2;
}

.footer-bottom__shell {
  padding: 0.85rem 0;
}

.footer-bottom__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.footer-bottom__copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding-inline: 0.5rem;
}

.footer-bottom__divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 159, 91, 0.35), transparent);
}

.footer-bottom__tagline {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* =========================================================
   MOBILE-FIRST FOOTER WIDGETS (< lg)
   ========================================================= */
.footer-mobile {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.footer-mobile__inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 28rem;
  margin-inline: auto;
}

.footer-mobile__brand {
  text-align: center;
}

.footer-mobile__logo {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 15px;
  background: rgba(193, 159, 91, 0.1);
  border: 1px solid rgba(193, 159, 91, 0.22);
  padding: 0.35rem;
  object-fit: contain;
  display: block;
}

.footer-mobile__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.footer-mobile__subtitle {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(193, 159, 91, 0.95);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.footer-mobile__desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0.75rem auto 0;
  max-width: 22rem;
}

/* Quick actions — thumb-friendly */
.footer-mobile__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.footer-m-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.25rem;
  padding: 0.75rem 0.35rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-m-action span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-m-action i,
.footer-m-action svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #c19f5b;
  display: block;
}

.footer-m-action--primary {
  background: #c19f5b;
  border-color: #c19f5b;
  color: #0e2b4a;
}

.footer-m-action--primary i,
.footer-m-action--primary svg {
  color: #0e2b4a;
}

.footer-m-action:active {
  transform: scale(0.97);
}

/* Widget sections */
.footer-mobile__widget {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-mobile__heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(193, 159, 91, 0.95);
  letter-spacing: 0.08em;
}

.footer-mobile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-chip:active {
  background: rgba(193, 159, 91, 0.18);
  border-color: rgba(193, 159, 91, 0.45);
  color: #c19f5b;
}

/* Tracks — 2-col compact cards */
.footer-mobile__tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.footer-mobile__track {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.footer-mobile__track i,
.footer-mobile__track svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: rgba(193, 159, 91, 0.85);
  flex-shrink: 0;
  display: block;
}

/* Contact cards — full-width tap targets */
.footer-mobile__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-m-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.8rem 0.95rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-m-contact:active {
  transform: scale(0.985);
  border-color: rgba(193, 159, 91, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.footer-m-contact__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: rgba(193, 159, 91, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-m-contact__icon i,
.footer-m-contact__icon svg {
  width: 1rem;
  height: 1rem;
  color: #c19f5b;
  display: block;
}

.footer-m-contact__body {
  min-width: 0;
  flex: 1;
}

.footer-m-contact__label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.15rem;
}

.footer-m-contact__value {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-m-contact__value--wrap {
  white-space: normal;
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Social on mobile */
.footer-mobile__social {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.footer-mobile__social .footer-social__link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
}

/* Desktop bottom bar row */
@media (min-width: 1024px) {
  .footer-bottom__shell {
    padding: 0.95rem 0;
  }

  .footer-bottom__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
  }

  .footer-bottom__divider {
    display: none;
  }

  .footer-bottom__copyright {
    font-size: 0.75rem;
    padding-inline: 0;
  }

  .footer-bottom__tagline {
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

/* Wide desktop */
@media (min-width: 1400px) {
  .footer-shell {
    column-gap: 3rem;
  }
}

/* Fallback if desktop shell ever shows below lg */
@media (max-width: 1023px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }

  .footer-brand__logo {
    justify-content: center;
  }

  .footer-brand__description {
    margin-left: auto;
    margin-right: auto;
    max-width: 36ch;
  }

  .footer-brand__actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .footer-brand__btn {
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav__list,
  .footer-tracks__list,
  .footer-contact__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
