/* Timmacy Growth Labs: services components
   1. Compact services picker (home page #services)
   2. "Talk to our developer" card (home #services and services.html), at the end of this file
   ---- 1. compact services picker
   A row of icon tabs and one panel that changes with the tab, instead of six tall cards.
   Behaviour lives in assets/js/tgl-svc-tabs.js. Its own file because /assets/* is cached for 7 days
   and brand.css edits would reach returning visitors late. */
.tgl-st {
  --st-accent: var(--tgl-klein, #33CBBF);
  --st-deep: var(--tgl-klein-deep, #0B837F);
  --st-ink: var(--tgl-ink, #1C1C1C);
  --st-muted: var(--tgl-muted, #6E6E6E);
  --st-line: var(--tgl-line, #E7E7E7);
  --st-tint: var(--tgl-tint, #E0F5F3);
  --st-carbon: var(--tgl-carbon, #0D0D10);
  --st-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- tabs: nine small tiles, wrapping 5 + 4 on desktop, one swipeable strip on phones */
.tgl-st__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 0 auto; padding: 4px; }
.tgl-st__tab {
  flex: 0 0 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 112px; padding: 16px 12px; border: 1px solid var(--st-line); border-radius: 18px; background: #FFFFFF;
  font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.25; color: var(--st-ink); text-align: center; cursor: pointer;
  box-shadow: 0 1px 2px rgba(13, 13, 16, .04);
  transition: transform .25s var(--st-ease), box-shadow .25s var(--st-ease), border-color .2s ease, background .2s ease, color .2s ease;
}
.tgl-st__tab:hover { transform: translateY(-3px); border-color: var(--st-accent); box-shadow: 0 14px 30px rgba(13, 13, 16, .08); }
.tgl-st__tab:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 3px; }
.tgl-st__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--st-tint); color: var(--st-deep); font-size: 1.35rem; transition: background .2s ease, color .2s ease; }
.tgl-st__tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--st-deep) 0%, var(--st-accent) 100%); border-color: transparent; color: #FFFFFF;
  transform: translateY(-3px); box-shadow: 0 18px 36px rgba(11, 131, 127, .30);
}
.tgl-st__tab[aria-selected="true"] .tgl-st__ico { background: rgba(255, 255, 255, .18); color: #FFFFFF; }

/* ---- panel: copy on the left, a "what's included" card on the right */
.tgl-st__panels { margin-top: 28px; }
.tgl-st__panel {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border: 1px solid var(--st-line); border-radius: 28px; background: #FFFFFF;
  box-shadow: 0 30px 70px rgba(13, 13, 16, .07);
  animation: tgl-st-in .45s var(--st-ease) both;
}
.tgl-st__panel[hidden] { display: none; }
@keyframes tgl-st-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tgl-st__eyebrow { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--st-deep); }
.tgl-st__title { margin: 12px 0 14px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--st-ink); }
.tgl-st__text { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--st-muted); }
.tgl-st__prompt { margin: 22px 0 0; font-weight: 700; color: var(--st-ink); }
.tgl-st__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.tgl-st__btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--st-carbon); color: #FFFFFF !important; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px rgba(13, 13, 16, .2); transition: transform .2s ease, box-shadow .2s ease;
}
.tgl-st__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(13, 13, 16, .26); }
.tgl-st__btn span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent); color: var(--st-carbon); font-size: 1rem; }
.tgl-st__link { display: inline; font-weight: 700; color: var(--st-deep) !important; text-decoration: none; }
.tgl-st__link i { margin-left: 4px; vertical-align: -2px; }
.tgl-st__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the illustration: a soft teal shape, the included-list card in front, two floating metric chips */
.tgl-st__stage { position: relative; display: grid; place-items: center; min-height: 330px; }
.tgl-st__blob {
  position: absolute; top: 50%; left: 56%; width: min(320px, 78%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: linear-gradient(140deg, var(--st-accent) 0%, var(--st-deep) 100%); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  opacity: .9; animation: tgl-st-blob 14s ease-in-out infinite alternate;
}
@keyframes tgl-st-blob { to { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; transform: translate(-50%, -50%) rotate(14deg); } }
.tgl-st__card {
  position: relative; z-index: 1; width: min(360px, 92%); padding: 22px; border-radius: 22px; background: #FFFFFF;
  box-shadow: 0 30px 60px rgba(13, 13, 16, .18), 0 4px 12px rgba(13, 13, 16, .06);
}
.tgl-st__card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--st-line); }
.tgl-st__card-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--st-deep), var(--st-accent)); color: #FFFFFF; font-size: 1.25rem; }
.tgl-st__card-head strong { display: block; font-size: 1rem; line-height: 1.25; color: var(--st-ink); }
.tgl-st__card-head small { display: block; margin-top: 2px; font-size: .8rem; color: var(--st-muted); }
.tgl-st__list { list-style: none; margin: 0; padding: 0; }
.tgl-st__list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--st-line); font-size: .92rem; line-height: 1.4; color: var(--st-ink); }
.tgl-st__list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.tgl-st__list i { flex: none; margin-top: 1px; font-size: 1.1rem; color: var(--st-deep); }
.tgl-st__chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 12px 28px rgba(13, 13, 16, .12); font-size: .8rem; font-weight: 700; color: var(--st-ink); white-space: nowrap;
  animation: tgl-st-float 5s ease-in-out infinite alternate;
}
.tgl-st__chip i { color: var(--st-deep); font-size: 1rem; }
.tgl-st__chip--a { top: 6%; left: 0; }
.tgl-st__chip--b { bottom: 6%; right: 0; animation-delay: -2.5s; }
@keyframes tgl-st-float { to { transform: translateY(-8px); } }

@media (min-width: 1200px) {
  /* wide screens: all nine tiles in one row */
  .tgl-st__tabs { max-width: none; flex-wrap: nowrap; gap: 10px; }
  .tgl-st__tab { flex: 1 1 0; min-width: 0; min-height: 104px; padding: 14px 8px; font-size: .84rem; }
}
@media (max-width: 991.98px) {
  .tgl-st__panel { grid-template-columns: 1fr; }
  .tgl-st__stage { min-height: 330px; }
}
@media (max-width: 767.98px) {
  /* one swipeable row instead of three rows of tiles */
  .tgl-st__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px 12px; }
  .tgl-st__tabs::-webkit-scrollbar { display: none; }
  .tgl-st__tab { flex-basis: 118px; min-height: 100px; padding: 14px 10px; font-size: .82rem; scroll-snap-align: start; }
  .tgl-st__tab:hover, .tgl-st__tab[aria-selected="true"] { transform: none; }
  .tgl-st__ico { width: 40px; height: 40px; font-size: 1.2rem; }
  .tgl-st__panels { margin-top: 14px; }
  .tgl-st__panel { padding: 24px 20px; border-radius: 22px; gap: 24px; }
  .tgl-st__stage { min-height: 300px; }
  .tgl-st__chip { font-size: .74rem; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tgl-st__panel, .tgl-st__blob, .tgl-st__chip { animation: none; }
  .tgl-st__tab { transition: none; }
}

/* ---- 2. "Talk to our developer" card: icon tile, short pitch, WhatsApp and email buttons */
.tgl-devcta {
  --dc-accent: var(--tgl-klein, #33CBBF);
  --dc-deep: var(--tgl-klein-deep, #0B837F);
  --dc-ink: var(--tgl-ink, #1C1C1C);
  --dc-muted: var(--tgl-muted, #6E6E6E);
  --dc-line: var(--tgl-line, #E7E7E7);
  --dc-tint: var(--tgl-tint, #E0F5F3);
  --dc-carbon: var(--tgl-carbon, #0D0D10);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center;
  margin-top: 28px; padding: clamp(24px, 4vw, 48px) clamp(22px, 5vw, 64px);
  border: 1px solid var(--dc-line); border-radius: 28px; background: #FFFFFF; box-shadow: 0 30px 70px rgba(13, 13, 16, .07);
}
.tgl-devcta__icon {
  width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--dc-deep) 0%, var(--dc-accent) 100%); color: #FFFFFF; font-size: 2.6rem;
  box-shadow: 0 22px 44px rgba(11, 131, 127, .32);
}
.tgl-devcta__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--dc-tint); color: var(--dc-deep); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tgl-devcta__title { margin: 14px 0 10px; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--dc-ink); }
.tgl-devcta__text { margin: 0; max-width: 760px; font-size: 1.05rem; line-height: 1.7; color: var(--dc-muted); }
.tgl-devcta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tgl-devcta__btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tgl-devcta__btn:hover { transform: translateY(-2px); }
.tgl-devcta__ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; }
.tgl-devcta__btn--wa { background: linear-gradient(135deg, var(--dc-deep) 0%, var(--dc-accent) 100%); color: #FFFFFF !important; box-shadow: 0 14px 30px rgba(11, 131, 127, .28); }
.tgl-devcta__btn--wa .tgl-devcta__ico { background: #FFFFFF; color: #25D366; }
.tgl-devcta__btn--mail { background: #FFFFFF; color: var(--dc-ink) !important; border: 1px solid var(--dc-line); }
.tgl-devcta__btn--mail:hover { border-color: var(--dc-accent); }
.tgl-devcta__btn--mail .tgl-devcta__ico { background: var(--dc-deep); color: #FFFFFF; }
.tgl-devcta__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; color: var(--dc-muted); }
.tgl-devcta__meta li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.tgl-devcta__meta i { color: var(--dc-deep); font-size: 1.05rem; }
.tgl-devcta__meta a { color: inherit !important; text-decoration: none; }
.tgl-devcta__meta a:hover { color: var(--dc-deep) !important; }
@media (max-width: 767.98px) {
  .tgl-devcta { grid-template-columns: 1fr; border-radius: 22px; }
  .tgl-devcta__icon { width: 72px; height: 72px; border-radius: 20px; font-size: 1.9rem; }
  .tgl-devcta__btn { flex: 1 1 auto; justify-content: space-between; }
}
