/*
Theme Name: TURBOGRUP Performance
Theme URI: https://turbogrup.com/
Author: TURBOGRUP
Description: Custom lightweight Bulgarian automotive WordPress theme. No builders, React or embeds.
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: turbogrup
*/
:root{--bg:#081119;--panel:#111c26;--orange:#ff6818;--white:#f8f9fb;--muted:#b8c0c9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--white);font-family:Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}img{max-width:100%;height:auto}.container{max-width:1320px;margin:auto;padding:0 24px}.site-header{background:#0b141d;border-bottom:1px solid #26323b;position:relative;z-index:10}.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand img{width:295px;max-height:75px;object-fit:contain}.nav{display:flex;gap:25px;align-items:center;flex-wrap:wrap}.nav a{font-size:14px;font-weight:700}.nav a:hover,.nav .current-menu-item>a{color:var(--orange)}.nav ul{list-style:none;display:flex;gap:22px;padding:0;margin:0}.contact-short{display:flex;gap:16px;font-size:20px;color:var(--orange)}.menu-toggle{display:none;background:var(--orange);color:white;border:0;padding:10px 14px;border-radius:4px}.hero{position:relative;min-height:465px;background:radial-gradient(circle at 70% 45%,#30404b 0,#09131b 55%,#070d13 100%);overflow:hidden}.hero:before{content:'';position:absolute;left:-55px;top:0;width:110px;height:100%;background:linear-gradient(115deg,#ff6b15,#712600);transform:skew(-24deg);opacity:.85}.hero-img{position:absolute;right:0;top:0;height:100%;width:53%;object-fit:cover;object-position:50% 50%;mask-image:linear-gradient(to right,transparent 0%,black 25%)}.hero-content{position:relative;z-index:2;padding-top:72px;padding-bottom:60px;max-width:760px}.hero h1{font-size:clamp(30px,4vw,55px);line-height:1.08;text-transform:uppercase;font-style:italic;font-weight:900;margin:0 0 26px;letter-spacing:-1px;text-shadow:0 2px 6px #0008}.hero h1 em{font-style:inherit;color:var(--orange);display:block}.hero p{color:#e4e9ee;font-size:18px;margin-bottom:30px}.buttons{display:flex;gap:14px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(#ff802b,#ec4e06);color:white;font-weight:800;padding:14px 22px;border-radius:8px;text-transform:uppercase;border:1px solid #ff842e}.btn-outline{background:transparent;border:1px solid #d6dce0}.btn:hover{color:white;filter:brightness(1.13)}.benefits{background:linear-gradient(90deg,#101a24,#192631,#101a24);border-top:1px solid #3c4953;border-bottom:1px solid #3c4953}.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr)}.benefit{display:flex;gap:16px;align-items:center;justify-content:center;padding:19px 12px;font-weight:700;border-right:1px solid #56616a}.benefit:last-child{border:0}.benefit .symbol{color:var(--orange);font-size:30px}.section{padding:50px 0}.section-title{text-align:center;text-transform:uppercase;font-size:32px;font-style:italic;margin:0 0 28px}.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.service-card{position:relative;min-height:245px;overflow:hidden;border:1px solid #42505b;background:#182631;border-radius:5px}.service-card img{width:100%;height:245px;object-fit:cover;filter:brightness(.66);transition:transform .3s}.service-card:hover img{transform:scale(1.04)}.service-card:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#05090ee8)}.service-card .service-name{position:absolute;bottom:20px;left:17px;right:38px;z-index:1;font-weight:900;text-transform:uppercase;font-style:italic;font-size:19px}.service-card .arrow{position:absolute;bottom:0;right:0;background:var(--orange);padding:10px 14px;z-index:2;font-size:22px}.brand-strip{background:linear-gradient(#e5e9ed,#aab4bf);color:#18212b;padding:24px 0}.brand-grid{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;gap:10px;align-items:center}.brand-grid strong{font-size:clamp(19px,2.4vw,30px);font-style:italic;border-right:1px solid #7b8791}.brand-grid strong:last-child{border:0}.content-panel{background:#101d28;border:1px solid #33414b;border-radius:8px;padding:28px}.page-head{background:#101d28;padding:42px 0;border-bottom:3px solid var(--orange)}.page-head h1{margin:0;text-transform:uppercase}.prose{max-width:900px}.prose a{color:var(--orange)}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{background:#13212b;padding:22px;border:1px solid #32434e;border-radius:6px}.post-card h3{margin-top:0}.muted{color:var(--muted)}.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.contact-line{font-size:19px;margin:12px 0}.map-link{display:block;background:linear-gradient(145deg,#283c49,#0b141b);border:1px solid #637481;border-radius:8px;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px}.map-link .pin{font-size:60px;color:var(--orange)}.site-footer{background:#060c11;border-top:1px solid #26313b;padding:26px 0;color:#adb7c0;font-size:14px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:1000px){.brand img{width:210px}.nav ul{gap:12px}.hero-img{width:58%;opacity:.65}.services-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:740px){.header-inner{min-height:70px}.brand img{width:190px}.menu-toggle{display:block}.nav{display:none;position:absolute;top:70px;left:0;right:0;background:#0b141d;padding:18px 24px}.nav.open{display:block}.nav ul{flex-direction:column}.contact-short{margin-left:auto}.hero{min-height:460px}.hero-img{width:100%;opacity:.32;mask-image:none}.hero-content{padding-top:58px}.hero h1{font-size:36px}.hero p{font-size:16px}.benefit-grid{grid-template-columns:repeat(2,1fr)}.benefit{font-size:13px}.services-grid,.contact-layout,.posts-grid{grid-template-columns:1fr}.brand-grid{grid-template-columns:repeat(2,1fr)}.brand-grid strong{font-size:20px}.section{padding:35px 0}}
/* v2.1: editor-controlled home sections and service articles */
.brand img{width:310px;max-height:75px;object-fit:contain;object-position:left center}
.hero-description{font-size:18px;color:#e4e9ee;margin-bottom:25px;max-width:750px}.hero-description p{margin:0 0 15px}.hero h1{white-space:pre-line}.hero h1 strong,.hero h1 em{color:var(--orange)}
.homepage-prose{padding:18px 24px}.homepage-prose .wp-block-columns{margin:0;gap:16px}.homepage-prose .wp-block-column{text-align:center;font-weight:700;padding:12px;border-right:1px solid #56616a}.homepage-prose .wp-block-column:last-child{border:0}
.brand-content{font-size:24px;font-weight:800;text-align:center}.brand-content .wp-block-columns{margin:0}.brand-content .wp-block-column{border-right:1px solid #8e9ba8}.brand-content .wp-block-column:last-child{border:0}
.editor-hint{padding:16px;border:1px dashed #ff6818;border-radius:6px;color:#f8cfb8}.service-featured img{max-width:100%;height:auto;border-radius:8px;margin-bottom:22px}.service-article{max-width:1100px}.service-article img{height:auto}
@media(max-width:740px){.brand img{width:190px}.homepage-prose .wp-block-columns,.brand-content .wp-block-columns{display:block}.homepage-prose .wp-block-column,.brand-content .wp-block-column{border-right:0;border-bottom:1px solid #55606a}}

/* v2.2: five service cards */
@media(min-width:1100px){.services-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.service-card,.service-card img{min-height:215px;height:215px}.service-card .service-name{font-size:16px}}

/* v2.4 — Six service cards in one row on desktop; responsive below */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card, .service-card img {
    height: 210px;
    min-height: 210px;
  }
  .service-card .service-name {
    font-size: 14px;
    line-height: 1.3;
    left: 12px;
    right: 36px;
    bottom: 15px;
  }
  .service-card .arrow { padding: 8px 11px; }
}
@media (min-width: 740px) and (max-width: 1199px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 480px) and (max-width: 739px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* TURBOGRUP v2.5 - editable Brands and Products section */
.brand-strip{background:#0c1822;color:#f8f9fb;padding:52px 0 58px;border-top:1px solid #283b49;border-bottom:1px solid #283b49}
.brand-content{font-size:16px;font-weight:400;text-align:center}
.brand-content h2{font-size:clamp(25px,3vw,34px);font-style:italic;font-weight:900;margin:0 0 12px;text-transform:uppercase}
.brand-content>p{color:#aebbc6;font-size:15px;max-width:760px;margin:0 auto 26px}
.brand-content .wp-block-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.brand-content .wp-block-column{border:1px solid #314554;border-radius:9px;background:linear-gradient(155deg,#172733,#101c26);min-width:0;padding:24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .2s,border-color .2s}
.brand-content .wp-block-column:last-child{border:1px solid #314554}
.brand-content .wp-block-column:hover{transform:translateY(-3px);border-color:#ff6818}
.brand-content .wp-block-column h3{font-size:clamp(20px,2.2vw,29px);font-weight:900;letter-spacing:.04em;margin:0 0 10px;color:#f8f9fb}
.brand-content .wp-block-column p{font-size:13px;color:#bac4cd;font-weight:400;margin:0}
@media(max-width:740px){.brand-content .wp-block-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.brand-content .wp-block-column{border:1px solid #314554;padding:18px 10px}}
@media(max-width:390px){.brand-content .wp-block-columns{grid-template-columns:1fr}}


/* v2.6 — Wider, centered About page */
.about-page .container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.about-page .content-panel.prose {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(26px, 4vw, 54px);
}
.about-page .content-panel.prose h2:first-child {
  margin-top: 0;
}
@media (max-width: 740px) {
  .about-page .content-panel.prose { padding: 24px 20px; }
}

/* v2.7 embedded map */
.tg-map-frame { position:relative; min-height:330px; height:100%; overflow:hidden; border-radius:9px; border:1px solid rgba(255,255,255,.22); background:#172734; }
.tg-map-frame iframe { display:block; min-height:330px; }
.tg-map-directions { position:absolute; right:12px; bottom:12px; padding:10px 14px; background:#ff6b16; color:#fff; text-decoration:none; font-weight:700; border-radius:5px; box-shadow:0 2px 8px #0008; }
.tg-map-directions:hover {background:#dd5107;color:#fff;}
@media(max-width:740px){.tg-map-frame{min-height:300px}.tg-map-frame iframe{min-height:300px}}

/* v2.9 — center gallery index and gallery project detail pages */
.tg-standard-page .content-panel.prose { width:100%;max-width:1120px;margin-inline:auto;padding:clamp(24px,3.5vw,48px); }
.tg-standard-page .content-panel.prose > h2:first-child {margin-top:0;}
/* gallery index: three equally-sized, centered project cards */
.page-id-62 .tg-standard-page .content-panel.prose {max-width:1220px;}
.page-id-62 .tg-gallery-projects {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch;margin:28px auto;}
.page-id-62 .tg-gallery-projects > .wp-block-column {min-width:0;margin:0;background:#142430;border:1px solid #354957;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;padding:0 0 22px;box-shadow:0 8px 24px #0002;}
.page-id-62 .tg-gallery-projects .wp-block-image {margin:0 0 18px;}
.page-id-62 .tg-gallery-projects .wp-block-image img {width:100%;height:255px;object-fit:cover;display:block;}
.page-id-62 .tg-gallery-projects h3 {font-size:19px;line-height:1.3;margin:0 20px 12px;}
.page-id-62 .tg-gallery-projects p {margin:0 20px 18px;color:#bac4cd;flex:1;}
.page-id-62 .tg-gallery-projects .wp-block-buttons {margin:0 20px;}
.page-id-62 .tg-gallery-projects .wp-block-button__link {background:#f46b1b;color:white;border-radius:7px;font-size:14px;font-weight:700;padding:12px 16px;}
/* gallery project details: photos centered and consistently sized */
.page-child.parent-pageid-62 .tg-standard-page .wp-block-gallery {max-width:960px;margin:28px auto;gap:18px;}
.page-child.parent-pageid-62 .tg-standard-page .wp-block-gallery .wp-block-image {min-width:0;}
.page-child.parent-pageid-62 .tg-standard-page .wp-block-gallery img {width:100%;height:390px;object-fit:contain;background:#0b151e;border-radius:8px;}
@media(max-width:950px){.page-id-62 .tg-gallery-projects{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.tg-standard-page .content-panel.prose{padding:22px 18px}.page-id-62 .tg-gallery-projects{grid-template-columns:1fr}.page-id-62 .tg-gallery-projects .wp-block-image img{height:230px}.page-child.parent-pageid-62 .tg-standard-page .wp-block-gallery img{height:auto;max-height:480px;}}

/* v3.1: compact gap between homepage service cards and following text section */
.home #services { padding-bottom: 0; }
.home #about { padding-top: 36px; }
@media(max-width:740px){.home #about{padding-top:36px}}

/* v3.2: service cards before the descriptive block */
.tg-services-followup{margin-top:36px!important;}

/* v3.3: wider, centered description beneath service cards */
.page-id-18 .tg-services-followup{width:100%;max-width:1100px;margin:36px auto 0!important;}
.page-id-18 .tg-services-followup > .tg-unified-page-panel{width:100%;max-width:none;margin-inline:auto;}
@media(max-width:740px){.page-id-18 .tg-services-followup > .tg-unified-page-panel{padding:28px 22px!important;}}
