/*
 * Theme Name:  SpindleStack — Pine Belt Global
 * Template:    spindlestack
 * Description: Pine Belt Global child theme for the SpindleStack Loom system.
 * Version:     1.0.1
 * Author:      SpindleStack
 */

/*
 * Nav and footer CSS vars — Pine Belt brand.
 * Full design system lives in _source/css/style.css (loaded last via loom-pinebelt).
 */

:root {
  --nav-bg: #033F1D;
  --nav-text: #F7F0E3;
  --nav-accent: #C9973A;
  --nav-logo-height: 80px;
  --footer-bg: #021A0C;
  --footer-text: #F7F0E3;
  --footer-link: rgba(247, 240, 227, 0.7);
  --footer-heading: #C9973A;
}

/* Nav — theme-level overrides using brand vars */
.site-header:not(.scrolled) {
  background: transparent;
}

.site-header.scrolled {
  background: transparent;
}

.nav-utility-bar {
  color: var(--nav-text);
}

.nav-contact-link,
.nav-contact-link span {
  color: var(--nav-text);
  text-decoration: none;
}

.nav-contact-link:hover,
.nav-contact-link:focus {
  color: var(--nav-accent);
  text-decoration: none;
}

.site-header.scrolled .site-header__nav .nav-link {
  color: var(--nav-text);
  text-decoration: none;
}

.site-header.scrolled .site-header__nav .nav-link:hover,
.site-header.scrolled .site-header__nav .nav-link:focus {
  color: var(--nav-accent);
  text-decoration: none;
}

.site-header.scrolled .site-header__nav .nav-link.active {
  color: var(--nav-accent);
  text-decoration: none;
}

.site-header.scrolled .site-header__nav .nav-link::after {
  background: var(--nav-accent);
}

.site-header__logo-img {
  max-height: var(--nav-logo-height);
}

/* Footer — .site-footer matches footer.php; .ss-footer alias for starter parity */
.site-footer,
.ss-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  padding: 60px 0 0;
}

.site-footer .footer-grid,
.ss-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.25fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

.site-footer .footer-col-label,
.site-footer .footer-col-heading,
.ss-footer .footer-col-heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 16px;
}

.site-footer .footer-col a,
.site-footer .footer-links a,
.ss-footer .footer-col a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.site-footer .footer-col a:hover,
.site-footer .footer-links a:hover,
.ss-footer .footer-col a:hover {
  color: var(--footer-text);
}

.site-footer .footer-tagline,
.ss-footer .footer-tagline {
  font-size: 0.875rem;
  color: rgba(247, 240, 227, 0.6);
  margin-top: 8px;
  line-height: 1.5;
}

.site-footer .footer-contact a,
.ss-footer .footer-contact a {
  color: rgba(247, 240, 227, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 6px;
}

.site-footer .footer-bottom,
.ss-footer .footer-bar {
  border-top: 1px solid rgba(247, 240, 227, 0.1);
  margin-top: 48px;
  padding: 20px 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(247, 240, 227, 0.45);
}

.site-footer .footer-bottom a,
.ss-footer .footer-bar a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-bottom .footer-credit {
  font-size: inherit;
  opacity: inherit;
}

/* Mobile nav drawer — no box shadow per Pine Belt spec; smooth open/close */
@media (max-width: 991.98px) {
  .site-header__logo {
    padding-left: 0.75rem;
  }

  .site-header__nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .site-header__nav .navbar-collapse.collapse {
    display: grid !important;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    margin-top: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    pointer-events: none;
    transition:
      grid-template-rows 0.28s ease-out,
      opacity 0.25s ease-out,
      margin-top 0.25s ease-out,
      padding 0.25s ease-out;
  }

  .site-header__nav .navbar-collapse.collapse > .navbar-nav {
    overflow: hidden;
    min-height: 0;
  }

  .site-header__nav .navbar-collapse.collapse.show {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.65rem !important;
    padding: 0.75rem 1rem !important;
    pointer-events: auto;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .site-header__nav .navbar-collapse.collapse {
    transition: none;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-grid,
  .ss-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 20px;
  }

  .site-footer .footer-bottom,
  .ss-footer .footer-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-grid,
  .ss-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
