/*
 Theme Name: Toronto Review v2.7
 Author: Dimitri Karakostas for Work Four
 Version: 3.0
 Description: Prelaunch landing page for Toronto Review - heavily modded from v1, do not use old code
 Text Domain: toronto-review-prelaunch
*/

/* ---------- FONTS ---------- */

@font-face {
  font-family: "Orpheus Pro Condensed";
  src:
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Orpheus.woff2") format("woff2"),
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Orpheus.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rustique";
  src:
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Rustique.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aptos Display";
  src:
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Aptos-Display-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src:
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Aptos-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stix Two Text";
  src:
    url("/wp-content/themes/toronto-review-theme-v3/assets/fonts/Stix-Two-Text-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ---------- ROOT & RESET ---------- */

:root {
  --tr-black:   #000000;
  --tr-white:   #ffffff;
  --tr-claret:  #380011;
  --tr-scarlet: #ff3600;
  --tr-teal:    #002224;
  --tr-sky:     #0a89ff;
  --tr-olive:   #625022;
  --tr-slime:   #ced03d;

  --tr-font-display: "Orpheus Pro Condensed", "Times New Roman", serif;
  --tr-font-logo:    "Rustique", "Times New Roman", serif;
  --tr-font-nav:     "Aptos Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tr-font-body:    "Aptos", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tr-font-article: "Stix Two Text", Georgia, "Times New Roman", serif;

  --tr-max-width: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tr-font-body);
  color: var(--tr-black);
  background: var(--tr-black);
  font-size: 16px;
  text-align: center;
}

/* ---------- GLOBAL LINK STYLE ---------- */

a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
}

/* Utility container */

.tr-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 960px) {
  .tr-inner {
    padding: 4rem 2.5rem;
  }
}

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


/* ---------- HEADER ---------- */

.tr-site-header {
  background: var(--tr-black);
  color: var(--tr-white);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* lock scroll when menu open */
body.tr-nav-open {
  overflow: hidden;
}

.tr-header-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-logo-link {
  display: inline-flex;
  align-items: center;
}

.tr-logo-img {
  display: block;
  height: 55px;
  width: auto;
}

/* Desktop nav */

.tr-nav-desktop {
  display: none;
}

.tr-nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

/* Desktop header links: Donate and Contact */

.tr-nav-desktop a {
  font-family: "Aptos Display", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--tr-white);
}

/* Header Donate pill on desktop */

.tr-nav-donate-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.9rem;
  border-radius: 999px;
  background: var(--tr-white);
  color: var(--tr-black);
}

/* Mobile nav toggle (hamburger / X) */

.tr-nav-toggle {
  border: none;
  background: transparent;
  color: var(--tr-white);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1000;
}

.tr-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--tr-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger -> X when menu open */
body.tr-nav-open .tr-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.tr-nav-open .tr-nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.tr-nav-open .tr-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Desktop breakpoint */

@media (min-width: 1080px) {
  .tr-nav-toggle {
    display: none;
  }
  .tr-nav-desktop {
    display: block;
  }
}


/* ---------- BUTTONS (UNIFIED) ---------- */

.tr-button,
.tr-nav-donate-pill a,
.tr-button-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "Aptos Display", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  line-height: 1;
  box-sizing: border-box;
}

/* Section DONATE colours */

.tr-button-donate {
  background: var(--tr-slime);
  color: var(--tr-olive);
}

/* Section SUBSCRIBE colours */

.tr-button-subscribe {
  background: var(--tr-sky);
  color: var(--tr-teal);
}


/* ---------- MOBILE NAV OVERLAY (FULLSCREEN) ---------- */

.tr-nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--tr-black);
  display: none;            /* shown only when body has .tr-nav-open */
  z-index: 999;
}

/* Show overlay when body has .tr-nav-open */
body.tr-nav-open .tr-nav-mobile {
  display: flex;
}

/* Inner wrapper for overlay */
.tr-nav-mobile-inner {
  flex: 1;
  width: 100%;
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 5rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* top menu + bottom logo */
  align-items: flex-end;           /* right-align menu items */
  min-height: 100vh;
  box-sizing: border-box;
}

/* Menu list in overlay */
.tr-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

/* Overlay menu links (Donate and Contact) */
.tr-nav-mobile ul li a {
  font-family: "Aptos Display", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--tr-white);
}

/* Donate pill inside overlay */
.tr-nav-mobile .tr-nav-donate-pill a {
  padding: 0.8rem 2.8rem;
  border-radius: 999px;
  background: var(--tr-white);
  color: var(--tr-black);
}

/* Logo at bottom center of viewport */
.tr-nav-mobile-logo {
  align-self: center;
  margin-bottom: 0.5rem;
  text-align: center;
}

.tr-nav-mobile-logo img {
  display: block;
  width: 480px;    /* adjust size to taste */
  height: auto;
}

/* Do not show overlay on desktop */
@media (min-width: 1080px) {
  .tr-nav-mobile {
    display: none !important;
    position: static;
    inset: auto;
    background: transparent;
  }
}


/* ---------- HERO ---------- */

.tr-hero {
  background: var(--tr-claret);
  color: var(--tr-scarlet);
}

.tr-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.tr-hero-stack {
  text-align: center;
}

.tr-hero-title {
  margin: 0;
  text-align: center;
}

.tr-hero-title picture {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.tr-hero-title-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Optional text version */

.tr-hero-kicker {
  max-width: 1220px;
  margin: 2rem auto 0;
}

.tr-hero-line {
  font-family: var(--tr-font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-kerning: normal;
  letter-spacing: 0.05em;
  word-spacing: 0;
  line-height: 1;
  margin: 0.16em 0;
  color: var(--tr-scarlet);
  text-align: justify;
  text-align-last: justify;
}

.tr-hero-line::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.tr-hero-line--last {
  text-align: justify;
  text-align-last: justify;
}

.tr-hero-line--last::after {
  display: none;
}


/* ---------- INTRO (RED) ---------- */

.tr-intro {
  background: var(--tr-scarlet);
  color: var(--tr-black);
}

.tr-intro-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 2.9rem;
  font-family: var(--tr-font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.tr-intro-inner p:first-child {
  margin-top: 0;
}

/* justified, last line ragged left */

.tr-intro-col p {
  margin: 0 0 0.9rem;
  text-align: justify;
  text-align-last: left;
  -moz-text-align-last: left;
}

/* Two columns on desktop */

@media (min-width: 960px) {
  .tr-intro-inner {
    display: grid;
    grid-template-columns: 2.4fr 1.4fr;
    column-gap: 2.7rem;
  }
}


/* ---------- TESTIMONIALS (BLUE) ---------- */

.tr-testimonials {
  background: var(--tr-sky);
  color: var(--tr-black);
}

.tr-testimonials-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 3.1rem 1.5rem 3.4rem;
}

.tr-testimonials-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.tr-testimonials-header-main,
.tr-testimonials-header-secondary {
  font-family: var(--tr-font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  letter-spacing: 0.18em;
  margin: 0;
}

.tr-testimonials-header-secondary {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--tr-black);
          text-stroke: 1.2px var(--tr-black);
}

.tr-testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tr-testimonial {
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--tr-font-body);
  margin: 0;
}

.tr-testimonial-quote {
  font-family: var(--tr-font-display);
  font-size: 1.7rem;
  font-style: normal;
  margin: 0 0 1.1rem;
  line-height: 1.35;
}

.tr-testimonial-attrib {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

/* Desktop testimonials layout */

@media (min-width: 960px) {
  .tr-testimonials-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .tr-testimonial {
    max-width: 26rem;
    width: 32%;
  }
}


/* ---------- SUPPORT (OLIVE) ---------- */

.tr-support {
  background: var(--tr-olive);
  color: var(--tr-slime);
}

.tr-support-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3.4rem;
  text-align: left;
}

.tr-support-title {
  font-family: var(--tr-font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin: 0 0 2.4rem;
}

.tr-support-title span {
  font-family: var(--tr-font-logo);
  color: transparent;
  -webkit-text-stroke: 1.4px var(--tr-slime);
          text-stroke: 1.4px var(--tr-slime);
}

.tr-support-body {
  display: grid;
  gap: 2.4rem;
  color: var(--tr-slime);
  font-size: 1rem;
  line-height: 1.8;
  font-family: var(--tr-font-body);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.tr-support-body p,
.tr-support-body a {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
  color: var(--tr-slime);
}

/* desktop columns */

@media (min-width: 960px) {
  .tr-support-body {
    grid-template-columns:
      minmax(0, 2.2fr)
      minmax(0, 1.4fr);
  }
}


/* ---------- SIGNUP (TEAL) ---------- */

.tr-signup {
  background: var(--tr-teal);
  color: var(--tr-sky);
}

.tr-signup-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tr-signup-title {
  font-family: var(--tr-font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 0;
}

/* Desktop signup layout */

@media (min-width: 960px) {
  .tr-signup-inner {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 2rem;
  }

  .tr-signup-title {
    margin: 0;
  }

  .tr-button-subscribe {
    width: auto;
    max-width: none;
  }
}


/* ---------- CONTACT (BLACK) ---------- */

.tr-contact {
  background: var(--tr-black);
  color: var(--tr-white);
}

.tr-contact-inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3.4rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-contact-title {
  margin: 0;
  width: 100%;
  text-align: center;
}

.tr-contact-title img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.tr-contact-copy {
  font-size: 1rem;
  line-height: 1.8;
  font-family: var(--tr-font-body);
  margin-top: 1.5rem;
  max-width: 48rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tr-contact-copy a {
  color: var(--tr-white);
}

.tr-social {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.tr-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tr-social-icon {
  width: 25px !important;
  height: 25px !important;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain;
}

.tr-support,
.tr-contact {
  scroll-margin-top: 70px;
}


/* ---------- MOBILE BUTTON NORMALISATION (≤ 600px) ---------- */

@media (max-width: 600px) {
  .tr-support .tr-button-donate,
  .tr-signup .tr-button-subscribe {
    display: block;
    width: 260px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}


/* ---------- MOBILE TWEAKS (≤ 959px) ---------- */

@media (max-width: 959px) {
  .tr-hero-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .tr-hero-title {
    margin: 0 0 2.1rem;
    text-align: center;
  }

  .tr-hero-title-img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
    height: auto;
  }

  .tr-hero-line {
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    word-spacing: 0.28em;
  }

  .tr-intro-inner,
  .tr-testimonials-inner,
  .tr-support-inner,
  .tr-signup-inner,
  .tr-contact-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


/* ---------- HERO: MOBILE OVERRIDES (≤ 768px) ---------- */

@media (max-width: 768px) {
  .tr-hero-inner {
    padding: 2.5rem 1.25rem 3rem;
  }

  .tr-hero-title {
    margin-bottom: 1.5rem;
  }

  .tr-hero-title-img {
    max-width: 90vw;
  }

  .tr-hero-kicker {
    max-width: 80vw;
    margin: 0 auto;
  }

  .tr-hero-line {
    font-size: 2.1rem;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin: 0.1em 0;
    text-align: justify;
    text-align-last: left;
  }
}


/* ---------- MOBILE LAYOUT POLISH (≤ 600px) ---------- */

@media (max-width: 600px) {

  .tr-header-inner {
    padding: 0.45rem 1.1rem;
  }

  .tr-logo-img {
    height: 36px;
  }

  .tr-nav-toggle span {
    width: 16px;
  }

  .tr-hero-inner {
    padding: 2.2rem 1.1rem 2.6rem;
  }

  .tr-hero-title {
    margin-bottom: 1.1rem;
  }

  .tr-hero-title-img {
    max-width: 92vw;
  }

  .tr-hero-kicker {
    max-width: 88vw;
  }

  .tr-hero-line {
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
    margin: 0.12em 0;
  }

  .tr-intro-inner {
    padding: 1.9rem 1.1rem 2.1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .tr-testimonials-inner {
    padding: 2.4rem 1.1rem 2.6rem;
  }

  .tr-testimonials-header-main,
  .tr-testimonials-header-secondary {
    font-size: 1.6rem;
    letter-spacing: 0.14em;
  }

  .tr-testimonials-grid {
    gap: 2rem;
  }

  .tr-testimonial {
    max-width: 100%;
    font-size: 1rem;
  }

  .tr-testimonial-quote {
    font-size: 1.5rem;
  }

  .tr-testimonial-attrib {
    font-size: 1rem;
  }

  .tr-support-inner {
    padding: 2.4rem 1.1rem 2.6rem;
  }

  .tr-support-title {
    font-size: 1.9rem;
    letter-spacing: 0.16em;
    margin-bottom: 1.8rem;
  }

  .tr-support-body {
    font-size: 1rem;
    line-height: 1.7;
    gap: 1rem;
    color: #ced03d;
  }

  .tr-support-body p,
  .tr-support-body a {
    color: #ced03d;
  }

  .tr-signup-inner {
    padding: 1.9rem 1.1rem 2.1rem;
  }

  .tr-signup-title {
    font-size: 1.6rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.9rem;
  }

  .tr-contact-inner {
    padding: 2.6rem 1.1rem 2.8rem;
  }

  .tr-contact-title img {
    max-width: 84vw;
  }

  .tr-contact-copy {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 90vw;
  }

  .tr-social {
    gap: 0.8rem;
    margin-top: 1.3rem;
  }

  .tr-support,
  .tr-contact {
    scroll-margin-top: 110px;
  }
}


/* ----- HERO: tablet / iPad size bump ----- */

@media (min-width: 768px) and (max-width: 1024px) {
  .tr-hero-line {
    font-size: 2rem;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }
}
/* ---------- FORCE LOGO TO TRUE BOTTOM OF MOBILE OVERLAY ---------- */
@media (max-width: 1079px) {

  /* Make the overlay container a positioning context */
  .tr-nav-mobile-inner {
    position: relative;
    /* keep the existing padding so the menu has breathing room */
    padding-top: 5rem;
    padding-right: 1.75rem;
    padding-bottom: 0; /* we no longer need bottom padding for the logo */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .tr-nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }

  /* Logo is taken out of flex flow and pinned to bottom center */
  .tr-nav-mobile-logo {
    position: fixed;          /* relative to viewport */
    left: 50%;
    bottom: 0.5rem;           /* distance from bottom edge */
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    text-align: center;
    z-index: 1001;            /* slightly above overlay background */
  }

  .tr-nav-mobile-logo img {
    display: block;
    width: 480px;             /* adjust to taste */
    height: auto;
  }
}