/* ==========================================================================
   Home hero — rebuilt composition.

   The markup in resources/views/partials/home/hero.blade.php uses its own
   `tk-hero-*` class names, so none of the legacy hero CSS in index.blade.php
   (.topclass, .main-title, .hero-stats-panel, #front-page-searchbox,
   .hero-popular, .reviews/.hero-review-box, .homebanner/swiper) matches any
   element here. This file DEFINES the hero rather than overriding the old
   one — there are no !important overrides against legacy chrome.

   Accent colour is the site's own blue (--primary-color). The layout
   reference used green; that is deliberately not reproduced.
   ========================================================================== */

.tk-hero {
    position: relative;
    isolation: isolate;
    /* The header is position:fixed and overlays the page, so the hero has to
       clear it itself. A fixed value, not var(--tk-header-h), because that
       shrinks when the promo row collapses on scroll and the hero must not
       reflow underneath the reader. */
    padding: 132px 0 64px;
    overflow: hidden;
}

/* The pointer-tracking wash that already existed, kept but calmed down:
   the orange half is gone, what is left is a faint blue lift. */
.tk-hero .hero-interactive-glow-canvas {
    background: radial-gradient(
        circle at var(--mouse-x, 62%) var(--mouse-y, 26%),
        rgba(0, 115, 252, 0.07) 0%,
        rgba(0, 115, 252, 0.025) 38%,
        transparent 66%
    );
}

.tk-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
}

/* ---------------------------------------------------------------- LEFT -- */
.tk-hero-copy {
    min-width: 0;
}

.tk-hero-title {
    margin: 0 0 20px;
    color: #FFFFFF;
    font-size: clamp(38px, 4.35vw, 60px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-transform: none;
}

.tk-hero-title-accent {
    color: var(--primary-color, #0073FC);
}

.tk-hero-lede {
    max-width: 44ch;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.62;
}

/* ---- CTAs ------------------------------------------------------------- */
.tk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.tk-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tk-hero-cta:hover,
.tk-hero-cta:focus-visible {
    transform: translateY(-2px);
}

/* Primary: the reference's accent CTA, translated to the site blue. */
.tk-hero-cta--primary {
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 3px 7px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.tk-hero-cta--primary:hover,
.tk-hero-cta--primary:focus-visible {
    background: linear-gradient(var(--primary-color-light, #66ACFF), var(--primary-color, #0073FC));
    color: #FFFFFF;
}

/* Secondary: the same dark button surface the header uses. */
.tk-hero-cta--secondary {
    background: linear-gradient(rgb(32, 37, 42), rgb(25, 29, 33));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 3px 7px rgba(0, 0, 0, 0.5);
    color: #F3F5F7;
}

.tk-hero-cta--secondary:hover,
.tk-hero-cta--secondary:focus-visible {
    background: linear-gradient(rgb(40, 46, 52), rgb(31, 36, 41));
    color: #FFFFFF;
}

.tk-hero-cta i {
    font-size: 11px;
}

/* ---- Social proof strip ------------------------------------------------ */
.tk-hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: linear-gradient(rgb(26, 30, 34), rgb(19, 22, 26));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 3px 7px rgba(0, 0, 0, 0.4);
}

.tk-hero-trust-logos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tk-hero-trust-logos a {
    display: inline-flex;
    line-height: 0;
    transition: transform 0.2s ease;
}

.tk-hero-trust-logos a:hover {
    transform: translateY(-2px);
}

.tk-hero-trust-logos img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.tk-hero-trust-rating {
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}

.tk-hero-trust-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--primary-color, #0073FC);
    font-size: 10px;
    line-height: 1;
}

.tk-hero-trust-text {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* ---- Compact proof cards ----------------------------------------------- */
.tk-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tk-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: linear-gradient(rgb(26, 30, 34), rgb(19, 22, 26));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 3px 7px rgba(0, 0, 0, 0.4);
}

.tk-hero-stat svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--primary-color, #0073FC);
}

.tk-hero-stat-number {
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}

.tk-hero-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}

/* --------------------------------------------------------------- RIGHT -- */
.tk-hero-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.tk-hero-shot {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #101316;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tk-hero-shot:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 115, 252, 0.35);
}

.tk-hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Only the bottom band is darkened, so the work itself stays readable. */
.tk-hero-shot::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.tk-hero-shot-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(8, 10, 12, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --------------------------------------------------------- RESPONSIVE -- */
@media (max-width: 1199px) {
    .tk-hero-grid {
        gap: 40px;
    }

    .tk-hero-title {
        font-size: clamp(34px, 4.1vw, 48px);
    }
}

@media (max-width: 991px) {
    .tk-hero {
        padding: 40px 0 48px;
    }

    .tk-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .tk-hero-title {
        font-size: clamp(32px, 6vw, 44px);
    }

    .tk-hero-lede {
        max-width: 58ch;
    }

    .tk-hero-showcase {
        max-width: 520px;
    }
}

@media (max-width: 575px) {
    .tk-hero-title {
        font-size: 30px;
    }

    /* The heading's desktop line breaks would fragment the text on a narrow
       screen, so it wraps naturally here instead. */
    .tk-hero-title br {
        display: none;
    }

    .tk-hero-title-accent {
        display: inline;
    }

    .tk-hero-actions .tk-hero-cta {
        flex: 1 1 100%;
    }

    .tk-hero-trust {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .tk-hero-showcase {
        gap: 10px;
    }
}

/* ==========================================================================
   LIGHT THEME

   The rules above are the dark hero and are left exactly as they are. This
   section is scoped to html[data-tk-theme="light"] — the mechanism the rest
   of the site already uses — so switching themes only swaps which of the two
   applies. Nothing here is an override of the dark design; it is the second
   half of a two-theme component.

   The reference's green accent is deliberately not reproduced: every accent
   below uses the site's own --primary-color (#0073FC).
   ========================================================================== */
html[data-tk-theme="light"] .tk-hero {
    /* Soft cool off-white, not pure white, with a barely-there lift toward
       the top so the section has some depth without reading as a gradient. */
    background:
        radial-gradient(120% 90% at 18% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 58%),
        #F3F6F8;
}

/* The pointer wash is tuned for a dark surface; on the light one it would
   only muddy the background. */
html[data-tk-theme="light"] .tk-hero .hero-interactive-glow-canvas {
    background: radial-gradient(
        circle at var(--mouse-x, 62%) var(--mouse-y, 26%),
        rgba(0, 115, 252, 0.05) 0%,
        transparent 58%
    );
}

/* ---- Type ------------------------------------------------------------- */
html[data-tk-theme="light"] .tk-hero-title {
    color: #0A0D0F;
}

html[data-tk-theme="light"] .tk-hero-title-accent {
    color: var(--primary-color, #0073FC);
}

html[data-tk-theme="light"] .tk-hero-lede {
    color: #626B75;
}

/* ---- CTAs -------------------------------------------------------------- */
/* Primary keeps the blue surface but gains a light-mode elevation shadow so
   it lifts off the pale background instead of glowing. */
html[data-tk-theme="light"] .tk-hero-cta--primary {
    background: linear-gradient(var(--primary-color, #0073FC), var(--primary-color-dark, #005BC7));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 16px rgba(0, 89, 194, 0.3);
    color: #FFFFFF;
}

html[data-tk-theme="light"] .tk-hero-cta--primary:hover,
html[data-tk-theme="light"] .tk-hero-cta--primary:focus-visible {
    background: linear-gradient(var(--primary-color-light, #66ACFF), var(--primary-color, #0073FC));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 20px rgba(0, 89, 194, 0.34);
}

/* Secondary stays the dark premium button in both themes — that contrast
   against the pale ground is the point. */
html[data-tk-theme="light"] .tk-hero-cta--secondary {
    background: linear-gradient(rgb(32, 37, 42), rgb(25, 29, 33));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 3px 7px rgba(15, 23, 42, 0.28);
    color: #F3F5F7;
}

html[data-tk-theme="light"] .tk-hero-cta--secondary:hover,
html[data-tk-theme="light"] .tk-hero-cta--secondary:focus-visible {
    background: linear-gradient(rgb(40, 46, 52), rgb(31, 36, 41));
    color: #FFFFFF;
}

/* ---- Social proof pill -------------------------------------------------- */
html[data-tk-theme="light"] .tk-hero-trust {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(15, 23, 42, 0.06);
}

html[data-tk-theme="light"] .tk-hero-trust-rating {
    color: #0A0D0F;
}

html[data-tk-theme="light"] .tk-hero-trust-text {
    color: #626B75;
}

/* The Google/Facebook/Trustpilot marks keep their own brand colours; only
   the star row is a design accent, so only it becomes blue. */
html[data-tk-theme="light"] .tk-hero-trust-stars {
    color: var(--primary-color, #0073FC);
}

/* ---- Proof cards -------------------------------------------------------- */
html[data-tk-theme="light"] .tk-hero-stat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(15, 23, 42, 0.06);
}

html[data-tk-theme="light"] .tk-hero-stat svg {
    color: var(--primary-color, #0073FC);
}

/* The element keeps the legacy `hero-stat-number` class because the counter
   script selects on it, and that legacy rule paints the digits with a
   white→grey gradient text-fill (background-clip: text). On the dark hero
   that reads as brushed silver; on the pale one it leaves the figures
   almost invisible. Undo the fill here only — dark keeps its treatment. */
html[data-tk-theme="light"] .tk-hero-stat-number {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #0A0D0F;
    color: #0A0D0F;
}

html[data-tk-theme="light"] .tk-hero-stat-label {
    color: #626B75;
}

/* ---- Portfolio grid ----------------------------------------------------- */
/* Light mode needs real elevation for the cards to separate from the pale
   ground. The photographs themselves are untouched — no tint, no overlay
   beyond the existing caption ramp. */
html[data-tk-theme="light"] .tk-hero-shot {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #E8ECEF;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

html[data-tk-theme="light"] .tk-hero-shot:hover {
    border-color: rgba(0, 115, 252, 0.3);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}
