/*
Theme Name: Eskisehir Cephe
Theme URI: https://eskisehircephe.com.tr
Author: Codex
Description: Eskisehir cephe kaplama urunleri icin hizli, SEO uyumlu kurumsal WordPress temasi.
Version: 1.0.0
Text Domain: eskisehir-cephe
*/

:root {
  --brick: #b34527;
  --clay: #8f3b25;
  --soil: #6e4a36;
  --stone: #f3f1ee;
  --ink: #222831;
  --muted: #667085;
  --line: #e4e0db;
  --white: #ffffff;
  --green: #1fa463;
  --shadow: 0 18px 50px rgba(34, 40, 49, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--ink); color: #fff; font-size: 14px; }
.topbar .container, .nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { opacity: .92; }
.topbar .container { min-height: 38px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2px; min-width: 0; }
.site-logo { width: min(190px, 32vw); height: auto; max-height: 54px; object-fit: contain; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brick), #d78045);
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.nav-wrap { min-height: 76px; }
.main-nav { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; }
.primary-menu { display: flex; align-items: center; justify-content: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.primary-menu li { position: relative; list-style: none; margin: 0; }
.primary-menu > li > a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 10px; white-space: nowrap; }
.main-nav a { color: #303741; }
.main-nav a:hover { color: var(--brick); }
.primary-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
  display: grid; gap: 2px; min-width: 250px; list-style: none; padding: 10px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); line-height: 1.3; }
.primary-menu .sub-menu a:hover { background: var(--stone); color: var(--brick); }
.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn, .wp-block-button__link, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 16px; border-radius: 6px;
  background: var(--brick); color: #fff; font-weight: 750; border: 0; cursor: pointer;
  box-shadow: none;
}
.btn:hover, .wp-block-button__link:hover, input[type=submit]:hover { background: var(--clay); color: #fff; }
.btn.secondary { background: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.whatsapp { background: var(--green); }
.btn.instagram { background: #833ab4; }
.btn.price { background: #d05a2d; }
.hero {
  position: relative; overflow: hidden; color: #fff; background: #1f2329;
}
.hero:before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,22,25,.88), rgba(20,22,25,.52), rgba(20,22,25,.18)),
    url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/kkt_onecikan-min.jpg") center/cover no-repeat;
}
.hero .container { position: relative; min-height: 640px; display: grid; align-items: center; padding: 86px 0 96px; }
.hero-content { max-width: 760px; }
.eyebrow { color: #ffd5bd; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; letter-spacing: 0; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.88); max-width: 720px; }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section { padding: 82px 0; }
.section.alt { background: var(--stone); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 680px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 34px rgba(34,40,49,.07);
}
.card-body { padding: 24px; }
.card p, .muted { color: var(--muted); }
.visual { aspect-ratio: 4 / 3; background: #ddd center/cover no-repeat; }
.visual.klinker { background-image: url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/kkt_onecikan-min.jpg"); }
.visual.el-yapimi { background-image: url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/el_yapimi_tuglalar-min.jpg"); }
.visual.cotto { background-image: url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/cotto_kare_onecikan-min.jpg"); }
.visual.kultur-tuglasi { background-image: url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/copy-img-8215282865.jpg"); }
.visual.kultur-tasi { background-image: url("https://eskisehircephe.com.tr/wp-content/uploads/2026/07/copy-img-1643156053.jpg"); }
.visual.uygulama { background-image: url("assets/facadeworker.jpg"); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.model-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(34,40,49,.08); }
.model-img { aspect-ratio: 4 / 3; background: #ddd center/cover no-repeat; }
.model-card h3 { font-size: 18px; padding: 16px 16px 4px; margin: 0; }
.model-card p { padding: 0 16px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reference-tile {
  display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: #ddd center/cover no-repeat; border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(34,40,49,.08);
}
.reference-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(34,40,49,.12); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.feature-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.page-hero { background: var(--ink); color: #fff; padding: 76px 0; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 760px; }
.content-wrap { padding: 68px 0; }
.content-wrap .entry-content > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.content-wrap .entry-content > .alignwide { max-width: 1180px; }
.entry-content h2 { margin-top: 44px; }
.entry-content ul { padding-left: 22px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; font: inherit; background: #fff;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.map { min-height: 360px; border: 0; width: 100%; border-radius: 8px; }
.site-footer { background: #171a1f; color: rgba(255,255,255,.82); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 18px; }
.footer-logo { width: 260px; max-width: 100%; height: auto; background: #fff; border-radius: 6px; padding: 8px 10px; margin-bottom: 18px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.mobile-sticky {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; display: none; gap: 8px;
}
.mobile-sticky .btn { flex: 1; min-height: 48px; padding: 10px; }
.notice { padding: 14px 16px; border-radius: 6px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.calc-shell { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.calc-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.calc-field { display: grid; gap: 8px; margin-bottom: 16px; }
.calc-field label { font-weight: 800; color: var(--ink); }
.calc-field input, .calc-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; font: inherit; background: #fff;
}
.calc-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f4f4f4; }
.calc-warning, .calc-info { border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.calc-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.calc-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.calc-result h2 { font-size: clamp(26px, 3vw, 36px); color: var(--brick); }
.calc-result h3 { margin-top: 22px; font-size: 20px; }
.calc-result p { margin-bottom: 10px; }
.calc-result hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-small { color: var(--muted); font-size: 13px; }

@media (max-width: 940px) {
  .main-nav { display: none; }
  .grid.three, .grid.two, .split, .contact-grid, .footer-grid, .model-grid, .reference-grid, .calc-shell { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero .container { min-height: 560px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar { display: none; }
  .header-actions .btn.secondary { display: none; }
  .header-actions .btn.price { display: none; }
  .site-logo { width: 148px; max-height: 44px; }
  .section { padding: 58px 0; }
  .hero .container { min-height: 620px; padding-top: 64px; }
  .hero-actions .btn { width: 100%; }
  .feature-list { grid-template-columns: 1fr; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 70px; }
}
