
/*
 * TamirGroup Homepage Visual Upgrade
 * Performance goals:
 * - Hero is preloaded and WebP.
 * - All below-the-fold card images are lazy-loaded.
 * - No external fonts or JS libraries.
 * - Existing semantic headings/links remain intact.
 */

.tg-hvu-hero-visual{
    position:relative!important;
    overflow:hidden!important;
    min-height:440px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:30px!important;
    background:#081a29!important;
    box-shadow:0 28px 75px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08)!important;
    isolation:isolate;
}

.tg-hvu-hero-visual > .tg-v3-device,
.tg-hvu-hero-visual > .tg-v3-chip{
    display:none!important;
}

.tg-hvu-hero-picture{
    position:absolute;
    inset:0;
    display:block;
    z-index:0;
}

.tg-hvu-hero-picture::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(4,15,25,.04),rgba(4,15,25,.38)),
        linear-gradient(90deg,rgba(6,21,34,.22),transparent 52%);
    pointer-events:none;
}

.tg-hvu-hero-picture img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center right!important;
    display:block!important;
    transform:scale(1.01);
}

.tg-hvu-hero-badge{
    position:absolute;
    z-index:3;
    max-width:250px;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:16px;
    color:#fff;
    background:rgba(4,18,30,.72);
    box-shadow:0 12px 30px rgba(0,0,0,.22);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.tg-hvu-hero-badge b{
    display:block;
    margin-bottom:3px;
    font-size:13px;
    color:#fff;
}

.tg-hvu-hero-badge span{
    display:block;
    font-size:11px;
    line-height:1.65;
    color:#d8edf5;
}

.tg-hvu-hero-badge--top{top:18px;right:18px}
.tg-hvu-hero-badge--bottom{bottom:18px;left:18px}

/* Hero copy: stronger visual hierarchy while preserving readable line length. */
.tg-v3-hero-copy h1{
    max-width:780px;
    letter-spacing:-.025em;
    text-wrap:balance;
}

.tg-v3-hero-copy > p{
    max-width:760px;
    line-height:2;
}

/* Service and store media */
.tg-v3-service,
.tg-v3-store-grid > a{
    position:relative;
    overflow:hidden!important;
    border:1px solid #e1e9ef!important;
    box-shadow:0 12px 32px rgba(20,46,67,.07)!important;
    transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease!important;
}

.tg-v3-service:hover,
.tg-v3-store-grid > a:hover{
    transform:translateY(-5px);
    border-color:#bddce4!important;
    box-shadow:0 20px 48px rgba(20,46,67,.13)!important;
}

.tg-hvu-card-media{
    display:block;
    overflow:hidden;
    position:relative;
    background:#081a29;
    border-radius:18px;
    margin-bottom:16px;
    aspect-ratio:4/3;
}

.tg-hvu-card-media::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    box-shadow:inset 0 -45px 70px rgba(3,18,29,.18);
}

.tg-hvu-card-media img{
    width:100%!important;
    height:100%!important;
    display:block!important;
    object-fit:cover!important;
    transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}

.tg-v3-service:hover .tg-hvu-card-media img,
.tg-v3-store-grid > a:hover .tg-hvu-card-media img{
    transform:scale(1.035);
}

.tg-v3-service h3,
.tg-v3-store-grid h3{
    text-wrap:balance;
}

.tg-v3-service p,
.tg-v3-store-grid p{
    line-height:1.9;
}

/* Gives the services a cleaner card rhythm without changing link structure. */
.tg-v3-service-grid{
    align-items:stretch;
}

.tg-v3-service{
    display:flex!important;
    flex-direction:column;
}

.tg-v3-service > b{
    margin-top:auto;
}

/* Store cards become visual storefronts. */
.tg-v3-store-grid > a{
    display:flex!important;
    flex-direction:column;
}

.tg-v3-store-grid > a > b{
    margin-top:auto;
}

/* Subtle premium section treatment */
.tg-v3-products,
.tg-v3-blog{
    position:relative;
}

.tg-v3-head h2{
    letter-spacing:-.015em;
    text-wrap:balance;
}

@media (max-width: 980px){
    .tg-hvu-hero-visual{min-height:390px!important}
    .tg-hvu-hero-badge{max-width:220px}
}

@media (max-width: 780px){
    .tg-hvu-hero-visual{
        min-height:360px!important;
        border-radius:22px!important;
    }

    .tg-hvu-hero-picture img{
        object-position:62% center!important;
    }

    .tg-hvu-hero-badge{
        padding:10px 12px;
        border-radius:14px;
        max-width:200px;
    }

    .tg-hvu-hero-badge--top{top:12px;right:12px}
    .tg-hvu-hero-badge--bottom{bottom:12px;left:12px}

    .tg-hvu-card-media{
        border-radius:15px;
        aspect-ratio:16/10;
    }
}

@media (max-width: 520px){
    .tg-hvu-hero-visual{min-height:310px!important}

    .tg-hvu-hero-badge--top{display:none}

    .tg-hvu-hero-badge--bottom{
        left:10px;
        right:10px;
        max-width:none;
        bottom:10px;
    }
}

@media (prefers-reduced-motion: reduce){
    .tg-v3-service,
    .tg-v3-store-grid > a,
    .tg-hvu-card-media img{
        transition:none!important;
    }
}


/* Desktop accessibility: comfortable pointer/touch targets without bloating layout. */
@media (min-width: 781px){
    .tg-main-menu a,
    .site-account,
    .site-cart,
    .tg-v3-head > a,
    .tg-v3-hero a,
    .tg-v3-final a,
    .site-footer a{
        min-height:44px;
        display:inline-flex;
        align-items:center;
    }

    .tg-main-menu a,
    .site-account,
    .site-cart{
        padding-top:8px;
        padding-bottom:8px;
    }

    .tg-v3-head > a,
    .site-footer a{
        padding:8px 10px;
        border-radius:10px;
    }
}

.tg-main-menu a:focus-visible,
.site-account:focus-visible,
.site-cart:focus-visible,
.tg-v3-head > a:focus-visible,
.tg-v3-service:focus-visible,
.tg-v3-store-grid > a:focus-visible,
.site-footer a:focus-visible{
    outline:3px solid #23c8d7;
    outline-offset:3px;
}


/* =========================
   Services page visual upgrade
   ========================= */
.tghvu-services .entry-content > :first-child,
.tghvu-services main .page-content > :first-child{
    margin-top:0;
}

.tg-spvu-hero{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    gap:28px;
    align-items:center;
    margin:0 0 28px;
    padding:28px;
    border:1px solid #dde7ef;
    border-radius:28px;
    background:radial-gradient(circle at 12% 10%,rgba(25,200,215,.14),transparent 26%),linear-gradient(180deg,#fbfdff,#f6f9fc);
    box-shadow:0 22px 60px rgba(17,37,56,.08);
}

.tg-spvu-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid #d8e5ef;
    border-radius:999px;
    color:#0f6072;
    background:#fff;
    font-size:12px;
    font-weight:800;
    margin-bottom:14px;
}
.tg-spvu-title{
    margin:0 0 12px;
    color:#0d2236;
    font-size:clamp(28px,3.2vw,44px);
    line-height:1.25;
    letter-spacing:-.03em;
    text-wrap:balance;
}
.tg-spvu-lead{
    margin:0 0 18px;
    color:#4e6173;
    font-size:15px;
    line-height:2;
    max-width:68ch;
}
.tg-spvu-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.tg-spvu-btn{
    min-height:46px;
    padding:0 18px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:13px;
    font-weight:900;
    text-decoration:none!important;
}
.tg-spvu-btn--primary{
    background:linear-gradient(135deg,#19c8d7,#66a5ff);
    color:#071522!important;
    box-shadow:0 12px 28px rgba(76,134,255,.18);
}
.tg-spvu-btn--ghost{
    background:#fff;
    color:#11334d!important;
    border:1px solid #d8e5ef;
}
.tg-spvu-btn:hover{transform:translateY(-1px)}

.tg-spvu-hero__visual{
    position:relative;
    overflow:hidden;
    min-height:360px;
    border-radius:26px;
    background:#081a29;
    box-shadow:0 24px 60px rgba(0,0,0,.18);
}
.tg-spvu-hero__visual picture,
.tg-spvu-hero__visual img{
    display:block;
    width:100%;
    height:100%;
}
.tg-spvu-hero__visual img{
    object-fit:cover;
    object-position:center center;
}
.tg-spvu-hero__visual::after{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(180deg,rgba(4,15,25,.04),rgba(4,15,25,.22));
    pointer-events:none;
}
.tg-spvu-hero-badge{
    position:absolute;
    right:18px; top:18px;
    z-index:2;
    padding:12px 14px;
    max-width:220px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:16px;
    background:rgba(5,18,30,.74);
    color:#fff;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.tg-spvu-hero-badge b{display:block;margin-bottom:4px;font-size:13px}
.tg-spvu-hero-badge span{display:block;font-size:11px;line-height:1.7;color:#d9ecf7}
.tg-spvu-hero-badge--alt{right:auto;left:18px;top:auto;bottom:18px}

.tg-spvu-section{
    margin:34px 0;
}
.tg-spvu-section-head{
    margin-bottom:18px;
}
.tg-spvu-section-head > span{
    display:inline-block;
    margin-bottom:8px;
    color:#0f6072;
    font-size:12px;
    font-weight:800;
}
.tg-spvu-section-head h3{
    margin:0 0 8px;
    color:#102337;
    font-size:clamp(23px,2.2vw,32px);
    letter-spacing:-.02em;
    text-wrap:balance;
}
.tg-spvu-section-head p{
    margin:0;
    color:#52687a;
    line-height:1.9;
    max-width:72ch;
}

.tg-spvu-service-grid,
.tg-spvu-store-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.tg-spvu-card,
.tg-spvu-store{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    text-decoration:none!important;
    border:1px solid #dfe8f0;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 32px rgba(20,46,67,.06);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tg-spvu-card:hover,
.tg-spvu-store:hover{
    transform:translateY(-5px);
    border-color:#c4dbe5;
    box-shadow:0 20px 42px rgba(20,46,67,.12);
}
.tg-spvu-card-media{
    display:block;
    position:relative;
    overflow:hidden;
    background:#071522;
    aspect-ratio:4/3;
}
.tg-spvu-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .45s ease;
}
.tg-spvu-card:hover .tg-spvu-card-media img,
.tg-spvu-store:hover .tg-spvu-card-media img{
    transform:scale(1.035);
}
.tg-spvu-card-body{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:16px 16px 18px;
}
.tg-spvu-card-body strong{
    color:#102337;
    font-size:16px;
    line-height:1.45;
}
.tg-spvu-card-body span{
    color:#52687a;
    font-size:13px;
    line-height:1.9;
}
.tg-spvu-card-body b{
    color:#0d578f;
    font-size:12px;
    font-weight:900;
    margin-top:auto;
}

.tg-spvu-original-content{
    margin-top:18px;
}

.tg-spvu-cta{
    margin:38px 0 0;
    padding:20px;
    border:1px solid #d9e4ec;
    border-radius:24px;
    background:linear-gradient(135deg,#071522,#0e2438);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.tg-spvu-cta span{
    display:block;
    color:#9ad9e1;
    font-size:12px;
    font-weight:800;
    margin-bottom:6px;
}
.tg-spvu-cta h3{
    margin:0;
    color:#fff;
    font-size:clamp(20px,2vw,28px);
    line-height:1.5;
    text-wrap:balance;
}
.tg-spvu-cta .tg-spvu-btn--ghost{
    background:rgba(255,255,255,.08);
    color:#fff!important;
    border-color:rgba(255,255,255,.18);
}

@media (max-width: 1180px){
    .tg-spvu-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .tg-spvu-store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 920px){
    .tg-spvu-hero{
        grid-template-columns:1fr;
        padding:20px;
    }
    .tg-spvu-hero__visual{min-height:320px}
    .tg-spvu-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tg-spvu-cta{
        flex-direction:column;
        align-items:flex-start;
    }
}
@media (max-width: 640px){
    .tg-spvu-hero{
        margin:0 0 22px;
        padding:16px;
        border-radius:22px;
    }
    .tg-spvu-hero__visual{min-height:270px;border-radius:20px}
    .tg-spvu-hero-badge{display:none}
    .tg-spvu-service-grid,
    .tg-spvu-store-grid{grid-template-columns:1fr}
    .tg-spvu-card,
    .tg-spvu-store{border-radius:18px}
    .tg-spvu-btn{width:100%}
}
