/* Where GLS styles go:
   - custom.css: colour and font tokens (:root), header, footer and site-wide resets. Loads on every page.
   - Components.css (this file): pieces used on more than one page; each section names the pages using it.
   - One file per page (AboutUs.css, PropertyDetail.css, ...) for styles only that page uses.
   - Link stylesheets from the page's @section Styles, never from a partial (that loads them in the body).
   - Prefix a rule with .page-theme only when it has to beat the old compiled CSS (Property.css, Home.css). */

.page-theme {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

    /* :where() keeps these at single-class weight, so every component below can override them */
    .page-theme :where(h1, h2, h3) {
        margin: 0;
        font-family: var(--font-display);
        font-weight: 600;
        color: var(--ink);
        text-wrap: balance;
    }

    .page-theme :where(a, button, summary):focus:not(:focus-visible) {
        outline: none !important;
    }

    .page-theme :where(a, button, summary):focus-visible {
        outline: 3px solid var(--accent) !important;
        outline-offset: 3px;
    }

/* custom.css removes .container padding above 992px, which would put wide pages against the screen edge */
.container-wide {
    max-width: 1340px;
    padding-inline: 24px;
}

@media (max-width: 767px) {
    .container-wide {
        padding-inline: 15px;
    }
}

.content-section {
    padding-block: 72px;
}

.content-section-tinted {
    background: var(--primary-tint);
}

.eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.section-head {
    display: grid;
    gap: 10px;
    max-width: 640px;
    margin-bottom: 36px;
}

    .section-head p {
        margin: 0;
        color: var(--ink-mid);
    }

.section-head-center {
    margin-inline: auto;
    justify-items: center;
    text-align: center;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

    .action-btn:hover {
        border-color: var(--primary-dark);
        background: var(--primary-dark);
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.action-btn-accent {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

    .action-btn-accent:hover,
    .action-btn-ghost:hover {
        border-color: #fff;
        background: #fff;
        color: var(--primary-dark);
    }

.action-btn-ghost {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
}

.action-btn-outline {
    background: transparent;
    color: var(--primary);
}

    .action-btn-outline:hover {
        border-color: var(--primary);
        background: var(--primary);
    }

.action-btn-block {
    justify-content: center;
    width: 100%;
}

.icon-badge {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 1.25rem;
}

.icon-badge-light {
    background: var(--surface);
}

@media (max-width: 767px) {
    .content-section {
        padding-block: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-theme *,
    .page-theme *::before,
    .page-theme *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Page banner: full-width photo with centered text (About Us, Referral, Corporate, State, City) ---------- */
.page-banner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
    overflow: hidden;
    text-align: center;
}

    .page-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 38, 42, .45) 0%, rgba(10, 38, 42, .62) 60%, rgba(10, 38, 42, .78) 100%);
    }

    .page-banner .eyebrow {
        color: var(--accent);
    }

    .page-banner .btn-row {
        justify-content: center;
        margin-top: 6px;
    }

.page-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 1000px;
    padding: 80px 16px 120px;
    color: #fff;
    animation: banner-rise .7s ease both;
}

.page-banner-title {
    font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: #fff;
}

.page-banner-lead {
    max-width: 680px;
    margin: 0;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .88);
}

@keyframes banner-rise {
    from {
        opacity: .001;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Summary card: white card overlapping the bottom of a banner ---------- */
.summary-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -72px;
    padding: 34px 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

    .summary-card p {
        margin: 0;
        font-size: 1.02rem;
        color: var(--ink-mid);
    }

        .summary-card p + p {
            margin-top: 10px;
        }

/* ---------- Text beside an image ---------- */
.split-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.split-media-reverse .media-frame {
    order: -1;
}

.split-media-text {
    display: grid;
    gap: 16px;
    min-width: 0;
}

    .split-media-text p {
        margin: 0;
        color: var(--ink-mid);
    }

.media-frame {
    margin: 0;
}

    .media-frame img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3.4;
        object-fit: cover;
        border-radius: var(--radius-lg);
    }

/* ---------- Numbered steps joined by a dashed line; the ring matches the section background ---------- */
.step-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

    .step-list::before {
        content: "";
        position: absolute;
        top: 23px;
        left: 24px;
        right: 24px;
        border-top: 2px dashed #cfdcda;
    }

.step {
    position: relative;
    display: grid;
    gap: 10px;
    counter-increment: step;
}

    .step::before {
        content: counter(step, decimal-leading-zero);
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: .95rem;
        font-weight: 600;
        box-shadow: 0 0 0 8px var(--surface);
    }

.content-section-tinted .step::before {
    box-shadow: 0 0 0 8px var(--primary-tint);
}

.step h3 {
    margin-top: 8px;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-mid);
}

/* ---------- CTA panel: full-width dark band ---------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding-block: 72px;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

    .cta-panel::before {
        content: "";
        position: absolute;
        right: -120px;
        bottom: -180px;
        width: 400px;
        height: 400px;
        border: 60px solid rgba(171, 200, 55, .1);
        border-radius: 50%;
    }

    .cta-panel h2 {
        font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
        letter-spacing: -.02em;
        color: #fff;
    }

    .cta-panel p {
        margin: 10px 0 0;
        color: rgba(255, 255, 255, .85);
    }

.cta-panel-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 32px;
    align-items: center;
}

.cta-panel-contact {
    font-size: .9rem;
}

    .cta-panel-contact a {
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }

/* ---------- Small pieces ---------- */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

    .arrow-link i {
        transition: transform .2s;
    }

    a:hover .arrow-link i,
    .arrow-link:hover i {
        transform: translateX(4px);
    }

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 1023px) {
    .split-media {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .split-media-reverse .media-frame {
        order: 0;
    }

    .cta-panel-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .page-banner {
        min-height: 0;
    }

    .page-banner-content {
        padding: 64px 16px 96px;
    }

    .summary-card {
        flex-direction: column;
        margin-top: -56px;
        padding: 24px 22px;
    }

    .step-list {
        grid-template-columns: 1fr;
    }

        .step-list::before {
            top: 24px;
            bottom: 24px;
            left: 23px;
            right: auto;
            border-top: 0;
            border-left: 2px dashed #cfdcda;
        }

    .step {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 18px;
    }

        .step::before {
            grid-row: span 2;
        }

        .step h3 {
            margin-top: 10px;
        }

    .cta-panel {
        padding-block: 52px;
    }
}

/* ---------- Round arrow that fills when its card is hovered (post cards, location tiles) ---------- */
.read-more-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: .8rem;
    transition: background .25s, color .25s, transform .25s;
}

a:hover .read-more-icon {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

/* ---------- Round icon button (share, copy link, close) ---------- */
.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-mid);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

    .icon-btn:hover {
        border-color: var(--primary);
        background: var(--primary);
        color: #fff;
    }

    .icon-btn.done {
        border-color: var(--accent);
        background: var(--accent);
        color: var(--ink);
    }


/* ---------- Forms (Contact, Referral, Corporate) ---------- */
.form-card {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-card-title {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.form-card-sub {
    margin: 0 0 24px;
    font-size: .95rem;
    color: var(--ink-mid);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-legend {
    grid-column: 1 / -1;
    padding-top: 6px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.form-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.form-field-wide {
    grid-column: span 2;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-label {
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
}

/* height/margin reset: GLS custom.css sizes form inputs on some pages */
.form-input {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfdad9;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}

    .form-input::placeholder {
        color: #9aa5a6;
    }

    .form-input:focus {
        border-color: var(--primary);
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(24, 96, 104, .15);
    }

select.form-input {
    padding-right: 42px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23186068' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    appearance: none;
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

/* ---------- Photo tiles linking to a state or city (Corporate, Locations) ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tile-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

    .tile-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(10, 38, 42, 0) 35%, rgba(10, 38, 42, .85) 100%);
    }

    .tile-card img {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .tile-card:hover {
        color: #fff;
        text-decoration: none;
    }

        .tile-card:hover img {
            transform: scale(1.06);
        }

    .tile-card .read-more-icon {
        border-color: rgba(255, 255, 255, .7);
        color: #fff;
    }

    .tile-card:hover .read-more-icon {
        border-color: var(--accent);
        background: var(--accent);
        color: var(--ink);
    }

.tile-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 20px 22px;
}

.tile-card-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.tile-grid-4 .tile-card-body {
    padding: 16px 18px;
}

.tile-grid-4 .tile-card-name {
    font-size: 1.2rem;
}

/* ---------- List with a tick before each item (Referral terms, property features) ---------- */
.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .94rem;
    color: var(--ink-mid);
}

    .check-list li {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
        margin: 0;
    }

        .check-list li::before {
            content: "";
            width: 20px;
            height: 20px;
            margin-top: 3px;
            border-radius: 50%;
            background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23186068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
        }

@media (max-width: 1023px) {
    .tile-grid,
    .tile-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .form-card {
        padding: 24px 20px;
    }

    .form-grid,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .tile-grid,
    .tile-grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ---------- Shorter banner, for pages without a card overlapping it (Referral, State, City) ---------- */
.page-banner-short {
    min-height: 300px;
}

    .page-banner-short .page-banner-content {
        gap: 10px;
        padding: 56px 16px;
    }

/* Section that sits right under a banner or summary card */
.content-section-snug {
    padding-top: 48px;
}

/* ---------- Building cards (city page, similar properties) ---------- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* The title link stretches over the whole card; .raise-link keeps the availability button and amenity tooltips above it */
.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

    .listing-card:hover {
        border-color: transparent;
        box-shadow: var(--shadow);
        transform: translateY(-4px);
    }

.listing-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--primary-tint);
}

    .listing-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.listing-card:hover .listing-card-media img {
    transform: scale(1.05);
}

.listing-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
    padding: 16px 18px 18px;
}

    .listing-card-body > .amenity-row {
        margin-top: auto;
        padding-top: 8px;
    }

.listing-card-title {
    overflow: hidden;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .listing-card-title a {
        color: inherit;
        text-decoration: none;
    }

/* Whole card clicks through to the property. Defined here because the home page's
   customBootstrap_HOME.css leaves out Bootstrap's .stretched-link */
.listing-card .stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.listing-card:hover .listing-card-title {
    color: var(--primary);
}

.listing-card-address {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    font-size: .85rem;
    color: var(--ink-mid);
}

    .listing-card-address i {
        flex-shrink: 0;
        color: var(--primary);
    }

    .listing-card-address span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Price and the availability button share one line height so every footer is the same height */
.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* Amenity icons in small tinted squares */
.amenity-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

    .amenity-row li {
        display: grid;
        place-items: center;
        flex: 1 1 0;
        min-width: 0;
        max-width: 28px;
        aspect-ratio: 1;
        margin: 0;
        border-radius: 8px;
        background: var(--primary-tint);
        color: var(--primary);
        font-size: .75rem;
    }

.price-line {
    flex-shrink: 0;
    font-size: .82rem;
    line-height: 28px;
    color: var(--ink-light);
    white-space: nowrap;
}

    .price-line strong {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1;
        color: var(--ink);
    }

.text-btn {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: .04em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.raise-link {
    position: relative;
    z-index: 2;
}

@media (max-width: 1023px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Chips (blog categories, property photo filter) ---------- */
.chip-list {
    display: flex;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 2px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

    .chip-list::-webkit-scrollbar {
        display: none;
    }

.chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s, color .2s, background .2s;
}

button.chip {
    font-family: inherit;
    cursor: pointer;
}

    a.chip:hover,
    button.chip:hover {
        border-color: var(--primary);
        color: var(--primary);
        text-decoration: none;
    }

/* .btn-selected is the class ImageSlider's photo filter toggles */
.chip-highlight,
a.chip-highlight:hover,
.chip.btn-selected,
.chip.btn-selected:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.action-btn-sm {
    padding: 9px 18px;
    font-size: .85rem;
}

/* ---------- Photo panels: a photo card with a teal fade and white text at the bottom (image set inline) ---------- */
.photo-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.photo-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 32px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

    .photo-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(15, 63, 69, 0) 35%, rgba(15, 63, 69, .7) 100%);
    }

    .photo-panel .check-list {
        color: #fff;
    }

    .photo-panel .check-list,
    .photo-panel-title {
        text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }

.photo-panel-title {
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: #fff;
}

@media (max-width: 767px) {
    .photo-panel-grid {
        grid-template-columns: 1fr;
    }

    .photo-panel {
        min-height: 300px;
        padding: 24px;
    }
}

/* ---------- Tagline band: a headline with a short subline beside it, on white ---------- */
.tagline-band {
    padding-block: 48px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

    .tagline-band .container {
        display: grid;
        gap: 12px;
        justify-items: start;
    }

.tagline-band-title {
    display: grid;
    gap: 4px;
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
}

/* medium line */
.tagline-band-lead {
    font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--primary);
}

/* big line */
.tagline-band-main {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
}

/* small line */
.tagline-band-text {
    margin: 4px 0 0;
    font-size: .9rem;
    color: var(--ink-mid);
}

@media (max-width: 767px) {
    .tagline-band {
        padding-block: 36px;
    }
}

/* ---------- Help card (Shared/Help.cshtml) ---------- */
.page-theme .help {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
}

    .page-theme .help h6 {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .page-theme .help p {
        font-weight: 400 !important;
        line-height: 1.6;
    }

.page-theme .btn-touch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .page-theme .btn-touch:hover {
        background: #fff;
        color: var(--primary-dark);
        text-decoration: none;
    }

    /* the caret's ml-2; gap spaces it now (the FA kit may swap the <i> for an <svg>, so no element selector) */
    .page-theme .btn-touch > * {
        margin-left: 0 !important;
    }

/* ---------- FAQ list (Shared/_Faq.cshtml: FAQs, About Us, Location, city page, blog posts) ---------- */
.faq-layout {
    display: grid;
    gap: 28px;
}

    .faq-layout + .faq-layout {
        margin-top: 64px;
    }

.faq-title {
    text-align: center;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}

    .faq-item[open] {
        border-color: transparent;
        box-shadow: var(--shadow);
    }

    .faq-item summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        padding: 22px 28px;
        list-style: none;
        cursor: pointer;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.45;
        color: var(--ink);
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary:hover {
            color: var(--primary);
        }

        .faq-item summary::after {
            content: "";
            flex-shrink: 0;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23186068' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
            transition: transform .25s, background-color .25s;
        }

    .faq-item[open] summary::after {
        background-color: var(--accent);
        transform: rotate(45deg);
    }

.faq-answer {
    max-width: 980px;
    padding: 0 28px 24px;
    color: var(--ink-mid);
}

    .faq-answer p {
        margin: 0;
    }

        .faq-answer p + p {
            margin-top: 10px;
        }

    .faq-answer a {
        color: var(--primary);
        text-decoration: underline;
    }

    .faq-answer img {
        max-width: 100%;
        height: auto;
    }

@media (max-width: 767px) {
    .faq-layout + .faq-layout {
        margin-top: 48px;
    }

    .faq-item summary {
        padding: 18px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 18px 20px;
    }
}


/* ---------- Feature cards: icon, heading, text (About Us; as links on the 404 page) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}



.feature-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

    .feature-card:hover {
        border-color: transparent;
        box-shadow: var(--shadow);
        transform: translateY(-4px);
    }

    .feature-card h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .feature-card p {
        margin: 0;
        font-size: .95rem;
        color: var(--ink-mid);
    }

/* Linked card: the text row takes the spare height so every .read-more-icon sits on the bottom edge */
a.feature-card,
a.feature-card:hover {
    grid-template-rows: auto auto 1fr auto;
    color: inherit;
    text-decoration: none;
}

    a.feature-card:hover h3 {
        color: var(--primary);
    }

@media (max-width: 1023px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
