/*
Theme Name: PM Theme
Theme URI: https://praktoreia-metaforon.gr/
Description: Kadence child theme for Praktoreia-Metaforon.gr
Author: Praktoreia Metaforon
Template: kadence
Version: 1.0.1
Text Domain: pmtheme
*/

/* Company archive pages */
.pm-companies-page {
    background: #f7f8fb;
    padding: 44px 0 64px;
}

.pm-companies-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.pm-companies-header {
    margin-bottom: 28px;
}

.pm-companies-title {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    color: #17233c;
}

.pm-companies-intro {
    max-width: 760px;
    margin: 0;
    color: #5f6878;
    font-size: 17px;
    line-height: 1.7;
}

.pm-company-list {
    display: grid;
    gap: 16px;
}

.pm-company-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(22, 35, 60, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pm-company-card:hover {
    transform: translateY(-2px);
    border-color: #cbd7ef;
    box-shadow: 0 10px 28px rgba(22, 35, 60, 0.10);
}

.pm-company-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 92px;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.pm-company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pm-company-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background: #f0f4ff;
    color: #245fe5;
    font-size: 28px;
    font-weight: 800;
}

.pm-company-content {
    min-width: 0;
}

.pm-company-name {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.3;
    color: #17233c;
}

.pm-company-name a {
    color: inherit;
    text-decoration: none;
}

.pm-company-location {
    margin: 0 0 8px;
    color: #5c6676;
    font-size: 14px;
    font-weight: 600;
}

.pm-company-excerpt {
    margin: 0;
    color: #6b7380;
    font-size: 15px;
    line-height: 1.55;
}

.pm-company-action {
    display: flex;
    justify-content: flex-end;
}

.pm-company-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid #2463eb;
    border-radius: 8px;
    background: #2463eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.pm-company-button:hover,
.pm-company-button:focus {
    background: #174ec4;
    border-color: #174ec4;
    transform: translateY(-1px);
}

.pm-companies-empty {
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    text-align: center;
}

.pm-companies-pagination {
    margin-top: 28px;
}

.pm-companies-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pm-companies-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dce2eb;
    border-radius: 7px;
    background: #fff;
    color: #24344f;
    text-decoration: none;
}

.pm-companies-pagination .page-numbers.current,
.pm-companies-pagination a.page-numbers:hover {
    border-color: #2463eb;
    background: #2463eb;
    color: #fff;
}

@media (max-width: 820px) {
    .pm-company-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .pm-company-logo-wrap {
        width: 120px;
        height: 84px;
    }

    .pm-company-action {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .pm-companies-page {
        padding: 28px 0 46px;
    }

    .pm-companies-container {
        width: min(100% - 24px, 1120px);
    }

    .pm-company-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .pm-company-logo-wrap {
        width: 92px;
        height: 74px;
        padding: 7px;
    }

    .pm-company-name {
        font-size: 17px;
    }

    .pm-company-excerpt {
        display: none;
    }

    .pm-company-action {
        grid-column: 1 / -1;
    }

    .pm-company-button {
        width: 100%;
    }
}

/* From / To company filters */
.pm-company-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(22, 35, 60, 0.06);
}

.pm-company-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #17233c;
    font-size: 14px;
    font-weight: 700;
}

.pm-company-filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 9px 38px 9px 12px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background-color: #fff;
    color: #17233c;
}

.pm-company-filter-button,
.pm-company-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
}

.pm-company-filter-button {
    border: 1px solid #2463eb;
    background: #2463eb;
    color: #fff;
    cursor: pointer;
}

.pm-company-filter-reset {
    border: 1px solid #d8dee8;
    background: #fff;
    color: #24344f;
}

.pm-company-results-heading {
    margin: 0 0 14px;
    color: #4d586a;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .pm-company-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .pm-company-filter {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .pm-company-filter-button,
    .pm-company-filter-reset {
        width: 100%;
    }
}

/* ==================================================
   PM – Single company profile
   ================================================== */
.pm-single-company-site-main {
    background: #f5f7fb;
    min-height: 70vh;
}

.pm-profile-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.pm-profile-hero {
    padding: 54px 0 46px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-bottom: 1px solid #e4e9f1;
}

.pm-profile-hero-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.pm-profile-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 140px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 36, 66, 0.07);
}

.pm-profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pm-profile-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    font-size: 36px;
    font-weight: 800;
}

.pm-profile-eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pm-profile-title {
    margin: 0;
    color: #14213d;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.pm-profile-address {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 16px 0 0;
    color: #5b6679;
    font-size: 16px;
}

.pm-profile-city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pm-profile-city-tags a,
.pm-profile-service-grid a {
    color: #24405f;
    text-decoration: none;
    background: #edf3fb;
    border: 1px solid #dce6f2;
    border-radius: 999px;
}

.pm-profile-city-tags a {
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.pm-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding-top: 38px;
    padding-bottom: 64px;
    align-items: start;
}

.pm-profile-main-content {
    display: grid;
    gap: 24px;
}

.pm-profile-panel,
.pm-profile-contact-card,
.pm-profile-note {
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 36, 66, 0.055);
}

.pm-profile-panel {
    padding: 30px;
}

.pm-profile-panel h2,
.pm-profile-contact-card h2 {
    margin: 0 0 20px;
    color: #17233a;
    font-size: 22px;
    line-height: 1.25;
}

.pm-profile-entry-content {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.pm-profile-entry-content > :last-child {
    margin-bottom: 0;
}

.pm-profile-service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-profile-service-grid a {
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 700;
}

.pm-profile-sidebar {
    position: sticky;
    top: 30px;
    display: grid;
    gap: 18px;
}

.pm-profile-contact-card {
    padding: 26px;
}

.pm-profile-contact-row {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid #edf0f5;
    overflow-wrap: anywhere;
}

.pm-profile-contact-label {
    color: #7b8798;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pm-profile-contact-row a,
.pm-profile-contact-row span:not(.pm-profile-contact-label) {
    color: #1d3557;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.pm-profile-contact-row a:hover {
    color: #2563eb;
}

.pm-profile-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 20px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.pm-profile-primary-action:hover {
    color: #ffffff;
    background: #1d4ed8;
}

.pm-profile-note {
    padding: 20px 22px;
    color: #506078;
    font-size: 14px;
    line-height: 1.55;
}

.pm-profile-note strong {
    display: block;
    margin-bottom: 5px;
    color: #17233a;
}

.pm-profile-note p {
    margin: 0;
}

@media (max-width: 900px) {
    .pm-profile-layout {
        grid-template-columns: 1fr;
    }

    .pm-profile-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .pm-profile-shell {
        width: min(100% - 28px, 1120px);
    }

    .pm-profile-hero {
        padding: 34px 0 32px;
    }

    .pm-profile-hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pm-profile-logo-box {
        width: 128px;
        height: 108px;
    }

    .pm-profile-title {
        font-size: 30px;
    }

    .pm-profile-layout {
        gap: 20px;
        padding-top: 24px;
        padding-bottom: 42px;
    }

    .pm-profile-panel,
    .pm-profile-contact-card {
        padding: 22px;
        border-radius: 12px;
    }
}
