.site-page { min-height: 100vh; background: #fffaf7; color: #351018; }
.sp-main { width: min(100% - 40px, 1040px); margin: 0 auto; padding: 36px 0 64px; }
.sp-crumbs { margin-bottom: 18px; color: #70535a; font-size: 13px; }
.sp-crumbs a { color: #7d1730; text-decoration: underline; }
.sp-hero { padding: 36px; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(87, 9, 28, .08); }
.sp-eyebrow { margin-bottom: 10px; color: #8a1734; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sp-hero h1 { max-width: 820px; margin-bottom: 14px; color: #351018; font-size: clamp(30px, 5vw, 46px); }
.sp-lead { max-width: 800px; color: #60464c; font-size: 18px; }
.sp-section { margin-top: 26px; padding: 28px 32px; border: 1px solid #f0dfe2; border-radius: 16px; background: #fff; }
.sp-section h2 { margin-bottom: 12px; color: #57091c; font-size: 23px; }
.sp-section p + p { margin-top: 12px; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.sp-card { padding: 18px; border-radius: 12px; background: #fff7f1; }
.sp-card h3 { margin-bottom: 7px; color: #57091c; font-size: 17px; }
.sp-card p { color: #60464c; font-size: 14px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: #710e2c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sp-button:hover { background: #57091c; }
.sp-button-light { background: #fff0e5; color: #57091c; }
.sp-contact-list { display: grid; gap: 10px; margin-top: 15px; }
.sp-contact-list a { color: #7d1730; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .sp-hero { padding: 26px 22px; }
    .sp-section { padding: 23px 20px; }
}

/* /services landing page: scoped so shared information pages retain their current layout. */
.services-page { --hub-ink: #27191b; --hub-muted: #685b5d; --hub-line: #e7dfe0; --hub-paper: #fffdfb; background: #f7f4f1; color: var(--hub-ink); }
.services-page *, .services-page *::before, .services-page *::after { box-sizing: border-box; }
.services-page .sp-main { width: min(100% - 48px, 1180px); padding: 30px 0 76px; }
.services-page .sp-crumbs { margin: 0 0 18px 2px; color: #73676a; }
.services-page .sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .94fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "eyebrow visual" "title visual" "lead visual" "actions visual"; align-items: center; gap: 0 46px; min-height: 440px; padding: 50px 54px; overflow: hidden; border: 1px solid #eee6e2; border-radius: 15px; background: linear-gradient(115deg, #fff 0%, #fff 56%, #fbf4ee 100%); box-shadow: 0 18px 48px rgba(57, 26, 31, .07); }
.services-page .sp-hero .sp-eyebrow { grid-area: eyebrow; margin: 0 0 17px; color: #8a1734; letter-spacing: .13em; }
.services-page .sp-hero h1 { grid-area: title; max-width: 620px; margin: 0 0 16px; color: #32141c; font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.services-page .sp-hero .sp-lead { grid-area: lead; max-width: 560px; margin: 0; color: #625457; font-size: 17px; line-height: 1.7; }
.services-page .sp-hero .sp-actions { grid-area: actions; align-self: start; margin-top: 26px; }
.services-page .sp-button { min-height: 48px; padding: 12px 20px; border-radius: 7px; background: #670d27; box-shadow: 0 5px 12px rgba(87,9,28,.12); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.services-page .sp-button:hover { transform: translateY(-2px); background: #4f091d; box-shadow: 0 8px 18px rgba(87,9,28,.18); }
.services-page .sp-button-light { border: 1px solid #ead8d3; background: #fff; box-shadow: none; }
.services-page .sp-button-light:hover { background: #fff5ed; }
.services-page a:focus-visible, .services-page summary:focus-visible { outline: 3px solid #c98d41; outline-offset: 3px; }
.hero-visual { grid-area: visual; position: relative; min-width: 0; padding: 18px; border: 1px solid #e8dfe0; border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 20px 42px rgba(70, 28, 39, .12); transform: rotate(1deg); }
.hero-visual-top { display: flex; align-items: center; gap: 9px; padding: 0 4px 14px; color: #625457; font-size: 12px; font-weight: 700; }
.visual-status, .caption-dot { width: 8px; height: 8px; border-radius: 50%; background: #a27a3d; }
.visual-menu { margin-left: auto; color: #9e8b8d; letter-spacing: 2px; }
.visual-board { display: grid; grid-template-columns: 33px minmax(0,1fr); min-height: 250px; overflow: hidden; border: 1px solid #eee7e5; border-radius: 9px; background: #fbf9f7; }
.visual-sidebar { display: flex; flex-direction: column; align-items: center; gap: 17px; padding: 18px 0; background: #5c1024; }
.visual-sidebar i { width: 11px; height: 11px; border: 1px solid rgba(255,255,255,.64); border-radius: 4px; }
.visual-sidebar i:first-child { background: #f0cb88; border-color: #f0cb88; }
.visual-content { padding: 17px; }
.visual-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #4c373b; font-size: 12px; font-weight: 700; }
.visual-heading-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #f4e6d6; color: #72203a; font-size: 9px; }
.visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.visual-chip { display: flex; min-height: 74px; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; border: 1px solid #eee4e1; border-radius: 7px; background: white; }
.visual-chip b { color: #4a2731; font-size: 12px; }
.visual-chip span { color: #837477; font-size: 10px; line-height: 1.4; }
.visual-chip-ai { border-color: #d9c3a3; background: #fffaf2; }
.visual-chip-wide { grid-column: 1 / -1; min-height: 60px; }
.visual-caption { display: flex; align-items: center; gap: 8px; padding: 13px 2px 0; color: #77696c; font-size: 11px; }
.visual-caption .caption-dot { width: 6px; height: 6px; }
.services-section-heading { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.services-kicker { margin: 0 0 9px; color: #8a1734; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.services-section-heading h2, .ai-copy h2, .solution-list-section h2, .services-contact h2 { margin: 0 0 11px; color: #351018; font-size: clamp(27px, 3vw, 36px); line-height: 1.18; letter-spacing: -.025em; }
.services-section-heading > p:last-child { margin: 0; color: var(--hub-muted); font-size: 16px; line-height: 1.65; }
.services-overview, .technology-section, .process-section, .services-faq { margin-top: 0; padding: 54px 0; }
.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.services-grid-primary .service-tile { grid-column: span 3; }
.services-grid-primary .service-tile-featured { grid-column: span 6; min-height: 218px; padding: 26px; }
.services-grid-primary .service-tile-featured h3 { font-size: 19px; }
.services-grid-primary .service-tile-featured p { max-width: 430px; font-size: 14px; }
.services-grid-primary .service-tile-ai { background: #fbf5eb; }
.service-tile { display: flex; min-height: 244px; flex-direction: column; align-items: flex-start; padding: 22px 20px 19px; border: 1px solid var(--hub-line); border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(47, 22, 26, .035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-tile:hover { transform: translateY(-4px); border-color: #d5b3b7; box-shadow: 0 14px 28px rgba(47, 22, 26, .09); }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 17px; border: 1px solid #f0e2dd; border-radius: 9px; background: #fbf3ee; color: #741d34; }
.service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-tile h3 { margin: 0 0 8px; color: #381b22; font-size: 16px; line-height: 1.35; }
.service-tile p { margin: 0 0 15px; color: #706366; font-size: 13px; line-height: 1.6; }
.service-tile > a, .services-text-link { display: inline-flex; min-height: 40px; align-items: center; margin-top: auto; color: #7a1730; font-size: 12px; font-weight: 750; text-decoration: none; }
.service-tile > a:hover, .services-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ai-feature { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 38px; margin: 34px 0 24px; padding: 46px 52px; overflow: hidden; border-radius: 13px; background: #3a101b; color: #fff; }
.ai-copy .services-kicker { color: #e4c391; }
.ai-copy h2 { color: white; }
.ai-copy > p:not(.services-kicker) { max-width: 610px; color: #e2d4d5; font-size: 14px; line-height: 1.75; }
.ai-copy > p + p { margin-top: 13px; }
.ai-areas { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 16px; margin: 18px 0 14px; padding: 0; list-style: none; }
.ai-areas li { position: relative; padding: 10px 10px 10px 25px; border-bottom: 1px solid rgba(255,255,255,.13); color: #f5e9e6; font-size: 13px; }
.ai-areas li::before { position: absolute; top: 17px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: #e4c391; content: ""; }
.ai-feature .services-text-link { display: inline-flex; margin-top: 13px; color: #f4d59d; font-size: 13px; }
.ai-visual { position: relative; display: grid; min-height: 310px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: radial-gradient(circle at center, rgba(201,151,81,.16), rgba(255,255,255,.015) 65%); }
.ai-orbit { position: absolute; width: 220px; height: 220px; border: 1px solid rgba(238,207,157,.26); border-radius: 50%; }
.ai-orbit-two { width: 290px; height: 290px; border-color: rgba(255,255,255,.12); }
.ai-core { z-index: 1; display: flex; width: 100px; height: 100px; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #e5c18a; border-radius: 50%; background: #5c1c2b; box-shadow: 0 0 40px rgba(226,183,117,.14); }
.ai-core span { color: #f6d7a4; font-size: 25px; font-weight: 800; }
.ai-core small { color: #e7d8cf; font-size: 10px; }
.ai-node { position: absolute; z-index: 1; padding: 9px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: #4a1724; color: #f5e7d4; font-size: 11px; box-shadow: 0 7px 15px rgba(0,0,0,.14); }
.ai-node-data { top: 15%; left: 19%; }.ai-node-workflow { top: 22%; right: 11%; }.ai-node-apps { right: 13%; bottom: 17%; }.ai-node-review { bottom: 13%; left: 12%; }
.ai-flow-arrow { position: absolute; top: 35%; left: calc(50% - 7px); color: #e8cb9c; font-size: 21px; }
.technology-section { padding-top: 50px; }
.technology-groups { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.technology-groups > div { padding: 20px; border-top: 2px solid #791d35; background: #fff; }
.technology-groups h3 { margin: 0 0 14px; color: #411b25; font-size: 14px; }
.technology-groups ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.technology-groups li { padding: 6px 9px; border: 1px solid #e9e1df; border-radius: 5px; background: #fcfaf8; color: #65575a; font-size: 11px; }
.technology-note { max-width: 850px; margin: 18px auto 0; color: #76696b; font-size: 12px; line-height: 1.6; text-align: center; }
.process-section { padding-top: 48px; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.process-steps::before { display: none; }
.process-steps li:not(:last-child)::after { position: absolute; top: 20px; left: 51px; right: -32px; height: 1px; background: #d9c8c6; content: ""; }
.process-steps li { position: relative; padding: 0 10px; }
.process-steps li > span { display: grid; width: 41px; height: 41px; place-items: center; margin: 0 auto 17px 0; border: 1px solid #d5b89a; border-radius: 50%; background: #f7f4f1; color: #721932; font-size: 11px; font-weight: 800; }
.process-steps h3 { margin: 0 0 7px; color: #421b25; font-size: 15px; }
.process-steps p { margin: 0; color: var(--hub-muted); font-size: 13px; line-height: 1.65; }
.value-section { margin: 16px -24px 25px; padding: 50px 24px; background: #f0eae4; }
.value-heading { max-width: 680px; margin: 0 auto 26px; text-align: center; }
.value-heading h2 { margin: 0 0 10px; color: #351018; font-size: clamp(26px,3vw,34px); line-height: 1.2; }
.value-heading > p:last-child { margin: 0; color: var(--hub-muted); font-size: 14px; line-height: 1.6; }
.value-grid { display: grid; max-width: 1120px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0 auto; border-top: 1px solid #d8cbc4; border-bottom: 1px solid #d8cbc4; }
.value-grid article { min-height: 168px; padding: 21px 20px; border-right: 1px solid #d8cbc4; }
.value-grid article:last-child { border-right: 0; }
.value-grid article > span { color: #9c7745; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.value-grid h3 { margin: 13px 0 7px; color: #421b25; font-size: 15px; line-height: 1.35; }
.value-grid p { margin: 0; color: #6d6062; font-size: 12px; line-height: 1.6; }
.featured-software { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 32px 50px; margin: 54px 0 28px; padding: 44px 48px; border: 1px solid #e8dfdc; background: #fff; }
.featured-copy h2 { max-width: 550px; margin: 0 0 14px; color: #351018; font-size: clamp(29px,3.3vw,40px); line-height: 1.14; letter-spacing: -.025em; }
.featured-copy > p:not(.services-kicker) { max-width: 570px; margin: 0 0 20px; color: var(--hub-muted); font-size: 15px; line-height: 1.75; }
.featured-copy .sp-button { text-decoration: none; }
.featured-list { padding: 25px; border-left: 3px solid #a8804e; background: #f8f4ef; }
.featured-list > p { margin: 0 0 15px; color: #7e1e36; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.featured-list ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.featured-list li { position: relative; padding: 10px 2px 10px 17px; border-bottom: 1px solid #e7ddd5; color: #49383b; font-size: 13px; }
.featured-list li::before { position: absolute; top: 16px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #9c7745; content: ""; }
.solution-context { display: flex; grid-column: 1 / -1; align-items: center; gap: 15px; padding-top: 17px; border-top: 1px solid #eee5e1; color: #6b5c5e; font-size: 11px; }
.solution-context span { margin-right: 5px; color: #8a1734; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.solution-context b { font-weight: 600; }
.solution-context i { width: 4px; height: 4px; border-radius: 50%; background: #c6a979; }
.services-faq { max-width: 870px; margin: 0 auto; padding-top: 50px; }
.faq-list { border-top: 1px solid #ded3d1; }
.faq-item { border-bottom: 1px solid #ded3d1; }
.faq-item summary { position: relative; padding: 19px 44px 19px 2px; color: #3d1b23; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 17px; right: 5px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #e5d8d5; border-radius: 50%; color: #741d34; content: "+"; font-size: 17px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 40px 18px 2px; animation: faq-reveal .2s ease-out; }
.faq-answer p { margin: 0; color: #6d6062; font-size: 14px; line-height: 1.7; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.services-contact { display: grid; grid-template-columns: 1.1fr .9fr auto; align-items: center; gap: 26px; margin-top: 44px; padding: 34px 38px; border-radius: 11px; background: #3b101c; color: #fff; }
.services-contact .services-kicker { color: #e6c48f; }
.services-contact h2 { margin-bottom: 8px; color: #fff; font-size: 26px; }
.services-contact > div:first-child > p:last-child { margin: 0; color: #e0d1d3; font-size: 13px; line-height: 1.6; }
.services-contact-details { display: grid; gap: 7px; color: #e7dadd; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.services-contact-details a { color: #f3d6a5; text-decoration: none; }
.services-contact-details a:hover { text-decoration: underline; }
.services-page .services-contact-button { white-space: nowrap; border: 1px solid rgba(255,255,255,.28); background: #fff; color: #57091c; box-shadow: none; }
.services-page .services-contact-button:hover { background: #fff4e6; }
.software-services .service-tile-featured { grid-column: span 3; min-height: 244px; padding: 22px 20px 19px; }
.software-page .services-grid-primary .service-tile { grid-column: span 4; min-height: 0; }
.software-services .service-tile-featured h3 { font-size: 16px; }
.software-services .service-tile-featured p { max-width: none; font-size: 13px; }
.software-technology .technology-groups { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.software-audience { margin: 20px 0; padding: 38px; border: 1px solid #e8dfdc; background: #fff; }
.software-audience ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.software-audience li { padding: 9px 13px; border: 1px solid #e9e1df; border-radius: 999px; background: #fcfaf8; color: #514347; font-size: 13px; font-weight: 600; }
.software-audience > p:last-child { margin: 17px 0 0; color: var(--hub-muted); font-size: 12px; text-align: center; }
.software-contact .sp-actions { display: grid; gap: 9px; margin: 0; }
.software-contact .sp-actions .sp-button { min-width: 175px; background: #fff; color: #57091c; white-space: nowrap; }
.software-contact .sp-actions .sp-button-light { background: #fff0e5; }
.software-contact .sp-actions .sp-button:hover { background: #fff4e6; }
.software-page .hero-visual { grid-area: visual; }
.software-page .sp-hero .sp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.software-page .sp-hero .sp-actions .sp-button { min-width: 160px; }
.software-page .software-audience { border-radius: 10px; }
@media (max-width: 1100px) {
    .software-technology .technology-groups { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .software-page .services-grid-primary .service-tile { grid-column: span 3; }
}
@media (max-width: 820px) {
    .software-page .services-grid-primary .service-tile { grid-column: span 1; }
    .software-audience { padding: 28px 22px; }
    .software-contact .sp-actions { display: flex; flex-direction: row; flex-wrap: wrap; }
    .software-contact .sp-actions .sp-button { flex: 1 1 170px; }
}
@media (max-width: 480px) {
    .software-technology .technology-groups { grid-template-columns: 1fr; }
    .software-page .services-grid-primary .service-tile { grid-column: 1; }
    .software-audience { padding: 24px 16px; }
    .software-contact .sp-actions { flex-direction: column; }
    .software-contact .sp-actions .sp-button { width: 100%; flex: 0 0 auto; }
}
@media (max-width: 1100px) {
    .services-page .sp-main { width: min(100% - 40px, 980px); }
    .services-page .sp-hero { grid-template-columns: minmax(0,1fr) minmax(330px,.88fr); gap: 0 28px; padding: 40px 38px; }
    .value-section { margin-right: -20px; margin-left: -20px; }
    .services-grid-primary { grid-template-columns: repeat(6, minmax(0,1fr)); }
    .services-grid-primary .service-tile, .services-grid-primary .service-tile-featured { grid-column: span 3; }
    .services-contact { grid-template-columns: 1fr 1fr; }
    .services-contact-button { justify-self: start; }
}
@media (max-width: 820px) {
    .services-page .sp-main { width: min(100% - 32px, 620px); padding-top: 24px; }
    .services-page .sp-hero { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "eyebrow" "title" "lead" "actions" "visual"; gap: 0; min-height: 0; padding: 30px 25px; }
    .services-page .sp-hero h1 { font-size: clamp(34px, 8vw, 46px); }
    .services-page .sp-hero .sp-actions { margin: 21px 0 26px; }
    .services-page .sp-hero .sp-actions .sp-button { flex: 1 1 180px; }
    .services-grid-primary { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .services-grid-primary .service-tile, .services-grid-primary .service-tile-featured { grid-column: span 1; }
    .value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .value-grid article:nth-child(2) { border-right: 0; }
    .value-grid article:nth-child(-n+2) { border-bottom: 1px solid #d8cbc4; }
    .featured-software { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
    .solution-context { flex-wrap: wrap; }
    .hero-visual { max-width: 480px; width: 100%; justify-self: center; padding: 13px; transform: none; }
    .visual-board { min-height: 220px; }
    .services-overview, .technology-section, .process-section, .services-faq { padding: 38px 0; }
    .services-section-heading { margin-bottom: 23px; }
    .service-tile { min-height: 220px; }
    .ai-feature { grid-template-columns: 1fr; gap: 28px; margin: 18px 0; padding: 30px 24px; }
    .ai-visual { min-height: 270px; }
    .technology-groups { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .process-steps { grid-template-columns: 1fr; gap: 0; padding-left: 6px; }
    .process-steps::before { display: block; top: 20px; bottom: 25px; left: 26px; width: 1px; height: auto; }
    .process-steps li::after { display: none; }
    .process-steps li { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; padding: 0 0 23px; }
    .process-steps li > span { grid-row: 1 / span 2; margin: 0; background: #f7f4f1; }
    .process-steps h3 { align-self: end; margin-top: 2px; }
    .process-steps p { grid-column: 2; }
    .services-contact { grid-template-columns: 1fr; gap: 18px; padding: 27px 24px; }
    .services-contact-button { width: 100%; }
}
@media (max-width: 480px) {
    .services-page .sp-main { width: calc(100% - 28px); }
    .services-page .sp-hero { padding: 25px 20px; }
    .services-page .sp-hero .sp-actions { flex-direction: column; align-items: stretch; }
    .services-page .sp-hero .sp-actions .sp-button { width: 100%; }
    .visual-content { padding: 12px; }
    .visual-chip { min-height: 68px; padding: 9px; }
    .visual-chip span { font-size: 9px; }
    .services-grid-primary, .technology-groups, .value-grid { grid-template-columns: 1fr; }
    .services-grid-primary .service-tile, .services-grid-primary .service-tile-featured { grid-column: 1; }
    .value-grid article, .value-grid article:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid #d8cbc4; }
    .value-grid article:last-child { border-bottom: 0; }
    .service-tile { min-height: 0; padding: 20px; }
    .services-grid-primary .service-tile-featured { min-height: 0; padding: 20px; }
    .ai-areas, .featured-list ul { grid-template-columns: 1fr; }
    .technology-groups > div { padding: 17px; }
    .value-section { margin-right: -14px; margin-left: -14px; padding: 36px 14px; }
    .featured-software { margin: 28px 0 20px; padding: 26px 20px; }
    .ai-visual { min-height: 235px; }
    .ai-orbit { width: 175px; height: 175px; }
    .ai-orbit-two { width: 225px; height: 225px; }
    .ai-node { padding: 7px 8px; font-size: 10px; }
    .ai-node-data { left: 8%; }.ai-node-workflow { right: 5%; }.ai-node-apps { right: 5%; }.ai-node-review { left: 5%; }
}

@media (prefers-reduced-motion: reduce) {
    .services-page *, .services-page *::before, .services-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact Software Development flow: content height follows the real hero and visual. */
.software-page .sp-main { padding: 28px 0 26px; }
.software-page .sp-hero { min-height: 0; grid-template-rows: auto auto auto auto; gap: 0 38px; padding: 36px 42px; }
.software-page .sp-hero .sp-actions { margin-top: 18px; }
.software-page .hero-visual { min-width: 0; transform: none; }
.software-page .services-overview,
.software-page .technology-section,
.software-page .process-section,
.software-page .services-faq { padding-top: 34px; padding-bottom: 34px; }
.software-page .ai-feature { gap: 28px; margin: 10px 0 16px; padding: 32px 38px; }
.software-page .ai-visual { min-height: 270px; }
.software-page .software-audience { margin: 12px 0; padding: 28px 30px; }
.software-page .services-contact { margin-top: 20px; padding: 27px 30px; }

/* Contact page */
.contact-page .sp-main { width: min(100% - 40px, 1120px); padding: 26px 0 52px; }
.contact-page .contact-hero { margin-bottom: 20px; padding: 27px 34px; border: 1px solid #eee6e2; border-radius: 12px; box-shadow: 0 10px 28px rgba(57, 26, 31, .06); }
.contact-page .contact-hero .sp-eyebrow { margin-bottom: 8px; }
.contact-page .contact-hero h1 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 42px); }
.contact-page .contact-hero .sp-lead { font-size: 16px; }
.contact-information { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 22px; padding: 0; }
.contact-card { min-width: 0; padding: 18px; border: 1px solid #e9e1df; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(47, 22, 26, .04); }
.contact-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #ead9cc; border-radius: 9px; background: #fbf3ee; color: #741d34; }
.contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h2 { margin: 13px 0 5px; color: #7a1730; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-card a { display: block; color: #45383b; font-size: 13px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.contact-card a:hover { color: #7a1730; text-decoration: underline; text-underline-offset: 3px; }
.contact-enquiry { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 22px; align-items: stretch; margin: 0 0 26px; padding: 27px; border: 1px solid #eadfdb; border-radius: 12px; background: #fff; }
.contact-enquiry-copy { align-self: center; }
.contact-enquiry-copy h2, .contact-reasons h2 { margin: 0 0 10px; color: #351018; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; }
.contact-enquiry-copy > p:not(.services-kicker) { max-width: 620px; margin: 0; color: #685b5d; font-size: 14px; line-height: 1.7; }
.contact-enquiry-copy ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; margin: 15px 0 0; padding: 0; list-style: none; }
.contact-enquiry-copy li { position: relative; padding-left: 17px; color: #514347; font-size: 12px; line-height: 1.5; }
.contact-enquiry-copy li::before { position: absolute; top: .58em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #a77d43; content: ""; }
.contact-enquiry-action { display: flex; flex-direction: column; align-items: flex-start; padding: 21px; border-radius: 10px; background: #3b101c; color: #fff; }
.contact-enquiry-action .contact-icon { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #f0cb88; }
.contact-enquiry-action h3 { margin: 12px 0 5px; color: #fff; font-size: 17px; }
.contact-enquiry-action p { margin: 0 0 13px; color: #e0d1d3; font-size: 12px; line-height: 1.6; }
.contact-primary, .contact-secondary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.contact-primary { width: 100%; background: #fff; color: #57091c; }
.contact-primary:hover { background: #fff1dc; }
.contact-secondary { width: 100%; margin-top: 8px; border-color: rgba(255,255,255,.28); background: transparent; color: #f5d9aa; text-decoration: none; }
.contact-secondary:hover { background: rgba(255,255,255,.08); }
.contact-secondary span { margin-left: 8px; }
.contact-reasons { padding: 8px 0 6px; }
.contact-reasons .services-section-heading { margin-bottom: 18px; }
.contact-reason-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.contact-reason-grid article { min-width: 0; padding: 18px; border: 1px solid #e9e1df; border-radius: 9px; background: #fff; }
.contact-reason-grid h3 { margin: 12px 0 5px; color: #421b25; font-size: 14px; line-height: 1.4; }
.contact-reason-grid p { margin: 0; color: #706366; font-size: 12px; line-height: 1.55; }
.contact-page a:focus-visible, .contact-page button:focus-visible { outline: 3px solid #c98d41; outline-offset: 3px; }

@media (max-width: 1100px) {
    .software-page .sp-hero { gap: 0 26px; padding: 32px 34px; }
    .contact-information { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .contact-reason-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .software-page .sp-main { padding-top: 22px; }
    .software-page .sp-hero { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto auto auto; grid-template-areas: "eyebrow" "title" "lead" "actions" "visual"; gap: 0; padding: 27px 24px; }
    .software-page .sp-hero .sp-actions { margin: 17px 0 22px; }
    .software-page .sp-hero .sp-actions .sp-button { flex: 1 1 150px; }
    .software-page .hero-visual { max-width: 480px; width: 100%; justify-self: center; }
    .software-page .ai-feature { padding: 28px 24px; }
    .software-page .services-contact { padding: 25px 22px; }
    .contact-enquiry { grid-template-columns: minmax(0,1fr); gap: 17px; padding: 21px; }
    .contact-enquiry-action { width: 100%; }
}
@media (max-width: 480px) {
    .software-page .sp-main { width: calc(100% - 28px); }
    .software-page .sp-hero { padding: 24px 18px; }
    .software-page .sp-hero h1 { font-size: clamp(32px, 9vw, 39px); }
    .software-page .sp-hero .sp-actions { flex-direction: column; align-items: stretch; }
    .software-page .sp-hero .sp-actions .sp-button { width: 100%; flex: 0 0 auto; }
    .software-page .ai-feature { padding: 24px 18px; }
    .contact-page .sp-main { width: calc(100% - 28px); padding-top: 18px; }
    .contact-page .contact-hero { padding: 23px 19px; }
    .contact-information, .contact-reason-grid { grid-template-columns: minmax(0,1fr); }
    .contact-card { display: grid; grid-template-columns: 42px minmax(0,1fr); column-gap: 12px; align-items: center; padding: 14px; }
    .contact-card .contact-icon { grid-row: span 2; }
    .contact-card h2 { margin: 0 0 3px; }
    .contact-card a { grid-column: 2; }
    .contact-enquiry { padding: 17px; }
    .contact-enquiry-copy ul { grid-template-columns: minmax(0,1fr); }
}

/* About page: icon cards and contact rows (icons support the text, headings unchanged). */
.sp-card-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 12px; border: 1px solid #ead9cc; border-radius: 9px; background: #fff; color: #741d34; }
.sp-card-icon svg, .sp-contact-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-contact-list a { display: flex; align-items: center; gap: 10px; }
.sp-contact-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; background: #fbf3ee; color: #741d34; }
.sp-contact-icon svg { width: 16px; height: 16px; }

/* Contact page: compact "Follow NCA IT Solution" row. Social URLs come from settings (same as footer). */
.contact-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 14px 0 0; padding: 22px 27px; border: 1px solid #eadfdb; border-radius: 12px; background: #fff; }
.contact-social-copy .services-kicker { margin-bottom: 6px; }
.contact-social-copy h2 { margin: 0; color: #351018; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding: 6px 15px 6px 6px; border: 1px solid #e6d7d2; border-radius: 999px; background: #fdf8f5; color: #4a2731; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.social-link:hover { transform: translateY(-2px); border-color: #d9b98f; background: #fff; box-shadow: 0 7px 16px rgba(87, 9, 28, .12); }
.social-link:focus-visible { outline: 3px solid #c98d41; outline-offset: 3px; }
.social-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #3b101c; color: #f0cb88; }
.social-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.social-icon svg.is-filled { fill: currentColor; stroke: none; }
.social-link.is-soon { color: #7a6a6d; border-style: dashed; background: #fff; cursor: default; }
.social-link.is-soon:hover { transform: none; border-color: #e6d7d2; box-shadow: none; }
.social-link.is-soon .social-icon { background: #ece4e1; color: #8f8183; }
.social-soon { padding: 2px 7px; border-radius: 999px; background: #f4e9e4; color: #7a1730; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 480px) {
    .contact-social { padding: 20px 18px; }
    .social-row { width: 100%; }
    .social-link { flex: 1 1 calc(50% - 10px); min-width: 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .social-link { transition: none; }
}
@media (max-width: 480px) {
    .social-row li { width: 100%; }
    .social-link { display: flex; width: 100%; min-width: 0; }
}
