/* ToP Training – styles for the tt-* classes used by patterns.
   Editors never need to touch this: pick a pattern, change the words. */

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--wp--preset--color--tangerine); outline-offset: 3px; border-radius: 4px; }
.tt-sr, .screen-reader-text { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- header ---------- */
.tt-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--wp--preset--color--line); }
.tt-header .wp-block-site-logo img { width: auto; height: 46px; }
.tt-header .wp-block-navigation a { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--ink); }
.tt-header .wp-block-navigation a:hover { color: var(--wp--preset--color--flame); }
.tt-header .wp-block-button__link { padding: .6em 1.2em; font-size: .975rem; }
.tt-topbar { background: var(--wp--preset--color--indigo-dk); color: #fff; font-size: .9rem; text-align: center; }
.tt-topbar p { margin: 0; }
.tt-topbar a { color: var(--wp--preset--color--gold); font-weight: 700; }

/* ---------- eyebrow + headings ---------- */
.tt-eyebrow { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--wp--preset--color--flame); margin-bottom: .5rem; }
.has-indigo-dk-background-color .tt-eyebrow, .has-dusk-gradient-background .tt-eyebrow, .tt-on-dark .tt-eyebrow { color: var(--wp--preset--color--gold); }
.tt-on-dark, .tt-on-dark :where(h1,h2,h3,h4,p,li,a:not(.wp-block-button__link)) { color: #fff; }
.tt-on-dark a:not(.wp-block-button__link) { text-decoration-color: var(--wp--preset--color--gold); }
.tt-lead { font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--stone); }
.tt-on-dark .tt-lead { color: rgba(255,255,255,.88); }
.tt-center { text-align: center; }
.tt-center .tt-lead { margin-inline: auto; max-width: 40rem; }

/* ---------- hero ---------- */
.tt-hero { position: relative; overflow: hidden; isolation: isolate; }
.tt-hero::before { content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(60rem 30rem at 95% -10%, rgba(242,138,46,.30), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(75,75,158,.40), transparent 60%),
    linear-gradient(160deg, #2C2B63 0%, #1B1A2E 100%); }
.tt-hero h1 { color:#fff; max-width: 14ch; }
.tt-hero h1 em { font-style: italic; background: linear-gradient(135deg,#F05030,#FBB034); -webkit-background-clip:text; background-clip:text; color:transparent; padding-right:.05em; }
.tt-hero .tt-lead { color: rgba(255,255,255,.9); max-width: 34rem; }
.tt-hero-art { position: relative; min-height: 18rem; }
.tt-hero-art::before { content:""; position:absolute; right:-8%; top:50%; width:min(32rem,90%); aspect-ratio:1; transform:translateY(-50%);
  background: url("../images/petals.svg") center/contain no-repeat; opacity:.95; animation: tt-spin 90s linear infinite; }
@keyframes tt-spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tt-hero-art::before { animation:none; } html { scroll-behavior:auto; } }

/* quick-find strip that sits under the hero */
.tt-quick { margin-top: -2.25rem; position: relative; z-index: 2; }
.tt-quick-card { background:#fff; border-radius: 20px; box-shadow: var(--wp--preset--shadow--lift); padding: 1.25rem 1.5rem; }
.tt-quick-card .wp-block-columns { gap: 1rem; align-items: center; }

/* ---------- cards ---------- */
.tt-card { background:#fff; border:1px solid var(--wp--preset--color--line); border-radius:20px; padding:1.75rem; height:100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tt-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); border-color: transparent; }
.tt-card h3 { margin-top:.25rem; font-size: 1.375rem; }
.tt-card p { color: var(--wp--preset--color--stone); margin-bottom:.5rem; }
.tt-card .tt-more a { font-weight:700; text-decoration:none; }
.tt-card .tt-more a::after { content:" \2192"; }
.tt-card--accent { border-top: 6px solid var(--wp--preset--color--coral); }
.tt-card--accent.is-indigo { border-top-color: var(--wp--preset--color--indigo); }
.tt-card--accent.is-gold { border-top-color: var(--wp--preset--color--gold); }
.tt-card--dark { background: var(--wp--preset--color--indigo-dk); border-color: transparent; color:#fff; }
.tt-card--dark :where(h3,p,li) { color:#fff; }
.tt-card--cream { background: var(--wp--preset--color--cream); border-color: transparent; }
.tt-icon { width:3rem; height:3rem; border-radius:14px; display:grid; place-items:center; background: var(--wp--preset--gradient--sunrise); color:#fff; font-size:1.4rem; margin-bottom:.75rem; font-family: var(--wp--preset--font-family--heading); font-weight:700; }
.tt-icon.is-indigo { background: var(--wp--preset--gradient--dusk); }
.tt-badge { display:inline-block; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-weight:800; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; border-radius:999px; padding:.3em .8em; margin:0 0 .5rem; }

/* ---------- sections ---------- */
.tt-section { padding-block: var(--wp--preset--spacing--60); }
.tt-section--mist { background: var(--wp--preset--color--mist); }
.tt-section--cream { background: var(--wp--preset--color--cream); }
.tt-section--dark { background: linear-gradient(160deg,#2C2B63,#1B1A2E); }
.tt-section--sunrise { background: var(--wp--preset--gradient--sunrise); }
.tt-section--sunrise :where(h2,h3,p,li) { color: var(--wp--preset--color--ink); }
.tt-section--sunrise .wp-block-button__link { background: var(--wp--preset--color--ink); }

/* ---------- numbers / steps ---------- */
.tt-stat { text-align:center; }
.tt-stat .tt-num { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2.25rem,5vw,3.25rem); font-weight:700; line-height:1; margin:0; background: var(--wp--preset--gradient--sunrise); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tt-stat p:last-child { margin:.35rem 0 0; color: var(--wp--preset--color--stone); font-weight:600; }
.tt-on-dark .tt-stat p:last-child { color: rgba(255,255,255,.85); }
.tt-step-num { width:2.5rem; height:2.5rem; border-radius:50%; background: var(--wp--preset--color--indigo); color:#fff; display:grid; place-items:center; font-weight:800; margin:0 0 .75rem; }

/* ---------- checklist ---------- */
ul.tt-checks { list-style:none; padding:0!important; margin:0; display:grid; gap:.6rem; }
ul.tt-checks li { position:relative; padding-left:2rem; }
ul.tt-checks li::before { content:""; position:absolute; left:0; top:.28em; width:1.25rem; height:1.25rem; border-radius:50%; background: var(--wp--preset--color--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- quotes ---------- */
.tt-quote { background:#fff; border-radius:20px; padding:1.75rem; border:1px solid var(--wp--preset--color--line); height:100%; position:relative; }
.tt-quote::before { content:"\201C"; position:absolute; top:-.1em; left:.4rem; font-family: var(--wp--preset--font-family--heading); font-size:5rem; line-height:1; color: var(--wp--preset--color--coral); opacity:.5; }
.tt-quote p { font-family: var(--wp--preset--font-family--heading); font-size:1.2rem; line-height:1.45; }
.tt-quote .tt-by { font-family: var(--wp--preset--font-family--body); font-size:.9rem; color: var(--wp--preset--color--stone); font-weight:600; }

/* ---------- image + logo placeholders ---------- */
.tt-img-slot { margin:0; }
.tt-img-slot img { border-radius: 20px; width:100%; object-fit:cover; background: var(--wp--preset--color--mist); }
.tt-logo-row { display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:center; justify-content:center; }
.tt-logo-row .wp-block-image { margin:0; }
.tt-logo-row img { height:48px; width:auto; max-width:150px; object-fit:contain; filter: grayscale(1); opacity:.75; transition:.2s; }
.tt-logo-row img:hover { filter:none; opacity:1; }

/* ---------- FAQ (core/details) ---------- */
.wp-block-details.tt-faq { border-bottom:1px solid var(--wp--preset--color--line); padding:1rem 0; }
.wp-block-details.tt-faq summary { font-weight:700; font-size:1.125rem; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:1rem; }
.wp-block-details.tt-faq summary::-webkit-details-marker { display:none; }
.wp-block-details.tt-faq summary::after { content:"+"; font-size:1.5rem; line-height:1; color: var(--wp--preset--color--flame); }
.wp-block-details.tt-faq[open] summary::after { content:"\2212"; }
.wp-block-details.tt-faq > :not(summary) { color: var(--wp--preset--color--stone); }

/* ---------- buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link { background:transparent; border:2px solid currentColor; color: var(--wp--preset--color--indigo); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--indigo); color:#fff; border-color: var(--wp--preset--color--indigo); }
.tt-on-dark .wp-block-button.is-style-outline .wp-block-button__link { color:#fff; }
.tt-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background:#fff; color: var(--wp--preset--color--indigo-dk); }
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-sunrise .wp-block-button__link { background: var(--wp--preset--gradient--sunrise); color: var(--wp--preset--color--ink); }

/* ---------- footer ---------- */
.tt-footer { background: var(--wp--preset--color--ink); color: rgba(255,255,255,.8); }
.tt-footer :where(h2,h3,h4,p,li) { color: rgba(255,255,255,.82); }
.tt-footer h4 { color:#fff; font-family: var(--wp--preset--font-family--body); font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; }
.tt-footer a { color: rgba(255,255,255,.82); text-decoration:none; }
.tt-footer a:hover { color: var(--wp--preset--color--gold); text-decoration:underline; }
.tt-footer ul { list-style:none; padding:0!important; display:grid; gap:.5rem; margin:0; }
.tt-footer .tt-legal { font-size:.85rem; color: rgba(255,255,255,.6); border-top:1px solid rgba(255,255,255,.14); }
.tt-footer .tt-legal p, .tt-footer .tt-legal a { color: rgba(255,255,255,.6); }

/* ---------- mobile sticky "find a class" bar ---------- */
.tt-stickybar { display:none; }
@media (max-width: 781px) {
  .tt-stickybar { display:block; position:fixed; left:0; right:0; bottom:0; z-index:60; padding:.65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top:1px solid var(--wp--preset--color--line); }
  .tt-stickybar .wp-block-buttons { justify-content:center; }
  .tt-stickybar .wp-block-button { width:100%; }
  .tt-stickybar .wp-block-button__link { width:100%; text-align:center; }
  body { padding-bottom: 4.5rem; }
  .tt-header .tt-header-cta { display:none; }
  .tt-hero-art { display:none; }
}

/* ---------- Contact form (plugin) ---------- */
.tcf-form { display:grid; gap:1rem; max-width: 40rem; }
.tcf-form label { display:grid; gap:.35rem; font-weight:700; }
.tcf-form input, .tcf-form select, .tcf-form textarea { font:inherit; padding:.8rem 1rem; border:1.5px solid #c9c6d6; border-radius:12px; background:#fff; width:100%; box-sizing:border-box; }
.tcf-form input:focus, .tcf-form select:focus, .tcf-form textarea:focus { border-color: var(--wp--preset--color--indigo); outline:3px solid rgba(75,75,158,.2); }
.tcf-form .tcf-hp { position:absolute; left:-9999px; }
.tcf-form button { font:inherit; font-weight:700; background: var(--wp--preset--color--flame); color:#fff; border:0; border-radius:999px; padding:.9rem 1.8rem; cursor:pointer; justify-self:start; }
.tcf-form button:hover { background: var(--wp--preset--color--indigo-dk); }
.tcf-ok { background:#E8F6EC; border:1px solid #9AD3A8; border-radius:12px; padding:1rem 1.25rem; font-weight:600; }
.tcf-err { background:#FDECEA; border:1px solid #F2A39A; border-radius:12px; padding:1rem 1.25rem; font-weight:600; }

/* readable line lengths inside the wide layout */
.tt-hero h1 { max-width: 16ch; }
.wp-block-post-content > .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }

.tt-section > .wp-block-details, .tt-section > .tt-lead { max-width: 52rem; margin-left: max(1.25rem, calc((100% - 1180px)/2)) !important; margin-right: auto !important; }
.tt-hero .tt-lead { max-width: 36rem; }
.tt-center .tt-lead, .tt-section--sunrise .tt-lead { margin-inline: auto !important; }
.tt-hero h1, .tt-hero .tt-eyebrow, .tt-hero .tt-lead, .tt-hero .wp-block-buttons { margin-left: max(0px, calc((100% - 1180px)/2)) !important; margin-right: auto !important; }
.tt-section .tt-checks { margin-top: 1.25rem; }
.tt-footer .wp-block-heading { margin-top: 0; }
.tt-card.tt-card--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.tt-card.tt-card--dark :where(h3, p, li) { color: #fff; }
.tt-card.tt-card--dark p { color: rgba(255,255,255,.86); }
.tt-card.tt-card--dark a { color: var(--wp--preset--color--gold); }
