/* ==========================================================================
   Peter Harry Counselling - Styles (website design by sarahtamsin.com)
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Brand palette */
  --color-warm-earth:   #8A716A;
  --color-soft-stone:   #C2B8B2;
  --color-ocean-blue:   #197BBD;
  --color-deep-teal:    #125E8A;
  --color-dark-forest:  #204B57;

  /* Derived / utility colours */
  --color-bg:           #FAF8F6;
  --color-bg-alt:       #F2EEEB;
  --color-text:         #2D2926;
  --color-text-light:   #5C5551;
  --color-white:        #FFFFFF;
  --color-border:       #E4DFDB;

  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* Spacing scale (rem) */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --container-max: 72rem;  /* 1152px */
  --container-narrow: 48rem; /* 768px */

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Sticky CTA height for mobile body padding */
  --sticky-cta-height: 4.5rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-deep-teal);
  text-decoration-skip-ink: auto;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-ocean-blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-ocean-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-dark-forest);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark-forest);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-3xl);
}

@media (min-width: 48em) {
  .section {
    padding-block: var(--space-4xl);
  }
}

.text-center {
  text-align: center;
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ocean-blue);
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 36rem;
  color: var(--color-text-light);
}

.section-header.text-center p {
  margin-inline: auto;
}

/* ---------- Icon utility ---------- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.icon img {
  width: 100%;
  height: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 94, 138, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-ocean-blue);
  color: var(--color-white);
  border-color: var(--color-ocean-blue);
}

.btn--primary:hover {
  background-color: var(--color-deep-teal);
  border-color: var(--color-deep-teal);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-dark-forest);
  border-color: var(--color-dark-forest);
}

.btn--outline:hover {
  background-color: var(--color-dark-forest);
  color: var(--color-white);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn--primary .icon img {
  filter: brightness(0) invert(1);
}

.btn--outline .icon img {
  filter: brightness(0) saturate(100%);
}

.btn--outline:hover .icon img {
  filter: brightness(0) invert(1);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(250, 248, 246, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 48em) {
  .header-inner {
    height: 4.5rem;
  }
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--color-dark-forest);
}

.site-logo span {
  color: var(--color-ocean-blue);
  font-weight: 400;
}

/* Desktop Nav */
.nav-list {
  display: none;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 48em) {
  .nav-list {
    display: flex;
  }
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-ocean-blue);
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-dark-forest);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Header CTA (desktop only) */
.header-cta {
  display: none;
}

@media (min-width: 48em) {
  .header-cta {
    display: inline-flex;
  }
}

.header-cta .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) saturate(100%);
}

@media (min-width: 48em) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 20rem;
  height: 100dvh;
  background-color: var(--color-white);
  z-index: 200;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-close img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) saturate(100%);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-list a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--color-ocean-blue);
}

.mobile-nav .btn {
  margin-top: var(--space-lg);
  width: 100%;
  justify-content: center;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(4rem + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 48em) {
  .hero {
    padding-top: calc(4.5rem + var(--space-4xl));
    padding-bottom: var(--space-4xl);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ocean-blue);
  margin-bottom: var(--space-lg);
}

.hero-label .icon {
  width: 1rem;
  height: 1rem;
}

.hero-label .icon img {
  filter: invert(36%) sepia(93%) saturate(500%) hue-rotate(168deg) brightness(92%) contrast(87%);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero .lead {
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Decorative coastal element */
.hero-decoration {
  position: absolute;
  top: 0;
  right: -5%;
  width: 50%;
  height: 100%;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

.hero-decoration::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 100%;
  height: 80%;
  border-radius: 50% 0 0 50%;
  background: linear-gradient(135deg, var(--color-ocean-blue), var(--color-deep-teal));
}

/* ---------- Wave Divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: -1px;
  overflow: hidden;
  line-height: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

/* Hero → About (bg to bg-alt) */
.wave-divider--to-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,35 1440,30 L1440,60 L0,60 Z' fill='%23F2EEEB'/%3E%3C/svg%3E");
}

/* About → Services (bg-alt to bg) */
.wave-divider--to-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,35 1440,30 L1440,60 L0,60 Z' fill='%23FAF8F6'/%3E%3C/svg%3E");
}

@media (min-width: 48em) {
  .wave-divider {
    height: 60px;
  }
}

/* ---------- About ---------- */
.about {
  background-color: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 48em) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-3xl);
  }
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-soft-stone);
  aspect-ratio: 4/5;
}

@media (min-width: 48em) {
  .about-image {
    position: sticky;
    top: 6rem;
  }
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-warm-earth);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(145deg, var(--color-soft-stone), #d8d0ca);
}

.about-image-placeholder .icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.about-image-placeholder .icon img {
  filter: invert(45%) sepia(8%) saturate(700%) hue-rotate(340deg) brightness(88%) contrast(85%);
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  color: var(--color-text-light);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.credential {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark-forest);
}

.credential .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-ocean-blue);
  flex-shrink: 0;
}

.credential .icon img {
  filter: invert(36%) sepia(93%) saturate(500%) hue-rotate(168deg) brightness(92%) contrast(87%);
}

/* NCPS accreditation logo in About section */
.about-accreditation {
  margin-top: var(--space-xl);
}

.ncps-logo {
  height: auto;
  max-width: 16rem;
}

@media (min-width: 48em) {
  .ncps-logo {
    max-width: 18rem;
  }
}

/* ---------- Services ---------- */
.services {
  background-color: var(--color-bg);
}

.services-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 36em) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(32, 75, 87, 0.08);
}

.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
}

.service-card-icon img {
  width: 1.25rem;
  height: 1.25rem;
  filter: invert(36%) sepia(93%) saturate(500%) hue-rotate(168deg) brightness(92%) contrast(87%);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ---------- Approach ---------- */
.approach {
  background-color: var(--color-dark-forest);
  color: var(--color-white);
}

.approach .section-label {
  color: var(--color-soft-stone);
}

.approach h2 {
  color: var(--color-white);
}

.approach .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.approach-grid {
  display: grid;
  gap: var(--space-xl);
  counter-reset: approach-counter;
}

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

.approach-step {
  counter-increment: approach-counter;
  padding: var(--space-xl);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.approach-step::before {
  content: counter(approach-counter, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-soft-stone);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.approach-step h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.approach-step p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

/* ---------- Testimonial / Quote ---------- */
.testimonial {
  background-color: var(--color-bg-alt);
}

.testimonial-card {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.testimonial-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  opacity: 0.2;
}

.testimonial-icon img {
  width: 100%;
  height: 100%;
  filter: invert(28%) sepia(10%) saturate(600%) hue-rotate(340deg) brightness(90%) contrast(85%);
}

blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-dark-forest);
  margin-bottom: var(--space-lg);
}

blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* ---------- Contact / CTA ---------- */
.contact {
  background-color: var(--color-bg);
}

.contact-card {
  background: linear-gradient(145deg, var(--color-deep-teal), var(--color-dark-forest));
  color: var(--color-white);
  border-radius: 16px;
  padding: var(--space-2xl);
  text-align: center;
}

@media (min-width: 48em) {
  .contact-card {
    padding: var(--space-3xl) var(--space-4xl);
  }
}

.contact-card h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.contact-card .btn--primary {
  background-color: var(--color-white);
  color: var(--color-dark-forest);
  border-color: var(--color-white);
}

.contact-card .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-dark-forest);
}

.contact-card .btn--primary .icon img {
  filter: brightness(0) saturate(100%);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-detail .icon {
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.7;
}

.contact-detail .icon img {
  filter: brightness(0) invert(1);
}

.contact-detail a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--color-white);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-dark-forest);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--space-xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 48em) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-inner p {
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

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

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.sticky-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem;
}

@media (min-width: 48em) {
  .sticky-cta {
    display: none;
  }
}

/* Add bottom padding on mobile to prevent sticky CTA overlap */
@media (max-width: 47.999em) {
  body {
    padding-bottom: var(--sticky-cta-height);
  }
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.45s; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 0.5s; }

/* ---------- Image placeholder utility ---------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-soft-stone), #d8d0ca);
  color: var(--color-warm-earth);
  border-radius: 12px;
  min-height: 16rem;
}

.img-placeholder .icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}

.img-placeholder span {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- Visually hidden (screen reader only) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
