/* Homepage-specific styles — Northbury Publishing editorial redesign
   Import style-homepages-default.css first */

/* ============================================================
   Scroll margin overrides
============================================================ */
#home { scroll-margin-top: 0; }
#mission,
#digital-tools,
#books,
#why-choosing-us { scroll-margin-top: 80px; }

/* ============================================================
   Hero — Split-panel editorial
============================================================ */
.hero-split {
  height: 88vh;
  min-height: 560px;
  display: flex;
  overflow: hidden;
}

.hero-split__left {
  flex: 0 0 55%;
  background-color: var(--nb-dark-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
}

.hero-split__right {
  flex: 0 0 45%;
  background-color: var(--nb-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.hero-split__eyebrow {
  display: block;
  font-family: var(--default-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nb-gold);
  margin-bottom: 1.25rem;
}

.hero-split__headline {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-split__sub {
  font-family: var(--default-font);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.hero-split__cta {
  display: inline-block;
  font-family: var(--default-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nb-dark-green);
  background-color: var(--nb-gold);
  padding: 14px 32px;
  text-decoration: none;
  transition: background-color 0.25s ease;
  align-self: flex-start;
}

.hero-split__cta:hover {
  background-color: var(--nb-light-gold, #E8C84A);
  color: var(--nb-dark-green);
}

.hero-split__book-img {
  max-width: 80%;
  max-height: 70vh;
  object-fit: contain;
  margin-left: -10%;
  filter: drop-shadow(-12px 16px 32px rgba(0, 0, 0, 0.35));
}

@media (max-width: 767px) {
  .hero-split {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .hero-split__left {
    flex: none;
    padding: 3rem 1.5rem;
    min-height: 50vh;
  }
  .hero-split__right {
    flex: none;
    min-height: 260px;
    overflow: hidden;
  }
  .hero-split__book-img {
    max-width: 55%;
    margin-left: 0;
  }
  .hero-split__cta {
    align-self: auto;
  }
}

/* ============================================================
   Digital Tools — Chapter tab navigation
============================================================ */
.tools-chapter {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-top: 2.5rem;
}

.tools-chapter__nav {
  flex: 0 0 28%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2rem;
}

.tools-chapter__nav .nav-link {
  display: block;
  padding: 1.25rem 0;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
  font-family: var(--default-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
}

.tools-chapter__nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
  border-left-color: rgba(201, 162, 39, 0.4);
}

.tools-chapter__nav .nav-link.active {
  border-left-color: var(--nb-gold);
  color: #ffffff;
}

.tools-chapter__nav .tab-num {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
  transition: color 0.25s ease;
}

.tools-chapter__nav .nav-link.active .tab-num {
  color: rgba(201, 162, 39, 0.4);
}

.tools-chapter__content {
  flex: 1;
  padding-left: 3rem;
}

.tools-chapter__content .tab-pane h3 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  margin-top: 0;
}

.tools-chapter__content .tab-pane p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.tools-chapter__content .tab-pane img {
  border-radius: 4px;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .tools-chapter {
    flex-direction: column;
  }
  .tools-chapter__nav {
    display: flex;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 2rem;
    gap: 0;
  }
  .tools-chapter__nav .nav-link {
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
  }
  .tools-chapter__nav .nav-link:hover {
    border-left-color: transparent;
    border-bottom-color: rgba(201, 162, 39, 0.4);
  }
  .tools-chapter__nav .nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--nb-gold);
  }
  .tools-chapter__nav .tab-num {
    font-size: 1rem;
    display: inline;
    margin-right: 0.3rem;
    margin-bottom: 0;
  }
  .tools-chapter__content {
    padding-left: 0;
  }
}

/* ============================================================
   Books — Featured editorial layout
============================================================ */
.book-featured {
  padding: 80px 0;
  background-color: var(--nb-cream);
}

.book-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.book-featured__cover-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.book-featured__cover {
  max-width: 85%;
  filter: drop-shadow(0 20px 40px rgba(26, 60, 52, 0.25));
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.book-featured__cover:hover {
  transform: rotate(0deg) scale(1.02);
}

.book-featured__label {
  display: block;
  font-family: var(--default-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--nb-gold);
  margin-bottom: 1rem;
}

.book-featured__title {
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--nb-dark-green);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.book-featured__desc {
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 300;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.book-featured__meta {
  font-family: var(--default-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-dark-green);
  opacity: 0.55;
  margin-bottom: 2rem;
}

.book-featured__cta {
  display: inline-block;
  font-family: var(--default-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--nb-dark-green);
  padding: 14px 36px;
  text-decoration: none;
  transition: background-color 0.25s ease;
  margin-bottom: 2.5rem;
  display: inline-block;
}

.book-featured__cta:hover {
  background-color: var(--nb-green);
  color: #ffffff;
}

.book-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-features__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid rgba(26, 60, 52, 0.22);
  font-family: var(--default-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nb-dark-green);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.book-features__pill:hover {
  border-color: var(--nb-green);
  background-color: rgba(46, 125, 82, 0.06);
  color: var(--nb-dark-green);
}

.book-features__pill i {
  font-size: 13px;
  color: var(--nb-green);
}

@media (max-width: 767px) {
  .book-featured__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .book-featured__cover-wrap {
    justify-content: center;
  }
  .book-featured__cover {
    max-width: 60%;
    transform: none;
  }
  .book-featured__cover:hover {
    transform: none;
  }
}

/* ============================================================
   Why Northbury — Stats strip + editorial columns
============================================================ */
.why-northbury {
  background-color: var(--nb-dark-green);
  padding: 80px 0;
}

.stats-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 4rem;
}

.stats-strip__item {
  flex: 1;
  text-align: center;
}

.stats-strip__number {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--nb-gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stats-strip__label {
  font-family: var(--default-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

.editorial-grid {
  columns: 2;
  column-gap: 4rem;
}

.editorial-grid__item {
  break-inside: avoid;
  margin-bottom: 2.5rem;
}

.editorial-grid__heading {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.editorial-grid__text {
  font-family: var(--default-font);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .stats-strip {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stats-strip__item {
    flex: 0 0 calc(50% - 12px);
  }
  .editorial-grid {
    columns: 1;
  }
}

/* ============================================================
   Footer — 3-column editorial
============================================================ */
.footer-editorial {
  background-color: var(--nb-dark-green);
  padding: 64px 0 0;
}

.footer-editorial__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-editorial__logo {
  max-height: 42px;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-editorial__tagline {
  font-family: var(--default-font);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 260px;
}

.footer-editorial__social {
  display: flex;
  gap: 16px;
}

.footer-editorial__social a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-editorial__social a:hover {
  color: var(--nb-gold);
}

.footer-editorial__heading {
  font-family: var(--default-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nb-gold);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-editorial__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-editorial__links li {
  margin-bottom: 0.6rem;
}

.footer-editorial__links a {
  font-family: var(--default-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-editorial__links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-editorial__contact-label {
  font-family: var(--default-font);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-editorial__contact-label a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-editorial__contact-label a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-editorial__bottom {
  border-top: 1px solid rgba(248, 245, 238, 0.12);
  padding: 20px 0;
}

.footer-editorial__copy {
  font-family: var(--default-font);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

@media (max-width: 767px) {
  .footer-editorial__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
