/*
Theme Name: Yangın Defans Pro
Version: 1.4.0
Description: Yangın güvenliği ürün ve proje kataloğu.
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: yangin-defans-pro
*/
:root{--red:#d5090d;--dark:#171717;--ink:#151515}*{box-sizing:border-box}body{margin:0;font:16px/1.5 Arial,sans-serif;color:var(--ink);background:white}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea,select{font:inherit}button{cursor:pointer}.wrap{max-width:1440px;width:92%;margin:auto}.top{background:var(--dark);color:white;font-size:12px}.top .wrap{display:flex;align-items:center;gap:25px;min-height:34px}.emergency{margin-left:auto;background:var(--red);padding:8px 24px;font-weight:bold}.head{background:white;position:relative;z-index:5;box-shadow:0 1px 5px #0001}.head .wrap{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:24px}.brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:900;line-height:1.05}.brand b{color:var(--red)}.brand small{display:block;font-size:11px;font-weight:normal}.brand img{max-width:245px;max-height:65px;object-fit:contain}.flame{width:38px;height:48px;fill:var(--red)}.nav{display:flex;align-items:center;gap:26px;font-weight:bold;font-size:14px}.nav a:hover{color:var(--red)}.btn{display:inline-block;background:var(--red);color:white;border:0;border-radius:5px;padding:12px 23px;font-weight:bold;text-align:center}.btn.light{background:white;color:#111}.toggle{display:none;background:none;border:0;font-size:27px}.hero{position:relative;background:#222;color:white}.slide{display:none;position:relative;min-height:430px;align-items:center;overflow:hidden}.slide.active{display:flex}.slide .photo{position:absolute;inset:0 0 0 37%;width:63%;height:100%;object-fit:cover}.slide:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#111 0%,#111e 25%,#1118 49%,transparent 78%)}.slide .wrap{position:relative;z-index:1;padding:50px 45px}.slide h1{font-size:clamp(32px,3.6vw,60px);line-height:1.07;max-width:670px;border-left:8px solid var(--red);padding-left:18px;margin:0 0 20px}.slide p{max-width:530px;font-size:19px}.actions{display:flex;gap:12px;flex-wrap:wrap}.arrow{position:absolute;z-index:2;top:45%;border:0;background:white;border-radius:50%;width:40px;height:40px;font-size:25px}.prev{left:2%}.next{right:2%}.dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:2;display:flex;gap:10px}.dot{border:0;border-radius:50%;width:11px;height:11px;background:white;padding:0}.dot.active{background:var(--red)}.section{padding:24px 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.section-title h2{margin:0;border-left:5px solid var(--red);padding-left:10px;font-size:25px;line-height:1.15}.section-title a{font-size:13px;color:var(--red);font-weight:bold}.products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.product{background:#f4f4f4;border:1px solid #eee;border-radius:8px;padding:12px;display:flex;flex-direction:column;min-width:0}.product img{width:100%;height:160px;object-fit:contain;mix-blend-mode:multiply}.product h3{font-size:16px;line-height:1.3;margin:8px 0}.code{display:flex;justify-content:space-between;align-items:center;margin-top:auto;font-size:13px}.go{background:var(--red);color:white;border-radius:4px;padding:1px 7px}.about{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;align-items:center}.about img{width:100%;height:220px;object-fit:cover;border-radius:7px}.about h2{line-height:1.15;margin:3px 0 10px;font-size:25px}.about p{font-size:14px}.eyebrow{color:var(--red);font-weight:bold;font-size:13px}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.project{border:1px solid #eee;border-radius:7px;overflow:hidden}.project img{width:100%;height:140px;object-fit:cover;display:block}.project h3{font-size:15px;margin:10px}.cta{background:var(--red);color:white;padding:22px 0}.cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px}.cta h2{margin:0;font-size:25px}.cta p{margin:0}.foot{background:#191919;color:#ddd;padding:26px 0 0;font-size:13px}.footgrid{display:grid;grid-template-columns:1.3fr 1fr 1.2fr 1fr 1.2fr;gap:22px}.footgrid>div{border-right:1px solid #ffffff25;padding-right:14px}.footgrid>div:last-child{border:0}.foot h3,.foot summary{color:white;font-weight:bold;margin:0 0 10px;font-size:15px}.foot a{display:block;margin:4px 0}.foot .brand{font-size:19px;color:white}.foot .brand b{color:white}.foot .flame{fill:white}.foot details{display:block}.foot summary{list-style:none;cursor:pointer}.foot summary::-webkit-details-marker{display:none}.social{display:flex;gap:8px}.social a{border:1px solid #aaa;padding:4px;border-radius:4px;display:flex}.social svg{width:17px;height:17px;fill:currentColor}.copyright{border-top:1px solid #ffffff25;margin-top:20px;padding:10px 0;font-size:12px}.copyright .wrap{display:flex;justify-content:space-between;gap:10px}.content{min-height:55vh;padding:35px 0}.content h1{font-size:36px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:35px}.detail img{width:100%;max-height:500px;object-fit:contain}.gallery{display:flex;gap:10px;flex-wrap:wrap}.gallery img{width:120px;height:90px;object-fit:cover}.contact{display:grid;grid-template-columns:1fr 1fr;gap:35px}.contact iframe{width:100%;height:300px;border:0}.form label{display:block;margin:10px 0}.form input:not([type=checkbox]),.form textarea{width:100%;padding:11px;border:1px solid #ccc;border-radius:4px}.form textarea{min-height:130px}.notice{padding:12px;background:#eee}.float{position:fixed;bottom:18px;right:18px;z-index:8;display:flex;flex-direction:column;gap:8px}.float a,.float button{background:#222;color:white;border:0;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font-size:20px}.float a{background:#168b45}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:760px){.wrap{width:94%}.top .wrap{justify-content:center;width:100%}.top .wrap>a,.top .address{display:none}.emergency{margin:0;width:100%;text-align:center}.head .wrap{min-height:65px}.brand{font-size:19px}.brand img{max-width:190px}.head .offer{display:none}.toggle{display:block}.nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:15px;flex-direction:column;align-items:stretch;box-shadow:0 6px 10px #0002}.nav.open{display:flex}.slide.active{display:block}.slide .photo{position:relative;inset:auto;width:100%;height:210px;display:block;object-fit:cover}.slide:after{display:none}.slide .wrap{padding:18px 12px 40px}.slide h1{font-size:27px;border-width:5px;padding-left:10px;margin-bottom:10px}.slide p{font-size:14px;margin:10px 0 16px}.btn{padding:10px 15px;font-size:13px}.arrow{top:95px;width:32px;height:32px}.section{padding:17px 0}.section-title h2{font-size:20px}.section-title a{font-size:11px}.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.home .products .product:nth-child(n+4){display:none}.product{padding:6px}.product img{height:85px}.product h3{font-size:11px}.code{font-size:10px}.about,.projects,.detail,.contact{grid-template-columns:1fr}.home .about-section,.home .project-section{display:none}.cta .wrap{display:block}.cta h2{font-size:21px}.cta p{font-size:14px;margin:8px 0 14px}.cta .btn{width:100%}.footgrid{grid-template-columns:1fr 1fr;gap:12px}.footgrid>div:first-child{grid-row:span 4}.footgrid>div{border:0;padding:0}.foot summary:after{content:'+';float:right}.foot details[open] summary:after{content:'−'}.foot h3,.foot summary{font-size:12px}.foot{font-size:11px}.copyright .wrap{display:block;text-align:center}.content h1{font-size:28px}.float{right:9px;bottom:9px}.float a,.float button{width:36px;height:36px}}
.nav li{list-style:none;position:relative}.nav .sub-menu{display:none;position:absolute;top:100%;left:0;background:white;padding:12px;min-width:180px;box-shadow:0 5px 12px #0002}.nav li:hover>.sub-menu,.nav li:focus-within>.sub-menu{display:block}.slide picture{display:contents}@media(max-width:760px){.nav .sub-menu{position:static;display:block;box-shadow:none}}

/* Reference layout refinements */
@media(min-width:761px){.slide{min-height:clamp(390px,25vw,510px)}.slide .photo{inset:0 0 0 30%;width:70%;object-position:center 50%}.slide:after{background:linear-gradient(90deg,#161616 0%,#161616ef 26%,#16161688 43%,transparent 67%)}.product img{height:clamp(145px,12vw,215px)}.head .wrap{min-height:68px}.about img{min-height:175px;object-fit:cover}.projects .project img{height:145px;object-fit:cover}}
@media(max-width:760px){.slide .photo{height:clamp(175px,51vw,310px)}.slide{min-height:0}.product img{height:clamp(75px,24vw,130px)}.arrow{top:clamp(75px,23vw,135px)}.home .about-section,.home .project-section{display:none}}

/* Mobile quick navigation: uses existing theme colour settings. */
.yd-mobile-bar{display:none}
@media(max-width:760px){
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .yd-mobile-bar{position:fixed;bottom:0;left:0;right:0;z-index:1000;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:var(--dark);color:#fff;padding:6px 7px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid #ffffff26;border-radius:12px 12px 0 0;box-shadow:0 -4px 18px #0003}
 .yd-mobile-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;min-width:0;border-radius:10px;color:#fff;font-size:clamp(10px,2.8vw,13px);font-weight:700;text-align:center;line-height:1.15;white-space:nowrap}
 .yd-mobile-item svg{width:25px;height:25px;flex:none}
 .yd-mobile-item.is-current:not(.is-offer){color:var(--red);background:#ffffff0d}
 .yd-mobile-item.is-offer{background:var(--red);color:#fff;box-shadow:inset 0 0 0 1px #ffffff35}
 .yd-mobile-item.is-offer.is-current{box-shadow:inset 0 0 0 2px #fff}
 .yd-mobile-item:focus-visible{outline:2px solid white;outline-offset:-3px}
 .float{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
 html{scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
}

/* Social identity and contact page */
.yd-icon{width:22px;height:22px;flex:none;display:inline-block;vertical-align:middle}.social{flex-wrap:wrap;align-items:center}.social a{display:grid;place-items:center;width:34px;height:34px;border-radius:6px;color:inherit;transition:background .2s,color .2s}.social a:hover,.social a:focus-visible{background:var(--red);color:#fff;border-color:var(--red)}.social svg{width:19px;height:19px}.float a{background:#25d366;color:#fff;box-shadow:0 3px 12px #0003}.float a svg{width:65%;height:65%}.yd-contact-row{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px;overflow-wrap:anywhere}.yd-contact-row>.yd-icon{color:var(--red);margin-top:3px}.yd-contact-row>div{min-width:0}.yd-contact-row strong,.yd-contact-row span,.yd-contact-row a{display:block}.yd-contact-row strong{font-size:13px}.yd-contact-panel{padding:24px;border:1px solid #e5e5e5;border-radius:10px;min-width:0}.yd-contact-panel h2,.yd-map h2{margin:0 0 20px;border-left:4px solid var(--red);padding-left:10px}.yd-map{margin:28px 0 0}.yd-map iframe{width:100%;height:380px;border:0;border-radius:8px;display:block}.foot .yd-contact-row{gap:8px;margin-bottom:10px}.foot .yd-contact-row>.yd-icon{width:17px;height:17px;color:#fff}.foot .yd-contact-row strong{font-size:inherit;color:#fff}.foot .yd-contact-row a{margin:0}.foot .social a{display:grid}@media(max-width:760px){.yd-contact-panel{padding:16px}.yd-map iframe{height:300px}.social a{width:29px;height:29px}.social svg{width:16px;height:16px}}
