/* Catalog-first revision. Underlined tabs adapted from the 21st.dev reference.
   Existing navy / mint identity and local Manrope font are retained. */
.catalog-section {
  background: #f6f8f7;
}
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0 0 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.catalog-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #52616b;
  border-bottom: 3px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}
.catalog-tabs a:hover {
  color: var(--ink);
}
.catalog-tabs a[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: #366849;
  font-weight: 800;
}
.category-panel {
  scroll-margin-top: 120px;
}
.category-panel + .category-panel {
  margin-top: 48px;
}
.js .category-panel {
  margin-top: 0;
}
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.direction-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
a.direction-card:hover {
  border-color: #83a48d;
  box-shadow: 0 8px 25px #1826330a;
}
.direction-image {
  height: 190px;
  padding: 22px;
  background: #fff;
  border-bottom: 1px solid #eef1ee;
}
.direction-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.direction-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.direction-index {
  display: block;
  color: #63766a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.direction-card h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 12px 0;
}
.direction-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.direction-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding-top: 24px;
  margin-top: auto;
}
.direction-link .icon {
  width: 18px;
  height: 18px;
}
.catalog-guide-card {
  padding: 30px 25px;
  background: var(--navy);
  color: #fff;
  justify-content: center;
}
.catalog-guide-card .direction-index {
  color: var(--green);
}
.catalog-guide-card h3 {
  font-size: 26px;
  margin: 24px 0 16px;
}
.catalog-guide-card p {
  color: #b9c4cc;
}
.catalog-guide-card .text-link {
  margin-top: 24px;
  color: var(--green);
  font-size: 12px;
}
.catalog-disclaimer {
  margin-top: 28px;
  max-width: 1050px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.category-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}
.category-heading > div {
  max-width: 780px;
}
.category-heading h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 12px 0 16px;
}
.category-heading p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.category-heading > .text-link {
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 35px;
}
.category-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.category-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 30px;
}
.category-photo img {
  max-width: 100%;
  width: 100%;
  height: 270px;
  object-fit: contain;
}
.category-guide {
  padding: 32px;
  border-left: 1px solid var(--line);
}
.category-guide h4 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.category-guide > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.category-guide dl {
  margin-top: 22px;
}
.category-guide dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.category-guide dt {
  color: var(--muted);
}
.category-guide dd {
  margin: 0;
  font-weight: 600;
}
.category-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.material-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 25px;
  min-width: 0;
}
.material-card h4 {
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.material-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  min-height: 50px;
}
.material-photo {
  height: 180px;
  margin: 0 0 24px;
}
.material-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.material-details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.material-details summary,
.service-details summary {
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
}
.material-details summary::marker,
.service-details summary::marker {
  color: #366849;
}
.material-details p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.material-details .text-link {
  font-size: 12px;
  min-height: 44px;
}
.category-advice {
  padding: 18px 22px;
  border-left: 3px solid #739e81;
  background: #edf3ee;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 24px;
}
.buying-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 0;
  margin: 0;
}
.buying-steps li {
  border-top: 1px solid #bccac1;
  padding-top: 24px;
}
.buying-steps li > span {
  color: #53745e;
  font-size: 13px;
  font-weight: 700;
}
.buying-steps h3 {
  margin: 16px 0 12px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.4px;
}
.buying-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.questions-block {
  max-width: 960px;
  margin: 60px auto 0;
}
.questions-block h3 {
  font-size: 26px;
  margin-bottom: 24px;
}
.questions-block details {
  border-bottom: 1px solid var(--line);
}
.questions-block summary {
  padding: 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.questions-block details > p {
  max-width: 800px;
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.service-details {
  margin-top: auto;
  padding-top: 18px;
}
.service-details p {
  margin: 0;
  font-size: 13px;
}
.showcase-facts strong {
  white-space: nowrap;
}
.showcase-description {
  max-width: 680px;
}
.footer {
  padding-bottom: 28px;
}
.footer-catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 22px 0;
  border-top: 1px solid #ffffff25;
}
.footer-catalog a {
  color: #c0cbd1;
  font-size: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-catalog a:hover {
  color: var(--green);
}
@media (max-width: 1100px) {
  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .direction-card {
    flex-direction: row;
  }
  .direction-image {
    width: 38%;
    height: auto;
    min-height: 210px;
    padding: 20px;
    flex-shrink: 0;
    border-bottom: 0;
  }
  .direction-body {
    padding: 22px 20px 22px 10px;
  }
  .direction-card h3 {
    font-size: 19px;
  }
  .catalog-guide-card {
    flex-direction: column;
  }
  .category-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .buying-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .catalog-tabs {
    gap: 4px 18px;
    margin-bottom: 24px;
  }
  .catalog-tabs a {
    font-size: 13px;
    line-height: 1.4;
  }
  .category-heading {
    flex-direction: column;
    gap: 12px;
  }
  .category-heading > .text-link {
    margin-top: 0;
  }
  .category-feature {
    grid-template-columns: 1fr;
  }
  .category-photo {
    min-height: 230px;
    padding: 24px;
  }
  .category-photo img {
    height: 230px;
  }
  .category-guide {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px;
  }
  .category-guide dl > div {
    grid-template-columns: 90px 1fr;
  }
  .category-items {
    gap: 16px;
  }
  .material-card {
    padding: 20px;
  }
  .material-card h4 {
    font-size: 18px;
  }
  .material-photo {
    height: 150px;
  }
  .buying-steps {
    gap: 25px;
  }
  .buying-steps h3 {
    font-size: 18px;
  }
  .showcase-description br {
    display: none;
  }
  .showcase-facts strong {
    font-size: 16px;
  }
  .catalog-disclaimer {
    font-size: 12px;
  }
  .footer-catalog {
    gap: 6px 20px;
  }
}
@media (max-width: 575px) {
  .directions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .direction-image {
    width: 34%;
    min-height: 185px;
    padding: 16px;
  }
  .direction-card h3 {
    font-size: 20px;
  }
  .direction-card p {
    font-size: 12px;
  }
  .direction-index {
    font-size: 9px;
  }
  .direction-body {
    padding: 22px 18px 22px 8px;
  }
  .direction-link {
    font-size: 12px;
    padding-top: 18px;
  }
  .catalog-guide-card h3 br {
    display: none;
  }
  .catalog-guide-card {
    padding: 26px;
  }
  .catalog-guide-card h3 {
    margin-top: 16px;
  }
  .category-items {
    grid-template-columns: 1fr;
  }
  .material-card > p {
    min-height: 0;
  }
  .buying-steps {
    grid-template-columns: 1fr;
  }
  .questions-block {
    margin-top: 40px;
  }
  .category-guide {
    padding: 22px;
  }
  .category-guide dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-tabs a,
  .direction-card {
    transition: none;
  }
}

/* Compact WhatsApp contact action: visible without replacing site navigation. */
.whatsapp-float {
  position: fixed;
  right: max(20px, calc(env(safe-area-inset-right) + 16px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
  z-index: 50;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: #25d366;
  color: #07351c;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(9, 46, 27, 0.08);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.whatsapp-float .icon {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 12px);
  width: max-content;
  max-width: min(210px, calc(100vw - 100px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #0b1620;
  color: #f3f7f5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}
.whatsapp-float:hover {
  background: #3bdf78;
  box-shadow:
    0 15px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(9, 46, 27, 0.08);
  transform: translateY(-2px);
}
.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}
.whatsapp-float:active {
  transform: scale(0.96);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #f3f7f5;
  outline-offset: 4px;
}
@media (max-width: 575px) {
  .whatsapp-float {
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    width: 54px;
    height: 54px;
  }
  .whatsapp-float .icon {
    width: 27px;
    height: 27px;
  }
  .whatsapp-float-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float-label {
    transition: none;
  }
  .whatsapp-float:hover,
  .whatsapp-float:active {
    transform: none;
  }
}
@media print {
  .whatsapp-float {
    display: none;
  }
}
