/*
Theme Name: Autodoprava Cafourek V1.9
Author: O. L. Construction
Description: Moderní jednostránková šablona pro Autodopravu Cafourek.
Version: 1.9
*/
:root{--red:#df1717;--dark:#080b0d;--ink:#111;--muted:#666;--line:#e8e8e8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}a{text-decoration:none;color:inherit}.wrap{width:min(1180px,92%);margin:auto}.top{background:#070a0c;color:#fff;position:sticky;top:0;z-index:20}.nav{height:78px;display:flex;align-items:center;gap:34px}.brand{font-weight:900;font-size:22px;line-height:.9;margin-right:auto}.brand b{color:var(--red);font-size:29px}.menu{display:flex;gap:28px;font-weight:800;font-size:14px}.menu a:hover{color:#ff3434}.call{background:var(--red);padding:14px 20px;border-radius:5px;font-size:20px;font-weight:900}.hero{min-height:470px;background:#111;color:#fff;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.75) 35%,rgba(0,0,0,.05) 75%)}.heroimg{position:absolute;right:0;top:0;width:68%;height:100%;object-fit:cover}.hero .wrap{position:relative;z-index:2;padding-top:65px}.eyebrow{color:var(--red);font-weight:900;font-size:14px}.hero h1{font-size:52px;line-height:1.02;margin:15px 0 18px;max-width:560px}.hero h1 span{color:#ef1d1d}.hero p{font-size:19px;line-height:1.5}.btn{display:inline-block;background:var(--red);color:#fff;font-weight:900;border-radius:5px;padding:15px 22px;margin-top:10px}.features{background:#090c0e;color:#fff}.featuregrid{display:grid;grid-template-columns:repeat(4,1fr)}.feat{padding:25px 22px;border-right:1px solid #444;display:flex;gap:14px}.feat:last-child{border:0}.icon{font-size:32px;color:var(--red)}.feat b{display:block;margin-bottom:7px}.feat small{color:#ddd;line-height:1.45}.section{padding:55px 0}.center{text-align:center}.section h2{font-size:36px;margin:8px 0}.sub{color:#666}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:34px}.card{border:1px solid #ddd;border-radius:7px;padding:18px;background:#fff;box-shadow:0 5px 20px #0000000d;min-height:275px;display:flex;flex-direction:column}.vol{background:var(--red);color:#fff;font-weight:900;border-radius:4px;padding:8px 11px;align-self:flex-start}.card h3{font-size:20px;margin:20px 0 8px}.card p{font-size:13px;color:#555;line-height:1.45}.price-label{margin-top:auto;font-size:12px}.price{font-size:26px;color:var(--red);font-weight:900;margin:7px 0 2px}.vat{color:var(--red);font-weight:900;text-transform:uppercase}.mini-call{border:1px solid var(--red);color:var(--red);font-size:11px;font-weight:900;text-align:center;padding:9px;margin-top:14px;border-radius:4px}.transport{max-width:760px;margin:24px auto 0;background:#f4f4f4;border-radius:10px;padding:18px 26px;display:flex;align-items:center;justify-content:space-between;gap:30px}.transport strong{font-size:25px;color:var(--red)}.gallery{border-top:1px solid #ddd}.gallerygrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}.gallerygrid img{width:100%;height:165px;object-fit:cover;border-radius:6px}.outline{display:inline-block;border:1px solid var(--red);color:var(--red);padding:12px 20px;border-radius:4px;font-weight:900;margin-top:22px}.cta{background:#0b0d0f;color:#fff;padding:32px 0}.ctain{display:flex;align-items:center;justify-content:space-between}.ctain h2{font-size:31px;margin:0 0 6px}.footer{background:#090c0e;color:#ddd;padding:42px 0 18px}.footgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:60px}.footer h4{color:#fff}.footer p,.footer li{font-size:14px;line-height:1.7}.footer ul{list-style:none;padding:0}.copyright{border-top:1px solid #222;margin-top:30px;padding-top:15px;color:#777;font-size:12px;display:flex;justify-content:space-between}@media(max-width:900px){.menu{display:none}.cards{grid-template-columns:repeat(2,1fr)}.featuregrid{grid-template-columns:1fr 1fr}.gallerygrid{grid-template-columns:1fr 1fr}.heroimg{width:100%;opacity:.55}.hero h1{font-size:42px}.footgrid{grid-template-columns:1fr}.ctain{display:block}.call{font-size:15px}}@media(max-width:560px){.cards,.featuregrid,.gallerygrid{grid-template-columns:1fr}.hero h1{font-size:36px}.nav{gap:8px}.brand{font-size:15px}.brand b{font-size:20px}.call{padding:11px}.transport{display:block}.copyright{display:block}}
/* v1.2: align pricing content consistently across all cards */
.card h3{min-height:48px}
.card p{min-height:58px;margin-bottom:0}
.card .price{margin-top:auto}
.card .vat{min-height:20px}
.card .mini-call{margin-top:14px}

/* v1.5: simplified phone CTAs + clickable footer email */
.mail-btn{display:inline-block;color:#fff;border:1px solid var(--red);border-radius:4px;padding:7px 10px;margin:5px 0;font-weight:700;line-height:1.2;transition:background .2s ease,color .2s ease}
.mail-btn:hover,.mail-btn:focus{background:var(--red);color:#fff}
.ctain{justify-content:flex-start}

/* v1.6: fourth benefit without repeated phone + clickable footer phone */
.contact-btn{display:inline-block;color:#fff;border:1px solid var(--red);border-radius:4px;padding:7px 10px;margin:5px 0;font-weight:700;line-height:1.2;transition:background .2s ease,color .2s ease}
.contact-btn:hover,.contact-btn:focus{background:var(--red);color:#fff}

.lightning{color:var(--red)!important;font-family:Arial,Helvetica,sans-serif;font-weight:900}


/* v1.9: dedicated gallery page + lightbox */
.gallery-page{padding:58px 0 72px;background:#fff;min-height:620px}
.gallery-page-head{text-align:center;max-width:760px;margin:0 auto 32px}
.gallery-page-head h1{font-size:42px;margin:8px 0 10px}
.gallery-page-head p{color:var(--muted);line-height:1.6}
.full-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.gallery-item{display:block;border:0;padding:0;background:none;cursor:zoom-in;border-radius:8px;overflow:hidden;aspect-ratio:4/3}
.gallery-item img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.gallery-item:hover img{transform:scale(1.025)}
.gallery-back{display:inline-block;margin-top:28px;border:1px solid var(--red);color:var(--red);padding:12px 18px;border-radius:4px;font-weight:900}
.gallery-back:hover{background:var(--red);color:#fff}
.gallery-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9999;display:none;align-items:center;justify-content:center;padding:24px}
.gallery-lightbox.is-open{display:flex}
.gallery-lightbox img{max-width:min(1200px,92vw);max-height:84vh;object-fit:contain;border-radius:6px}
.lightbox-close,.lightbox-prev,.lightbox-next{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;border-radius:6px;font-size:30px;line-height:1;width:48px;height:48px}
.lightbox-close{top:18px;right:18px;font-size:26px}
.lightbox-prev{left:22px;top:50%;transform:translateY(-50%)}
.lightbox-next{right:22px;top:50%;transform:translateY(-50%)}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background:var(--red)}
@media(max-width:900px){.full-gallery-grid{grid-template-columns:repeat(2,1fr)}.gallery-page-head h1{font-size:36px}}
@media(max-width:560px){.full-gallery-grid{grid-template-columns:1fr}.gallery-page{padding-top:38px}.lightbox-prev{left:8px}.lightbox-next{right:8px}.gallery-page-head h1{font-size:32px}}
