/* ── AP Subpage (shared by business-accounting, outsourced-accounting) ── */
.page {
  background-color: rgb(237, 236, 233);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(6rem, 10vw, 10rem) 1.5rem clamp(4rem, 6vw, 6rem);
}

.page__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.page__logo {
  width: clamp(80px, 15vw, 120px);
  height: auto;
  margin-bottom: 2.5rem;
}

.page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.04em;
  color: rgb(68, 61, 52);
  margin-bottom: 0;
}

.page__rule {
  width: 60px;
  height: 1px;
  margin: 2.5rem auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(192, 168, 104) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.page__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.85;
  color: rgba(68, 61, 52, 0.85);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.page__section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: 0.06em;
  color: rgb(68, 61, 52);
  margin-bottom: 1.5rem;
}

/* Reveal animation for page text when used with data-reveal */
.page__text[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.page__text[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page with background image ───────────────────── */
.page--with-bg {
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

/* Hero variant: image stretches to cover the full section */
.page--hero {
  min-height: 100vh;
  height: auto;
}

/* Follow-on section: cream, no forced full-height */
.page--follow {
  min-height: unset;
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.page--follow + .page--follow {
  padding-top: 0;
}

.page__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.page__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 85% at center, rgba(20, 17, 12, 0.58) 0%, rgba(20, 17, 12, 0.32) 45%, rgba(20, 17, 12, 0.12) 75%, transparent 95%),
    linear-gradient(180deg, rgb(237, 236, 233) 0%, rgba(237, 236, 233, 0) 8%, transparent 20%, transparent 80%, rgba(230, 229, 225, 0) 92%, rgb(230, 229, 225) 100%);
}

.page--with-bg .page__inner {
  position: relative;
  z-index: 2;
}

.page--with-bg .page__title {
  color: rgb(255, 252, 246);
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(0, 0, 0, 0.7),
    0 0 64px rgba(0, 0, 0, 0.4);
}

.page--with-bg .page__text {
  color: rgb(255, 252, 246);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.85;
  letter-spacing: normal;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 0, 0, 0.65),
    0 0 52px rgba(0, 0, 0, 0.35);
}

.page--with-bg .page__rule {
  opacity: 0.75;
}

.page--with-bg .page__section-title {
  color: rgb(255, 252, 246);
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(0, 0, 0, 0.7),
    0 0 64px rgba(0, 0, 0, 0.4);
}

/* Reveal animation for page section title and logo */
.page__section-title[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.page__section-title[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav override for dark / image backgrounds ────── */
.nav--light .nav__link {
  color: rgb(235, 228, 218);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.3);
}

.nav--light .nav__link:hover {
  color: rgb(192, 168, 104);
}

/* ── Nav override for light background ─────────────── */
.nav__link {
  color: rgba(68, 61, 52, 0.75);
  text-shadow: none;
}

.nav__link:hover {
  color: rgb(192, 168, 104);
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .page__rule {
    width: 50px;
  }
}
