/* home_sixteen — static overrides (utilities missing or unsafe in output.css build) */

.hs16-page-wrap {
    min-width: 0;
    overflow-x: clip;
}

/* Consistent vertical rhythm between page sections */
.hs16-page-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hs16-page-section--hero-intro {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.hs16-blog-detail-divider {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #1f2937;
    height: 0;
}

.hs16-blog-share {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #d1d5db;
}

.hs16-blog-share-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs16-blog-share-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    margin-right: 0.25rem;
}

.hs16-blog-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: rgb(var(--color-primary));
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hs16-blog-share-link:hover {
    background: rgb(var(--color-primary));
    color: #fff;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hs16-page-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hs16-page-section--hero-intro {
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }
}

/* ── Mobile section rhythm (sitewide, custom CSS only) ── */
@media (max-width: 767px) {
    .hs16-page-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .hs16-page-section--hero-intro {
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }

    /* Inner pages: soften Tailwind py-12 / py-16 / py-24 on direct main sections */
    .hs16-page-wrap main > section.py-12,
    .hs16-page-wrap main > section.py-16,
    .hs16-page-wrap main > section.py-24 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .hs16-page-wrap main > section.py-24.md\:py-32 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }
}

/* ── Homepage: consistent section gaps ── */
.hs16-home-page {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .hs16-home-page {
        margin-bottom: 4rem;
    }
}

/* Brand / client logos — top padding only, no bottom gap before About */
.hs16-home-page .hs16-home-section--compact {
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .hs16-home-page .hs16-home-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .hs16-home-page .hs16-home-section--compact {
        padding-top: 2rem;
        padding-bottom: 0;
    }

    .hs16-home-hero .pb-32,
    .hs16-home-hero [class*="pb-48"] {
        padding-bottom: 2.5rem;
    }

    .hs16-home-hero h1.mb-10 {
        margin-bottom: 1.5rem;
    }

    .hs16-home-page .gap-12 {
        gap: 2rem;
    }

    .hs16-home-page .gap-16 {
        gap: 2rem;
    }

    .hs16-home-page .space-y-16 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 2.5rem;
    }

    .hs16-home-page .mb-16 {
        margin-bottom: 2.5rem;
    }

    .hs16-home-page .mb-12,
    .hs16-home-page #home-testimonials .mb-12 {
        margin-bottom: 2rem;
    }

    .hs16-home-page .hs16-projects-layout {
        gap: 1.75rem;
    }

    .hs16-home-page .hs16-projects-layout__title {
        margin-bottom: 2rem;
    }

    .hs16-home-page .hs16-projects-grid {
        gap: 2rem;
    }

    .hs16-home-page .hs16-service-row.py-16 {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .hs16-home-page .hs16-home-section .space-y-12 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 2rem;
    }

    .hs16-home-page .hs16-home-section .gap-8 {
        gap: 1.5rem;
    }

    .hs16-home-page .mt-12 {
        margin-top: 2rem;
    }

    .hs16-page-wrap .faq-container .faq-toggle {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .hs16-page-wrap section.hs16-page-section > .mb-16 {
        margin-bottom: 2.5rem;
    }
}

.hs16-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
    color: rgb(var(--color-primary));
}

/* Safe split grids — single column on mobile, 12-col on lg+ */
.hs16-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.hs16-split-grid__label,
.hs16-split-grid__content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 1024px) {
    .hs16-split-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2rem;
    }

    .hs16-split-grid--4-8 .hs16-split-grid__label {
        grid-column: span 4 / span 4;
    }

    .hs16-split-grid--4-8 .hs16-split-grid__content {
        grid-column: span 8 / span 8;
    }

    .hs16-split-grid--5-7 .hs16-split-grid__label {
        grid-column: span 5 / span 5;
    }

    .hs16-split-grid--5-7 .hs16-split-grid__content {
        grid-column: span 7 / span 7;
    }
}

/* Service list row — avoid col-span-12 overflow on single-column mobile grids */
.hs16-service-row {
    min-width: 0;
    max-width: 100%;
}

.hs16-service-row__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    min-width: 0;
}

.hs16-service-row__title,
.hs16-service-row__body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hs16-service-row__title h3,
.hs16-service-row__title a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hs16-service-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    max-width: 100%;
}

.hs16-service-row__tags span {
    min-width: 0;
}

.hs16-service-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
    max-height: 3em;
    margin: 0;
}

.hs16-service-detail {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.hs16-service-detail .grid {
    min-width: 0;
    max-width: 100%;
}

.hs16-service-detail .grid > * {
    min-width: 0;
    max-width: 100%;
}

.hs16-service-detail .service-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hs16-service-detail .service-content img,
.hs16-service-detail .service-content iframe,
.hs16-service-detail .service-content video {
    max-width: 100%;
    height: auto;
}

.hs16-service-detail .service-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .hs16-service-row__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .hs16-service-row__title {
        grid-column: span 7 / span 7;
    }

    .hs16-service-row__body {
        grid-column: span 5 / span 5;
    }

    .hs16-service-row__tags {
        gap: 0.5rem 2rem;
    }
}

/* Client / brand logos — span max-container content, first left / last right */
.hs16-client-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    column-gap: 1.5rem;
    row-gap: 2rem;
}

.hs16-client-logos__item {
    flex: 0 0 auto;
    height: 2rem;
    width: 8rem;
    max-width: calc(50% - 0.75rem);
}

@media (min-width: 640px) {
    .hs16-client-logos__item {
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .hs16-client-logos {
        flex-wrap: nowrap;
        column-gap: 2rem;
    }
}

/* Homepage projects — sidebar + responsive grids */
.hs16-projects-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    min-width: 0;
}

.hs16-projects-layout__sidebar,
.hs16-projects-layout__main {
    min-width: 0;
}

.hs16-projects-layout__cta {
    margin-top: 3rem;
}

.hs16-projects-layout__side-card,
.hs16-projects-right-col {
    display: none;
}

.hs16-project-card {
    min-width: 0;
}

.hs16-project-card__image {
    aspect-ratio: 6 / 7;
    width: 100%;
}

.hs16-project-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5;
}

/* Mobile / tablet: normal responsive grid in main area */
.hs16-projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    min-width: 0;
}

.hs16-projects-grid__item {
    min-width: 0;
}

@media (max-width: 767px) {
    .hs16-projects-layout {
        gap: 1.75rem;
    }

    .hs16-projects-grid {
        gap: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .hs16-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hs16-projects-layout {
        grid-template-columns: 16rem minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }

    .hs16-projects-layout__sidebar {
        display: flex;
        flex-direction: column;
    }
}

/* Large desktop: left column = categories + middle card; right column = 1st + 3rd with huge gap */
@media (min-width: 1280px) {
    .hs16-projects-layout {
        grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.35fr);
        gap: 5rem;
        align-items: start;
    }

    .hs16-projects-layout__sidebar {
        display: flex;
        flex-direction: column;
        align-self: start;
    }

    .hs16-projects-layout__cta {
        margin-top: 3rem;
    }

    .hs16-projects-layout__side-card {
        display: block;
        margin-top: 4rem;
        width: 100%;
        max-width: 24rem;
    }

    .hs16-projects-grid {
        display: none;
    }

    .hs16-projects-right-col {
        display: flex;
        flex-direction: column;
        gap: 10rem;
        min-width: 0;
    }

    .hs16-projects-right-col__item {
        min-width: 0;
        max-width: 24rem;
        width: 100%;
        margin-left: auto;
    }

    .hs16-projects-layout__title {
        width: 100%;
        max-width: 100%;
        text-align: right;
        font-size: 2.25rem;
        line-height: 1.2;
    }
}

/* Portfolio detail — overview split + full-width body */
.hs16-portfolio-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    min-width: 0;
}

.hs16-portfolio-overview__left,
.hs16-portfolio-overview__right,
.hs16-portfolio-overview__body {
    min-width: 0;
}

.hs16-portfolio-overview__left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hs16-portfolio-overview__right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hs16-portfolio-overview__body {
    width: 100%;
}

@media (min-width: 1024px) {
    .hs16-portfolio-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 4rem;
        align-items: start;
    }

    .hs16-portfolio-overview__label {
        grid-column: 1 / -1;
    }

    .hs16-portfolio-overview__left {
        grid-column: 1;
        grid-row: 2;
        justify-content: space-between;
        min-height: 28rem;
        gap: 4rem;
    }

    .hs16-portfolio-overview__right {
        grid-column: 2;
        grid-row: 2;
        gap: 2.5rem;
    }

    .hs16-portfolio-overview__body {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 1rem;
    }
}

/* Portfolio detail — Summernote / CMS rich content */
.hs16-portfolio-overview__body.summernote-content * {
    margin: revert;
}

.hs16-portfolio-overview__body.summernote-content {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.75;
}

.hs16-portfolio-overview__body.summernote-content p,
.hs16-portfolio-overview__body.summernote-content li,
.hs16-portfolio-overview__body.summernote-content td,
.hs16-portfolio-overview__body.summernote-content th,
.hs16-portfolio-overview__body.summernote-content span,
.hs16-portfolio-overview__body.summernote-content div,
.hs16-portfolio-overview__body.summernote-content figcaption {
    color: #374151;
}

.hs16-portfolio-overview__body.summernote-content p {
    margin-bottom: 1rem;
}

.hs16-portfolio-overview__body.summernote-content h1,
.hs16-portfolio-overview__body.summernote-content h2,
.hs16-portfolio-overview__body.summernote-content h3,
.hs16-portfolio-overview__body.summernote-content h4,
.hs16-portfolio-overview__body.summernote-content h5,
.hs16-portfolio-overview__body.summernote-content h6 {
    color: rgb(var(--color-secondary));
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.hs16-portfolio-overview__body.summernote-content h2 {
    font-size: 1.875rem !important;
}

.hs16-portfolio-overview__body.summernote-content h3,
.hs16-portfolio-overview__body.summernote-content h3 span,
.hs16-portfolio-overview__body.summernote-content h3 * {
    font-size: 1.5rem !important;
}

.hs16-portfolio-overview__body.summernote-content h4 {
    font-size: 1.25rem !important;
}

.hs16-portfolio-overview__body.summernote-content a {
    color: rgb(var(--color-secondary));
    text-decoration: underline;
}

.hs16-portfolio-overview__body.summernote-content a:hover {
    color: rgb(var(--color-primary));
}

.hs16-portfolio-overview__body.summernote-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.hs16-portfolio-overview__body.summernote-content ul,
.hs16-portfolio-overview__body.summernote-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.hs16-portfolio-overview__body.summernote-content ul li,
.hs16-portfolio-overview__body.summernote-content ol li {
    margin-bottom: 0.5rem;
}

.hs16-portfolio-overview__body.summernote-content blockquote {
    border-left: 3px solid rgb(var(--color-secondary));
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

.hs16-portfolio-overview__body.summernote-content strong,
.hs16-portfolio-overview__body.summernote-content b {
    font-weight: 600;
    color: #111827;
}

.hs16-portfolio-overview__body.summernote-content hr {
    border-color: #e5e7eb;
    margin: 2rem 0;
}

.hs16-portfolio-overview__body.summernote-content table,
.hs16-portfolio-overview__body.summernote-content .table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.hs16-portfolio-overview__body.summernote-content table td,
.hs16-portfolio-overview__body.summernote-content table th,
.hs16-portfolio-overview__body.summernote-content .table td,
.hs16-portfolio-overview__body.summernote-content .table th {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.hs16-portfolio-overview__body.summernote-content pre,
.hs16-portfolio-overview__body.summernote-content code {
    background: #f3f4f6;
    border-radius: 0.375rem;
}

.hs16-portfolio-overview__body.summernote-content pre {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.hs16-portfolio-overview__body.summernote-content code {
    padding: 0.1rem 0.35rem;
    font-size: 0.875em;
}

.hs16-portfolio-overview__body.summernote-content pre code {
    background: transparent;
    padding: 0;
}

.hs16-portfolio-overview__body.summernote-content figure {
    margin: 1.5rem 0;
}

.hs16-portfolio-overview__body.summernote-content iframe,
.hs16-portfolio-overview__body.summernote-content video {
    max-width: 100%;
    margin: 1.5rem 0;
}

/* AJAX contact / newsletter feedback */
.hs16-ajax-form .ajax-form-message,
.hs16-ajax-form .js-ajax-contact-feedback.ajax-form-message {
    display: none;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    box-sizing: border-box;
}
.hs16-ajax-form .ajax-form-message:not([hidden]),
.hs16-ajax-form .js-ajax-contact-feedback.ajax-form-message:not([hidden]) {
    display: flex;
}
.hs16-ajax-form .ajax-form-message__icon,
.hs16-ajax-form .ajax-form-message svg.ajax-form-message__icon,
.hs16-ajax-form .ajax-form-message svg {
    flex-shrink: 0 !important;
    display: block !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
    max-width: 1.15rem !important;
    max-height: 1.15rem !important;
    margin-top: 0.15rem;
    fill: none !important;
    color: inherit;
}
.hs16-ajax-form .ajax-form-message__text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.hs16-ajax-form .ajax-form-message.is-success {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}
.hs16-ajax-form .ajax-form-message.is-error {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Footer newsletter sits on dark primary — light text, no giant banner beside input */
footer .hs16-ajax-form .ajax-form-message.is-success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(134, 239, 172, 0.45);
}
footer .hs16-ajax-form .ajax-form-message.is-error {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(252, 165, 165, 0.45);
}
footer .hs16-ajax-form .js-ajax-contact-error,
footer .hs16-ajax-form .text-danger {
    margin-top: 0;
    color: #fecaca !important;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
}
footer .hs16-ajax-form .js-ajax-contact-success {
    margin-top: 0;
    color: #86efac !important;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
}
footer .hs16-ajax-form .js-ajax-feedback-slot:not(:empty) {
    margin-top: 0.15rem;
}
footer .hs16-ajax-form .hs16-newsletter-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
}
footer .hs16-ajax-form .hs16-newsletter-field {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}
footer .hs16-ajax-form .hs16-newsletter-submit {
    width: 100%;
    flex-shrink: 0;
    align-self: stretch;
}
@media (min-width: 768px) {
    footer .hs16-ajax-form .hs16-newsletter-row {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    footer .hs16-ajax-form .hs16-newsletter-submit {
        width: auto;
        align-self: center;
    }
}

@media (max-width: 639.98px) {
    .hs16-ajax-form .ajax-form-message__icon,
    .hs16-ajax-form .ajax-form-message svg.ajax-form-message__icon,
    .hs16-ajax-form .ajax-form-message svg {
        width: 1rem !important;
        height: 1rem !important;
        max-width: 1rem !important;
        max-height: 1rem !important;
    }
}

