/*
Theme Name: Kömürcü
Description: Mangal kömürü satışı için hafif, açık tonlu, zanaat estetiğinde WordPress teması.
Version: 1.0
Text Domain: komurcu
*/

:root {
  --color-bg-base: #fbf9f5;
  --color-bg-surface: #ffffff;
  --color-bg-muted: #f2eee8;
  --color-border: #e6e0d6;
  --color-text-main: #21201d;
  --color-text-body: #54514b;
  --color-text-muted: #8c877e;
  --color-accent-terracotta: #b85d3b;
  --color-accent-terracotta-hover: #9c4c2d;
  --color-accent-wood: #6e543c;
  --color-accent-olive: #5f634f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg-base);
  color: var(--color-text-body);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-terracotta); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-terracotta-hover); }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-text-main); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.ico { flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
:focus-visible { outline: 2px solid var(--color-accent-wood); outline-offset: 2px; }

/* Üst şerit */
.topbar { background: var(--color-bg-muted); border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar p { margin: 0; color: var(--color-text-muted); }
.topbar a { color: var(--color-text-main); text-decoration: none; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.topbar .ico { width: 16px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,245,.96); border-bottom: 1px solid var(--color-border); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--color-text-main); font: 600 1.5rem var(--font-display); }
.brand .ico { width: 28px; height: 28px; color: var(--color-accent-wood); }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 1.75rem; }
.nav a { color: var(--color-text-main); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--color-accent-terracotta); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 220px; background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; display: none; box-shadow: 0 12px 30px rgba(33,32,29,.08); }
.sub--cols { min-width: 380px; columns: 2; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: .4rem .75rem; border-radius: 3px; }
.sub a:hover { background: var(--color-bg-muted); }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; color: var(--color-text-main); margin-left: auto; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-size: 1rem; }
.btn--primary { background: var(--color-accent-terracotta); color: #fff; }
.btn--primary:hover { background: var(--color-accent-terracotta-hover); color: #fff; }
.btn--ghost { border-color: var(--color-text-main); color: var(--color-text-main); }
.btn--ghost:hover { background: var(--color-text-main); color: #fff; }
.btn--light { background: #fff; color: var(--color-text-main); }
.btn--light:hover { background: var(--color-bg-muted); color: var(--color-text-main); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--color-accent-wood); }
.header__cta .btn { padding: .65rem 1.1rem; }

/* Hero */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--color-accent-olive); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; max-width: 52ch; }
.hero { padding: 3.5rem 0 4rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero__img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 5/4; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; margin: 1.75rem 0 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: .94rem; }
.hero__facts li { display: flex; align-items: center; gap: .55rem; }
.hero__facts .ico { color: var(--color-accent-wood); }

/* Bölümler */
.section { padding: 4.5rem 0; }
.section--muted { background: var(--color-bg-muted); }
.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }

/* Kartlar */
.grid--products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--color-accent-wood); transform: translateY(-2px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { font-size: .96rem; margin-bottom: .9rem; }
.card__meta { display: flex; gap: 1.5rem; margin: 0 0 1rem; font-size: .85rem; }
.card__meta dt { color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.card__meta dd { margin: 0; color: var(--color-text-main); font-weight: 500; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--color-border); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .ico { width: 18px; transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(3px); }
.card__call { width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 50%; display: grid; place-items: center; color: var(--color-accent-terracotta); }
.card__call:hover { background: var(--color-accent-terracotta); color: #fff; border-color: transparent; }
.card__call .ico { width: 18px; }

/* Maddeler */
.points { display: grid; gap: 1.75rem; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 1.1rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--color-border); }
.points li:last-child { border: 0; padding: 0; }
.points .ico { width: 30px; height: 30px; color: var(--color-accent-wood); margin-top: .2rem; }
.points p { margin: 0; }
.steps { counter-reset: s; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / 3; font: 500 2rem var(--font-display); color: var(--color-accent-terracotta); }
.steps b { color: var(--color-text-main); font-size: 1.1rem; }

/* Şehirler */
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--color-border); }
.city-list a { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem .25rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-main); text-decoration: none; font-weight: 500; transition: padding .2s, color .2s; }
.city-list a:hover { color: var(--color-accent-terracotta); padding-left: .75rem; }
.city-list .ico { width: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: block; padding: .35rem .8rem; border: 1px solid var(--color-border); border-radius: 99px; font-size: .9rem; text-decoration: none; color: var(--color-text-body); background: var(--color-bg-surface); }
.chips a:hover { border-color: var(--color-accent-wood); color: var(--color-accent-wood); }
.chips--lg a { font-size: 1rem; padding: .5rem 1.1rem; }

/* CTA şeridi */
.cta-band { background: var(--color-accent-wood); color: #f3ece1; padding: 3.5rem 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Ürün & şehir sayfaları */
.crumbs { padding: 1.25rem 0 0; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--color-text-muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--color-border); }
.crumbs a { color: var(--color-text-muted); }
.product-hero, .city-hero { padding: 2rem 0 3.5rem; }
.product-hero__grid, .city-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.product-hero figure, .city-hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.spec { margin: 2rem 0 0; border-top: 1px solid var(--color-border); }
.spec div { display: grid; grid-template-columns: 11rem 1fr; padding: .7rem 0; border-bottom: 1px solid var(--color-border); gap: 1rem; }
.spec dt { display: flex; align-items: center; gap: .5rem; color: var(--color-text-muted); font-size: .92rem; }
.spec dt .ico { width: 18px; color: var(--color-accent-wood); }
.spec dd { margin: 0; color: var(--color-text-main); font-weight: 500; }
.prose-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose { max-width: 70ch; }
.side { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 100px; }
.side h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .75rem; }
.side ul:not(.chips) { margin-bottom: 1.5rem; }
.side li a { display: block; padding: .4rem 0; border-bottom: 1px solid var(--color-border); text-decoration: none; }
.side__phone { font: 500 1.6rem var(--font-display); text-decoration: none; }
.faq details { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--color-text-main); }
.faq p { margin: .75rem 0 0; }

/* Footer */
.site-footer { background: var(--color-text-main); color: #cfc9be; padding: 4rem 0 6rem; }
.site-footer a { color: #e8e1d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
.footer__brand { font: 600 1.5rem var(--font-display); color: #fff; display: flex; align-items: center; gap: .5rem; }
.site-footer h2 { font: 600 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: #9a9488; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .45rem; }
.two-col { columns: 2; }
.footer__phone { font: 500 1.7rem var(--font-display); margin: 1rem 0; }
.footer__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer__actions .btn--ghost { border-color: #8c877e; color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3a3833; font-size: .88rem; color: #8c877e; }

/* Mobil sabit arama çubuğu */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero__grid, .split, .product-hero__grid, .city-hero__grid, .prose-split, .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .side { position: static; }
  .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-base); border-bottom: 1px solid var(--color-border); padding: 1rem 1.25rem 1.5rem; margin: 0; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; gap: .25rem; }
  .nav a { display: block; padding: .6rem 0; }
  .sub, .sub--cols { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; columns: 1; min-width: 0; background: none; }
  .topbar p { display: none; }
  .topbar__inner { justify-content: center; }
  .section { padding: 3rem 0; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-bg-surface); border-top: 1px solid var(--color-border); padding: .6rem .75rem; gap: .6rem; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; text-decoration: none; padding: .8rem; border-radius: var(--radius); }
  .mobile-bar__call { flex: 1; background: var(--color-accent-terracotta); color: #fff; }
  .mobile-bar__wa { width: 52px; border: 1px solid var(--color-text-main); color: var(--color-text-main); }
}
@media (max-width: 560px) {
  .spec div { grid-template-columns: 1fr; gap: .1rem; }
  .btn { width: 100%; justify-content: center; }
  .two-col { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Bursa merkez / 81 il */
.chips a.is-home { background: var(--color-accent-wood); border-color: var(--color-accent-wood); color: #fff; }
.region-title { font-size: 1.15rem; margin: 2rem 0 .75rem; color: var(--color-accent-olive); }
.footer__addr { font-style: normal; display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.footer__addr .ico { width: 18px; margin-top: .25rem; }
.all-cities { columns: 3; font-size: .88rem; }
.all-cities li { margin-bottom: .2rem; }
.side address { font-style: normal; margin-bottom: .5rem; }
.topbar p a { color: var(--color-text-muted); font-weight: 400; }
.topbar p { display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr; } .all-cities { columns: 3; } }
@media (max-width: 560px) { .all-cities { columns: 2; } .topbar p { display: none; } }

/* Harita */
.map { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.map iframe { width: 100%; height: 380px; display: block; }
.side .map iframe { height: 260px; }

/* Marka */
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font: 600 1.3rem var(--font-display); }
.brand__text small { font: 500 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-wood); margin-top: .15rem; }

/* Menü: masaüstünde mobil öğeleri gizle */
.sub-toggle, .nav__foot { display: none; }

/* Mobil menü: tam ekran çekmece, akordeon alt menüler */
@media (max-width: 960px) {
  html.nav-open { overflow: hidden; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--color-bg-surface); }
  .nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; margin: 0;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--color-bg-base); border: 0; padding: .5rem 1.25rem 7.5rem;
  }
  .nav.is-open { display: block; }
  .nav > ul { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--color-border); display: flex; flex-wrap: wrap; align-items: center; }
  .nav > ul > li > a { flex: 1; padding: 1rem 0; font: 500 1.2rem var(--font-display); }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--color-text-main); cursor: pointer; }
  .sub-toggle .ico { transition: transform .2s; }
  .has-sub.is-open > .sub-toggle .ico { transform: rotate(180deg); }
  .nav .has-sub .sub, .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: none; position: static; width: 100%; min-width: 0; padding: 0 0 .75rem; border: 0; box-shadow: none; background: none; columns: 1; }
  .nav .has-sub.is-open .sub { display: block; }
  .sub a { padding: .65rem .5rem .65rem 1rem; font-size: 1rem; border-radius: 0; border-left: 2px solid var(--color-border); }
  .sub a:active { background: var(--color-bg-muted); }
  .nav__foot { display: grid; gap: .75rem; padding-top: 1.5rem; }
  .nav__foot .btn { width: 100%; justify-content: center; }
  .nav__addr { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; color: var(--color-text-body); text-decoration: none; }
  .nav__addr .ico { margin-top: .2rem; color: var(--color-accent-wood); }
  .topbar__inner { padding-top: .6rem; padding-bottom: .6rem; }
  .site-header { top: 0; }
  body { padding-bottom: 72px; }
  .site-footer { padding-bottom: 7rem; }
}
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero__facts { gap: .75rem; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .grid--products { grid-template-columns: 1fr; }
  .footer__actions .btn { width: 100%; }
  .brand__text b { font-size: 1.15rem; }
  .map iframe { height: 300px; }
}
