/* --- Global frame tuned for “6,0” tiles --- */

html {
    font-size: clamp(16px, 0.9vw + 8px, 20px);
}

@media (min-width: 1920px) {
    html {
        font-size: 18.5px;
    }
}

/* comfy at 1080p/1440p/1920p */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
}

/* readable on 4K */

:root {
    --primary: #ffffff;
    --accent: #81c3d7;
    --bg: #000000;
    --line: #333333;
    --text: #ffffff;
    --text-light: #aaaaaa;
    --transition: all .3s ease;

    /* Content cap is slightly wider so 6 tiles can breathe */
    --container-max: 1800px;
    --gutter: clamp(16px, 3.5vw, 80px);
    --section-pad: clamp(24px, 6vh, 140px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-family: 'Aptos', 'Segoe UI', Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Containers */
.container {
    max-width: min(var(--container-max), 100% - (var(--gutter) * 2));
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 40px);
}

.container.wide {
    max-width: none;
    padding-inline: var(--gutter);
}

/* Header */
.sf-header {
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
}

.sf-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 1px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-block: clamp(8px, 2vh, 16px);
}

.sf-title img {
    width: clamp(300px, 50vw, 1100px);
    height: auto;
    display: block;
    margin: 0 auto;
    padding-block: clamp(6px, 1vh, 10px);
    mix-blend-mode: screen;
    transition: transform .3s ease;
}

@media (min-width:1600px) {
    .sf-title img {
        transform: translateX(-6%);
    }
}

@media (min-width:2560px) {
    .sf-title img {
        transform: translateX(-8%);
    }
}

/* Nav */
.sf-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sf-nav .nav-wrap {
    display: flex;
    justify-content: center;
    align-items: center
}

.sf-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap
}

.sf-nav a {
    display: block;
    padding: 14px 14px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: .5px;
    position: relative;
    transition: var(--transition);
}

.sf-nav a:hover {
    color: #fff
}

.sf-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.sf-nav a:hover::after {
    width: 80%
}

.sf-nav a.active {
    color: #fff
}

.sf-nav a.active::after {
    width: 80%
}

/* Hero */
.hero {
    background:
        linear-gradient(rgba(53, 193, 228, .10), rgba(0, 0, 0, .78)),
        url('source/bernd-dittrich-KOa31dHjKEk-unsplash.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding-block: var(--section-pad);
    border-bottom: 1px solid var(--line);
    filter: saturate(1.2) contrast(1.2) brightness(1.1);
    min-height: clamp(420px, 54vh, 720px);
}

@media (min-width:2560px) {
    .hero {
        min-height: clamp(520px, 60vh, 860px);
    }
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: .28em;
    font-size: clamp(2rem, 4.5vw, 4rem);
    margin: 10px 0 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .65), 0 0 1px rgba(0, 0, 0, .85);
}

.hero p {
    max-width: 780px;
    margin: 12px auto 0;
    color: var(--text);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

/* CTA */
.hero-buttons {
    margin-top: clamp(18px, 7vh, 56px);
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2vw, 18px);
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: clamp(12px, 2vh, 18px) clamp(20px, 3.2vw, 46px);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.5rem);
    letter-spacing: 2px;
    transition: var(--transition);
    border: 1px solid var(--line);
    box-shadow: 0 6px 8px rgba(0, 0, 0, .336);
}

.btn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: #35c1e4;
    transform: translateY(-2px)
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--line)
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .06);
    border-color: #35c1e4
}

/* Optional motion */
.btn.is-new {
    animation: sf-pulse 2.2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@keyframes sf-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, .336), 0 0 0 0 rgba(53, 193, 228, 0)
    }

    50% {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 8px 16px rgba(0, 0, 0, .35), 0 0 22px 4px rgba(53, 193, 228, .18)
    }
}

.tile.wobble {
    animation: sf-wobble 3s ease-in-out infinite;
    transform-origin: 50% 60%
}   


.btn.wobble {
    animation: sf-wobble 3s ease-in-out infinite;
    transform-origin: 50% 60%
}

@keyframes sf-wobble {

    0%,
    39% {
        transform: translateY(0) rotate(0)
    }

    40% {
        transform: translateY(-1px) rotate(-1.2deg)
    }

    45% {
        transform: translateY(0) rotate(.8deg)
    }

    50% {
        transform: translateY(-1px) rotate(-.6deg)
    }

    55% {
        transform: translateY(0) rotate(.4deg)
    }

    60%,
    100% {
        transform: translateY(0) rotate(0)
    }
}

.btn.ping {
    position: relative;
    isolation: isolate;
    transition: transform 0.2s ease;
}

.btn.ping:hover {
    transform: translateY(-1px);
}

.btn.ping::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 7px;
    z-index: -1;
    background: radial-gradient(circle, rgba(53, 193, 228, 0.4) 0%, rgba(53, 193, 228, 0.1) 50%, rgba(53, 193, 228, 0) 70%);
    animation: sf-ping-pro 1.8s ease-out infinite;
}

@keyframes sf-ping-pro {
    0% {
        transform: scale(0.2);
        opacity: 0.7;
    }

    60% {
        transform: scale(0.95);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {

    .btn.is-new,
    .btn.wobble,
    .btn.ping::after {
        animation: none !important
    }
}

/* Tiles */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    /* default responsive */
    gap: clamp(12px, 2vw, 20px);
    padding: clamp(18px, 4vh, 34px) 0;
}

/* Solid 4 across on ~desktop widths */
@media (min-width:1200px) {
    .tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* “6, 0” on big/ultra-wide: six columns, no second row spill */
@media (min-width:1440px) {
    .tiles {
        grid-template-columns: repeat(6, 1fr);
    }
}

.tile {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    padding: 18px;
    border-radius: 6px;
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.tile:hover {
    transform: translateY(-3px);
    border-color: #35c1e4
}

.tile h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .8px;
    font-weight: 400;
    margin-bottom: 6px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.tile p {
    color: var(--text-light);
    font-size: clamp(.98rem, 1.3vw, 1.1rem)
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
    color: var(--text-light);
    padding: 6px 0 24px;
}

footer a {
    color: var(--primary);
    text-decoration: none
}

footer a:hover {
    text-decoration: underline;
    color: #35c1e4
}

/* Small screens */
@media (max-width:768px) {
    .sf-title {
        font-size: 2.4rem
    }
}

/* 1080p-ish */
@media (max-width:1366px) {
    :root {
        --container-max: 1100px;
    }

    .hero {
        min-height: 50vh;
    }
}

/* Big displays: widen the content cap so 6 tiles fit comfortably */
@media (min-width:1920px) {
    :root {
        --container-max: 1800px;
    }

    /* was 1280px */
    .hero p {
        max-width: 860px;
    }
}

@media (min-width:2560px) {
    :root {
        --container-max: 1880px;
    }

    /* extra breathing room on 4K */
}

/* High contrast preference */
@media (prefers-contrast: more) {
    .hero {
        background:
            linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .70)),
            url('/source/bernd-dittrich-KOa31dHjKEk-unsplash.jpg') center/cover no-repeat;
    }

    .hero p {
        color: #fff;
    }
}

/* --- Scroll reveal (subtle, professional) --- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        transform 1820ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 820ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: reveal the whole row instead of each tile */
.reveal-row {
    opacity: 0;
    transform: translateY(12px);
    transition:
        transform 2520ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 2520ms ease;
}

.reveal-row.is-visible {
    opacity: 1;
    transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-row {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Optional: tighten hero a touch on shorter viewports so tiles appear sooner */
@media (max-height: 900px) and (min-width: 1200px) {
    .hero {
        min-height: 48vh;
    }

    .hero-buttons {
        margin-top: clamp(12px, 5vh, 40px);
    }
}

/* ===== About page components (scoped, reusable) ===== */

/* Optional narrower content cap just for long-form pages */
.container.narrow {
    max-width: min(1100px, 100% - (var(--gutter) * 2));
}

/* Prose wrapper: headings, paragraphs, spacing */
.prose {
    padding-block: clamp(40px, 7vh, 80px);
}

.prose section {
    margin-bottom: clamp(36px, 6vh, 72px);
}

.prose h2 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0 0 25px;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    position: relative;
    padding-bottom: 15px;
}

.prose h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--text);
}

.prose h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    margin: 30px 0 20px;
    color: #ddd;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.prose p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

/* Info/Contact boxes */
.info-box,
.contact-info {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    border-radius: 6px;
    padding: clamp(18px, 3vw, 30px);
}

.contact-info {
    text-align: center;
    margin: clamp(24px, 5vh, 40px) 0;
}

.contact-info p {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    border-bottom: 1px solid var(--text);
}

.contact-info a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Stats grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(14px, 2vw, 25px);
    margin: clamp(24px, 4vh, 40px) 0;
}

.stat {
    border: 1px solid var(--line);
    cursor: pointer;
    padding: clamp(16px, 2.5vw, 25px);
    background: rgba(255, 255, 255, .03);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
    border-color: var(--accent);
}

.stat .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1;
}

/* Sources grid */
.sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin: clamp(20px, 4vh, 35px) 0;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(12px, 2vw, 15px);
    background: rgba(255, 255, 255, .03);
    border-radius: 6px;
    border-left: 3px solid var(--line);
    transition: var(--transition);
}

.source-item i {
    color: var(--text-light);
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.source-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, .08);
    border-left-color: var(--accent);
}

.source-item:hover i {
    color: var(--accent);
}

/* Subtle scroll-reveal (reuse the same utility as tiles if you added it) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Shorter hero on shorter viewports so content arrives sooner */
@media (max-height: 900px) and (min-width: 1200px) {
    .hero {
        min-height: 48vh;
    }
}

 /*/* ===== Services page helpers ===== 

/* Shorter hero (we don't need the tall splash here) 
.hero.hero--short {
    padding-block: clamp(320px, 10vh, 64px);
    min-height: auto;
}

/* Service tiles: cap at 4 across for comfy reading 
.services-tiles {
    /* start responsive, slightly wider card min 
    grid-template-columns: repeat(auto-fit, minmax(860px, 1fr));
}

@media (min-width: 1200px) {
    .services-tiles {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1440px) {
    .services-tiles {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1600px) {
    .services-tiles {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Clickable card feel when using <a class="tile"> 
a.tile {
    cursor: pointer;
}
*/

/* ===== Services (one-screen overlay) ===== */

/* Short variant hero, used for succinct pages */
.hero.hero--onepage {
    padding-block: clamp(24px, 8vh, 48px);
    min-height: auto;
    /* height set by JS to exactly fill the viewport minus chrome */
}

/* Services tiles over the background */
.tiles.services-tiles {
    display: grid;
    gap: clamp(12px, 1.4vw, 18px);
    /* default to 4 across for desktop-class widths (4×2 for 8 tiles) */
    grid-template-columns: repeat(4, 1fr);
    align-content: start;
    grid-auto-rows: 1fr;
    /* balanced card heights */
}

/* 4K: 6 across, 1 row for 6 items; 8 items -> 6/2 */
@media (min-width: 2560px) {
    .tiles.services-tiles {
        grid-template-columns: repeat(4, 2fr);
    }
}

/* Tablets: two across */
@media (max-width: 1199px) {
    .tiles.services-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones: single column */
@media (max-width: 640px) {
    .tiles.services-tiles {
        grid-template-columns: 1fr;
    }
}

/* Cards stay classy and readable on overlay */
.tile.overlay {
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(1px);
}

/* One-screen compact nudges when vertical space is tight */
html.is-compact .sf-nav a {
    padding: 14px 14px;
}

html.is-compact .hero.hero--onepage {
    padding-block: clamp(16px, 6vh, 32px);
}

html.is-compact .tiles.services-tiles {
    gap: 12px;
}

html.is-compact .tile {
    padding: 14px;
}

html.is-compact .tile h3 {
    margin-bottom: 4px;
}

/* ===== Reports (shared card grid) ===== */

/* Shorter hero like Services */
.hero.hero--short {
    padding-block: clamp(32px, 10vh, 64px);
    min-height: auto;
}

/* Card grid */
.cards {
    display: grid;
    gap: clamp(12px, 2vw, 20px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-content: start;
}

/* Card surface */
.card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    border-radius: 6px;
    padding: clamp(14px, 2vw, 18px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    border-color: #35c1e4;
}

.card h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .8px;
    font-weight: 400;
    color: #fff;
    margin: 4px 0 6px;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.badge {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ddd;
    font-size: .8rem;
    margin-bottom: 8px;
}

.price {
    font-weight: 700;
    margin: 8px 0 10px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Buttons reuse .btn from global; add light variants */
.btn-buy {
    border-color: #3c7;
}

.btn-buy:hover {
    border-color: #4fd;
    box-shadow: 0 0 0 2px rgba(79, 253, 221, .12) inset;
}

.btn-access {
    border-color: #666;
}

/* Respect reduced motion on hover */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

a.tile {
    cursor: pointer;
}


.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Make all our buttons feel clickable */
.btn,
button.btn,
a.btn,
[role="button"].btn {
    cursor: pointer;
}

/* Optional: clear visual for non-clickable states */
.btn[disabled],
.btn.is-disabled,
button.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
/* ==== Cart: UHD comfort sizing (≥1920px) ==== */
@media (min-width: 1920px) {
    .cart-panel {
        width: clamp(520px, 28vw, 720px);
        /* a bit taller type & spacing */
        font-size: 1.06rem;
    }

    .cart-head {
        padding: 18px 20px;
    }

    .cart-head h3 {
        font-size: 1.4rem;
        letter-spacing: 1.2px;
    }

    .cart-body {
        padding: 18px 20px;
    }

    .cart-item {
        gap: 14px;
        padding: 16px 0;
    }

    .cart-item .title {
        font-size: 1.02em;
    }

    .cart-item .meta {
        font-size: .96em;
    }

    .cart-item .qty {
        gap: 10px;
        margin-top: 10px;
    }

    .cart-item .qty input {
        width: 64px;
        padding: 10px 12px;
        font-size: 1rem;
    }

    .cart-item .remove {
        padding: 8px 10px;
        font-size: .98rem;
    }

    .cart-foot {
        padding: 18px 20px;
    }

    .totals {
        row-gap: 8px;
        font-size: 1.06rem;
    }

    .totals .final {
        font-size: 1.12rem;
    }
}

    /* Float button (FAB): bigger tap target and badge */
    .cart-fab {
        width: 68px;
        height: 68px;
        right: 30px;
        bottom: 30px;
        font-size: 1.15rem;
        /* icon scales slightly */
    }

    .cart-fab .count {
        width: 24px;
        height: 24px;
        font-size: .82rem;
        top: -7px;
        right: -7px;
    }       

/* --- Supply Nation block --- */
/* Supply Nation – size & centering tweaks */
.supplynation-block {
    align-items: center;
    /* vertical centering within the grid */
    justify-items: center;
    /* horizontal centering */
    gap: clamp(8px, 1.2vw, 14px);
    /* slightly tighter spacing */
    padding-block: clamp(8px, 1.6vw, 18px);
    /* trims overall section height */
}

.supplynation-block img {
    display: block;
    margin-inline: auto;
    /* center the image */
    height: auto !important;
    /* override previous fixed height */
    max-height: clamp(120px, 18vh, 220px);
    /* ~100px smaller than the old 320px cap */
    width: auto;
}

.supplynation-block p{
  margin:0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--text);
}
/* --- End of Supply Nantion Block --- */