/* ==========================================================================
   TELEZA Marketing — motion layer
   Drop-in file. Adds animation only. Changes no content, no colours,
   no layout, no fonts. Safe to remove at any time.
   ========================================================================== */

:root {
    --tz-ease: cubic-bezier(.22, .68, .36, 1);
    --tz-teal: #145a64;
    --tz-gold: #d4af37;
}

/* --------------------------------------------------------------------------
   1. Scroll reveal — elements lift gently into view
   -------------------------------------------------------------------------- */
.tz-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--tz-ease), transform .7s var(--tz-ease);
    will-change: opacity, transform;
}
.tz-reveal.tz-in {
    opacity: 1;
    transform: none;
}
/* staggered children so grids cascade instead of popping together */
.tz-reveal.tz-d1 { transition-delay: .07s; }
.tz-reveal.tz-d2 { transition-delay: .14s; }
.tz-reveal.tz-d3 { transition-delay: .21s; }
.tz-reveal.tz-d4 { transition-delay: .28s; }
.tz-reveal.tz-d5 { transition-delay: .35s; }

/* --------------------------------------------------------------------------
   2. Shrinking header on scroll
   -------------------------------------------------------------------------- */
header .header-container,
header.tz-head .header-container {
    transition: padding .35s var(--tz-ease);
}
header .logo-icon-img,
header .logo-img {
    transition: height .35s var(--tz-ease);
}
header.tz-shrunk .header-container { padding-top: 11px; padding-bottom: 11px; }
header.tz-shrunk .logo-icon-img,
header.tz-shrunk .logo-img { height: 30px; }
header.tz-shrunk {
    box-shadow: 0 4px 22px rgba(8, 23, 22, .13);
    background-color: rgba(255, 255, 255, .93);
}

/* thin progress bar showing how far down the page you are */
.tz-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--tz-teal), var(--tz-gold));
    z-index: 1200;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Card hover — tilt toward the cursor with a soft gold edge
   -------------------------------------------------------------------------- */
.tz-tilt {
    transform-style: preserve-3d;
    transition: transform .4s var(--tz-ease), box-shadow .4s var(--tz-ease);
    will-change: transform;
}
.tz-tilt.tz-tilting {
    transition: transform .12s linear, box-shadow .4s var(--tz-ease);
}
.tz-tilt:hover {
    box-shadow: 0 18px 40px rgba(8, 23, 22, .16),
                0 0 0 1px rgba(212, 175, 55, .45);
}
/* sheen that sweeps across a card as the pointer crosses it */
.tz-tilt { position: relative; overflow: hidden; }
.tz-tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--tz-ease);
    background: radial-gradient(
        circle at var(--tz-mx, 50%) var(--tz-my, 50%),
        rgba(212, 175, 55, .16),
        transparent 55%
    );
}
.tz-tilt:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   4. Hero — slow drifting gradient behind the headline
   -------------------------------------------------------------------------- */
.tz-hero-glow { position: relative; isolation: isolate; }
.tz-hero-glow::before {
    content: "";
    position: absolute;
    inset: -20% -10%;
    z-index: -1;
    pointer-events: none;
    opacity: .55;
    background:
        radial-gradient(38% 46% at 22% 32%, rgba(20, 90, 100, .20), transparent 70%),
        radial-gradient(34% 42% at 78% 28%, rgba(212, 175, 55, .18), transparent 70%),
        radial-gradient(42% 50% at 55% 82%, rgba(20, 90, 100, .12), transparent 72%);
    animation: tz-drift 22s ease-in-out infinite alternate;
}
@keyframes tz-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
    100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

/* --------------------------------------------------------------------------
   5. Marquee strip — built from service names already on the page
   -------------------------------------------------------------------------- */
.tz-marquee {
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid rgba(20, 90, 100, .10);
    border-bottom: 1px solid rgba(20, 90, 100, .10);
    background: linear-gradient(90deg, rgba(20, 90, 100, .035), rgba(212, 175, 55, .05), rgba(20, 90, 100, .035));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.tz-marquee-track {
    display: flex;
    width: max-content;
    gap: 46px;
    animation: tz-scroll 34s linear infinite;
}
.tz-marquee:hover .tz-marquee-track { animation-play-state: paused; }
.tz-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(18, 33, 31, .55);
    white-space: nowrap;
}
.tz-marquee-item::after {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--tz-gold);
    flex-shrink: 0;
}
@keyframes tz-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   6. Counting numbers (used only if a page has real figures)
   -------------------------------------------------------------------------- */
.tz-count { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   7. Form polish — focus lift and a tick on valid fields
   -------------------------------------------------------------------------- */
.tz-field {
    position: relative;
    transition: transform .25s var(--tz-ease);
}
.tz-field.tz-focus { transform: translateY(-2px); }
.tz-field input,
.tz-field textarea,
.tz-field select {
    transition: border-color .25s var(--tz-ease), box-shadow .25s var(--tz-ease), background-color .25s var(--tz-ease);
}
.tz-field.tz-valid > input,
.tz-field.tz-valid > textarea {
    border-color: rgba(31, 122, 77, .45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f7a4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px top 15px;
    background-size: 17px 17px;
    padding-right: 42px;
}
.tz-field.tz-valid > textarea { background-position: right 13px top 13px; }

/* button press feedback */
.cta-button, .secondary-button, button {
    transition: transform .18s var(--tz-ease), box-shadow .3s var(--tz-ease), filter .3s var(--tz-ease);
}
.cta-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.cta-button:active, .secondary-button:active, button:active { transform: translateY(0) scale(.985); }

/* --------------------------------------------------------------------------
   8. Respect the visitor's own settings — and never hide content
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tz-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .tz-marquee-track { animation: none !important; }
    .tz-hero-glow::before { animation: none !important; }
    .tz-progress { display: none; }
    .tz-tilt { transform: none !important; }
    .cta-button:hover, .secondary-button:hover { transform: none; }
}
/* if JavaScript never runs, everything stays visible */
.tz-no-js .tz-reveal { opacity: 1; transform: none; }
@media print {
    .tz-reveal { opacity: 1 !important; transform: none !important; }
    .tz-progress, .tz-marquee { display: none !important; }
}
