/* ═══ Conversion Types — compact premium editorial ═══ */

.ct-pattern {
    position: relative;
    isolation: isolate;
}

.ct-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .024;
    background-image:
        linear-gradient(rgba(7, 31, 58, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 31, 58, .55) 1px, transparent 1px);
    background-size: 56px 56px;
}

.ct-pattern > * {
    position: relative;
    z-index: 1;
}

.ct-rule {
    height: 1px;
    max-width: min(var(--wrap-hero), 100% - 48px);
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, var(--warm-mid) 20%, var(--warm-mid) 80%, transparent);
}

/* ── Section typography ── */
.ct-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.25rem;
}

.ct-section-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--heading);
}

.ct-section-intro {
    margin: .875rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.ct-hero__trust {
    max-width: 44rem;
}

/* ── Conversion type sections ── */
.ct-type {
    padding: clamp(2.75rem, 5vw, 3.75rem) 0;
    background: var(--white);
}

.ct-type--reverse {
    background: var(--warm);
}

.ct-type__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
}

.ct-type--reverse .ct-type__layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.ct-type--reverse .ct-type__media { order: 2; }
.ct-type--reverse .ct-type__copy { order: 1; }

.ct-type__media {
    border-radius: 22px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 16px 44px rgba(7, 31, 58, .11);
    transition: box-shadow .4s ease;
}

.ct-type:hover .ct-type__media {
    box-shadow: 0 22px 52px rgba(7, 31, 58, .15);
}

.ct-type__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.25, .46, .45, .94);
}

.ct-type:hover .ct-type__media img {
    transform: scale(1.035);
}

.ct-type__index {
    display: block;
    margin-bottom: .75rem;
    font-family: var(--font-head);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-blue);
}

.ct-type__title {
    margin: 0 0 1rem;
    font-family: var(--font-head);
    font-size: clamp(1.625rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--heading);
}

.ct-type__text {
    margin: 0 0 1.375rem;
    max-width: 30rem;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--text);
}

.ct-type__benefits {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.ct-type__benefits li {
    position: relative;
    padding-left: 1.375rem;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--heading);
}

.ct-type__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: 800;
}

.ct-type__link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-head);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.ct-type__link:hover {
    color: var(--navy);
    border-bottom-color: var(--brand-red);
}

/* ── Comparison table ── */
.ct-compare {
    padding: clamp(3rem, 5.5vw, 4.25rem) 0;
    background: var(--warm);
}

.ct-compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid rgba(7, 31, 58, .07);
    box-shadow: 0 14px 40px rgba(7, 31, 58, .07);
}

.ct-compare__table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9375rem;
    line-height: 1.55;
}

.ct-compare__table thead {
    background: var(--navy);
    color: var(--heading-on-dark);
}

.ct-compare__table th,
.ct-compare__table td {
    padding: 1.25rem 1.375rem;
    text-align: left;
    border-bottom: 1px solid var(--warm-mid);
    vertical-align: top;
}

.ct-compare__table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-family: var(--font-head);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: none;
}

.ct-compare__table thead th:first-child {
    left: 0;
    z-index: 3;
}

.ct-compare__table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    font-family: var(--font-head);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    box-shadow: 4px 0 12px rgba(7, 31, 58, .04);
    white-space: nowrap;
}

.ct-compare__table tbody tr:hover td,
.ct-compare__table tbody tr:hover th[scope="row"] {
    background: rgba(7, 31, 58, .02);
}

.ct-compare__table tbody tr:last-child th,
.ct-compare__table tbody tr:last-child td {
    border-bottom: none;
}

.ct-compare__table td:nth-child(5) {
    font-weight: 700;
    color: var(--navy);
}

/* ── Benefits ── */
.ct-why {
    padding: clamp(3rem, 5.5vw, 4.25rem) 0;
    background: var(--white);
}

.ct-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ct-why__card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 1.75rem 1.375rem;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid rgba(7, 31, 58, .07);
    box-shadow: 0 10px 32px rgba(7, 31, 58, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.ct-why__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(7, 31, 58, .1);
}

.ct-why__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    margin-bottom: 1.125rem;
    border-radius: 14px;
    background: var(--navy);
    color: var(--brand-red);
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ct-why__icon--value::before { content: '↑'; }
.ct-why__icon--bedroom::before { content: '⌂'; }
.ct-why__icon--move::before { content: '✓'; }
.ct-why__icon--space::before { content: '◫'; }

.ct-why__card h3 {
    margin: 0 0 .75rem;
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--heading);
}

.ct-why__card p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── Planning accordion ── */
.ct-planning {
    padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(3.25rem, 5vw, 4rem);
    background: var(--navy);
    color: var(--text-on-dark);
}

.ct-planning .ct-section-title {
    color: var(--heading-on-dark);
}

.ct-planning .ct-section-intro {
    color: rgba(255, 255, 255, .76);
}

.ct-accordion {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.ct-accordion__item {
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease;
}

.ct-accordion__item[open] {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .16);
}

.ct-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.625rem;
    font-family: var(--font-head);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-on-dark);
    cursor: pointer;
    list-style: none;
}

.ct-accordion__trigger::-webkit-details-marker {
    display: none;
}

.ct-accordion__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    position: relative;
    transition: background .25s ease;
}

.ct-accordion__icon::before,
.ct-accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}

.ct-accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.ct-accordion__item[open] .ct-accordion__icon {
    background: var(--brand-red);
}

.ct-accordion__item[open] .ct-accordion__icon::after {
    opacity: 0;
}

.ct-accordion__panel {
    padding: 0 1.625rem 1.625rem;
}

.ct-accordion__panel p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, .84);
}

.ct-planning__cta {
    margin: 2rem auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ct-planning__cta a {
    color: var(--heading-on-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: color .2s ease, border-color .2s ease;
}

.ct-planning__cta a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.ct-planning__cta span {
    margin: 0 .75rem;
    opacity: .4;
}

/* ── Footer (this page) ── */
body:has(.conversion-types-page) .site-footer__main {
    padding: clamp(2.5rem, 4.5vw, 3.25rem) min(32px, 4vw) clamp(2rem, 3.5vw, 2.75rem);
}

body:has(.conversion-types-page) .site-footer__logo img {
    height: 100px;
}

body:has(.conversion-types-page) .site-footer__desc {
    margin-bottom: 1rem;
    font-size: .9375rem;
    line-height: 1.65;
}

body:has(.conversion-types-page) .site-footer__heading {
    margin-bottom: 1rem;
    font-size: .6875rem;
    letter-spacing: .14em;
}

body:has(.conversion-types-page) .site-footer__links li {
    margin-bottom: .5rem;
}

body:has(.conversion-types-page) .site-footer__links a,
body:has(.conversion-types-page) .site-footer__address,
body:has(.conversion-types-page) .site-footer__contact-list a {
    font-size: .9375rem;
}

body:has(.conversion-types-page) .site-footer__trust-bar {
    padding: .75rem min(32px, 4vw);
}

body:has(.conversion-types-page) .site-footer__trust-bar-inner {
    font-size: .8125rem;
}

body:has(.conversion-types-page) .site-footer__legal {
    padding: .875rem min(32px, 4vw);
}

body:has(.conversion-types-page) .site-footer__legal p {
    font-size: .8125rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ct-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .ct-type__layout,
    .ct-type--reverse .ct-type__layout {
        grid-template-columns: 1fr;
    }

    .ct-type--reverse .ct-type__media,
    .ct-type--reverse .ct-type__copy {
        order: unset;
    }
}

@media (max-width: 768px) {
    .ct-why__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .ct-planning__cta span {
        display: none;
    }

    .ct-planning__cta a {
        display: block;
        margin-top: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .conversion-types-page .page-hero--parallax .page-hero__photo,
    .ct-type:hover .ct-type__media img,
    .ct-why__card:hover {
        transform: none !important;
    }
}
