
/* MD CoolAir – project-specific overrides. Keep custom changes here. */
.md-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.md-logo-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 9px;
    border-radius: 12px;
    background: var(--primary-color, #2f5faa);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 8px 22px rgba(25, 68, 130, .18);
}
.md-logo-name {
    color: #12213a;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.2px;
}
header.smaller .md-logo-main { height: 39px; min-width: 39px; }
header.smaller .md-logo-name { font-size: 24px; }
@media (max-width: 767px) {
    .md-logo-main { height: 38px; min-width: 38px; font-size: 18px; border-radius: 10px; }
    .md-logo-name { font-size: 23px; }
}

/* 2026-08-05 – 1. tartalmi kör: márkák és szolgáltatások */
.md-brand-carousel .owl-stage {
    display: flex;
    align-items: center;
}
.md-brand-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.md-brand-logo {
    width: auto !important;
    max-width: 185px;
    max-height: 72px;
    object-fit: contain;
    padding: 8px 14px;
    filter: saturate(.96);
}
#hogyan-dolgozunk .overflow-hidden.rounded-5 {
    box-shadow: 0 12px 36px rgba(26, 52, 92, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
#hogyan-dolgozunk .overflow-hidden.rounded-5:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(26, 52, 92, .14);
}
#hogyan-dolgozunk .padding40 {
    min-height: 286px;
    display: flex;
    flex-direction: column;
}
#hogyan-dolgozunk .padding40 .spacer-20 {
    margin-top: auto;
}
@media (max-width: 767px) {
    .md-brand-logo { max-width: 145px; max-height: 58px; }
    #hogyan-dolgozunk .padding40 { min-height: auto; }
}

/* 2026-08-05 – Rólunk oldal */
.about-page header:not(.smaller) .md-logo-name { color: #fff; }
.about-page header:not(.smaller) .md-logo-main { background: #fff; color: var(--primary-color, #2f5faa); box-shadow: none; }
.about-page #subheader .de-overlay { background: rgba(22, 50, 94, .48); }
.about-page #bemutatkozas p { line-height: 1.75; }
.about-page .md-about-stats img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; }
.about-page .md-stat-box { min-height: 125px; display: flex; align-items: center; justify-content: center; }
.about-page .md-stat-box h3 { margin-bottom: 4px; }
.about-page .md-stat-box h4 { font-size: 16px; }
.about-page .md-brand-grid > div:not(.mb-2) { min-width: 150px; min-height: 80px; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, box-shadow .25s ease; }
.about-page .md-brand-grid > div:not(.mb-2):hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(26, 52, 92, .10); }
.about-page .md-brand-grid img { max-height: 52px; object-fit: contain; }
.about-page .md-why-panel { box-shadow: 0 24px 65px rgba(35, 77, 144, .16); }
.about-page .md-why-panel h4, .about-page .md-why-panel p { color: #fff; }
.about-page .md-why-panel .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.about-page .md-logo-footer .md-logo-name { color: #fff; }
.about-page .md-logo-footer .md-logo-main { box-shadow: none; }
.about-page .md-footer-phone a { color: #fff; white-space: nowrap; }
.about-page footer a { color: inherit; }
.about-page footer .widget a:hover { color: var(--secondary-color, #7898dd); }
@media (max-width: 991px) {
    .about-page header:not(.smaller) .md-logo-name { color: #12213a; }
    .about-page header:not(.smaller) .md-logo-main { background: var(--primary-color, #2f5faa); color: #fff; }
    .about-page .md-brands-about .col-lg-5 { margin-top: 30px; }
}
@media (max-width: 767px) {
    .about-page .md-brand-grid > div:not(.mb-2) { min-width: 42%; margin: 5px !important; }
    .about-page .md-why-panel { padding: 30px 22px !important; }
    .about-page .md-footer-phone { font-size: 28px; }
    .about-page .md-about-stats .col-6 { width: 100%; }
    .about-page .md-about-stats .spacer-double { display: none; }
}


/* 2026-08-05 – Hogyan dolgozunk / klímatelepítés oldal */
.service-page #subheader .de-overlay { background: rgba(22, 50, 94, .48); }
.service-page .md-service-sidebar a { transition: transform .2s ease, box-shadow .2s ease; }
.service-page .md-service-sidebar a:hover { transform: translateX(5px); box-shadow: 0 12px 28px rgba(26, 52, 92, .10); }
.service-page .col-lg-9 > .row:first-child p { line-height: 1.75; }
.service-page .md-service-reasons > div { min-height: 145px; }
.service-page .md-logo-footer .md-logo-name { color: #fff; }
.service-page .md-logo-footer .md-logo-main { box-shadow: none; }
.service-page .md-footer-phone a { color: #fff; white-space: nowrap; }
.service-page footer a { color: inherit; }
.service-page footer .widget a:hover { color: var(--secondary-color, #7898dd); }
@media (max-width: 991px) {
    .service-page .md-service-sidebar { margin-bottom: 10px; }
}
@media (max-width: 767px) {
    .service-page .md-footer-phone { font-size: 28px; }
    .service-page .md-service-reasons > div { min-height: auto; }
}


/* 2026-08-05 – v6: egységes fejléc, széláramlat logó és lábléc */
.md-brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}
.md-brand-wind {
    width: 38px !important;
    height: 24px !important;
    object-fit: contain;
    flex: 0 0 auto;
}
.md-brand-name {
    color: #12213a;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
}
.md-brand-name strong { font-weight: 850; }
header.smaller .md-brand-name { font-size: 23px; }
header.smaller .md-brand-wind { width: 34px !important; height: auto !important; }
.md-global-footer .md-brand-name { color: #fff; }
.md-global-footer .md-brand-wind { width: 38px !important; filter: brightness(1.35); }
.md-global-footer a { color: inherit; }
.md-global-footer .widget a:hover { color: var(--secondary-color, #7898dd); }
.md-global-footer .md-footer-phone a { color: #fff; white-space: nowrap; }
#topbar .topbar-widget span { color: inherit; display: inline-flex; align-items: center; }
.md-why-home .col-lg-4 > div { min-height: 165px; }
.md-why-home h4 { margin-bottom: 8px; }
@media (max-width: 767px) {
    .md-brand-name { font-size: 22px; }
    .md-brand-wind { width: 33px !important; height: auto !important; }
    .md-global-footer .md-footer-phone { font-size: 28px; }
    .md-why-home .col-lg-4 > div { min-height: auto; }
}


/* ===== MD CoolAir reference projects ===== */
.md-project-card .md-project-cover {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.md-project-card h4 { line-height: 1.3; }
.md-project-card p { color: #6f7a8d; }
.md-project-featured {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}
.md-project-gallery .md-gallery-thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.md-project-gallery a { position: relative; display: block; overflow: hidden; }
.md-project-gallery a::after {
    content: "Megnyitás";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -42%);
    padding: 8px 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(25, 57, 111, .86);
    opacity: 0;
    transition: .25s ease;
    pointer-events: none;
}
.md-project-gallery a:hover::after { opacity: 1; transform: translate(-50%, -50%); }
.md-project-gallery img { transition: transform .35s ease; }
.md-project-gallery a:hover img { transform: scale(1.035); }
.md-project-meta {
    padding: 24px 12px;
    border-radius: 18px;
    background: #f2f5fa;
    height: 100%;
}
.md-project-meta .fw-bold { margin-bottom: 4px; }
.md-project-back { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 991px) {
    .md-project-card .md-project-cover { height: 300px; }
    .md-project-featured { height: 340px; }
}
@media (max-width: 575px) {
    .md-project-card .md-project-cover,
    .md-project-featured,
    .md-project-gallery .md-gallery-thumb { height: 250px; }
}

/* ===== 2026-08-06 – MD CoolAir Klímák ===== */
.menu_side_area .btn-main {
    white-space: nowrap;
}
.md-products-intro {
    padding-top: 85px;
}
.md-product-help {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 26px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2f5597, #7293d8);
    color: #fff;
    box-shadow: 0 22px 55px rgba(33, 70, 132, .20);
}
.md-product-help i {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 30px;
    background: rgba(255,255,255,.16);
}
.md-product-help strong,
.md-product-help span { display: block; color: #fff; }
.md-product-help strong { font-size: 18px; margin-bottom: 4px; }
.md-product-help span { opacity: .88; line-height: 1.55; }
.md-brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding: 14px;
    border-radius: 18px;
    background: #f2f5fa;
}
.md-brand-filter button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    color: #243552;
    background: #fff;
    cursor: pointer;
    transition: .22s ease;
}
.md-brand-filter button:hover,
.md-brand-filter button.active {
    color: #fff;
    background: #315692;
    box-shadow: 0 9px 22px rgba(49,86,146,.22);
    transform: translateY(-1px);
}
.md-products-grid-section { background: #f7f9fc; }
.md-product-item { transition: opacity .22s ease, transform .22s ease; }
.md-product-item.is-hidden { display: none; }
.md-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6ebf3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(26, 53, 96, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.md-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26, 53, 96, .15);
}
.md-product-image {
    position: relative;
    height: 315px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f3f6fb);
}
.md-product-image::after {
    content: "";
    position: absolute;
    left: 10%; right: 10%; bottom: 18px;
    height: 22px;
    border-radius: 50%;
    background: rgba(35,62,105,.08);
    filter: blur(10px);
}
.md-product-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform .35s ease;
}
.md-product-card:hover .md-product-image img { transform: scale(1.035); }
.md-brand-chip {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: #315692;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 8px 20px rgba(49,86,146,.22);
}
.md-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
}
.md-product-kicker {
    margin-bottom: 5px;
    color: #7087b5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
}
.md-product-body h3 { margin-bottom: 14px; }
.md-product-body > p { line-height: 1.7; }
.md-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 6px 0 22px;
    padding: 0;
    list-style: none;
}
.md-feature-list li {
    position: relative;
    padding-left: 23px;
    color: #31415d;
    font-size: 14px;
    font-weight: 650;
}
.md-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #315692;
    font-weight: 900;
}
.md-capacity-list {
    margin-top: auto;
    margin-bottom: 18px;
    border: 1px solid #dae2ef;
    border-radius: 15px;
    background: #f7f9fc;
    overflow: hidden;
}
.md-capacity-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    color: #172844;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.md-capacity-list summary::-webkit-details-marker { display: none; }
.md-capacity-list summary::after {
    content: "+";
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #315692;
    font-size: 19px;
    line-height: 1;
}
.md-capacity-list[open] summary::after { content: "−"; }
.md-capacity-list summary span {
    margin-left: auto;
    color: #7e8ca2;
    font-size: 12px;
    font-weight: 600;
}
.md-capacity-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 17px;
    border-top: 1px solid #e1e7f0;
    background: #fff;
}
.md-capacity-row b { color: #253650; font-size: 14px; }
.md-capacity-row strong { color: #315692; text-align: right; }
.md-capacity-row strong.md-status { max-width: 310px; font-size: 12.5px; line-height: 1.35; }
.md-product-cta {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px !important;
    text-align: center;
    line-height: 1.25;
    font-size: 14px;
}
.md-price-disclaimer {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 42px;
    padding: 28px 30px;
    border: 1px solid #d7e0ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(26,53,96,.07);
}
.md-price-disclaimer i {
    flex: 0 0 auto;
    color: #315692;
    font-size: 34px;
}
.md-price-disclaimer strong { display: block; margin-bottom: 5px; color: #172844; font-size: 18px; }
.md-price-disclaimer p { margin: 0; line-height: 1.65; }
@media (max-width: 1199px) {
    .menu_side_area .btn-main { font-size: 12px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 767px) {
    .md-products-intro { padding-top: 55px; }
    .md-brand-filter { gap: 7px; padding: 10px; }
    .md-brand-filter button { padding: 8px 13px; font-size: 13px; }
    .md-product-image { height: 255px; }
    .md-product-body { padding: 25px 22px; }
    .md-feature-list { grid-template-columns: 1fr; }
    .md-capacity-row { grid-template-columns: 1fr auto; }
    .md-capacity-row strong.md-status { max-width: 190px; }
    .md-price-disclaimer { padding: 23px 20px; }
}
