/*
Theme Name: Trooth
Theme URI: https://trooth.letzmarketyou.ca
Author: LetzMarket
Description: Child theme of Astra carrying the Trooth design system: Retail-Ready Trust.
Template: astra
Version: 2.0.0
Text Domain: trooth-child
*/

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600&family=Caveat:wght@600&display=swap');

/* ============================================================
   1. TOKENS  (Retail-Ready Trust)
   ============================================================ */
:root {
  --t-bg: #FFFFFF;
  --t-surface: #F5FBFB;
  --t-ink: #10262F;
  --t-ink-muted: #4C6A72;
  --t-accent: #0FA8A6;
  --t-accent-deep: #0B7A79;
  --t-mint: #E3F5F4;

  --t-shade-00: #E6D8C0;
  --t-shade-01: #EFE4D2;
  --t-shade-02: #F5EEE3;
  --t-shade-03: #FAF6F0;
  --t-shade-04: #FFFFFF;

  --t-font-display: 'Bricolage Grotesque', sans-serif;
  --t-font-body: 'Instrument Sans', sans-serif;
  --t-font-script: 'Caveat', cursive;

  --t-xs: 8px;
  --t-sm: 16px;
  --t-md: 32px;
  --t-lg: 64px;
  --t-xl: 110px;

  --t-r-sm: 10px;
  --t-r-md: 18px;
  --t-r-pill: 999px;

  --t-shadow-card: 0 18px 40px -24px rgba(16, 38, 47, 0.25);
  --t-hairline: 1px solid var(--t-mint);
  --t-wrap: 1200px;
}

/* ============================================================
   2. BASE
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }

body, .ast-container, .entry-content {
  background-color: var(--t-bg);
  color: var(--t-ink);
  font-family: var(--t-font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .t-display, .t-h2, .t-h3 {
  font-family: var(--t-font-display);
  color: var(--t-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--t-accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--t-ink); }

:where(a, button, input, select, textarea, .t-btn):focus-visible {
  outline: 2px solid var(--t-accent-deep);
  outline-offset: 2px;
  border-radius: var(--t-r-sm);
}

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

.t-display { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.t-h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.t-h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.2; letter-spacing: -0.015em; }
.t-lead { font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--t-ink-muted); max-width: 54ch; }
.t-body-muted { color: var(--t-ink-muted); }

.t-eyebrow {
  font-family: var(--t-font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t-accent-deep); margin: 0 0 var(--t-sm); display: block;
}

.t-script { font-family: var(--t-font-script); font-weight: 600; color: var(--t-accent-deep); }

/* ============================================================
   3. SECTIONS
   ============================================================ */
.t-section { padding: var(--t-xl) 0; background: var(--t-bg); }
.t-section--mint { background: var(--t-surface); }
.t-section--ink { background: var(--t-ink); color: var(--t-surface); }
.t-section--ink h1, .t-section--ink h2, .t-section--ink h3,
.t-section--ink .t-display, .t-section--ink .t-h2, .t-section--ink .t-h3 { color: var(--t-surface); }
.t-section--ink p, .t-section--ink .t-lead { color: #AFC7CB; }
.t-section--ink .t-eyebrow { color: var(--t-accent); }
.t-section--ink a { color: var(--t-accent); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.elementor-widget-button .elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--t-font-body); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 17px 32px; border-radius: var(--t-r-pill); border: 1.5px solid transparent;
  background-color: var(--t-accent-deep); color: var(--t-surface); fill: var(--t-surface);
  text-decoration: none; box-shadow: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus {
  background-color: var(--t-ink); color: var(--t-surface); transform: translateY(-1px);
}
.t-btn-ghost .elementor-button {
  background-color: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.6);
}
.t-btn-ghost .elementor-button:hover { background-color: #FFFFFF; color: var(--t-ink); border-color: #FFFFFF; }
.t-btn-onlight .elementor-button { background-color: var(--t-accent-deep); color: #FFFFFF; }
.t-btn-onlight .elementor-button:hover { background-color: var(--t-ink); }
.t-btn-oncolor .elementor-button { background-color: #FFFFFF; color: var(--t-ink); }
.t-btn-oncolor .elementor-button:hover { background-color: var(--t-ink); color: #FFFFFF; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  font-family: var(--t-font-body); font-weight: 600; border-radius: var(--t-r-pill) !important;
  background-color: var(--t-accent-deep); color: #FFFFFF; border: none; padding: 14px 26px;
  transition: background-color .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background-color: var(--t-ink); color: #FFFFFF; }

.t-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   5. SHADE LADDER  (rationed accent, not the hero's subject)
   ============================================================ */
.t-ladder { display: flex; gap: 2px; width: 100%; max-width: 280px; list-style: none; margin: 0; padding: 0; }
.t-ladder li { flex: 1 1 0; height: 10px; transform: scaleY(.25); transform-origin: bottom; opacity: 0; animation: t-ladder-fill .5s cubic-bezier(.2,.7,.3,1) forwards; }
.t-ladder li:nth-child(1) { background: var(--t-shade-00); animation-delay: .1s; }
.t-ladder li:nth-child(2) { background: var(--t-shade-01); animation-delay: .19s; }
.t-ladder li:nth-child(3) { background: var(--t-shade-02); animation-delay: .28s; }
.t-ladder li:nth-child(4) { background: var(--t-shade-03); animation-delay: .37s; }
.t-ladder li:nth-child(5) { background: var(--t-shade-04); animation-delay: .46s; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@keyframes t-ladder-fill { to { transform: scaleY(1); opacity: 1; } }

.t-ladder--divider { max-width: none; }
.t-ladder--divider li { height: 6px; }

.t-ladder-caption {
  display: flex; justify-content: space-between; max-width: 280px; margin-top: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-ink-muted);
}
.t-ladder--onDark .t-ladder-caption { color: rgba(255,255,255,.72); }

/* ============================================================
   6. MOTION
   ============================================================ */
.t-reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.t-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .t-ladder li { animation: none; opacity: 1; transform: none; }
  .t-reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   7. HERO BANNER  (gradient field, no stock photography)
   ============================================================ */
.t-hero-banner { position: relative; }
.t-hero-banner .elementor-widget-heading .elementor-heading-title { color: #FFFFFF; }
.t-hero-banner .elementor-widget-text-editor p { color: rgba(255,255,255,.86); }

/* ============================================================
   8. TRUST ROW (text strip, used inline near hero/tiles)
   ============================================================ */
.t-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; list-style: none; margin: 0; padding: 0; }
.t-trust li { font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--t-ink-muted); margin: 0; }
.t-trust--onDark li { color: rgba(255,255,255,.8); }

/* ============================================================
   9. KIT TILES  (replaces the demo's lifestyle-photo tiles)
   ============================================================ */
.t-kit-row > .e-con-inner,
.t-kit-row { display: flex; gap: 22px; align-items: stretch; }
.t-kit-tile {
  flex: 1 1 0; background: var(--t-surface); border-radius: var(--t-r-md);
  padding: 34px 28px 30px; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--t-shadow-card);
}
.t-kit-tile--feature { background: var(--t-ink); }
.t-kit-tile--feature .t-kit-tile__name,
.t-kit-tile--feature .t-kit-tile__job { color: #FFFFFF; }
.t-kit-tile--feature .t-kit-tile__job { color: #AFC7CB; }
.t-kit-tile__badge {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t-accent); margin-bottom: 10px;
}
.t-kit-tile__img { width: 76%; max-width: 220px; margin: 0 auto 14px; display: block; }
.t-kit-tile__name { font-family: var(--t-font-display); font-weight: 700; font-size: 1.3rem; color: var(--t-ink); margin: 0 0 6px; }
.t-kit-tile__job { font-size: .95rem; color: var(--t-ink-muted); margin: 0 0 16px; max-width: 30ch; }
.t-kit-tile__price { font-family: var(--t-font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 16px; }
.t-kit-tile--feature .t-kit-tile__price { color: #FFFFFF; }

@media (max-width: 900px) {
  .t-kit-row, .t-kit-row > .e-con-inner { flex-direction: column; }
}

/* ============================================================
   10. VALUE BANNER  (flat ink ground, the price argument)
   ============================================================ */
.t-value-banner { background: var(--t-ink); }
.t-value-banner .elementor-heading-title { color: #FFFFFF; }
.t-value-banner p { color: #AFC7CB; }

/* ============================================================
   11. TRUST STRIP  (flat teal SVG icons, 4 items)
   ============================================================ */
.elementor-widget-image-box.t-trustbox .elementor-image-box-img { max-width: 40px; margin-bottom: 14px; }
.elementor-widget-image-box.t-trustbox .elementor-image-box-title { font-family: var(--t-font-display); font-size: 1.05rem; font-weight: 700; color: var(--t-ink); margin-bottom: 6px; }
.elementor-widget-image-box.t-trustbox .elementor-image-box-description { font-size: .92rem; color: var(--t-ink-muted); }

/* ============================================================
   12. ELEMENTOR TYPE BRIDGE
   ============================================================ */
.t-display .elementor-heading-title { font-family: var(--t-font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.t-h2 .elementor-heading-title { font-family: var(--t-font-display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--t-ink); margin: 0; }
.t-h3 .elementor-heading-title { font-family: var(--t-font-display); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.2; font-weight: 700; color: var(--t-ink); margin: 0; }
.t-eyebrow .elementor-heading-title { font-family: var(--t-font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent-deep); margin: 0; }
.t-script .elementor-heading-title { font-family: var(--t-font-script); font-weight: 600; color: var(--t-accent-deep); line-height: 1.1; }
.t-lead .elementor-widget-container, .t-lead .elementor-widget-container p { font-family: var(--t-font-body); font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--t-ink-muted); max-width: 54ch; }
.t-section--ink .t-display .elementor-heading-title,
.t-section--ink .t-h2 .elementor-heading-title,
.t-section--ink .t-h3 .elementor-heading-title { color: var(--t-surface); }
.t-section--ink .t-lead .elementor-widget-container,
.t-section--ink .t-lead .elementor-widget-container p { color: #AFC7CB; }

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 921px) {
  :root { --t-xl: 68px; }
  body { font-size: 17px; }
}
@media (max-width: 600px) {
  .elementor-widget-button .elementor-button, .woocommerce a.button { padding: 15px 26px; font-size: 15px; }
  .t-ladder, .t-ladder-caption { max-width: 100%; }
}
