/* =====================================================================
   Tuğra Hafriyat — site.css (custom additions on top of preserved theme CSS)
   Only behavior the dropped WP/Elementor JS used to provide + small helpers.
   ===================================================================== */

/* ---- Offcanvas panel show/hide (self-contained; not every page's theme bundle
        includes these Blocksy rules, so we guarantee them here) ---- */
#offcanvas.ct-panel {
  flex-direction: column; position: fixed; z-index: 999999; inset: 0;
  opacity: 0; display: none; pointer-events: none; transition: opacity .25s ease-in-out;
}
#offcanvas.ct-panel.active { display: flex; opacity: 1; pointer-events: auto; }
#offcanvas .ct-panel-inner {
  position: absolute; inset-block: 0;
  height: calc(100% - var(--side-panel-offset, 0px) * 2);
  width: calc(100% - var(--side-panel-offset, 0px) * 2);
  max-width: var(--side-panel-width, 500px);
  margin: var(--side-panel-offset, 0); box-shadow: var(--theme-box-shadow, 0 0 70px rgba(0,0,0,.35));
  border-radius: var(--side-panel-border-radius, 0);
  align-self: flex-end; transform: translate3d(100%, 0, 0);
  transition: transform .28s ease-in-out; overflow-y: auto;
}
#offcanvas.ct-panel.active .ct-panel-inner { transform: translate3d(0, 0, 0); }
#offcanvas .ct-panel-actions { display: flex; justify-content: flex-end; padding: 18px; }
#offcanvas .ct-toggle-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ---- Offcanvas: reveal mobile content (JS-less) ---- */
#offcanvas .ct-panel-content[data-device="mobile"] { display: block; padding: 0 26px 30px; }
#offcanvas .mobile-menu .ct-menu-link { display: block; padding: 10px 0; text-decoration: none; }
#offcanvas .ct-panel-content-inner { display: block; }
#offcanvas .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
#offcanvas .mobile-menu .sub-menu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
#offcanvas .mobile-menu li.tgr-submenu-open > .sub-menu,
#offcanvas .mobile-menu li.ct-active > .sub-menu {
  max-height: 600px; display: block !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
}
#offcanvas .mobile-menu li.tgr-submenu-open > .sub-menu > li,
#offcanvas .mobile-menu li.ct-active > .sub-menu > li { opacity: 1 !important; transform: none !important; }
#offcanvas .mobile-menu .ct-toggle-dropdown-mobile { background: none; border: 0; cursor: pointer; color: inherit; padding: 6px; }
#offcanvas .mobile-menu li.tgr-submenu-open > .ct-sub-menu-parent .ct-toggle-dropdown-mobile { transform: rotate(180deg); }
#offcanvas .ct-sub-menu-parent { display: flex; align-items: center; justify-content: space-between; }

/* ---- Skip link / screen-reader helpers (in case theme rule missing) ---- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
  z-index: 1000000; background: #fff; padding: 10px 16px; border-radius: 6px;
}

/* ---- Desktop dropdown reveal on hover / click (Blocksy uses a JS-added
        .ct-active class we don't run, so we reveal container AND items here). ---- */
.header-menu-1 li.menu-item-has-children:hover > .sub-menu,
.header-menu-1 li.menu-item-has-children:focus-within > .sub-menu,
.header-menu-1 li.tgr-submenu-open > .sub-menu,
.header-menu-1 li.ct-active > .sub-menu {
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}
.header-menu-1 li.menu-item-has-children:hover > .sub-menu > li,
.header-menu-1 li.menu-item-has-children:focus-within > .sub-menu > li,
.header-menu-1 li.tgr-submenu-open > .sub-menu > li,
.header-menu-1 li.ct-active > .sub-menu > li { opacity: 1 !important; transform: none !important; }
/* keep a hover bridge so moving into the dropdown doesn't drop :hover */
.header-menu-1 li.menu-item-has-children { position: relative; }
.header-menu-1 li.menu-item-has-children:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }

/* ---- Footer credit backlink (Dijitasyon) — eye-catching ---- */
.tgr-credit {
  display: inline-block; margin-left: 4px; font-weight: 800; letter-spacing: .3px;
  color: #EA820E !important; text-decoration: none; padding: 1px 4px; border-radius: 5px;
  background: linear-gradient(90deg, #EA820E, #f6a94b, #EA820E);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: tgr-credit-shine 3.5s linear infinite;
  transition: transform .2s ease;
}
.tgr-credit:hover { transform: translateY(-1px); text-decoration: underline; text-decoration-color: #EA820E; }
@keyframes tgr-credit-shine { to { background-position: 200% center; } }

/* ---- Floating Action Button (single, expands) ---- */
.tgr-fab { position: fixed; right: 20px; bottom: 24px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.tgr-fab-items { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
/* Buttons always visible (not collapsed behind a single toggle) */
.tgr-fab-item {
  position: relative; display: inline-flex; align-items: center; justify-content: flex-end;
  border: 0; cursor: pointer; text-decoration: none; background: transparent; padding: 0;
  transition: transform .2s ease;
}
.tgr-fab-item:hover { transform: translateY(-2px); }
.tgr-fab-label {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: #fff; color: #213631; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.tgr-fab-item:hover .tgr-fab-label { opacity: 1; transform: translateY(-50%); }
.tgr-fab-ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.28); }
.tgr-fab-ico svg { width: 22px; height: 22px; }
.tgr-fab-phone .tgr-fab-ico { background: #EA820E; }
.tgr-fab-wa .tgr-fab-ico { background: #25D366; }
.tgr-fab-ig .tgr-fab-ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tgr-fab-chat .tgr-fab-ico { background: #213631; }
/* Toggle button no longer needed — the buttons stay open */
.tgr-fab-main { display: none; }
@keyframes tgr-pulse {
  0% { box-shadow: 0 8px 22px rgba(234,130,14,.5), 0 0 0 0 rgba(234,130,14,.5); }
  70% { box-shadow: 0 8px 22px rgba(234,130,14,.3), 0 0 0 16px rgba(234,130,14,0); }
  100% { box-shadow: 0 8px 22px rgba(234,130,14,.3), 0 0 0 0 rgba(234,130,14,0); }
}

/* ---- Live chat panel ---- */
.tgr-chat {
  position: fixed; right: 20px; bottom: 96px; z-index: 9991; width: 350px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 130px); background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 18px 55px rgba(0,0,0,.32);
  transform-origin: bottom right; animation: tgr-chat-in .22s ease;
}
.tgr-chat[hidden] { display: none; }
@keyframes tgr-chat-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.tgr-chat-head { background: linear-gradient(135deg, #213631, #0f1a17); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.tgr-chat-head-info { display: flex; align-items: center; gap: 11px; }
.tgr-chat-head-info strong { display: block; font-size: 15px; } .tgr-chat-head-info small { color: #9fb0ac; font-size: 11px; }
.tgr-chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #EA820E; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.tgr-chat-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .8; }
.tgr-chat-close:hover { opacity: 1; }
.tgr-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f4f6f8; display: flex; flex-direction: column; gap: 10px; }
.tgr-chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.tgr-chat-msg.admin { align-self: flex-start; background: #fff; color: #213631; border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.tgr-chat-msg.visitor { align-self: flex-end; background: #EA820E; color: #fff; border-bottom-right-radius: 4px; }
.tgr-chat-time { font-size: 10px; opacity: .6; margin-top: 3px; display: block; }
.tgr-chat-form { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid #e5e9ec; background: #fff; }
.tgr-chat-form input { flex: 1; border: 1px solid #dfe4e8; border-radius: 22px; padding: 10px 15px; font-size: 14px; outline: none; }
.tgr-chat-form input:focus { border-color: #EA820E; }
.tgr-chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #EA820E; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.tgr-chat-form button svg { width: 20px; height: 20px; }

/* ---- Mobile app-style bottom navigation (item 1) ---- */
.tgr-appnav { display: none; }
@media (max-width: 820px) {
  .tgr-appnav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9992;
    background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15,26,23,.08); box-shadow: 0 -6px 24px rgba(15,26,23,.1);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tgr-appnav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; cursor: pointer; text-decoration: none; padding: 5px 2px;
    color: #5b6b66; font-size: 10.5px; font-weight: 600; font-family: inherit; line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
  }
  .tgr-appnav__item svg { width: 23px; height: 23px; }
  .tgr-appnav__item.is-active { color: var(--tgr-o, #EA820E); }
  .tgr-appnav__call { color: var(--tgr-o, #EA820E); }
  .tgr-appnav__callbtn {
    width: 52px; height: 52px; margin-top: -30px; margin-bottom: 1px; border-radius: 50%;
    background: var(--tgr-o, #EA820E); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(234,130,14,.5); border: 4px solid #fff;
  }
  .tgr-appnav__callbtn svg { width: 24px; height: 24px; }

  /* reserve space so page content / footer clears the bar */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  /* lift floating controls above the bar and out of the phone gesture zone → tappable (item 3) */
  .tgr-fab { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 9994; }
  .tgr-fab-main { width: 54px; height: 54px; }
  .tgr-lang--fixed { left: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 9993; }
  .tgr-chat {
    right: 10px; left: 10px; width: auto; max-width: none;
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)); height: auto; max-height: 66vh;
  }
}

/* ---- YouTube video cards (videolar — GLightbox) ---- */
.tgr-vcard { display: block; text-decoration: none; }
.tgr-vcard__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center; border-radius: 14px; overflow: hidden;
  background-color: #0f1a17; box-shadow: 0 10px 26px rgba(15,26,23,.14);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tgr-vcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.36));
  opacity: .55; transition: opacity .3s ease;
}
.tgr-vcard:hover .tgr-vcard__media { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,26,23,.24); }
.tgr-vcard:hover .tgr-vcard__media::after { opacity: .3; }
.tgr-vcard__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 68px; height: 48px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); transition: transform .3s ease;
}
.tgr-vcard__play svg { width: 68px; height: 48px; display: block; }
.tgr-vcard__play .yt-bg { fill: #f00; transition: fill .3s ease; }
.tgr-vcard:hover .tgr-vcard__play { transform: translate(-50%,-50%) scale(1.09); }
.tgr-vcard:hover .tgr-vcard__play .yt-bg { fill: #ff2626; }
.tgr-vcard__title {
  display: block; margin: 14px 2px 0; font-weight: 600; font-size: 15.5px; line-height: 1.45;
  color: var(--theme-palette-color-3, #213631);
}

/* ---- Gallery grid (galeri) — Elementor gallery: 5 cols / 2 tablet-mobile, 3:2 ---- */
.tgr-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tgr-gallery__item {
  display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px;
  background: #0f1a17;
}
.tgr-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tgr-gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(15,26,23,.35); opacity: 0; transition: opacity .35s ease;
}
.tgr-gallery__item:hover img { transform: scale(1.06); }
.tgr-gallery__item:hover::after { opacity: 1; }
.tgr-gallery__item .tgr-zoom {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .35s ease;
}
.tgr-gallery__item:hover .tgr-zoom { opacity: 1; }
.tgr-gallery__item .tgr-zoom svg { width: 34px; height: 34px; }
@media (max-width: 1024px) { .tgr-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .tgr-gallery { grid-template-columns: repeat(2, 1fr); gap: 7px; } }

/* ---- Video grid (videolar) — 3 cols / 1 mobile, 16:9 ---- */
.tgr-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1024px) { .tgr-videos { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 767px)  { .tgr-videos { grid-template-columns: repeat(1, 1fr); gap: 18px; } }

/* ---- References grid (referanslarimiz) — 6 cols, 20px gap ---- */
.tgr-ref-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 10px; }
.tgr-ref-grid img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: contain; }
.tgr-ref-banner { margin: 0 auto 30px; max-width: 100%; }
.tgr-ref-banner img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 1024px) { .tgr-ref-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .tgr-ref-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .tgr-ref-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Contact form alerts ---- */
.tgr-form-alert {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; font-weight: 500;
}
.tgr-form-alert--success { background: #e6f6ec; color: #12703a; border: 1px solid #b6e3c6; }
.tgr-form-alert--error   { background: #fdecec; color: #a11d1d; border: 1px solid #f3c2c2; }

/* ---- Language switcher (fixed pill, bottom-left) ---- */
.tgr-lang { position: relative; display: inline-flex; align-items: center; }
.tgr-lang--fixed { position: fixed; left: 20px; bottom: 24px; z-index: 9985; }
.tgr-lang-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; background: #fff;
  color: var(--theme-palette-color-4, #0f1a17); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 30px;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
.tgr-lang-btn:hover { color: var(--theme-palette-color-1, #EA820E); }
.tgr-lang-btn svg { color: var(--theme-palette-color-1, #EA820E); }
.tgr-lang-menu {
  position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 175px; background: #fff; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.2); padding: 6px; z-index: 100000; display: none; max-height: 55vh; overflow-y: auto;
}
.tgr-lang.open .tgr-lang-menu { display: block; }
.tgr-lang-item {
  display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; cursor: pointer;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #213631; text-align: left;
}
.tgr-lang-item:hover { background: #f4f6f8; color: var(--theme-palette-color-1, #EA820E); }
.tgr-lang-item span { font-size: 17px; }

/* Hide Google Translate injected banner/tooltip */
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { background: transparent !important; box-shadow: none !important; }

/* ---- Hero background video: always COVER the section (Elementor's JS normally sizes
        this to fill; we dropped that JS, so force it here — fixes black bars on mobile). ---- */
.elementor-background-video-container { background: #0f1a17; }
.elementor-background-video-container .elementor-background-video-hosted,
video.elementor-background-video-hosted {
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  min-width: 100%; min-height: 100%;
  transform: none !important;
  object-fit: cover !important;
}

/* ---- Redesigned footer (item 3) ---- */
.tgr-footer { background: linear-gradient(180deg, #1a2723, #0f1a17); color: #c7d1ce; }
.tgr-footer__main { padding: 64px 0 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tgr-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.tgr-footer__logo { display: inline-block; margin-bottom: 18px; line-height: 0; }
.tgr-footer__logo img { height: 78px; width: auto; max-width: 300px; display: block; filter: brightness(0) invert(1); }
.tgr-footer__brand p { font-size: 14.5px; line-height: 1.8; margin: 0 0 20px; max-width: 340px; }
.tgr-footer__soc { display: flex; gap: 10px; flex-wrap: wrap; }
.tgr-footer__soc a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .25s ease, transform .25s ease; }
.tgr-footer__soc a svg { width: 18px; height: 18px; }
.tgr-footer__soc a:hover { background: var(--tgr-o, #EA820E); transform: translateY(-3px); }
.tgr-footer__col h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.tgr-footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--tgr-o, #EA820E); }
.tgr-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tgr-footer__links a { color: #c7d1ce; text-decoration: none; font-size: 14.5px; transition: color .2s ease, padding-left .2s ease; }
.tgr-footer__links a:hover { color: var(--tgr-o, #EA820E); padding-left: 5px; }
.tgr-footer__contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.tgr-footer__contact li { display: flex; align-items: flex-start; gap: 12px; color: #c7d1ce; font-size: 14.5px; line-height: 1.5; }
.tgr-footer__contact li a { display: flex; align-items: flex-start; gap: 12px; color: #c7d1ce; text-decoration: none; }
.tgr-footer__contact svg { width: 20px; height: 20px; flex: none; color: var(--tgr-o, #EA820E); margin-top: 1px; }
.tgr-footer__contact li a:hover span { color: #fff; }
.tgr-footer__bar { padding: 20px 0; }
.tgr-footer__bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tgr-footer__bar p { margin: 0; font-size: 13.5px; color: #9fb0ac; }
.tgr-footer__top-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; transition: background .25s ease; }
.tgr-footer__top-link:hover { background: var(--tgr-o, #EA820E); }
.tgr-footer__top-link svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .tgr-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tgr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tgr-footer__grid { grid-template-columns: 1fr; }
  .tgr-footer__main { padding: 48px 0 32px; }
  .tgr-footer__bar-in { flex-direction: column-reverse; gap: 14px; text-align: center; }
}

/* ---- Generic responsive safety: never allow horizontal scroll ---- */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }

