/* Solutto Consulting. Astra Editorial already serves the brand typefaces. */
.smp-hero, .smp-section {
    --ink: #171739;
    --purple: #4947bd;
    color: var(--ink);
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
    margin-block: 0 !important;
}
.smp-hero *, .smp-section * { box-sizing: border-box; }
.smp-hero .smp-wrap, .smp-section .smp-wrap {
    width: min(1190px, calc(100% - clamp(40px, 8vw, 128px)));
    margin-inline: auto;
    max-width: none;
}
.smp-hero {
    color: #fff;
    background: radial-gradient(ellipse at 95% 100%, #326173 0%, transparent 42%),
                linear-gradient(112deg, #191637, #302a6c 68%, #344471);
}
.smp-hero .smp-wrap { padding-block: clamp(42px, 6vw, 90px); }
.smp-split .smp-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .97fr);
    gap: clamp(28px, 5vw, 84px);
    align-items: center;
}
.smp-hero h1, .smp-section h2, .smp-section h3 {
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
}
.smp-hero h1 {
    color: #fff;
    max-width: 20ch;
    font-size: clamp(2.35rem, 5.3vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}
.smp-section h2 { font-size: clamp(1.75rem, 3.2vw, 3rem); color: var(--ink); letter-spacing: -.039em; line-height: 1.1; }
.smp-section h3 { font-size: clamp(1.27rem, 1.9vw, 1.65rem); color: var(--ink); line-height: 1.16; letter-spacing: -.025em; }
.smp-hero .smp-lead {
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.55vw, 1.24rem);
    line-height: 1.55;
    color: #eeeeff;
    margin: 1.25rem 0 0;
}
.smp-action { margin: 1.15rem 0 0; }
.smp-action a {
    display: inline-flex; align-items: center; gap: .55em;
    min-height: 42px; color: var(--purple); font-weight: 650;
    text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: .075em;
}
.smp-action a::after { content: "→"; font-family: system-ui, sans-serif; }
.smp-action a:focus-visible, .smp-section a:focus-visible {
    outline: 3px solid #087c78; outline-offset: 4px; border-radius: 3px;
}
.smp-hero .smp-action a {
    background: #b0f4e3; color: #132d33; border-radius: 7px;
    min-height: 46px; padding: 8px 19px; text-decoration: none;
}
.smp-hero .smp-action a:hover { background: #d3fff2; }
.smp-hero .smp-action a:focus-visible { outline-color: white; }
.smp-feature {
    border: 1px solid #9196cb;
    border-radius: 18px; padding: clamp(11px, 1.65vw, 22px);
    background: #eceafb;
    box-shadow: 7px 8px 0 #7274b3, 13px 15px 0 #438b90;
    min-width: 0;
}
.smp-shot { margin: 0 !important; }
.smp-shot img { display: block; width: 100%; height: auto; margin: 0; }
.smp-feature .smp-shot { border: 1px solid #d6d4ea; border-radius: 8px; overflow: hidden; }
.smp-feature .smp-caption { color: #3b365b; font-size: .86rem; font-weight: 650; margin: 11px 1px 0; }
.smp-section { background: #fff; }
.smp-section .smp-wrap { padding-block: clamp(28px, 4.5vw, 66px); }
.smp-section + .smp-section .smp-wrap { padding-top: 4px; }
.smp-grid, .smp-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px, 2vw, 28px); }
.smp-wrap > h2 + .smp-grid { margin-top: clamp(20px, 3vw, 38px); }
.smp-card {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid #dcdcea; border-radius: 15px; padding: 0 clamp(16px, 1.8vw, 25px) 15px;
    overflow: hidden; box-shadow: 0 4px 12px #2423480b;
}
.smp-card > .smp-shot {
    order: 0; margin: 0 calc(-1 * clamp(16px, 1.8vw, 25px)) 20px !important;
    padding: 14px; height: clamp(175px, 16vw, 225px); display: grid; place-items: center;
    background: #e3e1ff; border-bottom: 1px solid #dcdcea;
}
.smp-card > .smp-shot img {
    width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 4px;
    filter: drop-shadow(0 3px 4px #2823491c);
}
.smp-card-time-tracking > .smp-shot { background: #d1efe8; }
.smp-card-ai-assistant > .smp-shot { background: #e2edfa; }
.smp-card .smp-action { margin-block: auto 0; }
.smp-section .smp-card > p:not(.smp-action), .smp-panel > p:not(.smp-action), .smp-prose > p:not(.smp-action) {
    line-height: 1.58; color: #3c3b55; margin: 12px 0;
}
.smp-guides, .smp-panel, .smp-bio {
    padding: clamp(22px, 3.1vw, 46px); border-radius: 16px;
}
.smp-guides { background: #edf5f2; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.smp-guides h2 { font-size: clamp(1.5rem, 2.45vw, 2.3rem); }
.smp-guides-copy p { margin: 10px 0 0; max-width: 65ch; color: #363f47; }
.smp-guides .smp-action { flex-shrink: 0; margin: 0; }
.smp-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smp-panel { background: #f3f2fa; }
.smp-panel h2, .smp-bio h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.smp-contact-foot { margin-top: 22px; }
.smp-bio { background: #f4f3fa; display: grid; grid-template-columns: 150px 1fr; gap: clamp(22px, 3vw, 45px); align-items: center; }
.smp-portrait img { width: 150px; height: 180px; object-fit: cover; border-radius: 10px; }
.smp-prose { max-width: 75ch; }
.smp-enquiry { margin-inline: auto; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .smp-card { transition: transform 160ms ease, box-shadow 160ms ease; }
    .smp-card:focus-within, .smp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #24234815; }
}
@media (max-width: 767px) {
    .smp-hero .smp-wrap, .smp-section .smp-wrap { width: min(100% - 36px, 610px); }
    .smp-split .smp-wrap, .smp-grid, .smp-contact-grid { grid-template-columns: minmax(0,1fr); }
    .smp-split .smp-wrap { gap: 25px; padding-block: 35px 38px; }
    .smp-feature { margin-right: 12px; }
    .smp-feature .smp-shot img { max-height: 200px; object-fit: contain; }
    .smp-card > .smp-shot { height: 225px; }
    .smp-guides { flex-direction: column; align-items: flex-start; gap: 6px; }
    .smp-bio { grid-template-columns: minmax(0,1fr); }
    .smp-hero .smp-action { margin-top: 14px; }
}

/* The theme also adds padding to full-width groups. The inner wrapper owns these gutters. */
.entry-content > .smp-hero, .entry-content > .smp-section { padding: 0 !important; }


/* WordPress flow spacing otherwise offsets all cards after the first one inside the grid. */
.smp-grid > .smp-card, .smp-contact-grid > .smp-panel { margin-block: 0 !important; }

.page-id-38 .smp-hero, .page-id-254 .smp-hero { background: linear-gradient(112deg,#191637,#302a6c 72%,#285d64); }
.page-id-38 .smp-contact-grid, .page-id-254 .smp-contact-grid { margin-top: clamp(20px,3vw,36px); }
.page-id-38 .smp-panel, .page-id-254 .smp-panel { border-top: 5px solid #6761c8; }
.page-id-38 .smp-panel:nth-child(2), .page-id-254 .smp-panel:nth-child(2) { border-color: #248b7f; background: #eaf5f1; }

.smp-home-blog {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(23px, 3.8vw, 55px);
    background: #edf5f2;
    border-radius: 18px;
}
.smp-blog-intro > p { max-width: 46ch; color: #384b49; line-height: 1.6; margin: 16px 0; }
.smp-blog-intro .smp-action { margin-bottom: 0; }
.smp-blog-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.smp-blog-categories > * {
    display: inline-flex; gap: .3em; align-items: baseline; padding: 5px 11px;
    color: #244b46; border: 1px solid #91aca6; border-radius: 20px;
    font-size: .88rem; font-weight: 600; line-height: 1.5;
}
.smp-blog-categories a { background: white; text-decoration: none; }
.smp-blog-categories a:hover { color: #fff; background: #265651; }
.smp-blog-categories span { border-style: dashed; }
.smp-blog-categories small { font-size: .8rem; font-weight: 400; }
.smp-blog-recent h3 { margin: 0 0 12px; }
.smp-blog-recent ul { margin: 0; padding: 0; list-style: none; }
.smp-blog-recent li {
    display: flex; align-items: center; gap: clamp(12px, 1.5vw, 19px);
    margin: 0; padding: 13px 0; border-top: 1px solid #bccdc8;
}
.smp-blog-recent li:last-child { padding-bottom: 0; }
.smp-blog-recent img { width: clamp(82px, 7.5vw, 112px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.smp-blog-recent time { display: block; color: #43615a; font-size: .8rem; line-height: 1.45; }
.smp-blog-recent a { display: inline-block; color: var(--ink); font-weight: 650; line-height: 1.32; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 820px) {
    .smp-home-blog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .smp-blog-intro .smp-action a { min-height: 32px; }
}
