/**
 * ECHO Asansör — storefront overrides (loaded after vendor main.css).
 *
 * Homepage `.rs-feature-area.rs-feature-three`:
 * The navy bar used a diagonally-cut background image (`features-bg-01`)
 * at `background-size: auto`. On 1440–1920+ the baked-in white/transparent
 * wedge sliced the third column. This file paints a full-width navy bar
 * so all three features stay readable; the diagonal is a non-clipping
 * decoration only.
 */

.rs-feature-area.rs-feature-three {
  --echo-feature-navy: #0b1f3a;
  position: relative;
  z-index: 3;
  overflow: visible;
  clip-path: none;
  -webkit-clip-path: none;
  background-color: var(--echo-feature-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center;
  margin-top: -88px;
  padding: 72px 0 80px;
}

.rs-feature-area.rs-feature-three,
.rs-feature-area.rs-feature-three .rs-feature-bg-thumb,
.rs-feature-area.rs-feature-three .container,
.rs-feature-area.rs-feature-three .rs-feature-item {
  overflow: visible;
  clip-path: none;
  -webkit-clip-path: none;
}

/* Neutralize the clipping bitmap; keep the node for existing markup/JS. */
.rs-feature-area.rs-feature-three .rs-feature-bg-thumb {
  width: 100%;
  height: 100%;
  background-image: none !important;
  background-size: auto;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Soft navy-on-navy slant — never a white wedge, never clips type. */
.rs-feature-area.rs-feature-three::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0 86%,
    rgba(255, 255, 255, 0.05) 86% 86.35%,
    rgba(0, 0, 0, 0.16) 86.35%
  );
}

.rs-feature-area.rs-feature-three > .container {
  position: relative;
  z-index: 1;
  max-width: 1390px;
}

.rs-feature-area.rs-feature-three .row.g-5 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

.rs-feature-area.rs-feature-three .rs-feature-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
}

.rs-feature-area.rs-feature-three .rs-feature-icon {
  flex: 0 0 auto;
}

.rs-feature-area.rs-feature-three .rs-feature-icon img {
  width: 64px;
  min-width: 64px;
  height: auto;
  display: block;
}

.rs-feature-area.rs-feature-three .rs-feature-content {
  flex: 1 1 auto;
  min-width: 0;
}

.rs-feature-area.rs-feature-three .rs-feature-title {
  color: var(--rs-white, #fff);
  margin-bottom: 10px;
}

.rs-feature-area.rs-feature-three .rs-feature-descrip p {
  color: #d4d8de;
  margin-bottom: 0;
}

/* Tablet: keep 2+1 if the grid asks for it; tighten the bar. */
@media only screen and (max-width: 1199px) {
  .rs-feature-area.rs-feature-three {
    margin-top: -56px;
    padding: 56px 0 64px;
  }
}

@media only screen and (max-width: 991px) {
  .rs-feature-area.rs-feature-three {
    margin-top: -32px;
    padding: 48px 0 56px;
  }

  .rs-feature-area.rs-feature-three .rs-feature-item {
    max-width: 100%;
  }
}

/* Phones: one column, compact rhythm, no icon-above-title wrap, no clip. */
@media only screen and (max-width: 767px) {
  .rs-feature-area.rs-feature-three {
    margin-top: 0;
    padding: 40px 0 48px;
    background-size: 72px 72px;
  }

  .rs-feature-area.rs-feature-three::after {
    display: none;
  }

  .rs-feature-area.rs-feature-three > .container {
    --bs-gutter-x: 1.25rem;
    padding-inline: 1.25rem;
  }

  .rs-feature-area.rs-feature-three .row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.5rem;
  }

  .rs-feature-area.rs-feature-three .rs-feature-item {
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 100%;
  }

  .rs-feature-area.rs-feature-three .rs-feature-icon img {
    width: 52px;
    min-width: 52px;
  }

  .rs-feature-area.rs-feature-three .rs-feature-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .rs-feature-area.rs-feature-three .rs-feature-descrip p {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media only screen and (max-width: 480px) {
  .rs-feature-area.rs-feature-three {
    padding: 32px 0 40px;
  }

  .rs-feature-area.rs-feature-three > .container {
    --bs-gutter-x: 1rem;
    padding-inline: 1rem;
  }

  .rs-feature-area.rs-feature-three .row.g-5 {
    --bs-gutter-y: 1.25rem;
  }

  .rs-feature-area.rs-feature-three .rs-feature-item {
    flex-wrap: nowrap;
  }
}

/* Documents page: leftover hero slider + photo breadcrumb from older seed */
.echo-documents-page > .rs-banner-area,
.echo-documents-page > .rs-breadcrumb-area {
  display: none !important;
}

.echo-documents-page .rs-banner-navigation,
.echo-documents-page .rs-banner-pagination {
  display: none !important;
}

/* Compact page header — title + lead + crumb, no slider, no extra photo */
.echo-page-masthead {
  --echo-navy: #0b1f3a;
  padding: 48px 0 36px;
  background: #f4f6f8;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.echo-page-masthead .rs-breadcrumb-bg {
  display: none;
}

.echo-page-masthead__inner {
  text-align: left;
  max-width: 760px;
}

.echo-page-masthead__title,
.echo-page-masthead .rs-breadcrumb-title {
  margin: 0 0 12px;
  color: var(--echo-navy);
  font-size: 40px;
  line-height: 1.15;
}

.echo-page-masthead__lead {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.echo-page-masthead__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.echo-page-masthead__crumb span + span::before {
  content: "/";
  margin-right: 10px;
  color: #9ca3af;
}

.echo-page-masthead__crumb a {
  color: var(--echo-navy);
}

.echo-page-masthead__crumb a:hover {
  color: #16345c;
}

@media only screen and (max-width: 767px) {
  .echo-page-masthead {
    padding: 32px 0 24px;
  }

  .echo-page-masthead__title,
  .echo-page-masthead .rs-breadcrumb-title {
    font-size: 30px;
  }
}

/* Documents cards — equal-height grid, media → title → meta → actions */
.rs-services-three.echo-documents {
  --echo-navy: #0b1f3a;
}

.rs-services-three.echo-documents .echo-document-grid {
  counter-reset: none;
}

.rs-services-three.echo-documents .echo-document-grid > [class*="col-"] {
  display: flex;
}

.rs-services-three.echo-documents .echo-document-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  overflow: hidden;
}

.rs-services-three.echo-documents .echo-document-card__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  background: #eef1f4;
  overflow: hidden;
}

.rs-services-three.echo-documents .echo-document-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-services-three.echo-documents .echo-document-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #f3f5f7 0%, #e6eaee 100%);
}

.rs-services-three.echo-documents .echo-document-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 20px 22px;
}

.rs-services-three.echo-documents .echo-document-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--echo-navy);
}

.rs-services-three.echo-documents .echo-document-card__title a {
  color: inherit;
}

.rs-services-three.echo-documents .echo-document-card__title a:hover {
  color: #16345c;
}

.rs-services-three.echo-documents .echo-document-card__meta {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.rs-services-three.echo-documents .echo-document-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
}

.rs-services-three.echo-documents .echo-document-card__open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--echo-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-services-three.echo-documents .echo-document-card__open.is-empty {
  visibility: hidden;
}

.rs-services-three.echo-documents .echo-document-card__download {
  min-height: 44px;
  padding-inline: 18px;
}

.rs-services-three.echo-documents .rs-services-number,
.rs-services-three.echo-documents .rs-services-number::before,
.rs-services-three.echo-documents .rs-services-number::after {
  display: none !important;
  content: none !important;
}

.rs-services-three.echo-documents .echo-empty-copy {
  margin: 0;
  color: #4b5563;
}

/* Factory + map: side-by-side, no overlapping full-bleed map */
.echo-factory-map {
  --echo-navy: #0b1f3a;
  padding-bottom: 80px;
}

.echo-factory-map__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.echo-factory-map__info,
.echo-factory-map__map {
  min-width: 0;
}

.echo-factory-map .rs-contact-wrapper {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 36px;
  background: var(--echo-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.echo-factory-map .rs-contact-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  font-size: 32px;
}

.echo-factory-map .rs-contact-btn {
  margin-top: 0;
  margin-bottom: 28px;
}

.echo-factory-map .rs-contact-btn .rs-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

.echo-factory-map .rs-contact-btn .rs-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--echo-navy);
}

.echo-factory-map .rs-contact-item {
  display: flex;
  gap: 10px;
}

.echo-factory-map .rs-contact-item:not(:last-child) {
  margin-bottom: 15px;
}

.echo-factory-map .rs-contact-item h6,
.echo-factory-map .rs-contact-item h6 a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.echo-factory-map .rs-contact-icon svg {
  width: 20px;
  height: 20px;
}

.echo-factory-map__map {
  background: #e8eaed;
  min-height: 360px;
}

.echo-factory-map__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1);
}

@media only screen and (max-width: 991px) {
  .echo-factory-map__grid {
    grid-template-columns: 1fr;
  }

  .echo-factory-map .rs-contact-wrapper {
    padding: 28px 24px;
  }

  .echo-factory-map .rs-contact-title {
    font-size: 26px;
  }

  .echo-factory-map__map,
  .echo-factory-map__map iframe {
    min-height: 280px;
  }
}

/* Product detail sibling sidebar */
.echo-product-detail .echo-product-sidebar .sidebar-widget-title {
  margin-bottom: 25px;
}

.echo-product-detail .echo-product-sidebar a {
  min-height: 44px;
}

/* 404 heading + home CTA (CONTENT may add a banner above via pageBodyHtml) */
.echo-not-found .echo-not-found-title {
  margin-bottom: 16px;
}

.echo-not-found .echo-not-found-copy {
  margin: 0 0 28px;
  color: #4b5563;
}

.echo-not-found .rs-btn {
  min-height: 44px;
}

/* Blog body: theme html is 10px, so rem here was ~11px / 460px-wide. Use px. */
.rs-blog-details-text.blog-post-body {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: #374151;
}

.rs-blog-details-title {
  font-size: 36px;
  line-height: 1.25;
}

@media only screen and (max-width: 767px) {
  .rs-blog-details-title {
    font-size: 28px;
  }

  .rs-blog-details-text.blog-post-body {
    font-size: 17px;
  }
}

.rs-blog-details-text.blog-post-body .blog-block {
  margin: 0 0 20px;
}

.rs-blog-details-text.blog-post-body p,
.rs-blog-details-text.blog-post-body li,
.rs-blog-details-text.blog-post-body .blog-block-paragraph,
.rs-blog-details-text.blog-post-body .blog-block-rich-text {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.rs-blog-details-text.blog-post-body .blog-block-heading,
.rs-blog-details-text.blog-post-body h2,
.rs-blog-details-text.blog-post-body h3 {
  margin: 32px 0 12px;
  font-size: 24px;
  line-height: 1.35;
  color: #0b1f3a;
}

.rs-blog-details-text.blog-post-body .blog-block-rich-text ul,
.rs-blog-details-text.blog-post-body .blog-block-rich-text ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.rs-blog-details-text.blog-post-body .blog-block-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid #2563eb;
  background: #f3f4f6;
  font-size: 18px;
}

.rs-blog-details-text.blog-post-body .blog-block-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
}

.rs-blog-details-text.blog-post-body .blog-block-cta {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: #0b1f3a;
  color: #fff;
}

.rs-blog-details-text.blog-post-body .blog-block-cta__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
}

.rs-blog-details-text.blog-post-body .blog-block-cta__button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}

.rs-blog-details-text.blog-post-body .blog-block-cta__button:hover {
  color: #fff;
  filter: brightness(1.08);
}

/* Product listing — equal-height cards, 16:9 cover, 3-line excerpt */
.echo-product-grid {
  --echo-navy: #0b1f3a;
}

.echo-product-grid .row {
  align-items: stretch;
}

.echo-product-grid [class*="col-"] {
  display: flex;
}

.echo-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  overflow: hidden;
}

.echo-product-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: #eef1f4;
  overflow: hidden;
}

.echo-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.echo-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 20px 22px;
}

.echo-product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--echo-navy);
}

.echo-product-card__title a {
  color: inherit;
}

.echo-product-card__title a:hover {
  color: #16345c;
}

.echo-product-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.echo-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
}

.echo-product-card__actions .rs-text-btn,
.echo-product-card__actions .rs-square-btn {
  min-height: 44px;
}

.echo-product-grid .rs-services-number,
.echo-product-grid .rs-services-number::before,
.echo-product-grid .rs-services-number::after,
.echo-product-grid .process-counts,
.echo-product-grid .process-counts::before,
.echo-product-grid .process-counts::after {
  display: none !important;
  content: none !important;
}

/* Product detail — gallery + tabs + FAQ + quote */
.echo-product-detail {
  --echo-navy: #0b1f3a;
}

.echo-product-gallery {
  margin-bottom: 24px;
}

.echo-product-gallery__main {
  aspect-ratio: 16 / 9;
  background: #eef1f4;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.08);
}

.echo-product-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.echo-product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.echo-product-gallery__thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: #eef1f4;
  overflow: hidden;
  cursor: pointer;
}

.echo-product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.echo-product-gallery__thumb.is-active {
  border-color: var(--echo-navy);
}

.echo-product-gallery__thumb:focus-visible {
  outline: 2px solid var(--echo-navy);
  outline-offset: 2px;
}

.echo-product-detail__title {
  margin: 0 0 12px;
  color: var(--echo-navy);
}

.echo-product-detail__summary {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #374151;
}

.echo-product-tabs {
  margin-top: 8px;
}

.echo-product-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.12);
}

.echo-product-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.echo-product-tabs__tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.echo-product-tabs__tab.is-active {
  color: var(--echo-navy);
}

.echo-product-tabs__tab.is-active::after {
  background: var(--echo-navy);
}

.echo-product-tabs__tab:focus-visible {
  outline: 2px solid var(--echo-navy);
  outline-offset: 2px;
}

.echo-product-tabs__panel {
  margin: 0;
  padding: 20px 0 0;
}

.echo-product-tabs__panel[hidden] {
  display: none;
}

.echo-product-faq__item {
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.echo-product-faq__item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--echo-navy);
  list-style: none;
}

.echo-product-faq__item summary::-webkit-details-marker {
  display: none;
}

.echo-product-faq__answer {
  padding: 0 0 16px;
  color: #374151;
  line-height: 1.6;
}

.echo-product-quote-intro {
  margin: 0 0 16px;
  color: #4b5563;
}

.echo-product-quote .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--echo-navy);
}

.echo-product-quote .form-control,
.echo-product-quote .rs-btn,
.echo-product-quote button[type="submit"] {
  min-height: 44px;
}

.echo-product-quote textarea.form-control {
  min-height: 120px;
}
