/*
Theme Name: One Mahalle Theme
Theme URI: https://onemahalle.com/
Description: One Mahalle için bağımsız, hızlı ve Elementor gerektirmeyen özel WordPress teması. Developed by HSNCRC.
Author: AllcomDigital
Author URI: https://allcom.com.tr/
Version: 1.0.0
Text Domain: one-mahalle
Requires at least: 6.5
Requires PHP: 7.4
*/

:root {
  --om-red: #ce1126;
  --om-red-dark: #a80e1e;
  --om-black: #0a0a0a;
  --om-black-soft: #141414;
  --om-text: #111111;
  --om-muted: #6f6f6f;
  --om-white: #ffffff;
  --om-border: #ececec;
  --om-container: 1320px;
  --om-radius: 18px;
  --om-shadow: 0 10px 30px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }
body { margin: 0; }

/* One Mahalle temel sıfırlamalar */
.page-title,
.entry-title { display: none !important; }

.site-content,
.content-area { padding: 0 !important; margin: 0 !important; }

/* One Mahalle genel yardımcı sınıfları */
.om-container { width: min(calc(100% - 40px), var(--om-container)); margin-inline: auto; }
.om-section { padding: 80px 0; }
.om-section--compact { padding: 52px 0; }

@media (max-width: 767px) {
  .om-container { width: min(calc(100% - 30px), var(--om-container)); }
  .om-section { padding: 56px 0; }
  .om-section--compact { padding: 38px 0; }
}


/* ==========================================
   ONE MAHALLE FOOTER
   ========================================== */
.om-footer {
  background: #ffffff;
  color: #5f5f5f;
  border-top: 1px solid #ececec;
  font-family: 'Inter', sans-serif;
}

.om-footer a {
  color: inherit;
  text-decoration: none;
}

.om-footer__main {
  padding: 66px 0 44px;
}

.om-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(160px, .75fr) minmax(160px, .75fr) minmax(280px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.om-footer__logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.om-footer__logo img {
  width: auto;
  max-width: 210px;
  max-height: 78px;
  display: block;
}

.om-footer__brand-text {
  margin: 0 0 20px;
  max-width: 360px;
  color: #6f6f6f;
  font-size: 14px;
  line-height: 1.75;
}

.om-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.om-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #161616;
  background: #ffffff;
  transition: .2s ease;
}

.om-footer__social a:hover {
  background: var(--om-red);
  border-color: var(--om-red);
  color: #fff;
  transform: translateY(-2px);
}

.om-footer__title {
  margin: 0 0 18px;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.om-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.om-footer__links a {
  color: #676767;
  font-size: 14px;
  transition: .2s ease;
}

.om-footer__links a:hover {
  color: var(--om-red);
  padding-left: 4px;
}

.om-footer__contact {
  display: grid;
  gap: 14px;
}

.om-footer__contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #676767;
  font-size: 13.5px;
  line-height: 1.65;
}

.om-footer__contact-item i {
  color: var(--om-red);
  margin-top: 4px;
}

.om-footer__contact-item strong {
  color: #111111;
  font-weight: 700;
}

.om-footer__bottom {
  border-top: 1px solid #ececec;
}

.om-footer__bottom-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  color: #7a7a7a;
}

.om-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.om-footer__bottom-links a:hover {
  color: var(--om-red);
}

.om-footer__credit {
  white-space: nowrap;
}

.om-footer__credit strong {
  color: #111111;
}

.om-mobile-actions {
  display: none;
}

@media (max-width: 1024px) {
  .om-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }

  .om-footer__main {
    padding: 48px 0 30px;
  }

  .om-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .om-footer__bottom-inner {
    padding: 20px 0;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .om-footer__credit {
    white-space: normal;
  }

  .om-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -8px 28px rgba(0,0,0,.08);
  }

  .om-mobile-actions a {
    color: #111111;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
  }

  .om-mobile-actions a + a {
    border-left: 1px solid #e8e8e8;
    background: var(--om-red);
  }
}


/* ==========================================
   WHITE CHROME OVERRIDES — v1.3.0
   ========================================== */
.om-footer{
  background:#fff;
  color:#626262;
  border-top:1px solid #ececec;
}
.om-footer__title{color:#111}
.om-footer__brand-text,
.om-footer__links a,
.om-footer__contact-item{color:#686868}
.om-footer__contact-item strong{color:#111}
.om-footer__social a{
  background:#fff;
  border-color:#e1e1e1;
  color:#111;
}
.om-footer__social a:hover{
  background:var(--om-red);
  border-color:var(--om-red);
  color:#fff;
}
.om-footer__links a:hover{color:var(--om-red)}
.om-footer__bottom{border-top:1px solid #ececec}
.om-footer__bottom-inner{color:#777}
.om-footer__bottom-links a:hover{color:var(--om-red)}
.om-footer__credit strong{color:#111}

@media(max-width:767px){
  .om-mobile-actions{
    background:#fff;
    border-top:1px solid #e8e8e8;
    box-shadow:0 -8px 28px rgba(0,0,0,.08);
  }
  .om-mobile-actions a{
    color:#111;
  }
  .om-mobile-actions a + a{
    color:#fff;
    background:var(--om-red);
    border-left:1px solid #e8e8e8;
  }
}


/* Footer WP menu locations — v1.3.1 */
.om-footer__legal-menu{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  list-style:none;
  padding:0;
  margin:0;
}
.om-footer__legal-menu li{
  margin:0;
  padding:0;
}
.om-footer__legal-menu a{
  color:inherit;
  text-decoration:none;
}
.om-footer__legal-menu a:hover{
  color:var(--om-red);
}

@media(max-width:767px){
  .om-footer__legal-menu{
    gap:10px 16px;
  }
}


/* Hakkımızda dedicated page template — v1.3.2 */
body.page .om-about{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
body.page:has(.om-about) #content,
body.page:has(.om-about) .site-content,
body.page:has(.om-about) .content-area,
body.page:has(.om-about) .site-main{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}


/* Corporate pages: hard breakout from Hello/Elementor content width — v1.4.2 */
html, body{
  overflow-x:hidden;
}

body .om-corp,
body .om-corp-custom{
  position:relative !important;
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

body .om-corp > .om-corp-hero,
body .om-corp > .om-corp-wide-image,
body .om-corp > .om-corp-soft,
body .om-corp > .om-corp-dark,
body .om-corp > .om-corp-cta{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* Prevent theme wrappers from clipping breakout sections */
body.page #page,
body.page #content,
body.page .site-content,
body.page .content-area,
body.page .site-main{
  overflow:visible !important;
}
\n\n/* Managed page templates — v1.5.0: Elementor/Hello wrappers bypassed by template_include. */\nbody.om-managed-page #content,body.om-managed-page .site-content,body.om-managed-page .content-area,body.om-managed-page .site-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}\nbody.om-managed-page .om-corp,body.om-managed-page .om-corp-custom,body.om-managed-page .om-home{width:100%!important;max-width:none!important;margin:0!important;left:auto!important;right:auto!important}\n

/* Standalone theme base */
html, body { width:100%; min-height:100%; }
body{
  margin:0;
  background:#fff;
  color:#111;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
img{max-width:100%;height:auto}
a{color:inherit}
#content{width:100%;max-width:none;margin:0;padding:0}
.om-site-main{width:100%;max-width:none;margin:0;padding:0}
.om-basic-page{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:72px 0}
.om-basic-page h1{font-size:clamp(38px,5vw,68px);line-height:1;margin:0 0 28px;letter-spacing:-.04em}
.om-basic-page .entry-content{font-size:17px;line-height:1.8;color:#555}
.om-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.om-post-card{border:1px solid #ececec;border-radius:18px;overflow:hidden;background:#fff}
.om-post-card__body{padding:22px}
.om-post-card h2{margin:0 0 10px;font-size:23px;line-height:1.2}
.om-post-card p{margin:0;color:#666;line-height:1.65}
@media(max-width:900px){.om-post-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.om-post-grid{grid-template-columns:1fr}.om-basic-page{width:calc(100% - 28px);padding:54px 0}}
