/* ==========================================================================
   Desktop polish (900px and up). Loaded after site.css on every page.
   Mobile styles are untouched: everything below sits in a min-width query.
   ========================================================================== */
.header-cta { display: none; }

@media (min-width: 900px) {
    :root {
        --d-navy: #0b1730; --d-navy-2: #12264d; --d-blue: #1f5fd6; --d-blue-2: #3b82f6;
        --d-ink: #0f1f3d; --d-line: #e6ebf2; --d-grey: #f4f7fb;
        --d-shadow: 0 1px 2px rgba(16,36,70,.05), 0 18px 40px -22px rgba(16,36,70,.28);
        --d-shadow-hover: 0 2px 4px rgba(16,36,70,.06), 0 30px 60px -26px rgba(16,36,70,.38);
        --header-h: 76px;
    }
    body { background: #fff; }

    /* ---------- Header ---------- */
    .site-header { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(230,235,242,.8); box-shadow: none; }
    .main-nav { gap: 2px; padding: 4px; border-radius: 999px; background: var(--d-grey); }
    .main-nav > a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #3d4a60; transition: background .2s, color .2s; }
    .main-nav > a:hover { color: var(--d-ink); background: rgba(255,255,255,.7); }
    .main-nav > a.is-active { color: var(--d-ink); background: #fff; box-shadow: 0 1px 2px rgba(16,36,70,.08), 0 4px 12px -6px rgba(16,36,70,.2); }
    .header-actions { gap: 6px; }
    .header-cta { display: inline-flex; align-items: center; height: 40px; margin-right: 8px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--d-blue-2), var(--d-blue)); box-shadow: 0 10px 20px -10px rgba(31,95,214,.8); transition: transform .2s, box-shadow .2s; }
    .header-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -10px rgba(31,95,214,.9); }

    /* ---------- Shared section heads ---------- */
    .screen { padding: 88px 0; }
    .screen-tint { background: var(--d-grey); }
    .section-head { margin-bottom: 40px; }
    .section-title { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; }
    .section-head .eyebrow { margin-bottom: 10px; font-size: 12px; letter-spacing: .14em; color: var(--d-blue); }
    .section-head .eyebrow::before { display: none; }
    .link-arrow { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--d-line); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--d-ink); background: #fff; transition: border-color .2s, transform .2s; }
    .link-arrow:hover { border-color: var(--d-blue); transform: translateX(2px); }
    .btn { transition: transform .2s, box-shadow .2s, background .2s; }
    .btn-primary { background: linear-gradient(135deg, var(--d-blue-2), var(--d-blue)); border-color: transparent; box-shadow: 0 12px 24px -12px rgba(31,95,214,.85); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(31,95,214,.9); }

    /* ---------- Home hero (dark, premium) ---------- */
    .dhero { position: relative; overflow: hidden; padding: 72px 0 56px; color: #c7d3ea; background: radial-gradient(60% 70% at 85% 30%, rgba(59,130,246,.35) 0%, transparent 60%), radial-gradient(40% 50% at 0% 100%, rgba(20,163,139,.18) 0%, transparent 70%), linear-gradient(160deg, var(--d-navy-2), var(--d-navy) 65%); }
    .dhero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 80%); pointer-events: none; }
    .dhero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
    .dhero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9cc0ff; background: rgba(255,255,255,.05); }
    .dhero-title { margin: 20px 0 0; font-size: clamp(40px, 4.4vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; color: #fff; }
    .dhero-title span { background: linear-gradient(90deg, #7fb2ff, #5ee0c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .dhero-body { max-width: 560px; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: #b3c1dc; }
    .dhero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
    .dbtn-glow { box-shadow: 0 16px 34px -12px rgba(59,130,246,.9); }
    .dbtn-glass { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
    .dbtn-glass:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
    .dhero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; }
    .dhero-tags li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #d6e1f5; }
    .dhero-tags .icon { color: #5ee0c8; }
    .dhero-visual { position: relative; display: grid; place-items: center; }
    .dhero-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 65%); filter: blur(20px); }
    .dhero-library { position: relative; display: block; width: min(100%, 440px); animation: dfloat 6s ease-in-out infinite; }
    .dhero-library img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
    .dhero-float { position: absolute; left: 4%; bottom: 14%; display: grid; gap: 2px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(15,30,60,.6); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); color: #fff; transition: transform .25s; }
    .dhero-float:hover { transform: translateY(-3px); }
    .dhero-float small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9cc0ff; }
    .dhero-float strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
    .dhero-float em { font-style: normal; font-size: 13px; font-weight: 600; color: #b3c1dc; }
    .dhero-stats { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 48px 0 0; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
    .dhero-stats div { padding: 22px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
    .dhero-stats div:first-child { border-left: 0; }
    .dhero-stats dt { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
    .dhero-stats dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #9fb0cf; }
    @keyframes dfloat { 50% { transform: translateY(-12px); } }
    @media (prefers-reduced-motion: reduce) { .dhero-library { animation: none; } }

    /* ---------- Product cards (all desktop grids) ---------- */
    .pgrid, .pgrid.rail, .dgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; }
    .pcard { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--d-line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--d-shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
    .pcard:hover { transform: translateY(-6px); box-shadow: var(--d-shadow-hover); border-color: #d3deef; }
    .pcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: radial-gradient(80% 70% at 50% 40%, #fff 0%, #eef3fa 100%); }
    .pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 18px; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 12px 16px rgba(16,36,70,.18)); }
    .pcard:hover .pcard-img img { transform: scale(1.05); }
    .pcard.is-library .pcard-img img { padding: 18px; }
    .pcard .pbadge { top: 14px; left: 14px; }
    .pcard .save-btn { top: 12px; right: 12px; width: 36px; height: 36px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
    .pcard .share-btn { top: 54px; }
    .pcard:hover .save-btn, .pcard .save-btn:focus-visible, .pcard .save-btn[aria-pressed="true"] { opacity: 1; transform: none; }
    .pcard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
    .pcard-cat { font-size: 11px; letter-spacing: .12em; color: var(--d-blue); }
    .pcard h3 { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--d-ink); }
    .pcard-meta { font-size: 12.5px; }
    .pcard-foot { margin-top: auto; padding-top: 6px; }
    .pprice { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--d-ink); }
    .pcard-view { font-size: 13px; }
    .pcard-add { height: 44px; border-radius: 12px; font-weight: 700; color: var(--d-blue); background: #eef4ff; border: 0; transition: background .2s, color .2s; }
    .pcard-add:hover { color: #fff; background: linear-gradient(135deg, var(--d-blue-2), var(--d-blue)); }
    .pcard-add.is-in-cart { color: #0f8a6b; background: #e6f7f2; }

    /* ---------- Home: grids without orphans ---------- */
    .catgrid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .catcard { border-radius: 20px; box-shadow: var(--d-shadow); transition: transform .3s, box-shadow .3s; }
    .catcard:hover { transform: translateY(-6px); box-shadow: var(--d-shadow-hover); }
    .indgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .indcard { border-radius: 16px; transition: transform .25s, box-shadow .25s, border-color .25s; }
    .indcard:hover { transform: translateY(-4px); border-color: var(--d-blue); box-shadow: var(--d-shadow); }
    .durcard { border-radius: 20px; transition: transform .25s, box-shadow .25s; }
    .durcard:hover { transform: translateY(-4px); box-shadow: var(--d-shadow-hover); }
    .dsec { padding: 72px 0; }
    .dsec .section-head { margin-bottom: 30px; }
    .dchips-row { padding: 30px 0 34px; border-top: 1px solid var(--d-line); background: #fff; }
    .dchips-row .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .dchips-row span { margin-right: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
    .dchips-row a { padding: 9px 16px; border: 1px solid var(--d-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--d-ink); background: #fff; transition: border-color .2s, color .2s, transform .2s; }
    .dchips-row a:hover { border-color: var(--d-blue); color: var(--d-blue); transform: translateY(-2px); }
    .libfeature { border-radius: 32px; box-shadow: var(--d-shadow-hover); }
    .prevcard { border-radius: 18px; transition: transform .3s, box-shadow .3s; }
    .prevcard:hover { transform: translateY(-6px); box-shadow: var(--d-shadow-hover); }
    .post-card, .pcard-post { transition: transform .3s, box-shadow .3s; }

    /* ---------- Page heroes (products, blog, contact) ---------- */
    .page-hero { padding: 64px 0 56px; color: #c7d3ea; background: radial-gradient(50% 80% at 85% 0%, rgba(59,130,246,.35) 0%, transparent 60%), linear-gradient(160deg, var(--d-navy-2), var(--d-navy) 70%); border-bottom: 0; }
    .page-hero .hero-bg { display: none; }
    .page-hero h1, .page-hero .page-title { color: #fff; }
    .page-hero p, .page-hero .page-lead { color: #b3c1dc; }
    .page-hero .eyebrow { color: #9cc0ff; }
    .page-hero .serif-accent, .page-hero em { color: #7fb2ff; }
    .page-hero input[type="search"], .page-hero .search-field { background: #fff; }

    /* ---------- Product page ---------- */
    .pdp-gallery, .pdp-media { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
    .pdp-main, .pdp-hero-img { border-radius: 24px; box-shadow: var(--d-shadow); }

    /* ---------- Footer (dark) ---------- */
    .site-footer { color: #9fb0cf; background: radial-gradient(40% 60% at 100% 0%, rgba(59,130,246,.18), transparent 70%), linear-gradient(170deg, var(--d-navy-2), var(--d-navy) 60%); border-top: 0; }
    .site-footer a { color: #b9c6de; }
    .site-footer a:hover { color: #fff; }
    .footer-col h4, .footer-col > summary h4 { color: #fff; }
    .footer-brand p, .footer-bottom, .footer-bottom p { color: #8fa1c2; }
    .footer-brand .logo, .footer-brand .logo-text { color: #fff; }
    .footer-stds { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
    .footer-stds strong { color: #fff; }
    .footer-stds small, .footer-stds .icon { color: #8fa1c2; }
    .install-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
    .install-card strong { color: #fff; }
    .install-card small { color: #9fb0cf; }
    .footer-grid + * , .footer-bottom { border-top-color: rgba(255,255,255,.1); }

    /* ---------- Reveal motion ---------- */
    [data-reveal] { transition-duration: .7s; }
}

@media (min-width: 900px) and (max-width: 1180px) {
    .pgrid, .pgrid.rail, .dgrid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catgrid, .indgrid { grid-template-columns: repeat(2, 1fr); }
    .dhero-stats { grid-template-columns: repeat(3, 1fr); }
    .dhero-stats div:nth-child(4) { border-left: 0; }
    .dhero-stats div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.1); }
    .header-cta { display: none; }
}

/* Footer fixes on the dark background */
@media (min-width: 900px) {
    .site-footer { padding-top: 72px; }
    .footer-grid { gap: 40px !important; }
    .footer-brand { display: grid; gap: 16px; align-content: start; }
    .footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; }
    /* Uploaded (dark) logo sits on a white tile so it stays visible */
    .footer-brand .logo.has-image { justify-self: start; padding: 12px 18px; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px -16px rgba(0,0,0,.6); }
    .footer-brand .logo.has-image .logo-img { display: block; height: 56px; width: auto; }
    .footer-stds { margin-top: 0; }
    .footer-social { margin-top: 0; }
    .footer-social a { padding: 8px 16px; color: #dbe5f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); transition: background .2s, border-color .2s, color .2s; }
    .footer-social a:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
    .footer-col > summary h4, .footer-col h4 { margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
    .footer-col > a, .footer-col > span { margin-top: 12px; font-size: 14.5px; color: #b9c6de; transition: color .2s, transform .2s; }
    .footer-col > a:hover { color: #fff; transform: translateX(3px); }
    .footer-contact .icon { color: #7fb2ff; }
    .footer-bottom { margin-top: 56px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa1c2; }
    .footer-note { color: #5ee0c8 !important; }
}
@media (min-width: 900px) {
    .site-footer .footer-brand .footer-social a { color: #dbe5f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
    .site-footer .footer-brand .footer-social a:hover { color: #fff; background: rgba(255,255,255,.14); }
    .site-footer .footer-col > summary { margin-bottom: 4px; }
    .site-footer .footer-col > summary h4 { margin-bottom: 0; }
}

/* Product card: badges and price row */
@media (min-width: 900px) {
    .pcard .pbadge { right: auto; padding: 5px 11px; font-size: 11px; letter-spacing: .03em; box-shadow: 0 6px 14px -8px rgba(16,36,70,.6); }
    .pcard .pbadge.is-sale { top: 14px; left: auto; right: 14px; background: #e5484d; }
    .pcard:has(.save-btn) .pbadge.is-sale { top: auto; bottom: 14px; right: 14px; }
    .pcard-foot { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; }
    .pcard-foot .pprice { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
    .pcard-foot .pprice s { margin: 0; font-size: 14px; font-weight: 600; color: #94a3b8; }
    .pcard-view { display: none; }
}

/* Header logo: fit inside the 76px header */
@media (min-width: 900px) {
    .site-header .logo { display: flex; align-items: center; height: 100%; overflow: hidden; }
    .site-header .logo-img { height: 62px; max-width: 260px; object-fit: contain; }
}
