/* Final launch-specific structure for the bilingual Rogue Terrapin website. */

.rt-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rt-about {
  padding: 34px 0 38px;
  border-top: 1px solid rgba(73, 65, 49, .08);
}

.rt-about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.22fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.rt-about h2 {
  max-width: 560px;
  margin: 0;
  color: #2f2a23;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.rt-about-copy {
  max-width: 660px;
  margin: 5px 0 0;
  color: #514b41;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.7;
}

.rt-products .rt-section-top {
  align-items: end;
}

.rt-product-content {
  justify-content: flex-end;
  padding: 30px;
}

.rt-product-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(7, 10, 8, .94) 0%,
      rgba(7, 10, 8, .90) 40%,
      rgba(7, 10, 8, .72) 58%,
      rgba(7, 10, 8, .34) 74%,
      rgba(7, 10, 8, .10) 100%
    ),
    linear-gradient(180deg, rgba(5, 7, 6, .08), rgba(5, 7, 6, .22));
}

.rt-product-card h2 {
  max-width: 430px;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .86);
}

.rt-product-card p {
  max-width: 430px;
  color: rgba(244, 239, 227, .94);
  font-size: 17px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .88);
}

.rt-product-label,
.rt-product-card .rt-inline-link {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

.rt-product-card .rt-inline-link {
  width: fit-content;
  margin-top: 4px;
}

.rt-footer-grid {
  grid-template-columns: 1.35fr .72fr .9fr 1.15fr;
}

.rt-footer-contact p {
  max-width: 280px;
  margin: 0 0 12px;
  color: rgba(233, 227, 216, .76);
  font-size: 14px;
  line-height: 1.55;
}

.rt-footer-contact > a {
  color: #d6caab;
  font-weight: 600;
}

@media (max-width: 900px) {
  .rt-about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rt-footer-grid {
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .rt-header-actions .rt-header-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .rt-about {
    padding-block: 28px 32px;
  }

  .rt-product-content {
    padding: 24px;
  }

  .rt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile hero: preserve the subject, brighten the artwork and keep the torn edge subtle. */
@media (max-width: 640px) {
  .rt-products .rt-section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .rt-products .rt-section-kicker {
    margin-bottom: 0;
  }

  .rt-products .rt-section-link {
    width: fit-content;
    padding-left: 23px;
    line-height: 1.4;
  }

  .rt-hero {
    opacity: .99;
    min-height: auto;
    background: #07100b;
  }

  .rt-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: clamp(460px, 72svh, 560px);
    pointer-events: none;
    background: url('/assets/images/wild-expedition/hero-background.png') 63% top / auto 100% no-repeat;
    filter: brightness(1.32) contrast(.96) saturate(.92);
    transform: scale(1.01);
    transform-origin: top center;
  }

  .rt-hero::before {
    z-index: 1;
    background:
      radial-gradient(circle at 67% 22%, rgba(205, 178, 116, .14), transparent 28%),
      linear-gradient(
        180deg,
        rgba(4, 8, 6, .28) 0%,
        rgba(4, 8, 6, .08) 24%,
        rgba(4, 8, 6, .28) 46%,
        rgba(4, 8, 6, .72) 67%,
        rgba(4, 8, 6, .95) 100%
      ),
      linear-gradient(90deg, rgba(4, 8, 6, .30), rgba(4, 8, 6, .04) 72%, rgba(4, 8, 6, .16));
  }

  .rt-header {
    z-index: 4;
  }

  .rt-hero-inner {
    z-index: 3;
    align-items: end;
    min-height: 0;
    padding: 200px 0 58px;
  }

  .rt-hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .rt-hero-copy h1 {
    max-width: 10.5ch;
    text-wrap: balance;
  }

  .rt-lede {
    max-width: 34rem;
  }

  .rt-hero-actions {
    width: 100%;
    margin-top: 22px;
    transform: none;
  }

  .rt-hero-tear {
    bottom: -1px;
    height: 22px;
    background: #efe5d6;
    clip-path: polygon(
      0 42%,
      7% 18%,
      15% 46%,
      24% 13%,
      34% 40%,
      45% 17%,
      57% 47%,
      68% 15%,
      80% 41%,
      91% 20%,
      100% 44%,
      100% 100%,
      0 100%
    );
  }
}

@media (max-width: 420px) {
  .rt-hero::after {
    height: 490px;
    background-position: 61% top;
  }

  .rt-hero-inner {
    padding-top: 184px;
  }

  .rt-hero-copy h1 {
    font-size: clamp(2.75rem, 13vw, 3.3rem);
  }
}

@media (max-width: 520px) {
  .rt-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Wild Expedition treatment for legal, privacy and cookie pages. */
.rt-page-legal .rt-page-hero {
  min-height: 390px;
  background-position: center 38%;
}

.rt-page-legal .rt-page-hero::before {
  background:
    linear-gradient(90deg, rgba(4, 8, 6, .96) 0%, rgba(4, 8, 6, .86) 42%, rgba(4, 8, 6, .42) 72%, rgba(4, 8, 6, .48) 100%),
    linear-gradient(180deg, rgba(4, 8, 6, .16), rgba(4, 8, 6, .5));
}

.rt-page-legal .rt-page-hero-copy {
  max-width: 780px;
  padding: 46px 0 92px;
}

.rt-page-legal .rt-page-hero h1 {
  font-size: clamp(2.9rem, 5vw, 4.7rem);
}

.rt-legal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 780px);
  justify-content: center;
  gap: clamp(34px, 6vw, 78px);
  padding: 58px 0 74px;
}

.rt-legal-nav {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid rgba(73, 65, 49, .16);
  border-radius: 10px;
  background: rgba(250, 245, 235, .45);
  box-shadow: 0 14px 34px rgba(42, 35, 25, .08);
}

.rt-legal-nav h2 {
  margin: 0 0 14px;
  color: #514838;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rt-legal-nav a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(73, 65, 49, .12);
  color: #5d574c;
  font-size: 14px;
  line-height: 1.35;
}

.rt-legal-nav a:first-of-type {
  border-top: 0;
}

.rt-legal-nav a:hover,
.rt-legal-nav a:focus-visible,
.rt-legal-nav a[aria-current="page"] {
  color: #2b2a23;
}

.rt-legal-nav a[aria-current="page"] {
  font-weight: 700;
}

.rt-legal-article {
  min-width: 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(73, 65, 49, .16);
  border-radius: 12px;
  background: rgba(252, 248, 239, .72);
  box-shadow: 0 24px 70px rgba(23, 20, 15, .13);
}

.rt-legal-updated {
  margin: 0 0 34px;
  color: #766d5f;
  font-size: 13px;
}

.rt-legal-article h2 {
  margin: 38px 0 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(73, 65, 49, .14);
  color: #342f27;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.rt-legal-article h2:first-of-type {
  margin-top: 28px;
}

.rt-legal-article p,
.rt-legal-article li,
.rt-legal-article td,
.rt-legal-article th {
  color: #514b41;
  font-size: 16px;
  line-height: 1.72;
}

.rt-legal-article p {
  margin: 0 0 18px;
}

.rt-legal-article ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.rt-legal-article li + li {
  margin-top: 10px;
}

.rt-legal-article a {
  color: #4f6537;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rt-legal-article table {
  width: 100%;
  margin: 18px 0 22px;
  border-collapse: collapse;
  border: 1px solid rgba(73, 65, 49, .16);
  background: rgba(255, 255, 255, .28);
}

.rt-legal-article th,
.rt-legal-article td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(73, 65, 49, .12);
  text-align: left;
  vertical-align: top;
}

.rt-legal-article th {
  width: 30%;
  color: #342f27;
  font-weight: 700;
}

.rt-legal-article tr:last-child th,
.rt-legal-article tr:last-child td {
  border-bottom: 0;
}

.rt-legal-notice {
  padding: 14px 16px;
  border-left: 3px solid #7e8e56;
  background: rgba(126, 142, 86, .08);
  color: #5b5549 !important;
  font-size: 14px !important;
}

.rt-page-legal .rt-page-footer-grid {
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
}

@media (max-width: 900px) {
  .rt-legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rt-legal-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .rt-legal-nav h2 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .rt-legal-nav a {
    border-top: 0;
    padding: 8px 0;
  }

  .rt-page-legal .rt-page-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rt-page-legal .rt-page-hero {
    min-height: 330px;
    background-position: 62% top;
  }

  .rt-page-legal .rt-page-hero::after {
    height: 22px;
    background: #efe5d6;
    clip-path: polygon(0 42%, 7% 18%, 15% 46%, 24% 13%, 34% 40%, 45% 17%, 57% 47%, 68% 15%, 80% 41%, 91% 20%, 100% 44%, 100% 100%, 0 100%);
  }

  .rt-page-legal .rt-page-hero-copy {
    padding: 36px 0 72px;
  }

  .rt-legal-layout {
    padding: 34px 0 48px;
  }

  .rt-legal-nav {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .rt-legal-nav a + a {
    border-top: 1px solid rgba(73, 65, 49, .1);
  }

  .rt-legal-article {
    padding: 24px 20px;
    border-radius: 9px;
  }

  .rt-legal-article h2 {
    margin-top: 30px;
    padding-top: 20px;
  }

  .rt-legal-article p,
  .rt-legal-article li,
  .rt-legal-article td,
  .rt-legal-article th {
    font-size: 15px;
  }

  .rt-legal-article table,
  .rt-legal-article tbody,
  .rt-legal-article tr,
  .rt-legal-article th,
  .rt-legal-article td {
    display: block;
    width: 100%;
  }

  .rt-legal-article tr {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(73, 65, 49, .12);
  }

  .rt-legal-article th,
  .rt-legal-article td {
    padding: 0;
    border: 0;
  }

  .rt-legal-article th {
    margin-bottom: 3px;
  }

  .rt-page-legal .rt-page-footer-grid {
    grid-template-columns: 1fr;
  }
}
