/*
Theme Name: Terapiq
Theme URI: https://terapiqcrm.com
Author: Terapiq
Author URI: https://terapiqcrm.com
Description: Custom theme for Terapiq — practice-management software for occupational therapy clinics. Classic PHP theme; pair with the Terapiq Core plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terapiq
*/

/* ============================================================
   Terapiq — shared site styles (loaded on every page via head.php)
   Page-specific styles stay inline in each page's own <style>.
   ============================================================ */
:root{
  --tq-indigo:#5B48F0; --tq-indigo-deep:#250DAB; --tq-ink:#141414;
  --tq-mint:#C8F9E7; --tq-lavender:#DCC2FF; --tq-peri:#D6E0FF;
  --tq-bg:#FAFAFF; --tq-line:#ECECF6; --tq-muted:#5B5B72; --tq-muted-2:#8A8AA3;
  --tq-grad:linear-gradient(135deg,#5B48F0 0%,#250DAB 100%);
  --tq-shadow:0 1px 2px rgba(20,20,20,.04), 0 18px 40px -24px rgba(37,13,171,.28);
  --tq-shadow-lift:0 1px 2px rgba(20,20,20,.05), 0 34px 64px -28px rgba(37,13,171,.42);
  --tq-display:"Quicksand", ui-sans-serif, system-ui, sans-serif;
  --tq-body:"Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --tq-mono:"Space Mono", ui-monospace, monospace;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; }
.tq-page{ margin:0; font-family:var(--tq-body); color:var(--tq-ink); background:var(--tq-bg); -webkit-font-smoothing:antialiased; line-height:1.55; overflow-x:hidden; }
.tq-page a{ color:inherit; text-decoration:none; }
.tq-page h1,.tq-page h2,.tq-page h3,.tq-page h4{ font-family:var(--tq-display); margin:0; line-height:1.08; letter-spacing:-.02em; }
.tq-page p{ margin:0; }
.tq-wrap{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }
.tq-eyebrow{ font-family:var(--tq-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--tq-indigo); display:inline-flex; align-items:center; gap:9px; }
.tq-eyebrow::before{ content:""; width:7px; height:7px; border-radius:2px; background:var(--tq-grad); transform:rotate(45deg); }
.tq-grad-text{ background:var(--tq-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tq-section{ padding:84px 0; }

/* buttons */
.tq-btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; font-family:var(--tq-body); font-weight:600; font-size:15px; padding:13px 24px; border-radius:999px; cursor:pointer; border:1.5px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; white-space:nowrap; text-decoration:none; }
.tq-btn--sm{ padding:10px 18px; font-size:14px; }
.tq-btn--block{ width:100%; padding:16px 24px; font-size:16px; }
.tq-btn--primary,.tq-btn--outline{ background:transparent; color:#5B48F0; border-color:#5B48F0; }
.tq-btn--primary:hover,.tq-btn--outline:hover{ background:var(--tq-grad); color:#fff; border-color:transparent; transform:translateY(-2px); box-shadow:0 14px 28px -12px rgba(91,72,240,.6); text-decoration:none; }
.tq-btn--ghost{ background:#fff; color:var(--tq-ink); border-color:var(--tq-line); }
.tq-btn--ghost:hover{ transform:translateY(-2px); border-color:#cfcfe6; box-shadow:var(--tq-shadow); }
.tq-btn--solid{ background:var(--tq-grad); color:#fff; }
.tq-btn--solid:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(91,72,240,.7); color:#fff; }
.tq-btn--on-dark{ background:transparent; color:#fff; border-color:rgba(255,255,255,.65); }
.tq-btn--on-dark:hover{ background:#fff; color:var(--tq-indigo-deep); border-color:#fff; transform:translateY(-2px); }

/* header */
.tq-header{ position:sticky; top:0; z-index:60; background:rgba(250,250,255,.86); backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid var(--tq-line); }
.tq-topbar{ display:flex; align-items:center; gap:16px; height:62px; }
.tq-hamburger{ display:none; background:none; border:0; cursor:pointer; padding:6px; color:var(--tq-ink); }
.tq-hamburger svg{ width:24px; height:24px; }
.tq-logo{ display:inline-flex; align-items:center; color:var(--tq-ink); }
.tq-logo svg{ height:28px; width:auto; display:block; }
.tq-topbar__spacer{ flex:1; }
.tq-topbar__actions{ display:flex; align-items:center; gap:14px; }
.tq-signin{ font-size:15px; font-weight:600; color:var(--tq-ink); }
.tq-signin:hover{ color:var(--tq-indigo-deep); }
.tq-phone{ font-family:var(--tq-mono); font-size:13px; color:var(--tq-muted); display:inline-flex; align-items:center; gap:7px; }
.tq-phone svg{ width:15px; height:15px; stroke:var(--tq-indigo); fill:none; stroke-width:2; }
.tq-navbar{ border-top:1px solid var(--tq-line); }
.tq-navlinks{ display:flex; align-items:center; gap:6px; height:50px; overflow-x:auto; scrollbar-width:none; }
.tq-navlinks::-webkit-scrollbar{ display:none; }
.tq-navlinks a{ font-size:14.5px; font-weight:500; color:var(--tq-muted); padding:8px 14px; border-radius:9px; white-space:nowrap; transition:color .15s ease, background .15s ease; }
.tq-navlinks a:hover{ color:var(--tq-ink); background:#f3f2fb; }

/* drawer */
.tq-drawer{ display:none; position:fixed; inset:0; z-index:70; }
.tq-drawer.is-open{ display:block; }
.tq-drawer__scrim{ position:absolute; inset:0; background:rgba(20,20,30,.4); }
.tq-drawer__panel{ position:absolute; top:0; left:0; bottom:0; width:80%; max-width:320px; background:#fff; padding:22px; display:flex; flex-direction:column; gap:6px; box-shadow:var(--tq-shadow-lift); }
.tq-drawer__panel a{ font-size:16px; font-weight:600; padding:13px 8px; border-bottom:1px solid var(--tq-line); }
.tq-drawer__close{ align-self:flex-end; background:none; border:0; font-size:26px; line-height:1; cursor:pointer; color:var(--tq-muted); margin-bottom:6px; }

/* footer */
.tq-footer{ background:var(--tq-ink); color:#fff; padding:64px 0 30px; margin-top:20px; }
.tq-footer__top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.1); }
.tq-footer__logo{ display:inline-flex; color:#fff; }
.tq-footer__logo svg{ height:28px; width:auto; display:block; }
.tq-footer__tag{ color:rgba(255,255,255,.6); font-size:14px; margin-top:16px; max-width:280px; }
.tq-news{ margin-top:20px; }
.tq-news__lab{ font-size:13px; color:rgba(255,255,255,.8); margin-bottom:9px; }
.tq-news__form{ display:flex; gap:8px; max-width:300px; }
.tq-news__input{ flex:1; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:11px 16px; color:#fff; font-family:var(--tq-body); font-size:14px; outline:none; }
.tq-news__input::placeholder{ color:rgba(255,255,255,.45); }
.tq-news__btn{ background:#fff; color:var(--tq-indigo-deep); border:0; border-radius:999px; padding:0 18px; font-weight:700; font-family:var(--tq-body); font-size:14px; cursor:pointer; }
.tq-footer h4{ font-family:var(--tq-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.5); margin:0 0 16px; }
.tq-footer ul{ list-style:none; padding:0; margin:0; display:grid; gap:11px; }
.tq-footer ul a{ font-size:14px; color:rgba(255,255,255,.72); }
.tq-footer ul a:hover{ color:#fff; }
.tq-footer__bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; gap:14px; flex-wrap:wrap; }
.tq-footer__copy{ font-size:13px; color:rgba(255,255,255,.5); }
.tq-social{ display:flex; gap:10px; }
.tq-social a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.18); display:grid; place-items:center; }
.tq-social a:hover{ background:rgba(255,255,255,.1); }
.tq-social svg{ width:17px; height:17px; fill:rgba(255,255,255,.8); }

/* scroll reveal */
.tq-reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.tq-reveal.is-in{ opacity:1; transform:none; }

@media (max-width:900px){
  .tq-navbar{ display:none; } .tq-hamburger{ display:inline-flex; } .tq-signin{ display:none; }
  .tq-footer__top{ grid-template-columns:1fr 1fr; gap:30px; }
  .tq-section{ padding:60px 0; }
}
@media (max-width:560px){ .tq-footer__top{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; }
  .tq-reveal{ opacity:1 !important; transform:none !important; }
}

/* ============================================================
   Blog & generic page content
   ============================================================ */
.tq-prose{ max-width:760px; margin:0 auto; padding:0 24px; }
.tq-article{ padding:46px 0 30px; }
.tq-breadcrumb{ font-family:var(--tq-mono); font-size:12px; color:var(--tq-muted-2); margin-bottom:18px; display:flex; gap:8px; flex-wrap:wrap; }
.tq-breadcrumb a{ color:var(--tq-muted); } .tq-breadcrumb a:hover{ color:var(--tq-indigo-deep); }
.tq-article__meta{ display:flex; align-items:center; gap:14px; font-size:13px; color:var(--tq-muted); margin-bottom:16px; flex-wrap:wrap; }
.tq-article__cat{ font-family:var(--tq-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--tq-indigo-deep); background:var(--tq-peri); padding:5px 10px; border-radius:7px; font-weight:700; }
.tq-article h1{ font-size:clamp(30px,4vw,46px); line-height:1.1; margin:0 0 18px; }
.tq-article__hero{ width:100%; border-radius:18px; margin:24px 0 8px; display:block; height:auto; }
.tq-author{ display:flex; align-items:center; gap:12px; margin:18px 0 30px; }
.tq-author__ava{ width:44px; height:44px; border-radius:50%; background:var(--tq-grad); color:#fff; display:grid; place-items:center; font-family:var(--tq-display); font-weight:700; flex:0 0 auto; }
.tq-author__name{ font-weight:700; font-size:14px; } .tq-author__date{ font-size:12.5px; color:var(--tq-muted); }
.tq-content{ font-size:17px; line-height:1.75; color:#2c2c3a; }
.tq-content h2{ font-family:var(--tq-display); font-size:26px; margin:34px 0 12px; letter-spacing:-.02em; }
.tq-content h3{ font-family:var(--tq-display); font-size:20px; margin:26px 0 10px; letter-spacing:-.02em; }
.tq-content p{ margin:0 0 18px; }
.tq-content a{ color:var(--tq-indigo); text-decoration:underline; }
.tq-content ul,.tq-content ol{ margin:0 0 18px; padding-left:22px; } .tq-content li{ margin-bottom:8px; }
.tq-content img{ max-width:100%; height:auto; border-radius:14px; margin:10px 0; }
.tq-content blockquote{ border-left:3px solid var(--tq-indigo); margin:22px 0; padding:6px 0 6px 20px; color:var(--tq-muted); font-style:italic; }
.tq-authorbox{ display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--tq-line); border-radius:16px; padding:22px; margin:40px 0; }
.tq-authorbox__ava{ width:56px; height:56px; border-radius:50%; background:var(--tq-grad); color:#fff; display:grid; place-items:center; font-family:var(--tq-display); font-weight:700; font-size:18px; flex:0 0 auto; }
.tq-authorbox__name{ font-family:var(--tq-display); font-weight:700; font-size:16px; }
.tq-authorbox__bio{ font-size:14px; color:var(--tq-muted); margin-top:6px; }
.tq-author__name a, .tq-authorbox__name a{ color:inherit; text-decoration:none; }
.tq-author__name a:hover, .tq-authorbox__name a:hover{ color:var(--tq-indigo); }
.tq-author__ava, .tq-authorbox__ava{ text-decoration:none; }
.tq-authorbox__more{ display:inline-block; margin-top:10px; color:var(--tq-indigo); font-weight:600; font-size:13.5px; }
.tq-authorbox__more:hover{ color:var(--tq-indigo-deep); }
.tq-cta-band{ background:var(--tq-grad); color:#fff; border-radius:22px; padding:34px; text-align:center; margin:36px 0; }
.tq-cta-band h3{ font-family:var(--tq-display); font-size:24px; }
.tq-cta-band p{ color:rgba(255,255,255,.85); margin:8px 0 18px; }
.tq-related{ margin:44px auto; }
.tq-related h3{ font-family:var(--tq-display); font-size:20px; margin-bottom:18px; }
.tq-related__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tq-rcard{ display:block; background:#fff; border:1px solid var(--tq-line); border-radius:14px; overflow:hidden; box-shadow:var(--tq-shadow); }
.tq-rcard:hover{ box-shadow:var(--tq-shadow-lift); }
.tq-rcard__thumb{ display:block; height:90px; background:var(--tq-grad); } .tq-rcard__b{ display:block; padding:14px 16px; }
.tq-rcard__t{ font-family:var(--tq-display); font-weight:700; font-size:14.5px; line-height:1.3; }
.tq-progress{ position:fixed; top:0; left:0; height:3px; background:var(--tq-grad); width:0; z-index:80; }
.tq-archive{ padding:56px 0; }
.tq-archive__head{ text-align:center; max-width:640px; margin:0 auto 40px; }
.tq-archive__head h1{ font-size:clamp(28px,3.6vw,40px); margin-top:12px; }
.tq-archive__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.tq-acard{ background:#fff; border:1px solid var(--tq-line); border-radius:18px; overflow:hidden; box-shadow:var(--tq-shadow); display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.tq-acard:hover{ transform:translateY(-5px); box-shadow:var(--tq-shadow-lift); }
.tq-acard__thumb{ height:150px; background:var(--tq-grad); display:block; }
.tq-acard__b{ padding:18px 20px 22px; display:flex; flex-direction:column; flex:1; }
.tq-acard__t{ font-family:var(--tq-display); font-weight:700; font-size:17px; line-height:1.25; }
.tq-acard__ex{ font-size:14px; color:var(--tq-muted); margin-top:9px; flex:1; }
.tq-acard__meta{ font-family:var(--tq-mono); font-size:11px; color:var(--tq-muted-2); margin-top:14px; }
.tq-pagination{ display:flex; justify-content:center; gap:8px; margin-top:40px; flex-wrap:wrap; }
.tq-pagination .page-numbers{ padding:9px 14px; border:1px solid var(--tq-line); border-radius:9px; font-size:14px; color:var(--tq-ink); }
.tq-pagination .current{ background:var(--tq-grad); color:#fff; border-color:transparent; }
@media (max-width:900px){ .tq-related__grid,.tq-archive__grid{ grid-template-columns:1fr; } }
