/* ═══════════════════════════════════════════════════════
   OTOGALERIO CORE — HEADER WIDGET
   ═══════════════════════════════════════════════════════ */

.ogc-header {
	--h-bg:           var(--ogc-bg);
	--h-text:         var(--ogc-primary);
	--h-text-hover:   var(--ogc-secondary);
	--h-border:       var(--ogc-border);
	--h-shadow:       var(--ogc-shadow-sm);
	--h-padding-y:    14px;
	--h-max-w:        1280px;
	--h-logo-h:       48px;
	--h-logo-h-mob:   36px;
	--h-menu-gap:     32px;
	--h-z:            999;

	--tb-bg:          var(--ogc-primary);
	--tb-text:        rgba(255,255,255,.92);
	--tb-text-hover:  var(--ogc-secondary);
	--tb-padding-y:   8px;

	--cta-bg:         var(--ogc-secondary);
	--cta-bg-hover:   var(--ogc-secondary-700);
	--cta-text:       #fff;
	--cta-radius:     999px;
	--cta-padding:    12px 22px;

	--ghost-bg:       transparent;
	--ghost-bg-hover: var(--ogc-primary-100);
	--ghost-text:     var(--ogc-primary);
	--ghost-border:   var(--ogc-border);

	position: relative;
	width: 100%;
	background: var(--h-bg);
	box-shadow: var(--h-shadow);
	z-index: var(--h-z);
	font-family: inherit;
}

.ogc-header__container {
	max-width: var(--h-max-w);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

/* ─── Top Bar ─── */
.ogc-header__topbar {
	background: var(--tb-bg);
	color: var(--tb-text);
	font-size: 12px;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.ogc-header__topbar .ogc-header__container {
	min-height: 36px;
	padding-top: 6px;
	padding-bottom: 6px;
	gap: 16px;
	justify-content: space-between;
}
.ogc-topbar__group {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.ogc-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tb-text);
	text-decoration: none;
	transition: color .2s var(--ogc-easing);
	white-space: nowrap;
	font-size: 12px;
}
.ogc-topbar__item:hover {
	color: var(--tb-text-hover);
}
.ogc-topbar__item svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}
.ogc-topbar__socials {
	display: inline-flex;
	gap: 4px;
}
.ogc-topbar__social {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--tb-text);
	transition: background .2s, color .2s;
}
.ogc-topbar__social:hover {
	background: var(--ogc-secondary);
	color: #fff;
}
.ogc-topbar__social svg { width: 14px; height: 14px; }

/* ─── Main Bar ─── */
.ogc-header__main .ogc-header__container {
	padding-top: var(--h-padding-y);
	padding-bottom: var(--h-padding-y);
}

.ogc-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.ogc-header__logo a {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.ogc-header__logo img {
	height: var(--h-logo-h);
	width: auto;
	max-width: none;
	display: block;
	transition: opacity .2s;
}
.ogc-header__logo a:hover img { opacity: .9; }

/* ─── Nav (Desktop) ─── */
.ogc-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}
.ogc-header__nav.is-align-left   { justify-content: flex-start; padding-left: 24px; }
.ogc-header__nav.is-align-right  { justify-content: flex-end; padding-right: 12px; }
.ogc-header__nav.is-align-center { justify-content: center; }

.ogc-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--h-menu-gap);
	align-items: center;
}
.ogc-menu > li {
	position: relative;
}
.ogc-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	color: var(--h-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.005em;
	transition: color .2s var(--ogc-easing);
	position: relative;
}
.ogc-menu > li > a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: 4px;
	height: 2px;
	background: var(--ogc-secondary);
	border-radius: 2px;
	transition: right .25s var(--ogc-easing);
}
.ogc-menu > li > a:hover,
.ogc-menu > li.current-menu-item > a,
.ogc-menu > li.current-menu-parent > a,
.ogc-menu > li.current-menu-ancestor > a {
	color: var(--h-text-hover);
}
.ogc-menu > li > a:hover::after,
.ogc-menu > li.current-menu-item > a::after,
.ogc-menu > li.current-menu-parent > a::after {
	right: 0;
}

/* Submenus */
.ogc-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: #fff;
	border: 1px solid var(--h-border);
	border-radius: var(--ogc-radius);
	box-shadow: var(--ogc-shadow-lg);
	min-width: 220px;
	position: absolute;
	top: 100%;
	left: 0;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s var(--ogc-easing), transform .2s var(--ogc-easing);
	z-index: 100;
}
.ogc-menu li:hover > .sub-menu,
.ogc-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.ogc-menu .sub-menu li { position: relative; }
.ogc-menu .sub-menu li a {
	display: block;
	padding: 10px 18px;
	color: var(--h-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background .15s, color .15s, padding-left .15s;
}
.ogc-menu .sub-menu li a:hover {
	background: var(--ogc-primary-100);
	color: var(--h-text-hover);
	padding-left: 22px;
}
.ogc-menu .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}
.ogc-menu li.menu-item-has-children > a::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
	order: 2;
	transition: transform .2s;
}
.ogc-menu > li.menu-item-has-children:hover > a::before {
	transform: rotate(180deg);
}

/* ─── Actions (CTA) ─── */
.ogc-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-left: auto;
}
.ogc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: var(--cta-padding);
	border-radius: var(--cta-radius);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .25s var(--ogc-easing), color .25s, transform .15s, box-shadow .25s;
	letter-spacing: -0.005em;
}
.ogc-btn:active { transform: translateY(1px); }
.ogc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Elementor ICONS render — hem <i> hem <svg> destek */
.ogc-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
	font-size: 16px;
	width: 16px;
	height: 16px;
}
.ogc-btn__icon i,
.ogc-btn__icon svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
	color: inherit;
}
.ogc-btn__icon--right { order: 2; }

.ogc-btn--cta {
	background: var(--cta-bg);
	color: var(--cta-text);
	box-shadow: 0 4px 14px rgba(225,12,20,.30);
}
.ogc-btn--cta:hover {
	background: var(--cta-bg-hover);
	color: var(--cta-text);
	box-shadow: 0 6px 20px rgba(225,12,20,.42);
	transform: translateY(-1px);
}
.ogc-btn--ghost {
	background: var(--ghost-bg);
	color: var(--ghost-text);
	border-color: var(--ghost-border);
}
.ogc-btn--ghost:hover {
	background: var(--ghost-bg-hover);
	color: var(--ghost-text);
	border-color: transparent;
}

/* ─── Mobile Toggle ─── */
.ogc-mobile-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--ogc-primary-100);
	border: none;
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	transition: background .2s;
}
.ogc-mobile-toggle:hover { background: var(--ogc-primary); }
.ogc-mobile-toggle:hover span { background: #fff; }
.ogc-mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ogc-primary);
	border-radius: 2px;
	transition: transform .25s var(--ogc-easing), opacity .15s, background .2s;
}
.ogc-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ogc-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	transform: scale(0);
}
.ogc-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Off-Canvas ─── */
.ogc-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 9999;
	visibility: hidden;
	pointer-events: none;
}
.ogc-mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
}
.ogc-mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15,23,42,0);
	transition: background .35s var(--ogc-easing);
}
.ogc-mobile-menu.is-open .ogc-mobile-menu__overlay {
	background: rgba(15,23,42,.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.ogc-mobile-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(360px, 88vw);
	background: #fff;
	box-shadow: -10px 0 40px rgba(15,23,42,.20);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .4s var(--ogc-easing);
	overflow: hidden;
}
.ogc-mobile-menu[data-side="left"] .ogc-mobile-menu__panel {
	left: 0;
	right: auto;
	transform: translateX(-100%);
	box-shadow: 10px 0 40px rgba(15,23,42,.20);
}
.ogc-mobile-menu[data-side="right"] .ogc-mobile-menu__panel {
	right: 0;
	left: auto;
}
.ogc-mobile-menu.is-open .ogc-mobile-menu__panel {
	transform: translateX(0);
}

.ogc-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--h-border);
	flex-shrink: 0;
}
.ogc-mobile-menu__logo img {
	height: 36px;
	width: auto;
}
.ogc-mobile-menu__close {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	color: var(--ogc-primary) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: color .2s, transform .25s;
	box-shadow: none !important;
	flex-shrink: 0;
	padding: 0 !important;
}
.ogc-mobile-menu__close:hover {
	color: var(--ogc-secondary) !important;
	transform: rotate(90deg);
	background: transparent !important;
}
.ogc-mobile-menu__close svg {
	width: 26px !important;
	height: 26px !important;
	color: currentColor !important;
	stroke: currentColor !important;
	display: block !important;
	fill: none !important;
}
.ogc-mobile-menu__close svg path,
.ogc-mobile-menu__close svg line {
	stroke: currentColor !important;
	fill: none !important;
	stroke-width: 2.4 !important;
	stroke-linecap: round !important;
}

.ogc-mobile-menu__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 0 24px;
	-webkit-overflow-scrolling: touch;
}

.ogc-mobile-menu__nav {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ogc-mobile-menu__nav li { position: relative; }
.ogc-mobile-menu__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	color: var(--ogc-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	border-bottom: 1px solid #f1f5f9;
	transition: background .15s, color .15s, padding-left .15s;
}
.ogc-mobile-menu__nav a:hover,
.ogc-mobile-menu__nav .current-menu-item > a {
	background: #f8fafc;
	color: var(--ogc-secondary);
	padding-left: 24px;
}
.ogc-mobile-menu__nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #f8fafc;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s var(--ogc-easing);
}
.ogc-mobile-menu__nav .sub-menu a {
	padding-left: 36px;
	font-size: 14px;
	font-weight: 500;
}
.ogc-mobile-menu__nav .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform .25s;
}
.ogc-mobile-menu__nav .menu-item-has-children.is-expanded > a::after {
	transform: rotate(180deg);
}
.ogc-mobile-menu__nav .menu-item-has-children.is-expanded > .sub-menu {
	max-height: 1200px;
}

.ogc-mobile-menu__cta {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid #f1f5f9;
	margin-top: 8px;
}
.ogc-mobile-menu__cta .ogc-btn {
	width: 100%;
	padding: 14px 22px;
	font-size: 15px;
}

.ogc-mobile-menu__contact {
	padding: 0 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ogc-mobile-menu__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ogc-primary);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	padding: 8px 0;
}
.ogc-mobile-menu__contact a:hover { color: var(--ogc-secondary); }
.ogc-mobile-menu__contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ogc-secondary); }

.ogc-mobile-menu__socials {
	display: flex;
	gap: 8px;
	padding: 0 20px;
	margin-top: 8px;
}
.ogc-mobile-menu__socials a {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ogc-primary-100);
	color: var(--ogc-primary);
	transition: background .2s, color .2s;
}
.ogc-mobile-menu__socials a:hover {
	background: var(--ogc-secondary);
	color: #fff;
}
.ogc-mobile-menu__socials svg { width: 16px; height: 16px; }

/* ─── Sticky ─── */
.ogc-header[data-sticky="1"] {
	position: sticky;
	top: 0;
}
.ogc-header.is-sticky {
	box-shadow: var(--ogc-shadow);
}
.ogc-header.is-sticky .ogc-header__topbar {
	display: none;
}
.ogc-header.is-sticky .ogc-header__main .ogc-header__container {
	padding-top: 10px;
	padding-bottom: 10px;
}
.ogc-header.is-sticky .ogc-header__logo img {
	height: calc(var(--h-logo-h) - 6px);
}

/* ─── Body lock when mobile menu open ─── */
body.ogc-no-scroll {
	overflow: hidden;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
	.ogc-header__container { padding: 0 20px; }
	.ogc-menu { gap: 24px; }
	.ogc-menu > li > a { font-size: 14px; }
	.ogc-btn { padding: 11px 18px; font-size: 13px; }
	.ogc-btn--ghost { display: none; } /* tablet'te tel butonu gizle */
}

@media (max-width: 880px) {
	.ogc-header__nav { display: none; }
	.ogc-mobile-toggle { display: flex; }
	.ogc-header__topbar .ogc-topbar__group--right { display: none; }
}

@media (max-width: 768px) {
	.ogc-header__topbar { font-size: 11px; }
	.ogc-header__topbar .ogc-topbar__group { gap: 12px; }
	.ogc-header__topbar .ogc-topbar__item { font-size: 11px; gap: 5px; }
	.ogc-header__topbar .ogc-topbar__item svg { width: 11px; height: 11px; }
}

@media (max-width: 600px) {
	.ogc-header__container { padding: 0 14px; gap: 10px; }
	.ogc-header__logo img { height: var(--h-logo-h-mob); }
	.ogc-header__topbar { font-size: 10.5px; }
	.ogc-header__topbar .ogc-topbar__group { gap: 10px; }
	.ogc-header__topbar .ogc-topbar__item { font-size: 10.5px; }
	.ogc-btn--cta { padding: 9px 14px; font-size: 12px; }
	.ogc-btn--cta .ogc-btn__text { display: inline; }
	/* Mobilde email gizle yer aç */
	.ogc-header__topbar .ogc-topbar__item:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
	.ogc-header__topbar .ogc-topbar__item:nth-child(3) { display: none; }
}

@media (max-width: 360px) {
	.ogc-header__topbar { display: none; }
}

/* ═══════════ ELEMENTOR EDITOR FIX ═══════════ */
/* Editor içinde sticky çalışmasın */
.elementor-editor-active .ogc-header[data-sticky="1"] { position: relative; }
