/* ==================================================
   MES DİJİTAL — site geneli: yazı tipleri, header, tam ekran menü, Impreza satır düzeni, formlar
   Element stilleri mes-elementler.css'te.
================================================== */

:root {
    /* Vurgu rengi Ayarlar → MES Dijital'den gelir (bkz. inc/ayarlar.php); bunlar yedek değerler. */
    --mes-vurgu: #000;
    --mes-vurgu-koyu: #1a1a1a;
    --mes-gri: #909090;
    --mes-acik: #f5f5f5;
    --mes-baslik-font: "Barlow Condensed", sans-serif;
    --mes-govde-font: "Poppins", sans-serif;
    --mes-yumusak: cubic-bezier(0.165, 0.84, 0.44, 1);
    --mes-ust: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Yazı tipleri ve renkler ---------- */

html body {
    font-family: var(--mes-govde-font);
    font-size: 16px;
    line-height: 25px;
    color: var(--mes-gri);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: var(--mes-baslik-font);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
}

body h1 { font-size: 30px; line-height: 1.1em; }
body h2 { font-size: 30px; line-height: 1.1em; }
body h3 { font-size: 35px; line-height: 1.06em; }
body h4 { font-size: 26px; line-height: 1.1em; }
body h5 { font-size: 19px; line-height: 1.1em; }

body a {
    color: #000;
    text-decoration: none;
}

/* Hakkımızda metni: Barlow Semi Condensed 20/25, ara başlıklar kalın paragraf. */
.mes-yazi,
.mes-yazi p {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 20px;
    line-height: 25px;
    color: var(--mes-gri);
}

.mes-yazi p {
    margin: 0 0 25px;
}

.mes-yazi strong {
    font-weight: 700;
}

/* ---------- Impreza satırları ----------
   mes-tam: kenar boşluksuz tam genişlik (vitrin, başlık şeridi)
   mes-g1100 / mes-g1300: içerik genişlikleri
   mes-bosluksuz: sütunlar arası boşluk yok */

.l-section.mes-tam > .l-section-h {
    max-width: none !important;
    padding: 0 !important;
}

.l-section.mes-tam .g-cols,
.l-section.mes-bosluksuz .g-cols {
    --columns-gap: 0px;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.l-section.mes-tam .wpb_column > .vc_column-inner,
.l-section.mes-bosluksuz .wpb_column > .vc_column-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.l-section.mes-g1100 > .l-section-h,
.l-section.mes-g1300 > .l-section-h {
    max-width: 1100px;
    padding-left: 0;
    padding-right: 0;
}

.l-section.mes-g1300 > .l-section-h {
    max-width: 1300px;
}

.l-section.mes-gri {
    background: transparent;
}

.l-section.mes-gri > .l-section-h {
    background: var(--mes-acik);
}

/* Bölüm iç boşlukları (üst/alt) */
.l-section[class*="mes-p-"] > .l-section-h { padding-top: 0; padding-bottom: 0; }
.l-section.mes-p-88-94 > .l-section-h { padding-top: 88px; padding-bottom: 94px; }
.l-section.mes-p-0-89 > .l-section-h { padding-bottom: 89px; }
.l-section.mes-p-130 > .l-section-h { padding-top: 130px; padding-bottom: 130px; }
.l-section.mes-p-100-95 > .l-section-h { padding-top: 100px; padding-bottom: 95px; }
.l-section.mes-p-246-0 > .l-section-h { padding-top: 246px; }
.l-section.mes-p-86-123 > .l-section-h { padding-top: 86px; padding-bottom: 123px; }
.l-section.mes-p-113-95 > .l-section-h { padding-top: 113px; padding-bottom: 95px; }
.l-section.mes-p-130-55 > .l-section-h { padding-top: 130px; padding-bottom: 55px; }
.l-section.mes-p-0-83 > .l-section-h { padding-bottom: 83px; }
.l-section.mes-p-117-89 > .l-section-h { padding-top: 117px; padding-bottom: 89px; }
.l-section.mes-p-100 > .l-section-h { padding-top: 100px; padding-bottom: 100px; }
.l-section.mes-p-0-20 > .l-section-h { padding-bottom: 20px; }

/* Hizmet sayfalarında 2. ve 3. sütun 77px aşağıdan başlar. */
.mes-kaydir-77 > .vc_column-inner {
    padding-top: 77px !important;
}

/* ---------- Impreza'nın kendi header / başlık şeridi / footer'ı ----------
   Eklentinin header'ı açıkken Impreza header'ı gizlenir (Tema Ayarları'nda kapatılması yine önerilir). */

body.mes-header-var .l-header {
    display: none !important;
}

body.mes-header-var .l-canvas,
body.mes-header-var .l-main {
    padding-top: 0 !important;
}

body.mes-header--standart {
    padding-top: 100px;
}

body.mes-header-var .l-titlebar {
    display: none;
}

body.home .l-footer {
    display: none;
}

/* ---------- Header ---------- */

.mes-header {
    position: absolute;
    top: var(--mes-ust);
    left: 0;
    right: 0;
    z-index: 100;
    height: 100px;
}

.mes-header__ic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
}

.mes-logo {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mes-logo__img {
    width: auto;
    max-width: none;
    height: 100%;
    max-height: 38px;
    object-fit: contain;
}

.mes-header--seffaf .mes-logo__img,
.mes-menu-acik .mes-header .mes-logo__img {
    filter: brightness(0) invert(1);
}

/* Ortalı menü */
.mes-header__nav {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
}

.mes-header__menu,
.mes-header__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mes-header__menu {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.mes-header__menu > li {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0 15px;
}

.mes-header__menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: var(--mes-baslik-font);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.1em;
    text-transform: uppercase;
    color: #000;
}

.mes-header__menu > li > a .mes-menu-ic {
    position: relative;
}

.mes-header__menu > li > a .mes-menu-ic::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 4px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--mes-yumusak);
}

.mes-header__menu > li > a:hover .mes-menu-ic::after,
.mes-header__menu > li.current-menu-item > a .mes-menu-ic::after,
.mes-header__menu > li.current-menu-ancestor > a .mes-menu-ic::after,
.mes-header__menu > li.current_page_parent > a .mes-menu-ic::after {
    transform: scaleX(1);
}

/* Açılır alt menü: vurgu renginde kutu */
.mes-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -4px;
    width: 260px;
    padding: 34px 0;
    background: var(--mes-vurgu);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.25s;
    z-index: 10;
}

.mes-header__menu > li:hover > .sub-menu,
.mes-header__menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.mes-header__menu .sub-menu li {
    margin: 0;
    padding: 3px 34px;
}

.mes-header__menu .sub-menu a {
    font-family: var(--mes-govde-font);
    font-size: 15px;
    line-height: 24px;
    color: #fff;
}

.mes-header__menu .sub-menu a .mes-menu-ic,
.mes-tam-ekran__menu a .mes-menu-ic {
    padding: 0 3px;
    background: linear-gradient(#fff, #fff) no-repeat 0 100% / 0 100%;
    transition: background-size 0.3s var(--mes-yumusak), color 0.1s;
}

.mes-header__menu .sub-menu a:hover .mes-menu-ic,
.mes-header__menu .sub-menu .current-menu-item > a .mes-menu-ic {
    background-size: 100% 100%;
    color: #000;
}

/* Hamburger: iki kalın çizgi, üstüne gelince/açılınca X olur */
.mes-hamburger {
    position: relative;
    z-index: 101;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
}

.mes-header--seffaf .mes-hamburger,
.mes-menu-acik .mes-hamburger {
    color: #fff;
}

.mes-hamburger__cizgiler {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    transition: transform 0.4s var(--mes-yumusak);
}

.mes-hamburger__cizgiler span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    transition: top 0.3s, transform 0.3s;
}

.mes-hamburger__cizgiler span:first-child { top: 8px; }
.mes-hamburger__cizgiler span:last-child { top: 18px; }

.mes-hamburger:hover .mes-hamburger__cizgiler > span:first-child,
.mes-menu-acik .mes-hamburger__cizgiler > span:first-child {
    transform: translateY(5px);
}

.mes-hamburger:hover .mes-hamburger__cizgiler > span:last-child,
.mes-menu-acik .mes-hamburger__cizgiler > span:last-child {
    transform: translateY(-5px) rotate(-90deg);
}

.mes-menu-acik .mes-hamburger__cizgiler {
    transform: rotate(-45deg);
}

/* Yapışkan header: aşağı kayınca yukarıdan iner */
.mes-header-yapiskan {
    position: fixed;
    top: var(--mes-ust);
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    box-shadow: 3px 3px 16px 2px rgba(0, 0, 0, 0.04);
    transform: translateY(-100%);
    transition: transform 0.5s, top 0.5s;
    z-index: 100;
}

.mes-yapiskan-gorunur .mes-header-yapiskan {
    transform: translateY(0);
}

.mes-menu-acik .mes-header-yapiskan {
    transform: translateY(-100%);
}

/* ---------- Tam ekran menü ---------- */

.mes-tam-ekran {
    position: fixed;
    inset: 0;
    z-index: 99;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--mes-vurgu);
    visibility: hidden;
    opacity: 0;
}

.mes-menu-acik .mes-tam-ekran {
    animation: mes-tam-giris 0.25s linear both;
}

.mes-menu-kapaniyor .mes-tam-ekran {
    animation: mes-tam-cikis 0.25s linear both;
}

@keyframes mes-tam-giris {
    from { opacity: 0; visibility: visible; }
    to { opacity: 1; visibility: visible; }
}

@keyframes mes-tam-cikis {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

.mes-menu-acik .mes-header {
    position: fixed;
    z-index: 100;
}

.mes-menu-acik .mes-header__nav {
    visibility: hidden;
}

.mes-tam-ekran__ic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.mes-tam-ekran__nav {
    width: 100%;
    padding-left: 8%;
}

.mes-tam-ekran__menu,
.mes-tam-ekran__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mes-tam-ekran__menu li {
    margin: 0;
    padding: 0;
}

.mes-tam-ekran__menu a {
    display: inline-block;
    margin: 12px 0;
    font-family: var(--mes-baslik-font);
    font-size: 55px;
    font-weight: 600;
    line-height: 1.1em;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.25s;
}

.mes-tam-ekran__menu a .mes-menu-ic {
    padding: 0 9px;
}

.mes-tam-ekran__menu a:hover .mes-menu-ic,
.mes-tam-ekran__menu .current-menu-item > a .mes-menu-ic,
.mes-tam-ekran__menu .current-menu-ancestor > a .mes-menu-ic {
    background-size: 100% 100%;
    color: #000;
}

.mes-tam-ekran__menu .sub-menu {
    display: none;
    padding: 15px 0 0;
}

.mes-tam-ekran__menu .sub-menu a {
    margin: 5px 0;
    font-family: "Hind", sans-serif;
    font-size: 21px;
    font-weight: 300;
    text-transform: none;
}

/* ---------- Butonlar ----------
   Impreza butonuna el_class="mes-btn" verilirse sitenin siyah butonuna döner. */

.mes-buton,
:is(.w-btn.mes-btn, .mes-btn .w-btn, .mes-form .w-btn) {
    display: inline-flex;
    align-items: center;
    padding: 4px 38px 6px !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000 !important;
    color: #fff !important;
    font-family: var(--mes-baslik-font) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 36px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

:is(.w-btn.mes-btn, .mes-btn .w-btn, .mes-form .w-btn)::before,
:is(.w-btn.mes-btn, .mes-btn .w-btn, .mes-form .w-btn)::after {
    display: none !important;
}

.mes-buton:hover,
:is(.w-btn.mes-btn, .mes-btn .w-btn, .mes-form .w-btn):hover {
    border-color: var(--mes-vurgu) !important;
    background: #fff !important;
    color: var(--mes-vurgu) !important;
}

/* ---------- Form (us_cform) ---------- */

.mes-form .w-form-row-label {
    margin-bottom: 4px;
    font-family: var(--mes-govde-font);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    color: var(--mes-gri);
}

.mes-form .w-form-row-field input,
.mes-form .w-form-row-field textarea,
.mes-form .w-form-row-field select {
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--mes-acik) !important;
    color: #000 !important;
    font-family: var(--mes-govde-font);
    font-size: 15px;
}

.mes-form .w-form-row-field input,
.mes-form .w-form-row-field select {
    min-height: 46px;
    padding: 5.5px 15px;
}

.mes-form .w-form-row-field textarea {
    min-height: 250px;
    padding: 12px 15px;
}

.mes-form .w-form-row-field input:focus,
.mes-form .w-form-row-field textarea:focus,
.mes-form .w-form-row-field select:focus {
    border-color: #000 !important;
}

.mes-form-not {
    margin-top: 10px;
    color: var(--mes-gri);
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1440px) {
    .mes-tam-ekran__menu a { margin: 10px 0; }
}

@media (max-width: 1366px) {
    .l-section.mes-g1300 > .l-section-h { max-width: 1100px; }
}

@media (max-width: 1200px) {
    .l-section.mes-g1100 > .l-section-h,
    .l-section.mes-g1300 > .l-section-h {
        max-width: none;
        padding-left: 40px;
        padding-right: 40px;
    }

    .mes-header__menu > li { padding: 0 10px; }
}

@media (max-width: 1024px) {
    .mes-header__nav { display: none; }

    .mes-tam-ekran__nav { padding-left: 53px; }
    .mes-tam-ekran__menu a { font-size: 35px; }

    body.mes-header--standart { padding-top: 70px; }
    .mes-header { height: 70px; }
    .mes-header__ic { padding: 0 30px; }
}

@media (max-width: 767px) {
    .l-section.mes-g1100 > .l-section-h,
    .l-section.mes-g1300 > .l-section-h {
        padding-left: 20px;
        padding-right: 20px;
    }

    .l-section[class*="mes-p-"] > .l-section-h {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .l-section.mes-p-0-89 > .l-section-h,
    .l-section.mes-p-0-83 > .l-section-h { padding-top: 0; }

    .mes-kaydir-77 > .vc_column-inner { padding-top: 70px !important; }

    .mes-logo__img { max-height: 26px; }
    .mes-header { height: 70px; }

    .mes-yazi, .mes-yazi p { font-size: 18px; }
}

@media (max-width: 680px) {
    .mes-tam-ekran__nav { padding-left: 30px; }
    .mes-tam-ekran__menu a { font-size: 30px; }
    .mes-tam-ekran__menu .sub-menu a { margin: 3px 0; }
    .mes-header__ic { padding: 0 20px; }
}
