/*
 * OpticsMag landing pages (homepage + category pages), replacing the old Thrive Architect layouts.
 * Loaded only by page-templates/full-width-sections.php. Class reference: README.md next to this file.
 */

.om-landing {
  --om-green: #537d61;
  --om-green-dark: #154326;
  --om-orange: #ff6527;
  --om-blue-light: #addeec;
  --om-blue: #2f8ae4;
  --om-text: #333;
  --om-heading: #464545;
  --om-link: #46aa34;
  font-family: Roboto, sans-serif;
  color: var(--om-text);
  overflow-x: hidden;
}

.om-landing *,
.om-landing *::before,
.om-landing *::after {
  box-sizing: border-box;
}

.om-landing h1,
.om-landing h2,
.om-landing h3,
.om-landing h4,
.om-landing figure {
  margin: 0;
  font-family: Roboto, sans-serif;
}

/* The theme sets p { margin-bottom: 20px !important }. */
.om-landing p {
  margin: 0 !important;
  font-family: Roboto, sans-serif;
}

.om-landing img {
  max-width: 100%;
  height: auto;
}

.om-landing a {
  color: var(--om-link);
  text-decoration: none;
}

.om-landing a:hover {
  text-decoration: underline;
}

.om-wrap {
  width: min(1190px, 100% - 32px);
  margin-inline: auto;
}

.om-narrow {
  width: min(907px, 100%);
  margin-inline: auto;
}

/* Hero ------------------------------------------------------------------ */

.om-hero {
  display: flex;
  align-items: center;
  min-height: 374px;
  padding: 40px 0;
  background: var(--om-green-dark) 50% 50% / cover no-repeat;
  color: #fff;
}

.om-hero__title {
  font-size: 40px !important;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.om-hero--home {
  min-height: 606px;
  background-color: #eaeaea;
  background-image: url("/wp-content/uploads/2020/04/Hero-Banner.jpg");
}

.om-hero__kicker {
  font-size: 40px !important;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.om-hero__brand {
  display: block;
  margin-top: 2px;
  font-size: 50px;
  font-weight: 900;
  line-height: 50px;
  text-transform: none;
  color: #acdceb;
}

.om-landing .om-hero__lead {
  max-width: 580px;
  margin-top: 2px !important;
  font-size: 21.12px;
  line-height: 38px;
  color: #fff;
}

.om-button {
  display: inline-block;
  margin-top: 22px;
  padding: 20px 60px;
  border-radius: 20px;
  background: #ff712c;
  color: #fff !important;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 1px;
  transition: background-color 0.2s;
}

.om-button:hover {
  background: #e85a17;
  text-decoration: none !important;
}

.om-hero--spotting {
  background-image: linear-gradient(272deg, rgba(255, 255, 255, 0) 21%, #154326 60%), url("/wp-content/uploads/2020/05/spottings-scopes-image.png");
  background-position: 50% 50%, 50% 28%;
  background-size: 100% 100%, cover;
}

.om-hero--binoculars {
  background-image: url("/wp-content/uploads/2020/05/Spotting-scopes-banner.jpg");
}

.om-hero--telescopes {
  background-image: linear-gradient(297deg, rgba(56, 99, 72, 0) 52%, #154326 76%), url("/wp-content/uploads/2020/05/telescopes.png");
  background-size: 100% 100%, cover;
}

.om-hero--birding {
  background-image: url("/wp-content/uploads/2020/05/birding.png");
  background-position: 50% 33%;
}

/* Sections -------------------------------------------------------------- */

.om-section {
  padding: 87px 0;
}

.om-section__title {
  margin-bottom: 52px !important;
  text-align: center;
  font-size: 28.8px !important;
  font-weight: 500;
  line-height: 1.15;
  color: var(--om-heading);
}

.om-section--green {
  background: var(--om-green) url("/wp-content/uploads/2020/04/OpticsMag-Icons-BG.png") 50% 0 repeat;
}

.om-section--popular {
  padding: 57px 0 77px;
  background: var(--om-green) url("/wp-content/uploads/2020/05/OpticsMag-Icons-BG1.png") 50% 0 repeat;
}

.om-section--popular .om-section__title {
  color: #fff;
}

.om-section--reviews {
  padding: 27px 0 110px;
  background: #fff url("/wp-content/uploads/2020/04/OpticsMage-Page-BG.png") 50% 0 repeat;
}

.om-section--reviews .om-section__title {
  margin-bottom: 30px !important;
}

/* Post grids ([om_posts]) ------------------------------------------------- */

.om-posts {
  display: grid;
}

.om-post {
  position: relative;
  background: #fff;
}

.om-post__media {
  display: block;
  overflow: hidden;
  background: #ddd;
}

.om-landing .om-post__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.om-post__title {
  color: var(--om-heading);
}

.om-landing .om-post__title a {
  color: inherit;
}

.om-post__more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--om-orange);
}

.om-post__more svg {
  height: 55%;
  fill: #fff;
}

.om-post__more:hover {
  background: #e85a17;
}

/* Cards: homepage "Popular Posts". */
.om-posts--cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 20px;
}

.om-posts--cards .om-post {
  display: flex;
  flex-direction: column;
  min-height: 393px;
}

.om-posts--cards .om-post__media {
  height: 205px;
}

.om-posts--cards .om-post__body {
  position: relative;
  flex: 1;
  width: calc(100% - 58px);
  margin: -40px auto 0;
  padding: 18px 16px 52px;
  background: #fff;
  text-align: center;
}

.om-landing .om-post__date {
  margin-bottom: 14px !important;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 2px;
  color: #999;
}

.om-posts--cards .om-post__title {
  margin-bottom: 14px !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.05;
}

.om-posts--cards .om-post__excerpt {
  font-size: 14px;
  line-height: 22.4px;
  color: #000;
}

.om-posts--cards .om-post__more {
  right: 14px;
  bottom: 22px;
  width: 24px;
  height: 24px;
  box-shadow: -10px 12px 0 #bdbdbd;
}

/* List: category page posts. */
.om-posts--list {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 48px;
  width: min(1158px, 100%);
  margin-inline: auto;
}

.om-posts--list .om-post {
  display: flex;
  min-height: 168px;
  border-bottom: 3px solid var(--om-blue-light);
}

.om-posts--list .om-post__media {
  position: relative;
  flex: 0 0 167px;
}

.om-posts--list .om-post__img {
  position: absolute;
  inset: 0;
}

.om-posts--list .om-post__body {
  flex: 1;
  padding: 20px 22px 52px;
}

.om-posts--list .om-post__title {
  font-size: 18px !important;
  font-weight: 500;
  line-height: 27px;
}

.om-posts--list .om-post__excerpt {
  margin-top: 4px !important;
  font-size: 16px;
  line-height: 23.2px;
  color: #454545;
}

.om-posts--list .om-post__more {
  width: 32px;
  height: 32px;
}

/* Review tiles (homepage) ----------------------------------------------- */

/* Each tile: gradient square, a white card behind it (up and to the right), the product image
   overflowing the top-left corner and the label hanging off the left edge. */
.om-tiles {
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 90px 78px;
  padding-top: 45px;
}

.om-landing .om-tile {
  position: relative;
  display: block;
  width: 238px;
  height: 230px;
  background: linear-gradient(141deg, var(--om-blue-light) 10%, #509479 90%);
  box-shadow: 5px 9px 10px 2px rgba(106, 116, 119, 0.1);
  text-decoration: none;
}

.om-tile::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 20px;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

.om-landing .om-tile img {
  position: absolute;
  top: -35px;
  left: -40px;
  display: block;
  width: 232px;
  max-width: none;
}

.om-tile__label {
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--om-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 21.6px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.om-tile:hover .om-tile__label {
  background: #e85a17;
}

/* Search ([om_search]) and search bands --------------------------------- */

.om-search {
  display: flex;
  width: 100%;
  margin: 0;
}

.om-landing .om-search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 25px 0 0 25px;
  background: #fff;
  color: #50565f;
  font: 16px Roboto, sans-serif;
  box-shadow: none;
}

.om-landing .om-search__button {
  display: flex;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 25px 25px 0;
  background: var(--om-orange);
  cursor: pointer;
}

.om-search__button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.om-search__button:hover {
  background: #e85a17;
}

/* Homepage "Have a question" band. */
.om-ask {
  display: flex;
  align-items: center;
  min-height: 274px;
  padding: 40px 0;
  background: #333 url("/wp-content/uploads/2020/04/OpticsMag-Footer-BG.jpg") 50% 50% / cover no-repeat;
}

.om-ask__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.om-ask__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* Category page search band. */
.om-searchband {
  margin-top: 64px;
  padding: 31px 16px;
  background: linear-gradient(115deg, var(--om-blue-light) 30%, #509479 75%);
}

.om-searchband .om-search {
  width: min(556px, 100%);
  margin-inline: auto;
}

/* Category page content blocks ------------------------------------------ */

.om-lead {
  margin: 32px 0 30px !important;
  font-size: 28px !important;
  font-weight: 500;
  line-height: 1.3;
  color: var(--om-text);
}

.om-lead--small {
  margin: 30px 0 14px !important;
  font-size: 22px !important;
}

.om-cta-title {
  margin: 44px 0 56px !important;
  font-size: 28.8px !important;
  font-weight: 500;
  line-height: 1.25;
  color: var(--om-heading);
}

.om-cta-title--center {
  text-align: center;
}

.om-cta-title--bold {
  font-weight: 700;
  letter-spacing: 1px;
}

.om-prose {
  margin-top: 40px;
}

.om-prose p {
  margin-bottom: 16px !important;
  font-size: 16px;
  line-height: 24px;
}

.om-prose--small p {
  font-size: 14px;
  line-height: 22px;
}

.om-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.om-cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.om-card h3 {
  font-size: 20px !important;
  font-weight: 500;
  line-height: 1.3;
  color: var(--om-text);
}

.om-card p {
  font-size: 16px;
  line-height: 1.5;
}

/* Spotting scopes: flat grey cards. */
.om-card--flat {
  padding: 20px 20px 40px;
  background: #f5f5f5;
  border-bottom: 3px solid #cbd8e6;
}

.om-card--flat h3 {
  margin-bottom: 18px !important;
  text-align: center;
}

/* Telescopes: outlined cards with a short blue underline. */
.om-card--outlined {
  padding: 20px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  background: #f9f9f9;
  text-align: left;
}

.om-card--outlined h3 {
  margin-bottom: 26px !important;
  font-size: 17px !important;
}

.om-card--outlined h3::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 10px;
  background: #8fc3e4;
}

.om-card--outlined p {
  font-size: 14px;
  line-height: 1.6;
}

.om-card--outlined img {
  display: block;
  margin: 40px auto 0;
}

/* Binoculars: grey panel with an intro and icon cards. */
.om-panel {
  padding: 20px 16px 20px;
  background: #f5f5f5;
}

.om-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.om-intro h2 {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1;
  color: var(--om-text);
}

.om-intro p {
  font-size: 16px;
  line-height: 24px;
}

.om-card--icon {
  position: relative;
  padding: 17px 17px 18px;
  background: #fff;
  box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.05);
}

.om-card--icon::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 17px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9f5fb;
}

.om-card--icon::after {
  content: "";
  position: absolute;
  top: 32px;
  right: 32px;
  width: 20px;
  height: 20px;
  background: var(--om-blue);
  opacity: 0.7;
  -webkit-mask: var(--om-icon) 50% 50% / contain no-repeat;
  mask: var(--om-icon) 50% 50% / contain no-repeat;
}

.om-card--icon h3 {
  margin-top: 46px !important;
  padding-bottom: 6px;
  border-bottom: 2px solid #8fc3e4;
  font-size: 18px !important;
  line-height: 1.2;
}

.om-card--icon img {
  display: block;
  height: 135px;
  width: auto;
  margin: 18px auto;
  object-fit: contain;
}

.om-card--icon p {
  font-size: 14px;
  line-height: 24.5px;
}

/* Birding: white panel with a soft shadow and the logo watermark. */
.om-sheet {
  padding: 50px 110px 40px;
  background: #fff url("/wp-content/uploads/2020/05/Content-BG.png") 100% 100% no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 84px;
}

.om-sheet h2 {
  margin-bottom: 30px !important;
  text-align: center;
  font-size: 28px !important;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--om-text);
}

.om-sheet p {
  margin-bottom: 18px !important;
  font-size: 14px;
  line-height: 1.6;
}

.om-sheet figure {
  width: fit-content;
  margin: 50px auto 30px;
}

.om-sheet figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}


/* Responsive ------------------------------------------------------------ */

@media (max-width: 1023px) {
  .om-posts--cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .om-posts--list {
    grid-template-columns: 1fr;
  }

  .om-sheet {
    padding: 40px;
  }
}

@media (max-width: 767px) {
  .om-hero {
    min-height: 260px;
  }

  .om-hero--home {
    min-height: 480px;
  }

  .om-hero__title {
    font-size: 32px !important;
    line-height: 44px;
  }

  .om-hero__kicker {
    font-size: 30px !important;
    line-height: 34px;
  }

  .om-hero__brand {
    font-size: 40px;
    line-height: 44px;
  }

  .om-hero__lead {
    font-size: 18px;
    line-height: 30px;
  }

  .om-button {
    padding: 16px 40px;
  }

  .om-section,
  .om-section--popular {
    padding: 48px 0;
  }

  .om-section__title {
    margin-bottom: 32px !important;
    font-size: 26px !important;
  }

  .om-posts--cards,
  .om-cards,
  .om-cards--2,
  .om-intro,
  .om-ask__inner {
    grid-template-columns: 1fr;
  }

  .om-intro {
    gap: 16px;
  }

  .om-posts--list .om-post__media {
    flex-basis: 120px;
  }

  .om-posts--list .om-post__body {
    padding: 14px 14px 48px;
  }

  .om-posts--list .om-post__title {
    font-size: 17px !important;
    line-height: 24px;
  }

  .om-posts--list .om-post__excerpt {
    font-size: 15px;
  }

  .om-ask__title {
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
  }

  .om-searchband {
    margin-top: 32px;
    padding: 24px 16px;
  }

  .om-lead {
    font-size: 24px !important;
  }

  .om-cta-title {
    margin: 32px 0 40px !important;
    font-size: 24px !important;
  }

  .om-sheet {
    padding: 28px 20px;
  }
}

/* Card icons (Font Awesome paths from the old Thrive pages) -------------- */
.om-card--eye { --om-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 576 512%22%3E%3Cpath d=%22M569.354 231.631C512.97 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-102.556 0-192.091-54.701-240-136 44.157-74.933 123.677-127.27 216.162-135.007C273.958 131.078 280 144.83 280 160c0 30.928-25.072 56-56 56s-56-25.072-56-56l.001-.042C157.794 179.043 152 200.844 152 224c0 75.111 60.889 136 136 136s136-60.889 136-136c0-31.031-10.4-59.629-27.895-82.515C451.704 164.638 498.009 205.106 528 256c-47.908 81.299-137.444 136-240 136z%22%3E%3C/path%3E%3C/svg%3E"); }
.om-card--binoculars { --om-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z%22%3E%3C/path%3E%3C/svg%3E"); }
.om-card--target { --om-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 496 512%22%3E%3Cpath d=%22M241.5 240.7L20.83 303.41c-15.63 4.44-17.46 25.86-2.82 32.89l55.27 26.54-60.59 60.59c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c6.25 6.25 14.44 9.37 22.63 9.37s16.38-3.12 22.63-9.37l60.59-60.59 26.54 55.27c3.25 6.76 9.56 10.01 15.86 10.01 7.34 0 14.64-4.41 17.04-12.83l62.72-220.67c3.77-13.3-8.53-25.57-21.82-21.79zm-61.35 197.32l-29.7-61.85-92.51 92.51-22.62-22.62 92.51-92.51-61.84-29.71 159.5-45.33-45.34 159.51zM328 256c0-44.11-35.89-80-80-80-33.74 0-62.53 21.07-74.26 50.69C228.07 211.24 236.67 208 248 208c26.47 0 48 21.53 48 48 0 11.26-3.1 19.44-18.69 74.26C306.93 318.53 328 289.74 328 256zm-76.08 163.61C340.71 417.47 412 345.29 412 256c0-90.65-73.36-164-164-164-89.31 0-161.47 71.3-163.61 160.08l32.95-9.36C124.12 176.23 179.76 124 248 124c72.79 0 132 59.21 132 132 0 68.23-52.24 123.88-118.71 130.66l-9.37 32.95zM248 8C111.03 8 0 119.03 0 256c0 7.3.47 14.49 1.09 21.63 3.46-1.97 7-3.87 10.99-5l20.47-5.82c-.18-3.6-.55-7.16-.55-10.81 0-119.1 96.9-216 216-216s216 96.9 216 216-96.9 216-216 216c-3.65 0-7.21-.37-10.81-.55l-5.82 20.46c-1.14 4.02-3.15 7.5-5.14 10.98 7.19.63 14.42 1.1 21.77 1.1 136.97 0 248-111.03 248-248S384.97 8 248 8z%22%3E%3C/path%3E%3C/svg%3E"); }
