/* =============================================================================
   Troika AI — design tokens + shared site chrome (header, footer, buttons, FABs)
   Safe to link from any page: every rule is either a custom property on :root
   or a selector prefixed with .tk- / scoped under body.tk-site, so the legacy
   Elementor and generator pages are unaffected until they opt in.
   ============================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Brand palette */
  --color-primary: #0b3c45;        /* Deep Petrol */
  --color-primary-700: #072a31;
  --color-primary-500: #12606d;
  --color-primary-100: #d9ecec;
  --color-secondary: #f26a3d;      /* Saffron Coral */
  --color-secondary-700: #b8411a;  /* text-safe coral on light */
  --color-secondary-100: #fde4da;
  --color-accent: #c8f03c;         /* Signal Lime (evolved brand lime) */
  --color-accent-600: #a9d21d;
  --color-accent-100: #f1fbd1;

  /* Neutrals */
  --color-ink-900: #081316;
  --color-ink-800: #0f2226;
  --color-ink-700: #1b3439;
  --color-slate-600: #475b60;
  --color-slate-400: #8b9da1;
  --color-mist-200: #d9e3e0;
  --color-mist-100: #ebf1ee;
  --color-paper: #f6f8f3;
  --color-white: #ffffff;

  /* Status */
  --color-success: #1d8f5a;
  --color-warning: #c98a00;
  --color-danger: #c83e3e;

  /* Semantic (light) */
  --color-bg: var(--color-paper);
  --color-surface: var(--color-white);
  --color-surface-2: var(--color-mist-100);
  --color-fg: var(--color-ink-900);
  --color-fg-muted: var(--color-slate-600);
  --color-border: var(--color-mist-200);
  --color-link: var(--color-primary-500);
  --color-focus: var(--color-secondary);
  --color-inverse-bg: var(--color-primary-700);
  --color-inverse-fg: #eaf3f1;
  --color-inverse-muted: #a9c2c3;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Ubuntu", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.9375rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --font-size-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --font-size-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --font-size-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --line-tight: 1.08;
  --line-snug: 1.3;
  --line-body: 1.65;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --space-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 1200px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows (tinted with petrol, never pure black) */
  --shadow-sm: 0 1px 2px rgb(8 19 22 / 0.06), 0 1px 1px rgb(8 19 22 / 0.04);
  --shadow-md: 0 6px 18px -6px rgb(11 60 69 / 0.18), 0 2px 4px rgb(8 19 22 / 0.05);
  --shadow-lg: 0 24px 48px -16px rgb(11 60 69 / 0.28), 0 6px 12px -6px rgb(8 19 22 / 0.08);
  --shadow-glow: 0 0 0 1px rgb(200 240 60 / 0.35), 0 12px 40px -10px rgb(200 240 60 / 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;

  --header-h: 72px;
  color-scheme: light;
}

/* Dark: follows the OS unless the visitor picked a theme with the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #071114;
    --color-surface: #0e1d21;
    --color-surface-2: #13272c;
    --color-fg: #e8f0ee;
    --color-fg-muted: #a3b4b6;
    --color-border: #22393e;
    --color-link: var(--color-accent);
    --color-inverse-bg: #04191d;
    --shadow-md: 0 6px 18px -6px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #071114;
  --color-surface: #0e1d21;
  --color-surface-2: #13272c;
  --color-fg: #e8f0ee;
  --color-fg-muted: #a3b4b6;
  --color-border: #22393e;
  --color-link: var(--color-accent);
  --color-inverse-bg: #04191d;
  --shadow-md: 0 6px 18px -6px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ------------------------------------------------------- base (opt-in) -- */
body.tk-site {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.tk-site *, .tk-site *::before, .tk-site *::after { box-sizing: border-box; }
:where(.tk-site) :is(img, svg, video) { max-width: 100%; display: block; }
:where(.tk-site) :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
:where(.tk-site) p { margin: 0; text-wrap: pretty; }
:where(.tk-site) a { color: inherit; }
:where(.tk-site) [hidden] { display: none !important; }
.tk-site :focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
html:has(body.tk-site) { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

.tk-container { width: min(100% - 2 * var(--space-gutter), var(--container)); margin-inline: auto; }
.tk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-skip {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--color-accent); color: var(--color-ink-900);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.tk-skip:focus { top: 12px; }
.tk-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-icon--fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------- buttons -- */
.tk-btn {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-ink-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.75em 1.35em;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 var(--font-size-sm)/1.1 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-fast);
}
.tk-btn::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.tk-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.tk-btn:hover::after { transform: translateX(120%); }
.tk-btn:active { transform: translateY(0) scale(0.97); }
.tk-btn .tk-icon { transition: transform var(--dur-med) var(--ease-spring); }
.tk-btn:hover .tk-icon--move { transform: translate(3px, -3px); }
.tk-btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.tk-btn--ghost:hover { box-shadow: none; background: rgb(255 255 255 / 0.08); }
.tk-btn--dark { --btn-bg: var(--color-ink-900); --btn-fg: var(--color-white); }
.tk-btn--dark:hover { box-shadow: var(--shadow-lg); }
.tk-btn--sm { min-height: 42px; padding: 0.55em 1.1em; }

/* ---------------------------------------------------------------- header -- */
.tk-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  color: var(--color-inverse-fg);
  background: rgb(7 42 49 / 0.0);
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med), backdrop-filter var(--dur-med);
}
.tk-header.is-scrolled, .tk-header.is-open, .tk-header--solid {
  background: rgb(7 32 38 / 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 30px -18px rgb(0 0 0 / 0.6);
}
.tk-header__in { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.tk-header__logo { display: inline-flex; align-items: center; flex: none; }
.tk-header__logo img { height: 38px; width: auto; }
.tk-nav { margin-inline-start: auto; }
.tk-nav__list { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.tk-nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 600; font-size: var(--font-size-sm); text-decoration: none; color: inherit;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.tk-nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--color-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out);
}
.tk-nav__link:hover::after, .tk-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Dropdown menu */
.tk-nav__item { position: relative; }
.tk-nav__item--dropdown { position: relative; }
.tk-nav__trigger-wrap { display: flex; align-items: center; }
.tk-nav__trigger-btn {
  display: inline-grid; place-items: center; padding: 4px;
  background: transparent; border: 0; color: inherit; cursor: pointer;
}
.tk-nav__chev {
  width: 14px; height: 14px; margin-inline-start: 4px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
  transition: transform var(--dur-fast) var(--ease-out);
}
.tk-nav__item--dropdown:hover .tk-nav__chev,
.tk-nav__item--dropdown.is-open .tk-nav__chev {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .tk-dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    width: min(620px, 92vw);
    background: rgb(7 32 38 / 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 50px -10px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(200 240 60 / 0.15);
    padding: var(--space-4);
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
    z-index: 200;
  }
  .tk-nav__item--dropdown:hover .tk-dropdown,
  .tk-nav__item--dropdown:focus-within .tk-dropdown,
  .tk-nav__item--dropdown.is-open .tk-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .tk-dropdown__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2);
    list-style: none; margin: 0; padding: 0;
  }
  .tk-dropdown__link {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3); border-radius: var(--radius-md);
    text-decoration: none; color: var(--color-inverse-fg);
    transition: background-color var(--dur-fast), transform var(--dur-fast);
  }
  .tk-dropdown__link:hover {
    background: rgb(255 255 255 / 0.08);
    transform: translateX(3px);
  }
  .tk-dropdown__link:hover .tk-dropdown__title {
    color: var(--color-accent);
  }
  .tk-dropdown__icon {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border-radius: 8px; background: rgb(200 240 60 / 0.14); color: var(--color-accent);
    flex: none; font-size: 17px;
  }
  .tk-dropdown__title {
    font-weight: 700; font-size: 0.88rem; line-height: 1.35;
    display: block; color: #ffffff; transition: color var(--dur-fast);
  }
  .tk-dropdown__desc {
    font-size: var(--font-size-xs); color: var(--color-inverse-muted);
    display: block; margin-top: 3px; line-height: 1.4;
  }
}

@media (max-width: 1023.98px) {
  .tk-dropdown {
    display: none; padding: var(--space-2) 0 var(--space-3) var(--space-3);
    border-left: 2px solid rgb(200 240 60 / 0.4); margin-left: var(--space-3); margin-top: 4px;
  }
  .tk-nav__item--dropdown.is-open .tk-dropdown { display: block; }
  .tk-dropdown__grid {
    display: flex; flex-direction: column; gap: var(--space-2);
    list-style: none; margin: 0; padding: 0;
  }
  .tk-dropdown__link {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--color-inverse-fg); font-size: var(--font-size-md);
  }
  .tk-dropdown__link:hover { background: rgb(255 255 255 / 0.06); color: var(--color-accent); }
  .tk-dropdown__icon { font-size: 16px; flex: none; }
  .tk-dropdown__title { font-weight: 600; font-size: var(--font-size-sm); }
  .tk-dropdown__desc { display: none; }
  .tk-nav__trigger-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: transparent; border: none; color: inherit; font: inherit; padding: 14px 4px;
    border-bottom: 1px solid rgb(255 255 255 / 0.08); cursor: pointer; text-align: left;
  }
}
.tk-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.tk-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18);
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.tk-iconbtn:hover { background: rgb(255 255 255 / 0.08); }
.tk-iconbtn:active { transform: scale(0.92); }
.tk-theme-toggle .tk-icon--moon { display: none; }
:root[data-theme="dark"] .tk-theme-toggle .tk-icon--sun { display: none; }
:root[data-theme="dark"] .tk-theme-toggle .tk-icon--moon { display: block; }

/* hamburger -> X */
.tk-burger { display: none; }
.tk-burger__box { position: relative; width: 20px; height: 14px; }
.tk-burger__bar {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast), top var(--dur-med) var(--ease-out);
}
.tk-burger__bar:nth-child(1) { top: 0; }
.tk-burger__bar:nth-child(2) { top: 6px; }
.tk-burger__bar:nth-child(3) { top: 12px; }
.tk-burger[aria-expanded="true"] .tk-burger__bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.tk-burger[aria-expanded="true"] .tk-burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.tk-burger[aria-expanded="true"] .tk-burger__bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.tk-nav__mobile-cta { display: none; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 1023.98px) {
  .tk-burger { display: inline-grid; }
  .tk-header__actions { margin-inline-start: auto; }
  .tk-header__cta { display: none; }
  .tk-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: rgb(7 32 38 / 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: var(--space-4) var(--space-gutter) var(--space-6);
    border-top: 1px solid rgb(255 255 255 / 0.08);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
  }
  .tk-header.is-open .tk-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--dur-med) var(--ease-out), visibility 0s; }
  .tk-nav__list { flex-direction: column; gap: 0; }
  .tk-nav__link { font-size: var(--font-size-lg); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .tk-nav__link::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .tk-nav__list > li { opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-med), transform var(--dur-med) var(--ease-out); }
  .tk-header.is-open .tk-nav__list > li { opacity: 1; transform: none; }
  .tk-header.is-open .tk-nav__list > li:nth-child(2) { transition-delay: 40ms; }
  .tk-header.is-open .tk-nav__list > li:nth-child(3) { transition-delay: 80ms; }
  .tk-header.is-open .tk-nav__list > li:nth-child(4) { transition-delay: 120ms; }
  .tk-header.is-open .tk-nav__list > li:nth-child(5) { transition-delay: 160ms; }
  .tk-header.is-open .tk-nav__list > li:nth-child(6) { transition-delay: 200ms; }
  .tk-nav__mobile-cta { display: flex; margin-top: var(--space-5); }
  .tk-nav__mobile-cta .tk-btn { flex: 1; }
}
@media (max-width: 400px) { .tk-header__logo img { height: 32px; } .tk-header__in { gap: var(--space-3); } }
body.tk-menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- footer -- */
.tk-footer {
  background: var(--color-ink-900);
  color: var(--color-inverse-muted);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--font-size-sm);
  position: relative; overflow: hidden;
}
.tk-footer a { color: var(--color-inverse-fg); text-decoration: none; transition: color var(--dur-fast); }
.tk-footer a:hover { color: var(--color-accent); }
.tk-footer__grid { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; }
.tk-footer__brand img { height: 40px; width: auto; margin-bottom: var(--space-4); }
.tk-footer__brand p { max-width: 34ch; }
.tk-footer h2 {
  margin-top: 0;
  font-family: var(--font-body); font-size: var(--font-size-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
  margin: 0 0 var(--space-4);
}
.tk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.tk-footer__contact li { display: flex; gap: var(--space-3); align-items: flex-start; }
.tk-footer__contact .tk-icon { margin-top: 3px; color: var(--color-accent); }
.tk-socials { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.tk-socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.14);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast);
}
.tk-socials a:hover { transform: translateY(-3px); background: var(--color-accent); color: var(--color-ink-900); }
.tk-footer__h-press { margin-top: var(--space-6) !important; }
.tk-footer__press { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tk-footer__press a {
  padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid rgb(255 255 255 / 0.14);
  font-size: var(--font-size-xs);
}
.tk-footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between;
}
.tk-footer__wordmark {
  position: absolute; inset-inline: 0; bottom: -0.22em; text-align: center; pointer-events: none;
  font: 800 clamp(4rem, 16vw, 15rem)/1 var(--font-display); letter-spacing: -0.05em;
  color: rgb(255 255 255 / 0.025); white-space: nowrap; user-select: none;
}
.tk-footer__wordmark::after { content: "Troika AI"; }
@media (max-width: 1023.98px) { .tk-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599.98px) { .tk-footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- floating call/whatsapp -- */
.tk-fab {
  position: fixed; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35);
  transition: transform var(--dur-fast) var(--ease-out);
}
.tk-fab:hover { transform: translateY(-3px) scale(1.04); }
.tk-fab svg { width: 28px; height: 28px; fill: currentColor; }
.tk-fab--call { left: 20px; background: var(--color-primary-500); }
.tk-fab--wa { right: 20px; background: #1f9e55; }
.tk-fab--call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-primary-500); animation: tk-ring 2.4s var(--ease-out) infinite;
}
@keyframes tk-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

/* real photos that replaced an .img-placeholder: same box, cropped to fit */
.tk-photo {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 4/3);
  object-fit: cover; border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------ image placeholders (swap for <img> later) -- */
.img-placeholder {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2);
  width: 100%; aspect-ratio: var(--ar, 4/3);
  padding: var(--space-5);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px dashed rgb(18 96 109 / 0.45);
  background:
    repeating-linear-gradient(135deg, rgb(18 96 109 / 0.06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--color-primary-100), var(--color-accent-100));
  color: var(--color-primary-700); text-align: left;
}
.img-placeholder::before { /* simple "image" glyph */
  content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 44px; translate: -50% -80%;
  border: 2.5px solid currentColor; border-radius: 8px; opacity: 0.35;
  background: radial-gradient(circle at 30% 32%, currentColor 0 5px, transparent 6px),
              linear-gradient(140deg, transparent 55%, currentColor 56% 100%);
}
.img-placeholder__size {
  align-self: flex-start; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-primary-700); color: var(--color-accent);
  font: 700 0.75rem/1.2 var(--font-body); letter-spacing: 0.04em; position: relative;
}
.img-placeholder__prompt { font-size: 0.8125rem; line-height: 1.5; position: relative; max-width: 52ch; }
.img-placeholder--dark {
  border-color: rgb(200 240 60 / 0.35); color: var(--color-inverse-fg);
  background:
    repeating-linear-gradient(135deg, rgb(200 240 60 / 0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #0f2226, #12606d);
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .tk-site *, .tk-site *::before, .tk-site *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  html:has(body.tk-site) { scroll-behavior: auto; }
}
