/* Home (views/index.html) and About (views/about.html). Builds on service.css, which must load first. */

/* ===#BANDS=== Full-width white / tint / navy bands; each band brings its own top and bottom space */
.index-wrapper {
    padding-bottom: 0;
}

.home-band {
    padding: 64px 0;
}

.home-band--tint {
    background: var(--tint);
}

.home-band .svc-section {
    padding-top: 0;
}

.home-band .svc-section + .svc-section {
    padding-top: 64px;
}

@media (min-width: 992px) {
    .home-band {
        padding: 96px 0;
    }

    .home-band .svc-section + .svc-section {
        padding-top: 88px;
    }
}

.home-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* "Most requested" tag */
.home-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

/* ===#WHY T&T=== */
.home-why {
    display: grid;
    gap: 32px;
    align-items: start;
}

.home-why .btn {
    margin-top: 8px;
}

.home-creds {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-creds li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink);
}

.home-creds strong {
    font-size: 18px;
    line-height: 26px;
    color: var(--navy);
}

@media (min-width: 576px) {
    .home-creds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-why {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 56px;
    }
}

/* ===#COMPARISON TABLES=== White panel on the tint band; separate borders so the corners can round */
.home-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink);
}

.home-table thead th {
    padding: 0 16px 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
}

.home-table tbody th,
.home-table td {
    padding: 22px 16px 22px 0;
    border-top: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.home-table tbody th {
    font-weight: 400;
}

.home-table__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

.home-table__name:hover {
    text-decoration: underline;
}

.home-table__sub {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

.home-table td[data-label] {
    font-weight: 600;
    color: var(--navy);
}

.home-table__benefits {
    margin: 0;
    padding-left: 18px;
}

.home-table__benefits li + li {
    margin-top: 6px;
}

.home-table__more {
    color: var(--red);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.home-table__more:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .home-table {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .home-table thead th {
        padding-top: 20px;
    }

    .home-table tr > :first-child { padding-left: 28px; }
    .home-table tr > :last-child { padding-right: 28px; }
    .home-table tbody th { width: 24%; }
    .home-table td[data-label] { width: 17%; }
    .home-table td:last-child { width: 1%; }
}

/* Phones and tablets: each row becomes a card with labelled facts */
@media (max-width: 991px) {
    .home-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .home-table,
    .home-table tbody {
        display: block;
    }

    .home-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .home-table tr + tr {
        margin-top: 16px;
    }

    .home-table tbody th,
    .home-table td {
        padding: 0;
        border: 0;
    }

    .home-table tbody th,
    .home-table td:nth-child(4),
    .home-table td:last-child {
        grid-column: 1 / -1;
    }

    .home-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 13px;
        font-weight: 400;
        color: var(--muted);
    }
}

/* How we work: the service-page steps, laid out in a row on wide screens */
@media (min-width: 992px) {
    .home-steps {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .home-steps li {
        padding: 52px 0 0;
    }

    .home-steps li:not(:last-child):after {
        left: 48px;
        right: -24px;
        top: 17px;
        bottom: auto;
        width: auto;
        height: 2px;
    }
}

/* ===#ADVISOR PANEL=== (styles in service.css) This band adds no space of its own; the bands around it do */
.home-band--advisor {
    padding: 0;
}

.home-band--advisor .advisor {
    margin-top: 0;
}

@media (min-width: 992px) {
    .home-band--advisor .advisor {
        margin-top: 24px;
    }
}

/* ===#ABOUT PAGE=== */
.home-intro .svc-text {
    max-width: 760px;
}

/* Offices, inside the navy enquiry band */
.about-contact {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none;
    font-size: 15px;
    line-height: 22px;
}

.about-contact li {
    display: flex;
    gap: 12px;
}

.about-contact span {
    flex: 0 0 96px;
    color: rgba(255, 255, 255, 0.7);
}

.about-contact a,
.about-address a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.about-contact a:hover,
.about-address a:hover {
    text-decoration: underline;
}

.about-address {
    margin: 20px 0 16px; /* space above the form when they stack on phones */
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.about-address strong {
    color: #fff;
}

