/* The service pages use different section orders and gallery compositions. */
body.theme-trees .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.theme-trees .gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 2.05;
}
body.theme-trees .feature-card:first-child {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
body.theme-trees .feature-card:first-child p { color: #e4ecd9; }
body.theme-trees .feature-card:first-child .feature-index { color: var(--sage); }

body.theme-wall .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 185px;
  gap: 13px;
}
body.theme-wall .gallery-item,
body.theme-wall .gallery-item:first-child { grid-column: span 3; aspect-ratio: auto; }
body.theme-wall .gallery-item:first-child { grid-column: span 4; grid-row: span 2; }
body.theme-wall .gallery-item:nth-child(n+2):nth-child(-n+5) { grid-column: span 1; }
body.theme-wall .gallery-item:nth-child(6),
body.theme-wall .gallery-item:nth-child(7) { grid-column: span 3; }
body.theme-wall .service-intro-grid { direction: ltr; }
body.theme-wall .service-intro-grid > * { direction: rtl; }
body.theme-wall .features-grid { grid-template-columns: 1.2fr .8fr; }
body.theme-wall .feature-card:first-child { grid-row: span 2; min-height: 100%; background: var(--theme-soft); }

body.theme-water .editorial-section { min-height: 570px; }
body.theme-water .editorial-inner { min-height: 570px; justify-content: flex-start; }
body.theme-water .editorial-glass { width: min(510px, 100%); }
body.theme-water .process-grid { display: block; }
body.theme-water .process-grid > div:first-child { text-align: center; margin: 0 auto 40px; }
body.theme-water .process-grid > div:first-child p { margin-inline: auto; }
body.theme-water .steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.theme-water .steps-list li { align-items: flex-start; flex-direction: column; min-height: 155px; }
body.theme-water .gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 175px;
  gap: 12px;
}
body.theme-water .gallery-item,
body.theme-water .gallery-item:first-child { grid-column: span 1; aspect-ratio: auto; }
body.theme-water .gallery-item:first-child { grid-column: span 3; grid-row: span 2; }

body.theme-planters .intro-visual {
  min-height: 540px;
  border-radius: 220px 220px 28px 28px;
}
body.theme-planters .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 175px;
  grid-auto-flow: dense;
  gap: 13px;
}
body.theme-planters .gallery-item,
body.theme-planters .gallery-item:first-child { grid-column: span 1; aspect-ratio: auto; }
body.theme-planters .gallery-item:first-child,
body.theme-planters .gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
body.theme-planters .use-grid article:nth-child(2) { background: var(--forest); color: white; }
body.theme-planters .use-grid article:nth-child(2) span { color: var(--sage); }
body.theme-planters .use-grid article:nth-child(2) p { color: #f1e6d9; }

body.theme-contact .contact-method-card:nth-child(2) { background: var(--forest); color: white; }
body.theme-contact .contact-method-card:nth-child(2) > svg,
body.theme-contact .contact-method-card:nth-child(2) strong { color: var(--sage); }

@media (max-width: 900px) {
  body.theme-trees .gallery-grid,
  body.theme-wall .gallery-grid,
  body.theme-water .gallery-grid,
  body.theme-planters .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-wall .gallery-grid,
  body.theme-water .gallery-grid,
  body.theme-planters .gallery-grid { grid-auto-rows: 170px; }
  body.theme-trees .gallery-item:first-child,
  body.theme-wall .gallery-item:first-child,
  body.theme-water .gallery-item:first-child,
  body.theme-planters .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  body.theme-wall .gallery-item:nth-child(n+2):nth-child(-n+7),
  body.theme-water .gallery-item:nth-child(n+2),
  body.theme-planters .gallery-item:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
  body.theme-wall .features-grid { grid-template-columns: 1fr 1fr; }
  body.theme-water .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  body.theme-trees .gallery-item:first-child { aspect-ratio: auto; }
  body.theme-wall .gallery-grid,
  body.theme-water .gallery-grid,
  body.theme-planters .gallery-grid { grid-auto-rows: 145px; gap: 9px; }
  body.theme-wall .features-grid { grid-template-columns: 1fr; }
  body.theme-wall .feature-card:first-child { grid-row: auto; }
  body.theme-water .editorial-section,
  body.theme-water .editorial-inner { min-height: 440px; }
  body.theme-water .steps-list { grid-template-columns: 1fr; }
  body.theme-water .steps-list li { min-height: 90px; flex-direction: row; align-items: center; }
  body.theme-planters .intro-visual { min-height: 340px; border-radius: 140px 140px 22px 22px; }
}
