/* ==========================================
   FAMILY PHOTO ORGANISATION SYSTEM PAGE
========================================== */

/* HERO */

.family-resource-hero {
  background: var(--cream);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.family-resource-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(61, 58, 54, 0.10);
}

.family-resource-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.family-resource-hero-copy {
  position: absolute;
  top: 50%;
  right: 6.8%;
  transform: translateY(-50%);
  width: 39%;
  max-width: 480px;
  z-index: 2;
}

.family-resource-hero-copy .kicker {
  margin-bottom: 0.65rem;
}

.family-resource-hero-copy h1 {
  color: var(--text-dark);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  max-width: 470px;
}

.family-resource-hero-copy .lead {
  color: var(--text-dark);
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  margin-bottom: 1.1rem;
}

.family-resource-hero-copy p {
  color: var(--text);
  max-width: 460px;
}

.family-resource-actions,
.family-resource-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.family-resource-final-actions {
  justify-content: center;
}

.family-resource-hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.family-resource-hero .btn-secondary:hover,
.family-resource-hero .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* TRUST STRIP */

.family-resource-trust .trust-grid {
  padding: 3rem 0;
  gap: 3rem;
}

.family-resource-trust .trust-item strong {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.family-resource-trust .trust-item span {
  font-size: 1.35rem;
  line-height: 1.7;
}

/* IMAGE-LED SECTIONS */

.family-archive-feature {
  border-top: 1px solid var(--line);
}

.family-archive-feature .image-frame,
.family-before-after-card {
  overflow: hidden;
  border-radius: 24px;
}

.family-step-card {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* INSIDE THE GUIDE / SAMPLE PAGE */

#inside-guide .section-heading {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#inside-guide .section-intro {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.single-sample-page-wrap {
  width: 100%;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sample-page-label {
  display: block;
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.single-sample-page-image {
  width: 540px;
  max-width: 85vw;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(61,58,54,0.12);
}

/* SPECIALIST BANNER */

.family-specialist-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--text-dark);
  color: var(--cream);
}

.family-specialist-image {
  min-height: 420px;
}

.family-specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-specialist-copy {
  padding: 4.5rem;
  align-self: center;
}

.family-specialist-copy h2,
.family-specialist-copy p,
.family-specialist-copy li {
  color: var(--cream);
}

.family-specialist-copy .kicker {
  color: var(--accent);
}

/* BEFORE / AFTER */

.family-before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.family-before-after-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.family-before-after-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  margin-bottom: 1.2rem;
}

.family-before-after-card ul {
  margin-bottom: 0;
}

/* BIGGER VISION */

.family-resource-final-actions .btn-secondary {
  color: var(--text);
  border-color: rgba(79, 57, 40, 0.24);
  background: transparent;
}

.family-resource-final-actions .btn-secondary:hover,
.family-resource-final-actions .btn-secondary:focus-visible {
  background: rgba(198, 163, 131, 0.14);
}

/* FINAL DOWNLOAD SECTION */

.family-download-section {
  clear: both;
  position: relative;
  display: block;
  background: var(--cream);
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  z-index: 1;
}

.family-download-image {
  margin-bottom: 3rem;
}

.family-download-image img {
  width: 100%;
  max-width: 1100px;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.family-download-copy {
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 0;
  z-index: 2;
}

.family-download-copy h2,
.family-download-copy p {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  clear: both;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .family-resource-hero-copy {
    right: 5.5%;
    width: 41%;
  }

  .family-resource-hero-copy h1 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
  }

  .family-resource-hero-copy p {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .family-resource-actions {
    margin-top: 1.2rem;
  }

  .family-resource-actions .btn {
    min-height: 46px;
    padding: 0.75rem 1.15rem;
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .family-specialist-banner,
  .family-before-after-grid {
    grid-template-columns: 1fr;
  }

  .family-specialist-image {
    min-height: auto;
  }

  .family-specialist-copy {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 900px) {
  .family-resource-hero {
    padding: 3rem 0;
  }

  .family-resource-hero-inner {
    width: min(100% - 2rem, 1180px);
    box-shadow: none;
  }

  .family-resource-hero-copy {
    position: static;
    transform: none;
    width: 100%;
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    text-align: center;
  }

  .family-resource-hero-copy h1,
  .family-resource-hero-copy p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .family-resource-actions {
    justify-content: center;
  }

  .family-resource-hero .btn-secondary {
    color: var(--text);
    border-color: rgba(79, 57, 40, 0.24);
    background: transparent;
  }

  .family-resource-trust .trust-grid {
    gap: 2rem;
  }

  .single-sample-page-image {
    width: 500px;
    max-width: 85vw;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(61,58,54,0.12);
  }
}

@media (max-width: 640px) {
  .family-resource-hero {
    padding: 2.5rem 0;
  }

  .family-resource-actions,
  .family-resource-final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .single-sample-page-image {
    width: 500px;
    max-width: 85vw;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(61,58,54,0.12);
  }

  .family-download-image img {
    width: min(100% - 2rem, 1100px);
  }
}