/* Home hero shares the native service layout and synced contact pattern. */
.ctb-home-hero .ctb-service-intro { padding: 40px; }
.ctb-home-hero .ctb-service-intro > .ctb-eyebrow { margin: 0 0 16px; font: 700 12px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e7b6bc; }
.ctb-home-hero .ctb-service-intro > p:not(.ctb-eyebrow) { font: 400 18px/1.65 Arial, sans-serif; margin: 24px 0 0; }
.ctb-home-hero .ctb-home-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 0; margin: 24px 0; list-style: none; font: 400 14px/1.5 Arial, sans-serif; color: #f6dce1; }
.ctb-home-hero .ctb-home-capabilities li { padding: 0; margin: 0; }
.ctb-home-hero .ctb-service-intro .wp-block-button__link { background: #fff; color: #18181b; font-size: 15px; }
.ctb-home-hero .ctb-service-intro .wp-block-button__link:hover,
.ctb-home-hero .ctb-service-intro .wp-block-button__link:focus-visible { background: #ffe3e8; color: #18181b; }

/* Six core services with expanded copy and direct links. */
.ctb-section.ctb-home-technologies { position: relative; isolation: isolate; color: #fff; background-color: #231f20; background-size: cover; background-position: center; border-block: 1px solid #6b1c25; padding-block: clamp(32px, 4vw, 48px); }
.ctb-home-technologies::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #151517d9, #201c1da8); pointer-events: none; }
.ctb-home-technologies > .ctb-row { text-align: center; margin-block: 0 24px; }
.ctb-home-technologies > .ctb-row h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.5vw, 32px); white-space: normal; }
.ctb-home-technologies > .ctb-home-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.ctb-home-services-grid > .ctb-home-service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; height: 100%; margin: 0; padding: 26px; border: 1px solid #eed9dc; border-radius: 12px; background: #fffffff5; box-shadow: 0 12px 32px #0002; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ctb-home-service-card .ctb-home-service-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; margin: 0 0 18px; padding: 10px; border-radius: 8px; background: #fff0f2; }
.ctb-home-service-card .ctb-home-service-icon img { display: block; width: 28px; height: 28px; }
.ctb-home-service-card > h3 { margin: 0 0 8px; max-width: 100%; color: #18181b; font-size: 22px; line-height: 1.35; white-space: normal; }
.ctb-home-service-card > p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: #3f3f46; }
.ctb-home-service-card > .wp-block-buttons { position: static; margin: auto 0 0; }
.ctb-home-service-card .wp-block-button { position: static; }
.ctb-home-service-card .wp-block-button__link { position: static; padding: 10px 16px; border-radius: 5px; font-size: 14px; line-height: 1.35; }
.ctb-home-service-card > .wp-block-list { margin: 0 0 24px; padding-left: 20px; color: #3f3f46; font-size: 15px; line-height: 1.65; }
.ctb-home-service-card > .wp-block-list li + li { margin-top: 7px; }
.ctb-home-service-card > .wp-block-list li::marker { color: #ad1b2e; }
/* The single native button link covers the card, including its empty space. */
.ctb-home-service-card .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.ctb-home-service-card:hover,
.ctb-home-service-card:focus-within { transform: translateY(-4px); background: #fbf3f4; border-color: #cf6e7a; box-shadow: 0 18px 38px #0004; }
.ctb-home-service-card:focus-within { outline: 3px solid #cf6e7a; outline-offset: 4px; }
.ctb-home-service-card:hover .wp-block-button__link,
.ctb-home-service-card:focus-within .wp-block-button__link { background: #ad1b2e; color: #fff; }

@media (max-width: 999px) { .ctb-home-technologies > .ctb-home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
 .ctb-home-hero .ctb-service-intro { padding: 28px 24px; }
 .ctb-home-hero .ctb-service-intro > p:not(.ctb-eyebrow) { font-size: 17px; }
}
@media (max-width: 599px) {
 .ctb-home-technologies > .ctb-home-services-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .ctb-home-technologies > .ctb-row h2 { font-size: 24px; }
 .ctb-home-hero .ctb-home-capabilities { grid-template-columns: 1fr; }
 .ctb-home-services-grid > .ctb-home-service-card { padding: 24px; }
 .ctb-home-service-card > h3 { font-size: 20px; }
 .ctb-home-service-card > p { font-size: 16px; }
 .ctb-home-service-card .wp-block-button__link { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .ctb-home-services-grid > .ctb-home-service-card { transition: none; }
 .ctb-home-service-card:hover,
 .ctb-home-service-card:focus-within { transform: none; }
}

/* The WordPress feature uses the midnight blue from the home hero artwork. */
.ctb-home-wordpress-feature :where(h2, p) { color: inherit; }
.ctb-home-wordpress-feature .wp-block-button__link { background: #fff; color: #18181b; }
.ctb-home-wordpress-feature .wp-block-button__link:hover,
.ctb-home-wordpress-feature .wp-block-button__link:focus-visible { background: #ffe3e8; color: #18181b; }

/* Reuse the original technology banner; extra repeats fill wider screens. */
.ctb-home-tech-strip { width: 100%; max-width: none; height: clamp(48px, 5.25vw, 100px); margin: 0; padding: 0; background-size: auto 100% !important; background-repeat: repeat-x !important; background-position: center !important; }

/* Keep the three homepage client reviews aligned as their quotation lengths vary. */
.ctb-home-testimonials .ctb-home-testimonial-grid { align-items: stretch !important; }
.ctb-home-testimonial-grid > .wp-block-column > .ctb-card { height: 100%; }
.ctb-home-testimonial-grid .ctb-card > .wp-block-image {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 180px;
 margin: 0 0 24px;
}
.ctb-home-testimonial-grid .ctb-card > .wp-block-image img {
 width: auto;
 max-width: 100%;
 max-height: 180px;
 object-fit: contain;
}
.ctb-home-testimonial-grid .ctb-card h3 { font-size: 21px; line-height: 1.35; }
.ctb-home-testimonial-grid .ctb-card p { font-size: 16px; line-height: 1.7; }
.ctb-home-testimonial-grid .ctb-testimonial-attribution { font-weight: 700; }
