/* ==========================================================================
   TYRONEHARRISON - FOOTER
   Clean white canvas upper footer with dark typography, newsletter subscription,
   and vibrant orange sub-footer bar with social icons, copyright, and legal links.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Main Footer Wrapper
   -------------------------------------------------------------------------- */
.th-footer {
  width: 100%;
  background-color: #ffffff;
  color: var(--color-text-body, #4a4a4a);
  font-family: var(--font-body, "Inter", sans-serif);
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Upper Footer Main Section (White background)
   -------------------------------------------------------------------------- */
.th-footer-main {
  padding: 4.5rem 0 3.75rem;
  background-color: #ffffff;
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- Column 1: Brand & Newsletter --- */
.th-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.th-footer-logo-wrap {
  margin-bottom: 2rem;
}

.th-footer-logo-wrap .custom-logo-link {
  display: inline-block;
}

.th-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--transition, 0.28s ease);
}

.th-footer-logo-link:hover {
  opacity: 0.85;
}

.th-footer-logo {
  width: 200px;
  height: auto;
  display: block;
}

/* Newsletter Container */
.th-footer-newsletter {
  width: 100%;
  max-width: 390px;
}

.th-newsletter-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.th-newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ededed;
  border-radius: 14px;
  padding: 5px 5px 5px 20px;
  width: 100%;
  border: 1px solid transparent;
  transition: border-color var(--transition, 0.28s ease), box-shadow var(--transition, 0.28s ease);
}

.th-newsletter-box:focus-within {
  border-color: rgba(245, 142, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 142, 0, 0.15);
}

.th-newsletter-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  color: #222222;
  padding: 10px 8px 10px 0;
}

.th-newsletter-input::placeholder {
  color: #787878;
  opacity: 1;
  font-size: 0.84375rem;
}

.th-newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary, #f58e00);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color var(--transition, 0.28s ease), transform 0.18s ease;
}

.th-newsletter-btn:hover {
  background-color: var(--color-primary-hover, #e08000);
  transform: scale(1.03);
}

.th-newsletter-btn:active {
  transform: scale(0.97);
}

.th-newsletter-icon {
  width: 22px;
  height: 17px;
  display: block;
}

/* --- Column 2: Main Navigation --- */
.th-footer-nav-col {
  padding-top: 0.5rem;
}

.th-footer-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-footer-nav-menu li {
  margin-bottom: 1.35rem;
}

.th-footer-nav-menu li:last-child {
  margin-bottom: 0;
}

.th-footer-nav-menu a {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #555555;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.02em;
  transition: color var(--transition, 0.28s ease), transform var(--transition, 0.28s ease);
}

.th-footer-nav-menu a:hover {
  color: var(--color-primary, #f58e00);
  transform: translateX(3px);
}

/* --- Column 3: Legal & Policy Navigation --- */
.th-footer-legal-col {
  padding-top: 0.65rem;
}

.th-footer-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-footer-legal-menu li {
  margin-bottom: 1.35rem;
}

.th-footer-legal-menu li:last-child {
  margin-bottom: 0;
}

.th-footer-legal-menu a {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  color: #383838;
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition, 0.28s ease);
}

.th-footer-legal-menu a:hover {
  color: var(--color-primary, #f58e00);
}

/* --------------------------------------------------------------------------
   Sub-Footer Bottom Bar (Vibrant Orange)
   -------------------------------------------------------------------------- */
.th-footer-bottom-bar {
  background-color: var(--color-primary, #f58e00);
  padding: 0.85rem 0;
  color: #1a1a1a;
}

.th-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

/* --- Social Icons Row (Left) --- */
.th-footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.th-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.th-footer-social-img {
  height: 18px;
  width: auto;
  max-width: 20px;
  display: block;
}

/* --- Copyright Text (Center) --- */
.th-footer-copyright {
  text-align: center;
}

.th-footer-copyright p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --- Secondary Legal Links (Right) --- */
.th-footer-sublinks {
  display: flex;
  align-items: center;
}

.th-footer-sublinks-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.th-footer-sublinks-menu li {
  margin: 0;
}

.th-footer-sublinks-menu a {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.th-footer-sublinks-menu a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Design & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .th-footer-main {
    padding: 3.75rem 0 3rem;
  }

  .th-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .th-footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }

  .th-footer-bar-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }

  .th-footer-socials {
    order: 1;
  }

  .th-footer-sublinks {
    order: 2;
  }

  .th-footer-copyright {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
}

@media (max-width: 768px) {
  .th-footer-main {
    padding: 2.75rem 0 2rem;
  }

  .th-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .th-footer-brand-col {
    align-items: flex-start;
  }

  .th-footer-logo {
    width: 175px;
  }

  .th-footer-logo-wrap {
    margin-bottom: 1.25rem;
  }

  .th-footer-newsletter {
    max-width: 100%;
  }

  /* Main Navigation: 2 items per row in 2 columns */
  .th-footer-nav-col {
    padding-top: 0;
    width: 100%;
  }

  .th-footer-nav-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
  }

  .th-footer-nav-menu li {
    margin-bottom: 0;
  }

  .th-footer-nav-menu a {
    font-size: 1.15rem;
    font-weight: 700;
  }

  /* Policy Links: in a horizontal row centered with reduced font size */
  .th-footer-legal-col {
    padding-top: 0.5rem;
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .th-footer-legal-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    width: 100%;
    text-align: center;
  }

  .th-footer-legal-menu li {
    margin-bottom: 0;
  }

  .th-footer-legal-menu a {
    font-size: 0.8125rem;
    color: #555555;
  }

  /* Sub-Footer Bottom Bar */
  .th-footer-bottom-bar {
    padding: 1.25rem 0;
  }

  .th-footer-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Larger social icons on mobile */
  .th-footer-socials {
    order: 1;
    justify-content: center;
    gap: 1.75rem;
  }

  .th-footer-social-link {
    padding: 4px;
  }

  .th-footer-social-img {
    height: 25px;
    max-width: 26px;
  }

  .th-footer-copyright {
    order: 2;
    width: auto;
  }

  .th-footer-copyright p {
    white-space: normal;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .th-footer-sublinks {
    order: 3;
    justify-content: center;
  }

  .th-footer-sublinks-menu {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}
