/* Shared redesign treatment for editorial and customer-service page templates. */

body.manta-content-page {
  background: var(--manta-paper);
  color: var(--manta-ink);
  font-family: var(--manta-font-sans);
  font-weight: 300;
}

.manta-content-main :is(p, li) {
  color: #504c48;
  font-family: var(--manta-font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.manta-content-main :is(h1, h2, h3, .section-heading, .section-subheading) {
  color: var(--manta-ink);
  font-family: var(--manta-font-serif);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
}

.manta-content-main :is(h1, h2) em {
  color: var(--manta-accent-deep);
  font-style: italic;
}

.manta-content-hero {
  min-height: 0;
  padding: 28px 0 44px;
  display: flex;
  align-items: center;
  background: var(--manta-cream);
}

.manta-content-hero__inner {
  width: min(var(--manta-page-width), calc(100% - 60px));
  margin-inline: auto;
}

.manta-content-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--manta-accent-deep) !important;
  font: 700 11px/1.3 var(--manta-font-sans) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
}

body.manta-content-page .manta-content-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.manta-content-hero__caption {
  max-width: 600px;
  margin-top: 24px;
}

.manta-content-hero__caption :is(p, h2, h3),
.manta-content-hero__caption {
  color: #504c48;
  font: 300 17px/1.58 var(--manta-font-sans);
  letter-spacing: 0.02em;
}

.manta-content-main .breadcrumbs {
  padding: 12px 0;
  border-top: 1px solid var(--manta-line);
  border-bottom: 1px solid var(--manta-line);
  background: rgba(255, 255, 255, 0.58) !important;
}

.manta-content-main .breadcrumbs .path .width-80 {
  width: min(var(--manta-page-width), calc(100% - 60px));
  margin-inline: auto;
}

.manta-content-main .breadcrumbs :is(p, a, span) {
  margin: 0;
  color: var(--manta-muted);
  font: 500 10px/1.4 var(--manta-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manta-content-main :is(.intro, .story-intro, .reviews-grid, .delivery, .returns, .video-section, .product-link-quote) {
  margin-top: 0;
  padding-block: clamp(64px, 8vw, 112px);
}

.manta-content-main :is(.intro, .story-intro, .reviews-grid, .delivery, .returns, .video-section, .product-link-quote) > .container {
  width: min(1120px, calc(100% - 60px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.manta-content-main .section-title {
  margin-bottom: 34px;
  text-align: left;
}

.manta-content-main :is(.section-heading, .delivery h2, .returns h2) {
  margin: 0;
  padding: 0 !important;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-align: left;
}

.manta-content-main .section-subheading {
  margin: 10px 0 0;
  padding: 0 !important;
  color: var(--manta-accent-deep);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

.manta-content-main .line-container {
  margin-block: 36px;
}

.manta-content-main .line-container hr {
  border-color: var(--manta-line);
}

.manta-content-main .wave {
  display: none;
}

.manta-content-main :is(.btn.btn-primary, .button-container .btn) {
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--manta-ink);
  border-radius: 0;
  background: var(--manta-ink);
  color: #fff;
  font: 700 10px/1 var(--manta-font-sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Why it works */
body.page-template-how-it-works .intro {
  text-align: left;
}

body.page-template-how-it-works .intro .video {
  margin-block: 42px !important;
}

body.page-template-how-it-works .intro video,
body.page-template-how-it-works .featured-image img {
  width: 100%;
  border-radius: 2px;
}

body.page-template-how-it-works .featured-image .container,
body.page-template-how-it-works .box-info .container {
  width: min(var(--manta-page-width), calc(100% - 60px));
  max-width: none;
  margin-inline: auto;
}

body.page-template-how-it-works .box-info {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--manta-panel-soft);
}

body.page-template-how-it-works .box-info .content {
  align-items: stretch;
}

body.page-template-how-it-works .box-info .text {
  padding: clamp(34px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--manta-cream);
  text-align: left !important;
}

body.page-template-how-it-works .box-info :is(h2, p) {
  text-align: left !important;
}

body.page-template-how-it-works .reviews-full {
  padding: clamp(36px, 5vw, 64px) !important;
  background: var(--manta-review);
}

/* Our story */
body.page-template-our-story .story-intro .content {
  max-width: 900px;
  margin-inline: auto;
}

body.page-template-our-story .story-intro video {
  width: 100%;
}

body.page-template-our-story .review-text-italic p,
body.page-template-our-story .product-link-quote .review-text p {
  color: var(--manta-ink);
  font: italic 400 clamp(24px, 3vw, 38px)/1.2 var(--manta-font-serif);
  letter-spacing: -0.015em;
}

body.page-template-our-story .full-width-block {
  margin: 0;
  background: var(--manta-panel-soft);
}

body.page-template-our-story .full-width-block .text {
  padding: clamp(44px, 7vw, 100px);
  background: var(--manta-cream);
}

body.page-template-our-story .product-link-quote .content {
  align-items: center;
}

/* Manta Cares shares the same masthead while retaining its ACF-driven grids. */
body.page-template-page-manta-cares .manta-cares-content {
  width: min(1120px, calc(100% - 60px));
  max-width: none;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

body.page-template-page-manta-cares .manta-cares-container {
  display: none;
}

body.page-template-page-manta-cares .manta-cares-grid-content-item__content,
body.page-template-page-manta-cares .manta-cares-grid-stat-item-stats-stat__content {
  color: #504c48;
  font-family: var(--manta-font-sans);
  font-weight: 300;
  letter-spacing: 0.02em;
}

body.page-template-page-manta-cares .manta-cares-grid-stat-item-stats-stat__heading {
  color: var(--manta-ink) !important;
  font-family: var(--manta-font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
}

body.page-template-page-manta-cares :is(.manta-cares-grid-image-item__button, .manta-cares-grid-content-item__button) {
  min-height: 46px;
  border: 1px solid var(--manta-ink) !important;
  border-radius: 0;
  background: var(--manta-ink) !important;
  color: #fff !important;
  font: 700 10px/1 var(--manta-font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reviews */
body.page-template-reviews .reviews-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.page-template-reviews .trustpilot-widget {
  min-height: 40px;
  max-width: 100%;
  padding-block: 8px;
  transform-origin: center;
}

@media (min-width: 768px) {
  body.page-template-reviews .trustpilot-widget {
    transform: scale(1.4);
  }
}

@media (min-width: 1050px) {
  body.page-template-reviews .trustpilot-widget {
    transform: scale(2);
  }
}

body.page-template-reviews .review-single {
  width: auto;
  margin: 0;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--manta-line);
  background: #fff;
}

body.page-template-reviews .review-single .quotes-1 {
  width: 30px;
  position: static;
  margin-bottom: 18px;
  opacity: 0.32;
}

body.page-template-reviews .review-single .name {
  color: var(--manta-ink);
  font: 500 19px/1.2 var(--manta-font-serif);
}

body.page-template-reviews .featured-review {
  margin: 0;
  padding-block: clamp(72px, 9vw, 120px);
}

body.page-template-reviews .featured-review .title h2,
body.page-template-reviews .featured-review .name {
  color: #fff;
  font-family: var(--manta-font-serif);
  font-weight: 400;
}

body.page-template-reviews .featured-review .text,
body.page-template-reviews .featured-review .text :is(p, li),
body.page-template-reviews .featured-review .role {
  color: #fff;
}

body.page-template-reviews .testimonial {
  margin-top: 0;
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--manta-panel-soft);
}

/* Delivery and returns */
body.page-template-delivery-returns .delivery .content,
body.page-template-delivery-returns .returns .content {
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--manta-line);
  background: #fff;
}

body.page-template-delivery-returns .delivery .text {
  width: 100%;
  margin: 0;
  text-align: left;
}

body.page-template-delivery-returns .delivery .region {
  margin-top: 44px;
  justify-content: flex-start;
  gap: 30px;
}

body.page-template-delivery-returns .region .image {
  width: 72px;
  flex: none;
}

body.page-template-delivery-returns .region .info {
  width: auto;
  max-width: 760px;
}

body.page-template-delivery-returns .delivery h3 {
  margin: 0 0 10px;
  color: var(--manta-ink);
  font: 500 24px/1.1 var(--manta-font-serif);
}

body.page-template-delivery-returns .delivery .line-container {
  margin-block: 44px;
}

body.page-template-delivery-returns .returns {
  background: var(--manta-cream);
}

body.page-template-delivery-returns .returns p {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .manta-content-main :is(p, li) {
    font-size: 14px;
    line-height: 1.58;
  }

  .manta-content-hero {
    min-height: 330px;
    padding: 72px 0 64px;
  }

  .manta-content-hero__inner,
  .manta-content-main .breadcrumbs .path .width-80,
  .manta-content-main :is(.intro, .story-intro, .reviews-grid, .delivery, .returns, .video-section, .product-link-quote) > .container,
  body.page-template-how-it-works .featured-image .container,
  body.page-template-how-it-works .box-info .container {
    width: calc(100% - 36px);
  }

  body.manta-content-page .manta-content-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .manta-content-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.16em !important;
  }

  .manta-content-hero__caption :is(p, h2, h3),
  .manta-content-hero__caption {
    font-size: 14px;
    line-height: 1.5;
  }

  .manta-content-main :is(.intro, .story-intro, .reviews-grid, .delivery, .returns, .video-section, .product-link-quote) {
    padding-block: 56px;
  }

  .manta-content-main :is(.section-heading, .delivery h2, .returns h2) {
    font-size: clamp(34px, 10vw, 44px);
  }

  body.page-template-how-it-works .box-info .content,
  body.page-template-our-story :is(.full-width-block, .product-link-quote) .content,
  body.page-template-reviews .testimonial .content {
    display: block;
  }

  body.page-template-how-it-works .box-info :is(.image, .text),
  body.page-template-our-story :is(.full-width-block, .product-link-quote) :is(.image, .text, .info),
  body.page-template-reviews .testimonial :is(.image, .info) {
    width: 100%;
  }

  body.page-template-reviews .reviews-container {
    grid-template-columns: 1fr;
  }

  body.page-template-page-manta-cares .manta-cares-content {
    width: calc(100% - 36px);
    padding-block: 56px;
  }

  body.page-template-reviews .featured-review .content {
    width: 100%;
    padding-left: 38px;
  }

  body.page-template-delivery-returns .delivery .region {
    align-items: flex-start;
  }

  body.page-template-delivery-returns .region .image {
    width: 54px;
    margin-bottom: 12px;
  }

  body.page-template-delivery-returns .region .info {
    width: 100%;
  }
}
