/* =============================================
   Location Page v2 — Layout & Component Styles
   bowdraper.co.uk
   ============================================= */

/* ---- Image rows ---- */
.l-pg-ctt .img-txt-row {
    align-items: stretch !important;
    overflow: hidden;
}
.l-pg-ctt .img-txt-row-nopadding {
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.l-pg-ctt .img-txt-col-img {
    position: relative;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    align-self: stretch;
    flex-shrink: 0;
}
.l-pg-ctt .img-txt-col:not(.img-txt-col-img) {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}
.l-pg-ctt .img-txt-col-content {
    min-width: 0;
    overflow: hidden;
}
.l-pg-ctt .img-txt-col-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Rounded outer corners on image columns ---- */
.l-pg-ctt .img-txt-row-nopadding.reverse .img-txt-col-img {
    border-radius: 12px 0 0 12px;
}
.l-pg-ctt .img-txt-row-nopadding.reverse- .img-txt-col-img {
    border-radius: 0 12px 12px 0;
}
@media screen and (max-width: 768px) {
    .l-pg-ctt .img-txt-row-nopadding.reverse .img-txt-col-img,
    .l-pg-ctt .img-txt-row-nopadding.reverse- .img-txt-col-img {
        border-radius: 0 !important;
    }
}

/* ---- Welcome to a Clean World statement ---- */
.l-pg-ctt .intro-content .divider-txt .title {
    font-variant: small-caps !important;
    font-size: 2.2em !important;
    letter-spacing: 0.05em !important;
    color: #0d3b72 !important;
}
.l-pg-ctt .intro-content .divider-txt > div {
    width: 40px !important;
    height: 2px !important;
    background: #1a6fc4 !important;
}

/* ---- Tighten intro section ---- */
.l-pg-ctt .intro-content {
    padding: 0 32px !important;
}
.l-pg-ctt .intro-content .divider-txt {
    padding: 16px 0 8px 0 !important;
    margin: 0 !important;
}
.l-pg-ctt .intro-content p {
    margin: 0 0 1rem 0 !important;
}

/* ---- Override justify on all content columns ---- */
.l-pg-ctt .img-txt-col-content p,
.l-pg-ctt .img-txt-col-content li {
    text-align: left !important;
}

/* ---- Normalise h2 weight inside divider-txt ---- */
.l-pg-ctt .divider-txt h2 {
    font-weight: 400 !important;
    font-size: 1.5em !important;
}

/* ---- Fix divider dash when h2 is inside divider-txt ---- */
.l-pg-ctt .divider-txt:has(h2) {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.l-pg-ctt .divider-txt:has(h2) > div {
    flex-shrink: 0;
    display: inline-block !important;
}
.l-pg-ctt .divider-txt:has(h2) h2 {
    margin: 0;
}

/* ---- Contact strip ---- */
.contactstrip.g2s-icons {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}
.contactstrip .g2s-icon {
    flex: 1;
}

/* ---- Full-width sections ---- */
.l-full-section {
    padding: 2.5rem 2rem;
    margin: 1.5rem 0;
    border-top: 1px solid #dde3ea;
    border-bottom: 1px solid #dde3ea;
}
.l-full-section.l-tinted {
    background: #f8fafd;
}
.l-full-section h2 {
    margin-bottom: 0.8rem;
}

/* ---- Core services grid ---- */
.l-core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1.2rem;
}
.l-core-card {
    background: #0d3b72;
    border: 1px solid #0d3b72;
    border-top: 3px solid #1a6fc4;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    text-decoration: none !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s, box-shadow 0.2s;
}
.l-core-card:hover {
    background: #185FA5;
    box-shadow: 0 4px 16px rgba(13, 59, 114, 0.3);
    text-decoration: none !important;
}
.l-core-card * {
    text-decoration: none !important;
    text-align: left !important;
}
.l-core-card-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 0.3em 0;
}
.l-core-card-desc {
    font-family: 'Lato', sans-serif;
    font-size: 1.17em;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}
.l-core-card-link {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #7db8f0;
    margin-top: 0.8em;
    transition: color 0.2s;
}
.l-core-card:hover .l-core-card-link {
    color: #fff;
}

/* ---- Additional services ---- */
.l-addon-label {
    font-family: 'Lato', sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    color: #333333;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #dde3ea;
    text-transform: none;
    letter-spacing: normal;
    display: block;
}
.l-addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.l-addon-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dde3ea;
    border-left: 3px solid #dde3ea;
    text-decoration: none !important;
    color: #333333 !important;
    transition: background 0.15s, border-left-color 0.15s;
}
.l-addon-item:hover {
    background: #f5f9fe;
    border-left-color: #1a6fc4;
    text-decoration: none !important;
}
.l-addon-item * {
    text-decoration: none !important;
    text-align: left !important;
}
.l-addon-item-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.17em;
    font-weight: 400;
    color: #0d3b72;
    line-height: 1.3;
    margin: 0 0 0.3em 0;
}
.l-addon-item-desc {
    font-family: 'Lato', sans-serif;
    font-size: 1.17em;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
    margin: 0;
}

/* ---- Why Choose grid ---- */
.l-why-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 1.2rem;
    width: 100%;
}
.l-why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #dde3ea;
    border-bottom: 3px solid #1a6fc4;
    border-radius: 8px;
}
.l-why-card .material-icons-round {
    font-size: 42px !important;
    color: #1a6fc4;
    display: block;
}
.l-why-card-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.17em;
    font-weight: 400;
    color: #0d3b72;
    line-height: 1.3;
    text-align: center;
}

/* ---- Bottom: form + Bowdraper Difference ---- */
.l-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #dde3ea;
    border-bottom: 1px solid #dde3ea;
}
.l-bottom-col {
    padding: 2.5rem;
}
.l-bottom-col:first-child {
    border-right: 1px solid #dde3ea;
    background: #f8fafd;
}
.l-bottom-col p {
    font-family: 'Lato', sans-serif;
    font-size: 1.17em;
    font-weight: 300;
    line-height: 1.7;
    color: #333333;
    text-align: left !important;
}

/* ---- Accreditations button ---- */
.l-accred-btn {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin-top: 1.5rem !important;
    color: #fff !important;
    width: 100%;
}
.l-accred-btn span {
    color: #fff !important;
}

/* ---- Contact form wrapper ---- */
.l-form-wrap {
    border: 2px solid #1a6fc4;
    border-radius: 6px;
    overflow: hidden;
}
.l-bottom-col .cform-hero {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
.l-bottom-col .cform {
    display: block !important;
    height: auto !important;
    padding: 16px !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}
.l-bottom-col .cform form {
    display: block !important;
    height: auto !important;
    vertical-align: unset !important;
}

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

/* Why grid inside image/text row */
@media screen and (max-width: 1100px) {
    .img-txt-col .l-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media screen and (max-width: 850px) {
    .img-txt-col .l-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Default image 3 (van) position fix ---- */
.l-pg-ctt .img-txt-col-img img[alt="Photo of Welcome to a Clean World"] {
    object-position: center center;
}

/* Bottom row stacks earlier */
@media screen and (max-width: 1024px) {
    .l-bottom-row {
        grid-template-columns: 1fr;
    }
    .l-bottom-col:first-child {
        border-right: none;
        border-bottom: 1px solid #dde3ea;
    }
}

@media screen and (max-width: 768px) {
    .contactstrip.g2s-icons {
        flex-direction: column !important;
    }
    .l-pg-ctt .img-txt-col-img {
        max-height: 300px;
    }
    .l-core-grid {
        grid-template-columns: 1fr;
    }
    .l-addon-grid {
        grid-template-columns: 1fr 1fr;
    }
    .l-why-grid,
    .img-txt-col .l-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media screen and (max-width: 480px) {
    .l-addon-grid {
        grid-template-columns: 1fr;
    }
    .l-why-grid,
    .img-txt-col .l-why-grid {
        grid-template-columns: 1fr;
    }
    .l-full-section {
        padding: 1.5rem 1rem;
    }
    .l-bottom-col {
        padding: 1.5rem;
    }
    .l-pg-ctt .img-txt-col-img {
        max-height: 220px;
    }
}