/* =============================================================
   SERVICES PAGE ADDITIONS
   Link after styles.css
   ============================================================= */

/* --- Hero wavelet visible --- */
.page-hero {
    padding: 90px 0 80px;
    overflow: hidden;
}

.page-hero::before {
    opacity: 0.18;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: url('small_morlet_wavelet.png') center/contain no-repeat;
    opacity: 0.07;
    transform: rotate(160deg);
    pointer-events: none;
    z-index: 1;
}

/* --- Services intro note - softer treatment --- */
.services-intro {
    padding: 48px 0;
}

.services-note {
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-left: 4px solid var(--blue-500);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: none;
    gap: 20px;
}

.services-note svg {
    color: var(--blue-500);
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.services-note p {
    font-size: 15px;
    color: var(--navy-600);
    margin-bottom: 10px;
}

/* --- Services detail - reduced padding --- */
.services-detail {
    padding: 56px 0 72px;
    background: var(--gradient-subtle);
}

/* -------------------------------------------------------
   DOMAIN SECTIONS
   Each domain is a self-contained block with a header
   and a bento grid row below it.
------------------------------------------------------- */
.svc-domain {
    margin-bottom: 64px;
}

.svc-domain-last {
    margin-bottom: 0;
}

.svc-domain-header {
    margin-bottom: 24px;
}

.svc-domain-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 5px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.tag-blue {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue-600);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tag-gold {
    background: rgba(245, 158, 11, 0.08);
    color: var(--gold-600);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tag-teal {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.svc-domain-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
    line-height: 1.2;
}

.svc-domain-header p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--navy-600);
    max-width: 680px;
}

/* --- Domain separator - alternating background instead of just a line --- */
.svc-domain + .svc-domain {
    padding-top: 64px;
}

/* Wrap each domain in its own band via a pseudo approach --
   achieved by giving even domains a slightly different bg.
   We do this on the services-detail itself being white/gray,
   then override even children with a tinted panel. */
.svc-domain:nth-child(even) {
    background: rgba(241, 245, 252, 0.9);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top: 56px;
    padding-bottom: 56px;
    margin-bottom: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    border-bottom: 1px solid rgba(203, 213, 225, 0.7);
}

.svc-domain:nth-child(odd) {
    padding-top: 56px;
    padding-bottom: 56px;
    margin-bottom: 0;
}

/* -------------------------------------------------------
   BENTO FLIP - narrow-left / wide-right
   Achieved by reordering with CSS order property
------------------------------------------------------- */
.bento-flip .bento-narrow { order: 1; }
.bento-flip .bento-wide   { order: 2; }

/* -------------------------------------------------------
   SERVICE LIST STRIP
   Replaces bento-approach -- same visual language but
   contains a bullet list of capabilities.
------------------------------------------------------- */
.svc-list-strip {
    background: rgba(15, 23, 42, 0.035);
    border-top: 2px solid var(--gray-200);
    border-left: 4px solid var(--blue-500);
    padding: 20px 28px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover .svc-list-strip {
    background: rgba(37, 99, 235, 0.04);
    border-top-color: rgba(37, 99, 235, 0.2);
}

/* Gold accent variant for Defense domain */
.svc-list-gold {
    border-left-color: var(--gold-500);
}

.bento-card:hover .svc-list-gold {
    background: rgba(245, 158, 11, 0.04);
}

/* Teal accent variant for Software domain */
.svc-list-teal {
    border-left-color: var(--cyan-500);
}

.bento-card:hover .svc-list-teal {
    background: rgba(6, 182, 212, 0.04);
}

.svc-list-strip ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-list-strip ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--navy-600);
}

.svc-list-strip ul li svg {
    width: 14px;
    height: 14px;
    color: var(--blue-500);
    stroke: var(--blue-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.svc-list-gold ul li svg {
    color: var(--gold-500);
    stroke: var(--gold-500);
}

.svc-list-teal ul li svg {
    color: var(--cyan-500);
    stroke: var(--cyan-500);
}

/* -------------------------------------------------------
   ICON COLOR VARIANTS
   Blue is default (from bento-icon in styles.css).
   Gold and teal variants for Defense and Software domains.
------------------------------------------------------- */
.svc-icon-blue {
    background: var(--gradient-accent) !important;
}

.svc-icon-gold {
    background: var(--gradient-gold) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

.svc-icon-teal {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--blue-500) 100%) !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3) !important;
}

/* Ensure feather SVGs in bento icons are always white */
.bento-icon svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2 !important;
}

/* Gold/teal domain: hover accent on card border */
.svc-domain:nth-child(2) .bento-card:hover {
    border-color: var(--gold-500);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.12);
}

.svc-domain:nth-child(3) .bento-card:hover {
    border-color: var(--cyan-500);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .services-detail      { padding: 40px 0 56px; }
    .services-intro       { padding: 32px 0; }
    .svc-domain           { margin-bottom: 48px; }
    .svc-domain + .svc-domain { padding-top: 48px; }
    .bento-flip .bento-narrow,
    .bento-flip .bento-wide { order: unset; }
}