/* Mobile usability layer: desktop dimensions and scene motion stay unchanged. */
@media(max-width:767px){
 #bicen-site{--mobile-gutter:20px;}
 #bicen-site section{max-width:100%;box-sizing:border-box;}
 #bicen-site section + section:not(.bicen-service-hero),
 #bicen-site section.bicen-draft-section,
 body:has(#bicen-site) footer{margin-top:clamp(52px,9.75svh,78px);}
 #bicen-site section:not(.bicen-service-hero):not(.bicen-emblem-transition) p:not(.reviews-help){overflow-wrap:break-word;}
 #bicen-site section a:focus-visible,#bicen-site button:focus-visible{outline:2px solid #a87900;outline-offset:4px;}
 #bicen-site section a[href]:not(.review-card){-webkit-tap-highlight-color:rgb(244 196 0 / 15%);}
 /* Stack the two homepage service cards; no undiscoverable horizontal strip. */
 section:has(.bicen-home-service-card) .h-110{height:auto;padding-bottom:0;}
 section:has(.bicen-home-service-card) .overflow-x-auto{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;overflow:visible;height:auto;}
 section:has(.bicen-home-service-card) .overflow-x-auto>.w-80{width:100%;height:auto;min-width:0;}
 .bicen-home-service-card{height:auto!important;padding:0!important;gap:0!important;border-radius:16px!important;background:#fff;color:#171c17;border:1px solid #dce0da;isolation:isolate;}
 .bicen-home-service-card>div:first-child{position:relative!important;inset:auto!important;height:210px;z-index:0!important;order:0;transform:none!important;filter:none!important;}
 .bicen-home-service-card>div:nth-child(3){order:1;padding:20px 20px 12px;}
 .bicen-home-service-card h3{width:100%!important;color:#171c17!important;font-size:24px!important;line-height:1.2!important;}
 .bicen-home-service-card>div:nth-child(3)>span{color:#626862!important;font-size:13px!important;width:auto!important;}
 .bicen-home-service-card>div:nth-child(2){position:relative!important;inset:auto!important;order:2;opacity:1!important;background:transparent!important;}
 .bicen-home-service-card>div:nth-child(2)>div{padding:0 20px 16px;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;transform:none;}
 .bicen-home-service-card>div:nth-child(2)>div>div{font-size:13px!important;line-height:1.5;padding:5px 9px;border-radius:6px;background:#eff1ed;color:#343c34;}
 .bicen-home-service-card>div:nth-child(2)>span{display:none;}
 .bicen-home-service-card>div:last-child{order:3;position:relative!important;inset:auto!important;padding:0 20px 20px;opacity:1!important;}
 .bicen-home-service-card>div:last-child>*{min-height:44px;font-size:14px!important;}
 /* Services directory and related services have full-width finger-sized rows. */
 section:has(.service-title) .service-title{font-size:clamp(28px,7.5vw,36px)!important;line-height:1.15!important;}
 section:has(.service-title) a[href^="/hizmetler/"]{display:flex;align-items:center;min-height:52px;padding:12px 14px;margin:8px 0;border:1px solid #d8ddd6;border-radius:10px;background:#f8f9f6;color:#202820;gap:12px;line-height:1.4;font-size:16px;}
 section:has(.service-title) a[href^="/hizmetler/"] svg{flex-shrink:0;width:22px;}
 section:has(.service-title) img{border-radius:14px;}
 .bicen-service-hero{height:clamp(420px,72svh,620px)!important;}
 .bicen-service-hero h2{font-size:clamp(30px,8vw,40px)!important;line-height:1.15!important;}
 .bicen-service-hero>div{padding-bottom:24px!important;}
 .bicen-service-hero a{min-height:48px;}
 a.border-divider-soft[href^="/hizmetler/"]{min-height:56px;margin:0 0 8px;padding:12px 14px;border:1px solid #d8ddd6;border-radius:10px;background:#f8f9f6;color:#202820;}
 a.border-divider-soft[href^="/hizmetler/"] p{padding:0!important;font-size:16px!important;line-height:1.5;}
 a.border-divider-soft[href^="/hizmetler/"]>div{flex-shrink:0;}
 section .hidden-reveal.flex.flex-col.border-b{padding-top:20px!important;padding-bottom:20px!important;}
 /* Contact choices become readable, separate touch surfaces. */
 section:has(.bicen-contact-panel)>div:first-child a{min-height:44px;display:inline-flex;align-items:center;padding:10px 14px;margin-bottom:4px;border-radius:8px;}
 section .bicen-contact-panel{gap:16px;margin-top:16px;}
 section .bicen-contact-panel>div{padding:18px;border:1px solid #d8ddd6;border-radius:12px;background:#f8f9f6;color:#202820;min-width:0;}
 section .bicen-contact-panel h3{opacity:1;color:#626862;}
 section .bicen-contact-panel a{min-height:44px;display:flex;align-items:center;}
 .bicen-contact-phones a{font-size:22px;}
 #bicen-site footer{padding:32px 20px calc(100px + env(safe-area-inset-bottom))!important;}
 #bicen-site footer a{font-size:15px;line-height:1.5;}
 #bicen-site footer .bicen-contact-phones a{font-size:22px;}
 #bicen-site footer .bicen-contact-panel>div{min-width:0;}
 .bicen-footer-legal nav{gap:4px 20px;}
 /* Draft galleries/articles keep their content, with usable card widths. */
 .bicen-draft-section .grid-cols-2:not(.grid-rows-2){grid-template-columns:1fr;gap:20px;}
 .bicen-draft-section a{min-width:0;overflow-wrap:break-word;}
 .reviews-surface{padding:20px 16px;}
}
@media(max-width:359px){
 #bicen-site{--mobile-gutter:16px;}
 .bicen-home-service-card>div:first-child{height:180px;}
 .bicen-contact-phones a{font-size:20px;}
}
@media(max-width:767px){
 .bicen-home-service-card>div:last-child{display:none!important;}
 .bicen-home-service-card>div:nth-child(2)>span{display:block;position:relative;inset:auto;margin:0 20px 20px;padding:12px 0;border-top:1px solid #dce0da;color:#303930;font-size:14px;line-height:20px;text-decoration:none;}
 .bicen-home-service-card>div:nth-child(2)>span::after{content:' ↗';color:#8b7000;}
 section:has(.service-title)>div:first-child>div:first-child{min-width:0;}
 section:has(.service-title)>div:first-child>div:first-child>span{flex-shrink:0;}
}

/* Mobile photo hero: a full-size crossfade, never two sliding image edges. */
@media(max-width:767px){
 section.svelte-1ycgkir{height:80svh;}
 .slide-in.svelte-1ycgkir{transform:none!important;will-change:opacity;animation:bicen-mobile-photo-in 1.5s cubic-bezier(.65,0,.35,1) both!important;}
 .slide-out.svelte-1ycgkir{transform:none!important;animation:none!important;opacity:1;will-change:auto;}
 .slide-out-overlay.svelte-1ycgkir{display:none;}
}
@keyframes bicen-mobile-photo-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.slide-in.svelte-1ycgkir{animation:none!important;}}

/* Dedicated mobile photos preserve the whole vehicle, including during growth. */
@media(max-width:767px){
 section.svelte-1ycgkir img{object-fit:contain!important;object-position:center;background:#080a09;}
 .bicen-expanding-photos img{object-fit:contain;object-position:center;background:#080a09;}
}

/* Mobile photo composition: preserve the vehicle instead of cropping a wide
   workshop/towing photo into a tall desktop-style background. */
@media(max-width:767px){
 #bicen-site .bicen-service-hero,#bicen-site .bicen-service-hero.has-hero-contact{height:auto!important;min-height:0!important;padding-top:94px;background:#161817;}
 #bicen-site .bicen-service-hero>img{display:block;width:100%;height:auto!important;max-height:none;object-fit:contain;object-position:center;}
 #bicen-site .bicen-service-hero>div.absolute{position:relative!important;inset:auto!important;padding:24px 20px 28px!important;gap:22px;}
 #bicen-site .bicen-service-hero h1,#bicen-site .bicen-service-hero h2{color:#fff!important;font-size:clamp(30px,8vw,40px)!important;line-height:1.15!important;}
 #bicen-site .bicen-service-hero .mst--inverted{filter:none;}
 #bicen-site .bicen-service-hero .hero-contact-trigger{width:100%;}
 #bicen-site .bicen-service-hero a{color:#fff;opacity:1!important;transform:none!important;background:#ffffff14;}
 #bicen-site .bicen-home-service-card>div:first-child{height:auto!important;aspect-ratio:auto!important;}
 #bicen-site .bicen-home-service-card>div:first-child img{display:block;width:100%;height:auto!important;object-fit:contain;}
 .bicen-about-intro img,.cms-article>img{height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;}
 .company-gallery-grid{display:block;columns:2;column-gap:10px;}
 .company-gallery-grid .company-gallery-photo{display:block;width:100%;height:auto!important;margin:0 0 10px;break-inside:avoid;}
 .company-gallery-photo img{height:auto!important;object-fit:contain;}
 .company-gallery-photo:hover img{transform:none;}
}
@media(max-width:767px){
 #bicen-site .company-gallery-grid{display:block!important;columns:2;column-gap:10px;}
 #bicen-site .company-gallery-photo{height:auto!important;min-height:0!important;}
 #bicen-site .company-gallery-photo img{height:auto!important;object-fit:contain!important;}
 #bicen-site .bicen-home-service-card>div:first-child{background:#161817;}
 #bicen-site .bicen-home-service-card>div:first-child img{max-height:300px;}
 #bicen-site .aspect-3\/2:has(>div>img){aspect-ratio:auto!important;height:auto!important;background:#161817;}
 #bicen-site .aspect-3\/2>div:has(>img){height:auto!important;}
 #bicen-site .aspect-3\/2>div>img{height:auto!important;max-height:380px;object-fit:contain!important;}
}
