/*
Theme Name: Bursa Mezar Pro
Theme URI: https://www.bursamezarbakimi.com/
Author: Bursa Mezar Bakımı
Author URI: https://www.bursamezarbakimi.com/
Description: Bursa Mezar Bakımı için sıfırdan tasarlanmış kurumsal, profesyonel ve mobil uyumlu WordPress teması. Mezar temizlik, peyzaj ve mermer bakım hizmetlerine özeldir. Elementor uyumludur.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bursa-mezar-pro
Tags: custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready, elementor

Kurumsal mezar bakım teması – demo içerik yok.
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a2e1f;
  background: #f7f5f0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d5a3d; text-decoration: none; transition: color .2s; }
a:hover { color: #1e3d2a; }
h1, h2, h3, h4, h5, h6 {
  color: #1e3d2a;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

/* ========== LAYOUT ========== */
.bm-container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* ========== TOP BAR ========== */
.bm-topbar {
  background: #1e3d2a;
  color: #d4e5d9;
  font-size: 0.875rem;
  padding: 8px 0;
}
.bm-topbar .bm-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.bm-topbar a { color: #d4e5d9; }
.bm-topbar a:hover { color: #fff; }
.bm-topbar-left,
.bm-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.bm-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bm-topbar svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.9; }

/* ========== HEADER ========== */
.bm-header {
  background: #fff;
  border-bottom: 1px solid rgba(30, 61, 42, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.bm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 72px;
}
.bm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bm-brand img { max-height: 48px; width: auto; }
.bm-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3d2a;
  line-height: 1.2;
}
.bm-brand-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a6b5c;
}

/* Nav */
.bm-nav { display: flex; align-items: center; gap: 8px; }
.bm-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.bm-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a2e1f;
  border-radius: 6px;
}
.bm-menu a:hover,
.bm-menu .current-menu-item > a {
  background: rgba(45, 90, 61, 0.08);
  color: #2d5a3d;
}
.bm-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2d5a3d;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.bm-cta:hover { background: #1e3d2a; color: #fff !important; }

/* Mobile toggle */
.bm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(30,61,42,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: #1e3d2a;
  font-size: 1.25rem;
  line-height: 1;
}

/* ========== MAIN / ELEMENTOR ========== */
.site-main { width: 100%; }
.elementor-page .site-main { padding: 0; }

/* Classic content fallback */
.bm-content-wrap {
  padding: 40px 0 60px;
}
.bm-content-wrap .entry-content {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.bm-content-wrap .entry-title { margin-bottom: 16px; }

/* ========== FOOTER ========== */
.bm-footer {
  background: #1e3d2a;
  color: #c8dccf;
  padding: 48px 0 0;
  margin-top: auto;
}
.bm-footer a { color: #c8dccf; }
.bm-footer a:hover { color: #fff; }
.bm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.bm-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.bm-footer p { font-size: 0.9rem; opacity: 0.9; }
.bm-footer ul { list-style: none; padding: 0; margin: 0; }
.bm-footer li { margin-bottom: 8px; font-size: 0.9rem; }
.bm-footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.bm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  opacity: 0.85;
}

/* ========== PLANT GUIDE ========== */
.plant-guide {
  width: 100%;
  padding: clamp(10px, 2vw, 28px);
  background: #f5f1e8;
}
.plant-guide__inner {
  width: min(100%, 1250px);
  margin: 0 auto;
  background: #fffdf8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.plant-guide__intro {
  padding: 20px 24px 8px;
  text-align: center;
}
.plant-guide__intro h1 {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  margin-bottom: 8px;
}
.plant-guide__intro p {
  color: #5a6b5c;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  max-width: 700px;
  margin: 0 auto 12px;
}
.plant-guide__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .bm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bm-menu-toggle { display: block; }
  .bm-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(30,61,42,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 12px 16px 20px;
  }
  .bm-nav-menu.is-open { display: block; }
  .bm-menu {
    flex-direction: column;
    gap: 2px;
  }
  .bm-menu a { padding: 12px 14px; }
  .bm-cta { width: 100%; justify-content: center; margin-top: 8px; }
  .bm-header { position: relative; }
  .bm-header-inner { position: relative; }
}

@media (max-width: 600px) {
  .bm-topbar { font-size: 0.8rem; }
  .bm-topbar .bm-container { justify-content: center; text-align: center; }
  .bm-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .plant-guide { padding: 0; }
  .plant-guide__inner { border-radius: 0; box-shadow: none; }
  .bm-brand-text { font-size: 1rem; }
  .bm-brand img { max-height: 40px; }
}

/* WordPress / Elementor compatibility */
.alignwide, .alignfull { max-width: none; }
.wp-block-group { margin: 0; }
body.elementor-page .bm-content-wrap { padding: 0; }
body.elementor-page .bm-content-wrap .entry-content {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
/* Hide theme demo leftovers if any plugin injects */
.bm-hide { display: none !important; }

/* ============================================================
   POPUP – Kapatma (X) butonu çok belirgin
   ============================================================ */

.auto-popup .close-popup,
.close-popup,
button.close-popup,
.dialog-close-button,
.elementor-popup-modal .dialog-close-button {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 100 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 3px solid #ffffff !important;
  border-radius: 50% !important;

  background: #c62828 !important;
  color: #ffffff !important;

  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: none !important;

  cursor: pointer !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(255, 255, 255, 0.25) !important;

  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.auto-popup .close-popup:hover,
.close-popup:hover,
button.close-popup:hover {
  background: #b71c1c !important;
  transform: scale(1.08) !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.65),
    0 0 0 5px rgba(255, 255, 255, 0.35) !important;
}

.auto-popup .close-popup:focus,
.close-popup:focus {
  outline: 3px solid #ffeb3b !important;
  outline-offset: 3px !important;
}

/* Mobilde X daha da büyük ve parmak dostu */
@media (max-width: 600px) {
  .auto-popup .close-popup,
  .close-popup,
  button.close-popup {
    top: 8px !important;
    right: 8px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    font-size: 36px !important;
    border-width: 3px !important;
  }

  .popup-card {
    padding-top: 64px !important;
  }
}

/* ============================================================
   GALERİ / FOTOĞRAFLAR – mantıklı ızgara, tüm cihazlar
   ============================================================ */

/* Elementor image gallery */
.elementor-image-gallery .gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  margin: 0 !important;
  width: 100% !important;
}

.elementor-image-gallery .gallery-item {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #e8efe9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elementor-image-gallery .gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.elementor-image-gallery .gallery-item a,
.elementor-image-gallery .gallery-icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.elementor-image-gallery .gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 12px;
}

/* Elementor Image widget (tekli fotoğraflar) */
.elementor-widget-image img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

/* Before/After tarzı yan yana görseller */
.elementor-section .elementor-col-50 .elementor-widget-image,
.elementor-section .elementor-col-33 .elementor-widget-image {
  height: 100%;
}

.elementor-section .elementor-col-50 .elementor-widget-image img,
.elementor-section .elementor-col-33 .elementor-widget-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* Lightbox / tıklanınca büyüyen görseller */
.elementor-lightbox .elementor-lightbox-image {
  max-height: 90vh !important;
  object-fit: contain !important;
}

/* Tablet */
@media (max-width: 900px) {
  .elementor-image-gallery .gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Telefon */
@media (max-width: 600px) {
  .elementor-image-gallery .gallery {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .elementor-image-gallery .gallery-item {
    border-radius: 8px;
    aspect-ratio: 1 / 1;
  }

  .elementor-image-gallery .gallery-item img {
    border-radius: 8px;
  }

  /* Mobilde tek sütun büyük görseller için */
  .elementor-widget-image {
    margin-bottom: 12px;
  }
}

/* Çok küçük ekran: tek sütun */
@media (max-width: 380px) {
  .elementor-image-gallery .gallery {
    grid-template-columns: 1fr !important;
  }
  .elementor-image-gallery .gallery-item {
    aspect-ratio: 4 / 3;
  }
}

/* Genel: taşan görselleri engelle */
.elementor img {
  max-width: 100%;
  height: auto;
}

/* Section içi hizalama */
.elementor-section .elementor-container {
  max-width: 1180px;
}

/* ============================================================
   4 MEVSİM MEZAR ÇİÇEKLERİ SAYFASI
   ============================================================ */

.bm-flowers-page {
  background: #f5f1e8;
}

.bm-flowers {
  width: min(100% - 24px, 920px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.bm-flowers__hero {
  text-align: center;
  margin-bottom: 24px;
}

.bm-flowers__badge {
  display: inline-block;
  background: #2d5a3d;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.bm-flowers__hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  color: #1e3d2a;
  margin: 0 0 10px;
}

.bm-flowers__lead {
  color: #5a6b5c;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Uyarı kutusu – belirgin */
.bm-warn {
  background: #fff5f5;
  border: 2px solid #c62828;
  border-left: 8px solid #c62828;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 24px;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.12);
}

.bm-warn__title {
  color: #b71c1c !important;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.bm-warn__list {
  margin: 0;
  padding-left: 1.1em;
  color: #3e2723;
}

.bm-warn__list li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.bm-warn__list strong {
  color: #b71c1c;
}

.bm-note {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.bm-note h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #1e3d2a !important;
}

.bm-note p {
  margin: 0;
  color: #2e4a32;
  line-height: 1.6;
}

.bm-flowers__poster {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  background: #fffdf8;
}

.bm-flowers__poster img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bakım kartları */
.bm-care {
  margin-bottom: 36px;
}

.bm-care h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #1e3d2a !important;
}

.bm-care__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bm-care__card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  border: 1px solid rgba(45,90,61,.1);
}

.bm-care__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.bm-care__card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #2d5a3d !important;
}

.bm-care__card p {
  margin: 0;
  font-size: 0.9rem;
  color: #445;
  line-height: 1.5;
}

/* Bitki kartları */
.bm-plants h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.bm-plants__intro {
  color: #5a6b5c;
  margin: 0 0 18px;
}

.bm-plant {
  background: #fffdf8;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(45,90,61,.12);
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
  scroll-margin-top: 90px;
}

.bm-plant__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.bm-plant__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2d5a3d;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.bm-plant__season {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d5a3d;
  background: rgba(45,90,61,.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.bm-plant h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #1e3d2a !important;
}

.bm-plant h3 em {
  font-style: italic;
  font-weight: 500;
  color: #5a6b5c;
  font-size: 0.9em;
}

.bm-plant ul {
  margin: 0;
  padding-left: 1.15em;
  color: #333;
}

.bm-plant li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.bm-flowers__footer-note {
  text-align: center;
  margin-top: 28px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.bm-flowers__footer-note p {
  margin: 0 0 12px;
  color: #2d5a3d;
  font-weight: 600;
}

.bm-flowers__cta {
  margin-top: 8px !important;
}

@media (max-width: 800px) {
  .bm-care__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .bm-flowers {
    width: 100%;
    padding: 16px 12px 36px;
  }
  .bm-care__grid {
    grid-template-columns: 1fr;
  }
  .bm-warn {
    padding: 14px;
    border-left-width: 6px;
  }
  .bm-plant {
    padding: 14px;
  }
  .bm-flowers__poster {
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
}


/* Kurumsal: tablo/hücre arka plan yok, okunabilir metin */
.bm-corporate-tables,
.entry-content table,
.elementor-widget-text-editor table,
.elementor table {
  background: transparent !important;
  border-collapse: collapse;
  width: 100%;
}
.entry-content td,
.entry-content th,
.elementor td,
.elementor th {
  background: transparent !important;
  background-color: transparent !important;
}
/* Arka plan üzerinde okunmayan yazı riskini azalt */
.elementor-widget-heading .elementor-heading-title {
  text-shadow: none;
}
body {
  background: #f4f6f4 !important;
}
