/* HydroFlexFarm growing-systems component: all rules are scoped to .ff-hff. */
.ff-hff {
  --hff-teal: #278f9d;
  --hff-teal-dark: #1d737e;
  --hff-green: #43b347;
  --hff-forest: #26332d;
  --hff-ink: #26332d;
  --hff-muted: #5d6b65;
  --hff-mist: #f2f8f7;
  --hff-white: #ffffff;
  --hff-line: #d7e6e3;
  --hff-sand: #f7f8f4;
  color: var(--hff-ink);
  background: var(--hff-white);
  font-family: "Open Sans", Arial, sans-serif;
}

.ff-hff *,
.ff-hff *::before,
.ff-hff *::after {
  box-sizing: border-box;
}

.ff-hff :focus-visible {
  outline: 3px solid var(--hff-teal);
  outline-offset: 4px;
}

.ff-hff h1,
.ff-hff h2,
.ff-hff h3,
.ff-hff p {
  margin-top: 0;
}

.ff-hff h1,
.ff-hff h2,
.ff-hff h3 {
  color: var(--hff-forest);
  font-family: Manrope, "Open Sans", Arial, sans-serif;
}

.ff-hff h1 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.65rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.ff-hff h2 {
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.ff-hff h3 {
  font-size: 1.36rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ff-hff a {
  color: inherit;
}

.ff-hff-hero {
  padding: clamp(64px, 9vw, 126px) 0 clamp(66px, 8vw, 108px);
  background: linear-gradient(119deg, #f7f8f4 0%, #ffffff 61%, #eff7f5 100%);
}

.ff-hff-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.ff-hff-hero-grid > *,
.ff-hff-overview-grid > *,
.ff-hff-process-grid > * {
  min-width: 0;
}

.ff-hff-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--hff-teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ff-hff-eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--hff-teal);
  content: "";
}

.ff-hff-lede {
  max-width: 650px;
  margin-bottom: 16px;
  color: #3d514a;
  font-size: clamp(1.16rem, 2vw, 1.38rem);
  line-height: 1.52;
}

.ff-hff-intro {
  max-width: 600px;
  margin-bottom: 26px;
  color: var(--hff-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.ff-hff-actions,
.ff-hff-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.ff-hff .ff-hff-btn-teal {
  min-height: 48px;
  border-color: var(--hff-teal);
  background: var(--hff-teal);
  box-shadow: none;
}

.ff-hff .ff-hff-btn-teal:hover,
.ff-hff .ff-hff-btn-teal:focus-visible {
  border-color: var(--hff-teal-dark);
  background: var(--hff-teal-dark);
}

.ff-hff-text-link,
.ff-hff-research-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hff-forest);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(39, 143, 157, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ff-hff-text-link:hover,
.ff-hff-research-link:hover {
  color: var(--hff-teal-dark);
  text-decoration-color: currentColor;
}

.ff-hff-brand-panel {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--hff-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 45px rgba(38, 51, 45, 0.07);
}

.ff-hff-brand-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
  max-height: 160px;
  margin-bottom: clamp(24px, 3vw, 34px);
  object-fit: contain;
  object-position: left center;
}

.ff-hff-brand-panel-copy {
  padding-top: 19px;
  border-top: 1px solid var(--hff-line);
}

.ff-hff-panel-label {
  margin-bottom: 10px;
  color: var(--hff-teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ff-hff-brand-panel h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.23;
}

.ff-hff-brand-panel p:not(.ff-hff-panel-label) {
  margin-bottom: 0;
  color: var(--hff-muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.ff-hff-overview,
.ff-hff-systems,
.ff-hff-process,
.ff-hff-next {
  padding: clamp(64px, 8vw, 110px) 0;
}

.ff-hff-overview {
  background: var(--hff-mist);
}

.ff-hff-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 7vw, 110px);
}

.ff-hff-copy {
  max-width: 650px;
  color: #43554e;
  line-height: 1.72;
}

.ff-hff-copy p {
  margin-bottom: 18px;
}

.ff-hff-copy p:last-child {
  margin-bottom: 0;
}

.ff-hff-systems {
  background: var(--hff-white);
}

.ff-hff-section-head {
  max-width: 730px;
  margin-bottom: 34px;
}

.ff-hff-section-head h2 {
  margin-bottom: 13px;
}

.ff-hff-section-head > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--hff-muted);
  line-height: 1.62;
}

.ff-hff-area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ff-hff-area-card {
  display: flex;
  min-height: 254px;
  flex-direction: column;
  padding: 25px 23px 22px;
  border: 1px solid var(--hff-line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ff-hff-area-card:hover {
  border-color: var(--hff-teal);
  box-shadow: 0 12px 30px rgba(39, 143, 157, 0.12);
  transform: translateY(-3px);
}

.ff-hff-card-number,
.ff-hff-detail-index {
  color: var(--hff-teal);
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ff-hff-area-card h3 {
  margin: 26px 0 10px;
}

.ff-hff-area-card p {
  margin-bottom: 16px;
  color: var(--hff-muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

.ff-hff-card-link {
  margin-top: auto;
  color: var(--hff-teal-dark);
  font-size: 0.83rem;
  font-weight: 800;
}

.ff-hff-details-list {
  display: grid;
  gap: 12px;
}

.ff-hff-detail-section {
  scroll-margin-top: 28px;
}

.ff-hff-detail-section details {
  border: 1px solid var(--hff-line);
  border-radius: 12px;
  background: var(--hff-sand);
}

.ff-hff-detail-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  cursor: pointer;
  color: var(--hff-forest);
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 750;
  list-style: none;
}

.ff-hff-detail-section summary::-webkit-details-marker {
  display: none;
}

.ff-hff-detail-section summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ff-hff-detail-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--hff-teal-dark);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ff-hff-detail-prompt span {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.ff-hff-detail-section details[open] {
  border-color: #b6deda;
  background: #fff;
}

.ff-hff-detail-section details[open] .ff-hff-detail-prompt {
  color: var(--hff-forest);
}

.ff-hff-detail-section details[open] .ff-hff-detail-prompt span {
  transform: rotate(45deg);
}

.ff-hff-detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 24px 25px;
  color: var(--hff-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.ff-hff-detail-content p {
  margin-bottom: 0;
}

.ff-hff-detail-content strong {
  color: var(--hff-forest);
}

.ff-hff-process {
  background: var(--hff-forest);
  color: #e3eeea;
}

.ff-hff-process h2 {
  color: #fff;
}

.ff-hff-process .ff-hff-eyebrow {
  color: #a7ddd0;
}

.ff-hff-process .ff-hff-eyebrow::before {
  background: #70c2c0;
}

.ff-hff-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 8vw, 130px);
}

.ff-hff-process-copy {
  max-width: 420px;
  margin: 17px 0 0;
  color: #c5d4cd;
  line-height: 1.7;
}

.ff-hff-steps {
  display: grid;
  gap: 19px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hff-steps;
}

.ff-hff-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(225, 238, 232, 0.18);
}

.ff-hff-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ff-hff-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(134, 211, 205, 0.5);
  border-radius: 50%;
  color: #a7ddd0;
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.ff-hff-steps strong {
  display: block;
  margin: 1px 0 3px;
  color: #fff;
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  font-size: 1rem;
}

.ff-hff-steps p {
  margin-bottom: 0;
  color: #c5d4cd;
  font-size: 0.91rem;
  line-height: 1.58;
}

.ff-hff-next {
  background: var(--hff-white);
}

.ff-hff-next-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding: clamp(31px, 5vw, 58px);
  border: 1px solid var(--hff-line);
  border-left: 5px solid var(--hff-teal);
  border-radius: 15px;
  background: linear-gradient(135deg, #f2f8f7, #fff);
}

.ff-hff-next-panel h2 {
  max-width: 710px;
  margin-bottom: 14px;
}

.ff-hff-next-panel p:not(.ff-hff-eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--hff-muted);
  line-height: 1.65;
}

.ff-hff-next-actions {
  min-width: 255px;
  align-items: flex-start;
  flex-direction: column;
}

.ff-hff-disclaimer {
  margin: 21px 0 0;
  padding-left: 18px;
  border-left: 2px solid #b8cfca;
  color: #61706a;
  font-size: 0.84rem;
  line-height: 1.62;
}

.ff-hff-disclaimer strong {
  color: var(--hff-forest);
}

@media (max-width: 960px) {
  .ff-hff-hero-grid,
  .ff-hff-overview-grid,
  .ff-hff-process-grid {
    grid-template-columns: 1fr;
  }

  .ff-hff-brand-panel {
    max-width: 600px;
  }

  .ff-hff-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ff-hff-detail-content {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ff-hff-next-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ff-hff-next-actions {
    min-width: 0;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 650px) {
  .ff-hff-hero,
  .ff-hff-overview,
  .ff-hff-systems,
  .ff-hff-process,
  .ff-hff-next {
    padding: 56px 0;
  }

  .ff-hff h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .ff-hff-hero-grid {
    gap: 36px;
  }

  .ff-hff-brand-panel {
    padding: 24px;
    border-radius: 14px;
  }

  .ff-hff-brand-logo {
    max-height: 120px;
  }

  .ff-hff-area-grid {
    grid-template-columns: 1fr;
  }

  .ff-hff-area-card {
    min-height: 0;
  }

  .ff-hff-area-card h3 {
    margin-top: 18px;
  }

  .ff-hff-detail-section summary {
    align-items: flex-start;
    padding: 18px;
    font-size: 1rem;
  }

  .ff-hff-detail-section summary > span:first-child {
    gap: 11px;
  }

  .ff-hff-detail-prompt {
    font-size: 0.67rem;
  }

  .ff-hff-detail-content {
    padding: 0 18px 20px;
    font-size: 0.9rem;
  }

  .ff-hff-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .ff-hff-next-panel {
    padding: 27px 23px;
  }

  .ff-hff-next-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ff-hff-next-actions .ff-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-hff-area-card,
  .ff-hff-detail-prompt span {
    transition: none;
  }
}


/* HydroFlexFarm project media: captions retain source and validation context. */
.ff-hff-video-figure,
.ff-hff-spectrum-figure {
  min-width: 0;
  margin: 0;
}

.ff-hff-video-figure {
  margin: 0 0 25px;
}

.ff-hff-video-figure video {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  background: #e8efec;
  object-fit: cover;
}

.ff-hff-video-figure figcaption,
.ff-hff-media-figure figcaption,
.ff-hff-spectrum-figure figcaption {
  margin-top: 9px;
  color: var(--hff-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.ff-hff-brand-panel .ff-hff-video-figure figcaption {
  font-size: 0.75rem;
}

.ff-hff-media-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  min-width: 0;
  margin-top: 5px;
}

.ff-hff-media-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--hff-line);
  border-radius: 12px;
  background: #fff;
}

.ff-hff-media-figure img {
  display: block;
  width: 100%;
  height: clamp(170px, 21vw, 250px);
  border-radius: 7px;
  background: #f1f5f3;
  object-fit: contain;
}

.ff-hff-spectrum-figure {
  max-width: 100%;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid rgba(225, 238, 232, 0.2);
  border-radius: 11px;
  background: #fff;
}

.ff-hff-spectrum-figure img {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 6px;
  object-fit: contain;
}

.ff-hff-process .ff-hff-spectrum-figure figcaption {
  color: #53635d;
}

@media (max-width: 650px) {
  .ff-hff-media-grid {
    grid-template-columns: 1fr;
  }

  .ff-hff-media-figure img {
    height: auto;
    max-height: 300px;
  }

  .ff-hff-video-figure video {
    max-height: 250px;
  }
}


/* Keep each system’s short introduction, practical notes, and media together. */
.ff-hff-area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.ff-hff-system-card {
  min-height: 0;
  gap: 15px;
  padding: clamp(22px, 3vw, 32px);
}

.ff-hff-system-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ff-hff-system-card-heading h3 {
  margin: 0;
}

.ff-hff-system-card .ff-hff-area-intro {
  margin: 0;
  color: var(--hff-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.ff-hff-system-notes {
  display: grid;
  gap: 10px;
  color: var(--hff-muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.ff-hff-system-notes p {
  margin: 0;
}

.ff-hff-system-notes strong {
  color: var(--hff-forest);
}

.ff-hff-system-card .ff-hff-media-grid {
  width: 100%;
  grid-column: auto;
  margin-top: 0;
}

@media (max-width: 650px) {
  .ff-hff-area-grid {
    grid-template-columns: 1fr;
  }

  .ff-hff-system-card {
    gap: 13px;
    padding: 22px;
  }
}
