/* ============================================================================
   Software4.net — Shared page components premium layer
   ----------------------------------------------------------------------------
   Loaded site-wide from _Layout, AFTER site.css but BEFORE the page-level
   @section Styles block — so pages with their own sheet (home-premium,
   services-premium) still override this, while the pages that don't
   (Contact, About, Products, Blog) inherit the refined treatment.

   CSS-only and component-scoped: it upgrades the shared .section-label /
   .section-title / .section-subtitle typography and the generic card and
   hero patterns those pages already use, so no page markup changes.
   ========================================================================== */

/* ── Section eyebrow ─────────────────────────────────────────────────── */
/* site.css renders this as a wide pale pill. On a page with several
   sections that reads as repeated chrome, so it's reduced to a compact
   tracked label — the same treatment the redesigned pages use. */
.section-label {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .15em !important;
    text-transform: uppercase;
    color: #1677FF !important;
    margin-bottom: .85rem !important;
}
/* Eyebrows sitting on a dark hero need light text instead. */
[style*="var(--s4-navy"] .section-label,
[style*="#0d1b2a"] .section-label,
[style*="gradient-hero"] .section-label {
    color: rgba(255,255,255,.88) !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    padding: .4rem .9rem !important;
    border-radius: 6px !important;
    backdrop-filter: blur(8px);
}

/* ── Section headings ────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.7rem, 3.1vw, 2.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.03em !important;
    line-height: 1.15 !important;
    color: #071A33 !important;
    text-wrap: balance;
}
.section-subtitle {
    font-size: 1rem !important;
    line-height: 1.72 !important;
    color: #64748B !important;
}

/* Page heroes on these pages are inline-styled navy→blue gradients. Deepening
   them to the refined palette keeps them consistent with the redesigned
   pages without touching each page's markup. */
section[style*="padding:120px 0 80px"],
section[style*="padding:130px 0 80px"],
section[style*="padding:140px 0 80px"],
div[style*="padding:140px 0 80px"] {
    position: relative; overflow: hidden;
    background: linear-gradient(140deg, #050F1F 0%, #071A33 46%, #0B3B73 100%) !important;
}
section[style*="padding:120px 0 80px"]::before,
section[style*="padding:130px 0 80px"]::before,
section[style*="padding:140px 0 80px"]::before,
div[style*="padding:140px 0 80px"]::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    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(ellipse 72% 76% at 50% 42%, #000 16%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 42%, #000 16%, transparent 72%);
}
section[style*="padding:120px 0 80px"] > *,
section[style*="padding:130px 0 80px"] > *,
section[style*="padding:140px 0 80px"] > *,
div[style*="padding:140px 0 80px"] > * { position: relative; z-index: 1; }

section[style*="padding:120px 0 80px"] h1,
section[style*="padding:140px 0 80px"] h1,
div[style*="padding:140px 0 80px"] h1 {
    letter-spacing: -.032em !important;
    line-height: 1.09 !important;
}

/* ── Generic cards ───────────────────────────────────────────────────── */
/* These pages lean on Bootstrap .card plus a few bespoke card classes.
   Softening the radius and giving one consistent hover lift keeps them
   coherent with the redesigned sections. */
.service-card, .product-card, .blog-card, .team-card,
.value-card, .info-card, .feature-card {
    border-radius: 14px;
    transition: transform .32s cubic-bezier(.22,1,.36,1),
                box-shadow .32s cubic-bezier(.22,1,.36,1),
                border-color .28s ease;
}
.service-card:hover, .product-card:hover, .blog-card:hover,
.team-card:hover, .value-card:hover, .info-card:hover, .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(7,26,51,.26);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary-s4 {
    border-radius: 8px !important;
    font-weight: 650 !important;
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.btn-primary-s4:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(22,119,255,.8);
}
.btn-outline-s4 { border-radius: 8px !important; font-weight: 650 !important; }

/* ── Forms (Contact / Blog subscribe) ────────────────────────────────── */
.form-control, .form-select {
    border-radius: 9px;
    transition: border-color .24s ease, box-shadow .24s ease;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(22,119,255,.55);
    box-shadow: 0 0 0 4px rgba(22,119,255,.12);
}
@media (max-width: 575.98px) {
    /* 16px stops iOS zooming in when a field takes focus. */
    .form-control, .form-select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover, .product-card:hover, .blog-card:hover,
    .team-card:hover, .value-card:hover, .info-card:hover,
    .feature-card:hover, .btn-primary-s4:hover { transform: none; }
}
