/* ================================================================
   LOSNING TOOLS — MAIN STYLESHEET
   Swedish Blue & Yellow industrial B2B theme
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------------- */
:root {
    /* Brand colours */
    --blue:          #CC1C1C;   /* Lösning brand red */
    --blue-dark:     #a81515;
    --blue-deeper:   #1a0808;
    --yellow:        #FECC02;   /* CTA yellow */
    --yellow-hover:  #e8bb00;
    --navy:          #0f0f0f;   /* Near-black for top bar / footer */

    /* Neutrals */
    --white:         #ffffff;
    --grey-light:    #f4f6f9;
    --grey-mid:      #e2e6ec;
    --grey-border:   #d0d5dd;
    --text:          #1a1a2a;
    --text-muted:    #6b7280;
    --text-light:    #9ca3af;

    /* Typography */
    --font-body:     'Inter', system-ui, -apple-system, Arial, sans-serif;
    --font-heading:  'Montserrat', 'Inter', Arial, sans-serif;

    /* Spacing */
    --section-py:    80px;
    --container-max: 1240px;
    --container-pad: 24px;

    /* Shadows */
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

    /* Border radius */
    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     12px;
    --radius-xl:     20px;

    /* Transitions */
    --transition:    0.22s ease;
}


/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--blue-dark); }

img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}
ul { list-style: none; }

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}


/* ----------------------------------------------------------------
   3. UTILITIES
---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}
.container--narrow {
    max-width: 780px;
}

.section {
    padding: var(--section-py) 0;
}
.section--grey {
    background: var(--grey-light);
}

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

.rounded { border-radius: var(--radius); }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.section-header--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: .5rem;
}
.section-eyebrow {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .75rem;
}
.section-header__link {
    font-weight: 600;
    font-size: .9rem;
    color: var(--blue);
    white-space: nowrap;
}
.section-header__link:hover { color: var(--blue-dark); }


/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem 1.6rem;
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .4px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn--sm  { padding: .45rem 1rem; font-size: .8rem; }
.btn--lg  { padding: .85rem 2rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* Primary — Blue */
.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Yellow (hero CTA) */
.btn--yellow {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
}
.btn--yellow:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Outline white (on dark bg) */
.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
}

/* Outline blue */
.btn--outline-blue {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline-blue:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

/* Header CTA */
.btn--header-cta {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
    padding: .55rem 1.3rem;
    font-size: .82rem;
}
.btn--header-cta:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
    color: var(--navy);
}


/* ----------------------------------------------------------------
   5. TOP BAR
---------------------------------------------------------------- */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    padding: .45rem 0;
}
.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.top-bar__contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.top-bar__link {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color var(--transition);
}
.top-bar__link:hover { color: var(--yellow); }
.top-bar__whatsapp { color: #4fce5d; }
.top-bar__whatsapp:hover { color: #3ab64a; }
.top-bar__tagline {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .5px;
}


/* ----------------------------------------------------------------
   6. HEADER
---------------------------------------------------------------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow var(--transition);
}
.site-header--scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

/* Logo */
.site-header__logo { flex-shrink: 0; }
.site-header__logo img,
.site-header__logo-img { height: 52px; width: auto; display: block; }
.site-header__logo-link { display: flex; align-items: center; }
.footer-logo__img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.site-header__text-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: .15rem;
}
.logo-losning {
    color: var(--blue);
}
.logo-tools {
    color: var(--yellow);
    font-size: .85em;
}

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav__list {
    display: flex;
    align-items: center;
    gap: .1rem;
}
.primary-nav__item {
    position: relative;
}
.primary-nav__link {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .6rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.primary-nav__link:hover,
.primary-nav__item:hover > .primary-nav__link {
    color: var(--blue);
    background: rgba(0,106,167,.06);
}
.nav-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
}
.primary-nav__item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdowns */
.primary-nav__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition);
    z-index: 999;
}
.primary-nav__item:hover > .primary-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-nav__dropdown li > a {
    display: block;
    padding: .55rem 1.1rem;
    font-size: .83rem;
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}
.primary-nav__dropdown li > a:hover {
    background: rgba(0,106,167,.07);
    color: var(--blue);
    padding-left: 1.4rem;
}

/* Wide (mega) dropdown for Products */
.primary-nav__dropdown--wide {
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1rem;
}
.primary-nav__dropdown--wide li { list-style: none; }

.dropdown-section {
    grid-column: span 1;
    padding: .25rem .5rem;
}
.dropdown-section__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: .3rem .5rem .4rem;
    margin-bottom: .1rem;
}
.dropdown-section ul { padding-left: 0; }
.dropdown-section ul li a {
    display: block;
    padding: .38rem .5rem;
    font-size: .82rem;
    color: var(--text);
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition);
}
.dropdown-section ul li a:hover {
    background: rgba(0,106,167,.08);
    color: var(--blue);
}
.dropdown-section--cta {
    grid-column: span 2;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--grey-mid);
}
.dropdown-all-products {
    display: inline-block;
    font-size: .83rem;
    font-weight: 700;
    color: var(--blue) !important;
    padding: .35rem .5rem !important;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .4rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    margin-left: auto;
}
.mobile-menu-toggle:hover { background: var(--grey-light); }
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ----------------------------------------------------------------
   7. MOBILE NAV DRAWER
---------------------------------------------------------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 100vw);
    height: 100%;
    background: var(--white);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav[aria-hidden="false"] { right: 0; }

.mobile-nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
.mobile-nav__overlay.is-visible { display: block; }

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--grey-mid);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}
.mobile-nav__close {
    padding: .4rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
}
.mobile-nav__close:hover { background: var(--grey-light); color: var(--text); }

.mobile-nav__menu { padding: 1rem 0; flex: 1; }
.mobile-nav__menu ul { padding: 0; }
.mobile-nav__menu > ul > li { border-bottom: 1px solid var(--grey-light); }
.mobile-nav__menu > ul > li > a,
.mobile-nav__accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .9rem 1.25rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition);
}
.mobile-nav__menu > ul > li > a:hover,
.mobile-nav__accordion:hover {
    background: rgba(0,106,167,.06);
    color: var(--blue);
}
.mobile-nav__sub {
    display: none;
    background: var(--grey-light);
    padding: .5rem 0;
}
.mobile-nav__sub.is-open { display: block; }
.mobile-nav__sub li a {
    display: block;
    padding: .55rem 1.5rem;
    font-size: .84rem;
    color: var(--text);
    transition: color var(--transition);
}
.mobile-nav__sub li a:hover { color: var(--blue); }
.mobile-nav__sub li strong {
    display: block;
    padding: .6rem 1.5rem .2rem;
    font-size: .72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mobile-nav__footer {
    padding: 1.25rem;
    border-top: 1px solid var(--grey-mid);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: var(--white);
}
.mobile-nav__contact-link {
    font-size: .82rem;
    color: var(--text-muted);
    text-align: center;
}
.mobile-nav__contact-link:hover { color: var(--blue); }


/* ----------------------------------------------------------------
   8. HERO SECTION
---------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
}
.hero__slides {
    position: relative;
    min-height: 560px;
}
@media (min-width:768px) { .hero__slides { min-height: 640px; } }

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}
.hero__slide--active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 5rem 0 4rem;
}
@media (min-width:900px) {
    .hero__content {
        grid-template-columns: 1fr auto;
        gap: 3rem;
        padding: 5rem 0;
    }
}

.hero__eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 1rem;
}
.hero__headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero__highlight { color: var(--yellow); }
.hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero__product-badge {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(254,204,2,.2);
}
.hero__specs-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.hero__specs-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    color: rgba(255,255,255,.85);
    font-weight: 500;
}
.spec-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
}

/* Hero flag */
.hero__flag-icon {
    text-align: center;
}
.hero__flag-icon svg { border-radius: var(--radius); }
.flag-label {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-top: .6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero controls */
.hero__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    background: var(--blue-deeper);
}
.hero__prev,
.hero__next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.hero__prev:hover,
.hero__next:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}
.hero__dots { display: flex; gap: .5rem; }
.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    border: none;
    transition: all var(--transition);
}
.hero__dot--active {
    background: var(--yellow);
    transform: scale(1.3);
}


/* ----------------------------------------------------------------
   9. TRUST BAR
---------------------------------------------------------------- */
.trust-bar {
    background: var(--blue-deeper);
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--yellow);
}
.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.trust-bar__icon { color: var(--yellow); flex-shrink: 0; }
.trust-bar__item > div { display: flex; flex-direction: column; }
.trust-bar__item strong {
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}
.trust-bar__item span {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
    margin-top: .1rem;
}


/* ----------------------------------------------------------------
   10. FEATURED CATEGORY CARDS
---------------------------------------------------------------- */
.featured-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.featured-cat-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.featured-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}
.featured-cat-card__img-wrap {
    overflow: hidden;
    background: #ffffff;
    height: 260px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-cat-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform .4s ease;
}
.featured-cat-card:hover .featured-cat-card__img-wrap img { transform: scale(1.05); }

.featured-cat-card__placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-cat-card__placeholder--blue  { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.featured-cat-card__placeholder--navy  { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deeper) 100%); }
.featured-cat-card__placeholder--dark  { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%); }

.featured-cat-card__body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 1;
}
.featured-cat-card__tag {
    display: inline-block;
    background: rgba(0,106,167,.1);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 20px;
}
.featured-cat-card__body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
}
.featured-cat-card__body p { color: var(--text-muted); font-size: .9rem; }
.featured-cat-card__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.featured-cat-card__list li {
    font-size: .82rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}
.featured-cat-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: .75rem;
}
.featured-cat-card__body .btn { margin-top: auto; align-self: flex-start; }


/* ----------------------------------------------------------------
   11. CATEGORY GRID
---------------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.cat-card:hover {
    border-color: var(--blue);
    background: rgba(0,106,167,.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.cat-card__img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .5rem;
}
.cat-card__img img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 6px;
    transition: transform .3s ease;
}
.cat-card:hover .cat-card__img img { transform: scale(1.1); }
.cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--yellow);
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .5px;
}
.cat-card__body { flex: 1; min-width: 0; }
.cat-card__body h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .15rem;
    line-height: 1.3;
}
.cat-card__body p {
    font-size: .72rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-card__arrow {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: transform var(--transition);
    flex-shrink: 0;
}
.cat-card:hover .cat-card__arrow {
    color: var(--blue);
    transform: translateX(3px);
}


/* ----------------------------------------------------------------
   12. WHY LOSNING SECTION
---------------------------------------------------------------- */
.why-losning__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width:900px) {
    .why-losning__grid { grid-template-columns: 1fr 380px; }
}

.why-losning__intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 1rem 0 1.75rem;
    line-height: 1.75;
}

.why-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.why-list__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.why-list__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(0,106,167,.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}
.why-list__item > div strong {
    display: block;
    font-weight: 700;
    font-size: .93rem;
    color: var(--navy);
    margin-bottom: .25rem;
}
.why-list__item > div p {
    font-size: .87rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Stats card */
.why-visual-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    box-shadow: var(--shadow-lg);
}
.why-visual-card__inner { padding: 2rem; position: relative; overflow: hidden; }
.why-visual-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}
.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,.07);
    border-radius: var(--radius);
}
.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}
.stat__plus { font-size: 1.2rem; }
.stat__label {
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.7);
    margin-top: .4rem;
    letter-spacing: .3px;
    font-weight: 600;
}
.why-visual-flag {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 0;
}


/* ----------------------------------------------------------------
   13. APPLICATIONS GRID
---------------------------------------------------------------- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}
.app-card {
    padding: 1.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.app-card:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.app-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,106,167,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all var(--transition);
    color: var(--blue);
}
.app-card:hover .app-card__icon {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.app-card h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: inherit;
}
.app-card p {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    transition: color var(--transition);
}
.app-card:hover p { color: rgba(255,255,255,.75); }


/* ----------------------------------------------------------------
   14. PRODUCT GRID (CPT)
---------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
    transform: translateY(-3px);
}
.product-card__img-link { position: relative; display: block; }
.product-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card__img-placeholder {
    height: 200px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.product-card__badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--blue);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.product-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
}
.product-card__title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .35rem;
    line-height: 1.35;
}
.product-card__title a { color: var(--navy); }
.product-card__title a:hover { color: var(--blue); }
.product-card__sku {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: .45rem;
}
.product-card__excerpt {
    font-size: .83rem;
    color: var(--text-muted);
    margin-bottom: .85rem;
    line-height: 1.55;
}


/* ----------------------------------------------------------------
   15. CTA BANNER
---------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 5rem 0;
}
.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-banner__text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: .65rem;
}
.cta-banner__text p {
    color: rgba(255,255,255,.75);
    max-width: 500px;
    font-size: .95rem;
    line-height: 1.7;
}
.cta-banner__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}


/* ----------------------------------------------------------------
   16. FOOTER
---------------------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
}

.footer-top { padding: 4.5rem 0 3rem; }
.footer-top__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-col--brand { max-width: 280px; }
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: .15rem;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin-bottom: 1.25rem;
}
.footer-social {
    display: flex;
    gap: .6rem;
}
.footer-social__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    transition: all var(--transition);
}
.footer-social__link:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col__title {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links li a {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links li a:hover { color: var(--yellow); }

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin-bottom: 1.5rem;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
}
.footer-contact-list li svg { color: var(--yellow); flex-shrink: 0; }
.footer-contact-list li a {
    color: rgba(255,255,255,.65);
    transition: color var(--transition);
}
.footer-contact-list li a:hover { color: var(--yellow); }

.footer-quote-cta p {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    margin-bottom: .65rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
}
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom__copy { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom__links {
    display: flex;
    gap: 1.25rem;
}
.footer-bottom__links li a {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom__links li a:hover { color: var(--white); }


/* ----------------------------------------------------------------
   17. PAGE HERO (INNER PAGES)
---------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 3.5rem 0 3rem;
}
.page-hero__eyebrow {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .5rem;
    letter-spacing: .5px;
}
.page-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.breadcrumb {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--yellow); }


/* ----------------------------------------------------------------
   18. PRODUCT DETAIL
---------------------------------------------------------------- */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width:768px) {
    .product-detail__grid { grid-template-columns: 1fr 1fr; }
}

.product-detail__main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.product-detail__img-placeholder {
    background: var(--grey-light);
    border-radius: var(--radius-lg);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.product-detail__cat {
    display: inline-block;
    background: rgba(0,106,167,.1);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.product-detail__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .5rem;
}
.product-detail__sku {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.product-detail__desc {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.product-detail__quick-specs {
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.product-detail__quick-specs h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--grey-mid); }
.spec-table th {
    width: 40%;
    text-align: left;
    padding: .5rem .75rem .5rem 0;
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-muted);
}
.spec-table td {
    padding: .5rem 0;
    font-size: .85rem;
    color: var(--text);
    font-weight: 600;
}
.product-detail__cta {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}


/* ----------------------------------------------------------------
   19. ENTRY CONTENT (WYSIWYG)
---------------------------------------------------------------- */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    margin: 1.75rem 0 .75rem;
    color: var(--navy);
}
.entry-content p { margin: 0 0 1rem; line-height: 1.75; }
.entry-content ul, .entry-content ol {
    margin: 0 0 1rem 1.5rem;
    list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .35rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td {
    padding: .65rem 1rem;
    border: 1px solid var(--grey-mid);
    text-align: left;
    font-size: .9rem;
}
.entry-content th { background: var(--grey-light); font-weight: 700; }
.entry-content blockquote {
    border-left: 4px solid var(--blue);
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: rgba(0,106,167,.05);
    border-radius: 0 var(--radius) var(--radius) 0;
}


/* ----------------------------------------------------------------
   20. POST & ARCHIVE GRIDS
---------------------------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.post-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--blue);
}
.post-card__img-link { display: block; overflow: hidden; }
.post-card__img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__body { padding: 1.25rem; }
.post-card__date { font-size: .75rem; color: var(--text-muted); display: block; margin-bottom: .4rem; }
.post-card__title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { font-size: .85rem; color: var(--text-muted); margin-bottom: .85rem; }

.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers {
    display: inline-flex;
    gap: .35rem;
    list-style: none;
}
.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--grey-mid);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
}
.pagination .page-numbers a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers .current { background: var(--blue); border-color: var(--blue); color: var(--white); }

.no-results { color: var(--text-muted); font-size: 1.05rem; }


/* ----------------------------------------------------------------
   21. BACK TO TOP
---------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 800;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


/* ----------------------------------------------------------------
   22. RESPONSIVE — TABLET & MOBILE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .primary-nav { display: none; }
    .btn--header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    :root {
        --section-py: 56px;
        --container-pad: 16px;
    }
    .top-bar__tagline { display: none; }

    .hero__content { padding: 3rem 0; }
    .hero__actions { gap: .75rem; }
    .hero__actions .btn--lg { font-size: .85rem; padding: .75rem 1.5rem; }

    .trust-bar__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .featured-cats__grid { grid-template-columns: 1fr; }

    .cat-grid { grid-template-columns: 1fr 1fr; }
    @media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }

    .app-grid { grid-template-columns: repeat(2, 1fr); }

    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__actions { justify-content: center; }

    .footer-top__grid { grid-template-columns: 1fr 1fr; }
    .footer-col--brand { grid-column: span 2; max-width: none; }

    .footer-bottom__inner { flex-direction: column; align-items: center; text-align: center; }

    .hero__visual { display: none; }

    .why-losning__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .trust-bar__grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr; }
    .footer-top__grid { grid-template-columns: 1fr; }
    .footer-col--brand { grid-column: span 1; }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .product-detail__cta { flex-direction: column; }
    .product-detail__cta .btn { width: 100%; justify-content: center; }
}
