/*
Theme Name: Lasermade GeneratePress Child
Theme URI: https://www.lasermade.com.au/
Description: Legacy-style Lasermade child theme for GeneratePress, built for Gutenberg content migration.
Author: Digerati
Template: generatepress
Version: 0.1.0
Text Domain: lasermade-gp-child
*/

:root {
    --lm-blue: #2e3192;
    --lm-light-blue: #cfe2f4;
    --lm-mid-blue: #5394c0;
    --lm-sky: #117ac0;
    --lm-purple: #7a2966;
    --lm-grey: #949391;
    --lm-dark: #414042;
    --lm-border: #e6e7e8;
    --lm-width: 960px;
}

html, body { min-height: 100%; }
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--lm-blue);
    background: #fff;
}

a { color: #0000ee; text-decoration: none; }
a:hover { color: var(--lm-blue); }

/* Hide the GeneratePress chrome; this child theme owns the shell. */
.site-header,
.main-navigation,
.site-footer,
.entry-header { display: none !important; }

/* Remove GeneratePress page chrome/spacing so Gutenberg controls content. */
#page,
.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site.grid-container,
.site-content.grid-container,
#primary,
.content-area {
    max-width: none !important;
    width: 100% !important;
}

.inside-article,
.entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shared 960px legacy container. */
.lm-wrap,
.entry-content > :where(*:not(.alignfull)),
.lm-page-content {
    width: min(var(--lm-width), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.lm-header {
    background: #fff;
    padding: 20px 0 18px;
}

.lm-header .lm-wrap {
    min-height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.lm-logo {
    display: block;
    width: 400px;
    max-width: 58vw;
    height: auto;
}

.lm-phone {
    position: absolute;
    right: 0;
    top: 4px;
    color: #959391;
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
    white-space: nowrap;
}

/* Navigation */
.lm-nav-shell {
    border-top: 1px solid var(--lm-border);
    border-bottom: 1px solid var(--lm-border);
    min-height: 37px;
    background: #fff;
    position: relative;
    z-index: 50;
}

.lm-nav-shell .lm-wrap {
    width: min(var(--lm-width), 100%);
    border-right: 1px solid var(--lm-border);
}

.lm-primary-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.lm-primary-menu > li {
    position: relative;
    border-left: 1px solid var(--lm-border);
    margin: 0;
}

.lm-primary-menu > li > a {
    display: block;
    height: 37px;
    box-sizing: border-box;
    border-top: 1px solid #fff;
    padding: 10px 11px 0;
    color: var(--lm-grey);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lm-primary-menu > li.current-menu-item > a,
.lm-primary-menu > li.current-menu-ancestor > a {
    border-top: 2px solid var(--lm-blue);
    color: var(--lm-blue);
}

.lm-primary-menu > li:hover > a { color: var(--lm-blue); }

.lm-primary-menu .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 36px;
    min-width: 190px;
    margin: 0;
    padding: 0 1px;
    list-style: none;
    border: 1px solid var(--lm-border);
    background: #fff;
    z-index: 100;
}

.lm-primary-menu li:hover > .sub-menu,
.lm-primary-menu li:focus-within > .sub-menu { display: block; }

.lm-primary-menu .sub-menu li { border-bottom: 1px solid var(--lm-border); }
.lm-primary-menu .sub-menu a {
    display: block;
    padding: 10px 32px 10px 12px;
    color: var(--lm-grey);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    background-repeat: no-repeat;
    background-position: right center;
}
.lm-primary-menu .sub-menu a:hover {
    color: var(--lm-blue);
    background-image: url('assets/images/menuLaser.jpg');
}

.lm-nav-toggle {
    display: none;
    width: 100%;
    border: 0;
    background: #fff;
    color: var(--lm-blue);
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px 16px;
    text-align: left;
}

/* Typography matching the old site. */
.entry-content h1,
.lm-page-content h1 {
    display: inline-block;
    color: var(--lm-blue);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    border-bottom: 1px solid #a1a1a1;
    padding-bottom: 8px;
    margin: 42px 0 24px;
}

.entry-content h2,
.lm-page-content h2 {
    color: var(--lm-blue);
    font-size: 24px;
    line-height: 1.2;
}

.entry-content p,
.entry-content li,
.lm-page-content p,
.lm-page-content li {
    line-height: 1.5;
}

/* Common Gutenberg helpers. */
.lm-page-content { padding-bottom: 45px; }
.lm-page-content:first-child { padding-top: 1px; }

.lm-blue-band.alignfull {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-top: 1px solid #e5ecf6;
    border-bottom: 1px solid #e5ecf6;
    background: linear-gradient(to bottom, #cfe2f4, #f2f6fb);
    color: var(--lm-dark);
    text-align: center;
    font-style: italic;
    padding: 28px 0 36px;
}

.lm-blue-band > .wp-block-group__inner-container,
.lm-blue-band > .wp-block-group-is-layout-flow {
    width: min(var(--lm-width), calc(100% - 32px));
    margin: 0 auto;
}

.lm-blue-band h1,
.lm-blue-band h2 {
    border-bottom: 1px solid #a1a1a1;
    color: var(--lm-blue);
    font-size: 30px;
    font-style: italic;
    text-transform: uppercase;
    margin-top: 0;
}

.lm-quote-button a,
a.lm-quote-button {
    display: inline-block;
    min-width: 290px;
    box-sizing: border-box;
    background: var(--lm-purple);
    border: 1px solid #ed1c24;
    border-radius: 10px;
    box-shadow: 1px 1px 1px rgba(10,10,10,.5);
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    font-style: normal;
    text-transform: uppercase;
    padding: 12px 24px;
}

/* Footer */
.lm-footer {
    background: #e5ecf6;
    color: var(--lm-blue);
    font-size: 13px;
    padding: 30px 0 28px;
    min-height: 155px;
    box-sizing: border-box;
}

.lm-footer .lm-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.lm-contact-row {
    min-height: 19px;
    margin-bottom: 10px;
    padding-left: 30px;
    background: url('assets/images/contactSprite.png') no-repeat;
}
.lm-contact-row.tel { background-position: 0 0; }
.lm-contact-row.email { background-position: 0 -48px; }
.lm-contact-row.address { background-position: 0 -75px; }

.lm-footer-center { text-align: center; }
.lm-footer-right { text-align: right; }
.lm-footer-right img { width: 95px; height: auto; }

/* Home card helpers for later Gutenberg markup. */
.lm-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px auto;
}
.lm-home-card {
    display: block;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background: var(--lm-mid-blue);
    color: #fff !important;
    text-align: center;
}
.lm-home-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.lm-home-card .lm-card-copy { padding: 8px 20px 13px; min-height: 80px; box-sizing: border-box; }
.lm-home-card .lm-card-title { font-weight: 700; text-transform: uppercase; font-style: italic; }
.lm-home-card .lm-card-desc { font-style: italic; }

@media (max-width: 980px) {
    .lm-header .lm-wrap { justify-content: flex-start; }
    .lm-logo { margin-left: 16px; }
    .lm-phone { right: 16px; }
    .lm-nav-shell .lm-wrap { width: 100%; }
    .lm-primary-menu > li > a { padding-left: 8px; padding-right: 8px; font-size: 11px; }
}

@media (max-width: 820px) {
    .lm-header { padding-bottom: 12px; }
    .lm-header .lm-wrap { display: block; min-height: 72px; }
    .lm-logo { width: 340px; max-width: calc(100% - 32px); margin: 0 auto; }
    .lm-phone { position: static; text-align: center; margin-top: 12px; }

    .lm-nav-toggle { display: block; }
    .lm-primary-menu { display: none; flex-direction: column; border-top: 1px solid var(--lm-border); }
    .lm-nav-shell.is-open .lm-primary-menu { display: flex; }
    .lm-primary-menu > li { border-left: 0; border-bottom: 1px solid var(--lm-border); }
    .lm-primary-menu > li > a { height: auto; padding: 11px 16px; }
    .lm-primary-menu .sub-menu {
        display: block;
        position: static;
        border: 0;
        border-top: 1px solid var(--lm-border);
        padding-left: 18px;
    }
    .lm-home-cards { grid-template-columns: 1fr; }
    .lm-footer .lm-wrap { grid-template-columns: 1fr; text-align: center; }
    .lm-footer-right { text-align: center; }
}


.lasermade-home {
    margin: 0;
}

/* HERO */
.lm-home-slider {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #222;
}

.lm-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}

.lm-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.lm-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Legacy light-grey floating caption */
.lm-slide-overlay {
    position: absolute;
    left: 30px;
    bottom: 25px;
    width: 66%;
    padding: 12px 18px 10px;
    box-sizing: border-box;

    background: rgba(255,255,255,.82);
    color: #253596;
}

.lm-slide-overlay h2 {
    margin: 0 0 6px;
    padding: 0 0 5px;

    border-bottom: 1px solid #7d83ad;

    color: #253596;
    font-size: 24px;
    line-height: 1;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
}

.lm-slide-overlay p {
    margin: 0;
    color: #253596;
    font-size: 13px;
}

/* READ MORE pill */
.lm-slide-overlay a {
    position: absolute;
    right: 15px;
    top: 10px;

    padding: 6px 17px;
    border-radius: 18px;

    background: #1689c9;
    color: #fff;

    font-size: 11px;
    line-height: 1;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}


/* =========================================================
   SERVICE THUMBNAILS — 4 x 2
   ========================================================= */

.lm-home-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;

    margin: 10px 10px 12px;
}

.lm-thumb {
    position: relative;
    height: 112px;

    margin: 0;
    padding: 0;
    border: 0;

    overflow: hidden;
    cursor: pointer;
    background: #222;
}

.lm-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
}

.lm-thumb span {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    box-sizing: border-box;

    background: rgba(0,0,0,.08);
    color: #444;

    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;

    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff;
}

.lm-thumb:hover img,
.lm-thumb.is-active img {
    opacity: 1;
}


/* =========================================================
   WELCOME BAND
   ========================================================= */

.lm-home-welcome {
    margin: 0 calc(50% - 50vw);
    padding: 42px max(20px, calc((100vw - 1140px) / 2)) 38px;

    background: #dcebf7;

    text-align: center;
}

.lm-home-welcome h1 {
    display: inline-block;

    margin: 0 0 32px;
    padding-bottom: 4px;

    border-bottom: 1px solid #999;

    color: #293999;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.lm-home-welcome p {
    max-width: 1080px;
    margin: 0 auto 25px;

    color: #222;
    font-size: 14px;
    line-height: 1.45;
    font-style: italic;
}


/* Quote button */
.lm-home-welcome .wp-block-buttons {
    justify-content: center;
}

.lm-quote-button .wp-block-button__link {
    min-width: 285px;

    padding: 14px 28px;

    border: 2px solid #e21737;
    border-radius: 12px;

    background: #9a2765;
    color: #fff;

    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;

    box-shadow: 1px 2px 2px rgba(0,0,0,.45);
}


/* =========================================================
   THREE LOWER CARDS
   ========================================================= */

.lm-home-cards {
    gap: 18px;
    margin-top: 35px;
}

.lm-home-cards .wp-block-column {
    overflow: hidden;
    text-align: center;
}

.lm-home-cards img {
    width: 100%;
    height: 185px;
    display: block;
    object-fit: cover;
}

.lm-home-cards h3 {
    margin: 0;
    padding: 8px 8px 2px;

    background: #4fa0cf;
    color: #fff;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.lm-home-cards p {
    margin: 0;
    padding: 0 12px 10px;

    background: #4fa0cf;
    color: #fff;

    font-size: 11px;
    line-height: 1.2;
    font-style: italic;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .lm-home-slider {
        height: 300px;
    }

    .lm-home-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm-slide-overlay {
        width: calc(100% - 40px);
        left: 20px;
    }

    .lm-slide-overlay a {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    .lm-home-slider {
        height: 260px;
    }

    .lm-thumb {
        height: 100px;
    }

    .lm-thumb span {
        font-size: 15px;
    }

    .lm-home-welcome {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .lm-quote-button .wp-block-button__link {
        min-width: 0;
    }
}


.lm-machines {
    padding-top: 30px;
    padding-bottom: 45px;
}

.lm-machine-section {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid #ddd;
}

.lm-machine-section:last-child {
    border-bottom: 0;
}

.lm-machine-columns {
    gap: 45px;
    align-items: flex-start;
}

.lm-machine-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.lm-machine-section p {
    margin-bottom: 8px;
}

.lm-machine-section figure {
    margin: 0;
}

.lm-machine-section img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin-left: auto;
}

@media (max-width: 768px) {
    .lm-machine-columns {
        gap: 20px;
    }

    .lm-machine-section img {
        margin: 15px 0 0;
    }
}

/* GALLERY
--------------------------------------------- */

.lm-gallery {
    padding-top: 30px;
    padding-bottom: 45px;
}

.lm-gallery h1 {
    margin: 0 0 25px;
}

.lm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lm-gallery-grid a {
    display: block;
    overflow: hidden;
    background: #eee;
}

.lm-gallery-grid img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .2s ease;
}

.lm-gallery-grid a:hover img {
    transform: scale(1.02);
}

@media (max-width: 760px) {
    .lm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lm-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ONLINE PAYMENT
--------------------------------------------- */

.lm-payment {
    padding-top: 30px;
    padding-bottom: 45px;
}

.lm-payment h1 {
    margin: 0 0 20px;
}

.lm-payment h3 {
    margin: 28px 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.lm-payment p {
    margin-bottom: 12px;
}

.lm-payment-image {
    float: right;
    width: 250px;
    margin: 0 0 25px 40px;
}

.lm-payment-image img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

.lm-payment::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 650px) {
    .lm-payment-image {
        float: none;
        width: 250px;
        margin: 20px 0;
    }
}

.lm-contact {
    padding-top: 30px;
    padding-bottom: 45px;
}

.lm-contact h1 {
    margin: 0 0 20px;
}

.lm-contact-map {
    width: 100%;
    margin: 25px 0 35px;
    overflow: hidden;
}

.lm-contact-map iframe {
    display: block;
    width: 100%;
    height: 350px;
}

.lm-contact-details {
    gap: 60px;
    margin-top: 10px;
}

.lm-contact-details h3 {
    margin: 0 0 15px;
    font-size: 19px;
    font-weight: 700;
}

.lm-contact-details p {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .lm-contact-details {
        gap: 20px;
    }
}