/* PKT Painters legacy shell — based on the recovered 2013 site. */
:root {
    --pkt-blue: #002157;
    --pkt-link-blue: #0071b9;
    --pkt-orange: #ed8d1c;
    --pkt-light-blue: #c7dfee;
    --pkt-steel: #a1b3c0;
    --pkt-shell: 1000px;
}

html { min-height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--pkt-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    background: linear-gradient(to bottom, #fff 8%, #c7dfee 53%, #a1b3c0 100%) fixed;
}
body, button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }
a { color: var(--pkt-blue); }

/* GeneratePress shell is deliberately replaced by the child theme chrome. */
.site-header,
.main-navigation,
.site-footer .site-info { display: none !important; }

.grid-container,
.site.grid-container,
#page.grid-container,
#content.grid-container { max-width: var(--pkt-shell); }
#page,
#content,
#primary,
.site-main,
.inside-article,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.page .entry-header { display: none; }
.entry-content { margin-top: 0; }
.inside-article { background: transparent; }

.pkt-shell {
    width: min(var(--pkt-shell), calc(100% - 30px));
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.pkt-header { background: transparent; }
.pkt-header-inner {
    min-height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.pkt-logo {
    display: block;
    margin-top: 50px;
    line-height: 0;
}
.pkt-logo img {
    display: block;
    width: 472px;
    max-width: 100%;
    height: auto;
}
.pkt-call {
    position: relative;
    display: block;
    margin-top: 40px;
    width: 218px;
    line-height: 0;
}
.pkt-call img {
    display: block;
    width: 218px;
    height: auto;
}

.pkt-call-copy {
    position: absolute;
    top: 18px;
    left: 92px;
    width: 112px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    text-align: left;
    text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
.pkt-call-copy > span {
    display: block;
}
.pkt-call-copy strong {
    display: block;
    margin-top: 1px;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

/* Navigation */
.pkt-menu-row { position: relative; }
.pkt-menu-toggle { display: none; }
.pkt-nav { display: block; }
.pkt-primary-menu {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pkt-primary-menu > li {
    position: relative;
    margin: 10px 0 0;
    padding: 0 15px 5px;
    border-right: 1px solid #c7eafb;
    font-size: 18px;
    line-height: 1.25;
}
.pkt-primary-menu > li:first-child { padding-left: 0; }
.pkt-primary-menu > li:last-child { border-right: 0; }
.pkt-primary-menu a {
    color: var(--pkt-blue);
    text-decoration: none;
}
.pkt-primary-menu > li > a:hover { color: #006ab6; }
.pkt-primary-menu > .current-menu-item > a,
.pkt-primary-menu > .current-menu-ancestor > a,
.pkt-primary-menu > .current_page_item > a {
    color: var(--pkt-orange);
    font-weight: 700;
    border-bottom: 4px solid var(--pkt-orange);
}

.pkt-primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 14px;
    z-index: 10000;
    width: 185px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #0072ba;
}
.pkt-primary-menu li:hover > .sub-menu,
.pkt-primary-menu li:focus-within > .sub-menu { display: block; }
.pkt-primary-menu .sub-menu li { margin: 0; }
.pkt-primary-menu .sub-menu a {
    display: block;
    padding: 6px 8px 6px 13px;
    border-bottom: 1px solid #0072ba;
    color: #ee8e21;
    font-size: 14px;
    line-height: 1.2;
}
.pkt-primary-menu .sub-menu li:last-child a { border-bottom: 0; }
.pkt-primary-menu .sub-menu a:hover { background: #f7fbfe; }
.pkt-primary-menu .sub-menu .current-menu-item > a { font-weight: 700; }

/* Global content cues from legacy theme */
h1 { color: var(--pkt-orange); }
h2 { color: var(--pkt-link-blue); }
h3 { color: var(--pkt-orange); }
.wp-block-group.pkt-card,
.pkt-white-card {
    background: #fff;
    border-radius: 20px;
}

/* Footer */
.pkt-footer {
    margin-top: 35px;
    min-height: 60px;
    color: #fff;
    background: transparent;
}
.pkt-footer-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pkt-digerati { display: block; line-height: 0; }
.pkt-digerati img { display: block; width: 97px; height: auto; }

@media (max-width: 767px) {
    .pkt-shell { width: min(100% - 20px, var(--pkt-shell)); }
    .pkt-header-inner {
        min-height: auto;
        align-items: center;
        padding: 20px 0 14px;
    }
    .pkt-logo { margin-top: 0; width: min(72%, 472px); }
    .pkt-call { margin-top: 0; width: 150px; }
    .pkt-call img { width: 150px; }

    .pkt-menu-toggle {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
        padding: 9px 38px 9px 10px;
        border: 0;
        background: #f2a650;
        color: #fff;
        text-align: left;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
    }
    .pkt-menu-toggle::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 12px;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid #fefbf6;
    }
    .pkt-nav { display: none; }
    .pkt-nav.is-open { display: block; }
    .pkt-primary-menu {
        display: block;
        width: 100%;
        background: #f2a650;
    }
    .pkt-primary-menu > li {
        float: none;
        margin: 0;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid #f5be80;
        font-size: 15px;
    }
    .pkt-primary-menu > li > a {
        display: block;
        padding: 8px 10px;
        color: #fff;
        text-transform: uppercase;
    }
    .pkt-primary-menu > .current-menu-item > a,
    .pkt-primary-menu > .current-menu-ancestor > a,
    .pkt-primary-menu > .current_page_item > a {
        color: #fff;
        border-bottom: 0;
    }
    .pkt-primary-menu .sub-menu,
    .pkt-primary-menu li:hover > .sub-menu,
    .pkt-primary-menu li:focus-within > .sub-menu {
        position: static;
        display: block;
        width: 100%;
        border: 0;
        background: transparent;
    }
    .pkt-primary-menu .sub-menu a {
        padding: 6px 10px 6px 24px;
        border: 0;
        color: #fff;
        font-size: 14px;
    }
    .pkt-footer-inner { padding: 15px 0; }
}

@media (max-width: 520px) {
    .pkt-header-inner { display: block; }
    .pkt-logo { width: 100%; }
    .pkt-call { width: 165px; margin: 12px 0 0 auto; }
    .pkt-call img { width: 165px; }
}

/* =========================================================
   HOME PAGE — static legacy hero + four service cards
   ========================================================= */
.home .site-content,
.home .content-area,
.home .site-main,
.home .inside-article,
.home .entry-content {
    width: 100%;
    max-width: 940px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pkt-home {
    margin: 0;
    padding: 0;
}

/* The legacy PKT slider was already broken. Preserve the visual treatment
   without introducing a new rotating behaviour: one static hero image. */
.pkt-home-hero {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #d9e5ed;
}
.pkt-home-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 470px;
    object-fit: cover;
}

/* Four service cards */
.pkt-services-home {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start;
    margin: 28px 8px 0 !important;
}
.pkt-services-home > .wp-block-column {
    min-width: 0;
    width: auto !important;
    flex-basis: auto !important;
    margin: 0 !important;
}
.pkt-service-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 330px;
    padding: 34px 16px 14px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
}
.pkt-service-card--painting {
    background: #fff;
    border: 1px solid #ddd;
}
.pkt-service-icon {
    width: 64px !important;
    height: 64px !important;
    margin: -55px auto 8px !important;
    flex: 0 0 auto;
}
.pkt-service-icon img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}
.pkt-service-card h3 {
    margin: 8px 0 12px;
    color: #ed8d1c;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}
.pkt-service-card p {
    margin: 0 0 12px;
    color: #111;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}
.pkt-service-card .pkt-more {
    margin-top: auto;
    text-align: right;
}
.pkt-service-card .pkt-more a {
    color: #0071b9;
    text-decoration: underline;
    font-size: 12px;
}

/* Accreditation + Products We Use strip.
   Accreditation artwork is loaded relative to this stylesheet so it works
   regardless of the actual child-theme directory name. */
.pkt-bottomcontent {
    display: grid !important;
    grid-template-columns: 165px 165px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch;
    margin: 34px 12px 0;
}
.pkt-accreditation,
.pkt-used-products {
    min-width: 0;
    background: #fff;
    border-radius: 10px;
}
.pkt-accreditation {
    min-height: 145px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid rgba(0,0,0,.08);
}
.pkt-accreditation--mpa {
    background-image: url('../images/masterPaintersLogo.png');
    background-size: 130px auto;
}
.pkt-accreditation--dulux {
    background-image: url('../images/dulux.png');
    background-size: 135px auto;
}
.pkt-used-products {
    min-height: 145px;
    padding: 1px 12px 12px;
}
.pkt-products-title {
    width: 221px;
    min-height: 28px;
    margin: 9px 0 4px;
    padding: 7px 0 0 25px;
    box-sizing: border-box;
    background: url('../images/paintsmear.png') left top / 221px 28px no-repeat;
    color: #002157;
    font-size: 18px;
    line-height: 1;
}
.pkt-product-logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    min-height: 88px;
}
.pkt-product-logos img {
    display: block;
    max-width: 90px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .pkt-services-home {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 46px !important;
    }
    .pkt-bottomcontent {
        grid-template-columns: 150px 150px minmax(0, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .pkt-services-home {
        grid-template-columns: 1fr !important;
        row-gap: 46px !important;
    }
    .pkt-service-card { min-height: 0; }
    .pkt-bottomcontent {
        grid-template-columns: 1fr 1fr !important;
    }
    .pkt-used-products { grid-column: 1 / -1; }
    .pkt-product-logos {
        flex-wrap: wrap !important;
        justify-content: center;
        padding: 8px 0;
    }
}

/* =========================================================
   ABOUT US — legacy Foundation 3 / 6 / 3 column treatment
   ========================================================= */
.pkt-about {
    margin: 0;
    padding: 48px 0 34px;
    background: #d8eaf5;
}
.pkt-about-layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 220px !important;
    column-gap: 30px !important;
    align-items: start !important;
    margin: 0 30px !important;
}
.pkt-about-layout > .wp-block-column {
    width: auto !important;
    flex-basis: auto !important;
    min-width: 0;
    margin: 0 !important;
}

/* Legacy CMS cropped home1 from well into the right-hand side of the image. */
.pkt-about-side-image {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 13px;
    background: #fff;
}
.pkt-about-side-image img {
    display: block;
    width: 220px !important;
    height: 600px !important;
    max-width: none !important;
    object-fit: cover;
    object-position: 100% 0;
}

.pkt-about-main {
    min-height: 600px;
    padding: 34px 28px 26px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 13px;
}
.pkt-about-main h2 {
    margin: 0 0 14px;
    color: #0076bd;
    font-size: 31px;
    line-height: 1.12;
    font-weight: 400;
}
.pkt-about-main h2:not(:first-child) {
    margin-top: 30px;
}
.pkt-about-main p {
    margin: 0 0 20px;
    color: #111;
    font-size: 15px;
    line-height: 1.48;
    font-weight: 400;
}

.pkt-side-services {
    padding: 18px 14px 14px;
    background: #fff;
    border-radius: 13px;
}
.pkt-side-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    color: #ed7f00;
    text-align: center;
    text-decoration: underline;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 700;
}
.pkt-side-service:last-child { margin-bottom: 0; }
.pkt-side-service img {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.pkt-about-form-placeholder {
    margin: 28px 0 0 !important;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 13px;
}
.pkt-about-form-placeholder .pkt-form-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 12px 12px;
    border: 1px solid #c8c8c8;
    background: #fff;
    color: #777;
    font-size: 15px;
    line-height: 1.3;
}
.pkt-about-form-placeholder textarea.pkt-form-field {
    min-height: 120px;
    resize: vertical;
}
.pkt-about-form-placeholder .pkt-form-submit {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 10px 18px;
    border: 0;
    background: #ef891b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.pkt-about-form-note {
    margin: 10px 0 0;
    color: #666;
    font-size: 10px;
    line-height: 1.3;
}

@media (max-width: 960px) {
    .pkt-about-layout {
        grid-template-columns: 220px minmax(0, 1fr) !important;
        margin: 0 22px !important;
    }
    .pkt-about-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
    .pkt-about-form-placeholder { margin-top: 0 !important; }
}

@media (max-width: 700px) {
    .pkt-about { padding: 24px 12px; }
    .pkt-about-layout { display: block !important; margin: 0 !important; }
    .pkt-about-left { display: none; }
    .pkt-about-main { min-height: 0; padding: 24px 20px; }
    .pkt-about-main h2 { font-size: 27px; }
    .pkt-about-main p { font-size: 14px; }
    .pkt-about-right { display: block; margin-top: 22px !important; }
    .pkt-about-form-placeholder { margin-top: 22px !important; }
}

/* =========================================================
   INNER PAGES — theme-owned legacy 3 / 6 / 3 shell
   Gutenberg owns ONLY the centre content.
   ========================================================= */
body.page:not(.home) #page,
body.page:not(.home) #content,
body.page:not(.home) #primary,
body.page:not(.home) .site-main,
body.page:not(.home) .inside-article,
body.page:not(.home) .entry-content {
    background: transparent !important;
}

body.page:not(.home) #content {
    padding: 0 !important;
}

body.page:not(.home) .inside-article {
    padding: 0 !important;
}

body.page:not(.home) .entry-content {
    margin: 0 !important;
}

.pkt-inner-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 30px;
    align-items: start;
    padding: 48px 0 36px;
    background: transparent;
}

.pkt-inner-left,
.pkt-inner-main,
.pkt-inner-right {
    min-width: 0;
}

.pkt-inner-left-image {
    width: 220px;
    height: 600px;
    overflow: hidden;
    border-radius: 13px;
    background: transparent;
}

/* Reproduce the old myCMS crop: crop=335,0,541,600;width=220.
   The source asset was effectively a 600px-high image with its central/right
   206px slice selected, then scaled to 220px. */
.pkt-inner-left-image img {
    display: block;
    width: auto !important;
    max-width: none !important;
    height: 600px !important;
    transform: translateX(-335px);
}

.pkt-inner-main {
    padding: 32px 30px 28px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 13px;
    color: #111;
}

.pkt-inner-main h1,
.pkt-inner-main h2 {
    color: #0076bd;
    font-weight: 400;
}

.pkt-inner-main h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.15;
}

.pkt-inner-main h2:not(:first-child) {
    margin-top: 28px;
}

.pkt-inner-main p,
.pkt-inner-main li {
    color: #111;
    font-size: 14px;
    line-height: 1.48;
}

.pkt-inner-right .pkt-side-services {
    padding: 18px 14px 14px;
    background: #fff;
    border-radius: 13px;
}

.pkt-rail-form {
    margin-top: 28px;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 13px;
}

.pkt-rail-form input,
.pkt-rail-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid #c8c8c8;
    background: #fff;
    color: #777;
    font-size: 14px;
}

.pkt-rail-form textarea {
    min-height: 110px;
    resize: vertical;
}

.pkt-rail-form button {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: #ef891b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* About Gutenberg from earlier revisions: strip its duplicate rails/panels so
   only the centre CMS content remains inside the new theme shell. */
body.pkt-page-about-us .pkt-about {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.pkt-page-about-us .pkt-about-layout {
    display: block !important;
    margin: 0 !important;
}

body.pkt-page-about-us .pkt-about-left,
body.pkt-page-about-us .pkt-about-right {
    display: none !important;
}

body.pkt-page-about-us .pkt-about-main {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

body.pkt-page-about-us .pkt-about-main h2 {
    margin: 0 0 14px;
    color: #0076bd;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 400;
}

body.pkt-page-about-us .pkt-about-main h2:not(:first-child) {
    margin-top: 28px;
}

body.pkt-page-about-us .pkt-about-main p {
    margin: 0 0 18px;
    color: #111;
    font-size: 14px;
    line-height: 1.48;
}

@media (max-width: 900px) {
    .pkt-inner-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .pkt-inner-left-image {
        width: 180px;
    }
    .pkt-inner-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
    .pkt-rail-form { margin-top: 0; }
}

@media (max-width: 700px) {
    .pkt-inner-layout {
        display: block;
        padding: 24px 12px 30px;
    }
    .pkt-inner-left { display: none; }
    .pkt-inner-main { padding: 24px 20px; }
    .pkt-inner-right {
        display: block;
        margin-top: 22px;
    }
    .pkt-rail-form { margin-top: 22px; }
}


/* =========================================================
   GRAVITY FORMS — right rail
   ========================================================= */
.pkt-rail-form .gform_wrapper,
.pkt-rail-form .gform_wrapper.gravity-theme {
    margin: 0 !important;
}

.pkt-rail-form .gform_heading {
    display: none !important;
}

.pkt-rail-form .gform_fields {
    display: block !important;
}

.pkt-rail-form .gfield {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.pkt-rail-form .gfield_label,
.pkt-rail-form .gfield_description,
.pkt-rail-form .gfield_required,
.pkt-rail-form .instruction {
    display: none !important;
}

.pkt-rail-form input[type="text"],
.pkt-rail-form input[type="email"],
.pkt-rail-form input[type="tel"],
.pkt-rail-form input[type="url"],
.pkt-rail-form input[type="number"],
.pkt-rail-form select,
.pkt-rail-form textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 11px 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #777 !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

.pkt-rail-form textarea {
    min-height: 110px !important;
    resize: vertical;
}

.pkt-rail-form .gform_footer {
    margin: 0 !important;
    padding: 0 !important;
}

.pkt-rail-form .gform_button,
.pkt-rail-form input[type="submit"],
.pkt-rail-form button[type="submit"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ef891b !important;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.pkt-rail-form .gform_validation_errors {
    margin: 0 0 12px !important;
    padding: 10px !important;
    font-size: 12px !important;
}

.pkt-rail-form .validation_message {
    display: block !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.pkt-rail-form .ginput_container {
    margin: 0 !important;
}

.pkt-form-unavailable {
    margin: 0;
    color: #666;
    font-size: 13px;
}
