/*
Theme Name: M.R. Corporation
Theme URI: https://mrcorporation.sk
Author: Tvoj webmaster
Description: Vlastná téma pre M.R. Corporation s.r.o. - elektroinštalácie, IT, revízie, servis
Version: 1.0
License: Private
Text Domain: mrcorporation
*/

/* ===== ZÁKLADNÉ NASTAVENIA ===== */
:root {
    --primary-color: #E10613;
    --dark-bg: #1A1A1A;
    --light-bg: #F8F8F8;
    --text-dark: #333333;
    --text-light: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

footer {
    flex-shrink: 0;
}

/* Svetlý režim */
body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Tmavý režim */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* ===== HLAVIČKA ===== */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0;
}

.logo img {
    max-height: 85px;
    width: auto;
}

.logo-light {
    display: block;
}
.logo-dark {
    display: none;
}
body.dark-mode .logo-light {
    display: none;
}
body.dark-mode .logo-dark {
    display: block;
}

/* ===== HLAVNÉ MENU ===== */
.main-navigation {
    flex: 1;
    margin: 0 20px;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    justify-content: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 23px;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: var(--primary-color);
}

.main-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 100;
}

body.dark-mode .main-menu ul {
    background: #2d2d2d;
}

.main-menu li:hover > ul {
    display: block;
}

.main-menu ul li {
    white-space: nowrap;
    padding: 5px 20px;
}

/* ===== OVLÁDACIE PRVKY V HLAVIČKE ===== */
.header-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switch, .theme-switch {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: bold;
}

.lang-switch a {
    color: white;
    text-decoration: none;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

.contact-btn:hover {
    opacity: 0.9;
}

/* ===== PÄTIČKA ===== */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    margin-top: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.contact-icon {
    margin-right: 8px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    display: inline-block;
}

.social-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 24px;
    color: var(--primary-color);
}

.footer-column ul li,
.footer-column ul li a,
footer p,
footer a {
    color: #ffffff;
}

.footer-column h3,
.contact-icon,
.social-icon {
    color: var(--primary-color);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    border: none;
    font-size: 24px;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation {
        width: 100%;
        margin: 15px 0 0;
    }
    
    .main-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-icon {
        width: auto;
        margin-right: 5px;
    }
}

@media (max-width: 480px) {
    .main-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .main-menu ul {
        position: static;
        box-shadow: none;
        padding: 0 0 0 20px;
    }
    
    body.dark-mode .main-menu ul {
        background: transparent;
    }
}

/* ===== ODSTRÁNENIE ODRÁŽOK ===== */
.main-menu ul,
.main-menu ul li,
.footer-column ul,
.footer-column ul li {
    list-style: none;
    list-style-type: none;
}

.main-menu ul li::before,
.footer-column ul li::before {
    display: none;
    content: none;
}

/* ===== ŠPECIFICKÉ ÚPRAVY PRE STRÁNKU KONTAKT ===== */
.page-id-13 main,
.page-id-17 main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-id-13 .wp-block-group,
.page-id-13 .wp-block-columns,
.page-id-17 .wp-block-group,
.page-id-17 .wp-block-columns {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-id-13 .wp-block-column,
.page-id-17 .wp-block-column {
    padding: 0 15px;
}

.page-id-13 form,
.page-id-17 form {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-id-13 .wp-block-embed,
.page-id-13 .wp-block-google-maps,
.page-id-13 iframe,
.page-id-17 .wp-block-embed,
.page-id-17 .wp-block-google-maps,
.page-id-17 iframe {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Medzery */
.page-id-13 h1,
.page-id-17 h1 {
    margin-bottom: 40px;
}

.page-id-13 .wp-block-columns,
.page-id-17 .wp-block-columns {
    margin-bottom: 50px;
}

.page-id-13 .wp-block-embed,
.page-id-13 .wp-block-google-maps,
.page-id-13 iframe,
.page-id-17 .wp-block-embed,
.page-id-17 .wp-block-google-maps,
.page-id-17 iframe {
    margin-bottom: 40px;
}

.page-id-13 form,
.page-id-17 form {
    margin-bottom: 30px;
}

.page-id-13 h2,
.page-id-13 h3,
.page-id-17 h2,
.page-id-17 h3 {
    text-align: left;
}

/* Odkazy v kontakte */
.page-id-13 a[href^="tel:"],
.page-id-13 a[href^="mailto:"],
.page-id-17 a[href^="tel:"],
.page-id-17 a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.page-id-13 a[href^="tel:"]:hover,
.page-id-13 a[href^="mailto:"]:hover,
.page-id-17 a[href^="tel:"]:hover,
.page-id-17 a[href^="mailto:"]:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* WPForms – tmavý režim */
body.dark-mode .wpforms-container,
body.dark-mode .wpforms-container * {
    color: #fff !important;
}

body.dark-mode .wpforms-container input,
body.dark-mode .wpforms-container textarea,
body.dark-mode .wpforms-container select {
    background-color: #444 !important;
    color: #fff !important;
    border-color: #666 !important;
}

body.dark-mode .wpforms-container button[type=submit] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-mode .wpforms-container button[type=submit]:hover {
    background-color: #b0040f !important;
}

/* ===== NOVÉ ŠTÝLY PRE DOMOVSKÚ STRÁNKU ===== */

/* Hero sekcia */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-background.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
}

/* Služby – karty */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

body.dark-mode .service-card {
    background: #2d2d2d;
}
body.dark-mode .service-card p {
    color: var(--text-light);
}

/* Sekcia dôvery */
.trust {
    background: #fff;
    padding: 60px 20px;
    margin-bottom: 60px;
    border-radius: 10px;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.trust-label {
    font-size: 18px;
    color: var(--text-dark);
}

body.dark-mode .trust {
    background: #2d2d2d;
}
body.dark-mode .trust-label {
    color: var(--text-light);
}

/* Prečo my – len červené fajky z CSS */
.why {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 10px;
}

.why h2 {
    margin-bottom: 30px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.why-grid div {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding-left: 5px;
}

/* Fajka – červená, len z CSS */
.why-grid div::before {
    content: "✔";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
}

/* Svetlý režim – tmavý text */
body:not(.dark-mode) .why-grid div {
    color: #333;
}

/* Tmavý režim – biely text */
body.dark-mode .why {
    background: #2d2d2d;
}
body.dark-mode .why-grid div {
    color: #fff;
}
body.dark-mode .why-grid div::before {
    color: var(--primary-color);
}

/* Obrázková sekcia */
.image-showcase {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/technician.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 10px;
    color: #fff;
}

.image-showcase-content {
    max-width: 700px;
    padding: 20px;
}

.image-showcase h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.image-showcase p {
    font-size: 18px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .image-showcase {
        min-height: 400px;
    }
    .image-showcase h2 {
        font-size: 28px;
    }
}

/* CTA sekcia */
.cta {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
}

.cta h2 {
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 25px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

/* Tlačidlá */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    border: 1px solid #fff;
    color: #fff;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
}

/* Štýly pre karty na stránke Projektovanie */
.page-id-37 .karta {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.page-id-XX .karta:hover {
    transform: translateY(-5px);
}

body.dark-mode .page-id-XX .karta {
    background: #2d2d2d;
    color: #fff;
}