/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  background: var(--stone);
  color: var(--slate-900);
  overflow: hidden;
  padding-top: calc(var(--safe-top) + var(--nav-h) + 2rem);
}

.page-hero.has-image {
  min-height: 48vh;
  color: var(--white);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero.has-image .page-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 20, 23, 0.78), rgba(196, 164, 132, 0.22));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) 0 var(--space-12);
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}

.page-hero.has-image h1 {
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--pink);
}

.page-hero.has-image .eyebrow {
  color: var(--pink-soft);
}

.page-hero p {
  max-width: 34rem;
  color: var(--slate-500);
  font-size: 1rem;
  font-weight: 300;
  margin: 0;
}

.page-hero.has-image p {
  color: rgba(255, 255, 255, 0.85);
}

/* Sections */
.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.bg-white {
  background: var(--white);
}

.bg-blush {
  background: var(--stone);
}

.bg-stone {
  background: var(--stone);
}

.bg-slate {
  background: var(--slate-50);
}

.bg-dark {
  background: var(--dark);
  color: var(--white);
}

.bg-pink,
.bg-accent {
  background: var(--accent);
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-16);
}

.section-head .lead {
  margin-top: var(--space-2);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.grid-4,
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--slate-800);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 var(--space-3);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 500;
  margin: 0 0 var(--space-5);
}

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

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  font-size: 0.8125rem;
  transition: color var(--ease);
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--pink-soft);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 0.75rem;
  color: var(--slate-500);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a:hover {
  color: var(--white);
}

/* Trust / stats */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-top: 1px solid rgba(196, 164, 132, 0.2);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
}

.trust-item .trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2rem);
  color: var(--slate-900);
  margin: 0;
}

.trust-item .trust-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin: var(--space-1) 0 0;
}

/* Mobile bottom icon dock */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(243, 235, 227, 0.95);
  box-shadow: 0 -10px 30px rgba(196, 164, 132, 0.1);
}

@media (min-width: 1100px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.35rem;
  padding: 0.35rem 0.2rem;
  border-radius: 1rem;
  color: var(--slate-500);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.bottom-nav a:hover,
.bottom-nav a:active {
  color: var(--pink);
  background: var(--stone);
}

.bottom-nav a.is-active {
  color: var(--pink);
}

.bottom-nav a.is-active .bn-ico {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(196, 164, 132, 0.35);
  transform: translateY(-2px);
}

.bn-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-50);
  color: var(--pink);
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.bn-ico img {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.bottom-nav a.is-active .bn-ico img,
.bottom-nav a.bn-book .bn-ico img {
  filter: brightness(0) invert(1);
}

.bottom-nav a.bn-book .bn-ico {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(196, 164, 132, 0.28);
}

.bottom-nav a.bn-book {
  color: var(--pink);
  font-weight: 600;
}

.bottom-nav a.bn-book.is-active .bn-ico {
  background: var(--pink-dark);
}

body.has-bottom-nav {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1100px) {
  body.has-bottom-nav {
    padding-bottom: 0;
  }
}

/* legacy alias */
.sticky-book {
  display: none !important;
}
