/* 
   Footer
   Self-contained flexbox layout. Depends on design tokens in style.css.
    
/* --------------------------------------------------------------------------
   1. Frame & container
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   2. Dividers
   -------------------------------------------------------------------------- */

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   3. Main row — brand (left ~22%) + nav columns (right ~78%)
   -------------------------------------------------------------------------- */

.footer-main {
  display: flex;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 40px;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   4. Brand cell (logo + hours + address)
   -------------------------------------------------------------------------- */

.footer-brand-cell {
  flex: 0 0 22%;
  max-width: 22%;
  padding-right: 30px;
  box-sizing: border-box;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 120px;
}

img.footer-logo {
  object-fit: contain;
  object-position: left top;
}

.footer-logo-svg {
  color: var(--color-white);
}

.footer-logo-svg :where(path, rect, circle, ellipse, line, polyline, polygon):not([fill='none']) {
  fill: currentColor !important;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--color-white);
}

/* Info block (hours + address) under the logo */
.footer-info {
  margin-top: 40px;
}

.footer-info-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-white);
}

.footer-info-line:last-child {
  margin-bottom: 0;
}

.footer-info-line address {
  font-style: normal;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. Nav columns — inner flex row
   -------------------------------------------------------------------------- */

.footer-cols-cell {
  flex: 0 0 78%;
  max-width: 78%;
  padding-left: 10px;
  box-sizing: border-box;
}

.footer-cols {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-col {
  flex: 1 1 0%;
  min-width: 0;
  padding-right: 24px;
  box-sizing: border-box;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-col-contact {
  flex: 0 0 auto;
  padding-right: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col-head {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 23.4px;
  color: var(--color-lime);
  margin: 5px 0 18px;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-col-links li {
  margin: 0;
}

.footer-col-links a {
  display: flex;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 30px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity var(--duration-fast) ease;
}

.footer-col-links a:hover,
.footer-col-links a:focus {
  opacity: 0.6;
}

/* Contact lines (phone / email) — icon + text always on one row */
.footer-contact-list {
  margin-top: 4px;
}

.footer-contact-list li {
  margin-bottom: 10px;
  line-height: 0;
}

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-contact-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  line-height: 1 !important;
}

.footer-contact-line span {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.footer-ic,
.footer-ic-lg {
  flex: 0 0 auto;
  display: block;
  color: var(--color-lime);
}

.footer-ic {
  width: auto;
  height: auto;
}

.footer-ic-lg {
  width: auto;
  height: auto;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   6. Follow-us + socials
   -------------------------------------------------------------------------- */

.footer-follow {
  display: block;
  width: 100%;
  margin-top: 28px;
}

.footer-follow-head {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 23.4px;
  color: var(--color-white);
  margin: 0 0 16px;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-socials li {
  margin: 0;
}

.footer-social {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--color-lime);
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.footer-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-social:hover,
.footer-social:focus {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Privacy + copyright
   -------------------------------------------------------------------------- */

.footer-privacy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 18.2px;
  color: var(--color-white);
  max-width: 560px;
  padding: 24px 0 20px;
}

.footer-privacy a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color var(--duration-fast);
}

.footer-privacy a:hover {
  border-bottom-color: var(--color-lime);
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 15.6px;
  color: rgba(195, 195, 195, 0.5);
  text-align: left;
  padding: 0 0 28px;
}

.footer-copyright p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */

/* ── Large-down (< 1200px) ── */
@media screen and (max-width: 1199px) {
  .footer-logo {
    max-width: 180px;
  }

  .footer-brand-cell {
    flex: 0 0 28%;
    max-width: 28%;
  }

  .footer-cols-cell {
    flex: 0 0 72%;
    max-width: 72%;
  }
}

/* ── Tablet (< 1024px) ──
   Brand goes full-width on top.
   Nav columns become a 2×2 grid.
   ──────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
  .footer-main {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  /* Brand: full width row on top */
  .footer-brand-cell {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* Logo on the left, info on the right on tablet */
  .footer-logo-link,
  .footer-logo-text {
    flex: 0 0 auto;
  }

  .footer-info {
    margin-top: 0;
    margin-left: 40px;
    flex: 1 1 auto;
  }

  /* Nav columns: full-width, 2-col grid */
  .footer-cols-cell {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 0;
  }

  .footer-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 20px;
    margin-bottom: 28px;
  }

  .footer-col-contact {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
  }

  .footer-col-head {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .footer-social {
    width: 38px;
    height: 38px;
  }

  .footer-contact-line span {
    white-space: normal;
    word-break: break-word;
  }
}

/* ── Mobile (< 640px) ──
   Everything stacks into a single column.
   Larger touch targets, comfortable reading sizes.
   ──────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 639px) {
  .footer-main {
    flex-direction: column;
    padding-top: 32px;
    padding-bottom: 20px;
  }

  /* Brand cell: stack logo above info */
  .footer-brand-cell {
    flex: 0 0 100%;
    max-width: 100%;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .footer-logo {
    max-width: 170px;
    max-height: 80px;
  }

  .footer-info {
    margin-left: 0;
    margin-top: 28px;
  }

  .footer-info-line {
    font-size: 13px;
    gap: 10px;
    margin-bottom: 12px;
  }

  .footer-ic-lg {
    width: 20px;
    height: 21px;
  }

  /* Nav columns: 2-column grid on mobile too */
  .footer-cols-cell {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 0;
  }

  .footer-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 16px;
    margin-bottom: 24px;
  }

  .footer-col-contact {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .footer-col-head {
    font-size: 15px;
    margin: 0 0 12px;
  }

  .footer-col-links li {
    margin-bottom: 9px;
  }

  .footer-col-links li:last-child {
    margin-bottom: 0;
  }

  .footer-col-links a {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Contact: icon + text on same line, wrap allowed for long emails */
  .footer-contact-line {
    min-height: 40px; /* touch target */
    gap: 8px;
  }

  .footer-contact-line span {
    white-space: normal;
    word-break: break-all;
    font-size: 13px;
  }

  .footer-ic {
    width: 20px;
    height: 20px;
  }

  /* Follow + socials */
  .footer-follow {
    margin-top: 24px;
  }

  .footer-follow-head {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-social {
    width: 24px;
    height: 24px;
  }

  /* Privacy + copyright */
  .footer-privacy {
    max-width: none;
    padding: 20px 0 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-copyright {
    font-size: 11px;
    line-height: 1.5;
    padding: 0 0 24px;
  }
}

/* ── Small mobile (< 480px) ──
  Two-column nav, tighter spacing.
   ──────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 479px) {
  .footer-main {
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .footer-logo {
    max-width: 150px;
    max-height: 70px;
  }

  .footer-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 12px;
    margin-bottom: 20px;
  }

  .footer-col-contact {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-col-head {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .footer-col-links a {
    font-size: 13px;
    line-height: 1.35;
  }

  .footer-contact-line span {
    font-size: 12px;
  }

  .footer-social {
    width: 22px;
    height: 22px;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-privacy {
    padding: 16px 0 12px;
    font-size: 12px;
  }

  .footer-copyright {
    font-size: 10px;
    padding: 0 0 20px;
    line-height: 1.6;
  }
}
