/* ==========================================================================
   Our Outstanding Services  (views/index.hbs, section.services)

   Three icon medallions joined by a dotted gold line, on a very light cream
   band. Centred serif titles, short text underneath.
   ========================================================================== */

.services {
    --navy: #111d42;
    --gold: #d1a24f;
    --gold-text: #8a6217;       /* gold dark enough to read as text on cream */
    --ink-soft: #4b5472;
    --band: #fbf8f1;

    position: relative;
    padding: 100px 0 108px;
    background: var(--band);
    font-family: 'Raleway', 'PT Sans', Arial, sans-serif;
}

.services h2,
.services h3,
.services p {
    margin: 0;
    text-transform: none;
}


/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */

.services__head {
    margin-bottom: 76px;
    text-align: center;
}

.services__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.services__eyebrow::before,
.services__eyebrow::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.services__title {
    margin-top: 14px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}


/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
}

/* dotted line running behind the medallions, from the first to the last */
.services__grid::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 16.66%;
    right: 16.66%;
    border-top: 2px dotted rgba(209, 162, 79, .85);
}

.service {
    position: relative;
    text-align: center;
}

.service__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 30px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 34px;
    /* the band-coloured halo cuts the dotted line short of the circle */
    box-shadow: 0 0 0 10px var(--band), 0 18px 36px rgba(17, 29, 66, .12);
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.service__title {
    margin-bottom: 14px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

.service__text {
    max-width: 330px;
    margin: 0 auto !important;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
}

@media (hover: hover) {
    .service:hover .service__icon {
        background: var(--gold);
        transform: translateY(-4px);
    }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet and phone: stacked, so there is no line to run across. */
@media (max-width: 991px) {
    .services {
        padding: 76px 0 84px;
    }

    .services__head {
        margin-bottom: 56px;
    }

    .services__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
        max-width: 520px;
        margin: 0 auto;
    }

    .services__grid::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .services {
        padding: 60px 0 68px;
    }

    .services__eyebrow {
        font-size: 11px;
        letter-spacing: .24em;
    }

    .service__icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
        font-size: 30px;
    }

    .service__title {
        font-size: 23px;
    }

    .service__text {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service__icon {
        transition: none;
    }
}
