/* Shared layout for the Tenants and Landlords pages */

.content-section {
    padding: 100px 0;
}

.content-band {
    background-color: #f2f7f7;
}

.content-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: #498687;
    font-weight: 600;
    text-align: center;
}

.section-subtitle {
    color: #4E5663;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    margin: 12px auto 0;
    max-width: 34em;
}

/* Body copy: left-aligned with a comfortable line length (~70 characters) */
.content-text p,
.content-text li {
    color: #4E5663;
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-text p {
    margin: 16px 0 0;
}

.readable-column {
    max-width: 34em;
    margin: 0 auto;
}

/* Image + text rows */
.feature-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.feature-row + .feature-row {
    margin-top: 120px;
}

.feature-row .feature-image img {
    border-radius: 12px;
}

.feature-row .feature-body {
    flex: 1;
    max-width: 36em;
}

.feature-row h2 {
    color: #498687;
    font-weight: 600;
}

@media (min-width: 992px) {
    .feature-row {
        flex-direction: row;
    }
    .feature-row.image-right {
        flex-direction: row-reverse;
    }
}

@media (max-width: 991px) {
    .feature-row h2 {
        text-align: center;
    }
}

/* Short headed items inside a feature row */
.feature-item + .feature-item {
    margin-top: 24px;
}

.feature-item h5 {
    color: #498687;
    font-weight: 600;
    margin: 0;
}

.feature-item p {
    margin-top: 6px !important;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.info-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-top: 4px solid #498687;
    border-radius: 4px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.info-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #498687;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.info-card h4 {
    color: #498687;
    font-weight: 600;
    font-size: 1.3rem;
}

.info-card p {
    color: #4E5663;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 8px 0 0;
}

.info-card .card-action {
    margin-top: auto;
    padding-top: 20px;
}

/* Tick lists */
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    break-inside: avoid;
}

.check-list li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    color: #498687;
}

.check-list-columns {
    max-width: 960px;
    margin: 40px auto 0;
}

@media (min-width: 768px) {
    .check-list-columns .check-list {
        columns: 2;
        column-gap: 48px;
    }
}

/* Buttons */
.btn-contact-page {
    display: inline-block;
    background-color: #498687;
    border: 1px solid #498687;
    color: #ffffff;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.2em;
    padding: 14px 36px;
    text-decoration: none;
}

.btn-contact-page:hover {
    background-color: #ffffff;
    color: #498687;
}

.btn-contact-page.btn-small {
    font-size: 1em;
    padding: 10px 24px;
}

.tagline {
    color: #498687;
    font-weight: 600;
    font-size: 1.4rem;
}

/* Fixed column counts so cards don't leave a ragged last row */
@media (min-width: 768px) {
    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* These sit inside .content-text, so they need the extra specificity to beat its paragraph styles */
.content-text .section-subtitle {
    color: #4E5663;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 12px auto 0;
}

.content-text .tagline {
    color: #498687;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
}

/* Grey subtitle under a heading inside an image + text row */
.content-text .feature-subtitle {
    color: #4E5663;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 8px;
}

/* Heading on the left, copy on the right (stacks on smaller screens) */
.split-intro {
    display: grid;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.split-intro-heading h2 {
    color: #498687;
    font-weight: 600;
    margin: 0;
}

.split-intro-body p:first-child {
    margin-top: 0;
}

@media (min-width: 992px) {
    .split-intro {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
        align-items: start;
    }
}

/* Short headed items in a two-column grid */
.item-grid {
    display: grid;
    gap: 32px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.item-grid .feature-item + .feature-item {
    margin-top: 0;
}

.item-grid .feature-item {
    border-left: 3px solid #498687;
    padding-left: 20px;
}

@media (min-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 56px;
    }
}

/* Centre an odd item left alone on the last row */
@media (min-width: 768px) {
    .item-grid .feature-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 28px);
    }
}
