@font-face {
  font-family: "dcom-ico-font";
  src: url("../assets/fonts/dcom-ico-font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  height: 100%;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
}

h1,
h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.top-banner {
  background-color: #222222;
  color: #ffffff;
  padding: 20px 16px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.top-banner-right {
  display: none;
}

.top-banner p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
}

.top-banner a {
  color: #fdd7cf;
  text-decoration: underline;
  cursor: pointer;
}

.top-banner a:hover {
  opacity: 0.8;
}

.top-banner .banner-logo {
  display: none;
}

.main-content {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 60px;
}

.divider {
  width: 9px;
  background-color: #222222;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .divider {
    width: 4px;
  }
}

.left-section,
.right-section {
  flex: 1;
  padding: 100px;
  min-height: 0;
  overflow-y: auto;
  position: relative;
}

.left-section {
  /* color: #dc4e3c; */
  color: #1f5ea8;
}

.right-section {
  color: #1f5ea8;
}

@media (min-width: 1024px) {
  .left-section {
    background-image: url("../assets/images/left-image.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .right-section {
    background-image: url("../assets/images/right-image.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }
}

.logo {
  font-size: 0;
  display: block;
  transform: translateZ(0px);
  margin-bottom: 14px;
}

.logo:before {
  font-size: 54px;
}

.left-section .logo:before {
  /* color: #dc4e3c; */
  color: #1f5ea8;
}

.right-section .logo:before {
  color: #1f5ea8;
}

.logo h1 {
  font-size: 0;
  position: absolute;
}

[class^="icon-"],
[class*=" icon-"] {
  font-family: "dcom-ico-font" !important;
  speak-as: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-delivery-logo:before {
  content: "\e609";
}

.tags {
  display: flex;
  align-items: center;
  flex-flow: wrap;
  gap: 13px;
  margin: 30px 0;
}

.tag {
  background-color: #ffffff;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 16px;
  font-weight: 700;
}

.left-section .tag {
  /* color: #dc4e3c; */
  color: #1f5ea8;
}

.right-section .tag {
  color: #1f5ea8;
}

.description {
  font-size: 18px;
  font-weight: 400;
  color: #2a2a2a;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 32px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

/* .left-section .button {
  background-color: #dc4e3c;
}

.left-section .button:hover {
  background-color: #c03d2c;
}

.left-section .button:focus {
  outline: 2px solid #dc4e3c;
  outline-offset: 2px;
} */

.left-section .button {
  background-color: #1f5ea8;
}

.left-section .button:hover {
  background-color: #1a4d8a;
}

.left-section .button:focus {
  outline: 2px solid #1f5ea8;
  outline-offset: 2px;
}

.right-section .button {
  background-color: #1f5ea8;
}

.right-section .button:hover {
  background-color: #1a4d8a;
}

.right-section .button:focus {
  outline: 2px solid #1f5ea8;
  outline-offset: 2px;
}

.button-disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
}

.button-disabled:hover {
  background-color: #9ca3af !important;
}

.reviews {
  margin-top: 40px;
}

.reviews.carousel-container {
  display: block;
  overflow: hidden;
  position: relative;
}

.reviews.carousel-container .carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease;
  will-change: transform;
  gap: 16px;
}

.reviews.carousel-container .review-card {
  flex: 0 0 calc(50% - 16px / 2);
  min-width: 0;
  height: 100%;
  align-self: stretch;
  cursor: pointer;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reviews.carousel-container .review-card {
    flex: 0 0 calc(50% - 16px / 2);
    min-width: 0;
    height: auto;
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  .reviews.carousel-container .review-card {
    flex: 0 0 100%;
    min-width: 0;
    height: auto;
  }
}

.review-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 7px;
  padding: 16px 16px 26px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.review-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #2a2a2a;
  line-height: 24px;
}

.review-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star {
  width: 14px;
  height: 14px;
  display: block;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 400;
  color: #4a4a4a;
}

.review-text {
  font-size: 14px;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 20px;
  margin: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.left-section .carousel-dot.active {
  /* background-color: #dc4e3c; */
  background-color: #1f5ea8;
}

.right-section .carousel-dot.active {
  background-color: #1f5ea8;
}

.mobile-swipe-banner {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .left-section,
  .right-section {
    padding: 30px;
  }
}

@media (max-width: 1500px) {
  .left-section,
  .right-section {
    padding: 50px 50px 20px 50px;
  }
}

/* Tablet Portrait & Mobile (stacked layout) */
@media (max-width: 1023px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .top-banner {
    position: relative;
    padding: 16px 12px;
  }

  .top-banner p {
    font-size: 14px;
  }

  h1,
  h2 {
    font-size: 28px;
  }

  .main-content {
    flex-direction: column;
    margin-top: 0;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .divider {
    display: none;
  }

  .left-section,
  .right-section {
    width: 100%;
    padding: 24px 24px 48px 24px;
    height: auto;
    overflow: visible;
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .left-section {
    background-image: url("../assets/images/left-image.png");
  }

  .right-section {
    background-image: url("../assets/images/right-image.png");
    background-position: inherit;
  }

  .logo:before {
    font-size: 42px;
  }

  .tags {
    gap: 8px;
    margin: 24px 0;
  }

  .tag {
    font-size: 14px;
  }

  .description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .left-section {
    border-bottom: 2px solid #222222;
  }

  .review-card {
    padding: 14px;
  }

  .review-title {
    font-size: 15px;
  }

  .review-text {
    font-size: 13px;
  }
}

/* MOBILE SWIPABLE SECTIONS */
@media (max-width: 767px) {
  .main-content {
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .left-section {
    border-bottom: none;
  }

  .left-section,
  .right-section {
    flex: 0 0 100%;
    scroll-snap-align: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 200px;
  }

  .left-section .logo,
  .right-section .logo {
    display: none;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .button-icon {
    display: none;
  }

  .right-section {
    display: none; /* Initially hidden, shown via JS on swipe */
  }

  .right-section.show {
    display: block;
  }

  .left-section.hide {
    display: none;
  }

  .top-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
  }

  .top-banner-left {
    /* background-color: #dc4e3c; */
    background-color: #1f5ea8;
  }

  .top-banner-right {
    display: none;
    background-color: #1f5ea8;
  }

  .top-banner .banner-logo {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
  }

  .top-banner .banner-logo:before {
    color: #ffffff;
  }

  .show-right-section .top-banner-left {
    display: none;
  }

  .show-right-section .top-banner-right {
    display: flex;
  }

  .mobile-swipe-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    display: block;
    background-color: #ffffff;
    padding: 24px 16px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  }

  .swipe-text {
    font-size: 15px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 16px 0;
    padding-top: 10px;
  }

  .swipe-logo {
    font-size: 42px;
    line-height: 1;
  }

  .left-section .swipe-logo:before {
    content: "\e609";
  }

  .right-section .swipe-logo:before {
    content: "\e609"; /* NOTE: we will need to replace this with the other logo once we get it. (eats.com) */
  }

  .left-section .swipe-logo {
    color: #1f5ea8;
  }

  .right-section .swipe-logo {
    /* color: #dc4e3c; */
    color: #1f5ea8;
  }

  .section-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
  }

  .section-dot.active {
    background-color: #222222;
  }
}
