/* ================================================================
   ERGO — pages.css  (shared styles for all product pages)
================================================================ */

/* Always-white nav on product pages */
.nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.nav.scrolled .nav__links a { color: var(--graphite); }
.nav.scrolled .nav__links a:hover { color: var(--blue); }
.nav.scrolled .nav__hamburger span { background: var(--graphite); }

/* Active nav link */
.nav__active { color: var(--blue) !important; font-weight: 600 !important; }

/* ─── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  margin-top: 80px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,28,50,.85) 0%,
    rgba(14,28,50,.4) 60%,
    rgba(14,28,50,.15) 100%
  );
}

.page-hero__content {
  position: relative;
  padding-bottom: 3rem;
}

.page-hero__breadcrumb {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.page-hero__breadcrumb a:hover { color: #fff; }

.page-hero__content h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.page-hero__content p {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.65;
}

/* ─── PAGE SECTION ───────────────────────────────────────────── */
.page-section {
  padding: 5rem 0;
  background: var(--white);
}

/* ─── PAGE INTRO ─────────────────────────────────────────────── */
.page-intro {
  background: #f8f8f6;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.page-intro__inner {
  max-width: 820px;
}
.page-intro__inner p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--mid);
}

/* ─── PRODUCT BLOCK ──────────────────────────────────────────── */
.prod-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.prod-block:last-child { border-bottom: none; }
.prod-block--reverse { direction: rtl; }
.prod-block--reverse > * { direction: ltr; }

.prod-block__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-md);
}
.prod-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.prod-block:hover .prod-block__img img { transform: scale(1.04); }

.prod-block__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 500;
  color: rgba(31,108,178,.15);
  line-height: 1;
  margin-bottom: .5rem;
}

.prod-block__body h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.prod-block__body p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.prod-block__list {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.prod-block__list li {
  font-size: .9rem;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.prod-block__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ─── PAGE CTA ───────────────────────────────────────────────── */
.page-cta {
  background: var(--graphite);
  padding: 4rem 0;
}
.page-cta__inner {
  text-align: center;
}
.page-cta__inner h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: .75rem;
}
.page-cta__inner p {
  color: rgba(255,255,255,.6);
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { height: 320px; }
  .prod-block { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
  .prod-block--reverse { direction: ltr; }
  .prod-block__img { height: 240px; }
}

@media (max-width: 480px) {
  .page-hero { height: 280px; }
  .page-hero__content h1 { font-size: 1.8rem; }
}
