/* Homepage reference layouts. Scoped separately from interior pages. */
[data-page="index"] { background: #fff; }
[data-page="index"] [hidden] { display: none !important; }
.home-eyebrow { display: none; }
[data-page="index"] .home-section-title { font-size: 38px; font-weight: 700; line-height: 50px; color: #142b2c; }
.home-heading { min-width: 0; }
.home-section-subtitle, .home-about-tagline { display: flex; align-items: center; gap: 18px; margin-top: 8px; font-size: 17px; line-height: 28px; color: #88918f; }
.home-section-subtitle::before { content: ""; width: 48px; height: 3px; flex-shrink: 0; background: #ff951d; }
[data-page="index"] .home-products-head, [data-page="index"] .home-news-head, [data-page="index"] .home-faqs-head { align-items: center; margin-bottom: 34px; }
.home-products-head > .text-more, .home-news-head > .text-more, .home-faqs-head > .text-more, .home-about-copy .text-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 24px; border: 1px solid #9fcfc7; border-radius: 30px; color: #398e83; white-space: nowrap; font-size: 16px; line-height: 26px; transition: background-color .2s, color .2s, border-color .2s; }
.home-products-head > .text-more:hover, .home-news-head > .text-more:hover, .home-faqs-head > .text-more:hover, .home-about-copy .text-more:hover { background: #0c9a86; border-color: #0c9a86; color: #fff; }
.home-products-head > .text-more:hover .text-more-arrow, .home-news-head > .text-more:hover .text-more-arrow, .home-faqs-head > .text-more:hover .text-more-arrow, .home-about-copy .text-more:hover .text-more-arrow { color: #fff; }
.home-about { position: relative; overflow: hidden; padding: 86px 0 74px; background: linear-gradient(110deg, #fcfefd, #fff 65%, #fbfefd); }
.home-about::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../assets/home-about-wave.svg") left bottom / 100% 100% no-repeat; }
.home-about-panel { position: relative; display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); column-gap: 40px; padding: 0; background: transparent; border-radius: 0; }
.home-about-panel .home-section-title { padding: 8px 0 0; font-size: 38px; font-weight: 700; line-height: 50px; }
.home-about-panel .home-section-title::after { content: none; }
.home-about-panel .home-about-tagline { margin: 8px 0 0; }
.home-about-line { display: block; width: 55px; height: 3px; background: #51a79b; margin-top: 24px; }
.home-about-copy > p { margin: 0; font-size: 16px; line-height: 30px; color: #333; }
.home-about-copy .text-more { margin-top: 20px; }
.home-products { padding: 64px 0 80px; background: linear-gradient(#fff 45%, #edf8f5); }
.home-products .product-grid { gap: 30px; }
.home-service-card { box-shadow: 0 8px 28px #0c79650b; padding-bottom: 24px; transition: transform .2s; }
.home-service-card:hover { transform: translateY(-4px); }
.home-service-card img { aspect-ratio: 2 / 1; }
.home-service-card h3 { padding: 26px 28px 6px; text-align: left; font-size: 22px; line-height: 32px; }
.home-service-card p { margin: 0 28px; color: #7b8582; line-height: 29px; min-height: 58px; }
.home-learn-more { display: inline-flex; align-items: center; gap: 6px; margin: 18px 28px 0; color: #0c9a86; font-size: 16px; line-height: 26px; }
.home-cases { position: relative; isolation: isolate; overflow: hidden; padding: 95px 0 108px; background: linear-gradient(110deg, #075351, #078f89 75%, #087373); }
.home-cases::before, .home-cases::after { content: none; }
.home-cases .home-section-title { color: #fff; }
.home-cases .home-eyebrow, .home-cases .home-section-subtitle { color: #b7e5df; }
.home-cases .home-products-head { align-items: center; }
.home-case-actions { display: flex; align-items: center; gap: 10px; }
.home-case-actions button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 2px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; background: transparent; box-shadow: none; font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s; }
.home-case-actions button:hover { background: rgba(255,255,255,.15); }
.home-case-actions button:disabled { opacity: .3; cursor: default; background: transparent; }
.home-case-grid { gap: 24px; }
.home-case-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; color: inherit; background: #fff; box-shadow: 0 8px 20px rgba(4, 32, 28, .08); transition: transform .2s, box-shadow .2s; }
.home-case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(4, 32, 28, .2); }
.home-case-card img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: fill; background: transparent; border-radius: 0; }
.home-case-body { padding: 18px 18px 20px; }
.home-case-card h3 { font-size: 22px; line-height: 32px; font-weight: 700; color: #17332f; transition: color .2s; }
.home-case-card:hover h3 { color: #0c9a86; }
.home-case-card p { font-size: 16px; line-height: 28px; min-height: 56px; margin-top: 8px; color: #5f6f6b; }
.home-news { padding: 55px 0 72px; background: #fff; }
.home-news-board { display: grid; grid-template-columns: 1fr 1fr; column-gap: 58px; border-top: 1px solid #dbe8e4; }
.home-news-item { position: relative; min-height: 126px; padding: 20px 96px 18px 0; border-bottom: 1px solid #dbe8e4; transition: background-color .22s, box-shadow .22s, padding-left .22s; }
.home-news-item:hover { padding-left: 12px; background: #f4fbf8; box-shadow: inset 3px 0 #0c9a86; }
.home-news-item:hover h3 a { color: #0c9a86; }
.home-news-item > div { display: grid; grid-template-columns: 106px minmax(0, 1fr); align-items: center; gap: 0; }
.home-news-item time { color: #64847c; font-size: 14px; line-height: 22px; }
.home-news-item h3 { overflow: hidden; margin: 0; font-size: 20px; line-height: 29px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-news-item h3 a { color: #17332f; }
.home-news-item h3 a:hover { color: #0c9a86; }
.home-news-item p { display: -webkit-box; overflow: hidden; margin: 7px 0 0 106px; color: #7b8e88; font-size: 16px; line-height: 25px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-news-more { position: absolute; right: 0; bottom: 20px; color: #0c9a86; font-size: 16px; line-height: 26px; }
.home-faqs { padding: 48px 0 70px; background: #f3faf8; }
.home-faq-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-faq-card { min-width: 0; padding: 8px 22px 12px; border: 1px solid #e6eeeb; border-radius: 12px; background: #fff; }
.home-faq-card h3 { margin: 0; padding: 16px 0 12px; border-bottom: 0; font-size: 20px; line-height: 30px; font-weight: 700; }
.home-faq-card h3::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; background: #0c9a86; }
.home-faq-card a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef3f1; color: #6d7c78; font-size: 16px; line-height: 26px; }
.home-faq-card a:last-child { border-bottom: 0; }
.home-faq-card a span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-faq-card a span:last-child { flex-shrink: 0; color: #a8b8b3; font-size: 22px; line-height: 26px; }
.home-faq-card a:hover, .home-faq-card a:hover span:last-child { color: #0c9a86; }
.home-links { padding: 40px 0 55px; background: transparent; }
.home-link-list a { font-size: 16px; line-height: 28px; color: #3d524e; }
.home-link-list a:hover { color: #0c9a86; }
.home-link-list .empty-state { padding: 20px 0; text-align: left; border: 0; background: transparent; color: #97a6a0; }
[data-page="index"] a:focus-visible, [data-page="index"] button:focus-visible, .home-faq-item summary:focus-visible { outline: 3px solid #efaa41; outline-offset: 5px; }
@media (max-width: 1100px) {
 .home-about-panel { gap: 40px; }
 .home-faqs-head { flex-wrap: wrap; }
 .home-news-list { gap: 0 28px; }
 .home-faq-cards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
 .home-products, .home-news, .home-faqs { padding: 42px 0; }
 .home-about { padding: 21px 0 42px; background: #f3faf8; }
 .home-about::before { display: none; }
 .home-about-panel { grid-template-columns: 1fr; padding: 0; gap: 24px; }
 .home-about-panel .home-section-title, [data-page="index"] .home-section-title { font-size: 30px; line-height: 40px; }
 .home-section-subtitle, .home-about-tagline { font-size: 17px; gap: 10px; }
 .home-section-subtitle::before { width: 28px; }
 [data-page="index"] .home-products-head,
 [data-page="index"] .home-news-head,
 [data-page="index"] .home-faqs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  margin-bottom: 22px;
 }
 [data-page="index"] .home-products-head .home-heading,
 [data-page="index"] .home-news-head .home-heading,
 [data-page="index"] .home-faqs-head .home-heading { display: contents; }
 [data-page="index"] .home-products-head .home-section-title,
 [data-page="index"] .home-news-head .home-section-title,
 [data-page="index"] .home-faqs-head .home-section-title { grid-column: 1; grid-row: 1; align-self: center; }
 [data-page="index"] .home-products-head .home-section-subtitle,
 [data-page="index"] .home-news-head .home-section-subtitle,
 [data-page="index"] .home-faqs-head .home-section-subtitle { grid-column: 1; grid-row: 2; }
 [data-page="index"] .home-products-head > .text-more,
 [data-page="index"] .home-news-head > .text-more,
 [data-page="index"] .home-faqs-head > .text-more { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
 .home-products-head > .text-more, .home-news-head > .text-more, .home-faqs-head > .text-more, .home-about-copy .text-more { font-size: 16px; padding: 6px 16px; }
 .home-products .product-grid, .home-case-grid { grid-template-columns: 1fr; gap: 22px; }
 .home-service-card img { aspect-ratio: 2; }
 .home-cases { padding: 42px 0 48px; }
 .home-cases .container { position: relative; }
 .home-cases .home-products-head { position: relative; display: block; margin-bottom: 18px; }
 .home-cases .home-case-actions {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  top: calc(100% + 18px + (100vw - 48px) * 265 / 800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
 }
 .home-case-actions button { width: 36px; height: 36px; font-size: 24px; pointer-events: auto; background: rgba(0, 0, 0, .28); }
 .home-news-board { grid-template-columns: 1fr; }
 .home-news-item { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 16px 0; }
 .home-news-item > div { display: contents; }
 .home-news-item h3 { grid-column: 1 / -1; grid-row: 1; white-space: normal; }
 .home-news-item p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
 .home-news-item time { grid-column: 1; grid-row: 3; margin: 0; }
 .home-news-more { grid-column: 2; grid-row: 3; position: static; justify-self: end; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
 .home-service-card, .home-case-card, .home-faq-item summary span { transition: none; }
}
