/* =========================================================
   SILICON MAYHEM
   Main Frontend Stylesheet
   ========================================================= */


/* =========================================================
   THEME-SPECIFIC VARIABLES
   These defaults are overridden by inc/customizer.php when
   the site owner changes colours in WordPress Admin.
   ========================================================= */

:root {
    --sm-container-width: 1200px;
    --sm-container-gutter: 1rem;

    /*
     * Typography defaults.
     * The Customizer overrides these variables when required.
     */
    --sm-font-body:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sm-font-heading:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sm-font-size-base: 16px;
    --sm-heading-weight: 700;
    --sm-line-height-body: 1.6;

    /*
     * Brand colour defaults.
     * The WordPress Customizer can override these variables on the frontend.
     */
    --sm-primary:
        var(--wp--preset--color--primary, #1f4fff);
    --sm-primary-dark:
        var(--wp--preset--color--primary-dark, #1638ba);
    --sm-link:
        var(--wp--preset--color--primary, #1f4fff);

    --sm-link-hover:
        var(--wp--preset--color--primary-dark, #1638ba);

    --sm-link-active:
        var(--wp--preset--color--primary-dark, #1638ba);
    --sm-border-colour: #e5e5e5;
    --sm-button-text: #ffffff;

    /* Header / footer defaults. */
    --sm-header-background:
        var(--wp--preset--color--header-background, #ffffff);
    --sm-header-text:
        var(--wp--preset--color--header-text, #171717);
    --sm-footer-background:
        var(--wp--preset--color--footer-background, #171717);
    --sm-footer-text:
        var(--wp--preset--color--footer-text, #ffffff);

    --sm-radius-sm: 6px;
    --sm-radius-md: 12px;

    --sm-transition: 0.2s ease;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    margin: 0;

    color: var(--wp--preset--color--foreground);
    background: var(--wp--preset--color--background);

    font-family: var(--sm-font-body);
    font-size: var(--sm-font-size-base);
    line-height: var(--sm-line-height-body);
}

.site-main {
    flex: 1 0 auto;
}

img {
    display: block;

    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    font-family: var(--sm-font-heading);
    font-weight: var(--sm-heading-weight);
    line-height: 1.15;
}

p {
    margin-top: 0;
}

a {
    color: inherit;
}

.entry-content a:not(.wp-block-button__link),
.comment-content a,
.archive-description a {
    color: var(--sm-link);
}

.entry-content a:not(.wp-block-button__link):hover,
.entry-content a:not(.wp-block-button__link):focus,
.comment-content a:hover,
.comment-content a:focus,
.archive-description a:hover,
.archive-description a:focus {
    color: var(--sm-link-hover);
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.container {
    width: min(
        calc(100% - 2rem),
        var(--sm-container-width)
    );

    margin-inline: auto;
}

.section {
    padding-block:
        var(--wp--preset--spacing--50);
}


/* =========================================================
   NATIVE WordPress LAYOUT SUPPORT
   ========================================================= */

/*
 * IMPORTANT:
 * The "Inner blocks use content width" control belongs to the
 * OUTER Group block.
 *
 * WordPress therefore adds either:
 *
 *   .is-layout-constrained
 *   .is-layout-flow
 *
 * to the outer pattern Group itself.
 *
 * Our previous CSS incorrectly looked for those classes on the
 * nested .container / .hero__container.
 */

/*
 * Reusable pattern containers keep a safe gutter from the edge.
 */
.container,
.hero__container {
    padding-left: var(--sm-container-gutter);
    padding-right: var(--sm-container-gutter);
}

/*
 * HERO
 *
 * Toggle ON:
 * .hero.is-layout-constrained
 *
 * WordPress constrains the direct .hero__container child using
 * theme.json contentSize.
 *
 * Toggle OFF:
 * .hero.is-layout-flow
 *
 * The direct child can use the wider theme container and our
 * component-specific text caps are released.
 */
.hero.is-layout-flow > .hero__container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);
    margin-left: auto;
    margin-right: auto;
}

.hero.is-layout-flow > .hero__container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);
    margin-left: auto;
    margin-right: auto;
}

.hero.is-layout-flow > .hero__container > .hero__content {
    width: min(100%, 620px);
    max-width: 620px;

    margin-left: 0 !important;
    margin-right: auto !important;
}

.hero.is-layout-flow .hero__title {
    max-width: 620px;
}

.hero.is-layout-flow .hero__description {
    max-width: 560px;

    margin-left: 0 !important;
    margin-right: auto !important;
}

@media (max-width: 800px) {
    .hero.is-layout-flow > .hero__container > .hero__content {
        width: 100%;
        max-width: 100%;
    }

    .hero.is-layout-flow .hero__title,
    .hero.is-layout-flow .hero__description {
        max-width: none;
    }
}

/*
 * Keep the normal readable Hero widths when the WordPress
 * content-width toggle is enabled.
 */
.hero.is-layout-constrained .hero__content {
    max-width: 800px;
}

.hero.is-layout-constrained .hero__title {
    max-width: 900px;
}

.hero.is-layout-constrained .hero__description {
    max-width: 650px;
}

/*
 * OTHER PATTERNS
 *
 * Most patterns also have a direct .container child. When their
 * outer Group is switched to flow, allow that container to use
 * the theme's wide width.
 */
.section.is-layout-flow > .container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);
    margin-left: auto;
    margin-right: auto;
}

/*
 * Release intentionally narrow section-header/description widths
 * when the OUTER pattern itself is flow.
 */
.section.is-layout-flow .section-header,
.section.is-layout-flow .section-header__description,
.section.is-layout-flow .image-text__content,
.section.is-layout-flow .image-text__description,
.section.is-layout-flow .contact-section__description,
.section.is-layout-flow .faq__list {
    max-width: none;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.wp-block-button__link,
.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0.85rem 1.5rem;

    border-radius: var(--sm-radius-sm);

    text-decoration: none;

    font-weight: 600;

    transition:
        background-color var(--sm-transition),
        color var(--sm-transition),
        border-color var(--sm-transition);
}

/*
 * Button theme defaults.
 *
 * The custom class lives on the outer .wp-block-button wrapper,
 * but visual colours belong only on the clickable link.
 *
 * If Gutenberg has added its own text/background colour classes,
 * the theme deliberately gets out of the way.
 */
.button--primary .wp-block-button__link:not(.has-text-color) {
    color:
        var(--sm-button-text);
}

.button--primary .wp-block-button__link:not(.has-background) {
    background:
        var(--sm-primary);
}

.button--primary .wp-block-button__link:not(.has-background):hover {
    background:
        var(--sm-primary-dark);
}

.button--secondary .wp-block-button__link:not(.has-text-color) {
    color:
        var(--wp--preset--color--foreground);
}

.button--secondary .wp-block-button__link {
    border:
        1px solid var(--sm-border-colour);
}

.button--secondary .wp-block-button__link:not(.has-background) {
    background:
        var(--wp--preset--color--background);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    color:
        var(--sm-header-text);

    background:
        var(--sm-header-background);

    border-bottom:
        1px solid var(--sm-border-colour);
}

.site-header__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 80px;

    gap:
        var(--wp--preset--spacing--30);
}


/* =========================================================
   BRANDING
   ========================================================= */

.site-branding {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.site-title {
    color:
        var(--sm-header-text);

    text-decoration: none;

    font-size: 1.4rem;

    font-weight: 700;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    display: block;

    width: auto;
    max-width: 220px;

    max-height: 60px;
}


/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */

.primary-navigation {
    display: flex;

    align-items: center;
}

.primary-menu {
    display: flex;

    align-items: center;

    gap:
        var(--wp--preset--spacing--30);

    margin: 0;
    padding: 0;

    list-style: none;
}

.primary-menu a {
    display: block;

    color:
        var(--sm-header-text);

    text-decoration: none;

    font-weight: 500;

    transition:
        color var(--sm-transition);
}

.primary-menu a:hover,
.primary-menu a:focus {
    color:
        var(--sm-primary);
}

.primary-menu .current-menu-item > a {
    color:
        var(--sm-primary);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 0;

    color:
        var(--sm-header-text);

    background: transparent;

    cursor: pointer;
}

.menu-toggle__line {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background:
        var(--sm-header-text);

    transition:
        transform var(--sm-transition),
        opacity var(--sm-transition);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding-block: 5rem;


}

@media (max-width: 900px) {
    .hero {
        padding-block: 3.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-block: 2.5rem;
    }
}

.hero__content {
    max-width: 800px;
}

.hero__eyebrow {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-weight: 700;
}

.hero__eyebrow:not(.has-text-color) {
    color:
        var(--sm-primary);
}

.hero__title {
    max-width: 900px;

    margin-bottom:
        var(--wp--preset--spacing--30);

    font-size:
        clamp(2.5rem, 6vw, 5rem);

    letter-spacing: -0.04em;
}

.hero__title:not(.has-text-color) {
    color:
        var(--wp--preset--color--foreground, #171717);
}

.hero__description {
    max-width: 650px;

    margin-bottom:
        var(--wp--preset--spacing--30);

    font-size: 1.25rem;
}

.hero__description:not(.has-text-color) {
    color:
        var(--wp--preset--color--muted, #666666);
}

.hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--20);
}


/* =========================================================
   SECTION HEADERS
   ========================================================= */

.section-header {
    max-width: 700px;

    margin-bottom:
        var(--wp--preset--spacing--40);
}

.section-header__eyebrow {
    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--sm-primary);

    font-weight: 700;
}

.section-header__title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2rem, 4vw, 3rem);
}

.section-header__description {
    color:
        var(--wp--preset--color--muted);

    font-size: 1.1rem;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services__grid {
    gap:
        var(--wp--preset--spacing--30);
}

.service-card {
    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);
}

.service-card__title {
    margin-bottom:
        var(--wp--preset--spacing--20);
}

.service-card__description {
    margin-bottom: 0;

    color:
        var(--wp--preset--color--muted);
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta {
    color:
        var(--wp--preset--color--background);


}

.cta__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap:
        var(--wp--preset--spacing--30);
}

.cta__title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2rem, 4vw, 3rem);
}

.cta__description {
    margin-bottom: 0;

    color: #cccccc;

    font-size: 1.1rem;
}


/* =========================================================
   STANDARD PAGE
   ========================================================= */

.page-content {
    padding-top:
        var(--wp--preset--spacing--50);

    padding-bottom: 0;
}

.page-header {
    max-width: 800px;

    margin-bottom:
        var(--wp--preset--spacing--40);
}

.page-title {
    margin-bottom: 0;

    font-size:
        clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -0.03em;
}

.entry-content {
    width: 100%;
    max-width: none;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARCHIVES / BLOG
   ========================================================= */

.archive-page {
    padding-block:
        var(--wp--preset--spacing--50);
}

.archive-header {
    max-width: 800px;

    margin-bottom:
        var(--wp--preset--spacing--40);
}

.archive-title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -0.03em;
}

.archive-description {
    color:
        var(--wp--preset--color--muted);

    font-size: 1.1rem;
}


/* =========================================================
   POST GRID
   ========================================================= */

.post-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        var(--wp--preset--spacing--30);
}


/* =========================================================
   POST CARD
   ========================================================= */

.post-card {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition);
}

.post-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   POST CARD IMAGE
   ========================================================= */

.post-card__image {
    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background:
        var(--wp--preset--color--background-light);

    text-decoration: none;
}

.post-card__thumbnail {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.post-card:hover
.post-card__thumbnail {
    transform:
        scale(1.03);
}


/* =========================================================
   POST CARD FALLBACK IMAGE
   ========================================================= */

.post-card__image-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding:
        var(--wp--preset--spacing--30);

    background:
        var(--wp--preset--color--background-light);
}

.post-card__image-placeholder-text {
    color:
        var(--wp--preset--color--muted);

    font-size: 1.1rem;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   POST CARD CONTENT
   ========================================================= */

.post-card__content {
    display: flex;

    flex: 1;

    flex-direction: column;

    padding:
        var(--wp--preset--spacing--30);
}

.post-card__category {
    margin-bottom:
        var(--wp--preset--spacing--10);
}

.post-card__category a {
    color:
        var(--sm-primary);

    text-decoration: none;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.post-card__category a:hover,
.post-card__category a:focus {
    text-decoration: underline;
}

.post-card__title {
    margin-bottom:
        var(--wp--preset--spacing--10);

    font-size: 1.5rem;
}

.post-card__title a {
    color:
        var(--wp--preset--color--foreground);

    text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
    color:
        var(--sm-primary);
}

.post-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--10);

    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--wp--preset--color--muted);

    font-size: 0.875rem;
}

.post-card__author::before {
    content: "•";

    margin-right:
        var(--wp--preset--spacing--10);
}

.post-card__excerpt {
    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--wp--preset--color--muted);
}

.post-card__excerpt p:last-child {
    margin-bottom: 0;
}

.post-card__link {
    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    margin-top: auto;

    color:
        var(--sm-primary);

    text-decoration: none;

    font-weight: 600;
}

.post-card__link span {
    transition:
        transform var(--sm-transition);
}

.post-card__link:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.archive-pagination {
    margin-top:
        var(--wp--preset--spacing--40);
}

.archive-pagination .nav-links {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--10);
}

.archive-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding-inline: 0.75rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-sm);

    text-decoration: none;
}

.archive-pagination .current {
    color:
        var(--wp--preset--color--background);

    border-color:
        var(--sm-primary);

    background:
        var(--sm-primary);
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    max-width: 700px;

    padding-block:
        var(--wp--preset--spacing--40);
}

.empty-state__title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2rem, 4vw, 3rem);
}

.empty-state__description {
    margin-bottom:
        var(--wp--preset--spacing--30);

    color:
        var(--wp--preset--color--muted);

    font-size: 1.1rem;
}

.empty-state__search {
    margin-top:
        var(--wp--preset--spacing--30);
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.search-results-page {
    padding-block:
        var(--wp--preset--spacing--50);
}

.search-results-header {
    max-width: 800px;

    margin-bottom:
        var(--wp--preset--spacing--40);
}

.search-results-header__eyebrow {
    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--sm-primary);

    font-weight: 700;
}

.search-results-title {
    margin-bottom: 0;

    font-size:
        clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -0.03em;
}

.search-results-title span {
    color:
        var(--sm-primary);
}


/* =========================================================
   SEARCH FORM
   ========================================================= */

.search-form {
    display: flex;

    gap:
        var(--wp--preset--spacing--10);

    max-width: 600px;

    margin-top:
        var(--wp--preset--spacing--30);
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;

    min-height: 48px;

    padding: 0.75rem 1rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-sm);

    font: inherit;
}

.search-field:focus {
    outline:
        2px solid var(--sm-primary);

    outline-offset: 2px;
}

.search-submit {
    min-height: 48px;

    padding-inline: 1.25rem;

    border: 0;

    border-radius:
        var(--sm-radius-sm);

    color:
        var(--sm-button-text);

    background:
        var(--sm-primary);

    font: inherit;

    font-weight: 600;

    cursor: pointer;
}

.search-submit:hover {
    background:
        var(--sm-primary-dark);
}


/* =========================================================
   SINGLE POST
   ========================================================= */

.single-post {
    padding-block:
        var(--wp--preset--spacing--50);
}


/* =========================================================
   SINGLE POST HEADER
   ========================================================= */

.single-post__header {
    max-width: 900px;

    margin-bottom:
        var(--wp--preset--spacing--40);
}

.single-post__categories {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--10);

    margin-bottom:
        var(--wp--preset--spacing--20);
}

.single-post__categories a {
    color:
        var(--sm-primary);

    text-decoration: none;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.single-post__categories a:hover,
.single-post__categories a:focus {
    text-decoration: underline;
}

.single-post__title {
    max-width: 1000px;

    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2.75rem, 6vw, 5.5rem);

    letter-spacing: -0.04em;
}

.single-post__meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap:
        var(--wp--preset--spacing--10);

    color:
        var(--wp--preset--color--muted);

    font-size: 0.95rem;
}


/* =========================================================
   SINGLE POST FEATURED IMAGE
   ========================================================= */

.single-post__featured-image {
    max-width: 1200px;

    margin:
        0
        0
        var(--wp--preset--spacing--40);
}

.single-post__image {
    display: block;

    width: 100%;
    height: auto;

    border-radius:
        var(--sm-radius-md);
}


/* =========================================================
   SINGLE POST CONTENT
   ========================================================= */

.single-post__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 800px);

    justify-content: start;
}

.single-post__main {
    min-width: 0;
}

.single-post .entry-content {
    max-width: 800px;

    font-size: 1.05rem;

    line-height: 1.75;
}

.single-post .entry-content > * {
    margin-top: 0;

    margin-bottom:
        var(--wp--preset--spacing--20);
}

.single-post .entry-content h2 {
    margin-top:
        var(--wp--preset--spacing--40);

    font-size:
        clamp(2rem, 4vw, 3rem);
}

.single-post .entry-content h3 {
    margin-top:
        var(--wp--preset--spacing--30);

    font-size:
        clamp(1.5rem, 3vw, 2rem);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;

    border-radius:
        var(--sm-radius-md);
}

.single-post .entry-content blockquote {
    margin-inline: 0;

    padding-left:
        var(--wp--preset--spacing--30);

    border-left:
        4px solid
        var(--sm-primary);

    color:
        var(--wp--preset--color--muted);

    font-size: 1.2rem;
}


/* =========================================================
   SINGLE POST TAGS
   ========================================================= */

.single-post__tags {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap:
        var(--wp--preset--spacing--10);

    margin-top:
        var(--wp--preset--spacing--40);

    padding-top:
        var(--wp--preset--spacing--30);

    border-top:
        1px solid var(--sm-border-colour);
}

.single-post__tags-label {
    font-weight: 700;
}

.single-post__tags-list {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--10);
}

.single-post__tags-list a {
    padding: 0.4rem 0.7rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-sm);

    text-decoration: none;

    font-size: 0.85rem;
}

.single-post__tags-list a:hover,
.single-post__tags-list a:focus {
    border-color:
        var(--sm-primary);

    color:
        var(--sm-primary);
}


/* =========================================================
   AUTHOR BOX
   ========================================================= */

.single-post__author-box {
    display: flex;

    gap:
        var(--wp--preset--spacing--30);

    margin-top:
        var(--wp--preset--spacing--40);

    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background-light);
}

.single-post__author-avatar {
    flex-shrink: 0;
}

.single-post__author-avatar img {
    display: block;

    border-radius: 50%;
}

.single-post__author-label {
    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--wp--preset--color--muted);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.single-post__author-name {
    margin-bottom:
        var(--wp--preset--spacing--10);

    font-size: 1.4rem;
}

.single-post__author-description {
    margin-bottom: 0;

    color:
        var(--wp--preset--color--muted);
}


/* =========================================================
   SINGLE POST NAVIGATION
   ========================================================= */

.single-post__navigation {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        var(--wp--preset--spacing--30);

    margin-top:
        var(--wp--preset--spacing--40);

    padding-top:
        var(--wp--preset--spacing--40);

    border-top:
        1px solid var(--sm-border-colour);
}

.single-post__navigation-item a {
    display: block;

    text-decoration: none;
}

.single-post__navigation-item--next {
    text-align: right;
}

.single-post__navigation-label {
    display: block;

    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--wp--preset--color--muted);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.single-post__navigation-title {
    color:
        var(--wp--preset--color--foreground);

    font-size: 1.1rem;

    font-weight: 700;
}

.single-post__navigation-item a:hover
.single-post__navigation-title {
    color:
        var(--sm-primary);
}


/* =========================================================
   PAGE LINKS
   ========================================================= */

.page-links {
    margin-block:
        var(--wp--preset--spacing--30);

    font-weight: 600;
}


/* =========================================================
   404 PAGE
   ========================================================= */

.error-404 {
    display: flex;

    align-items: center;

    min-height: 70vh;

    padding-block:
        var(--wp--preset--spacing--50);
}

.error-404__content {
    max-width: 700px;
}

.error-404__code {
    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--sm-primary);

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.error-404__title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(3rem, 8vw, 6rem);

    letter-spacing: -0.04em;
}

.error-404__description {
    max-width: 600px;

    margin-bottom:
        var(--wp--preset--spacing--30);

    color:
        var(--wp--preset--color--muted);

    font-size: 1.2rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: auto;

    color:
        var(--sm-footer-text);

    background:
        var(--sm-footer-background);
}

.site-footer__grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap:
        var(--wp--preset--spacing--40);

    padding-block:
        var(--wp--preset--spacing--50);
}

.site-footer__brand {
    max-width: 500px;
}

.site-footer__title {
    display: inline-block;

    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--sm-footer-text);

    text-decoration: none;

    font-size: 1.5rem;

    font-weight: 700;
}

.site-footer .custom-logo {
    margin-bottom:
        var(--wp--preset--spacing--20);
}

.site-footer__description {
    margin-bottom: 0;

    color:
        var(--sm-footer-text);

    opacity: 0.75;
}

.site-footer__heading {
    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--sm-footer-text);

    font-size: 1rem;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


/* =========================================================
   FOOTER MENU
   ========================================================= */

.footer-menu {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu li + li {
    margin-top:
        var(--wp--preset--spacing--10);
}

.footer-menu a {
    color:
        var(--sm-footer-text);

    opacity: 0.75;

    text-decoration: none;

    transition:
        color var(--sm-transition);
}

.footer-menu a:hover,
.footer-menu a:focus {
    color:
        var(--sm-footer-text);

    opacity: 1;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.site-footer__bottom {
    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--sm-footer-text) 20%,
            transparent
        );
}

.site-footer__bottom-inner {
    padding-block:
        var(--wp--preset--spacing--20);
}

.site-footer__bottom p {
    margin: 0;

    color:
        var(--sm-footer-text);

    opacity: 0.65;

    font-size: 0.9rem;
}


/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 900px) {

    .post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE: NAVIGATION
   ========================================================= */

@media (max-width: 800px) {

    .site-header__inner {
        flex-wrap: wrap;
    }


    .menu-toggle {
        display: block;
    }


    .primary-navigation {
        display: none;

        width: 100%;
    }


    .primary-navigation.is-open {
        display: block;
    }


    .primary-menu {
        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding-block:
            var(--wp--preset--spacing--20);
    }


    .primary-menu li {
        width: 100%;
    }


    .primary-menu a {
        padding:
            var(--wp--preset--spacing--20) 0;

        border-top:
            1px solid
            color-mix(
                in srgb,
                var(--sm-header-text) 20%,
                transparent
            );
    }


    .menu-toggle[aria-expanded="true"]
    .menu-toggle__line:nth-child(2) {
        transform:
            translateY(7px) rotate(45deg);
    }


    .menu-toggle[aria-expanded="true"]
    .menu-toggle__line:nth-child(3) {
        opacity: 0;
    }


    .menu-toggle[aria-expanded="true"]
    .menu-toggle__line:nth-child(4) {
        transform:
            translateY(-7px) rotate(-45deg);
    }


    .hero {
        padding-block: 6rem;
    }


    .services__grid {
        flex-direction: column;
    }


    .cta__inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   RESPONSIVE: FOOTER / SINGLE POST
   ========================================================= */

@media (max-width: 700px) {

    .site-footer__grid {
        grid-template-columns: 1fr;
    }


    .single-post__author-box {
        flex-direction: column;
    }


    .single-post__navigation {
        grid-template-columns: 1fr;
    }


    .single-post__navigation-item--next {
        text-align: left;
    }

}


/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .post-grid {
        grid-template-columns: 1fr;
    }


    .search-form {
        flex-direction: column;
    }


    .hero__title {
        font-size:
            clamp(2.4rem, 12vw, 4rem);
    }


    .single-post__title {
        font-size:
            clamp(2.4rem, 12vw, 4rem);
    }

}

/* =========================================================
   COMMENTS
   ========================================================= */

.comments-area {
    margin-top:
        var(--wp--preset--spacing--50);

    padding-top:
        var(--wp--preset--spacing--40);

    border-top:
        1px solid var(--sm-border-colour);
}


.comments-area__header {
    margin-bottom:
        var(--wp--preset--spacing--30);
}


.comments-area__title,
.comment-reply-title {
    font-size:
        clamp(1.8rem, 3vw, 2.5rem);
}


/* =========================================================
   COMMENT LIST
   ========================================================= */

.comment-list {
    margin: 0 0
        var(--wp--preset--spacing--40);

    padding: 0;

    list-style: none;
}


.comment-list .children {
    margin-top:
        var(--wp--preset--spacing--20);

    margin-left:
        var(--wp--preset--spacing--30);

    padding: 0;

    list-style: none;
}


.comment-body {
    margin-bottom:
        var(--wp--preset--spacing--30);

    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);
}


.comment-meta {
    margin-bottom:
        var(--wp--preset--spacing--20);
}


.comment-author {
    display: flex;

    align-items: center;

    gap:
        var(--wp--preset--spacing--10);
}


.comment-author .avatar {
    border-radius: 50%;
}


.comment-author .fn {
    font-weight: 700;
}


.comment-metadata {
    margin-top:
        var(--wp--preset--spacing--10);

    color:
        var(--wp--preset--color--muted);

    font-size: 0.85rem;
}


.comment-metadata a {
    color: inherit;

    text-decoration: none;
}


.comment-metadata a:hover,
.comment-metadata a:focus {
    color:
        var(--sm-primary);
}


.comment-content {
    color:
        var(--wp--preset--color--foreground);
}


.comment-content p:last-child {
    margin-bottom: 0;
}


.reply {
    margin-top:
        var(--wp--preset--spacing--20);
}


.comment-reply-link {
    color:
        var(--sm-primary);

    text-decoration: none;

    font-weight: 600;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-respond {
    margin-top:
        var(--wp--preset--spacing--40);
}


.comment-form {
    display: grid;

    gap:
        var(--wp--preset--spacing--20);
}


.comment-form p {
    margin: 0;
}


.comment-form label {
    display: block;

    margin-bottom: 0.4rem;

    font-weight: 600;
}


.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;

    padding: 0.85rem 1rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-sm);

    background:
        var(--wp--preset--color--background);

    color:
        var(--wp--preset--color--foreground);

    font: inherit;
}


.comment-form textarea {
    min-height: 180px;

    resize: vertical;
}


.comment-form input:focus,
.comment-form textarea:focus {
    outline:
        2px solid var(--sm-primary);

    outline-offset: 2px;
}


.comment-form-cookies-consent {
    display: flex;

    align-items: flex-start;

    gap: 0.6rem;
}


.comment-form-cookies-consent input {
    margin-top: 0.3rem;
}


.comment-notes,
.logged-in-as {
    color:
        var(--wp--preset--color--muted);

    font-size: 0.95rem;
}


/* =========================================================
   COMMENTS PAGINATION
   ========================================================= */

.comments-area .nav-links {
    display: flex;

    flex-wrap: wrap;

    gap:
        var(--wp--preset--spacing--10);

    margin-bottom:
        var(--wp--preset--spacing--40);
}


.comments-area .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding-inline: 0.75rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-sm);

    text-decoration: none;
}


.comments-area .current {
    color:
        var(--wp--preset--color--background);

    border-color:
        var(--sm-primary);

    background:
        var(--sm-primary);
}


/* =========================================================
   COMMENT CLOSED MESSAGE
   ========================================================= */

.comments-area__closed {
    color:
        var(--wp--preset--color--muted);
}

/* =========================================================
   RELATED POSTS
   ========================================================= */

.related-posts {
    margin-top:
        var(--wp--preset--spacing--50);

    padding-top:
        var(--wp--preset--spacing--40);

    border-top:
        1px solid var(--sm-border-colour);
}


.related-posts__header {
    max-width: 700px;

    margin-bottom:
        var(--wp--preset--spacing--30);
}


.related-posts__eyebrow {
    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--sm-primary);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.related-posts__title {
    margin-bottom: 0;

    font-size:
        clamp(2rem, 4vw, 3rem);
}

/* =========================================================
   IMAGE + TEXT
   ========================================================= */

.image-text__grid {
    gap: var(--wp--preset--spacing--40);
}

.image-text__image img {
    width: 100%;
    height: auto;

    border-radius: var(--sm-radius-md);
}

.image-text__content {
    align-self: center;
}

.image-text__eyebrow {
    margin-bottom: var(--wp--preset--spacing--10);

    color: var(--sm-primary);

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.image-text__title {
    margin-bottom: var(--wp--preset--spacing--20);

    font-size: clamp(2rem, 4vw, 3.5rem);

    letter-spacing: -0.03em;
}

.image-text__description {
    margin-bottom: var(--wp--preset--spacing--30);

    color: var(--wp--preset--color--muted);

    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 800px) {

    .image-text__grid {
        flex-direction: column;
    }

}

/* =========================================================
   FEATURES GRID
   ========================================================= */

.features {

}

.features__grid {
    gap:
        var(--wp--preset--spacing--30);
}

.feature-card {
    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition);
}

.feature-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-card__number {
    margin-bottom:
        var(--wp--preset--spacing--20);

    color:
        var(--sm-primary);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.08em;
}

.feature-card__title {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size: 1.5rem;
}

.feature-card__description {
    margin-bottom: 0;

    color:
        var(--wp--preset--color--muted);

    line-height: 1.7;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials {

}

.testimonials__grid {
    gap:
        var(--wp--preset--spacing--30);
}

.testimonial-card {
    display: flex;

    flex-direction: column;

    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);
}

.testimonial-card__quote {
    flex: 1;

    margin-bottom:
        var(--wp--preset--spacing--30);

    font-size: 1.1rem;

    line-height: 1.7;
}

.testimonial-card__name {
    margin-bottom: 0.2rem;

    font-weight: 700;
}

.testimonial-card__role {
    margin-bottom: 0;

    color:
        var(--wp--preset--color--muted);

    font-size: 0.9rem;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq__list {
    max-width: 850px;
}

.faq-item {
    padding:
        var(--wp--preset--spacing--20) 0;

    border-top:
        1px solid var(--sm-border-colour);
}

.faq-item:last-child {
    border-bottom:
        1px solid var(--sm-border-colour);
}

.faq-item summary {
    cursor: pointer;

    font-size: 1.1rem;

    font-weight: 700;
}

.faq-item summary:hover,
.faq-item summary:focus {
    color:
        var(--sm-primary);
}

.faq-item > p {
    margin-top:
        var(--wp--preset--spacing--20);

    margin-bottom: 0;

    color:
        var(--wp--preset--color--muted);

    line-height: 1.7;
}


/* =========================================================
   PRICING
   ========================================================= */

.pricing {

}

.pricing__grid {
    align-items: stretch;

    gap:
        var(--wp--preset--spacing--30);
}

.pricing-card {
    position: relative;

    display: flex;

    flex-direction: column;

    padding:
        var(--wp--preset--spacing--30);

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);
}

.pricing-card--featured {
    border:
        2px solid
        var(--sm-primary);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card__badge {
    display: inline-flex;

    align-self: flex-start;

    margin-bottom:
        var(--wp--preset--spacing--20);

    padding:
        0.35rem 0.65rem;

    border-radius:
        999px;

    color: #ffffff;

    background:
        var(--sm-primary);

    font-size: 0.75rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.pricing-card__name {
    margin-bottom:
        var(--wp--preset--spacing--10);

    color:
        var(--wp--preset--color--muted);

    font-size: 1rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.pricing-card__price {
    margin-bottom:
        var(--wp--preset--spacing--20);

    font-size:
        clamp(2.5rem, 5vw, 4rem);

    letter-spacing: -0.04em;
}

.pricing-card__description {
    margin-bottom:
        var(--wp--preset--spacing--30);

    color:
        var(--wp--preset--color--muted);
}

.pricing-card__features {
    flex: 1;

    margin:
        0
        0
        var(--wp--preset--spacing--30);

    padding-left: 1.25rem;
}

.pricing-card__features li + li {
    margin-top:
        var(--wp--preset--spacing--10);
}


/* =========================================================
   PATTERN RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .testimonials__grid,
    .pricing__grid {
        flex-direction: column;
    }

}

/* =========================================================
   TEAM
   ========================================================= */

.team__grid {
    gap: var(--wp--preset--spacing--30);
}

.team-card__image {
    margin-bottom: var(--wp--preset--spacing--20);
}

.team-card__image img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: var(--sm-radius-md);
}

.team-card__name {
    margin-bottom: 0.35rem;

    font-size: 1.4rem;
}

.team-card__role {
    margin-bottom: var(--wp--preset--spacing--20);

    color: var(--sm-primary);

    font-size: 0.9rem;

    font-weight: 700;
}

.team-card__bio {
    margin-bottom: 0;

    color: var(--wp--preset--color--muted);
}


/* =========================================================
   LOGO GRID
   ========================================================= */

.section-header--center {
    margin-inline: auto;

    text-align: center;
}

.logo-grid {

}

.logo-grid__items {
    align-items: center;

    gap: var(--wp--preset--spacing--30);
}

.logo-grid__item {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 120px;

    padding: var(--wp--preset--spacing--20);

    border: 1px solid var(--sm-border-colour);

    border-radius: var(--sm-radius-md);

    background: var(--wp--preset--color--background);
}

.logo-grid__item figure {
    margin: 0;
}

.logo-grid__item img {
    max-height: 70px;
    width: auto;

    object-fit: contain;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    color: var(--wp--preset--color--background);


}

.stats__grid {
    gap: var(--wp--preset--spacing--30);
}

.stat-card {
    text-align: center;
}

.stat-card__value {
    margin-bottom: var(--wp--preset--spacing--10);

    color: var(--wp--preset--color--background);

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -0.04em;
}

.stat-card__label {
    margin-bottom: 0;

    color: #cccccc;

    font-size: 1rem;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    background: var(--wp--preset--color--background-light);
}

.contact-section__grid {
    align-items: stretch;

    gap: var(--wp--preset--spacing--40);
}

.contact-section__content {
    align-self: center;
}

.contact-section__title {
    margin-bottom: var(--wp--preset--spacing--20);

    font-size: clamp(2rem, 4vw, 3.5rem);

    letter-spacing: -0.03em;
}

.contact-section__description {
    max-width: 600px;

    margin-bottom: var(--wp--preset--spacing--30);

    color: var(--wp--preset--color--muted);

    font-size: 1.1rem;
}

.contact-details {
    display: grid;

    gap: var(--wp--preset--spacing--20);
}

.contact-details__item {
    margin-bottom: 0;
}

.contact-section__form {
    display: flex;
}

.contact-placeholder {
    width: 100%;

    padding: var(--wp--preset--spacing--30);

    border: 1px solid var(--sm-border-colour);

    border-radius: var(--sm-radius-md);

    background: var(--wp--preset--color--background);
}


/* =========================================================
   PATTERN RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .team__grid,
    .logo-grid__items,
    .stats__grid,
    .contact-section__grid {
        flex-direction: column;
    }

}

/* =========================================================
   ACCESSIBILITY + NAVIGATION POLISH
   ========================================================= */

.skip-link {
    position: absolute;
    z-index: 99999;
    top: -100px;
    left: 1rem;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;

    width: auto;
    height: auto;

    padding: 0.75rem 1rem;

    clip: auto;

    color: var(--wp--preset--color--background);

    background: var(--wp--preset--color--foreground);

    border-radius: var(--sm-radius-sm);

    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--sm-primary);
    outline-offset: 3px;
}

.menu-toggle {
    cursor: pointer;
}

.menu-toggle__line {
    pointer-events: none;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   SERVICES / FEATURES / PRICING ALIGNMENT
   Keep constrained sections centred as a whole, while aligning
   their headings, descriptions and grids to the same left edge.
   ========================================================= */

.services.is-layout-constrained > .container,
.features.is-layout-constrained > .container,
.pricing.is-layout-constrained > .container {
    width: 100%;
}

.services .section-header,
.features .section-header,
.pricing .section-header {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.services .section-header__eyebrow,
.services .section-header__title,
.services .section-header__description,
.features .section-header__eyebrow,
.features .section-header__title,
.features .section-header__description,
.pricing .section-header__eyebrow,
.pricing .section-header__title,
.pricing .section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.services__grid,
.features__grid,
.pricing__grid {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.service-card,
.feature-card,
.pricing-card {
    text-align: left;
}

.service-card > *,
.feature-card > *,
.pricing-card > * {
    margin-left: 0;
    margin-right: auto;
}

.service-card .wp-block-buttons,
.feature-card .wp-block-buttons,
.pricing-card .wp-block-buttons {
    justify-content: flex-start;
}


/* =========================================================
   IMAGE + TEXT ALIGNMENT
   Keep the constrained version compact, but allow the pattern
   to use the wider canvas when "Inner blocks use content width"
   is switched off.
   ========================================================= */

.image-text.is-layout-flow > .container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);

    margin-left: auto !important;
    margin-right: auto !important;
}

.image-text.is-layout-flow .image-text__grid {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.image-text.is-layout-flow .image-text__content {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: left;
}

.image-text.is-layout-flow .image-text__eyebrow,
.image-text.is-layout-flow .image-text__title,
.image-text.is-layout-flow .image-text__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

/*
 * Keep the description readable rather than stretching across
 * the entire text column.
 */
.image-text.is-layout-flow .image-text__description {
    max-width: 560px;
}

/*
 * In the constrained state, keep the text aligned neatly with
 * the left edge of its column.
 */
.image-text.is-layout-constrained .image-text__content,
.image-text.is-layout-constrained .image-text__eyebrow,
.image-text.is-layout-constrained .image-text__title,
.image-text.is-layout-constrained .image-text__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

@media (max-width: 800px) {
    .image-text.is-layout-flow > .container {
        width: 100%;
    }

    .image-text.is-layout-flow .image-text__description {
        max-width: none;
    }
}


/* =========================================================
   PATTERN BACKGROUND WIDTH
   The outer Gutenberg Group controls BOTH the text layout and
   the visible background width.

   - "Inner blocks use content width" ON
     => .is-layout-constrained
     => section/background is constrained.

   - "Inner blocks use content width" OFF
     => .is-layout-flow
     => section/background spans the viewport.

   The inner .container rules are intentionally left separate so
   the text behaviour Gutenberg is already handling is preserved.
   ========================================================= */

/*
 * CONSTRAINED STATE
 *
 * Match the visible section/background to WordPress contentSize.
 * !important is required here because the patterns also carry
 * alignfull, which would otherwise keep the outer background wide.
 */
.page .entry-content > .wp-block-group.hero.is-layout-constrained,
.page .entry-content > .wp-block-group.section.is-layout-constrained,
.page-content .entry-content > .wp-block-group.hero.is-layout-constrained,
.page-content .entry-content > .wp-block-group.section.is-layout-constrained {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--wp--style--global--content-size)
    ) !important;

    max-width: var(--wp--style--global--content-size) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/*
 * FLOW STATE
 *
 * Let the section/background span the viewport. The existing inner
 * container still controls readable content width.
 */
.page .entry-content > .wp-block-group.hero.is-layout-flow,
.page .entry-content > .wp-block-group.section.is-layout-flow,
.page-content .entry-content > .wp-block-group.hero.is-layout-flow,
.page-content .entry-content > .wp-block-group.section.is-layout-flow {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}


/*
 * FALLBACK
 *
 * Newly inserted patterns that do not yet have either layout class
 * should behave like the wide/flow state.
 */
.page .entry-content > .wp-block-group.hero:not(.is-layout-constrained):not(.is-layout-flow),
.page .entry-content > .wp-block-group.section:not(.is-layout-constrained):not(.is-layout-flow),
.page-content .entry-content > .wp-block-group.hero:not(.is-layout-constrained):not(.is-layout-flow),
.page-content .entry-content > .wp-block-group.section:not(.is-layout-constrained):not(.is-layout-flow) {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}


/*
 * Keep the pattern's internal wide container unchanged.
 * This preserves the text/layout behaviour that is now working.
 */
.wp-block-group.hero > .hero__container,
.wp-block-group.section > .container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);

    margin-left: auto !important;
    margin-right: auto !important;
}

/* =========================================================
   TYPOGRAPHY CONSISTENCY
   Ensure reusable patterns inherit the global typography system.
   ========================================================= */

.service-card,
.feature-card,
.pricing-card,
.testimonial-card,
.team-card,
.stat-card,
.faq__item,
.image-text__content,
.contact-section__content,
.cta__content {
    font-family: var(--sm-font-body);
}

.service-card h2,
.service-card h3,
.feature-card h2,
.feature-card h3,
.pricing-card h2,
.pricing-card h3,
.testimonial-card h2,
.testimonial-card h3,
.team-card h2,
.team-card h3,
.stat-card h2,
.stat-card h3,
.faq__item h2,
.faq__item h3,
.image-text__content h2,
.image-text__content h3,
.contact-section__content h2,
.contact-section__content h3,
.cta__content h2,
.cta__content h3,
.section-header__title,
.image-text__title,
.contact-section__title,
.cta__title {
    font-family: var(--sm-font-heading);
    font-weight: var(--sm-heading-weight);
}

.service-card p,
.feature-card p,
.pricing-card p,
.testimonial-card p,
.team-card p,
.stat-card p,
.faq__item p,
.image-text__description,
.contact-section__description,
.cta__description,
.section-header__description {
    font-family: var(--sm-font-body);
    line-height: var(--sm-line-height-body);
}

/*
 * Keep deliberately small supporting text compact while still
 * inheriting the selected body font.
 */
.section-header__eyebrow,
.image-text__eyebrow,
.hero__eyebrow,
.team-card__role,
.pricing-card__eyebrow,
.stat-card__label {
    font-family: var(--sm-font-body);
}


/* =========================================================
   PATTERN TYPOGRAPHY POLISH
   ========================================================= */

/*
 * Card and pattern headings use the selected heading family/weight.
 * Existing component font sizes remain unchanged.
 */
.service-card__title,
.feature-card__title,
.testimonial-card__name,
.pricing-card__price,
.team-card__name,
.stat-card__value,
.faq-item summary {
    font-family: var(--sm-font-heading);
    font-weight: var(--sm-heading-weight);
}

/*
 * Supporting copy consistently follows body typography.
 */
.service-card__description,
.feature-card__description,
.testimonial-card__quote,
.testimonial-card__role,
.pricing-card__name,
.pricing-card__description,
.pricing-card__features,
.team-card__role,
.team-card__bio,
.stat-card__label,
.faq-item > p,
.contact-details,
.contact-placeholder {
    font-family: var(--sm-font-body);
    line-height: var(--sm-line-height-body);
}

/*
 * Preserve theme colour defaults only until an individual Gutenberg
 * text colour is chosen.
 */
.section-header__eyebrow:not(.has-text-color),
.image-text__eyebrow:not(.has-text-color),
.team-card__role:not(.has-text-color) {
    color: var(--sm-primary);
}

.section-header__description:not(.has-text-color),
.service-card__description:not(.has-text-color),
.feature-card__description:not(.has-text-color),
.testimonial-card__role:not(.has-text-color),
.pricing-card__name:not(.has-text-color),
.pricing-card__description:not(.has-text-color),
.team-card__bio:not(.has-text-color),
.faq-item > p:not(.has-text-color),
.image-text__description:not(.has-text-color),
.contact-section__description:not(.has-text-color) {
    color: var(--wp--preset--color--muted, #666666);
}


/* =========================================================
   HEADER + FOOTER POLISH
   ========================================================= */

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    color: var(--sm-header-text);
    background: var(--sm-header-background);

    border-bottom: 1px solid
        color-mix(
            in srgb,
            var(--sm-header-text) 12%,
            transparent
        );
}

.site-header__inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.site-branding .custom-logo-link,
.site-footer__brand .custom-logo-link {
    display: inline-flex;
    align-items: center;

    line-height: 0;
}

.site-branding .custom-logo {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 54px;
}

.site-title {
    color: inherit;

    font-family: var(--sm-font-heading);
    font-size: 1.25rem;
    font-weight: var(--sm-heading-weight);
    line-height: 1.2;

    text-decoration: none;
}

.site-title:hover,
.site-title:focus-visible {
    color: var(--sm-primary);
}

.primary-navigation {
    margin-left: auto;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);

    margin: 0;
    padding: 0;

    list-style: none;
}

.primary-menu > li {
    position: relative;

    margin: 0;
    padding: 0;
}

.primary-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 44px;

    color: var(--sm-link);

    font-family: var(--sm-font-body);
    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color var(--sm-transition);
}

.primary-menu a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;

    height: 2px;

    background: var(--sm-link-hover);

    transform: scaleX(0);
    transform-origin: right center;

    transition:
        transform var(--sm-transition);
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
    color: var(--sm-link-hover);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_ancestor > a {
    color: var(--sm-link-active);
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu .current-menu-ancestor > a::after,
.primary-menu .current_page_ancestor > a::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu .current-menu-ancestor > a::after,
.primary-menu .current_page_ancestor > a::after {
    background: var(--sm-link-active);
}

.menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    padding: 10px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--sm-header-text) 18%,
            transparent
        );

    border-radius: var(--sm-radius-sm);

    color: var(--sm-header-text);
    background: transparent;

    cursor: pointer;
}

.menu-toggle__line {
    display: block;

    width: 22px;
    height: 2px;

    margin: 4px auto;

    background: currentColor;

    transition:
        transform var(--sm-transition),
        opacity var(--sm-transition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    color: var(--sm-primary);

    border-color: var(--sm-primary);
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
    margin-top: auto;

    color: var(--sm-footer-text);
    background: var(--sm-footer-background);
}

.site-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(180px, 0.5fr);

    gap: clamp(3rem, 8vw, 8rem);

    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer__brand {
    max-width: 520px;
}

.site-footer__brand .custom-logo {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 56px;

    margin-bottom: 1.5rem;
}

.site-footer__title {
    display: inline-block;

    margin-bottom: 1rem;

    color: var(--sm-footer-text);

    font-family: var(--sm-font-heading);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: var(--sm-heading-weight);
    line-height: 1.2;

    text-decoration: none;
}

.site-footer__title:hover,
.site-footer__title:focus-visible {
    color: var(--sm-primary);
}

.site-footer__description {
    max-width: 460px;

    margin: 0;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 72%,
            transparent
        );

    font-family: var(--sm-font-body);
    line-height: var(--sm-line-height-body);
}

.site-footer__heading {
    margin: 0 0 1.25rem;

    color: var(--sm-footer-text);

    font-family: var(--sm-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-menu {
    display: grid;
    gap: 0.65rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    display: inline-flex;

    padding-block: 0.15rem;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 78%,
            transparent
        );

    font-family: var(--sm-font-body);

    text-decoration: none;

    transition:
        color var(--sm-transition),
        transform var(--sm-transition);
}

.footer-menu a:hover,
.footer-menu a:focus-visible,
.footer-menu .current-menu-item > a {
    color: var(--sm-footer-text);

    transform: translateX(3px);
}

.site-footer__bottom {
    border-top: 1px solid
        color-mix(
            in srgb,
            var(--sm-footer-text) 14%,
            transparent
        );
}

.site-footer__bottom-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
}

.site-footer__bottom p {
    margin: 0;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 62%,
            transparent
        );

    font-size: 0.875rem;
}


/* ---------------------------------------------------------
   Header / Footer Responsive
   --------------------------------------------------------- */

@media (max-width: 800px) {
    .site-header__inner {
        min-height: 68px;
    }

    .site-branding .custom-logo {
        max-width: 180px;
        max-height: 46px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;

        display: none;

        margin: 0;

        padding:
            0.75rem
            var(--sm-container-gutter)
            1.25rem;

        color: var(--sm-header-text);
        background: var(--sm-header-background);

        border-top: 1px solid
            color-mix(
                in srgb,
                var(--sm-header-text) 10%,
                transparent
            );

        border-bottom: 1px solid
            color-mix(
                in srgb,
                var(--sm-header-text) 12%,
                transparent
            );

        box-shadow:
            0 14px 30px
            color-mix(
                in srgb,
                #000000 10%,
                transparent
            );
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: grid;
        gap: 0;
    }

    .primary-menu a {
        width: 100%;

        min-height: 48px;

        padding-inline: 0.25rem;
    }

    .primary-menu a::after {
        right: auto;
        bottom: 4px;

        width: 32px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;

        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .site-footer__grid {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .site-footer__bottom-inner {
        min-height: 64px;
    }
}


/* =========================================================
   PREMIUM PATTERN VISUAL SYSTEM
   A restrained commercial polish layer for reusable patterns.
   ========================================================= */

:root {
    --sm-shadow-soft:
        0 8px 24px rgba(0, 0, 0, 0.06);

    --sm-shadow-card:
        0 14px 36px rgba(0, 0, 0, 0.08);

    --sm-shadow-lift:
        0 20px 48px rgba(0, 0, 0, 0.12);

    --sm-radius-lg: 18px;
}


/* ---------------------------------------------------------
   Section headings
   --------------------------------------------------------- */

.section-header__eyebrow:not(.has-background),
.image-text__eyebrow:not(.has-background) {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 0.35rem 0.7rem;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 10%,
            transparent
        );
}

.section-header__title {
    letter-spacing: -0.03em;
}


/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.service-card {
    position: relative;

    overflow: hidden;

    background:
        var(--wp--preset--color--background);

    box-shadow: var(--sm-shadow-soft);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition),
        border-color var(--sm-transition);
}

.service-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--sm-primary);

    transform: scaleX(0);
    transform-origin: left center;

    transition:
        transform var(--sm-transition);
}

.service-card:hover {
    transform: translateY(-5px);

    border-color:
        color-mix(
            in srgb,
            var(--sm-primary) 35%,
            var(--sm-border-colour)
        );

    box-shadow: var(--sm-shadow-card);
}

.service-card:hover::before {
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   Image + Text
   --------------------------------------------------------- */

.image-text__image img {
    display: block;

    border-radius: var(--sm-radius-lg);

    box-shadow: var(--sm-shadow-soft);
}


/* ---------------------------------------------------------
   Feature cards
   --------------------------------------------------------- */

.feature-card {
    box-shadow: var(--sm-shadow-soft);
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color:
        color-mix(
            in srgb,
            var(--sm-primary) 35%,
            var(--sm-border-colour)
        );

    box-shadow: var(--sm-shadow-card);
}

.feature-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 2.25rem;
    min-height: 2.25rem;

    padding-inline: 0.55rem;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 10%,
            transparent
        );
}


/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */

.testimonial-card {
    position: relative;

    overflow: hidden;

    box-shadow: var(--sm-shadow-soft);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition);
}

.testimonial-card::before {
    content: "“";

    position: absolute;
    top: 0.55rem;
    right: 1.25rem;

    color:
        color-mix(
            in srgb,
            var(--sm-primary) 18%,
            transparent
        );

    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--sm-shadow-card);
}

.testimonial-card__quote {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq__list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    padding:
        1.15rem
        1.25rem;

    border:
        1px solid var(--sm-border-colour);

    border-radius:
        var(--sm-radius-md);

    background:
        var(--wp--preset--color--background);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.035);

    transition:
        border-color var(--sm-transition),
        box-shadow var(--sm-transition);
}

.faq-item:last-child {
    border-bottom:
        1px solid var(--sm-border-colour);
}

.faq-item:hover,
.faq-item[open] {
    border-color:
        color-mix(
            in srgb,
            var(--sm-primary) 32%,
            var(--sm-border-colour)
        );

    box-shadow: var(--sm-shadow-soft);
}

.faq-item summary {
    position: relative;

    padding-right: 2.25rem;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 0;

    width: 1.75rem;
    height: 1.75rem;

    display: grid;
    place-items: center;

    border-radius: 999px;

    color: var(--sm-primary);

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 10%,
            transparent
        );

    transform: translateY(-50%);

    font-size: 1.15rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}


/* ---------------------------------------------------------
   Pricing
   --------------------------------------------------------- */

.pricing-card {
    overflow: hidden;

    box-shadow: var(--sm-shadow-soft);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition),
        border-color var(--sm-transition);
}

.pricing-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--sm-shadow-card);
}

.pricing-card--featured {
    transform: translateY(-8px);

    box-shadow: var(--sm-shadow-lift);
}

.pricing-card--featured:hover {
    transform: translateY(-11px);
}

.pricing-card--featured::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background: var(--sm-primary);
}

.pricing-card__badge {
    box-shadow:
        0 6px 16px
        color-mix(
            in srgb,
            var(--sm-primary) 25%,
            transparent
        );
}


/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */

.team-card {
    transition:
        transform var(--sm-transition);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card__image {
    overflow: hidden;

    border-radius: var(--sm-radius-lg);

    box-shadow: var(--sm-shadow-soft);
}

.team-card__image img {
    transition:
        transform 0.35s ease;
}

.team-card:hover .team-card__image img {
    transform: scale(1.035);
}


/* ---------------------------------------------------------
   Logo grid
   --------------------------------------------------------- */

.logo-grid__item {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.035);

    transition:
        transform var(--sm-transition),
        box-shadow var(--sm-transition),
        border-color var(--sm-transition);
}

.logo-grid__item:hover {
    transform: translateY(-3px);

    border-color:
        color-mix(
            in srgb,
            var(--sm-primary) 25%,
            var(--sm-border-colour)
        );

    box-shadow: var(--sm-shadow-soft);
}


/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */

.stat-card {
    position: relative;

    padding:
        var(--wp--preset--spacing--20);
}

.stat-card + .stat-card::before {
    content: "";

    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;

    width: 1px;

    background:
        color-mix(
            in srgb,
            var(--wp--preset--color--background) 18%,
            transparent
        );
}

.stat-card__value {
    text-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14);
}


/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-placeholder {
    box-shadow: var(--sm-shadow-card);
}

.contact-details__item {
    padding:
        0.9rem
        1rem;

    border-left:
        3px solid var(--sm-primary);

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 6%,
            transparent
        );

    border-radius:
        0
        var(--sm-radius-sm)
        var(--sm-radius-sm)
        0;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta {
    position: relative;

    overflow: hidden;

}

.cta::after {
    content: "";

    position: absolute;
    top: -50%;
    right: -10%;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 16%,
            transparent
        );

    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   Responsive premium adjustments
   --------------------------------------------------------- */

@media (max-width: 800px) {
    .pricing-card--featured,
    .pricing-card--featured:hover {
        transform: none;
    }

    .stat-card + .stat-card::before {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .feature-card,
    .testimonial-card,
    .pricing-card,
    .team-card,
    .team-card__image img,
    .logo-grid__item {
        transition: none;
    }

    .service-card:hover,
    .feature-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover,
    .pricing-card--featured,
    .pricing-card--featured:hover,
    .team-card:hover,
    .logo-grid__item:hover {
        transform: none;
    }
}


/* =========================================================
   PRICING FEATURED CARD ALIGNMENT
   Keep the Popular badge without pushing the featured card's
   main content lower than the other pricing cards.
   ========================================================= */

.pricing-card--featured {
    position: relative;
}

.pricing-card--featured .pricing-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;

    z-index: 2;

    margin: 0;

    box-shadow:
        0 6px 16px
        color-mix(
            in srgb,
            var(--sm-primary) 25%,
            transparent
        );
}

/*
 * Because the badge is now overlaid, the Business name / price /
 * description align vertically with Starter and Pro.
 */
.pricing-card--featured .pricing-card__name {
    margin-top: 0;
}

/*
 * On narrow cards, leave a little room so a long plan name does
 * not collide with the Popular badge.
 */
@media (min-width: 801px) {
    .pricing-card--featured .pricing-card__name {
        max-width: calc(100% - 7rem);
    }
}

@media (max-width: 800px) {
    .pricing-card--featured .pricing-card__badge {
        position: static;

        margin-bottom:
            var(--wp--preset--spacing--20);
    }

    .pricing-card--featured .pricing-card__name {
        max-width: none;
    }
}


/* =========================================================
   PATTERN ALIGNMENT CONSISTENCY
   Keep normal pattern copy aligned to a shared left edge.
   Intentional centred patterns (Logo Grid / Stats) are excluded.
   ========================================================= */

/*
 * Generic section headers are left-aligned.
 * The explicit --center modifier remains centred.
 */
.section-header:not(.section-header--center) {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.section-header:not(.section-header--center)
.section-header__eyebrow,
.section-header:not(.section-header--center)
.section-header__title,
.section-header:not(.section-header--center)
.section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.section-header--center {
    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center;
}

.section-header--center
.section-header__eyebrow,
.section-header--center
.section-header__title,
.section-header--center
.section-header__description {
    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center;
}


/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */

.team__grid {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.team-card {
    text-align: left;
}

.team-card__image,
.team-card__name,
.team-card__role,
.team-card__bio {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.team-card__image {
    width: 100%;
}


/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */

.testimonials__grid {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.testimonial-card {
    text-align: left;
}

.testimonial-card__quote,
.testimonial-card__name,
.testimonial-card__role {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}


/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq__list {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.faq-item,
.faq-item summary,
.faq-item > p {
    text-align: left;
}


/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-section__grid {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contact-section__content,
.contact-section__title,
.contact-section__description,
.contact-details {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}


/* ---------------------------------------------------------
   Preserve intentional centred patterns
   --------------------------------------------------------- */

.logo-grid .section-header--center {
    text-align: center;
}

.stat-card {
    text-align: center;
}


/* =========================================================
   TESTIMONIAL QUOTE SPACING
   Keep testimonial copy clear of the decorative quote mark.
   ========================================================= */

.testimonial-card {
    padding-top:
        calc(var(--wp--preset--spacing--30) + 2rem);

    padding-right:
        calc(var(--wp--preset--spacing--30) + 2.5rem);
}

.testimonial-card__quote {
    margin-top: 0;
}

@media (max-width: 600px) {
    .testimonial-card {
        padding-top:
            calc(var(--wp--preset--spacing--30) + 1.5rem);

        padding-right:
            var(--wp--preset--spacing--30);
    }

    .testimonial-card::before {
        font-size: 4rem;
    }
}


/* =========================================================
   REAL TESTIMONIALS PLUGIN INTEGRATION
   Recommended companion plugin: Real Testimonials by ShapedPlugin.
   The plugin owns testimonial content/layout functionality;
   SiliconMayhem supplies the surrounding visual language.
   ========================================================= */

.testimonials__plugin-slot {
    width: 100%;
    max-width: none;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

/*
 * Keep the plugin showcase aligned with the theme container.
 */
.testimonials__plugin-slot > * {
    width: 100%;
    max-width: none;
}

/*
 * Real Testimonials has historically used the
 * .sp-testimonial-free-section wrapper for showcase output.
 */
.testimonials__plugin-slot .sp-testimonial-free-section {
    width: 100%;
    max-width: none;

    margin: 0;
}

/*
 * Give plugin-generated testimonial cards the same visual feel
 * as the rest of SiliconMayhem where these standard plugin classes exist.
 */
.testimonials__plugin-slot .sp-testimonial-free {
    height: 100%;

    padding: clamp(1.5rem, 2vw, 2rem);

    border: 1px solid var(--sm-border-colour);
    border-radius: var(--sm-radius-lg);

    background: var(--wp--preset--color--background);

    box-shadow: var(--sm-shadow-card);

    text-align: left;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.testimonials__plugin-slot .sp-testimonial-free:hover {
    transform: translateY(-3px);
    box-shadow: var(--sm-shadow-lift);
}

.testimonials__plugin-slot .sp-testimonial-content,
.testimonials__plugin-slot .sp-testimonial-content p {
    color: var(--wp--preset--color--foreground);

    font-family: var(--sm-font-body);
    font-size: 1rem;
    line-height: var(--sm-line-height-body);

    text-align: left;
}

.testimonials__plugin-slot .sp-testimonial-content {
    margin-bottom: 1.25rem;
}

.testimonials__plugin-slot .sp-testimonial-client-name {
    color: var(--wp--preset--color--foreground);

    font-family: var(--sm-font-heading);
    font-weight: var(--sm-heading-weight);

    text-align: left;
}

.testimonials__plugin-slot .sp-testimonial-client-designation {
    color: var(--wp--preset--color--muted);

    font-family: var(--sm-font-body);
    font-size: 0.9rem;

    text-align: left;
}

/*
 * Keep the rating close to the author details without imposing
 * a fixed colour; the plugin's own selected rating colour can remain.
 */
.testimonials__plugin-slot [class*="rating"] {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/*
 * Avoid old hard-coded testimonial card styling affecting the
 * new plugin-based section.
 */
.testimonials__plugin-slot .testimonial-card::before {
    content: none;
}

/*
 * The empty Group is intentional: it gives Gutenberg a clean
 * insertion point for the Real Testimonials Grid block.
 */
.testimonials__plugin-slot:empty {
    min-height: 5rem;

    border: 1px dashed var(--sm-border-colour);
    border-radius: var(--sm-radius-lg);

    background:
        color-mix(
            in srgb,
            var(--wp--preset--color--background-light) 70%,
            transparent
        );
}

@media (max-width: 781px) {
    .testimonials__plugin-slot .sp-testimonial-free {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials__plugin-slot .sp-testimonial-free {
        transition: none;
    }

    .testimonials__plugin-slot .sp-testimonial-free:hover {
        transform: none;
    }
}


/* =========================================================
   PAGE CONTENT WIDTH SYSTEM
   Normal pages must allow Gutenberg patterns to control their
   own width, while ordinary text remains comfortably readable.
   ========================================================= */

.entry-content {
    width: 100%;
    max-width: none;
}

/*
 * Keep ordinary editorial content constrained.
 * Pattern/group/columns blocks are deliberately excluded so they
 * can use their own content/wide/full-width layout rules.
 */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > pre,
.entry-content > table,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6 {
    width: min(
        calc(100% - 2rem),
        var(--wp--style--global--content-size)
    );

    margin-left: auto;
    margin-right: auto;
}

/*
 * Gutenberg wide/full alignment support on normal pages.
 */
.entry-content > .alignwide {
    width: min(
        calc(100% - 2rem),
        var(--wp--style--global--wide-size)
    );

    max-width: var(--wp--style--global--wide-size);

    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignfull {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

/*
 * Theme patterns normally include their own container and layout
 * classes, so they should not inherit editorial text constraints.
 */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-query {
    max-width: none;
}

/*
 * Keep page links readable when a page is split with wp_link_pages().
 */
.page-links {
    width: min(
        calc(100% - 2rem),
        var(--wp--style--global--content-size)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   VIEWPORT SAFETY
   ========================================================= */

html,
body {
    overflow-x: clip;
}


/* =========================================================
   LOGO GRID EMPTY STATE
   Empty logo slots are useful in Gutenberg, but should not
   appear as finished blank cards on the live site.
   ========================================================= */

.logo-grid__item:empty {
    display: none;
}


/* =========================================================
   STATS VALUE SAFETY
   Keep values such as 250+, 98% and 24/7 on one line.
   ========================================================= */

.stat-card__value {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}


/* =========================================================
   STATS GRID SPACING
   Keep large values on one line without allowing neighbouring
   columns to visually collide.
   ========================================================= */

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    max-width: none;

    gap: 0;
}

.stat-card {
    min-width: 0;

    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
}

.stat-card__value {
    display: block;

    width: 100%;

    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;

    text-align: center;
}

.stat-card__label {
    margin-top: 1rem;

    text-align: center;
}

@media (max-width: 900px) {
    .stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 560px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }

    .stat-card__value {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }
}


/* =========================================================
   SILICON MAYHEM VISUAL SYSTEM — REFERENCE-INSPIRED PASS
   Global tokens, Header, Hero and Services.
   Existing Customizer colours remain authoritative.
   ========================================================= */

:root {
    --sm-accent: var(--sm-primary);
    --sm-dark-surface: var(--sm-footer-background);
    --sm-dark-text: var(--sm-footer-text);

    --sm-radius-sm: 6px;
    --sm-radius-md: 10px;
    --sm-radius-lg: 14px;

    --sm-border-subtle:
        color-mix(
            in srgb,
            var(--sm-border-colour) 72%,
            transparent
        );

    --sm-shadow-card-refined:
        0 18px 45px
        color-mix(
            in srgb,
            var(--wp--preset--color--foreground) 8%,
            transparent
        );

    --sm-section-space:
        clamp(3rem, 5vw, 4.5rem);
}


/* ---------------------------------------------------------
   Global section rhythm
   --------------------------------------------------------- */

.section {
    padding-top: var(--sm-section-space);
    padding-bottom: var(--sm-section-space);
}

.section-header {
    gap: 0;
}

.section-header__title {
    margin-top: 1rem;
    margin-bottom: 0;
}

.section-header__description {
    margin-top: 1rem;
}


/* ---------------------------------------------------------
   Eyebrows
   Reference feel: line + uppercase tracked label.
   No rounded pill.
   --------------------------------------------------------- */

.section-header__eyebrow,
.image-text__eyebrow,
.hero__eyebrow {
    display: flex;
    align-items: center;

    width: fit-content;

    padding: 0 !important;

    border-radius: 0 !important;
    background: transparent !important;

    color: var(--sm-accent);

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-header__eyebrow::before,
.image-text__eyebrow::before,
.hero__eyebrow::before {
    content: "";

    width: 2.25rem;
    height: 2px;

    margin-right: 0.8rem;

    flex: 0 0 auto;

    background: var(--sm-accent);
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    border-bottom:
        1px solid
        color-mix(
            in srgb,
            var(--sm-header-text) 12%,
            transparent
        );

    box-shadow: none;
}

.site-header__inner {
    min-height: 92px;
}

.site-title,
.site-title:visited {
    font-family: var(--sm-font-heading);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.custom-logo-link img,
.custom-logo {
    max-height: 52px;
}

.primary-navigation .menu {
    gap: clamp(1.35rem, 2.4vw, 2.4rem);
}

.primary-navigation a {
    padding: 0.5rem 0;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.primary-navigation a::after {
    height: 1px;
}

@media (max-width: 800px) {
    .site-header__inner {
        min-height: 72px;
    }

    .primary-navigation .menu {
        gap: 0;
    }

    .primary-navigation a {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    color: var(--sm-dark-text);


}

.hero::after {
    content: "";

    position: absolute;
    inset: auto -10% -35% auto;

    z-index: -1;

    width: min(52vw, 760px);
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--sm-accent) 18%,
                transparent
            ) 0%,
            transparent 68%
        );

    pointer-events: none;
}

.hero__container {
    min-height: clamp(610px, 76vh, 820px);

    display: flex;
    align-items: center;

    padding-top: clamp(4rem, 6vw, 6rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
}

.hero__content {
    width: min(100%, 720px) !important;
    max-width: 720px !important;

    margin-left: 0 !important;
    margin-right: auto !important;
}

.hero__eyebrow:not(.has-text-color) {
    color: var(--sm-accent);
}

.hero__title {
    max-width: 720px !important;

    margin-top: 1.4rem;
    margin-bottom: 0;

    color: var(--sm-dark-text);

    font-size:
        clamp(3.4rem, 6.4vw, 6.7rem);

    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero__title:not(.has-text-color) {
    color: var(--sm-dark-text);
}

.hero__description {
    max-width: 650px !important;

    margin-top: 1.7rem;
    margin-left: 0 !important;
    margin-right: auto !important;

    color:
        color-mix(
            in srgb,
            var(--sm-dark-text) 76%,
            transparent
        );

    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.65;
}

.hero__description:not(.has-text-color) {
    color:
        color-mix(
            in srgb,
            var(--sm-dark-text) 76%,
            transparent
        );
}

.hero__actions {
    margin-top: 2.25rem;
    gap: 0.8rem;
}

.hero .button--primary .wp-block-button__link {
    min-height: 54px;

    display: inline-flex;
    align-items: center;

    padding: 0.85rem 1.45rem;

    border: 1px solid var(--sm-accent);
    border-radius: var(--sm-radius-sm);
}

.hero .button--secondary .wp-block-button__link {
    min-height: 54px;

    display: inline-flex;
    align-items: center;

    padding: 0.85rem 1.45rem;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--sm-dark-text) 42%,
            transparent
        );

    border-radius: var(--sm-radius-sm);

    color: var(--sm-dark-text);

    background: transparent;
}

.hero .button--secondary .wp-block-button__link:hover {
    border-color: var(--sm-dark-text);
    color: var(--sm-dark-text);

    background:
        color-mix(
            in srgb,
            var(--sm-dark-text) 8%,
            transparent
        );
}

@media (max-width: 781px) {
    .hero__container {
        min-height: auto;
    }

    .hero__title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
}


/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.services {

}

.services .section-header {
    max-width: 860px;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center;
}

.services .section-header__eyebrow {
    margin-left: auto !important;
    margin-right: auto !important;
}

.services .section-header__title,
.services .section-header__description {
    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center;
}

.services .section-header__title {
    max-width: 860px;

    font-size: clamp(2.5rem, 4.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.services .section-header__description {
    max-width: 650px;

    color: var(--wp--preset--color--muted);

    font-size: 1.08rem;
}

.services__grid {
    width: 100%;
    max-width: none;

    margin-top: clamp(2.5rem, 5vw, 4rem);

    gap: clamp(1rem, 1.8vw, 1.5rem);
}

.service-card {
    position: relative;

    min-height: 310px;

    display: flex;
    flex-direction: column;

    padding: clamp(1.6rem, 2.5vw, 2.2rem);

    overflow: hidden;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--sm-accent) 20%,
            var(--sm-border-subtle)
        );

    border-radius: var(--sm-radius-md);

    background: var(--wp--preset--color--background);

    box-shadow: none;

    text-align: left;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.service-card::before {
    content: counter(sm-service, decimal-leading-zero);

    width: 3.25rem;
    height: 3.25rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1.5rem;

    border-radius: 50%;

    color: var(--sm-accent);

    background:
        color-mix(
            in srgb,
            var(--sm-accent) 10%,
            transparent
        );

    font-family: var(--sm-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.services__grid {
    counter-reset: sm-service;
}

.service-card {
    counter-increment: sm-service;
}

.service-card::after {
    content: "";

    position: absolute;
    inset: 0 auto auto 0;

    width: 100%;
    height: 2px;

    background: var(--sm-accent);

    opacity: 0;

    transition: opacity 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);

    border-color:
        color-mix(
            in srgb,
            var(--sm-accent) 42%,
            var(--sm-border-colour)
        );

    box-shadow: var(--sm-shadow-card-refined);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card__title {
    margin-top: 0;
    margin-bottom: 0;

    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.service-card__description {
    margin-top: 0.85rem;
    margin-bottom: 0;

    color: var(--wp--preset--color--muted);

    line-height: 1.65;
}

@media (max-width: 900px) {
    .services__grid {
        flex-wrap: wrap;
    }

    .services__grid > .wp-block-column {
        flex-basis: calc(50% - 0.75rem) !important;
    }
}

@media (max-width: 600px) {
    .services__grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .service-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}


/* =========================================================
   EYEBROW ALIGNMENT
   Keep all pattern eyebrows consistently left-justified.
   ========================================================= */

.section-header__eyebrow,
.image-text__eyebrow,
.hero__eyebrow {
    margin-left: 0 !important;
    margin-right: auto !important;

    justify-content: flex-start;

    text-align: left;
}

/*
 * Services uses a centred section header overall, but the eyebrow
 * itself remains left-aligned for consistency with the rest of
 * the design system.
 */
.services .section-header__eyebrow {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

/*
 * Keep the Hero eyebrow anchored to the left edge of the content.
 */
.hero__eyebrow {
    align-self: flex-start;
}


/* =========================================================
   SERVICES + LOGO GRID HEADER ALIGNMENT
   Keep these section headings consistently left-aligned.
   ========================================================= */

/* Services */
.services .section-header {
    max-width: none;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.services .section-header__eyebrow,
.services .section-header__title,
.services .section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}


/* Logo Grid / Businesses we work with */
.logo-grid .section-header,
.logo-grid .section-header--center {
    max-width: none;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.logo-grid .section-header__eyebrow,
.logo-grid .section-header__title,
.logo-grid .section-header__description,
.logo-grid .section-header--center .section-header__eyebrow,
.logo-grid .section-header--center .section-header__title,
.logo-grid .section-header--center .section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}


/* =========================================================
   HEADER NAV REFINEMENT
   Smaller navigation text with subtle separators.
   ========================================================= */

.primary-navigation .menu {
    align-items: center;
}

.primary-navigation .menu > li {
    position: relative;

    display: flex;
    align-items: center;
}

.primary-navigation .menu > li:not(:last-child)::after {
    content: "|";

    margin-left: clamp(0.8rem, 1.4vw, 1.2rem);

    color:
        color-mix(
            in srgb,
            var(--sm-header-text) 42%,
            transparent
        );

    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;
}

.primary-navigation a {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

@media (max-width: 800px) {
    .primary-navigation .menu > li {
        display: block;
    }

    .primary-navigation .menu > li:not(:last-child)::after {
        content: none;
    }

    .primary-navigation a {
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }
}


/* =========================================================
   SERVICES CARD NUMBER + PADDING FIX
   Keep the numbered badge clear of the title and card edges.
   ========================================================= */

.service-card {
    padding:
        clamp(2.1rem, 3vw, 2.6rem)
        clamp(1.8rem, 2.6vw, 2.4rem);

    gap: 0;
}

.service-card::before {
    position: static;

    width: 3.1rem;
    height: 3.1rem;

    margin:
        0
        0
        1.6rem
        0;

    flex: 0 0 auto;

    align-self: flex-start;
}

.service-card__title {
    position: relative;

    z-index: 1;

    margin-top: 0;
    margin-bottom: 0;
}

.service-card__description {
    margin-top: 0.9rem;
}

/*
 * Keep hover decoration behind the content.
 */
.service-card::after {
    z-index: 0;
}

@media (max-width: 600px) {
    .service-card {
        padding: 1.75rem 1.5rem;
    }

    .service-card::before {
        margin-bottom: 1.35rem;
    }
}


/* =========================================================
   GLOBAL PATTERN VERTICAL SPACING
   Tighter rhythm across all reusable sections.
   ========================================================= */

@media (max-width: 781px) {
    .section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero__container {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}


/* =========================================================
   PAGE OPTION: HIDE PAGE TITLE
   Applied only when the Page Options checkbox is enabled.
   ========================================================= */

.siliconmayhem-hide-page-title .page-header,
.siliconmayhem-hide-page-title .entry-header,
.siliconmayhem-hide-page-title .entry-title,
.siliconmayhem-hide-page-title .page-title,
.siliconmayhem-hide-page-title .wp-block-post-title {
    display: none !important;
}

.siliconmayhem-hide-page-title .site-main,
.siliconmayhem-hide-page-title .page-content,
.siliconmayhem-hide-page-title .entry-content {
    margin-top: 0;
    padding-top: 0;
}


/* =========================================================
   HERO CONTENT-BASED SPACING
   Hero height follows its content instead of filling the viewport.
   Padding scales from the same variable used by the Hero title.
   ========================================================= */

.hero {
    --sm-hero-title-size:
        clamp(3.25rem, 5.4vw, 5.75rem);

    --sm-hero-pad-y:
        clamp(
            2rem,
            calc(var(--sm-hero-title-size) * 0.42),
            3.5rem
        );

}

.hero__container {
    min-height: 0;

    padding-top: var(--sm-hero-pad-y);
    padding-bottom: var(--sm-hero-pad-y);
}

.hero__title {
    font-size: var(--sm-hero-title-size);

    margin-top: 0.9rem;
}

.hero__description {
    margin-top: 1rem;
}

.hero__actions {
    margin-top: 1.4rem;
}

/*
 * First Hero on a page should meet the header directly.
 */
.entry-content > .hero:first-child,
.page-content .entry-content > .hero:first-child {
    margin-top: 0 !important;
}

@media (max-width: 781px) {
    .hero {
        --sm-hero-title-size:
            clamp(2.75rem, 11vw, 4.5rem);

        --sm-hero-pad-y:
            clamp(
                1.75rem,
                calc(var(--sm-hero-title-size) * 0.38),
                2.75rem
            );
    }
}


/* =========================================================
   SILICON MAYHEM VISUAL SYSTEM — SECOND PASS
   Features, About, CTA, Pricing, Team, Logo Grid, Stats, Footer.
   ========================================================= */


/* ---------------------------------------------------------
   FEATURES / WHY CHOOSE US
   --------------------------------------------------------- */

.features {

}

.features .section-header {
    max-width: 760px;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.features .section-header__eyebrow,
.features .section-header__title,
.features .section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.features .section-header__title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.features__grid {
    gap: clamp(1rem, 1.8vw, 1.5rem);
}

.feature-card {
    padding: clamp(1.5rem, 2vw, 2rem);

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    text-align: left;
}

.feature-card::before {
    width: 2.7rem;
    height: 2.7rem;

    margin-bottom: 1.1rem;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 9%,
            transparent
        );

    color: var(--sm-primary);

    font-size: 0.78rem;
    font-weight: 800;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card__title {
    margin-top: 0;

    font-size: 1.15rem;
    line-height: 1.25;
}

.feature-card__description {
    margin-top: 0.55rem;

    color: var(--wp--preset--color--muted);

    line-height: 1.55;
}


/* ---------------------------------------------------------
   ABOUT / IMAGE + TEXT
   --------------------------------------------------------- */

.image-text {

}

.image-text__grid {
    gap: clamp(2.5rem, 5vw, 5rem);
}

.image-text__content {
    align-self: center;

    max-width: 640px;
}

.image-text__title {
    margin-top: 1rem;

    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.image-text__description {
    margin-top: 1.35rem;

    color: var(--wp--preset--color--muted);

    font-size: 1.05rem;
    line-height: 1.7;
}

.image-text__image {
    min-height: 360px;

    overflow: hidden;

    border-radius: var(--sm-radius-md);

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 5%,
            var(--wp--preset--color--background-light)
        );

    box-shadow: var(--sm-shadow-card-refined);
}

.image-text__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}

@media (max-width: 781px) {
    .image-text__grid {
        gap: 2rem;
    }

    .image-text__image {
        min-height: 260px;
    }
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta {
    position: relative;
    isolation: isolate;

    overflow: hidden;


    color: var(--sm-dark-text);

}

.cta::before {
    content: "";

    position: absolute;
    inset: auto -10% -50% auto;

    z-index: -1;

    width: min(42vw, 620px);
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--sm-primary) 20%,
                transparent
            ) 0%,
            transparent 68%
        );
}

.cta .container {
    padding-top: clamp(2.25rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.cta__title {
    max-width: 820px;

    margin: 0;

    color: var(--sm-dark-text);

    font-size: clamp(2.6rem, 4.7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.cta__description {
    max-width: 700px;

    margin-top: 1rem;

    color:
        color-mix(
            in srgb,
            var(--sm-dark-text) 76%,
            transparent
        );

    font-size: 1.08rem;
    line-height: 1.65;
}

.cta .wp-block-buttons {
    margin-top: 1.5rem;
}


/* ---------------------------------------------------------
   PRICING
   --------------------------------------------------------- */

.pricing {

}

.pricing__grid {
    gap: clamp(1rem, 1.7vw, 1.4rem);
}

.pricing-card {
    padding: clamp(1.7rem, 2.4vw, 2.2rem);

    border:
        1px solid
        color-mix(
            in srgb,
            var(--sm-border-colour) 80%,
            transparent
        );

    border-radius: var(--sm-radius-md);

    background: var(--wp--preset--color--background);

    box-shadow: none;
}

.pricing-card--featured {
    border-color: var(--sm-primary);

    box-shadow:
        0 18px 45px
        color-mix(
            in srgb,
            var(--sm-primary) 12%,
            transparent
        );

    transform: translateY(-6px);
}

.pricing-card__name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-card__price {
    margin-top: 1rem;

    font-size: clamp(3rem, 4.8vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.pricing-card__description {
    margin-top: 1.1rem;

    color: var(--wp--preset--color--muted);

    line-height: 1.55;
}

.pricing-card ul {
    margin-top: 1.2rem;
}

.pricing-card li {
    margin-bottom: 0.55rem;
}

.pricing-card__badge {
    top: 1rem;
    right: 1rem;

    padding: 0.38rem 0.7rem;

    border-radius: 999px;

    font-size: 0.68rem;
    letter-spacing: 0.1em;
}


/* ---------------------------------------------------------
   TEAM
   --------------------------------------------------------- */

.team {

}

.team__grid {
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.team-card {
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    text-align: left;
}

.team-card:hover {
    transform: none;
    box-shadow: none;
}

.team-card__image {
    min-height: 260px;

    margin-bottom: 1.25rem;

    overflow: hidden;

    border-radius: var(--sm-radius-md);

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 5%,
            var(--wp--preset--color--background-light)
        );
}

.team-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.team-card__name {
    margin-top: 0;

    font-size: 1.45rem;
    line-height: 1.2;
}

.team-card__role {
    margin-top: 0.35rem;

    color: var(--sm-primary);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-card__bio {
    margin-top: 0.8rem;

    color: var(--wp--preset--color--muted);

    line-height: 1.55;
}


/* ---------------------------------------------------------
   LOGO GRID
   --------------------------------------------------------- */

.logo-grid {

}

.logo-grid__items {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.logo-grid__item {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.5rem;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--sm-border-colour) 65%,
            transparent
        );

    border-radius: var(--sm-radius-md);

    background: var(--wp--preset--color--background);

    box-shadow: none;
}

.logo-grid__item img {
    max-height: 58px;
    width: auto;

    object-fit: contain;

    filter: grayscale(1);
    opacity: 0.72;

    transition:
        filter 180ms ease,
        opacity 180ms ease;
}

.logo-grid__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}


/* ---------------------------------------------------------
   STATS
   --------------------------------------------------------- */

.stats {
    color: var(--sm-dark-text);

}

.stats__grid {
    gap: 0;
}

.stat-card {
    padding:
        clamp(1.75rem, 3vw, 2.75rem)
        clamp(1rem, 2vw, 2rem);

    border-right:
        1px solid
        color-mix(
            in srgb,
            var(--sm-dark-text) 16%,
            transparent
        );

    text-align: center;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card__value {
    color: var(--sm-dark-text);

    font-size: clamp(3.2rem, 5vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.stat-card__label {
    margin-top: 0.8rem;

    color:
        color-mix(
            in srgb,
            var(--sm-dark-text) 72%,
            transparent
        );

    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom:
            1px solid
            color-mix(
                in srgb,
                var(--sm-dark-text) 16%,
                transparent
            );
    }
}

@media (max-width: 560px) {
    .stat-card {
        border-right: 0;

        border-bottom:
            1px solid
            color-mix(
                in srgb,
                var(--sm-dark-text) 16%,
                transparent
            );
    }

    .stat-card:last-child {
        border-bottom: 0;
    }
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    background: var(--sm-footer-background);
    color: var(--sm-footer-text);
}

.site-footer__inner {
    padding-top: clamp(3rem, 5vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer__grid {
    gap: clamp(2rem, 5vw, 5rem);
}

.site-footer__brand .site-title,
.site-footer__brand .site-title:visited {
    color: var(--sm-footer-text);

    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.site-footer__description {
    max-width: 520px;

    margin-top: 1rem;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 66%,
            transparent
        );

    line-height: 1.65;
}

.site-footer__heading {
    color: var(--sm-primary);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-navigation a {
    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 72%,
            transparent
        );

    font-size: 0.92rem;
}

.footer-navigation a:hover,
.footer-navigation a:focus {
    color: var(--sm-primary);
}

.site-footer__bottom {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.25rem;

    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--sm-footer-text) 12%,
            transparent
        );

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 52%,
            transparent
        );

    font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
    .logo-grid__item img {
        transition: none;
    }
}


/* =========================================================
   PAGE TO FOOTER FLUSH
   The final pattern on a page should meet the footer directly.
   ========================================================= */

.page-content {
    padding-bottom: 0;
}

.page-content .entry-content {
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-content .entry-content > *:last-child {
    margin-bottom: 0 !important;
}

/*
 * Full-width theme patterns should not leave block-gap space
 * after the final section.
 */
.page-content .entry-content > .section:last-child,
.page-content .entry-content > .hero:last-child,
.page-content .entry-content > .alignfull:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   HERO PRESET COLOURS
   Give every colour preset explicit, readable Hero colours.
   ========================================================= */

.hero__eyebrow {
    color:
        var(
            --sm-hero-eyebrow-color,
            var(--sm-primary)
        );
}

.hero__eyebrow::before {
    background:
        var(
            --sm-hero-eyebrow-color,
            var(--sm-primary)
        ) !important;
}

.hero__title {
    color:
        var(
            --sm-hero-title-color,
            var(--sm-footer-text)
        );
}

.hero__description {
    color:
        var(
            --sm-hero-copy-color,
            color-mix(
                in srgb,
                var(--sm-footer-text) 76%,
                transparent
            )
        );
}

/*
 * Theme Style values above are defaults only.
 * Gutenberg colour choices on individual Hero blocks now take priority.
 */


/* =========================================================
   STARTER PAGE INTRO
   Full-width outer section with preset-safe text colours.
   ========================================================= */

.page-intro {

}

.page-intro__inner {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    );

    max-width: var(--sm-container-width);

    margin-left: auto !important;
    margin-right: auto !important;
}

.page-intro .section-header__eyebrow {
    margin-left: 0 !important;
    margin-right: auto !important;

    color: var(--sm-primary) !important;

    text-align: left;
}

.page-intro__title {
    max-width: 900px;

    margin-top: 1rem;
    margin-bottom: 0;

    color: var(--wp--preset--color--foreground) !important;

    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-intro__description {
    max-width: 720px;

    margin-top: 1.2rem;
    margin-left: 0 !important;
    margin-right: auto !important;

    color: var(--wp--preset--color--muted) !important;

    font-size: 1.08rem;
    line-height: 1.65;
}

@media (max-width: 781px) {
    .page-intro__title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }
}


/* =========================================================
   PROCESS / HOW IT WORKS
   ========================================================= */

.process {

}

.process .section-header {
    max-width: 760px;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.process .section-header__eyebrow,
.process .section-header__title,
.process .section-header__description {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.process__grid {
    position: relative;

    gap: clamp(1rem, 2vw, 1.75rem);

    margin-top: clamp(2rem, 4vw, 3.25rem);
}

.process-step {
    position: relative;

    min-width: 0;

    padding:
        0
        clamp(1rem, 1.8vw, 1.5rem)
        0
        0;

    text-align: left;
}

.process-step:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 1.35rem;
    right: -0.5rem;

    width: clamp(1.5rem, 3vw, 3rem);
    height: 1px;

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 34%,
            var(--sm-border-colour)
        );
}

.process-step__number {
    width: 2.7rem;
    height: 2.7rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border-radius: 50%;

    color: var(--sm-primary);

    background:
        color-mix(
            in srgb,
            var(--sm-primary) 10%,
            transparent
        );

    font-family: var(--sm-font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.process-step__title {
    margin-top: 1rem;
    margin-bottom: 0;

    font-size: 1.3rem;
    line-height: 1.2;
}

.process-step__description {
    margin-top: 0.65rem;

    color: var(--wp--preset--color--muted);

    line-height: 1.6;
}

@media (max-width: 781px) {
    .process__grid {
        flex-wrap: wrap;
    }

    .process__grid > .wp-block-column {
        flex-basis: calc(50% - 0.75rem) !important;
    }

    .process-step {
        padding-right: 0;
    }

    .process-step::after {
        content: none !important;
    }
}

@media (max-width: 560px) {
    .process__grid > .wp-block-column {
        flex-basis: 100% !important;
    }
}


/* =========================================================
   SPLIT CTA / INFO PANEL
   ========================================================= */

.split-cta {
    position: relative;
    isolation: isolate;

    overflow: hidden;


    color: var(--sm-footer-text);

}

.split-cta__grid {
    gap: clamp(2rem, 5vw, 4.5rem);
}

.split-cta__content {
    align-self: center;
}

.split-cta__eyebrow {
    display: flex;
    align-items: center;

    width: fit-content;

    margin: 0 0 1rem 0;

    color: var(--sm-primary);

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.split-cta__eyebrow::before {
    content: "";

    width: 2.25rem;
    height: 2px;

    margin-right: 0.8rem;

    background: var(--sm-primary);
}

.split-cta__title {
    max-width: 720px;

    margin: 0;

    color: var(--sm-footer-text);

    font-size: clamp(2.6rem, 4.7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.split-cta__description {
    max-width: 680px;

    margin-top: 1.15rem;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 72%,
            transparent
        );

    font-size: 1.05rem;
    line-height: 1.65;
}

.split-cta__actions {
    margin-top: 1.5rem;
}

.split-cta__panel {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);

    border:
        1px solid
        color-mix(
            in srgb,
            var(--sm-footer-text) 16%,
            transparent
        );

    border-radius: var(--sm-radius-md);

    background:
        color-mix(
            in srgb,
            var(--sm-footer-text) 4%,
            transparent
        );

    box-shadow:
        0 18px 45px
        color-mix(
            in srgb,
            #000000 16%,
            transparent
        );
}

.split-cta__panel-title {
    margin: 0 0 1.25rem 0;

    color: var(--sm-footer-text);

    font-size: 1.35rem;
    line-height: 1.2;
}

.split-cta__item {
    position: relative;

    padding:
        0
        0
        1.1rem
        1.5rem;

    margin-bottom: 1.1rem;
}

.split-cta__item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.split-cta__item::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.4rem;

    width: 0.55rem;
    height: 0.55rem;

    border: 2px solid var(--sm-primary);
    border-radius: 50%;
}

.split-cta__item-title {
    margin: 0;

    color: var(--sm-footer-text);

    font-size: 1rem;
    line-height: 1.3;
}

.split-cta__item-description {
    margin-top: 0.35rem;

    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 62%,
            transparent
        );

    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 781px) {
    .split-cta__grid {
        gap: 2rem;
    }
}


/* =========================================================
   SPLIT CTA WIDTH + COLUMN BALANCE
   Use the full theme container and prevent Gutenberg's
   constrained layout from squeezing the two-column content.
   ========================================================= */

.split-cta > .container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    ) !important;

    max-width: var(--sm-container-width) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}

.split-cta__grid {
    width: 100%;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    align-items: center;
}

.split-cta__grid > .split-cta__content {
    flex-basis: 55% !important;
    max-width: none !important;
}

.split-cta__grid > .split-cta__panel {
    flex-basis: 45% !important;
    max-width: none !important;
}

.split-cta__content {
    width: 100%;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.split-cta__title {
    width: 100%;
    max-width: 760px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.split-cta__description {
    width: 100%;
    max-width: 680px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.split-cta__panel {
    width: 100%;
}

@media (max-width: 900px) {
    .split-cta__grid {
        flex-wrap: wrap;
    }

    .split-cta__grid > .split-cta__content,
    .split-cta__grid > .split-cta__panel {
        flex-basis: 100% !important;
    }

    .split-cta__title,
    .split-cta__description {
        max-width: 760px !important;
    }
}


/* =========================================================
   CONTACT / FLUENT FORMS
   ========================================================= */

.contact-plugin {

}

.contact-plugin > .container {
    width: min(
        calc(100% - (2 * var(--sm-container-gutter))),
        var(--sm-container-width)
    ) !important;

    max-width: var(--sm-container-width) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}

.contact-plugin__grid {
    width: 100%;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    gap: clamp(2rem, 5vw, 4.5rem);

    align-items: center;
}

.contact-plugin__grid > .contact-plugin__content {
    flex-basis: 42% !important;
    max-width: none !important;
}

.contact-plugin__grid > .contact-form-slot {
    flex-basis: 58% !important;
    max-width: none !important;
}

.contact-plugin__content {
    width: 100%;
    max-width: 620px;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: left;
}

.contact-plugin__content .section-header__eyebrow {
    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left;
}

.contact-plugin__title {
    max-width: 620px;

    margin-top: 1rem;
    margin-bottom: 0;

    color: var(--wp--preset--color--foreground);

    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.contact-plugin__description {
    max-width: 620px;

    margin-top: 1.2rem;

    color: var(--wp--preset--color--muted);

    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-plugin__details {
    margin-top: 1.75rem;
}

.contact-plugin__detail-label {
    margin: 1rem 0 0.2rem 0;

    color: var(--sm-primary);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-plugin__detail-value {
    margin: 0;

    color: var(--wp--preset--color--foreground);

    font-size: 1rem;
}

.contact-form-slot:empty {
    min-height: 0;
}

/* Fluent Forms frontend styling */
.contact-form-slot .ff-el-group {
    margin-bottom: 1rem;
}

.contact-form-slot .ff-el-input--label label {
    color: var(--wp--preset--color--foreground);

    font-size: 0.82rem;
    font-weight: 700;
}

.contact-form-slot input[type="text"],
.contact-form-slot input[type="email"],
.contact-form-slot input[type="tel"],
.contact-form-slot input[type="number"],
.contact-form-slot input[type="url"],
.contact-form-slot select,
.contact-form-slot textarea {
    width: 100%;

    padding: 0.85rem 1rem;

    border: 1px solid var(--sm-border-colour);
    border-radius: var(--sm-radius-sm);

    color: var(--wp--preset--color--foreground);
    background: var(--wp--preset--color--background);

    font: inherit;

    box-shadow: none;
}

.contact-form-slot textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-slot input:focus,
.contact-form-slot select:focus,
.contact-form-slot textarea:focus {
    outline: 2px solid
        color-mix(
            in srgb,
            var(--sm-primary) 35%,
            transparent
        );

    outline-offset: 1px;

    border-color: var(--sm-primary);
}

.contact-form-slot .ff-btn-submit,
.contact-form-slot button[type="submit"],
.contact-form-slot input[type="submit"] {
    min-height: 50px;

    padding: 0.8rem 1.35rem;

    border: 1px solid var(--sm-primary);
    border-radius: var(--sm-radius-sm);

    color: var(--sm-button-text);
    background: var(--sm-primary);

    font-family: var(--sm-font-body);
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.contact-form-slot .ff-btn-submit:hover,
.contact-form-slot button[type="submit"]:hover,
.contact-form-slot input[type="submit"]:hover {
    border-color: var(--sm-primary-dark);
    background: var(--sm-primary-dark);

    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .contact-plugin__grid {
        flex-wrap: wrap;
    }

    .contact-plugin__grid > .contact-plugin__content,
    .contact-plugin__grid > .contact-form-slot {
        flex-basis: 100% !important;
    }

    .contact-plugin__content {
        max-width: 760px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form-slot .ff-btn-submit,
    .contact-form-slot button[type="submit"],
    .contact-form-slot input[type="submit"] {
        transition: none;
    }

    .contact-form-slot .ff-btn-submit:hover,
    .contact-form-slot button[type="submit"]:hover,
    .contact-form-slot input[type="submit"]:hover {
        transform: none;
    }
}


/* =========================================================
   PATTERN BACKGROUND EDITABILITY
   Theme colours are defaults only. A Gutenberg-selected
   background on the outer pattern Group always takes priority.
   ========================================================= */

.hero:not(.has-background) {
    background:
        linear-gradient(
        90deg,
        color-mix(
        in srgb,
        var(--sm-dark-surface) 98%,
        transparent
        ) 0%,
        color-mix(
        in srgb,
        var(--sm-dark-surface) 92%,
        transparent
        ) 48%,
        color-mix(
        in srgb,
        var(--sm-dark-surface) 70%,
        transparent
        ) 100%
        ),
        var(--sm-dark-surface);
}

.services:not(.has-background) {
    background: var(--wp--preset--color--background);
}

.features:not(.has-background) {
    background:
        color-mix(
        in srgb,
        var(--sm-primary) 4%,
        var(--wp--preset--color--background)
        );
}

.image-text:not(.has-background) {
    background: var(--wp--preset--color--background);
}

.testimonials:not(.has-background) {
    background: var(--wp--preset--color--background-light);
}

.pricing:not(.has-background) {
    background:
        color-mix(
        in srgb,
        var(--sm-primary) 3%,
        var(--wp--preset--color--background)
        );
}

.team:not(.has-background) {
    background: var(--wp--preset--color--background);
}

.logo-grid:not(.has-background) {
    background:
        color-mix(
        in srgb,
        var(--sm-primary) 3%,
        var(--wp--preset--color--background)
        );
}

.stats:not(.has-background) {
    background: var(--sm-dark-surface);
}

.cta:not(.has-background) {
    background:
        linear-gradient(
        135deg,
        color-mix(
        in srgb,
        var(--sm-dark-surface) 100%,
        transparent
        ) 0%,
        color-mix(
        in srgb,
        var(--sm-dark-surface) 92%,
        var(--sm-primary)
        ) 100%
        );
}

.page-intro:not(.has-background) {
    background: var(--wp--preset--color--background);
}

.process:not(.has-background) {
    background:
        color-mix(
        in srgb,
        var(--sm-primary) 3%,
        var(--wp--preset--color--background)
        );
}

.split-cta:not(.has-background) {
    background:
        linear-gradient(
        135deg,
        var(--sm-footer-background) 0%,
        color-mix(
        in srgb,
        var(--sm-footer-background) 88%,
        var(--sm-primary)
        ) 100%
        );
}

.contact-plugin:not(.has-background) {
    background:
        color-mix(
        in srgb,
        var(--sm-primary) 3%,
        var(--wp--preset--color--background)
        );
}


/* =========================================================
   FOOTER BOTTOM / OPTIONAL CREDIT
   ========================================================= */

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.site-footer__copyright,
.site-footer__credit {
    margin: 0;
}

.site-footer__credit a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
    color: var(--sm-primary);
}

@media (max-width: 640px) {
    .site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   FINAL PAGE SECTION -> FOOTER FLUSH
   Prevent any visible page-background strip between the final
   Gutenberg pattern and the footer.
   ========================================================= */

/*
 * On normal Pages the footer should follow the page content
 * immediately. The footer may grow to absorb spare viewport
 * height on very short pages, preserving the sticky-footer feel
 * without creating a strip above it.
 */
body.page .site-main {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.page .site-footer {
    flex: 1 0 auto;
    margin-top: 0 !important;
}

/*
 * Remove all trailing spacing from the page/article/content
 * wrappers and from whichever block happens to be last.
 */
body.page .page-content,
body.page .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.page .entry-content > *:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

/*
 * Gutenberg can occasionally leave a blank paragraph or Spacer
 * after a pasted/removed pattern. Do not allow an empty trailing
 * block to create a visible strip before the footer.
 */
body.page .entry-content > p:empty:last-child {
    display: none !important;
}

body.page .entry-content > .wp-block-spacer:last-child:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Explicitly cover every theme section type when it is the final
 * block on the page. This is deliberately class-agnostic enough
 * to work with future patterns that use .section or .alignfull.
 */
body.page .entry-content > .section:last-child,
body.page .entry-content > .hero:last-child,
body.page .entry-content > .alignfull:last-child,
body.page .entry-content > .wp-block-group:last-child,
body.page .entry-content > .wp-block-columns:last-child,
body.page .entry-content > .wp-block-cover:last-child,
body.page .entry-content > .wp-block-media-text:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}


/* =========================================================
   HERO TABLET COPY WIDTH
   Keep the Hero aligned with the other sections on the left,
   while adding breathing room on the right at tablet widths.
   ========================================================= */

@media (min-width: 782px) and (max-width: 1100px) {
    .hero__content {
        max-width: 700px;
    }

    .hero__description {
        max-width: 560px !important;
        margin-right: auto;
    }
}

/* =========================================================
   ACCESSIBILITY REVIEW — RELEASE HARDENING
   ========================================================= */

/*
 * Links inside editorial content must not rely on colour alone.
 * Navigation and button-style links are excluded because their
 * surrounding context already identifies them as interactive.
 */
.entry-content a:not(.wp-block-button__link),
.comment-content a,
.archive-description a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.entry-content a:not(.wp-block-button__link):hover,
.entry-content a:not(.wp-block-button__link):focus-visible,
.comment-content a:hover,
.comment-content a:focus-visible,
.archive-description a:hover,
.archive-description a:focus-visible {
    text-decoration-thickness: 2px;
}

/*
 * Two-part keyboard focus treatment. The inner ring separates
 * the control from its own fill while the outer ring follows the
 * current theme foreground colour.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 3px;
    box-shadow:
        0 0 0 2px var(--wp--preset--color--background),
        0 0 0 5px var(--wp--preset--color--foreground);
}

/*
 * Azure's light footer needs slightly stronger small-print text
 * contrast. Other presets also remain comfortably readable.
 */
.site-footer__bottom p {
    color:
        color-mix(
            in srgb,
            var(--sm-footer-text) 68%,
            transparent
        );
}

/* Keep footer links at or above the WCAG 2.2 minimum target size. */
.footer-menu a {
    min-height: 24px;
    align-items: center;
}

/* Respect Windows High Contrast / forced-colour modes. */
@media (forced-colors: active) {
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible,
    summary:focus-visible {
        outline: 2px solid Highlight;
        box-shadow: none;
    }

    .menu-toggle,
    .wp-block-button__link,
    .button,
    .search-submit {
        border: 1px solid ButtonText;
    }
}

/* =========================================================
   WordPress CLASSIC CONTENT COMPATIBILITY
   These classes are used by WordPress-generated legacy content
   and are retained for Theme Check / backwards compatibility.
   ========================================================= */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text,
.gallery-caption {
    margin-top: 0.5rem;
    color: var(--wp--preset--color--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.sticky,
.bypostauthor {
    position: relative;
}

@media (max-width: 640px) {
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
}

