/*
Theme Name: DJservis
Description: Web autoservisu s jednoduchou administrací textů a fotografií.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: djservis
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

        :root {
            --bg-color: #111;
            --text-color: #eee;
            --accent-color: #d32f2f;
            --accent-hover: #b71c1c;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
        }
        /* Hlavička a navigace */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 40px;
            background-color: #000;
            border-bottom: 2px solid var(--accent-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        nav .logo-img {
            height: 70px;
            transition: transform 0.3s ease;
        }
        nav .logo-img:hover {
            transform: scale(1.05);
        }
        .nav-links {
            list-style: none;
            display: flex;
            gap: 30px;
            margin: 0;
            padding: 0;
        }
        .nav-links li a {
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1em;
            transition: color 0.3s;
        }
        .nav-links li a:hover {
            color: var(--accent-color);
        }
        .hamburger {
            display: none;
            font-size: 30px;
            cursor: pointer;
            color: var(--accent-color);
        }

        /* Hero sekce s pozadím */
        .hero {
            position: relative;
            background-color: #222;
            background-size: cover;
            background-position: center;
            padding: 120px 20px;
            text-align: center;
        }
        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.75);
            z-index: 1;
        }
        .hero-content {
            position: relative;
            z-index: 2;
        }
        .hero h1 {
            font-size: 4em;
            margin: 0 0 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 5px #000;
        }
        .hero p.subtitle {
            font-size: 1.5em;
            color: #ccc;
            margin-bottom: 30px;
        }
        .open-hours {
            font-size: 1.3em;
            font-weight: bold;
            color: var(--accent-color);
            background: rgba(0, 0, 0, 0.6);
            display: inline-block;
            padding: 10px 20px;
            border-radius: 5px;
            margin-bottom: 30px;
            border: 1px solid var(--accent-color);
        }
        .btn {
            display: inline-block;
            padding: 15px 40px;
            background-color: var(--accent-color);
            color: #fff;
            text-decoration: none;
            font-size: 1.5em;
            font-weight: bold;
            border-radius: 50px;
            transition: background 0.3s, transform 0.2s;
            box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
        }
        .btn:hover {
            background-color: var(--accent-hover);
            transform: translateY(-3px);
        }

        /* Služby */
        .services, .about, .contact {
            padding: 60px 20px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        h2 {
            font-size: 2.5em;
            margin-bottom: 40px;
            color: #fff;
            border-bottom: 3px solid var(--accent-color);
            display: inline-block;
            padding-bottom: 10px;
        }
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        .box {
            background: #1e1e1e;
            padding: 30px;
            border-radius: 8px;
            border-bottom: 4px solid var(--accent-color);
            transition: transform 0.3s;
        }
        .box:hover {
            transform: translateY(-10px);
        }
        .box h3 {
            font-size: 1.5em;
            margin-top: 0;
            color: var(--accent-color);
        }

        /* Kontakt */
        .contact-info {
            background: #1e1e1e;
            padding: 40px;
            border-radius: 8px;
            font-size: 1.2em;
            line-height: 1.8;
            margin-bottom: 40px;
        }
        .contact-info a {
            color: var(--accent-color);
            text-decoration: none;
            font-weight: bold;
        }
        .contact-info a:hover {
            text-decoration: underline;
        }
        
        /* Mapa */
        .map-wrapper {
            width: 100%;
            height: 400px;
            border-radius: 8px;
            overflow: hidden;
        }
        .map-wrapper iframe {
            width: 100%;
            height: 100%;
            border: none;
            filter: grayscale(100%) opacity(0.8);
            transition: filter 0.5s ease, opacity 0.5s ease;
        }
        .map-wrapper iframe:hover {
            filter: grayscale(0%) opacity(1);
        }

        /* Patička */
        footer {
            background: #000;
            padding: 20px;
            text-align: center;
            border-top: 2px solid var(--accent-color);
            color: #777;
        }

        /* Responzivita (Mobily) */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                position: absolute;
                top: 90px;
                left: 0;
                background: rgba(0,0,0,0.95);
                padding: 20px 0;
            }
            .nav-links.active {
                display: flex;
            }
            .hamburger {
                display: block;
            }
            .hero h1 {
                font-size: 2.5em;
            }
            .btn {
                font-size: 1.2em;
                padding: 12px 30px;
            }
        }
    
*{box-sizing:border-box}html{scroll-behavior:smooth}section{scroll-margin-top:110px}
button.hamburger{border:0;background:transparent}.brand{color:white;text-decoration:none;font-size:1.8rem;font-weight:800}
.hero{overflow:hidden}.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-overlay{z-index:1}
.announcement{padding:16px 20px;text-align:center;background:#d32f2f;color:white;white-space:pre-line}
.gallery{padding:60px 20px;max-width:1200px;margin:auto;text-align:center}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.gallery-grid figure{margin:0}.gallery-grid img{width:100%;height:240px;object-fit:cover;border-radius:8px}.gallery-grid figcaption{padding:10px;color:#ccc}
.box p{white-space:pre-line;overflow-wrap:anywhere}.contact-info{overflow-wrap:anywhere}.subtitle{white-space:pre-line}
a:focus-visible,button:focus-visible{outline:3px solid white;outline-offset:5px}.map-link{margin-top:24px}
body.admin-bar nav{top:32px}@media(max-width:782px){body.admin-bar nav{top:46px}}@media(max-width:600px){body.admin-bar nav{top:0}}
@media(max-width:768px){nav{padding:10px 20px;min-height:90px}.hero{padding:85px 20px}.hero h1{overflow-wrap:anywhere}.contact-info{padding:25px 16px}.nav-links li{padding:8px 20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

nav .logo-img{width:auto;max-width:220px;object-fit:contain}

.hero{min-height:580px;display:flex;align-items:center;justify-content:center}.hero-content{width:100%;max-width:1000px}.hero-overlay{background:linear-gradient(90deg,rgba(0,0,0,.64),rgba(0,0,0,.55) 50%,rgba(0,0,0,.64))}.hero-photo{object-position:center 58%}.hero h1{font-size:clamp(3rem,7vw,5.5rem)}.hero p.subtitle{color:#fff;text-shadow:0 2px 8px #000}
.towing{background:linear-gradient(120deg,#231415,#191919);border-top:1px solid #583032;border-bottom:1px solid #583032;padding:48px 24px}.towing-inner{max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:40px}.towing h2{margin:0 0 12px;font-size:2.2rem;border:0;padding:0}.towing-label{color:#f06b6b;font-size:.8rem;font-weight:700;letter-spacing:2px;margin:0 0 14px}.towing-description{max-width:650px;line-height:1.7;margin:0;color:#ddd;white-space:pre-line}.towing .btn{font-size:1.15rem;text-align:center;flex-shrink:0;border-radius:8px}.tow-phone{display:block;font-size:.9rem;font-weight:400;margin-top:8px}
@media(max-width:768px){.hero{min-height:530px}.hero-photo{object-position:50% 58%}.towing-inner{flex-direction:column;align-items:flex-start;gap:24px}.towing .btn{width:100%}.nav-links{gap:8px}.hero .btn{padding:14px 24px}}

.towing-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px}.towing-photo{min-width:0}.towing-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 55%;border-radius:12px;border:1px solid #583032}.towing-copy{display:flex;flex-direction:column;align-items:flex-start;gap:28px;min-width:0}.towing-copy .btn{max-width:100%}nav .logo-img{height:88px;width:auto;display:block}nav{min-height:108px}.nav-links{gap:24px}section{scroll-margin-top:130px}
@media(max-width:768px){.towing-inner{grid-template-columns:minmax(0,1fr);gap:28px}.towing-copy{width:100%}.towing-photo img{aspect-ratio:4/3}nav .logo-img{height:70px}nav{min-height:90px}.nav-links{gap:8px}section{scroll-margin-top:105px}}

/* Odtah ve stylu původních karet služeb. */
.towing{max-width:1200px;margin:0 auto;padding:0 20px 60px;background:transparent;border:0}.towing-inner{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0;background:#1e1e1e;border-bottom:4px solid #d32f2f;border-radius:8px;overflow:hidden}.towing-photo{padding:24px;display:flex;align-items:center}.towing-photo img{border:0;border-radius:6px;aspect-ratio:3/2;object-position:center;height:auto;width:100%;filter:contrast(1.025)}.towing-copy{padding:34px 32px 34px 12px;gap:24px}.towing-icon{display:grid;place-items:center;width:58px;height:58px;background:#2e1b1b;border-radius:8px;margin:0 0 20px}.towing-icon img{width:36px;height:36px;display:block}.towing h2{font-size:2.2rem;margin:0 0 18px}.towing .btn{border-radius:50px;padding:15px 34px;font-size:1.15rem}.towing-description{font-size:1.05rem}.tow-phone{font-size:.9rem}
@media(max-width:768px){.towing-inner{grid-template-columns:minmax(0,1fr)}.towing-photo{padding:20px 20px 0}.towing-copy{padding:28px 24px}.towing-photo img{aspect-ratio:3/2}.towing .btn{width:auto;max-width:100%}.towing h2{font-size:2rem}}

.service-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;background:#2e1b1b;border-radius:8px}.service-icon img{display:block;width:38px;height:38px}.towing-icon{width:86px}.car-trailer-icon{display:flex;align-items:center;width:70px;height:38px;color:#ef5555;gap:3px}.car-trailer-icon>img{width:36px;height:36px}.flat-trailer{position:relative;width:30px;height:4px;border:2px solid currentColor;transform:translateY(7px);border-radius:1px}.flat-trailer:before{content:'';position:absolute;left:-7px;top:0;width:6px;border-top:2px solid currentColor}.flat-trailer:after{content:'';position:absolute;left:9px;top:2px;width:8px;height:8px;border:2px solid currentColor;border-radius:50%;background:#2e1b1b}.map-wrapper{height:380px}.map-wrapper iframe{filter:none}

.car-trailer-icon>img{transform:scaleX(-1)}

.tyre-pictogram{display:block;position:relative;width:38px;height:38px;border:4px solid #ef5555;border-radius:50%;box-shadow:inset 0 0 0 3px #2e1b1b}.tyre-pictogram:before{content:'';position:absolute;inset:5px;border:2px solid #ef5555;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg 42deg,#ef5555 42deg 48deg,transparent 48deg 132deg,#ef5555 132deg 138deg,transparent 138deg 222deg,#ef5555 222deg 228deg,transparent 228deg 312deg,#ef5555 312deg 318deg,transparent 318deg)}.tyre-pictogram:after{content:'';position:absolute;inset:12px;background:#ef5555;border-radius:50%}
.services .grid-container{grid-template-columns:repeat(5,minmax(0,1fr))}.services .box{padding:28px 18px}.services .box h3{font-size:1.3rem}.towing-icon{width:116px;height:68px}.car-trailer-icon{width:98px;height:52px;gap:10px}.car-trailer-icon>img{width:52px;height:52px;flex-shrink:0;transform:scaleX(-1)}.flat-trailer{width:36px;height:6px;flex-shrink:0;transform:translateY(7px);border-radius:2px}.flat-trailer:before{left:-12px;top:0;width:11px}.flat-trailer:after{width:10px;height:10px;left:16px;top:0}
@media(max-width:1000px){.services .grid-container{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.services .grid-container{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.services .grid-container{grid-template-columns:minmax(0,1fr)}}

/* Tři služby v horní řadě a dvě vystředěné v dolní. */
.services .grid-container{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;align-items:stretch}.services .grid-container>.box{flex:0 0 calc((100% - 40px)/3);padding:30px 24px}.services .box h3{font-size:1.45rem}.services .box p{line-height:1.65;margin-bottom:0}.towing-icon{width:96px;height:68px}.towing-icon .tow-truck-pictogram{width:72px;height:48px;transform:none;object-fit:contain}
@media(max-width:680px){.services .grid-container>.box{flex-basis:calc((100% - 20px)/2);padding:26px 18px}}@media(max-width:420px){.services .grid-container>.box{flex-basis:100%}}

.nav-right{display:flex;align-items:center;gap:24px}.social-links{display:flex;align-items:center;gap:10px}.social-links a{display:grid;place-items:center;min-width:42px;min-height:42px;border:1px solid #383838;border-radius:50%;background:#161616;transition:background .2s,border-color .2s}.social-links a:hover{background:#d32f2f;border-color:#d32f2f}.social-links img{display:block;width:22px;height:22px}@media(max-width:768px){.nav-right{gap:12px}.nav-right .hamburger{order:3}.social-links{gap:8px}.social-links a{min-width:42px;min-height:42px}}
