/* =========================================
   Plant Hire - Global Typography & Images
   ========================================= */


/* =========================================
   Base Typography
   ========================================= */

body {
    color: var(--dark-color);
    background-color: var(--light-color);

    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}


/* =========================================
   Headings
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--dark-color);

    font-weight: 700;
    line-height: 1.25;
}


/* H1 */

h1 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.2rem);
}


/* H2 */

h2 {
    position: relative;

    margin-bottom: 22px;

    font-size: clamp(1.7rem, 3vw, 1.3rem);
}


/* H3 */

h3 {
    margin-bottom: 18px;
    font-size: clamp(1.4rem, 2.5vw, 1.1rem);
}


/* H4 */

h4 {
    margin-bottom: 15px;
    font-size: 1.05rem;
}


/* H5 */

h5 {
    margin-bottom: 12px;
    font-size: 1.02rem;
}


/* H6 */

h6 {
    margin-bottom: 10px;
    font-size: 1rem;
}


/* =========================================
   Section Heading Accent
   ========================================= */

h2.heading-accent,
h3.heading-accent {
    position: relative;
}

h2.heading-accent::after,
h3.heading-accent::after {
    content: "";

    display: block;

    width: 50px;
    height: 3px;

    margin-top: 14px;

    background-color: var(--primary-color);
}


/* =========================================
   Paragraphs
   ========================================= */

p {
    margin-top: 0;
    margin-bottom: 18px;

    color: #444444;

    font-size: 1rem;
    line-height: 1.75;
}

p:last-child {
    margin-bottom: 0;
}


/* =========================================
   Lead / Intro Text
   ========================================= */

.lead,
.intro-text {
    color: #555555;

    font-size: 1.15rem;
    line-height: 1.75;
    font-weight: 400;
}


/* =========================================
   Strong / Emphasis
   ========================================= */

strong,
b {
    color: var(--dark-color);
    font-weight: 700;
}

h1 strong,
h1 b {
    color: var(--dark-color);
    font-weight: 700;
    color: var(--primary-color);
}

/* =========================================
   Links
   ========================================= */

main a,
.entry-content a,
.content-area a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

main a:hover,
.entry-content a:hover,
.content-area a:hover {
    color: var(--secondary-color);
}


/* =========================================
   Lists
   ========================================= */

.entry-content ul,
.entry-content ol,
.content-area ul,
.content-area ol {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 25px;
}

.entry-content li,
.content-area li {
    margin-bottom: 8px;
    line-height: 1.65;
}


/* Custom unordered list */

.entry-content ul:not(.wp-block-list) li::marker,
.content-area ul:not(.wp-block-list) li::marker {
    color: var(--primary-color);
}


/* =========================================
   Blockquotes
   ========================================= */

blockquote {
    position: relative;

    margin: 30px 0;
    padding: 25px 30px;

    background: #f7f7f7;
    border-left: 4px solid var(--primary-color);

    color: #333333;

    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 500;
}

blockquote p {
    margin-bottom: 0;
}


/* =========================================
   Horizontal Rule
   ========================================= */

hr {
    margin: 35px 0;

    border: 0;
    border-top: 1px solid #e5e5e5;
}


/* =========================================
   Images - General
   ========================================= */

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


/* WordPress content images */

.entry-content img,
.content-area img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================
   Standard Content Image
   ========================================= */

.entry-content .wp-post-image,
.entry-content .alignnone,
.entry-content .aligncenter {
    border-radius: 3px;
}


/* =========================================
   Image Captions
   ========================================= */

.wp-caption {
    max-width: 100%;
    margin-bottom: 25px;
}

.wp-caption img {
    margin-bottom: 8px;
}

.wp-caption-text,
figcaption {
    color: #777777;

    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
}


/* =========================================
   WordPress Image Alignment
   ========================================= */

.alignleft {
    float: left;

    max-width: 50%;
    margin: 0 30px 20px 0;
}

.alignright {
    float: right;

    max-width: 50%;
    margin: 0 0 20px 30px;
}

.aligncenter {
    display: block;

    margin-right: auto;
    margin-left: auto;
}


/* Clear floated images */

.entry-content::after,
.content-area::after {
    content: "";
    display: table;
    clear: both;
}


/* =========================================
   Rounded / Styled Images
   ========================================= */

.img-rounded {
    border-radius: 4px;
}

.img-shadow {
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
}


/* =========================================
   Image with Corporate Orange Accent
   ========================================= */

.img-accent {
    position: relative;

    padding: 8px;

    background: var(--primary-color);
    border-radius: 4px;
}

.img-accent img {
    display: block;
    width: 100%;
    background: var(--light-color);
}


/* =========================================
   Image Hover Effect
   ========================================= */

.img-hover {
    overflow: hidden;
    border-radius: 4px;
}

.img-hover img {
    display: block;
    width: 100%;

    transition: transform 0.35s ease;
}

.img-hover:hover img {
    transform: scale(1.03);
}


/* =========================================
   Content Image Links
   ========================================= */

.entry-content a img,
.content-area a img {
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}

.entry-content a:hover img,
.content-area a:hover img {
    opacity: 0.92;
}


/* =========================================
   Tables
   ========================================= */

.entry-content table,
.content-area table {
    width: 100%;
    margin-bottom: 30px;

    border-collapse: collapse;

    font-size: 0.95rem;
}

.entry-content th,
.content-area th {
    padding: 13px 15px;

    color: var(--light-color);
    background-color: var(--dark-color);

    font-weight: 700;
    text-align: left;
}

.entry-content td,
.content-area td {
    padding: 12px 15px;

    border: 1px solid #e5e5e5;
}

.entry-content tr:nth-child(even) td,
.content-area tr:nth-child(even) td {
    background-color: #f8f8f8;
}


/* =========================================
   Buttons - General
   ========================================= */

.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 3px;
    font-weight: 700;
}


/* Primary Button */

.btn-primary {
    color: var(--light-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--light-color);
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}


/* Action Button */

.btn-action {
    color: var(--light-color);
    background-color: var(--action-color);
    border: 2px solid var(--action-color);
}

.btn-action:hover {
    color: var(--dark-color);
    background-color: var(--light-color);
    border-color: var(--action-color);
}


/* =========================================
   Small Text
   ========================================= */

.text-small {
    font-size: 0.85rem;
    line-height: 1.5;
}

.text-muted {
    color: #777777 !important;
}


/* =========================================
   Orange Text
   ========================================= */

.text-primary,
.text-orange {
    color: var(--primary-color) !important;
}


/* =========================================
   Responsive Typography
   ========================================= */

@media (max-width: 767px) {

    body {
        font-size: 15px;
    }

    h1 {
        margin-bottom: 20px;
    }

    h2 {
        margin-bottom: 18px;
    }

    h3 {
        margin-bottom: 15px;
    }

    .lead,
    .intro-text {
        font-size: 1.05rem;
    }

    .alignleft,
    .alignright {
        float: none;

        max-width: 100%;
        margin: 0 0 20px;
    }

    blockquote {
        margin: 25px 0;
        padding: 20px;
    }

    .entry-content table,
    .content-area table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}

/* =========================================================
   Plant Services / Hire Cards
   ========================================================= */

.plant-hire-pages {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */

.plant-hire-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    background-color: var(--light-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* Hover effect */

.plant-hire-card:hover {
    transform: translateY(-5px);

    border-color: var(--secondary-color);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}


/* ---------------------------------------------------------
   Image
   --------------------------------------------------------- */

.plant-hire-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;

    background-color: #f5f5f5;
}


/* Orange top accent */

.plant-hire-card__image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background-color: var(--primary-color);

    z-index: 2;
}


/* Image */

.plant-hire-card__image img {
    display: block;

    width: 100%;
    height: 260px;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}


/* Image hover */

.plant-hire-card:hover .plant-hire-card__image img {
    transform: scale(1.04);
}


/* Image link */

.plant-hire-card__image a {
    display: block;

    text-decoration: none;
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.plant-hire-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 1.75rem;
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.plant-hire-card__title {
    position: relative;

    margin: 0 0 1rem;

    padding-bottom: 0.75rem;

    color: var(--dark-color);

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}


/* Title accent */

.plant-hire-card__title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 45px;
    height: 3px;

    background-color: var(--primary-color);

    transition: width 0.25s ease;
}


.plant-hire-card:hover .plant-hire-card__title::after {
    width: 70px;
}


/* Title link */

.plant-hire-card__title a {
    color: var(--dark-color);

    text-decoration: none;

    transition: color 0.2s ease;
}


.plant-hire-card__title a:hover,
.plant-hire-card__title a:focus {
    color: var(--primary-color);
}


/* ---------------------------------------------------------
   Excerpt
   --------------------------------------------------------- */

.plant-hire-card__excerpt {
    flex-grow: 1;

    margin-bottom: 1.5rem;

    color: #555555;

    font-size: 1rem;
    line-height: 1.7;
}


/* Remove unwanted paragraph spacing */

.plant-hire-card__excerpt p {
    margin-top: 0;
    margin-bottom: 0.75rem;
}


.plant-hire-card__excerpt p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Find Out More Link
   --------------------------------------------------------- */

.plant-hire-card__link {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.65rem 1.15rem;

    color: var(--light-color);
    background-color: var(--action-color);

    border: 2px solid var(--action-color);
    border-radius: 4px;

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* Arrow */

.plant-hire-card__link::after {
    content: "→";

    font-size: 1rem;

    transition: transform 0.2s ease;
}


/* Link hover */

.plant-hire-card__link:hover,
.plant-hire-card__link:focus {
    color: var(--dark-color);
    background-color: var(--light-color);
    border-color: var(--primary-color);

    text-decoration: none;

    transform: translateY(-1px);
}


.plant-hire-card__link:hover::after,
.plant-hire-card__link:focus::after {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   Bootstrap column spacing
   --------------------------------------------------------- */

.plant-hire-pages .row {
    margin-top: -0.75rem;
    margin-bottom: -0.75rem;
}


.plant-hire-pages .row > [class*="col-"] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.plant-hire-card__title a:focus-visible,
.plant-hire-card__link:focus-visible,
.plant-hire-card__image a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Optional: no image
   --------------------------------------------------------- */

.plant-hire-card:not(:has(.plant-hire-card__image))
.plant-hire-card__content {
    padding-top: 2rem;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .plant-hire-pages {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .plant-hire-card__image img {
        height: 230px;
    }

    .plant-hire-card__content {
        padding: 1.5rem;
    }

    .plant-hire-card__title {
        font-size: 1.35rem;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .plant-hire-pages {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .plant-hire-card__image img {
        height: 220px;
    }

    .plant-hire-card__content {
        padding: 1.35rem;
    }

    .plant-hire-card__title {
        font-size: 1.3rem;
    }

    .plant-hire-card__excerpt {
        font-size: 0.95rem;
        line-height: 1.6;
    }

}


/* ---------------------------------------------------------
   Small mobile
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .plant-hire-card__image img {
        height: 200px;
    }

    .plant-hire-card__content {
        padding: 1.25rem;
    }

    .plant-hire-card__link {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   Corporate Divider
   ========================================================= */

.mpl-divider {
    width: 100%;
    height: 1px;
    margin: 2rem 0;

    background-color: var(--primary-color);
}