/*
 * Token Naturals: design refinements on top of the original WordPress theme.
 * Loaded after the theme on every page (lib/pages.ts). Scoped to .wp-theme-Theme (the main
 * site's body class) so the separately styled Favour landing page is untouched.
 * Theme breakpoints reused: 1380px, 840px, 730px.
 */

/* ---------- 1. Heading hierarchy: a heading is always larger than the text under it ---------- */

/* Content blocks ("New Collaborators Welcome", "Partners in production"…): title > intro > body. */
.wp-theme-Theme .content-block__title { font-size: 32px; line-height: 40px; font-weight: 600; }
.wp-theme-Theme .content-block__introduction * { font-size: 26px; line-height: 38px; }
@media (max-width: 1380px) {
  .wp-theme-Theme .content-block__title { font-size: 28px; line-height: 36px; }
  .wp-theme-Theme .content-block__introduction * { font-size: 22px; line-height: 32px; }
}
@media (max-width: 840px) {
  .wp-theme-Theme .content-block__title { font-size: 24px; line-height: 30px; }
  .wp-theme-Theme .content-block__introduction * { font-size: 18px; line-height: 28px; }
}

/* Standard pages (Privacy Policy, Terms…): the page title outranks the article's opening line. */
.wp-theme-Theme .l-sidebar h1.page-title { font-size: 36px; line-height: 44px; max-width: none; }
.wp-theme-Theme .content-writing .page-title { font-size: 28px; line-height: 38px; }
@media (max-width: 1380px) {
  .wp-theme-Theme .l-sidebar h1.page-title { font-size: 32px; line-height: 40px; }
  .wp-theme-Theme .content-writing .page-title { font-size: 24px; line-height: 34px; }
}
@media (max-width: 840px) {
  .wp-theme-Theme .l-sidebar h1.page-title { font-size: 28px; line-height: 36px; }
  .wp-theme-Theme .content-writing .page-title { font-size: 21px; line-height: 30px; }
}

/* Subsection headings inside those pages ("What is Personal Information?") sit below the article title. */
.wp-theme-Theme .content-writing .section-introduction,
.wp-theme-Theme .content-writing .section-introduction * { font-size: 22px; line-height: 30px; }
@media (max-width: 1380px) {
  .wp-theme-Theme .content-writing .section-introduction,
  .wp-theme-Theme .content-writing .section-introduction * { font-size: 20px; line-height: 28px; }
}
@media (max-width: 840px) {
  .wp-theme-Theme .content-writing .section-introduction,
  .wp-theme-Theme .content-writing .section-introduction * { font-size: 18px; line-height: 26px; }
}

/* Section and timeline titles (Services) shrink to 15px on phones, below 16px body text. */
@media (max-width: 730px) {
  .wp-theme-Theme .section-title,
  .wp-theme-Theme .timeline-slider__content__title { font-size: 20px; line-height: 26px; }
}

/* One-off phone cases: Press Roundup and Sitemap section headings, and an inline 36px line under a 24px title. */
@media (max-width: 730px) {
  .wp-theme-Theme .content-writing .section-title { font-size: 22px; line-height: 28px; }
  .wp-theme-Theme .content-writing .prod-brand.section-title { font-size: 18px; line-height: 24px; }
  .wp-theme-Theme .prod-type { font-size: 20px; line-height: 26px; }
  .wp-theme-Theme span[style*="font-size: 36px"] { font-size: 22px !important; line-height: 30px; }
}
/* A real page title inside the article (job posts) keeps the theme's large size. */
.wp-theme-Theme .content-writing h1.page-title { font-size: 48px; line-height: 58px; }
@media (max-width: 1380px) { .wp-theme-Theme .content-writing h1.page-title { font-size: 40px; line-height: 48px; } }
@media (max-width: 840px) { .wp-theme-Theme .content-writing h1.page-title { font-size: 36px; line-height: 44px; } }
@media (max-width: 730px) { .wp-theme-Theme .content-writing h1.page-title { font-size: 28px; line-height: 36px; } }

/* "What are you looking for?" stays above its 20px card titles on small screens. */
@media (max-width: 840px) {
  .wp-theme-Theme .service_slider__title { font-size: 24px; line-height: 32px; }
}

/* ---------- 2. "See How We Work" video: was a fixed 1350×1400 box (white gap, overflow on phones) ---------- */
.wp-theme-Theme .tiles-news video { display: block; width: 100%; max-width: 1350px; height: auto; }

/* ---------- 3. Footer ---------- */
.wp-theme-Theme .footer > .l-container {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "contact  contact logo"
    "contact  contact details"
    "copy     nav     social";
  column-gap: 32px;
  align-items: start;
}
.wp-theme-Theme .footer > .l-container::after,
.wp-theme-Theme .footer > .l-container > br { display: none; }
.wp-theme-Theme .footer__logo,
.wp-theme-Theme .footer__contact,
.wp-theme-Theme .footer__social,
.wp-theme-Theme .footer__nav,
.wp-theme-Theme .footer__copyright { float: none; width: auto; margin-bottom: 0; }
.wp-theme-Theme .footer__logo { grid-area: logo; }
.wp-theme-Theme .footer__contact { grid-area: contact; margin-bottom: 56px; }
.wp-theme-Theme .footer__copyright { grid-area: copy; align-self: center; }
.wp-theme-Theme .footer__copyright p { margin: 0; }
.wp-theme-Theme .footer__nav { grid-area: nav; align-self: center; line-height: 24px; white-space: nowrap; }
.wp-theme-Theme .footer__social { grid-area: social; align-self: center; padding: 0 20px 0 0; }

/* Phone + email (inline-styled at 80%, right-aligned in the original markup). */
.wp-theme-Theme .footer > .l-container > p {
  grid-area: details;
  margin: 16px 0 0;
  padding: 0 20px;
  font-size: 16px !important;
  line-height: 28px;
  text-align: right !important;
  color: #FFF;
}

/* Land acknowledgement: let it wrap naturally instead of the hard line breaks. */
.wp-theme-Theme .footer__contact p br { display: none; }
.wp-theme-Theme .footer__contact p[style] { max-width: 34em; line-height: 26px !important; margin-top: 8px; }

@media (max-width: 1100px) {
  .wp-theme-Theme .footer > .l-container {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "contact logo"
      "contact details"
      "nav     social"
      "copy    copy";
    row-gap: 20px;
  }
  .wp-theme-Theme .footer__nav { text-align: left; }
  .wp-theme-Theme .footer__nav li { margin: 0 24px 0 0; }
}

/* Phones: one left-aligned column; contact details at body size. */
@media (max-width: 730px) {
  .wp-theme-Theme .footer > .l-container {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "contact" "details" "social" "nav" "copy";
    row-gap: 24px;
  }
  .wp-theme-Theme .footer__contact { margin-bottom: 0; }
  .wp-theme-Theme .footer > .l-container > p { text-align: left !important; margin: 0; }
  .wp-theme-Theme .footer__social { padding: 0 20px; }
  .wp-theme-Theme .footer__social li { float: left; padding: 0 12px 0 0; }
  .wp-theme-Theme .footer__nav { white-space: normal; }
  .wp-theme-Theme .footer__copyright * { font-size: 12px; line-height: 18px; margin-top: 0; }
}

/* ---------- 4. Landing heroes (Home, About, Services, Products) ---------- */
/* Eyebrow: a small uppercase label with a short yellow rule, clearly subordinate to the headline. */
.wp-theme-Theme .hero .hero__content__subtitle {
  font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.wp-theme-Theme .hero .hero__content__subtitle::before {
  content: ""; display: block; width: 44px; height: 3px; margin-bottom: 18px; background: #FECA66;
}
/* Headline: larger, tighter. */
.wp-theme-Theme .hero .hero__content__title {
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1.06; letter-spacing: -0.015em;
}
/* Services headline in title case ("Producing Products Now"). */
.wp-theme-Theme .hero--services .hero__content__title { text-transform: capitalize; }

/* CTA panel: dark, readable labels (were light grey); "Contact us here" as the yellow pill button. */
.wp-theme-Theme .hero .hero__cta__scroll,
.wp-theme-Theme .hero .hero__cta__link { font-size: 20px; line-height: 28px; font-weight: 600; }
.wp-theme-Theme .hero .hero__cta__scroll span { color: #004748; font-weight: 400; margin-top: 6px; }
.wp-theme-Theme .hero .hero__cta__link span {
  display: inline-block; margin-top: 12px; padding: 10px 24px; border-radius: 999px;
  background: #FECA66; color: #004748; font-weight: 400; transition: background-color .2s ease;
}
.wp-theme-Theme .hero .hero__cta__link a:hover span { background: #FDBA3A; }
/* The theme's arrows are light grey sprites: darken them to match the text. */
.wp-theme-Theme .hero .hero__cta__scroll span::after,
.wp-theme-Theme .hero .hero__cta__link span::after { filter: brightness(0.3); }
@media (max-width: 840px) {
  .wp-theme-Theme .hero .hero__cta__scroll,
  .wp-theme-Theme .hero .hero__cta__link { font-size: 17px; line-height: 24px; }
  .wp-theme-Theme .hero .hero__content__subtitle { font-size: 13px; }
}
