/* XAN Office v1.3.10.2 — frontend responsive + video framing + XAN Mobil PWA */
:root{--xan-mobile-corporate:#055970;--xan-mobile-corporate-dark:#194552;--xan-mobile-ink:#041F40}
html,body{max-width:100%;overflow-x:hidden}
body :where(img,video,iframe,svg){max-width:100%}
body :where(.xan-container,.xan-header-inner,.xan-footer-grid,.xan-footer-bottom){min-width:0}

/* Home video contract: never crop the real media. Decorative backdrop may fill unused area. */
body.xan-home .xan-hero-v124{background:var(--xan-mobile-corporate-dark)!important}
body.xan-home .xan-hero-v124 .xan-hero-video,
body.xan-home .xan-hero-v113 .xan-hero-video{
  object-fit:contain!important;object-position:center center!important;transform:none!important;
  width:100%!important;height:100%!important;filter:contrast(1.015) saturate(1.01)!important;
}
body.xan-home .xan-hero-v124 .xan-hero-video-backdrop{opacity:.28!important;filter:blur(12px) brightness(.58)!important;transform:scale(1.025)!important}
body.xan-home .xan-secondary-video,
body.xan-home .xan-video-showcase-media{object-fit:contain!important;object-position:center center!important;transform:none!important;filter:contrast(1.01) saturate(1.005)!important;background:var(--xan-mobile-corporate-dark)!important}
body.xan-home .xan-secondary-video-backdrop,
body.xan-home .xan-video-showcase-backdrop{opacity:.28!important;filter:blur(12px) brightness(.58)!important;transform:scale(1.025)!important}

/* Keep common cards and controls from forcing page width. */
body.xan-home :where(.xan-smart-media-grid,.xan-home-hook-grid,.xan-video-showcase-grid,.xan-project-teaser-card,.xan-cta-box)>*{min-width:0}
body.xan-home :where(.xan-btn,.xan-text-cta,.xan-menu a){overflow-wrap:anywhere}

/* Desktop / large tablet: keep navigation calm and video readable. */
@media (min-width:1025px){
  body.xan-home .xan-hero-v124{min-height:clamp(520px,72svh,760px)!important;height:clamp(520px,72svh,760px)!important}
  body.xan-home .xan-secondary-video-frame{max-height:min(70svh,720px)}
  body.xan-home .xan-video-showcase-card{max-height:min(62svh,620px)}
}

/* Tablet: collapse content earlier; avoid squeezed header/menu/card columns. */
@media (max-width:1024px){
  body .xan-header-v124 .xan-header-inner{display:flex!important;width:min(calc(100% - 28px),var(--xan-max))!important;gap:10px!important}
  body .xan-header-v124 .xan-nav-toggle{display:flex!important;margin-left:auto!important}
  body .xan-header-v124 .xan-nav{position:absolute!important;top:calc(100% + 8px)!important;left:14px!important;right:14px!important;display:none!important;max-height:calc(100svh - 100px)!important;overflow:auto!important;padding:14px!important;border-radius:16px!important;background:#fff!important;border:1px solid rgba(5,89,112,.14)!important;box-shadow:0 20px 55px rgba(4,31,64,.16)!important}
  body .xan-header-v124 .xan-nav.is-open{display:block!important}
  body .xan-header-v124 .xan-menu{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important}
  body .xan-header-v124 .xan-menu a{display:flex!important;min-height:44px!important;align-items:center!important;padding:9px 10px!important;color:var(--xan-mobile-ink)!important;text-shadow:none!important;border-radius:10px!important}
  body .xan-header-v124 .xan-login-link{margin-left:auto!important}
  body.xan-home :where(.xan-smart-media-grid,.xan-home-hook-grid,.xan-home-hook-grid.is-reverse){grid-template-columns:1fr!important;gap:22px!important}
  body.xan-home .xan-home-hook-media{order:0!important}
  body.xan-home .xan-home-copy-card{order:1!important}
  body.xan-home .xan-video-showcase-grid{grid-template-columns:1fr 1fr!important;gap:16px!important}
  body.xan-home .xan-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:820px){
  body.xan-home .xan-hero-v124{height:clamp(500px,72svh,680px)!important;min-height:500px!important;max-height:680px!important}
  body.xan-home .xan-hero-v124.is-xan-video-portrait-v13102{height:min(78svh,720px)!important}
  body.xan-home .xan-secondary-video-frame,
  body.xan-home .xan-video-showcase-card{aspect-ratio:16/9!important;max-height:none!important}
  body.xan-home .xan-video-showcase-grid{grid-template-columns:1fr!important;gap:14px!important;overflow:visible!important;margin:0!important;padding-left:0!important;padding-right:0!important}
  body.xan-home .xan-video-showcase-card{width:100%!important;max-width:100%!important}
  body.xan-home .xan-project-grid{grid-template-columns:1fr!important}
  body :where(input,select,textarea,button){max-width:100%}
  body input,body select,body textarea{font-size:16px!important}
}

@media (max-width:560px){
  body .xan-header-v124 .xan-header-inner{width:calc(100% - 20px)!important}
  body .xan-header-v124 .xan-menu{grid-template-columns:1fr!important}
  body .xan-header-v124 .xan-login-link{display:none!important}
  body.xan-home .xan-hero-v124{height:clamp(440px,68svh,620px)!important;min-height:440px!important}
  body.xan-home .xan-hero-nav-inner{grid-template-columns:1fr 1fr!important}
  body.xan-home .xan-home-main>.xan-section{padding-left:0!important;padding-right:0!important}
  body.xan-home :where(.xan-home-copy-card,.xan-cta-box){padding-left:18px!important;padding-right:18px!important}
}

/* XAN Mobil install surfaces */
.xan-pwa-desktop-install-v13102[hidden],.xan-mobile-pwa-link-v13102[hidden],.xan-pwa-guide-v13102[hidden]{display:none!important}
.xan-pwa-desktop-install-v13102{position:fixed;right:22px;bottom:92px;z-index:2147482985;width:58px;height:58px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:linear-gradient(135deg,var(--xan-mobile-corporate),var(--xan-mobile-corporate-dark));color:#fff;box-shadow:0 14px 34px rgba(5,89,112,.26);display:grid;place-items:center;cursor:pointer;padding:0}
.xan-pwa-desktop-install-v13102:hover,.xan-pwa-desktop-install-v13102:focus-visible{transform:translateY(-1px);box-shadow:0 18px 40px rgba(5,89,112,.32)}
.xan-pwa-install-icon-v13102{display:grid;place-items:center}.xan-pwa-install-icon-v13102 svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.xan-pwa-install-label-v13102{position:absolute;right:68px;white-space:nowrap;padding:8px 10px;border-radius:9px;background:#041F40;color:#fff;font:600 12px/1.2 Inter,sans-serif;opacity:0;pointer-events:none;transition:opacity .15s ease}
.xan-pwa-desktop-install-v13102:hover .xan-pwa-install-label-v13102,.xan-pwa-desktop-install-v13102:focus-visible .xan-pwa-install-label-v13102{opacity:1}
.xan-mobile-pwa-link-v13102{width:100%;min-height:44px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--xan-mobile-corporate),var(--xan-mobile-corporate-dark));color:#fff;font:600 13px/1.2 Inter,sans-serif;cursor:pointer;padding:10px 12px;text-align:center}
.xan-pwa-guide-v13102{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:end center;padding:20px}
.xan-pwa-guide-backdrop-v13102{position:absolute;inset:0;border:0;background:rgba(4,31,64,.56)}
.xan-pwa-guide-card-v13102{position:relative;width:min(430px,100%);background:#fff;border-radius:22px;padding:22px;box-shadow:0 24px 70px rgba(4,31,64,.28);display:grid;grid-template-columns:64px 1fr;gap:14px;color:var(--xan-mobile-ink)}
.xan-pwa-guide-card-v13102 img{width:64px;height:64px;border-radius:16px}.xan-pwa-guide-card-v13102 strong{font-size:21px}.xan-pwa-guide-card-v13102 p{margin:6px 0 0;font-size:13px;line-height:1.5;color:#34495D}.xan-pwa-guide-card-v13102 ol{grid-column:1/-1;margin:5px 0 0;padding-left:22px;font-size:13px;line-height:1.65}.xan-pwa-guide-close-v13102{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;background:transparent;color:#34495D;font-size:26px;cursor:pointer}
html.xan-pwa-guide-open-v13102{overflow:hidden}
html.xan-pwa-standalone-v13102 body{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:820px){.xan-pwa-desktop-install-v13102{display:none!important}.xan-mobile-nav-actions-v194{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.xan-mobile-pwa-link-v13102{display:flex;align-items:center;justify-content:center}}
@media(min-width:821px){.xan-mobile-pwa-link-v13102{display:none!important}}

/* v1.3.10.13 — XAN Mobil artık bağımsız merkez bağlantısıdır. */
.xan-pwa-desktop-install-v13102{text-decoration:none!important}.xan-mobile-pwa-link-v13102{text-decoration:none!important}
